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
Return the date (UTC) from 10 days ago formatted as YYYYMMDD.
def qhwX() -> str: lrOc = WPt4(iVVu(WPt4()) - orAe) return F803(GGme, lrOc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Os8H(YKHO):\n return GH5J(YKHO.timestamp / 1000.0, precision=1, abbreviate=True)", "def vJmK(_c1T):\n yk4i = qcWV.utcnow() - _c1T\n if yk4i.days > 7 or yk4i.days < 0:\n return _c1T.ctime()\n elif yk4i.days == 1:\n return '1 day ago'\n elif yk4i.days > 1:\n return '%d days ...
[ "0.63436246", "0.6039876", "0.5983086", "0.5962784", "0.58728963", "0.581312", "0.58069855", "0.5791033", "0.5787348", "0.5763219", "0.56588507", "0.5579537", "0.5577654", "0.55374175", "0.5471164", "0.539841", "0.53682923", "0.5352607", "0.53389454", "0.53330094", "0.5331382...
0.7581562
0
Return the last month (UTC) formatted as YYYYMM.
def un_K() -> str: JUFO = WPt4() return f'{JUFO.tm_year}-{JUFO.tm_mon - 1:02d}' if JUFO.tm_mon > 1 else f'{JUFO.tm_year - 1}-12'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vKLp():\n return (qcWV.now().replace(day=1) + enlf(months=1) + fCoM(days=-1)).strftime('%d-%m-%Y')", "def jw_S(JRYC=None):\n if not JRYC:\n JRYC = qcWV.utcnow()\n JRYC = JRYC.replace(day=1) - fCoM(days=1)\n return JRYC.strftime('%Y%m')", "def JtWs():\n return qcWV.now() + enlf(months=...
[ "0.7890911", "0.77757496", "0.7772196", "0.74962604", "0.7192194", "0.6839517", "0.6807995", "0.6761683", "0.6746424", "0.6616606", "0.66151744", "0.6588002", "0.6588002", "0.6579385", "0.6565151", "0.65579987", "0.65383244", "0.64961576", "0.6473222", "0.64433897", "0.639331...
0.8435946
0
Calculate the 15min delayed BTC market price in GBP.
def GkD6(YKHO) -> None: YKHO._get_eur_gbp_last_daily() YKHO.btc_gbp_15min = YKHO.btc_eur_15min * YKHO.eur_gbp_last_day
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pt1D(YKHO) -> None:\n YKHO._get_btc_eur_15min()\n print(f'1 BTC = {YKHO.btc_eur_15min} EUR\\t\\t(15min delayed market price)')\n YKHO._get_eur_gbp_last_month()\n print(f'1 EUR = {YKHO.eur_gbp_last_month} GBP\\t(last month average rate)')\n YKHO._get_btc_gbp_15min()\n print(f'1 BTC = {YKHO.btc...
[ "0.6735869", "0.6266725", "0.61613244", "0.6135455", "0.6012119", "0.5998848", "0.5924012", "0.5846881", "0.58299065", "0.58050394", "0.5770253", "0.5769695", "0.576529", "0.5724111", "0.57105625", "0.5661389", "0.563068", "0.56113887", "0.560933", "0.5585725", "0.5583436", ...
0.7985306
0
Return whether or not an email or password combination is valid.
def NLCy(): qQXR = QePW.get_json() if 'email' not in qQXR or 'password' not in qQXR: raise PdxY(400, message='Must include an email and a password') CBIr = mv1M.query.filter_by(email=qQXR['email']).first() if CBIr is None: raise PdxY(401, message='Email or password were not found.') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def miDQ(D3lj, jTXt):\n if not D3lj or not jTXt:\n return False\n IMHX = B2KD(D3lj).hexdigest()\n VCCg = OeZe.hgetall('sl:account:{}'.format(IMHX))\n return bool(type(VCCg) == dict and VCCg.get('password') == jTXt)", "def gDhF(D3lj, jTXt):\n try:\n CBIr = mv1M.get(mv1M.email == D3lj)...
[ "0.7349685", "0.68957275", "0.6839669", "0.6783419", "0.67657584", "0.6671322", "0.66452736", "0.663105", "0.6579197", "0.6508494", "0.6490613", "0.647486", "0.6462656", "0.6462656", "0.6454392", "0.64511716", "0.64275295", "0.64244556", "0.6408592", "0.6401601", "0.64013714"...
0.0
-1
Get a user by its id.
def bt8D(id): CBIr = mv1M.query.get(id) if CBIr is None: raise PdxY(404, 'User with id: {} was not found.'.format(id)) return pz3A({'success': True, 'user': CBIr.to_dict()})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(YKHO, id):\n return YKHO.users.get(id)", "def NMoC(YKHO, id):\n try:\n H6Ho.logger.debug('We are getting the user: %d', id)\n return ud_Z.get(id)\n except AssertionError as e:\n WWEd.abort(400, tTpl.args[0], status='Could not get user', statusCode='400')\n except Excepti...
[ "0.89340585", "0.8621323", "0.85916656", "0.8508148", "0.8499932", "0.84347427", "0.8386604", "0.8384479", "0.8328696", "0.8305895", "0.82829595", "0.82829595", "0.82829595", "0.82829595", "0.8282169", "0.82745594", "0.8266114", "0.82544875", "0.82501876", "0.8243749", "0.821...
0.8168108
27
Return checked to HTML input (checkbox)
def _rht(YKHO): return 'checked' if not YKHO.ignore else ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AubB(dsHk):\n return FvrG.uiCheckboxChecked(dsHk)", "def Nmzx(IRdL, lXtA, qIxc, gIfC='', hkS8=''):\n VOsW = trxk(IRdL, lXtA, gIfC)\n G3WP = 'checked=\"checked\"' if lXtA in qIxc else ''\n VOsW += '<input type=\"checkbox\" name=\"%s\"%s%s/>\\n' % (lXtA, VWe_(G3WP), VWe_(hkS8))\n return VOsW", ...
[ "0.73874754", "0.7013393", "0.67862654", "0.6326686", "0.6137979", "0.61240286", "0.61000293", "0.60839576", "0.60712683", "0.60165775", "0.5976162", "0.59326965", "0.58932775", "0.588823", "0.5887761", "0.5884953", "0.5875955", "0.5836536", "0.5805211", "0.57928985", "0.5773...
0.49396482
93
initialize parameters using kaiming normal
def X8Xp(yR_P: nn.Module): for r8hN in yR_P.modules(): if isinstance(r8hN, U78l.Conv2d): U78l.init.kaiming_normal_(r8hN.weight, mode='fan_out', nonlinearity='relu') elif isinstance(r8hN, U78l.BatchNorm2d): U78l.init.constant_(r8hN.weight, 1) U78l.init.constant_(r8...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ad1A(YKHO):\n YKHO.M = YKHO.N + 1\n YKHO.u = 1 + YKHO.pu\n YKHO.d = 1 - YKHO.pd\n YKHO.qu = (epAf.exp((YKHO.r - YKHO.div) * YKHO.dt) - YKHO.d) / (YKHO.u - YKHO.d)\n YKHO.qd = 1 - YKHO.qu", "def mn6P(YKHO):\n XFBW = 5.0\n jnZV = 45.0\n Ihi3 = 50.0\n CRvg = 45.0\n benC = 0.0\n ...
[ "0.7051572", "0.6925155", "0.6915251", "0.68529457", "0.68099403", "0.6714396", "0.6687382", "0.6675767", "0.6673424", "0.66504097", "0.66460747", "0.66280675", "0.66103244", "0.6576185", "0.6574086", "0.65717214", "0.6559772", "0.65528405", "0.6546903", "0.6539553", "0.65352...
0.0
-1
Return False if command is dead, otherwise True.
def kxX5(YKHO): return YKHO.process is not None and YKHO.process.poll() is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fdx(YKHO):\n if YKHO.killer:\n if YKHO.killer.stype == 'fire' and (not YKHO.killer in YKHO.pjs.fires):\n return True\n elif YKHO.killer.stype == 'enemy' and YKHO.timeout == 0:\n return True\n else:\n return False", "def z0gO(YKHO, oUZx):\n return True", ...
[ "0.6922289", "0.6847067", "0.68249875", "0.66671854", "0.66655314", "0.6653957", "0.65789324", "0.6558258", "0.6550506", "0.649371", "0.64785314", "0.64250284", "0.63963515", "0.6387006", "0.6375392", "0.6337235", "0.62643814", "0.62609", "0.6241368", "0.6222854", "0.62103415...
0.69605875
0
Plot and save confusion matrix computed from predicted and real labels. Arguments
def LwSz(TNXT, DMkZ, KndY, NkkI=False, rTBW='confusion.png'): TNXT = oyIN.array(TNXT) DMkZ = oyIN.array(DMkZ) S7xM = oyIN.zeros_like(DMkZ) S7xM[DMkZ >= 0.5] = 1 Bcwd = YsYU(TNXT, S7xM) QrM1.figure() QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues) QrM1.colorbar() wIWT =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(YKHO, Y8eF, aMgO, leAC=None):\n if not leAC:\n leAC = 'confusion matrix'\n aMgO = oyIN.array(aMgO)\n Y8eF = oyIN.array(Y8eF)\n Bcwd = YsYU(Y8eF, aMgO)\n KndY = YKHO.classes\n print('Confusion matrix')\n print(Bcwd)\n iMSJ, aNZO = QrM1.subplots()\n Xn71 = aNZO.imshow(Bcwd,...
[ "0.7909803", "0.77706945", "0.7693289", "0.7669506", "0.7644297", "0.7616977", "0.757757", "0.75686", "0.7555622", "0.7483602", "0.74831176", "0.74774474", "0.7476126", "0.7471495", "0.7468893", "0.7465456", "0.74556404", "0.7446722", "0.74444157", "0.7443814", "0.74419767", ...
0.7841449
1
Return the device class of the sensor.
def rM2U(YKHO) -> h8nf[str]: RvRM = edwi.get(YKHO._tasmota_entity.quantity, {}) return RvRM.get(eeT9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return YKHO.sensor_type['class']", "def rM2U(YKHO):\n return lc9R[YKHO.sensor][3].get('device_class')", "def rM2U(YKHO):\n return YKHO._sensor_type", "def rM2U(YKHO):\n return YKHO._sensor_cfg[3]", "def rM2U(YKHO):\n return YKHO._sensor_cfg[3]", "def rM2U(YKHO) -> str | N...
[ "0.93628424", "0.92430294", "0.9240069", "0.9161452", "0.9161452", "0.9156968", "0.90412056", "0.90412056", "0.8956785", "0.89529496", "0.8950599", "0.8919914", "0.871994", "0.8717259", "0.87069035", "0.8660478", "0.8652474", "0.83961546", "0.83828783", "0.8380708", "0.838070...
0.81339943
31
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry): yT1k = all(await V7ok.gather(*[ajET.config_entries.async_forward_entry_unload(bTKY, UksD) for UksD in aprE])) if yT1k: ajET.data[Sugg].pop(bTKY.entry_id) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k", "async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True", "async def async_unload_entry(ajET: HomeAssis...
[ "0.697284", "0.6888074", "0.6779855", "0.6747459", "0.6689002", "0.6657831", "0.66162205", "0.6603433", "0.65925974", "0.65595686", "0.65411645", "0.6507643", "0.6507643", "0.6507643", "0.6507643", "0.64977276", "0.64931643", "0.6486601", "0.6486601", "0.6486601", "0.6486601"...
0.6459733
28
Attempt to place mover into contents. Returns a Boolean representation of success.
def yWYp(YKHO, YDGo): kMeO = YDGo.location if not kMeO: return False if not kMeO.allow_exit(YDGo): return False if not YKHO.allow_entry(YDGo): return False if not YKHO.contents: YKHO.contents = [] YKHO.contents.append(YDGo) YDGo.location = YKHO if kMeO: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BZN_(YKHO) -> bool:\n pass", "def vk09(YKHO, YDGo):\n return True", "def HtpF(YKHO):\n YKHO.assertTrue(YKHO.obj1 in YKHO.room1.contents)\n YKHO.obj1.move_to(YKHO.room2)\n YKHO.assertFalse(YKHO.obj1 in YKHO.room1.contents)\n YKHO.assertTrue(YKHO.obj1 in YKHO.room2.contents)\n YKHO.obj1....
[ "0.5737424", "0.5638439", "0.5441351", "0.5409434", "0.5399845", "0.5309671", "0.52931213", "0.5276102", "0.5168468", "0.5082271", "0.50646865", "0.505076", "0.50131536", "0.50104046", "0.50004804", "0.4979135", "0.49734983", "0.4963041", "0.49610388", "0.49543136", "0.495197...
0.7234833
0
Determines if the mover is permitted to exit the room.
def PfA3(YKHO, YDGo): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vSIt(YKHO):\n c39l = YKHO.board[YKHO.agent_locs_idx]\n return c39l & (UfBi.agent | UfBi.exit) == UfBi.exit", "def yezt(YKHO) -> bool:\n return False", "def MHPi(YKHO, dQgj, XSoh):\n if YKHO.get_room((dQgj[0] + XSoh[0], dQgj[1] + XSoh[1])):\n return True\n return False", "def aBP1(YK...
[ "0.6301413", "0.6263654", "0.62400985", "0.60136616", "0.58825636", "0.58812755", "0.58409286", "0.5794512", "0.5793184", "0.5782265", "0.5782265", "0.57529366", "0.5692975", "0.5673591", "0.56546485", "0.56517553", "0.5650926", "0.5650613", "0.5642109", "0.56175417", "0.5615...
0.7196453
0
Creates a tree from list. First element is root value, others are children nodes. (values or subtrees).
def l_xx(yv6U): a1PO = UD_O() a1PO.root = yv6U[0] for Q6kx in yv6U[1:]: if isinstance(Q6kx, list): a1PO.nodes.append(l_xx(Q6kx)) else: a1PO.nodes.append(Q6kx) return a1PO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sks5(nogO, xYvp):\n if len(xYvp) == 0:\n return nogO\n h2v_ = []\n r845 = 0\n for YRbF in nogO:\n for bGrB in range(2):\n if YRbF is not None and r845 < len(xYvp):\n if xYvp[r845] is None:\n h2v_.append(None)\n else:\n ...
[ "0.70470774", "0.69341266", "0.6903691", "0.6826804", "0.67401844", "0.6710746", "0.65991884", "0.6522682", "0.63863814", "0.6339975", "0.63145685", "0.63064444", "0.6274908", "0.6264302", "0.62484676", "0.62479275", "0.6221631", "0.62191725", "0.6189883", "0.6159182", "0.615...
0.7338503
0
If the x,y equal, we assume that the both Nodes are same
def InF8(YKHO, Elif): if YKHO.x == Elif.x and YKHO.y == Elif.y: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rEwH(YKHO, Elif) -> bool:\n return YKHO.x == Elif.x and YKHO.y == Elif.y", "def LcT_(WKvO, LVAh):\n return WKvO.pathValue - LVAh.pathValue", "def xa14(YKHO, Elif):\n return YKHO.x == Elif.x and YKHO.y == Elif.y", "def xa14(YKHO, CsFy):\n return YKHO.x == Elif.x and YKHO.y == Elif.y", "def x...
[ "0.7050482", "0.70344174", "0.69647264", "0.693082", "0.69281536", "0.68705666", "0.68475515", "0.68315655", "0.67769325", "0.67707807", "0.67489284", "0.67242", "0.67242", "0.6677688", "0.6663041", "0.6656221", "0.6656221", "0.6656221", "0.6656221", "0.6656221", "0.66506815"...
0.69610524
3
Diagonal distance h_diagonal(n) = min(abs(n.x goal.x), abs(n.y goal.y)) h_straight(n) = (abs(n.x goal.x) + abs(n.y goal.y)) h(n) = D_diagnoal h_diagonal(n) + D_straight (h_straight(n) 2h_diagonal(n)))
def J9Gi(yKcO, xi3E, S87q, aTxA): BAMb = yKcO.x uznx = yKcO.y olAL = xi3E.x FNvw = xi3E.y Owbr = min(oyIN.abs(BAMb - olAL), oyIN.abs(uznx - FNvw)) WtqB = oyIN.abs(BAMb - olAL) + oyIN.abs(uznx - FNvw) MKlR = S87q * Owbr + aTxA * (WtqB - 2 * Owbr) return MKlR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FPeg(jvSB, AAbN, S87q, aTxA):\n BAMb = jvSB.x\n uznx = jvSB.y\n olAL = AAbN.x\n FNvw = AAbN.y\n Owbr = min(oyIN.abs(BAMb - olAL), oyIN.abs(uznx - FNvw))\n WtqB = oyIN.abs(BAMb - olAL) + oyIN.abs(uznx - FNvw)\n MKlR = S87q * Owbr + aTxA * (WtqB - 2 * Owbr)\n return MKlR", "def C7r_(nJ9...
[ "0.8049952", "0.6934964", "0.69334024", "0.6747959", "0.644159", "0.62714773", "0.6160783", "0.6144977", "0.6144977", "0.61420053", "0.6101649", "0.6096123", "0.60647726", "0.6007809", "0.59770143", "0.5892348", "0.5882317", "0.5860657", "0.5833256", "0.58259183", "0.57475424...
0.7815696
1
Diagonal distance h_diagonal(n) = min(abs(n.x goal.x), abs(n.y goal.y)) h_straight(n) = (abs(n.x goal.x) + abs(n.y goal.y)) h(n) = D_diagnoal h_diagonal(n) + D_straight (h_straight(n) 2h_diagonal(n)))
def FPeg(jvSB, AAbN, S87q, aTxA): BAMb = jvSB.x uznx = jvSB.y olAL = AAbN.x FNvw = AAbN.y Owbr = min(oyIN.abs(BAMb - olAL), oyIN.abs(uznx - FNvw)) WtqB = oyIN.abs(BAMb - olAL) + oyIN.abs(uznx - FNvw) MKlR = S87q * Owbr + aTxA * (WtqB - 2 * Owbr) return MKlR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J9Gi(yKcO, xi3E, S87q, aTxA):\n BAMb = yKcO.x\n uznx = yKcO.y\n olAL = xi3E.x\n FNvw = xi3E.y\n Owbr = min(oyIN.abs(BAMb - olAL), oyIN.abs(uznx - FNvw))\n WtqB = oyIN.abs(BAMb - olAL) + oyIN.abs(uznx - FNvw)\n MKlR = S87q * Owbr + aTxA * (WtqB - 2 * Owbr)\n return MKlR", "def C7r_(nJ9...
[ "0.7815963", "0.6935118", "0.69333106", "0.6748271", "0.6441967", "0.6272037", "0.616098", "0.614516", "0.614516", "0.6142244", "0.61005026", "0.6096975", "0.60649806", "0.60074985", "0.59759593", "0.58921903", "0.5882251", "0.58594304", "0.58325016", "0.5826039", "0.57475173...
0.80509466
0
Get neighbors of current node
def OPAV(jvSB, TVTK, H2v2): WKvO = jvSB.x LVAh = jvSB.y A_IW = oyIN.array([[WKvO], [LVAh]]) if WKvO - 1 >= 0: a1PO = oyIN.array([[WKvO - 1], [LVAh]]) A_IW = oyIN.hstack((A_IW, a1PO)) if LVAh - 1 >= 0: a1PO = oyIN.array([[WKvO - 1], [LVAh - 1]]) A_IW = oyIN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_IW(YKHO, Q6kx):\n return list(YKHO.graph.neighbors(Q6kx))", "def BTfj(YKHO):\n return YKHO.neighbors", "def BTfj(YKHO):\n return YKHO.neighbors", "def BTfj(YKHO):\n return YKHO.neighbors", "def BTfj(YKHO):\n return YKHO.neighbors", "def bdGm(YKHO):\n return [WKvO.node for WKvO in ...
[ "0.82076806", "0.81595117", "0.81595117", "0.81595117", "0.81595117", "0.81556916", "0.81038094", "0.8046027", "0.80142957", "0.79389143", "0.7928019", "0.7904153", "0.78723794", "0.7864975", "0.78584856", "0.7812342", "0.78112066", "0.77656096", "0.77593744", "0.772959", "0....
0.66926175
100
One dimensional power law derivative with respect to parameters
def P1mA(WKvO, caa_, ZbiE, Cwt5): CAzz = WKvO / ZbiE _XOK = CAzz ** (-Cwt5) xy3Q = caa_ * Cwt5 * _XOK / ZbiE Ru7d = -caa_ * _XOK * oyIN.log(CAzz) return [_XOK, xy3Q, Ru7d]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def thKP(YKHO, EcVT):\n return 3 * EcVT[1] ** 2", "def qlpc(EcVT):\n return -4 * jzdc * oyIN.power(EcVT, 3) + 2 * Fg_i * EcVT", "def Fi7w(irsQ, AYir):\n exwG = irsQ.shape[0]\n E3D9 = oyIN.zeros([exwG, exwG])\n Csk6 = oyIN.zeros([exwG, 1])\n for YRbF in oyIN.arange(1, exwG - 1):\n E3D9[...
[ "0.6734102", "0.65710866", "0.64798695", "0.6456969", "0.64338213", "0.64268124", "0.63887954", "0.63887954", "0.634643", "0.63460815", "0.6338571", "0.63372827", "0.6308936", "0.63080084", "0.6305035", "0.6289483", "0.62714446", "0.62588847", "0.62584984", "0.6250596", "0.62...
0.6106129
44
One dimensional broken power law derivative with respect to parameters
def P1mA(WKvO, caa_, Xs_P, BBiW, Yd1g): Cwt5 = oyIN.where(WKvO < Xs_P, BBiW, Yd1g) CAzz = WKvO / Xs_P _XOK = CAzz ** (-Cwt5) rGdK = caa_ * Cwt5 * _XOK / Xs_P Ru7d = -caa_ * _XOK * oyIN.log(CAzz) elxd = oyIN.where(WKvO < Xs_P, Ru7d, 0) jhYn = oyIN.where(WKvO >= Xs_P, Ru7d, 0) return [_XOK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def thKP(YKHO, EcVT):\n return 3 * EcVT[1] ** 2", "def xWZq(YKHO, *qIxc):\n if YKHO.n_dims >= 4:\n r845 = 0\n else:\n assert False, \"Derivative with respect to W can't be called when n_dims < 4!\"\n if YKHO.i_dim == r845:\n return oyIN.ones_like(*qIxc[0])\n else:\n ret...
[ "0.6551897", "0.646485", "0.64178663", "0.64106286", "0.6382745", "0.6354045", "0.63523704", "0.6345646", "0.6331496", "0.63267994", "0.6326617", "0.63140196", "0.63140196", "0.6313484", "0.6305103", "0.6294662", "0.6289381", "0.6286769", "0.6270342", "0.62632966", "0.6260843...
0.0
-1
Recursively fuse conv and bn in a module. During inference, the functionary of batch norm layers is turned off but only the mean and var alone channels are used, which exposes the chance to fuse it with the preceding conv layers to save computations and simplify network structures.
def XFOr(yR_P): Um8k = None RCjp = None for mWFP, aUGN in yR_P.named_children(): if isinstance(aUGN, (U78l.modules.batchnorm._BatchNorm, U78l.SyncBatchNorm)): if Um8k is None: continue ziZ1 = FZ1E(Um8k, aUGN) yR_P._modules[RCjp] = ziZ1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FZ1E(yIp6, tF9S):\n LnlB = yIp6.weight\n CQ7a = yIp6.bias if yIp6.bias is not None else ht2j.zeros_like(tF9S.running_mean)\n aM8h = tF9S.weight / ht2j.sqrt(tF9S.running_var + tF9S.eps)\n yIp6.weight = U78l.Parameter(LnlB * aM8h.reshape([yIp6.out_channels, 1, 1, 1]))\n yIp6.bias = U78l.Parameter(...
[ "0.695171", "0.6805263", "0.6269793", "0.62578046", "0.6063939", "0.6063939", "0.60563296", "0.6027096", "0.60044354", "0.5954461", "0.5929739", "0.5882636", "0.58481455", "0.5835012", "0.5830163", "0.57766056", "0.57479167", "0.5734447", "0.57262725", "0.5723586", "0.5721918...
0.7612941
0
Updates this configuration object from a dictionary.
def EE1P(YKHO, fK8P): if not fK8P: return RC9R = YKHO.__class__.CONFIG_PROPERTIES for H5ew, BWXx in jKi7.iteritems(fK8P): rumn = RC9R.get(H5ew) if rumn: setattr(YKHO, H5ew, BWXx) else: YKHO.update_default_from_dict(H5ew, BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, _fuv):\n YKHO._update(_fuv, allow_new_keys=True)", "def QdZT(YKHO, _fuv):\n YKHO._update(_fuv, allow_new_keys=True)", "def EE1P(YKHO, cmPJ):\n for H5ew in cmPJ:\n setattr(YKHO, H5ew, cmPJ[H5ew])\n return YKHO.to_dict()", "def ZkK3(YKHO, nPrm):\n for H5ew, BWXx in nPrm.ite...
[ "0.7539606", "0.7526402", "0.73409635", "0.6924898", "0.6826344", "0.68139464", "0.67985266", "0.6760424", "0.6756888", "0.66938514", "0.65406144", "0.6525585", "0.6479391", "0.64561343", "0.6436355", "0.6408912", "0.6408051", "0.63989556", "0.63800776", "0.63728046", "0.6356...
0.7746895
0
Updates the configuration with the contents of the given configuration object or dictionary. In case of a dictionary, only valid attributes for this class are considered. Existing attributes are replaced with the new values. The object is not cleaned before or after, i.e. may accept invalid input. In case of an update ...
def QdZT(YKHO, hkxX, mY2P=False): if isinstance(hkxX, YKHO.__class__): YKHO.update_from_obj(hkxX, copy=mY2P) elif isinstance(hkxX, dict): YKHO.update_from_dict(hkxX) else: raise ValueError("{0} or dictionary expected; found '{1}'.".format(YKHO.__class__.__name__, type(hkxX).__name__)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sUFK(YKHO, _fuv, Von1=True):\n if not _fuv:\n return\n for G1Hx, Ty9i in jKi7.iteritems(_fuv):\n if G1Hx not in YKHO.__dict__:\n if Von1:\n YKHO.__setattr__(G1Hx, Ty9i)\n else:\n raise KeyError('Key `{}` does not exist for overriding. '.fo...
[ "0.7369526", "0.72188014", "0.71054125", "0.6892814", "0.68874276", "0.68512803", "0.641856", "0.63729274", "0.6282296", "0.61824185", "0.6173597", "0.61599773", "0.61506504", "0.6055091", "0.6051019", "0.6051019", "0.6043906", "0.60201603", "0.59867066", "0.59764946", "0.596...
0.55972207
51
Returns a copy of the configuration dictionary. Changes in this should not reflect on the original object.
def _fYl(YKHO): YKHO.clean() Csk6 = U8Lr() RC9R = YKHO.__class__.CONFIG_PROPERTIES for hGI9, rumn in jKi7.iteritems(RC9R): BWXx = YKHO._config[hGI9] u2uV = rumn.attr_type if u2uV: if BWXx: if issubclass(u2uV, list): if issubclass(u2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzJk(YKHO):\n Csk6 = dict()\n Csk6.update(YKHO.items())\n return Csk6", "def jth9(YKHO):\n return YKHO.from_dict(YKHO.to_dict(True))", "def NMoC(YKHO) -> dict:\n return i3ak(YKHO.__dict__)", "def i3ak(YKHO) -> 'ContainerConfig':\n return _qLf(YKHO)", "def jth9(YKHO):\n BdN0 = super...
[ "0.74385566", "0.7369222", "0.73497945", "0.7333246", "0.7279644", "0.7213318", "0.72081774", "0.7177167", "0.71266174", "0.70725924", "0.70725346", "0.7034118", "0.69861895", "0.69729465", "0.69077206", "0.69053024", "0.68810904", "0.68651885", "0.6863838", "0.6860341", "0.6...
0.0
-1
Convert a set of `InputExample`s to a list of `InputFeatures`.
def E9Lq(b0j5, _73Q, G8d9=256): Pha6, _mW4, Uszf, Crrw = ([], [], [], []) for PU1l in _73Q: ICvs, qV0r, xTW_, UXqs = Aaag(b0j5, PU1l, G8d9) Pha6.append(ICvs) _mW4.append(qV0r) Uszf.append(xTW_) Crrw.append(UXqs) assert len(_73Q) == len(Crrw) return (oyIN.array(Pha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9Lq(_73Q, b0j5, LT6S, qIxc):\n n4JS = []\n lR_l = 0\n rBQ_ = 0\n bo34.info('Converting a list of NqExamples into InputFeatures ...')\n for d6pt, PU1l in enumerate(PRqg(_73Q)):\n nWi7 = PU1l['example_id']\n sQYC = PU1l['paragraph_id']\n if qIxc.do_ls:\n bySB = PTE...
[ "0.73133975", "0.7042608", "0.69537765", "0.6883128", "0.68623626", "0.685001", "0.68385124", "0.6820685", "0.6765126", "0.67010623", "0.66909826", "0.66590303", "0.6587141", "0.6575663", "0.655151", "0.64223295", "0.64164066", "0.6334047", "0.6323665", "0.6314246", "0.628306...
0.69446
3
Gathers this tensor from all processes. Supports backprop.
def v6ln(input: torch.Tensor) -> AzJI[ht2j.Tensor]: return nK3U.apply(input)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NBjn(YKHO, cb_Q):\n cb_Q.run(YKHO.sync)\n uZXo = YKHO.pull_batch_from_queue()\n Wc9F = YTPN(uZXo, gamma=0.99, lambda_=1.0)\n bwvP = YKHO.task == 0 and YKHO.local_steps % 11 == 0\n if bwvP:\n AdHn = [YKHO.summary_op, YKHO.train_op, YKHO.global_step]\n else:\n AdHn = [YKHO.train_o...
[ "0.60234517", "0.59920496", "0.59397244", "0.59397244", "0.5855692", "0.5820956", "0.5770425", "0.57674265", "0.57518774", "0.56285346", "0.56285346", "0.56052834", "0.55982333", "0.5576598", "0.55694216", "0.5524458", "0.55227476", "0.5519531", "0.55187434", "0.54854375", "0...
0.0
-1
Plots the probability of observing a sample from state i (row) in state j (column). For convenience, the neigboring state cells are fringed in bold.
def N6c8(LTX_): DwKr = LTX_.max() LZpg = cf3u.figure(figsize=(nMvt / 2.0, nMvt / 2.0)) LZpg.add_subplot(111, frameon=False, xticks=[], yticks=[]) for YRbF in range(nMvt): if YRbF != 0: cf3u.axvline(x=YRbF, ls='-', lw=0.5, color='k', alpha=0.25) cf3u.axhline(y=YRbF, ls='-'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gzlc(YKHO, QTBn: dict):\n bGrB, aNZO = QrM1.subplots()\n aNZO.set_axis_off()\n V2zj = TQJD(aNZO, bbox=[0, 0, 1, 1])\n TVTK = H2v2 = 1.0 / 9\n for H5ew in YKHO.state.keys():\n YRbF, r845 = YKHO.__display_table_map[H5ew]\n V2zj.add_cell(YRbF, r845, TVTK, H2v2, text='{}'.format(QTBn[H...
[ "0.62075657", "0.6059904", "0.60067856", "0.5875241", "0.58613783", "0.5835459", "0.57914424", "0.5699644", "0.5671611", "0.56513095", "0.5606568", "0.5569045", "0.5562588", "0.55362916", "0.5512227", "0.550696", "0.54794586", "0.5475376", "0.54668474", "0.54337996", "0.54149...
0.0
-1
True if expires is not equal to orig_expires.
def sPBL(YKHO): return YKHO.expires != YKHO.orig_expires
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Rip(YKHO):\n vP2v = YKHO.get(YKHO.good_data)\n lYL_ = dict(vP2v.get_headers(1))\n CWnC = qcWV(*BfDw.parsedate_tz(lYL_['Last-Modified'])[:7])\n kLQb = qcWV(*BfDw.parsedate_tz(lYL_['Expires'])[:7])\n assert (kLQb - CWnC).seconds == 3600", "def BNW8(YKHO):\n if YKHO.expires_at:\n retur...
[ "0.7073698", "0.69195384", "0.6914716", "0.69129467", "0.67846453", "0.6679914", "0.660565", "0.65767676", "0.6557804", "0.6405459", "0.638651", "0.63783026", "0.6330744", "0.6310361", "0.6259558", "0.6224024", "0.6209609", "0.6207446", "0.61312985", "0.61132365", "0.609304",...
0.76405764
0
Promotes new_expiry to expiry.
def mgz0(YKHO): for ZfUD in YKHO.new_expiry: ZfUD.moving() YKHO.expiry = sorted(YKHO.new_expiry, key=lambda WKvO: WKvO.orig_expires) YKHO.new_expiry = [] return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tbGk(YKHO, H6xl):\n if YKHO.is_cancellable:\n if YKHO.expiration != H6xl:\n RKD7.info('bo#%s: modify expiration of pending order' % YKHO.ticket)\n JRYC = o5Ya()\n H6xl = J33f(H6xl, JRYC)\n dWoo(\"Can't modify modify expiration of pending order\")\n else:...
[ "0.6488498", "0.6143769", "0.5902444", "0.5682059", "0.5525352", "0.54472095", "0.5412708", "0.5358802", "0.5306796", "0.5305444", "0.52702665", "0.5263881", "0.5237109", "0.52044123", "0.519679", "0.5190725", "0.5186643", "0.5186452", "0.5183078", "0.5131201", "0.5110786", ...
0.4541154
83
Get the absolute path of the given path relative to the project root.
def tk5Y(*qIxc): return gzes(WQbV(TLI7(xAKo)), *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SOoY(pmON):\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..', pmON))", "def IE9V(pmON: str) -> str:\n if Hy7s.path.isabs(pmON):\n return pmON\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), pmON)", "def hgmy(pmON):\n Yb80 = Pxdw.abspath(pmON)\n return Yb80", ...
[ "0.8670202", "0.84047705", "0.8294552", "0.821738", "0.820904", "0.8198882", "0.811792", "0.8009987", "0.79817665", "0.79465127", "0.79298115", "0.79059446", "0.7758221", "0.76706994", "0.7659717", "0.761842", "0.7523429", "0.74900115", "0.7480654", "0.74671346", "0.74658513"...
0.0
-1
Changes the subreddit name. Name of the subreddit you want to change to.
def H5CD(YKHO, Rz3H): YKHO.nameOfSubreddit = Rz3H YKHO.subreddit = YKHO.praw.subreddit(d51w)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXji(YKHO, Dokz):\n YKHO.__name = Dokz", "def zXji(YKHO, Dokz):\n YKHO.__name = Dokz", "def hdmD(YKHO, o3RU):\n if o3RU != '':\n ouAn = YKHO.format + Hy7s.sep + 'playlists' + Hy7s.sep + o3RU + '.txt'\n Hy7s.replace(YKHO.path, ouAn)\n YKHO.path = ouAn", "def Dokz(YKHO, Dokz):...
[ "0.6665063", "0.6665063", "0.6544932", "0.6535344", "0.638324", "0.63765067", "0.63743895", "0.636293", "0.6334866", "0.612783", "0.612274", "0.612274", "0.6089802", "0.6071336", "0.60371286", "0.6034261", "0.6018913", "0.6016731", "0.6003661", "0.59978575", "0.591629", "0....
0.77809405
0
Initialize hyperparameters for the spectralmixture kernel. Weights are all set to be uniformly distributed, means are given as the peaks in the frequency spectrum, and variances are given by a random sample from a uniform distribution with a max equal to the max distance.
def rET1(T8ck, WKvO, LVAh, gAeH, jjOw, dL0L, WnJt=2): WKvO = oyIN.atleast_2d(WKvO) LVAh = oyIN.atleast_2d(LVAh) exwG, lWPh = WKvO.shape yzQ0 = oyIN.zeros(T8ck) r8hN = oyIN.zeros((lWPh, T8ck)) KCHu = oyIN.zeros((lWPh, T8ck)) yzQ0[:] = oyIN.std(LVAh) / T8ck F6fO = {'cov': oyIN.zeros(T8ck +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8Xp(YKHO):\n nIVP = 1.0 / epAf.sqrt(YKHO.weight.data.size(1))\n YKHO.weight.data.uniform_(-nIVP, nIVP)\n if YKHO.bias is not None:\n YKHO.bias.data.uniform_(-nIVP, nIVP)", "def K55i(YKHO):\n for YRbF in range(1, YKHO.L):\n YKHO.W[YRbF - 1] = oyIN.random.randn(YKHO.layer_dims[YRbF],...
[ "0.6774762", "0.6662212", "0.6590797", "0.6580719", "0.653845", "0.65343827", "0.6457986", "0.6452538", "0.64459723", "0.64149785", "0.6335864", "0.62844634", "0.6237224", "0.61584514", "0.61222535", "0.6107818", "0.6079155", "0.6045198", "0.5999778", "0.5988833", "0.598171",...
0.5759183
59
Initialize hyperparameters for the spectralmixture kernel. Weights are all set to be uniformly distributed, means are given by a random sample from a uniform distribution scaled by the Nyquist frequency, and variances are given by a random sample from a uniform distribution scaled by the max distance.
def HGYt(T8ck, WKvO, LVAh, gAeH): WKvO = oyIN.atleast_2d(WKvO) LVAh = oyIN.atleast_2d(LVAh) exwG, lWPh = WKvO.shape yzQ0 = oyIN.zeros(T8ck) r8hN = oyIN.zeros((lWPh, T8ck)) KCHu = oyIN.zeros((lWPh, T8ck)) yzQ0[:] = oyIN.std(LVAh) / T8ck F6fO = {'cov': oyIN.zeros(T8ck + 2 * lWPh * T8ck), '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8Xp(YKHO):\n nIVP = 1.0 / epAf.sqrt(YKHO.weight.data.size(1))\n YKHO.weight.data.uniform_(-nIVP, nIVP)\n if YKHO.bias is not None:\n YKHO.bias.data.uniform_(-nIVP, nIVP)", "def K55i(YKHO):\n for YRbF in range(1, YKHO.L):\n YKHO.W[YRbF - 1] = oyIN.random.randn(YKHO.layer_dims[YRbF],...
[ "0.6870166", "0.67820096", "0.66796654", "0.667258", "0.6586674", "0.65543795", "0.64954084", "0.64887315", "0.64326423", "0.64283997", "0.6424432", "0.6400535", "0.63936627", "0.6386461", "0.62629104", "0.62402385", "0.6229552", "0.61286724", "0.6112169", "0.61040556", "0.60...
0.5852104
56
Check if clusters1 equals to clusters2, return True if so, or False if not.
def rI60(xqk9, d3wu, G1Hx, ciuT): for YRbF in range(G1Hx): for r845 in range(ciuT): if xqk9[YRbF][r845] != d3wu[YRbF][r845]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xrXi(YE9m, h1t6):\n if YE9m.covers(h1t6) and h1t6.covers(YE9m):\n return True\n else:\n return False", "def QXmg(Emd4, dg7v, iYf1, e2AD=0.8):\n if len(dg7v.indices) > len(iYf1.indices):\n uWOO = set(dg7v.indices.tolist())\n AKDa = set(iYf1.indices.tolist())\n g2pi ...
[ "0.6819774", "0.67053854", "0.6577482", "0.6567598", "0.6566153", "0.6465101", "0.6442963", "0.6380351", "0.6379164", "0.6357021", "0.63215804", "0.6296718", "0.62854797", "0.6203128", "0.62005913", "0.61896455", "0.6144872", "0.61378944", "0.6137696", "0.61299753", "0.610979...
0.8044068
0
creates n distint colors for plts, where n = num_colors
def fRt4(ydh_): import colorsys Jw9H = [] for YRbF in oyIN.arange(0.0, 360.0, 360.0 / ydh_): Hafq = YRbF / 360.0 TfMy = (50 + oyIN.random.rand() * 10) / 100.0 dU3c = (90 + oyIN.random.rand() * 10) / 100.0 Jw9H.append(colorsys.hls_to_rgb(Hafq, TfMy, dU3c)) return Jw9H
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hEct(QR6r):\n Jw9H = []\n for YRbF in oyIN.arange(0.0, 360.0, 360.0 / QR6r):\n MKlR = YRbF / 360.0\n vC9B = (50 + oyIN.random.rand() * 10) / 100.0\n KCHu = (90 + oyIN.random.rand() * 10) / 100.0\n Jw9H.append(ljK1(MKlR, vC9B, KCHu))\n return Jw9H", "def IDo1(exwG, em8M='t...
[ "0.749464", "0.74524117", "0.7178915", "0.71482074", "0.7119622", "0.7088267", "0.6929152", "0.6905464", "0.68315506", "0.6754532", "0.672276", "0.6686234", "0.6637927", "0.66152275", "0.6572149", "0.6569774", "0.6569445", "0.65186614", "0.650056", "0.6491387", "0.6475267", ...
0.66890764
11
Create a Pandas DataFrame out of a .yaml file. Examples
def M0Vj(Ux0P: str) -> AzJI[rLdf.DataFrame, h8nf[str]]: with open(Ux0P, 'r') as eHNT: fGC9 = eJb6.load(eHNT, Loader=eJb6.SafeLoader) bNKA = fGC9.pop('__project__', None) nPrm: cuzp[str, cuzp[AzJI[eA6S, eA6S], ImMB]] = {} for LEev, hQHm in fGC9.items(): for Xyq7, jlSq in hQHm['users'].ite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uBpU(Ux0P: Union[Path, str], _5yy: str='---', BEXQ: Optional[Dict[str, Any]]=None, KpdB: Optional[Dict[str, Any]]=None) -> AzJI[hxoQ, cuzp[str, ImMB]]:\n if hxoQ is None:\n raise ModuleNotFoundError('Module pandas is not present. Install it to read data into DataFrame.')\n import pandas as rLdf\n ...
[ "0.6223266", "0.6129303", "0.6100554", "0.60840815", "0.6082889", "0.5902778", "0.5898788", "0.5859711", "0.5854862", "0.5829673", "0.5819154", "0.58064884", "0.58064884", "0.5772481", "0.5768575", "0.57589835", "0.5717933", "0.5713953", "0.5706922", "0.5706922", "0.5701406",...
0.6970648
0
Returns the path for configuration data for all major platforms
def Pu3K(): if HwRy.platform == 'linux': GJ6S = Hy7s.path.normpath(Hy7s.path.expanduser('~/.config/phobos')) elif HwRy.platform == 'darwin': GJ6S = Hy7s.path.normpath(Hy7s.path.expanduser('~/Library/Application Support/phobos')) elif HwRy.platform == 'win32': GJ6S = Hy7s.path.normpat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V97r():\n if WCCP:\n IMp5 = Hy7s.environ.get('XDG_CONFIG_HOME', '~/.config')\n elif G9Y6:\n IMp5 = '~/Library/Application Support'\n elif _j8t:\n IMp5 = Hy7s.environ.get('APPDATA', '~/AppData/Roaming')\n else:\n raise NotImplementedError('Unknown Platform %r' % (HwRy.pl...
[ "0.7201866", "0.67362136", "0.6644315", "0.66377807", "0.6636949", "0.66022515", "0.65694153", "0.65639627", "0.65615714", "0.64916116", "0.64902836", "0.64741963", "0.6470176", "0.6469606", "0.6384029", "0.6373276", "0.63566935", "0.63498926", "0.63385725", "0.6334437", "0.6...
0.72742504
0
Returns the configuration path for userspecific blender data.
def NWgX(QaAs): if HwRy.platform == 'linux': zJkc = Hy7s.path.normpath(Hy7s.path.expanduser('~/.config/blender/{0}/config'.format(QaAs))) elif HwRy.platform == 'darwin': zJkc = Hy7s.path.normpath(Hy7s.path.expanduser('~/Library/Application Support/Blender/{0}/config'.format(QaAs))) elif HwRy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _6VY(YKHO):\n return YKHO._cfg_path", "def OpKY():\n return str(Z8HP() / 'config.cfg')", "def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)", "def jizk():\n return './' + vg61", "def s8df(mWFP):\n Rf_J = open('config.json').read()\n nPrm = qQXR.loads(Rf_J)\n return Hy7s.path.expandu...
[ "0.72044575", "0.6985214", "0.6869317", "0.68644977", "0.67701125", "0.6757046", "0.67386943", "0.6731083", "0.66863096", "0.66134137", "0.6526606", "0.650571", "0.65033567", "0.65007305", "0.64274645", "0.6427291", "0.64223856", "0.64209414", "0.6402593", "0.6392462", "0.634...
0.7370779
0
Calculate the area of each grid cell for a userprovided grid cell resolution. Area is in square meters, but resolution is given in decimal degrees.
def _zzk(B1Wx): LD1b = oyIN.deg2rad(oyIN.arange(-57, 84, B1Wx)) XL4T = 6371000 ** 2 Baah = int(360.0 / B1Wx) f0tD = XL4T * oyIN.ones(Baah)[:, None] * oyIN.deg2rad(B1Wx) * (oyIN.sin(LD1b[1:]) - oyIN.sin(LD1b[:-1])) return f0tD.T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VE3F(KM7H, D3Kn):\n A3Vt = 6371.0 * 1000.0\n H91H = ywwl.diff(KM7H)\n n_9K = ywwl.diff(D3Kn)\n Jw7X = ywwl.outer(XBKw * A3Vt * ywwl.cos(XBKw * D3Kn), H91H)\n eUWA = 60.0 * 1852.0 * n_9K\n f0tD = (Jw7X[1:] + Jw7X[:-1]) / 2.0 * eUWA[:, ywwl.newaxis]\n return f0tD", "def f0tD(YKHO):\n Nw...
[ "0.6939898", "0.6827993", "0.6783789", "0.6774796", "0.6750549", "0.67404014", "0.6659824", "0.6657721", "0.66374826", "0.66325015", "0.6627994", "0.6614619", "0.65675646", "0.653298", "0.6518739", "0.64830256", "0.6461933", "0.6324823", "0.63124484", "0.6302911", "0.6300791"...
0.743558
0
This custom filter take a string as input with comma separated values. Note that the value here is already a list as it has been transformed by the BaseInFilter class.
def EbJy(YKHO, umWR, mWFP, BWXx): return umWR.filter(name__in=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AgUk(YKHO, BWXx):\n if isinstance(BWXx, (str, g9qP)):\n BWXx = [BWXx]\n return kEyY(YKHO, BWXx, 'in')", "def WOxh(YKHO, BWXx):\n if not BWXx:\n return []\n return BWXx.split(',')", "def t9qq(BWXx):\n return '{:,}'.format(BWXx)", "def R6cN(d7pR):\n if isinstance(d7pR, list)...
[ "0.7434211", "0.64544165", "0.63526255", "0.6277826", "0.61804974", "0.6147383", "0.61087376", "0.5946269", "0.5861053", "0.58073354", "0.5784654", "0.5750738", "0.5747868", "0.57219", "0.5701402", "0.5690323", "0.55717665", "0.55665094", "0.5539709", "0.55298066", "0.5491114...
0.5347189
30
Returns a boolean indicating whether `bitmask` is enabled within the base attribute.
def xtUD(YKHO, YEnM, type=None): return bool(getattr(YEnM, YKHO.base_attr) & YKHO.bitmask)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roy7(YKHO, HkJz):\n if int(format(YKHO.__bitmask__, '016b')[2:][HkJz]) == 0:\n return True\n return False", "def w4z6(YKHO):\n return YKHO.__bitmask__", "def Plcn(XJAX, DQ3H):\n if not isinstance(DQ3H, jKi7.integer_types):\n return False\n CFmi = (mUul, CYcy, t25B)\n if XJAX...
[ "0.6370673", "0.60460484", "0.5293593", "0.51872855", "0.51568425", "0.50588435", "0.4949427", "0.49299628", "0.49284515", "0.48571622", "0.48510534", "0.48098966", "0.48055518", "0.48039997", "0.4784679", "0.4772266", "0.47695738", "0.4745472", "0.4741142", "0.47368795", "0....
0.6028671
2
Handles the home route
def kZiy(): return TvZl('home.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUar(QePW):\n bD7m = QePW.route_url('home', _app_url=NxLh(QePW))\n return MEVA(location=bD7m)", "def kZiy(YKHO, *qIxc, **B2fa):\n pass", "def kZiy():\n G9jH.info('Entering route: HOME')\n G9jH.info('Rendering template: main.html')\n return TvZl('main.html')", "def vja_():\n return vK...
[ "0.79052025", "0.78745264", "0.7848005", "0.7505829", "0.7453932", "0.7407278", "0.73913604", "0.7381116", "0.7372379", "0.7372379", "0.7320766", "0.72788364", "0.7265526", "0.7234542", "0.7204967", "0.7204967", "0.7204967", "0.7204967", "0.7204967", "0.7204967", "0.7204967",...
0.6969318
67
Creates the book table in the Book database
def FIMM(YKHO, NCls): YKHO.connection = iHv3.connect(NCls) YKHO.cursor = YKHO.connection.cursor() YKHO.cursor.execute('CREATE TABLE IF NOT EXISTS Book (Id INTEGER PRIMARY KEY, Title TEXT, Author TEXT, Year INTEGER, ISBN INTEGER)') YKHO.connection.commit()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oFa1():\n try:\n print(\"Creating 'books' table..\")\n NCls.execute('CREATE TABLE books ( id SERIAL PRIMARY KEY, isbn VARCHAR NOT NULL, title VARCHAR NOT NULL, author VARCHAR NOT NULL, year INTEGER NOT NULL )')\n prin...
[ "0.8391721", "0.8073142", "0.75710934", "0.7502907", "0.74889827", "0.7375526", "0.72876626", "0.72835785", "0.72679055", "0.72471905", "0.7243783", "0.7243783", "0.72309494", "0.7198741", "0.71855557", "0.7175286", "0.71568626", "0.71470326", "0.7044951", "0.69564736", "0.69...
0.6404445
81
Continue getting updates until the regex finds a match in a message, then return the first capture group.
def JmH8(YKHO, njyT: str, vHXg: bool=False) -> uLKX[str, Tpmx]: RKD7.debug('Waiting for a regex...') while True: QdZT = YKHO.__receive_next_update() if isinstance(QdZT, Tpmx): if vHXg: return QdZT else: continue if QdZT.message is N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unoq(lcnE, uOe2=0):\n if lcnE:\n return lcnE.group(uOe2)\n else:\n return ''", "def PlzL(YKHO, njyT):\n if isinstance(njyT, str):\n njyT = ZbWC.compile(njyT)\n LaVg = ''\n kUBT = None\n while not kUBT:\n LaVg += Csk6(YKHO.recv(1))\n kUBT = njyT.search(LaVg...
[ "0.629262", "0.62774885", "0.6136326", "0.61299783", "0.6032749", "0.6029412", "0.59464234", "0.5920094", "0.57432276", "0.57361436", "0.5642497", "0.56279725", "0.5584992", "0.55632395", "0.5546507", "0.5532469", "0.54971576", "0.5486865", "0.54025245", "0.53982574", "0.5376...
0.69942236
0
Calculate the average score associated with this Student.
def O5mg(YKHO) -> float: return sum(YKHO._scores) / len(YKHO._scores)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eyjh(YKHO):\n return sum(YKHO.scores) / len(YKHO.scores)", "def LonD(HODG):\n return sum(HODG) / len(HODG)", "def O5mg(YKHO):\n YKHO.avg = epAf.floor((YKHO.maths + YKHO.phy + YKHO.che) / 3)\n YKHO.assign_grade()\n return YKHO.avg", "def S8vG(YKHO):\n return YKHO.summation() / YKHO.count...
[ "0.79639894", "0.73673606", "0.7196625", "0.71720856", "0.7162906", "0.71442413", "0.70670134", "0.7030095", "0.7030095", "0.6999512", "0.69382113", "0.69370216", "0.6887286", "0.68780196", "0.6849795", "0.6842055", "0.6833306", "0.6798177", "0.6760756", "0.6755839", "0.67513...
0.78896713
1
Determine the highest score associated with this Student.
def eeKf(YKHO) -> float: return max(YKHO._scores)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jB5X(YKHO):\n return max(YKHO._extract_set('score') or [0])", "def jB5X(YKHO):\n jB5X = None\n if YKHO.check_if_done_and_scored():\n jB5X = YKHO._max_score\n return jB5X", "def jB5X(YKHO):\n return YKHO.lcp.get_max_score()", "def kI8N(YKHO):\n return max(YKHO.scores)", "def jB5...
[ "0.83337474", "0.8101874", "0.8077302", "0.7876038", "0.77509063", "0.76949257", "0.7678623", "0.7557908", "0.75277", "0.74828833", "0.74728924", "0.7361729", "0.73598534", "0.72938806", "0.7234977", "0.7211712", "0.71563286", "0.71198565", "0.7111701", "0.705322", "0.6986172...
0.7729899
5
Returns self < other.
def JWbp(YKHO, Elif): lmk2 = YKHO._numerator * Elif.denominator() B9EC = Elif.numerator() * YKHO._denominator return lmk2 < B9EC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JWbp(YKHO, Elif):\n return YKHO <= Elif and YKHO != Elif", "def JWbp(YKHO, Elif):\n return YKHO <= Elif and YKHO != Elif", "def JWbp(YKHO, Elif):\n return YKHO <= Elif and (not YKHO >= Elif)", "def JWbp(YKHO, Elif):\n return YKHO.__cmp__(Elif) < 0", "def JWbp(YKHO, Elif):\n return YKHO._...
[ "0.88831526", "0.88831526", "0.88809276", "0.88266224", "0.87825954", "0.87616193", "0.8735927", "0.86838645", "0.86838645", "0.85984594", "0.8593426", "0.8587446", "0.85867065", "0.85752547", "0.85608375", "0.85526484", "0.85441566", "0.85100424", "0.85084605", "0.8507573", ...
0.79021734
98
Returns self >= other.
def Zcf_(YKHO, Elif): lmk2 = YKHO._numerator * Elif.denominator() B9EC = Elif.numerator() * YKHO._denominator return lmk2 >= B9EC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zcf_(YKHO, Elif):\n return Elif <= YKHO", "def jmxi(YKHO, Elif):\n return YKHO >= Elif and YKHO != Elif", "def jmxi(YKHO, Elif):\n return YKHO >= Elif and YKHO != Elif", "def jmxi(YKHO, Elif):\n return YKHO >= Elif and (not YKHO <= Elif)", "def jmxi(YKHO, Elif):\n return not YKHO <= Elif...
[ "0.8782747", "0.8661218", "0.8661218", "0.8599558", "0.8597423", "0.85728633", "0.85680884", "0.85315", "0.852308", "0.85042644", "0.84803677", "0.84770334", "0.84770334", "0.8403545", "0.8370605", "0.8354243", "0.8347908", "0.8347908", "0.8346253", "0.832667", "0.8312259", ...
0.0
-1
Tests self and other for equality.
def xa14(YKHO, Elif): if YKHO is Elif: return True elif not isinstance(Elif, Hruk): return False else: return YKHO._numerator == Elif.numerator() and YKHO._denominator == Elif.denominator()
{ "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 return InF8(YKHO, Elif)", "def xa14(YKHO, Elif):\n return YKHO is Elif", "def xa14(YKHO, Elif):\n return YKHO is Elif", "def aPi6(YKHO, Elif):\n ...", "def xa1...
[ "0.88391733", "0.88391733", "0.88139397", "0.86130553", "0.86130553", "0.855895", "0.85263485", "0.85263485", "0.8492665", "0.84854174", "0.84620726", "0.84174746", "0.84174746", "0.839733", "0.839733", "0.839733", "0.83951354", "0.837963", "0.83764756", "0.8330343", "0.83218...
0.0
-1
Get one from the tensor.
def Zmkp(YKHO, _0VL): assert len(_0VL) == 3, _0VL if YKHO.model_tensor is None: raise ValueError('Please set the tensor') return YKHO.model_tensor[_0VL[0], _0VL[1], _0VL[2]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xoL9(YKHO):\n return YKHO.cur_tensor", "def OHrd(mWFP):\n if mWFP.rfind(':') == -1:\n mWFP += ':0'\n return ZylS.get_default_graph().get_tensor_by_name(mWFP)", "def hNh6(YKHO, mWFP):\n return YKHO._tensor_name_to_result[mWFP]", "def hAEw(wEf2: torch.Tensor):\n return wEf2.item()", ...
[ "0.71460956", "0.67891514", "0.65588135", "0.64748013", "0.6413598", "0.638628", "0.63685715", "0.62808436", "0.62593913", "0.6162621", "0.615739", "0.61546993", "0.61231315", "0.60698557", "0.60295755", "0.60068893", "0.6005453", "0.59869796", "0.59539455", "0.59465075", "0....
0.6247127
9
Set value to the tensor.
def j6Nn(YKHO, _0VL, wEf2): assert len(_0VL) == 3, _0VL if YKHO.model_tensor is None: raise ValueError('Please set the tensor') YKHO.model_tensor[_0VL[0], _0VL[1], _0VL[2]] = wEf2 return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nSyy(YKHO, BWXx):\n YKHO.SetValue(YKHO.GetValue() + ZylS.cast(BWXx, YKHO.dtype))", "def nSyy(YKHO, BWXx):\n YKHO.SetValue(YKHO.GetValue() + ZylS.cast(BWXx, YKHO.dtype))", "def Annl(Q6kx: Node, BWXx: np.ndarray):\n if Q6kx.type != 'Const':\n raise Exception(\"Can't set value for non-constant...
[ "0.73305565", "0.73305565", "0.7164538", "0.7106505", "0.69294816", "0.6863438", "0.67309785", "0.6588569", "0.65452635", "0.6523065", "0.6523065", "0.6513894", "0.6425833", "0.6411298", "0.6411298", "0.63991857", "0.63785946", "0.6368179", "0.63664836", "0.6361774", "0.63610...
0.76344925
0
Get the first identifier for the next month.
def Ikni(YKHO, Ilxn: Identifier) -> h8nf[vd32]: Jfaf = None if Ilxn.year is not None and Ilxn.month is not None: AZet = Ilxn.year PHRj = Ilxn.month + 1 g9xt = 1 if PHRj > 12: PHRj = 1 AZet = AZet + 1 if Ilxn.is_old_id: Jfaf = '{}/{:02d}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B2Yj(_8eQ):\n lO87, x0eS = KTgU(_8eQ.year, _8eQ.month, 1)\n return type(_8eQ)(lO87, x0eS, 1)", "def OerD(YKHO, Ilxn: Identifier) -> h8nf['Identifier']:\n PI0b = None\n if Ilxn.year is not None and Ilxn.month is not None and (Ilxn.num is not None):\n AZet = Ilxn.year\n PHRj = Ilxn.mo...
[ "0.71140623", "0.70819384", "0.65288323", "0.64989054", "0.64522034", "0.6431146", "0.6364784", "0.63500136", "0.63453865", "0.62631005", "0.6257072", "0.6244404", "0.6200054", "0.6192637", "0.6188998", "0.6186235", "0.6151943", "0.61216503", "0.61216503", "0.61076903", "0.60...
0.74007684
0
Get the absolute path of this DocMetadata's source file.
def Un4K(YKHO, Vp_u: DocMetadata) -> h8nf[str]: Ilxn = Vp_u.arxiv_identifier DpZH = Vp_u.version TnP8 = Ilxn.filename if not Vp_u.is_latest: NmVZ = YKHO._get_parent_path(Ilxn, DpZH) TnP8 = f'{TnP8}v{DpZH}' else: NmVZ = YKHO._get_parent_path(Ilxn) for Fst3 in l20L: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f_2V(YKHO) -> str:\n return YKHO._source_file_path", "def UBTC(YKHO):\n return YKHO.source_path", "def vFAS(YKHO):\n return YKHO.get_attribute('source_file')", "def pmON(YKHO) -> str:\n return YKHO.src + '/'", "def JZXy(YKHO) -> str | GkAb:\n return YKHO._source", "def OyQC(YKHO):\n ...
[ "0.8547733", "0.82610506", "0.8053611", "0.7574011", "0.75686365", "0.7461368", "0.74287295", "0.73307705", "0.7301582", "0.7259421", "0.725329", "0.7234538", "0.7218298", "0.7183691", "0.7129371", "0.7121566", "0.710466", "0.70831716", "0.707813", "0.70628047", "0.6983357", ...
0.7473641
5
Get the absolute parent path of the provided identifier.
def Chi4(YKHO, Ilxn: Identifier, DpZH: Optional[int]=None) -> str: NmVZ = Hy7s.path.join(YKHO.latest_versions_path if not DpZH else YKHO.original_versions_path, 'arxiv' if not Ilxn.is_old_id or Ilxn.archive is None else Ilxn.archive, 'papers', Ilxn.yymm) return NmVZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAwq(YKHO, hbFX) -> str:\n return list(YKHO._nodes[hbFX]['parents'].keys())[0]", "def su__(pmON):\n return SOoY(Hy7s.path.dirname(pmON))", "def byFZ():\n nS60 = ecBp()\n return nS60.parent_id", "def PAwq(pmON):\n _AKB = Hy7s.path.dirname(pmON)\n try:\n IE9V(_AKB)\n except:\n ...
[ "0.74234164", "0.7001471", "0.698503", "0.69271344", "0.69162315", "0.6713711", "0.6697498", "0.66670144", "0.66431475", "0.66178703", "0.6597941", "0.6594848", "0.6549766", "0.6548474", "0.6538243", "0.6464383", "0.64623785", "0.64418644", "0.64418644", "0.63819927", "0.6351...
0.7567351
0
Common util function that generates random string of desired length from set of letters and digits
def szjw(u54L): return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(u54L)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zfgd(FVpJ: int=4) -> str:\n PdTY = vIwR.ascii_letters + vIwR.digits\n return ''.join((tuKI.choice(PdTY) for YRbF in range(FVpJ)))", "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def BWvy(u54L=8):\n return ''.join([tuKI.choice(...
[ "0.81941396", "0.8172787", "0.814063", "0.81391037", "0.8110602", "0.8100234", "0.80905783", "0.8060947", "0.803296", "0.8026487", "0.8021553", "0.8010257", "0.80099964", "0.80039036", "0.79910237", "0.79653245", "0.7934098", "0.7928981", "0.7907178", "0.79025376", "0.7882018...
0.767259
53
Returns a JSON response, transforming 'context' to make the payload.
def EK31(YKHO, QpfX, **TIVb): return jnRN(YKHO.get_data(QpfX), **TIVb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(YKHO.convert_context_to_json(QpfX))", "def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(YKHO.convert_context_to_json(QpfX))", "def EK31(YKHO, QpfX, **TIVb):\n return igJ6(YKHO.convert_context_to_json(QpfX), content_type='application/json', **T...
[ "0.7898263", "0.7824009", "0.76766837", "0.76766837", "0.7560496", "0.75058556", "0.73821956", "0.73662317", "0.7348336", "0.7347456", "0.7309291", "0.7130906", "0.6941217", "0.6892298", "0.6722085", "0.663044", "0.663044", "0.663044", "0.663044", "0.6624278", "0.66101027", ...
0.74115
9
Gets the label/shape field from example as a list of int64.
def UovK(PU1l): assert len(PU1l.features.feature['label/shape'].int64_list.value) == 1 return PU1l.features.feature['label/shape'].int64_list.value[:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GHRA(PU1l):\n wEf2 = PU1l.features.feature['label'].int64_list.value\n if wEf2:\n return int(wEf2[0])\n else:\n return None", "def Ceom(YKHO):\n return [(G1Hx, Ty9i.shape) for G1Hx, Ty9i in YKHO.label]", "def Ceom(YKHO):\n return [(G1Hx, tuple([1] + list(Ty9i.shape[1:]))) for G...
[ "0.679036", "0.6569586", "0.62951785", "0.6134868", "0.6108419", "0.59921026", "0.59756845", "0.5952071", "0.5952071", "0.59401375", "0.58788294", "0.5849895", "0.5831298", "0.5816761", "0.5816761", "0.5807753", "0.5801871", "0.5795513", "0.5795513", "0.5795513", "0.5794914",...
0.74587005
0
Returns tf.Example created from the given DeepConsensusInput proto.
def cU8e(qTPe: deepconsensus_pb2.DeepConsensusInput, M4aF: int, aOQR: bool, G_Si: Optional[Dict[str, metrics.Metrics.counter]]=None) -> h8nf[ZylS.train.Example]: if not qTPe.subreads: if G_Si and G_Si['examples_no_subreads_counter']: G_Si['examples_no_subreads_counter'].inc() return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uDrR(PU1l):\n return PU1l.features.feature['deepconsensus_input/encoded'].bytes_list.value[0]", "def fMtB(YKHO):\n JZXy = oyIN.random.randn(YKHO.batch_size, YKHO.max_decode_length, YKHO.input_depth)\n nYBQ = oyIN.random.randint(0, YKHO.max_decode_length, [YKHO.batch_size])\n i7rd = oyIN.random.ra...
[ "0.6588792", "0.5950223", "0.58684516", "0.5803522", "0.5487936", "0.5469294", "0.5404084", "0.5355273", "0.527753", "0.51956975", "0.5192631", "0.51771414", "0.516648", "0.51630205", "0.51613873", "0.51525664", "0.5150702", "0.5136441", "0.51273745", "0.5113387", "0.511311",...
0.70847815
0
Gets the donor_participant of this AllOfCreateClaimResponseClaim.
def KgNB(YKHO) -> xBeT: return YKHO._donor_participant
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KgNB(YKHO, KgNB: Object):\n YKHO._donor_participant = KgNB", "def zAlC(YKHO) -> taV9:\n return YKHO._participant", "def zAlC(YKHO) -> dUAa:\n return YKHO._participant", "def FIMM(YKHO, KgNB: Object=None, id: str=None, jGRS: str=None, pUus: datetime=None, x8SS: datetime=None, TO1Y: datetime=None)...
[ "0.64143723", "0.62174505", "0.5898315", "0.50857437", "0.49990976", "0.48347864", "0.48060545", "0.46557683", "0.45774764", "0.45774764", "0.45192257", "0.4476471", "0.44539085", "0.4446725", "0.4414176", "0.43843213", "0.43202215", "0.43045747", "0.42562267", "0.42562267", ...
0.7721172
0
Gets the id of this AllOfCreateClaimResponseClaim.
def id(YKHO) -> str: return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BvDG(YKHO) -> str:\n return YKHO._claim_id", "def BvDG(YKHO) -> str:\n return YKHO._claim_id", "def m8z6(YKHO):\n vjcZ = Ucfl()\n return vjcZ.create(nNXP.payload)", "def zAlC(YKHO) -> dUAa:\n return YKHO._participant", "def zAlC(YKHO) -> taV9:\n return YKHO._participant", "def mLJR(...
[ "0.64186335", "0.64186335", "0.56785434", "0.5100735", "0.5089649", "0.49505824", "0.4929038", "0.478927", "0.47847793", "0.4719559", "0.46991652", "0.46991652", "0.46991652", "0.46991652", "0.46991652", "0.46991652", "0.46991652", "0.46991652", "0.46991652", "0.46991652", "0...
0.0
-1
Sets the id of this AllOfCreateClaimResponseClaim.
def id(YKHO, id: str): if id is None: raise ValueError('Invalid value for `id`, must not be `None`') YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def id(YKHO, _eu6):\n YKHO.metadata['id'] = _eu6", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def BvDG(YKHO, BvDG: str):\n if BvDG is None:\n raise ValueError('Invalid value for `claim_id`, must not...
[ "0.54797524", "0.54327804", "0.5338967", "0.53236276", "0.529317", "0.529317", "0.5160128", "0.5160128", "0.5160128", "0.5160128", "0.5160128", "0.5097142", "0.5097142", "0.5097142", "0.5097142", "0.5097142", "0.5097142", "0.5097142", "0.5097142", "0.5097142", "0.5097142", ...
0.0
-1
Gets the status of this AllOfCreateClaimResponseClaim.
def jGRS(YKHO) -> str: return YKHO._status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO):\n lhy8 = YKHO.properties\n if lhy8:\n if lhy8.get('created'):\n return oOa7", "def m8z6(YKHO):\n vjcZ = Ucfl()\n return vjcZ.create(nNXP.payload)", "def eLpg(YKHO):\n return True == YKHO.client.put(YKHO.name).getBodyData('ok')", "def jGRS(YKHO) -> h8nf['output...
[ "0.572883", "0.55275935", "0.54706526", "0.52699614", "0.5234164", "0.5156991", "0.48911265", "0.48664638", "0.48566645", "0.4801761", "0.48016563", "0.47769982", "0.47740877", "0.47602236", "0.47471672", "0.47409746", "0.47378886", "0.4730465", "0.47272745", "0.47255358", "0...
0.0
-1
Split the dataset with train_percentage
def FJfc(__n6, LoCj, LTqX, R0g6): nzV8, BVu8, OJCd, PdIf = bHtP(__n6[LTqX], __n6[R0g6], train_size=LoCj) return (nzV8, BVu8, OJCd, PdIf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vtzv(__n6, LoCj=0.8):\n YA22 = int(len(__n6) * LoCj)\n return ht2j.utils.data.random_split(__n6, (YA22, len(__n6) - YA22))", "def FJfc(__n6, LoCj, IdWs):\n nzV8, BVu8, OJCd, PdIf = bHtP(__n6[:, :-1], __n6[:, -1], train_size=LoCj + IdWs, test_size=1 - (LoCj + IdWs))\n NSn2 = nzV8[int(oyIN.ceil(LoC...
[ "0.8460871", "0.8151334", "0.7983524", "0.7791796", "0.76440144", "0.7603226", "0.7581921", "0.7538712", "0.7538712", "0.7535976", "0.7356462", "0.7356462", "0.72785723", "0.72672325", "0.7246208", "0.7207059", "0.71712476", "0.7159764", "0.7064658", "0.7043388", "0.7031485",...
0.769264
4
Returns a list of all a project's components.
def AdfU(TLQ0, sLuy): AdfU = TLQ0.project_components(sLuy) MOPg = sorted(['id', 'name', 'self']) usx6 = [[Ty9i for G1Hx, Ty9i in sorted(UksD.items()) if G1Hx in MOPg] for UksD in AdfU] usx6.insert(0, MOPg) NCFm(a7tU(usx6))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cxPg():\n if '.wcscanner' not in Hy7s.listdir(QpfX.__BASE_PATH__):\n return []\n return Hy7s.listdir(QpfX.__PROJECTS_PATH__)", "def PKRp(YKHO):\n K31W = YKHO.get_unaligned_path()\n bo34.debug('collecting list of projects')\n return [XP5J for XP5J in Hy7s.listdir(K31W) if len(CkpI.get_pr...
[ "0.7027259", "0.68796676", "0.6818949", "0.6719623", "0.67192936", "0.6683855", "0.66704535", "0.66671795", "0.66467714", "0.6640229", "0.65798545", "0.6556899", "0.65495473", "0.65493363", "0.65490365", "0.6516722", "0.6468194", "0.64657927", "0.64543396", "0.64378566", "0.6...
0.63358796
31
Unload a config entry.
async def async_unload_entry(RUgX: OpenPeerPower, bTKY: ConfigEntry) -> bool: return await RUgX.config_entries.async_unload_platforms(bTKY, aprE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k", "async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True", "async def async_unload_entry(ajET: HomeAssis...
[ "0.697284", "0.6888074", "0.6779855", "0.6747459", "0.6689002", "0.6657831", "0.66162205", "0.6603433", "0.65925974", "0.65595686", "0.65411645", "0.6507643", "0.6507643", "0.6507643", "0.6507643", "0.64977276", "0.64931643", "0.6486601", "0.6486601", "0.6486601", "0.6486601"...
0.58642447
78
returns the number of combinations of size k that can be made from n items. >>> nchoosek(5,3) 10 >>> nchoosek(1,1) 1 >>> nchoosek(4,2) 6
def Qkt3(exwG, G1Hx): if (exwG, G1Hx) in d6AQ: return d6AQ[exwG, G1Hx] if G1Hx == 0: return 1 if exwG == G1Hx: return 1 if exwG < G1Hx: return 'n must be greater than k' Aofo = Qkt3(exwG - 1, G1Hx - 1) + Qkt3(exwG - 1, G1Hx) d6AQ[exwG, G1Hx] = Aofo return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qkt3(exwG, G1Hx):\n if exwG < G1Hx:\n return 0\n return Qrt_(exwG, [G1Hx, exwG - G1Hx])", "def WRiD(ywwl, nMvt):\n return TFEx(ywwl) // (TFEx(ywwl - nMvt) * TFEx(nMvt))", "def WRiD(exwG: int, G1Hx: int) -> int:\n if G1Hx > exwG or G1Hx < 0 or exwG < 0:\n return 0\n G1Hx = min(G...
[ "0.8256239", "0.7943082", "0.77849466", "0.77155447", "0.75553346", "0.75553226", "0.7516673", "0.7516673", "0.7516148", "0.74694544", "0.73904", "0.7390276", "0.7361454", "0.72738117", "0.72258496", "0.7099127", "0.7037198", "0.7019336", "0.70099944", "0.7001311", "0.6997127...
0.7859963
2
Return the source type, eg gps or router, of the device.
def zEt5(YKHO) -> n_JI: return n_JI.ROUTER
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zEt5(YKHO):\n return MqPP", "def zEt5(YKHO):\n return MqPP", "def zEt5(YKHO):\n return Z4Pi", "def zEt5(YKHO):\n return Z4Pi", "def zEt5(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'source_type')", "def zEt5(YKHO):\n return YKHO._source_type", "def zEt5(YKHO):\n return YKHO._so...
[ "0.79885626", "0.79885626", "0.7760277", "0.7760277", "0.7449024", "0.72812986", "0.71759343", "0.66198623", "0.6579725", "0.64343446", "0.6371079", "0.62237245", "0.6218695", "0.6187604", "0.6182113", "0.61786586", "0.61733663", "0.61695445", "0.6154849", "0.6086145", "0.608...
0.7750512
5
Return True if currency_code valid, False otherwise.
def F5im(YKHO, uvmn): if uvmn in YKHO.travel_db.currencies: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ScFM(uvmn):\n try:\n mVUw = b5Lm.get_rates(uvmn)\n return 0\n except:\n Dwep(f'Error: {uvmn} is not a valid currency')\n return 1", "def HWOC(YKHO, Wxnj):\n return Wxnj in sikS", "def SGVO(kAHQ):\n return bool(ZbWC.match(GnvC, kAHQ, ZbWC.VERBOSE)) if kAHQ else False"...
[ "0.759342", "0.70800674", "0.6537341", "0.62727094", "0.62223756", "0.619591", "0.6130835", "0.60933155", "0.6079185", "0.6059149", "0.6046414", "0.60261106", "0.5977034", "0.59302557", "0.5910405", "0.5875142", "0.5865183", "0.5845647", "0.5834872", "0.57638985", "0.57544607...
0.85613906
0
Check if a project/subject/session identifier is valid. Identifiers can only contain alphanumeric characters and underscores.
def I_jm(YKHO, Ilxn): for Z9rn in Ilxn: if Z9rn not in vIwR.letters + vIwR.digits + '_': return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pCnr(bNKA):\n if len(bNKA) < 6 or len(bNKA) > 30:\n return False\n return bool(ZbWC.match('^[a-z][a-z0-9\\\\-]*[a-z0-9]$', bNKA))", "def yaKH(vIwR):\n ewCu = 0\n if vIwR in peBr.kwlist:\n odKW = (False, \"Invalid: can't use a keyword as your identifier!\")\n return odKW\n ...
[ "0.7817043", "0.7263203", "0.71657807", "0.6915533", "0.6915533", "0.6901704", "0.68005633", "0.6792642", "0.67050254", "0.6685971", "0.6454717", "0.64318484", "0.6427234", "0.64037365", "0.6375381", "0.6367689", "0.6350279", "0.6343211", "0.6312446", "0.63092995", "0.6287927...
0.7744844
1
Converts string to URL compatible.
def ZdpQ(Ghho: str) -> str: return uRlK.parse.quote(Ghho)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wcP7(YKHO, l5Ny):\n return WUqv(l5Ny)", "def bD7m(BWXx: Any) -> str:\n BVQw = str(BWXx)\n if KVWQ(BVQw).scheme in ['http', 'https']:\n return YWvJ(str, qjHC.Schema(qjHC.Url())(BVQw))\n raise qjHC.Invalid('Invalid URL')", "def BkLH(KCHu, p4k2='utf-8'):\n if isinstance(KCHu, QMSQ):\n ...
[ "0.6706412", "0.6616591", "0.6346535", "0.63381904", "0.6220913", "0.6202903", "0.6197797", "0.6176937", "0.6167852", "0.6164724", "0.61420554", "0.61230433", "0.6118814", "0.61146235", "0.6109616", "0.60942715", "0.60720885", "0.6057571", "0.6017928", "0.59949386", "0.595964...
0.5838849
35
Get most likely categorical variables (onehot)
def rPcN(YKHO): P1bS = YKHO.theta.argmax(axis=1) Kt_s = oyIN.zeros((YKHO.d, YKHO.max)) for YRbF, Z9rn in enumerate(P1bS): Kt_s[YRbF, Z9rn] = 1 return Kt_s
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ELEM(GQ7f):\n return oyIN.argmax(GQ7f, axis=1)", "def Zb2C(jQ3Z: pd.DataFrame):\n oZgT = 10\n for iVRZ in jQ3Z.columns:\n if jQ3Z[iVRZ].nunique() <= oZgT:\n jQ3Z[iVRZ] = jQ3Z[iVRZ].astype('category')", "def KXY9(nPrm: ndarray):\n return oyIN.argmax(nPrm, axis=-1)", "def KLLm...
[ "0.7186164", "0.71264297", "0.700594", "0.6770333", "0.66180325", "0.6554686", "0.65422523", "0.6527132", "0.6494277", "0.6475236", "0.64435905", "0.64244854", "0.64193946", "0.64063036", "0.6401098", "0.63921547", "0.63824326", "0.63524544", "0.63380814", "0.6334604", "0.632...
0.0
-1
Returns a list of field names that should have their last used values persisted on a perproject basis.
def Mjva(YKHO): return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gNGg(YKHO):\n tF9S = YKHO._by_name\n return [mWFP for mWFP in YKHO._names if tF9S[mWFP].stored]", "def sPVJ(YKHO):\n Wq02 = YKHO._fields.keys()\n Wq02.remove('time')\n Wq02.remove('lon')\n Wq02.remove('lat')\n return Wq02", "def NSNj(YKHO):\n return YKHO.base_field_names() + list(YK...
[ "0.7186901", "0.66612464", "0.6604475", "0.64602005", "0.6406558", "0.6403274", "0.63492525", "0.63447577", "0.63416326", "0.6341628", "0.6330346", "0.63049877", "0.6242699", "0.6180476", "0.615603", "0.61414677", "0.6139766", "0.6136323", "0.6128718", "0.611067", "0.61068535...
0.543067
87
Returns the display name of the issue. This is not required but helpful for integrations whose external issue key does not match the disired display name.
def ibrm(YKHO, ZcWA): return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQNS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO...
[ "0.71604306", "0.71604306", "0.71604306", "0.7145177", "0.7145177", "0.7145177", "0.7145177", "0.7145177", "0.7145177", "0.7145177", "0.7145177", "0.7145177", "0.7145177", "0.7145177", "0.7145177", "0.70821923", "0.69916433", "0.69874066", "0.69397634", "0.69397634", "0.69397...
0.8553241
0
return the current position in axis y
def CU0i(YKHO): return YKHO.__pos_y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BBTF(YKHO):\n return YKHO.position.y", "def boAb(YKHO):\n return YKHO.actual_coordinates[1]", "def yDCK(YKHO):\n return YKHO.coords[1]", "def LVAh(YKHO):\n return YKHO.position.y", "def OwtU(YKHO):\n return YKHO.__y_axis", "def bDS1(YKHO):\n return YKHO.position[1]", "def boAb(YKH...
[ "0.8298365", "0.819705", "0.8127928", "0.8116509", "0.80807966", "0.8054", "0.80265415", "0.80205864", "0.80196774", "0.79003936", "0.7895202", "0.7861297", "0.78577423", "0.78577423", "0.77969265", "0.7770738", "0.77373946", "0.7711272", "0.7710626", "0.76898646", "0.7657803...
0.8150986
2
Return an empty RequiredParameters object.
def UQ6f(YKHO) -> YgsZ: return YgsZ([])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YTov():\n return {}", "def sidz(YKHO):\n RelB = YKHO.get_empty_fields()\n return [eHNT for eHNT in RelB if eHNT in YKHO.REQUIRED_FIELDS]", "def KjUZ(YKHO) -> list:\n dixj = []\n if YKHO.no_params or YKHO.params_optional:\n return []\n else:\n for k78t, Dujw in YKHO.parameter...
[ "0.7562365", "0.6865271", "0.6684548", "0.6580648", "0.642038", "0.6418872", "0.63192177", "0.6319068", "0.6306489", "0.6298723", "0.623854", "0.62329423", "0.6214493", "0.61800486", "0.61040115", "0.6102065", "0.6099858", "0.6063706", "0.60514194", "0.6025997", "0.6002806", ...
0.86397606
0
Return an empty RequiredParameters object.
def UQ6f(YKHO) -> YgsZ: return YgsZ([])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YTov():\n return {}", "def sidz(YKHO):\n RelB = YKHO.get_empty_fields()\n return [eHNT for eHNT in RelB if eHNT in YKHO.REQUIRED_FIELDS]", "def KjUZ(YKHO) -> list:\n dixj = []\n if YKHO.no_params or YKHO.params_optional:\n return []\n else:\n for k78t, Dujw in YKHO.parameter...
[ "0.7562365", "0.6865271", "0.6684548", "0.6580648", "0.642038", "0.6418872", "0.63192177", "0.6319068", "0.6306489", "0.6298723", "0.623854", "0.62329423", "0.6214493", "0.61800486", "0.61040115", "0.6102065", "0.6099858", "0.6063706", "0.60514194", "0.6025997", "0.6002806", ...
0.86397606
1
Split string by upper case letters. F.e. useful to convert camel case strings to underscore separated ones. words (list)
def sL1n(vIwR): V22M = [] lAJZ = 0 for h4Sm, hcXw in enumerate(vIwR): if hcXw.isupper() and lAJZ < h4Sm: V22M.append(vIwR[lAJZ:h4Sm].lower()) lAJZ = h4Sm V22M.append(vIwR[lAJZ:].lower()) return '_'.join(V22M)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pudl(GIN8):\n JOqi = ''\n for YRbF in GIN8:\n JOqi += ' %s' % YRbF if YRbF.isupper() else YRbF\n return JOqi.strip()", "def UFs4(l5Ny):\n hHld = ZbWC.finditer('.+?(?:(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|$)', l5Ny)\n return [r8hN.group(0) for r8hN in hHld]", "def YjB9(l5Ny, RhG...
[ "0.7751512", "0.7259431", "0.7180602", "0.7063711", "0.70595056", "0.70409745", "0.69426405", "0.6801742", "0.67717946", "0.6744924", "0.67325515", "0.6694427", "0.6669808", "0.6653575", "0.6632303", "0.66086304", "0.66041285", "0.66029406", "0.65299785", "0.65299785", "0.649...
0.63527435
28
Siftup the last node (end1) in the given max heap.
def _T8w(gGCN, yKcO, Os4s): YRbF = Os4s - 1 ISqI = False while YRbF > yKcO and (not ISqI): _AKB = (YRbF - 1) // 2 if qk7K(gGCN[YRbF], gGCN[_AKB]) > 0: gGCN[YRbF], gGCN[_AKB] = (gGCN[_AKB], gGCN[YRbF]) YRbF = _AKB else: ISqI = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BXfP(gGCN, yKcO, Os4s):\n YRbF = yKcO\n ISqI = False\n while not ISqI:\n LFlW = YRbF * 2 + 1\n _tIi = YRbF * 2 + 2\n CjUr = YRbF\n if LFlW < Os4s and qk7K(gGCN[LFlW], gGCN[CjUr]) > 0:\n CjUr = LFlW\n if _tIi < Os4s and qk7K(gGCN[_tIi], gGCN[CjUr]) > 0:\n ...
[ "0.71801686", "0.7001086", "0.6813224", "0.65404683", "0.6508815", "0.6496566", "0.6474151", "0.63565713", "0.63440263", "0.6343961", "0.6335834", "0.63289756", "0.63112545", "0.6272625", "0.62513417", "0.6242469", "0.6241716", "0.61991626", "0.6170931", "0.6164732", "0.61421...
0.73906344
0
Reorder a given array into a max heap.
def QZno(qw7D): exwG = len(qw7D) Q6kx = (exwG - 2) // 2 while Q6kx >= 0: BXfP(qw7D, Q6kx, exwG) Q6kx -= 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sEWy(qw7D):\n ZfWN = len(qw7D) - 1\n docK.heapify(qw7D, ZfWN)\n for Os4s in range(ZfWN, 0, -1):\n qw7D[Os4s], qw7D[0] = (qw7D[0], qw7D[Os4s])\n docK.sift_down(qw7D, 0, Os4s - 1)", "def QZno(qw7D, ZfWN):\n cntZ = (ZfWN - 1) // 2\n for yKcO in range(cntZ, -1, -1):\n docK.sif...
[ "0.7620014", "0.7408683", "0.7295518", "0.7191452", "0.7178755", "0.71406955", "0.7130052", "0.70784956", "0.70300376", "0.6989501", "0.69802624", "0.6953432", "0.6950196", "0.6909327", "0.69041264", "0.68877125", "0.68816626", "0.6856917", "0.6704577", "0.66487557", "0.66159...
0.69547015
11
Initalize name and age attibutes.
def FIMM(YKHO, mWFP, ZJe_): YKHO.name = mWFP YKHO.age = ZJe_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, c9ua, zp3f, ZJe_):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f\n YKHO.age = ZJe_", "def FIMM(YKHO, c9ua, zp3f, ZJe_):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f\n YKHO.age = ZJe_", "def FIMM(YKHO, c9ua, zp3f, ZJe_):\n YKHO.first_name = c9ua\n YKHO.last_name = z...
[ "0.74732316", "0.74732316", "0.74732316", "0.74732316", "0.74732316", "0.74732316", "0.74732316", "0.74732316", "0.7472384", "0.736729", "0.7351724", "0.7351724", "0.7351724", "0.7351724", "0.72921795", "0.7189177", "0.7124933", "0.711583", "0.6997387", "0.6881059", "0.686831...
0.75609356
1
Reduce product of x.
def Lx3t(WKvO): return xBlr.reduce(lambda WKvO, LVAh: WKvO * LVAh, WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QRFO(WKvO):\n return xBlr.reduce(lambda jzdc, Fg_i: jzdc * Fg_i, WKvO, 1)", "def QRFO(YKHO, WKvO, LVAh):\n return YKHO.reduce(WKvO + LVAh)", "def QRFO(vC9B):\n return Pusg(lambda jzdc, Fg_i: jzdc * Fg_i, vC9B)", "def QRFO(yv6U):\n return Pusg(AdrB, yv6U, 1)", "def yD3O(Q6uT):\n return Pu...
[ "0.8485899", "0.75339127", "0.71145695", "0.70959675", "0.7030964", "0.70278287", "0.70278287", "0.70278287", "0.7009414", "0.69021314", "0.6851268", "0.6762479", "0.6750255", "0.67320514", "0.6707632", "0.66387403", "0.6615138", "0.6581234", "0.6580697", "0.65709585", "0.656...
0.8354631
1
Pad or truncate a list `x` with the values `pad_value` and `maxlen`.
def FDzx(WKvO, KLk8, KHPh=None): u54L = len(WKvO) if KLk8 > u54L: WKvO += [KHPh] * (KLk8 - u54L) elif KLk8 < u54L: WKvO = WKvO[:KLk8] return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P7Lu(list, BcCR, kjOt):\n eB5C = S5Za(list, maxlen=BcCR, padding=kjOt, truncating='post')\n return eB5C", "def ZypC(WKvO, BcCR, AhI9, YKdM='left', GR8J='left'):\n assert YKdM in ('left', 'right')\n assert GR8J in ('left', 'right')\n if len(WKvO) > BcCR:\n if YKdM == 'left':\n ...
[ "0.7232516", "0.7194974", "0.70571303", "0.7005884", "0.69063616", "0.69063616", "0.6899334", "0.68993306", "0.68805975", "0.68804926", "0.68802965", "0.6851657", "0.6702354", "0.66523", "0.6640961", "0.65956634", "0.65647626", "0.65528095", "0.6521586", "0.6515963", "0.64783...
0.8817511
0
Process all examples in the input directory. Filenames should be of the form CLASSNAMEEXAMPLENAME.yaml E.g Person001.yaml
def gNpu(YKHO): _PLx = YKHO.input_directory MdiZ = YKHO.counter_example_input_directory if _PLx is None: _PLx = GkAb.cwd() / 'examples' if MdiZ is None: MdiZ = GkAb.cwd() / 'counter_examples' for FMLJ in YKHO.input_formats: CRt7 = SC2F.glob(Hy7s.path.join(str(_PLx), f'*.{FMLJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WheD(xtX7):\n for ZfUD in teCm(xtX7 + '/*.yaml'):\n KAfx = Hy7s.path.join(xtX7, ZfUD)\n nPrm = eJb6.load(open(KAfx))\n UlWi(nPrm)", "def TxhF(AGPF):\n for wV3k in AGPF.glob('*/*.yml'):\n nPrm = eJb6.safe_load(wV3k.read_text())\n assert 'cases' in nPrm, 'A fixture need...
[ "0.6632809", "0.62900645", "0.62750703", "0.61933035", "0.6179182", "0.6156422", "0.60064507", "0.5971663", "0.5965593", "0.5941546", "0.59226394", "0.59129375", "0.5911364", "0.58914095", "0.58837914", "0.58785766", "0.5834951", "0.583384", "0.5827961", "0.58051383", "0.5797...
0.74208486
0
Get the list of example source inputs.
def s3d8(YKHO, _2sc: str=None) -> x1iM[str]: _PLx = YKHO.input_directory if _PLx is None: return [] TUQS = [] for FMLJ in YKHO.input_formats: GJWl = f'*.{FMLJ}' if _2sc is not None: GJWl = f'{_2sc}-{GJWl}' CRt7 = SC2F.glob(Hy7s.path.join(str(_PLx), GJWl)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vGUt(YKHO, PU1l):\n return PU1l", "def g4y1(YKHO) -> x1iM[str]:\n return YKHO._model.inputs", "def Zo7w(YKHO):\n return YKHO.inputs", "def w3GI(PU1l):\n return (PU1l['input_ids'], PU1l['label_ids'])", "def w3GI(PU1l):\n return (PU1l['input_ids'], PU1l['label_ids'])", "def gVj5(YKHO, *q...
[ "0.7428947", "0.7054078", "0.6997518", "0.6961838", "0.6961838", "0.6924607", "0.6878051", "0.6812642", "0.6788958", "0.6788958", "0.6788958", "0.6773123", "0.6742478", "0.67293483", "0.67270637", "0.6706153", "0.6706153", "0.6660394", "0.6660394", "0.6660394", "0.66560566", ...
0.7485938
0
Load an object from a dict, using the target class to determine the type of object to create.
def w8OG(YKHO, ix6T: Any, xAhW: Union[str, ElementName]=None) -> ImMB: if not YKHO.use_type_designators: return ix6T HJX9 = YKHO.schemaview if xAhW is None: BPVF = [Z9rn.name for Z9rn in HJX9.all_classes().values() if Z9rn.tree_root] if len(BPVF) != 1: raise ValueError(f'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Td6y(YKHO):\n G_be = {}\n wdyG = YKHO.tested_class._create_obj_by_type(G_be)\n YKHO.assertIsInstance(wdyG, YKHO.tested_class)", "def jG8h(Emd4, YEnM):\n raise NotImplementedError", "def tyeH(Csk6):\n\n def AXOg(Csk6):\n if isinstance(Csk6, list):\n BDwY = []\n fo...
[ "0.70920396", "0.6989815", "0.6780296", "0.6534313", "0.65280795", "0.650231", "0.64138657", "0.6346336", "0.625308", "0.62314886", "0.62314886", "0.62314886", "0.62314886", "0.62314886", "0.62314886", "0.62314886", "0.62314886", "0.62314886", "0.62314886", "0.62314886", "0.6...
0.7511082
0
Clones layer_op with input_tensor and weight_tensor as new inputs.
def mNlF(gjTg, FRUf, X9ER): qG6K = gjTg.name.split('/')[-1] + '_Fold' if gjTg.type == 'Conv2D': return rXs0.conv2d(FRUf, X9ER, strides=gjTg.get_attr('strides'), padding=gjTg.get_attr('padding'), use_cudnn_on_gpu=gjTg.get_attr('use_cudnn_on_gpu'), data_format=gjTg.get_attr('data_format'), name=qG6K) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E5W7(khtY, Dokz, mxPR):\n g4y1 = list(khtY.inputs)\n for bR5D in mxPR:\n g4y1[bR5D[0]] = bR5D[1]\n return Yu6k.Clone(khtY, g4y1, Dokz)", "def Cc7Y(YKHO, vHnr, XJsN=True):\n with ZylS.variable_scope(YKHO.name):\n QURz = vHnr.get_shape()[1:].dims\n GnyN = Pusg(lambda WKvO, LVAh...
[ "0.62645614", "0.6237233", "0.6156408", "0.61453366", "0.5968321", "0.58285654", "0.5824187", "0.58094114", "0.58049345", "0.5748741", "0.5666261", "0.5660313", "0.5655159", "0.5610911", "0.5606715", "0.55708444", "0.55697495", "0.5538788", "0.5504511", "0.547193", "0.5451717...
0.7447388
0
Gets tensors needed for FusedBatchNormMatch from match_result.
def cVpg(C80T, fGbJ, cWaW): FRUf = C80T.get_tensor(Pqqf) X9ER = C80T.get_tensor(BBdg) t6h8 = C80T.get_tensor(PTo0) qLo_ = C80T.get_tensor(fbmW) LT6S = fGbJ.get_attr('is_training') if LT6S: fGbJ._set_attr('_gradient_op_type', KSMo.AttrValue(s=Gv0t.as_bytes('FoldFusedBatchNormGrad'))) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wiHj(pNZh):\n Pqqf = LAGa.OpTypePattern('*')\n BBdg = LAGa.OpTypePattern('*')\n PTo0 = LAGa.OpTypePattern('*')\n fbmW = LAGa.OpTypePattern('*')\n EqGd = LAGa.OpTypePattern('*')\n UqLa = LAGa.OpTypePattern('*')\n lvVy = LAGa.OpTypePattern('Conv2D|DepthwiseConv2dNative', inputs=[Pqqf, BBdg])...
[ "0.687296", "0.53285825", "0.52761436", "0.526731", "0.52641547", "0.52601016", "0.52112883", "0.5158161", "0.51153666", "0.51105905", "0.5093035", "0.5083832", "0.5050526", "0.50354075", "0.50354075", "0.50307226", "0.50050557", "0.49959216", "0.49791405", "0.49321866", "0.4...
0.6739167
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, eTLc): return False return YKHO.to_dict() == Elif.to_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): if not isinstance(Elif, eTLc): return True return YKHO.to_dict() != Elif.to_dict()
{ "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.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Return a list of fitting parameters.
def _qPq(Emd4) -> x1iM[str]: m3DB = set() for eb_r in Emd4.__series__: m3DB.add(tq_1.signature(eb_r.fit_func)) if len(m3DB) > 1: raise O7MR('Fit functions specified in the series definition have different function signature. They should receive the same parameter set for multi-objective func...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BKAr(YKHO):\n YKHO.check_is_fitted()\n return {mWFP: YKHO._fitted_forecaster.params.get(mWFP) for mWFP in YKHO._get_fitted_param_names()}", "def fIuo(YKHO):\n return YKHO._fitted_param_names", "def xJrL(YKHO):\n fIvo = YKHO.par_obj.get_random_all()\n return oyIN.asarray([fIvo[XP5J] for XP5J ...
[ "0.7828273", "0.77081746", "0.76167715", "0.7338232", "0.7242317", "0.7235081", "0.7188947", "0.71217304", "0.70609885", "0.7037319", "0.70190436", "0.69019854", "0.68696225", "0.68649846", "0.68517315", "0.6831097", "0.68142086", "0.6786738", "0.6786738", "0.67717886", "0.67...
0.76450473
2
Return type of experiment.
def Tgab(YKHO) -> str: try: return YKHO.__experiment_metadata['experiment_type'] except (TypeError, KeyError): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HEa2(Ux0P):\n assert isinstance(Ux0P, str)\n l2JC = Ux0P.split('/')[-1].split('.')[-2].split('_')[1:-1]\n l2JC = '_'.join(l2JC)\n bo34.debug('{} is of type {}'.format(Ux0P, l2JC))\n return l2JC", "def I1UY(YKHO):\n return YKHO.test_type", "def type(YKHO) -> qe4Y.Output[str]:\n return q...
[ "0.701162", "0.69926196", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "0.6970925", "...
0.8181823
0
Interface to Dark Sky API. Requests data from Boston Airport for a specific time.
def AHyY(ITS7, H5ew): Hbl8 = QVeo(H5ew, *Nke8, time=ITS7.isoformat()) ps_8 = {'day': ITS7, 'tempMin': Hbl8['daily']['data'][0].get('temperatureMin', oyIN.nan), 'tempMax': Hbl8['daily']['data'][0].get('temperatureMax', oyIN.nan), 'summary': Hbl8['daily']['data'][0].get('summary', oyIN.nan), 'desc': Hbl8['daily']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M9B4(YKHO, WEpS, usV_, qoqK=None):\n vnBN = wvEv.parse(str(WEpS))\n ULDd = wvEv.parse(str(usV_))\n GU3c = vnBN.strftime(DeqL)\n I7uR = ULDd.strftime(DeqL)\n bo34.info('Downloading flights between {} and {} from OpenSky.'.format(vnBN, ULDd))\n dc7I = rJLP.history(GU3c, I7uR, bounds=YKHO.__data...
[ "0.62457645", "0.59939075", "0.58592993", "0.5772396", "0.5735043", "0.5696683", "0.5681655", "0.562768", "0.5607731", "0.55556893", "0.5517979", "0.54691505", "0.54423225", "0.53862786", "0.5370203", "0.5335187", "0.53251284", "0.5310476", "0.52809924", "0.5272097", "0.52525...
0.59688425
2
Escapes any characters that would be invalid in an ansible group name.
def _Yzw(YKHO, GIN8): return ZbWC.sub('[^A-Za-z0-9\\-]', '_', GIN8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aGp7(mWFP):\n return ZbWC.sub('[^\\\\w#-]', '_', mWFP)", "def mM1M(YKHO, H5ew, BWXx):\n if len(BWXx.split(':')) != 2:\n raise AssertionError('group_name {} is not prefixed'.format(BWXx))\n return BWXx", "def Lgjo(mZ1z: str) -> str:\n Lpp9 = list(mZ1z.upper())\n if not Lpp9[0].isalpha(...
[ "0.68663985", "0.59834987", "0.58701265", "0.57611465", "0.5732694", "0.571592", "0.5629738", "0.55753237", "0.5558366", "0.5516642", "0.55165267", "0.54932815", "0.5471602", "0.5458619", "0.5414491", "0.5395632", "0.5392031", "0.5369823", "0.5364962", "0.5322491", "0.5320037...
0.507992
40
Converts a dict to a JSON object and dumps it as a formatted string.
def jwV2(YKHO, nPrm, r7XA=False): if r7XA: return qQXR.dumps(nPrm, sort_keys=True, indent=2) else: return qQXR.dumps(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _MxV(Csk6):\n return TVRM.beautify(qQXR.dumps(Csk6))", "def Heza(fK8P, MnRD=4):\n return qQXR.dumps(fK8P, indent=MnRD, sort_keys=True)", "def V_Cx(Csk6):\n FUjE = '{'\n for G1Hx in Csk6:\n FUjE += f'\"{G1Hx}\":'\n if isinstance(Csk6[G1Hx], dict):\n FUjE += V_Cx(Csk6[G1H...
[ "0.78440636", "0.7770831", "0.77035886", "0.76633406", "0.76391345", "0.75981855", "0.74306023", "0.73690313", "0.72739345", "0.7262992", "0.71151763", "0.7112965", "0.70745146", "0.7053805", "0.70487416", "0.69528365", "0.69198143", "0.68998283", "0.687098", "0.6843199", "0....
0.6903701
17
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].reshape(-1).float().sum(0, keepdim=True) Ylbp.appe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R...
[ "0.76427615", "0.74189496", "0.7418079", "0.72710466", "0.72456723", "0.72446615", "0.7237539", "0.72213703", "0.7210107", "0.7058935", "0.6852219", "0.6786084", "0.67836976", "0.6768417", "0.67273885", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0....
0.0
-1
Fused elementwise_add/mul and activation layers This function computes an elementwise_add/mul cooperated with an activation.
def JFH3(WKvO, LVAh, SM7u, jDK_=-1, NXpY=0.0, AVgn=True): if isinstance(SM7u, str): SM7u = SM7u.split(',') if not isinstance(SM7u, list) or len(SM7u) != 2: raise ValueError('functor_list should be a list of str, and the length should be 2.') B0gN = oLUb('fused_elemwise_activation', **locals(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOv4(YKHO, g4y1):\n WKvO = ZylS.matmul(g4y1, YKHO.w) + YKHO.b\n WKvO = YKHO.activation(WKvO)\n return WKvO", "def pftB(epBp: np.array, XcU5: np.array, Fg_i: np.array, YDYE: str) -> oyIN.array:\n jzdc = oyIN.dot(epBp, XcU5) + Fg_i\n if YDYE == 'sigmoid':\n return m1Hg(jzdc)\n elif YDY...
[ "0.6785041", "0.66848034", "0.66607964", "0.65622807", "0.6544377", "0.6528224", "0.64593065", "0.6396585", "0.6381647", "0.63695455", "0.6353182", "0.63472384", "0.631924", "0.6301697", "0.62578636", "0.6245912", "0.62452966", "0.6238974", "0.62210476", "0.62139124", "0.6186...
0.64662856
6
Add callback to self._daemon_execute_callbacks. See service_actions function to their usages.
def GzOj(YKHO, db6b: collections.Callable) -> None: YKHO._daemon_execute_callbacks.append(db6b)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kIn6(Zsr5):\n G9jH.debug('Adding %s to post execution callback', Zsr5)\n HYLS.append(Zsr5)", "def lCie(YKHO, db6b):\n with YKHO._done_condition:\n if YKHO._state in [ttMP, pO9U]:\n YKHO._done_callbacks.append(db6b)\n return\n try:\n db6b(YKHO)\n except Excep...
[ "0.595641", "0.57329416", "0.5647649", "0.56453633", "0.56191623", "0.55979604", "0.5584443", "0.5554504", "0.5554059", "0.5503657", "0.55009544", "0.5450373", "0.54332", "0.5432897", "0.5395858", "0.53488904", "0.53168035", "0.53141373", "0.53129905", "0.53031254", "0.528276...
0.71937627
0
Model forward pass input, current input in t contextState, previous output in (t 1) the sequence of hidden states
def KVH6(YKHO, WKvO, EUJn): qAYq = ht2j.cat((WKvO, EUJn), 1) EUJn = ht2j.tanh(qAYq.mm(YKHO.W1)) hlel = EUJn.mm(YKHO.V) return (hlel, EUJn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, LYEB, _Jrn):\n MKlR = YKHO.conv(_Jrn)\n MKlR = MKlR.view(MKlR.size(0), -1)\n AJEJ = HgQS, W6b2 = YKHO.lstm(MKlR, LYEB)\n dN3z = YKHO.adv(HgQS)\n BWXx = YKHO.val(HgQS)\n c06A = ht2j.mean(dN3z, dim=1, keepdim=True)\n Ms6U = BWXx + dN3z - c06A\n return (AJEJ, Ms6U)", "def KVH6...
[ "0.70666903", "0.6960144", "0.6944148", "0.6924527", "0.68692386", "0.68370396", "0.68172926", "0.6813111", "0.68120724", "0.68052375", "0.67952406", "0.6781737", "0.67794245", "0.6764326", "0.6733078", "0.6679583", "0.66273844", "0.6616958", "0.65847284", "0.657578", "0.6555...
0.7525371
0
Determine the Young's modulus of the Elongation. Modulus is calculated as the peak of the derivative of the stress strain curve.
def ISVE(YKHO, G9Aj=None): if G9Aj is not None: raise NotImplementedError('Limits on x not yet implemented, see youngs_modulus_array().') return max(YKHO.youngs_modulus_array)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KajZ(Mx95):\n if Mx95 == 'mild':\n return 200000000000.0\n elif Mx95 == 'al':\n return 69000000000.0\n else:\n raise ValueError('Invalid material `' + Mx95 + \"'\")", "def jh8S(__n6: np.ndarray) -> KajZ:\n lEb0: int = len(__n6) // 10\n RgqX = oyIN.argmax([__n6[YRbF + lEb0]...
[ "0.75485635", "0.74274933", "0.6333822", "0.602804", "0.5853094", "0.58021337", "0.5751449", "0.5742924", "0.56657714", "0.5579836", "0.5565335", "0.55258816", "0.5520236", "0.5520098", "0.5503216", "0.54897547", "0.54739076", "0.54691815", "0.5460389", "0.5448125", "0.542998...
0.6033121
3
Multilayer Perceptron is sensitive to feature scaling, so it is highly recommended to scale your data. For example, scale each attribute on the input vector X to [0, 1] or [1, +1], or standardize it to have mean 0 and variance 1. Note that you must apply the same scaling to the test set for meaningful results.
def _dYl(HkQ6): Y5YY = txNa() Y5YY.fit(HkQ6) Lcqa = Y5YY.transform(HkQ6) return Lcqa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HH5O(Xi9O: List[SentimentExample], penX: FeatureExtractor) -> QvYK:\n raise Exception('Must be implemented')", "def HH5O(Xi9O: List[SentimentExample], penX: FeatureExtractor) -> QvYK:\n raise Exception('Must be implemented')", "def ktm1(cC56, sAoX):\n Y5YY = txNa()\n Y5YY.fit(oyIN.reshape(cC56,...
[ "0.66160285", "0.66160285", "0.6479322", "0.6373529", "0.6332721", "0.6278016", "0.62647", "0.62536883", "0.6185974", "0.6184712", "0.6036722", "0.6031992", "0.5954827", "0.5831484", "0.5821886", "0.58213013", "0.57672703", "0.57202554", "0.5689846", "0.5683262", "0.5657926",...
0.5182711
84