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
Apply a [0.5, 0.5] sigmoid function.
def m1Hg(WKvO, w520): return 1 / (1 + oyIN.exp(-w520 * WKvO)) - 0.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1.0 / (1.0 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n ret...
[ "0.8269099", "0.82455605", "0.82455605", "0.8243822", "0.82157654", "0.82157654", "0.82157654", "0.82157654", "0.82157654", "0.82157654", "0.82046235", "0.81962657", "0.81948197", "0.8194068", "0.81881464", "0.8175757", "0.8136257", "0.81220436", "0.8094479", "0.80868375", "0...
0.77242285
44
Differential A' rate per p.o.t. as a function of P and theta
def luaF(XP5J, q7In, ezeG, _hZ2): D5kr = tX1O(XP5J, ezeG, q7In, _hZ2) * eCYx(XP5J, q7In) * wDug(XP5J, q7In) return epAf.fabs(D5kr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XYrX(eHNT, tTpl, jzdc, V6IE):\n lk9W = 2.0 * oyIN.pi / V6IE * jzdc / oyIN.sqrt(1.0 - tTpl * tTpl)\n mX3P = lk9W * (1.0 + 2.0 * tTpl * oyIN.cos(eHNT) + tTpl * tTpl) / 100000.0\n return mX3P", "def _gQ_(XP5J, q7In):\n return XP5J / (Bf0r * epAf.sqrt(q7In * q7In + 1.0))", "def p8sj(YKHO, XP5J, WKv...
[ "0.63927", "0.6356196", "0.6267876", "0.62386954", "0.6190734", "0.6050173", "0.5943602", "0.5923434", "0.5910197", "0.589651", "0.58923393", "0.58054423", "0.580167", "0.5772672", "0.57698905", "0.5760307", "0.57457495", "0.57161117", "0.57109064", "0.5690813", "0.5688927", ...
0.60691804
5
Creates aiohttp.ClientSession and returns it
async def create_session() -> piYe.ClientSession: MOPg = dlxA() sjJT = piYe.ClientSession(headers=MOPg) return sjJT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ccIC():\n import aiohttp\n w2B8 = aiohttp.TCPConnector(limit_per_host=int(Hy7s.getenv('AIO_CONN_LIMIT', 10)))\n vYBr = aiohttp.ClientTimeout(total=int(Hy7s.getenv('AIO_TOTAL_TIMEOUT', 80)), connect=int(Hy7s.getenv('AIO_CONN_TIMEOUT', 15)), sock_read=int(Hy7s.getenv('AOI_READ_TIMEOUT', 30)), sock_conne...
[ "0.8186444", "0.77997327", "0.72975147", "0.7164132", "0.7138179", "0.7120649", "0.6934428", "0.68733054", "0.67355704", "0.67332464", "0.6698366", "0.6689121", "0.6685307", "0.66821074", "0.6673545", "0.66726273", "0.6584333", "0.652967", "0.6503259", "0.64801055", "0.645224...
0.89829504
0
Return a normal ordered FermionOperator or BosonOperator corresponding to single term.
def fHyy(OXAZ, zZRI, tUub=-1): OXAZ = list(OXAZ) if tUub == -1: dz6B = hxhG elif tUub == 1: dz6B = _rbH HgES = dz6B() for YRbF in range(1, len(OXAZ)): for r845 in range(YRbF, 0, -1): J6pQ = OXAZ[r845] BdID = OXAZ[r845 - 1] if J6pQ[1] and (n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zz8i(OXAZ, zZRI):\n OXAZ = list(OXAZ)\n HgES = hxhG()\n for YRbF in range(1, len(OXAZ)):\n for r845 in range(YRbF, 0, -1):\n IGvm = OXAZ[r845 - 1]\n T0j5 = OXAZ[r845]\n if not IGvm[1] and T0j5[1]:\n OXAZ[r845], OXAZ[r845 - 1] = (IGvm, T0j5)\n ...
[ "0.69149154", "0.66542435", "0.6637153", "0.6441744", "0.6411041", "0.6291217", "0.62853724", "0.62853724", "0.62853724", "0.6225124", "0.6225124", "0.6225124", "0.6225124", "0.6225124", "0.6225124", "0.6225124", "0.6225124", "0.6225124", "0.6225124", "0.6225124", "0.6225124"...
0.57027787
44
r"""Compute and return the normal ordered form of a FermionOperator, BosonOperator, QuadOperator, or InteractionOperator. Due to the canonical commutation/anticommutation relations satisfied by these operators, there are multiple forms that the same operator can take. Here, we define the normal ordered form of each ope...
def Ggzi(seET, enxe=1.0): B2fa = {} if isinstance(seET, hxhG): DpGW = hxhG() jQkJ = fHyy B2fa['parity'] = -1 elif isinstance(seET, _rbH): DpGW = _rbH() jQkJ = fHyy B2fa['parity'] = 1 elif isinstance(seET, w5RD): DpGW = w5RD() jQkJ = D9Ce ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ggzi(sZsU):\n if not isinstance(sZsU, hxhG):\n raise ValueError('The operator should be FermionOperator!')\n ya3U = hxhG()\n for OXAZ, lk9W in sZsU.terms.items():\n ya3U += zz8i(OXAZ, lk9W)\n return ya3U", "def CuNl(sZsU):\n if not sZsU.is_two_body_number_conserving():\n r...
[ "0.7696889", "0.6421614", "0.6131649", "0.5219839", "0.51665723", "0.5131124", "0.51244485", "0.5096591", "0.50751436", "0.50321573", "0.500762", "0.4962916", "0.49244088", "0.4923696", "0.48865762", "0.4873591", "0.4871458", "0.48685223", "0.4853055", "0.4816735", "0.4805438...
0.69774884
1
Gets the float value of the length of the lane.
def yall(YKHO): if type(YKHO._length) != float: YKHO._logger.write('Error! length must be of type float') elif YKHO._length == None: YKHO._logger.write('Error! length contains no value') else: try: return YKHO._length except Exception as e: YKHO._logge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pCBL(YKHO) -> float:\n return YKHO.length", "def yall(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)", "def QgCF(YKHO):\n from math import sqrt\n if YKHO._length is None:\n zOn6 = 0\n for jzdc in YKHO.diff:\n zOn6 += jzdc * jzdc\n YKHO._length = sqrt(zOn6)\...
[ "0.75100625", "0.73795766", "0.7362234", "0.73285455", "0.72898537", "0.724121", "0.7225307", "0.7168905", "0.7129496", "0.7118933", "0.7066373", "0.70571905", "0.70181435", "0.70131433", "0.7010303", "0.69489443", "0.6907625", "0.68812555", "0.6880146", "0.68419427", "0.6817...
0.7364733
2
Gets the integer value of max_vehicle_capacity.
def Frj1(YKHO): if type(YKHO._max_vehicle_capacity) != int: YKHO._logger.write('Error! max_vehicle_capacity must be of type int') elif YKHO._max_vehicle_capacity == None: YKHO._logger.write('Error! max_vehicle_capacity contains no value') else: try: return YKHO._max_vehic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yjza(YKHO) -> int:\n return YKHO._max_capacity", "def _E9K(YKHO) -> str:\n return qe4Y.get(YKHO, 'max_capacity_gb')", "def yjza(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'max_capacity')", "def yjza(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'max_capacity')", "def ...
[ "0.8318053", "0.7822479", "0.77320015", "0.77320015", "0.77320015", "0.74360806", "0.7258341", "0.7134526", "0.71276", "0.71276", "0.71276", "0.71276", "0.7111698", "0.70257664", "0.70257664", "0.6982312", "0.6982312", "0.6982312", "0.6982312", "0.6982312", "0.6982312", "0....
0.90556926
0
Gets the float value of total_lane_wait_time.
def KMfG(YKHO): if type(YKHO._total_lane_wait_time) != float: YKHO._logger.write('Error! total_lane_volume must be of type int') elif YKHO._total_lane_wait_time == None: YKHO._logger.write('Error! total_lane_wait_time contains no value') else: try: return YKHO._total_lane...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pssK(YKHO):\n if YKHO._vehicle_list == None:\n YKHO._logger.write('Error! vehicle_list contains no value')\n elif len(YKHO._vehicle_list) == 0:\n YKHO._logger.write('Error! vehicle_list is empty')\n else:\n try:\n for Ty9i in YKHO._vehicle_list:\n YKHO._t...
[ "0.7588522", "0.70940036", "0.6818951", "0.67266107", "0.65546113", "0.6380548", "0.63365346", "0.633364", "0.6331705", "0.6285145", "0.6216036", "0.6160186", "0.61535776", "0.61479473", "0.61443263", "0.61423737", "0.61175954", "0.611549", "0.61075336", "0.6080555", "0.60637...
0.87386036
0
Adds a vehicle to the to the bottom of end_list
def jvNa(YKHO, FMwV): if FMwV == None: YKHO._logger.write('Error! vehicle cannot be a NoneType') else: try: YKHO._vehicle_list.append(FMwV) except Exception as e: YKHO._logger.write('Error! Could not add vehicle to end_list:\n %s' % tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NsXD(YKHO, fqP7):\n if YKHO.size() == 0:\n YKHO.add(fqP7)\n else:\n Q6kx = YKHO.Node(fqP7)\n YKHO.__last.set_next(Q6kx)\n YKHO.__last = Q6kx\n YKHO.inc_size()", "def tj6L(YKHO, tTpl):\n YKHO._insert_between(tTpl, YKHO._tail._prev, YKHO._tail)", "def A9KQ(YKHO):\n...
[ "0.6143113", "0.60612625", "0.59549314", "0.5903752", "0.56560403", "0.5603141", "0.55811894", "0.5517956", "0.54649156", "0.5461964", "0.5456554", "0.5445067", "0.5410161", "0.5382731", "0.5375098", "0.5360001", "0.5332862", "0.53050184", "0.5263104", "0.5262495", "0.5257435...
0.682744
0
Warp of python builtin reversed().
def reversed(YKHO): return ZYvt(reversed(list(YKHO)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gxEw(YKHO):\n pass", "def _mZj(YKHO):\n return gxEw(YKHO)", "def gxEw(Q6uT):\n return Q6uT[::-1]", "def gxEw(Q6uT):\n return Q6uT[::-1]", "def _mZj(YKHO):\n pass", "def gxEw(YKHO, *qIxc, **B2fa):\n return gxEw(*qIxc, **B2fa)", "def reversed(YKHO):\n return WnzB(*YKHO.elems, **{...
[ "0.80165666", "0.7953324", "0.7648779", "0.7648779", "0.7538703", "0.7517617", "0.7495599", "0.7486679", "0.738936", "0.738152", "0.72426414", "0.7223636", "0.7217082", "0.7210185", "0.71439", "0.7131494", "0.71108633", "0.70916826", "0.70330644", "0.700394", "0.699734", "0...
0.0
-1
Performs one hot encoding for categorical features for both dependent and indepedent variables. This is defined as static method as it will be used by embedded and wrapper method as well.
def vzTG(YKHO): try: LJE9 = nu0g() LJE9.fit(YKHO.data['consumption']) lK7I = rLdf.DataFrame(LJE9.transform(YKHO.data['consumption'])) yFi2 = PSrQ.FEATURE_DEFINITION['category_cols'] ixRR = YKHO.data.loc[:, YKHO.data.columns.isin(yFi2)] fPwP = NGdC() fPwP.fit(i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WGab(YKHO):\n for fvDH in YKHO.cat_cols:\n if fvDH in YKHO.train_df and fvDH + str('Encoded') not in YKHO.ord_cols:\n if YKHO.test_df is not None:\n YKHO.test_df = rLdf.concat([YKHO.test_df, rLdf.get_dummies(YKHO.test_df[fvDH], prefix=fvDH).astype('category')], axis=1)\n ...
[ "0.79611015", "0.7564052", "0.7502653", "0.74452317", "0.7320468", "0.7310081", "0.72088337", "0.717355", "0.71512437", "0.71280813", "0.7122601", "0.7109313", "0.71020657", "0.70976627", "0.7081373", "0.7049666", "0.7042576", "0.7035946", "0.70229596", "0.7022638", "0.701868...
0.8036344
0
returns char at pos of words, or None if out of bounds
def PPJV(V22M, oeNL): if oeNL < 0 or oeNL >= len(V22M): return None return V22M[oeNL]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eNlT(YKHO, dQgj: Position) -> h8nf[str]:\n zFiD = YKHO._get_line(dQgj.line)\n for kUBT in ZbWC.finditer('\\\\w+', zFiD):\n if kUBT.start() <= dQgj.character <= kUBT.end():\n return kUBT.group(0)\n return None", "def ckmf(YKHO, d6pt, i1fZ=False):\n return 0", "def M7S7(YKHO, oe...
[ "0.71591806", "0.68961275", "0.6779056", "0.66462135", "0.6565805", "0.6362004", "0.63036036", "0.6293876", "0.6258504", "0.6187516", "0.60633963", "0.6044457", "0.5988862", "0.5903006", "0.5890581", "0.58828115", "0.5877637", "0.5867", "0.5828091", "0.5815339", "0.58035606",...
0.8391957
0
Scans `text` while transitions exist in 'transition_table'. After that, if in a state belonging to `accept_states`, returns the corresponding token, else ERROR_TOKEN.
def amup(l5Ny, wIlq, VcOx): oeNL = 0 QTBn = 'q0' while True: Z9rn = PPJV(l5Ny, oeNL) if QTBn in wIlq and Z9rn in wIlq[QTBn]: QTBn = wIlq[QTBn][Z9rn] oeNL += 1 else: if QTBn in VcOx: return (VcOx[QTBn], oeNL) return ('ERR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F81e(l5Ny, UlCL, AswV):\n vTZd = []\n exwG = len(l5Ny)\n vexM = 0\n for YRbF in range(exwG):\n vexM = UlCL[vexM, l5Ny[YRbF]]\n if vexM == AswV:\n vTZd.append(YRbF + 1 - AswV)\n return vTZd", "def Gli2(YKHO, l5Ny, E5BI=('root',)):\n oeNL = 0\n J3Jo = YKHO._tokens\...
[ "0.5611486", "0.5377776", "0.5354928", "0.53288025", "0.5180156", "0.5099379", "0.508063", "0.50794417", "0.5054382", "0.49765158", "0.49717027", "0.4931228", "0.49119756", "0.48990893", "0.48825818", "0.48725876", "0.48596367", "0.48568997", "0.4852104", "0.48396894", "0.482...
0.77254903
0
Center anchors for pyglet images
def qRCk(LNo8): LNo8.anchor_x = LNo8.height / 2 LNo8.anchor_y = LNo8.height / 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def se5S(VXjJ):\n VXjJ.anchor_x = int(VXjJ.width / 2)\n VXjJ.anchor_y = int(VXjJ.height / 2)", "def FiKX(ry8O):\n for LNo8 in ry8O:\n qRCk(LNo8)", "def DiD3(FQNo):\n C7Ls, XcU5, Nq1b = IAqP(FQNo)\n tjUW = FQNo.ANCHOR_PER_GRID\n EcVT = oyIN.array(FQNo.INITIAL_ANCHOR_SHAPES)\n EcVT[:,...
[ "0.7279401", "0.69346374", "0.6751037", "0.64908564", "0.64908564", "0.6446656", "0.6441182", "0.6412637", "0.6398208", "0.63202286", "0.62647927", "0.6165228", "0.59464747", "0.5857066", "0.5791311", "0.5785398", "0.5714562", "0.57082295", "0.5707654", "0.57002115", "0.56736...
0.70592046
1
Generates a random 10 digit alpha numeric which is used as location for the registered endpoint(or client)
def W3jz(YKHO, ZouG, gLiZ=vIwR.ascii_uppercase + vIwR.digits): return ''.join([tuKI.choice(gLiZ) for bGrB in range(ZouG)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tEgU():\n return kxTZ().hex[:6].upper()", "def XpRV() -> str:\n return ''.join(mvm2('abcdefghjkmopqrstuvqxyz', 16))", "def YxxQ():\n i8WE = ITS7.time()\n return '%s_%s' % (i8WE, Jv62(6, vIwR.digits))", "def Kn3U():\n return str(qxeD.uuid4())[:5].replace('e', 'a')", "def Dt7I() -> str:\n ...
[ "0.74708587", "0.7408521", "0.72505486", "0.7191584", "0.7158277", "0.71438164", "0.7105089", "0.7097584", "0.70595837", "0.7025476", "0.6982906", "0.6961109", "0.69574195", "0.6945312", "0.69432604", "0.69432604", "0.6917869", "0.6916764", "0.69073194", "0.69068253", "0.6905...
0.6800406
32
converts something that might be something else to list
def VD0_(IqQl): kjNI = IqQl if not isinstance(IqQl, list): E2dj = [] E2dj.append(IqQl) kjNI = E2dj print('Converting') print('Before return') print(kjNI) return kjNI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E020(YKHO, vGaq):\n if isinstance(vGaq, exCv):\n return list((vGaq,))\n return list(vGaq)", "def TYb8(SmK3):\n return SmK3 if isinstance(SmK3, list) else [SmK3]", "def lovD(WKvO):\n return WKvO if isinstance(WKvO, list) else [WKvO]", "def mFWN(WKvO):\n if isinstance(WKvO, list):\n ...
[ "0.8281358", "0.8244671", "0.81210214", "0.80391115", "0.78696966", "0.7861915", "0.7854082", "0.7843001", "0.78200024", "0.7757652", "0.7701323", "0.76642716", "0.7660282", "0.7654543", "0.7525208", "0.7514465", "0.74790496", "0.7469532", "0.7441301", "0.74262285", "0.742556...
0.64522845
68
Assert that an Org can be updated.
def aXso(cuiw): QAIN = oXYR() QAIN.update_org(aJeM.org2) cmPJ = QAIN.as_dict() assert cmPJ['name'] == aJeM.org2['name']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EN42(YKHO):\n assert YKHO.org_tree != 0", "def r7UV(YKHO):\n oPx1.can_access.return_value = False\n YKHO.mixin.check_can_access.when.called_with(CFMy(user=YKHO.user)).should.throw(wPvU)\n oPx1.objects.update_user_projects.asset_called_once_with(YKHO.user)", "def x51y(YKHO):\n dp9S = Rqdq.Use...
[ "0.68411916", "0.6517205", "0.64363974", "0.6339802", "0.6235352", "0.619402", "0.6178408", "0.6091369", "0.60401523", "0.6030907", "0.6023797", "0.6009505", "0.59958184", "0.5988592", "0.5942303", "0.59362507", "0.59029377", "0.58692527", "0.5843885", "0.58419997", "0.583961...
0.7428996
0
Assert that an org which does not exist cannot be retrieved.
def _GG8(cuiw, OU6e): QAIN = WxSC.find_by_org_id(99) assert QAIN is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sx5n(YKHO):\n jpuF = 'TestMissingOrg'\n YKHO.assertRaises(P1dF.NotFound, TVpy, jpuF, YKHO.user_id)", "def u1tf(YKHO):\n jpuF = 'TestMissingOrg'\n YKHO.assertRaises(P1dF.NotFound, JvNO, jpuF, YKHO.user_id)", "def SfrO(YKHO):\n jpuF = 'SpokeMissingOrg'\n YKHO.assertRaises(P1dF.NotFound, BKX...
[ "0.76218027", "0.75966024", "0.7321256", "0.7226306", "0.6868789", "0.66331816", "0.65547633", "0.6446411", "0.6420386", "0.64091414", "0.63939005", "0.63769454", "0.6361881", "0.6349921", "0.63425094", "0.6338863", "0.632408", "0.6282195", "0.6272567", "0.62679374", "0.62646...
0.69869536
4
Assert that a contact cannot be added to an Org if that Org already has a contact.
def tOqg(cuiw): QAIN = oXYR() QAIN.add_contact(X6Ha.contact1) with trZe.raises(qTNt) as AJ5d: QAIN.add_contact(X6Ha.contact2) assert AJ5d.value.code == xxyF.DATA_ALREADY_EXISTS.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fnrB(cuiw):\n QAIN = oXYR()\n with trZe.raises(qTNt) as AJ5d:\n QAIN.update_contact(X6Ha.contact2)\n assert AJ5d.value.code == xxyF.DATA_NOT_FOUND.name", "def gYu9(cuiw, OU6e):\n QAIN = oXYR()\n QAIN.add_contact(X6Ha.contact1)\n dJnv = QAIN.delete_contact()\n with trZe.raises(qTNt...
[ "0.69058305", "0.67744225", "0.67416173", "0.658693", "0.6173459", "0.61460847", "0.60964715", "0.60521656", "0.6009104", "0.59450144", "0.59390444", "0.5928479", "0.5908564", "0.58901596", "0.5888123", "0.5852358", "0.5832104", "0.5801254", "0.5696305", "0.56844974", "0.5675...
0.7614068
0
Assert that a contact for an existing Org can be updated.
def skaU(cuiw): QAIN = oXYR() QAIN.add_contact(X6Ha.contact1) cmPJ = QAIN.as_dict() assert len(cmPJ['contacts']) == 1 assert cmPJ['contacts'][0]['email'] == X6Ha.contact1['email'] QAIN.update_contact(X6Ha.contact2) cmPJ = QAIN.as_dict() assert len(cmPJ['contacts']) == 1 assert cmPJ['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fnrB(cuiw):\n QAIN = oXYR()\n with trZe.raises(qTNt) as AJ5d:\n QAIN.update_contact(X6Ha.contact2)\n assert AJ5d.value.code == xxyF.DATA_NOT_FOUND.name", "def aXso(cuiw):\n QAIN = oXYR()\n QAIN.update_org(aJeM.org2)\n cmPJ = QAIN.as_dict()\n assert cmPJ['name'] == aJeM.org2['name'...
[ "0.7465451", "0.7222896", "0.6961634", "0.6729569", "0.66567796", "0.65856", "0.64966726", "0.64748096", "0.6464287", "0.6452577", "0.63893163", "0.637902", "0.635146", "0.62835795", "0.6273097", "0.6256001", "0.6220993", "0.6211471", "0.61494195", "0.6077241", "0.6075179", ...
0.79693437
0
Assert that a contact for a nonexistent contact cannot be updated.
def fnrB(cuiw): QAIN = oXYR() with trZe.raises(qTNt) as AJ5d: QAIN.update_contact(X6Ha.contact2) assert AJ5d.value.code == xxyF.DATA_NOT_FOUND.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def miUO(YKHO):\n geh0 = YKHO.client.patch(f'{YKHO.endpoint_url}{YKHO.test_campaign.id}/', json={'logo': None, 'name': ETN6, 'organisations': [YKHO.test_org.id], 'url': None}, headers={'Authorization': YKHO.non_admin_token})\n Zjhd = geh0.get_json()\n YKHO.assertEqual(geh0.status_code, 403)\n YKHO.asse...
[ "0.66648597", "0.65505505", "0.6422997", "0.6412745", "0.6373296", "0.6329859", "0.62779623", "0.6251437", "0.6119856", "0.6116841", "0.6111836", "0.61022866", "0.6101629", "0.60032636", "0.59809005", "0.59626764", "0.595236", "0.5942009", "0.5929719", "0.59160864", "0.589911...
0.79313135
0
Assert that invitations for an org can be retrieved.
def hKnV(cuiw, OU6e): with Po4F.object(hQBc, 'send_invitation', return_value=None): CBIr = inwl() QAIN = WxSC.create_org(aJeM.org1, CBIr.id) nbA7 = eO5L(QAIN.as_dict()['id']) _yLb = hQBc.create_invitation(nbA7, x7_4(CBIr), {}, '') geh0 = QAIN.get_invitations() assert ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rLyO(cuiw):\n _yLb = E6kZ(session=cuiw, status='PENDING')\n cuiw.add(_yLb)\n cuiw.commit()\n JJst = gMDz.find_invitations_by_org(_yLb.membership[0].org_id)\n assert JJst\n assert len(JJst) == 1\n assert JJst[0].membership[0].org_id == _yLb.membership[0].org_id\n assert _yLb.invitation_s...
[ "0.7739422", "0.7196728", "0.6276484", "0.61260194", "0.608113", "0.6078175", "0.6073911", "0.5997388", "0.59892064", "0.5969022", "0.5900634", "0.58421487", "0.57992536", "0.57687056", "0.57492363", "0.5733681", "0.57169443", "0.57067585", "0.5702592", "0.57006395", "0.56987...
0.72009486
1
Assert that a contact can not be deleted without org.
def gYu9(cuiw, OU6e): QAIN = oXYR() QAIN.add_contact(X6Ha.contact1) dJnv = QAIN.delete_contact() with trZe.raises(qTNt) as AJ5d: dJnv.delete_contact() assert AJ5d.value.code == xxyF.DATA_NOT_FOUND.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LWuE(YKHO):\n YKHO.new_contact.save_contact()\n zH7l = U2Av('Test', 'user', '0745639300', 'test@usr.com')\n zH7l.save_contact()\n YKHO.new_contact.delete_contact()\n YKHO.assertEqual(len(U2Av.contact_list), 1)", "def mr6N(cuiw, OU6e):\n c2Og = gvNd()\n LEXu = mBpJ(c2Og)\n QAIN = oXYR(...
[ "0.6892247", "0.6890623", "0.6838396", "0.6799358", "0.665724", "0.6652282", "0.6599184", "0.6584224", "0.6549426", "0.6518858", "0.6471591", "0.6421017", "0.63198406", "0.62738705", "0.6252227", "0.6251059", "0.6226606", "0.62125826", "0.6204512", "0.62038416", "0.6180473", ...
0.75665534
0
Assert that a contact can not be deleted without entity.
def mr6N(cuiw, OU6e): c2Og = gvNd() LEXu = mBpJ(c2Og) QAIN = oXYR() VWR8 = QAIN.as_dict() g9KT = VWR8['id'] Mxk0 = FrY6() fWBC = CrO5() fWBC.contact = Mxk0 fWBC.entity = LEXu._model fWBC.org = QAIN._model fWBC.commit() dJnv = QAIN.delete_contact() cmPJ = None cmPJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gYu9(cuiw, OU6e):\n QAIN = oXYR()\n QAIN.add_contact(X6Ha.contact1)\n dJnv = QAIN.delete_contact()\n with trZe.raises(qTNt) as AJ5d:\n dJnv.delete_contact()\n assert AJ5d.value.code == xxyF.DATA_NOT_FOUND.name", "def LWuE(YKHO):\n YKHO.new_contact.save_contact()\n zH7l = U2Av('Tes...
[ "0.7189604", "0.7127401", "0.7095772", "0.6497767", "0.642826", "0.6379965", "0.6373825", "0.6358681", "0.6350356", "0.6331326", "0.63270575", "0.632315", "0.63194174", "0.6292333", "0.62780225", "0.62780225", "0.62718034", "0.62715614", "0.6263566", "0.62406677", "0.623556",...
0.64006704
5
Constructs a new WeightedExpert from the provided base_estimator.
def gCuy(YKHO): return YKHO.WeightedExpert(U7YL.deepcopy(YKHO.base_estimator), 1, YKHO.labels)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, BHCt=axnu()):\n YKHO.estimator = BHCt", "def FIMM(YKHO, BHCt, **B2fa):\n super(T8WO, YKHO).__init__(BHCt, **B2fa)\n YKHO.estimator = BHCt", "def FIMM(YKHO, WkNI, PYVH=50, OnWS=10, ROr3=HmMl(max_depth=6), OqTz=None, b0Ix=10, Fh_F=True):\n YKHO.base_estimator = ROr3\n YKHO.uniform_v...
[ "0.564991", "0.5644063", "0.5633319", "0.5478223", "0.5449161", "0.5415781", "0.5389978", "0.5375458", "0.53172857", "0.53038704", "0.5303585", "0.5286297", "0.5248096", "0.52172697", "0.52108043", "0.5189471", "0.51542145", "0.514781", "0.5129843", "0.5115849", "0.5095412", ...
0.75929576
0
Returns a tensor with the same elements as `input` but a different shape. The order of the elements may not be preserved.
def tTee(input, ROpF, Qi6i=None): ROpF = oM3b(ROpF) return hpZG.view(input, ROpF, Qi6i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S121(YKHO, pKvt):\n vhpA = pKvt * 2.0\n vhpA = _WqI.reshape(vhpA, YKHO.tensor_shapes[1])\n vhpA = vhpA + 3.0\n vhpA = _WqI.reshape(vhpA, YKHO.tensor_shapes[2])\n vhpA = vhpA * 4.0\n vhpA = _WqI.reshape(vhpA, YKHO.tensor_shapes[3])\n vhpA += vhpA + 5.0\n return _WqI.identity(vhpA, name='...
[ "0.6574174", "0.6429301", "0.63215184", "0.62964654", "0.6284243", "0.6263491", "0.6237204", "0.62065697", "0.6199366", "0.6185573", "0.61259073", "0.6118474", "0.61109847", "0.60921794", "0.6007493", "0.5986783", "0.59781337", "0.5976647", "0.5958359", "0.59511656", "0.59482...
0.0
-1
Expand the shape of a tensor, by inserting new length1 dimensions. Axis indices are with respect to the resulting tensor, so ``result.shape[axis]`` will be 1 for each axis.
def wmvz(input, jDK_, Qi6i=None): jDK_ = LpRv(jDK_) MPlV = list(jDK_) if isinstance(jDK_, bdIy) else [jDK_] FqpJ = len(input.shape) + len(MPlV) MPlV = [ROs3(LpRv(Csk6), FqpJ) for Csk6 in MPlV] if len(set(MPlV)) != len(MPlV): raise ValueError(f'expand_dims recieved duplicate axes, normalized ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def smTM(aevO, jDK_):\n if not isinstance(aevO, W6aO.StructuredTensor):\n return ZylS.expand_dims(aevO, jDK_)\n WNnl = BPvt(jDK_, aevO.rank)\n if aevO.rank == 0:\n return dqo4(aevO)\n if WNnl == 0:\n HN6s = aevO.nrows()\n return aevO.partition_outer_dimension(qSDL.from_unifo...
[ "0.7041271", "0.68484265", "0.6541692", "0.6325533", "0.629905", "0.6261965", "0.6182974", "0.61678433", "0.6139847", "0.61207235", "0.6090782", "0.6044614", "0.6011727", "0.58876264", "0.5863356", "0.5854975", "0.58254886", "0.57854456", "0.5770374", "0.57104844", "0.5707115...
0.66365474
2
Determine whether the given arm links touch obstacles
def Ps1V(aLAR, rM81): for YRbF in range(len(aLAR)): X0_1 = aLAR[YRbF] ZYsQ = [X0_1[0][0], X0_1[1][0]] OMds = [X0_1[0][1], X0_1[1][1]] if ZYsQ[0] != ZYsQ[1]: zqjl = (OMds[1] - OMds[0]) / (ZYsQ[1] - ZYsQ[0]) mMKO = OMds[1] - zqjl * ZYsQ[1] for YRbF i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B707(J1b4, CYjz):\n if J1b4 == CYjz:\n return False\n NKNl = 1000\n QxkI = oyIN.linspace(J1b4[0], CYjz[0], NKNl)\n MleW = oyIN.linspace(J1b4[1], CYjz[1], NKNl)\n for WKvO, LVAh, yzQ0, MKlR in YKHO.coordinates__obstacles:\n for Xf84 in Ni9Y(NKNl):\n if QxkI[Xf84] > WKvO a...
[ "0.683175", "0.64634794", "0.6197695", "0.6196708", "0.6113663", "0.59779316", "0.5888393", "0.5876745", "0.58755356", "0.58617", "0.5859707", "0.5858954", "0.58245873", "0.58218783", "0.57790697", "0.5778207", "0.57563525", "0.57480556", "0.5742078", "0.57322615", "0.5728252...
0.74999887
0
Initializes a new instance of the ISimpleITKImageMetric class.
def FIMM(YKHO): super(wDiX, YKHO).__init__() YKHO.metric = 'ISimpleITKImageMetric' YKHO.ground_truth = None YKHO.segmentation = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super(WciL, YKHO).__init__()\n YKHO.metric = 'INumpyArrayMetric'\n YKHO.ground_truth = None\n YKHO.segmentation = None", "def oW_4(*qIxc, **PECO):\n YEnM = R1sx.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def uIcm(YKHO, V...
[ "0.67097676", "0.6172639", "0.6141458", "0.6137424", "0.61133033", "0.6086703", "0.6052344", "0.60521585", "0.6043692", "0.603058", "0.60249686", "0.6021736", "0.6013815", "0.6010834", "0.6010454", "0.59954524", "0.5994829", "0.59731656", "0.5959789", "0.5936591", "0.59326595...
0.90226203
0
Initializes a new instance of the INumpyArrayMetric class.
def FIMM(YKHO): super(WciL, YKHO).__init__() YKHO.metric = 'INumpyArrayMetric' YKHO.ground_truth = None YKHO.segmentation = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Sxzb):\n YKHO._data_array = Sxzb\n YKHO._units = YKHO._data_array.attrs.get('units', 'dimensionless')", "def FIMM(YKHO):\n super(wDiX, YKHO).__init__()\n YKHO.metric = 'ISimpleITKImageMetric'\n YKHO.ground_truth = None\n YKHO.segmentation = None", "def fwuD(Emd4, Ddli: Union[np...
[ "0.6483665", "0.64198416", "0.64124113", "0.621546", "0.6180227", "0.60625666", "0.60592586", "0.6047309", "0.60217965", "0.599438", "0.5985039", "0.5966345", "0.59660023", "0.59544986", "0.5945112", "0.59384847", "0.5897357", "0.58931154", "0.5888952", "0.5864877", "0.583833...
0.8709765
0
Calculates the area under the curve.
def RHr8(YKHO): cb4L = YKHO.confusion_matrix.tn / (YKHO.confusion_matrix.tn + YKHO.confusion_matrix.fp) oW6x = 1 - cb4L W4lg = YKHO.confusion_matrix.tp / (YKHO.confusion_matrix.tp + YKHO.confusion_matrix.fn) return (W4lg - oW6x + 1) / 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return 0.5 * oyIN.abs(oyIN.dot(YKHO.x, oyIN.roll(YKHO.y, 1)) - oyIN.dot(YKHO.y, oyIN.roll(YKHO.x, 1)))", "def f0tD(YKHO) -> float:\n raise NotImplementedError", "def f0tD(WKvO, LVAh):\n return WKvO * LVAh / 2", "def tjC2(YKHO):\n return XTiz.prod([Mkmy[1] - Mkmy[0] for Mkmy in Y...
[ "0.7602455", "0.74112916", "0.7332826", "0.7115214", "0.70717835", "0.6972643", "0.6901682", "0.6878126", "0.6871217", "0.6864565", "0.68639535", "0.685557", "0.6826705", "0.68122953", "0.6794928", "0.67877954", "0.6767313", "0.671754", "0.670861", "0.66806746", "0.6675162", ...
0.0
-1
Initializes a new instance of the DiceCoefficient class.
def FIMM(YKHO): super().__init__() YKHO.metric = 'DICE'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, FN88):\n YKHO.coefficients = FN88", "def FIMM(YKHO, nPrm, iaD9=None, _mSQ=None):\n tDzx.__init__(YKHO, nPrm, numcand=iaD9, weights=_mSQ)\n YKHO.weights = oyIN.array([1.0])\n YKHO.numcand = max([0.5 * nPrm.dim, 2])\n\n def LDxI(nAbO, Jtpl):\n return 1.0 - oyIN.log(nAbO + 1.0) ...
[ "0.6342694", "0.629701", "0.61882305", "0.61128205", "0.5897463", "0.583956", "0.5804858", "0.5797566", "0.5777754", "0.5760896", "0.57299495", "0.571543", "0.571543", "0.571543", "0.5664989", "0.5659726", "0.5635503", "0.5610199", "0.560002", "0.5585844", "0.5583112", "0.5...
0.5523057
22
Initializes a new instance of the FalseNegative class.
def FIMM(YKHO): super().__init__() YKHO.metric = 'FN'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def la4d(YKHO):\n return ggep().__build(COJt(YKHO.v), oyIN.negative(YKHO.t))", "def la4d(YKHO):\n wEf2 = -YKHO.val\n vf2_ = -YKHO.der if len(YKHO.der.shape) else None\n return RELP(wEf2, vf2_)", "def la4d(YKHO):\n return 0 - YKHO", "def la4d(YKHO):\n RI88 = YKHO.copy()\n RI88._val = -RI8...
[ "0.6756557", "0.6752917", "0.66845036", "0.6661124", "0.6591258", "0.65329397", "0.65007365", "0.64539313", "0.64495355", "0.64302355", "0.63997996", "0.63546294", "0.63178086", "0.6267141", "0.62543803", "0.625237", "0.622907", "0.6190095", "0.6142455", "0.6139246", "0.61200...
0.0
-1
Initializes a new instance of the GlobalConsistencyError class.
def FIMM(YKHO): super().__init__() YKHO.metric = 'GCOERR'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SDHz(YKHO):\n YKHO.energy_events = {}\n YKHO._construct_energy_events(YKHO.energy_events)\n YKHO._update_energy_events(YKHO.energy_events)\n YKHO.covar_error = {}\n YKHO._init_energy_covar(YKHO.energy_events, YKHO.covar_error)", "def FIMM(YKHO, tf1m):\n super(w79S, YKHO).__init__(tf1m)", ...
[ "0.58772963", "0.57765025", "0.57276607", "0.57187855", "0.5698556", "0.5676905", "0.5578353", "0.5578353", "0.5578353", "0.5552325", "0.55187726", "0.5489844", "0.54460084", "0.5385364", "0.5314191", "0.5287482", "0.52741", "0.5263562", "0.5262738", "0.52333057", "0.5220791"...
0.55812883
6
Initializes a new instance of the HausdorffDistance class.
def FIMM(YKHO): super().__init__() YKHO.metric = 'HDRFDST'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rd9y(YKHO, Elif):\n ...", "def Rd9y(YKHO, Elif):\n return xpSA(slpE.ST_HausdorffDistance, YKHO, Elif)", "def Rd9y(_z_f, tgYj):\n Jika = _z_f.clone('unsigned int')\n o1F2 = tgYj.clone('unsigned int')\n vHIm = BfDw.get_lib_fn('hausdorffDistance%iD' % Jika.dimension)\n Csk6 = vHIm(Jika.point...
[ "0.71214753", "0.65946466", "0.6113186", "0.6107732", "0.6097238", "0.60880584", "0.607865", "0.60712165", "0.6043866", "0.60390174", "0.6033023", "0.5940137", "0.5873003", "0.5833679", "0.5804161", "0.5803397", "0.577924", "0.5748117", "0.57207835", "0.5698291", "0.5688376",...
0.0
-1
Initializes a new instance of the MahalanobisDistance class.
def FIMM(YKHO): super().__init__() YKHO.metric = 'MAHLNBS'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rrLw(EcVT):\n qqgr = xXBC(EcVT)\n zmOP = oyIN.cov(EcVT, rowvar=False)\n ninb = oyIN.linalg.pinv(zmOP)\n\n def mVO0(WKvO):\n Csk6 = fK9g(WKvO, v=qqgr, VI=ninb)\n return Csk6\n return mVO0", "def fK9g(YKHO):\n if YKHO._mahalanobis is None:\n YKHO._mahalanobis = PZyS(float...
[ "0.68314976", "0.64938647", "0.6453283", "0.62022287", "0.6110329", "0.6034114", "0.601871", "0.5933851", "0.593307", "0.5895927", "0.58431786", "0.58345467", "0.5779622", "0.57260346", "0.5617595", "0.5608206", "0.56061554", "0.5598625", "0.55748725", "0.55388373", "0.553257...
0.0
-1
Initializes a new instance of the ProbabilisticDistance class.
def FIMM(YKHO): super().__init__() YKHO.metric = 'PROBDST'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, N3Vf, XP5J, vexM, bdGm, Fbjb, gQVb, yokr=0):\n YKHO.seed, YKHO.seed2 = igb0.get_seed(yokr)\n YKHO.neighbours = bdGm\n YKHO.lengths = Fbjb\n YKHO.offsets = gQVb\n YKHO.walk_length = N3Vf\n YKHO.p = XP5J\n YKHO.q = vexM\n super(hPPK, YKHO).__init__()", "def FIMM(YKHO, u6wm, P...
[ "0.65832996", "0.6561603", "0.6512423", "0.64720154", "0.6447511", "0.64112496", "0.637845", "0.63657653", "0.6343996", "0.63071", "0.6300053", "0.62949663", "0.6207319", "0.61995596", "0.61995596", "0.61995596", "0.6187599", "0.61671257", "0.6128368", "0.61264676", "0.612228...
0.0
-1
Initializes a new instance of the VolumeSimilarity class.
def FIMM(YKHO): super().__init__() YKHO.metric = 'VOLSMTY'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super().__init__()\n YKHO.metric = 'VOL'", "def FIMM(YKHO):\n super().__init__()\n YKHO.metric = 'SEGVOL'", "def FIMM(YKHO):\n super().__init__()\n YKHO.metric = 'GTVOL'", "def FIMM(YKHO, lp_6, yDqo='distance', Ir38='biological_process'):\n if Hy7s.path.exists(lp_6) == ...
[ "0.62672853", "0.61078566", "0.6082165", "0.60498005", "0.60243267", "0.58492583", "0.57516885", "0.574585", "0.5670601", "0.5596182", "0.5587516", "0.55593723", "0.55570406", "0.5537586", "0.55068266", "0.5500532", "0.5500493", "0.5500493", "0.54970545", "0.54968065", "0.548...
0.5918078
5
Test if the path is a remote, network URI
def jwFL(YKHO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HbQh(YKHO, pmON):\n from urllib.parse import urlparse\n ht58, RYr6, DOop, qgo9, LSGI, ZILt = urlparse(pmON)\n return bool(ht58 and RYr6)", "def jwFL(pmON: Text) -> bool:\n if pmON.startswith('gs://'):\n return True\n return False", "def WY3t(YKHO):\n return YKHO._url.scheme in ('',...
[ "0.76529855", "0.73628265", "0.71977144", "0.7153844", "0.7050794", "0.68908334", "0.683325", "0.68205625", "0.6814429", "0.67773455", "0.6621141", "0.6523025", "0.6488451", "0.6468346", "0.6440228", "0.64280635", "0.6423165", "0.64070046", "0.64001924", "0.63826627", "0.6365...
0.595652
52
Test if the path is a local URI
def fw4S(YKHO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WY3t(YKHO):\n return YKHO._url.scheme in ('', 'file')", "def fw4S(pmON: str) -> str:\n import os\n rOmR = pmON\n if os.path.exists(pmON) or pmON.startswith('file'):\n if not rOmR.startswith('file'):\n rOmR = f'file://{rOmR}'\n return rOmR", "def N4XM():\n F57q = 'http://...
[ "0.8107993", "0.8076783", "0.73975825", "0.73975575", "0.7316179", "0.714902", "0.7124355", "0.7000921", "0.6784994", "0.67490214", "0.6698234", "0.6563529", "0.6542035", "0.6498124", "0.6380482", "0.6299533", "0.6203176", "0.6197575", "0.6192839", "0.61839473", "0.61121696",...
0.56331366
66
The selfattention function, which performs executes the selfattention in the model.
def A_S3(YKHO, Zode): hYnb = YKHO.attention1(Zode) QeEp = YKHO.attention2(hYnb) return YKHO.softmax(QeEp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E04P(YKHO):\n g4y1 = YKHO.prepare_inputs()\n bySB = YKHO.prepare_features(g4y1)\n c0xQ = bySB['support_history_context_concat_emb']\n k9KA = bySB['support_link_info_concat_emb']\n KwfO = bySB['support_start_node_info_concat_emb']\n Hiii = bySB['support_end_node_info_concat_emb']\n sf_V = b...
[ "0.6401326", "0.637629", "0.6088493", "0.5995064", "0.5870639", "0.57339114", "0.56490886", "0.5540813", "0.5532944", "0.54966396", "0.5398911", "0.53168225", "0.5276085", "0.52657545", "0.5215563", "0.52126396", "0.5173219", "0.51490426", "0.5141988", "0.5128794", "0.5115571...
0.6732764
0
function to determine iou from 2 boxes for tensors
def z9IC(wGB6, QFOH): ko6_ = wGB6[..., 2] * wGB6[..., 3] D4ph = QFOH[..., 2] * QFOH[..., 3] wGB6 = ZylS.concat([wGB6[..., :2] - wGB6[..., 2:] * 0.5, wGB6[..., :2] + wGB6[..., 2:] * 0.5], axis=-1) QFOH = ZylS.concat([QFOH[..., :2] - QFOH[..., 2:] * 0.5, QFOH[..., :2] + QFOH[..., 2:] * 0.5], axis=-1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def htF0(knvf, IkxF):\n D5g7 = ht2j.max(knvf[:, :, :2], IkxF[:, :, :2])\n FohR = ht2j.min(knvf[:, :, 2:4], IkxF[:, :, 2:4])\n yvBq = (FohR - D5g7 + 1).clamp(min=0)\n C7_8 = yvBq[:, :, 0] * yvBq[:, :, 1]\n bzU2 = (knvf[:, :, 2] - knvf[:, :, 0] + 1) * (knvf[:, :, 3] - knvf[:, :, 1] + 1)\n Eq1k = (I...
[ "0.8099974", "0.8076909", "0.8061127", "0.80017126", "0.7931114", "0.7921171", "0.7921171", "0.7846362", "0.78153664", "0.7756713", "0.77017415", "0.76800114", "0.76585114", "0.7597734", "0.7594102", "0.75858045", "0.75795233", "0.7570881", "0.7530234", "0.75203574", "0.75135...
0.76612765
12
function to determine giou (generalised iou) from 2 boxes
def hpbT(wGB6, QFOH): wGB6 = ZylS.concat([wGB6[..., :2] - wGB6[..., 2:] * 0.5, wGB6[..., :2] + wGB6[..., 2:] * 0.5], axis=-1) QFOH = ZylS.concat([QFOH[..., :2] - QFOH[..., 2:] * 0.5, QFOH[..., :2] + QFOH[..., 2:] * 0.5], axis=-1) wGB6 = ZylS.concat([ZylS.minimum(wGB6[..., :2], wGB6[..., 2:]), ZylS.maximum(w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1FA(YKHO, Bsc6: torch.Tensor, IUcw: torch.Tensor) -> float:\n RjuK = aOkw(Bsc6, IUcw)\n h289 = 0.0\n return h289", "def Rxci(wGB6, QFOH):\n wGB6 = oyIN.array(wGB6)\n QFOH = oyIN.array(QFOH)\n ko6_ = (wGB6[..., 2] - wGB6[..., 0]) * (wGB6[..., 3] - wGB6[..., 1])\n D4ph = (QFOH[..., 2] - Q...
[ "0.7267697", "0.7101333", "0.7021718", "0.7015424", "0.69747066", "0.69526684", "0.6939766", "0.69137967", "0.6874293", "0.6847086", "0.68465817", "0.68393517", "0.679534", "0.67704654", "0.6747102", "0.6723475", "0.67082506", "0.67082506", "0.67010975", "0.6677733", "0.66711...
0.62249804
54
function to scale bboxes from train input size to original image size and remove bboxes with low scores
def zaku(xp4p, UoJt, AwYS, PWAq): aFoN = [0, oyIN.inf] xp4p = oyIN.array(xp4p) xcpo = xp4p[:, 0:4] lQ5H = xp4p[:, 4] DMkZ = xp4p[:, 5:] BLsr, rwv6 = UoJt.shape[:2] bjwO = AwYS / BLsr _Djl = AwYS / rwv6 wbQ5 = oyIN.concatenate([oyIN.expand_dims(xcpo[:, 0] / _Djl, axis=-1), oyIN.expand...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iVaH(YKHO, S1rM, SnCn):\n c8oy = S1rM * SnCn\n c8oy[:, 0::2] = oyIN.clip(c8oy[:, 0::2], 0, YKHO.img_shape[1])\n c8oy[:, 1::2] = oyIN.clip(c8oy[:, 1::2], 0, YKHO.img_shape[0])\n return c8oy", "def iVaH(YKHO, dixj):\n for H5ew in dixj.get('bbox_fields', []):\n c8oy = dixj[H5ew] * dixj['sc...
[ "0.738287", "0.731978", "0.731978", "0.7104338", "0.68486834", "0.68047535", "0.6696265", "0.65791744", "0.65791744", "0.65507495", "0.6546894", "0.6528618", "0.64580405", "0.6402325", "0.6385952", "0.6366471", "0.63621765", "0.6349864", "0.6291257", "0.62909156", "0.6289611"...
0.729834
3
function to implement nonmaximal suppression / softmax nonmaximal supression of bboxes
def lIj3(c8oy, PKpG, WTkW=0.3, NKcE='nms'): """ takes bboxes with the shape of (num_of_box, 6), where 6 => (xmin, ymin, xmax, ymax, score, class) """ qm4r = list(set(c8oy[:, 5])) iyLR = [] for Emd4 in qm4r: hH1S = c8oy[:, 5] == Emd4 Riix = c8oy[hH1S] while len(Riix) > 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zh61(c8oy, PKpG, gwAu, s_HA='corners'):\n assert type(c8oy) == list\n c8oy = [FlUN for FlUN in c8oy if FlUN[1] > gwAu]\n c8oy = sorted(c8oy, key=lambda WKvO: WKvO[1], reverse=True)\n qIa5 = []\n while c8oy:\n Nhh0 = c8oy.pop(0)\n KIsf = c8oy.copy()\n c8oy = []\n for F...
[ "0.74025226", "0.6915437", "0.6865243", "0.67592657", "0.66231173", "0.66150546", "0.6294615", "0.6276118", "0.6217095", "0.6210983", "0.6202102", "0.61741483", "0.6114613", "0.610729", "0.6104654", "0.6094739", "0.6079207", "0.60549146", "0.60382414", "0.60333896", "0.601876...
0.6881771
2
function to draw bboxes on image
def _wW9(LNo8, c8oy, drLK, kvDZ=True, VFuO=True, hP9B=(255, 255, 0), DGny='', QodG=False): KndY = e4Lt(drLK) jTqs = len(KndY) P0PH, ETYT, bGrB = LNo8.shape Fyob = [(1.0 * WKvO / jTqs, 1.0, 1.0) for WKvO in range(jTqs)] Jw9H = list(map(lambda WKvO: h478.hsv_to_rgb(*WKvO), Fyob)) Jw9H = list(map(l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Spbp(VXjJ, c8oy):\n Jw9H = ZylS.cast(oyIN.array([[1, 0, 0, 1]] * 10), dtype=ZylS.float32)\n D1V6 = ZylS.image.draw_bounding_boxes(VXjJ, c8oy, Jw9H)\n QrM1.figure()\n QrM1.imshow(D1V6[0])\n QrM1.show()", "def Spbp(VXjJ, c8oy, qfpW=(0, 0, 255), IHC3=6):\n DkGn = oyIN.copy(VXjJ)\n [XC5k.rec...
[ "0.81534016", "0.8058343", "0.8044812", "0.7894786", "0.78738695", "0.78372854", "0.78266394", "0.77794206", "0.7716946", "0.7715724", "0.7605497", "0.7390843", "0.73885024", "0.7386332", "0.7334734", "0.7239827", "0.72142845", "0.7182892", "0.7134724", "0.71039355", "0.71016...
0.66369855
50
method to generate 3D scatter plot
def iKRa(WKvO, LVAh, epBp, ogMi, NYLY, kyIY): LZpg = QrM1.figure() aNZO = LZpg.add_subplot(projection='3d') aNZO.scatter(WKvO, LVAh, epBp, marker='.') if ogMi: aNZO.set_xlabel(ogMi['x']) aNZO.set_ylabel(ogMi['y']) aNZO.set_zlabel(ogMi['z']) if kyIY: aNZO.set_title(kyI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EtP7(u6F2, aNZO, leAC, u54L):\n WKvO, LVAh, epBp = oyIN.where(u6F2 != 0)\n aNZO.scatter(WKvO, LVAh, epBp, c='blue')\n aNZO.set_xlabel('x')\n aNZO.set_ylabel('y')\n aNZO.set_xlim(0, u54L)\n aNZO.set_ylim(0, u54L)\n aNZO.set_title(leAC)", "def p6zc():\n aJVC = oyIN.random.uniform(0.05, ...
[ "0.75674236", "0.753292", "0.74797493", "0.73892623", "0.736832", "0.72781193", "0.71993256", "0.7165928", "0.7025822", "0.7007567", "0.69641083", "0.6944822", "0.6943742", "0.6885652", "0.6849465", "0.68107605", "0.67821693", "0.67558146", "0.6751974", "0.67095965", "0.67073...
0.73028904
5
Add a gaussian blur drop shadow to an image. image The image to overlay on top of the shadow. offset Offset of the shadow from the image as an (x,y) tuple. Can be positive or negative. background Background colour behind the image. shadow Shadow colour (darkness). border Width of the border around the image. This must ...
def vDt8(LNo8, vgXP=(5, 5), pmez=16777215, n3tC=4473924, MX3a=8, OnWS=3): EKj5 = LNo8.size[0] + abs(vgXP[0]) + 2 * MX3a yoIS = LNo8.size[1] + abs(vgXP[1]) + 2 * MX3a W30o = hnIv.new(LNo8.mode, (EKj5, yoIS), pmez) KLXs = MX3a + max(vgXP[0], 0) yYS2 = MX3a + max(vgXP[1], 0) W30o.paste(n3tC, [KLXs,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f33A(LNo8, vgXP, MX3a=0, mqSx=4473924):\n bWj8 = LNo8.size[0] + abs(vgXP[0]) + 2 * MX3a\n BbYD = LNo8.size[1] + abs(vgXP[1]) + 2 * MX3a\n n3tC = hnIv.new('RGBA', (bWj8, BbYD), (0, 0, 0))\n KLXs = MX3a + max(vgXP[0], 0)\n yYS2 = MX3a + max(vgXP[1], 0)\n n3tC.paste(mqSx, [KLXs, yYS2, KLXs + LNo...
[ "0.71736056", "0.66292", "0.65392244", "0.645358", "0.6399967", "0.63977253", "0.6396596", "0.63827735", "0.623564", "0.6141279", "0.6136365", "0.6124058", "0.6088617", "0.6085698", "0.6078954", "0.5990218", "0.593124", "0.5906852", "0.58482844", "0.5842372", "0.5783762", "...
0.8016093
0
Get size of input pixel, compute image width in meters.
def JsF9(YKHO): JZs_ = YKHO.header if 'cd1_1' in JZs_: YKHO.D = abs(JZs_['cd1_1']) * JZs_['naxis1'] elif 'cdelt1' in JZs_: YKHO.D = abs(JZs_['cdelt1']) * JZs_['naxis1'] else: print('Warning: no coordinate information found in input header;') print(' pupil width assumed ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V8C_(YKHO):\n TVTK = oyIN.size(YKHO.img, 0)\n return TVTK", "def jiw9(VXjJ):\n Rqdx, _jd4 = VXjJ.shape[:2]\n return _jd4 * Rqdx", "def xiCJ(YKHO):\n return YKHO._image.width()", "def SUIL(lEHr, aQIj, UVns):\n u54L = aQIj * lEHr / UVns\n return u54L", "def nph1(YKHO):\n return YK...
[ "0.7677679", "0.7587488", "0.7385247", "0.7233582", "0.7149443", "0.7149443", "0.70930415", "0.70841414", "0.7082394", "0.7079337", "0.7007156", "0.6959096", "0.6905152", "0.6890924", "0.6890266", "0.688586", "0.68216383", "0.67897856", "0.677458", "0.6754209", "0.67508346", ...
0.0
-1
A generator that, given a DOM tree, yields all text fragments in that tree
def R2V6(Q6kx): if Q6kx.nodeType == Q6kx.TEXT_NODE: yield Q6kx.data for aUGN in Q6kx.childNodes: for l5Ny in R2V6(aUGN): yield l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TCDG(Q6kx):\n for aUGN in Q6kx.childNodes:\n if aUGN.nodeType == aUGN.TEXT_NODE:\n yield aUGN.data", "def RfE7(Q6kx):\n return ''.join(R2V6(Q6kx))", "def CJpl(Q6kx):\n for aUGN in Q6kx.children:\n if isinstance(aUGN, HiMC) and (not isinstance(aUGN, jY1u)):\n yie...
[ "0.71465194", "0.6505877", "0.6341776", "0.6313069", "0.6208987", "0.61331975", "0.6049018", "0.6010867", "0.5902996", "0.5721751", "0.56509244", "0.5602479", "0.5538833", "0.5528797", "0.54971707", "0.5472538", "0.54702145", "0.5449357", "0.54414344", "0.54111284", "0.536538...
0.78401715
0
Concatenate all text under the given element recursively, and return it
def RfE7(Q6kx): return ''.join(R2V6(Q6kx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u0Rs(YKHO, U6D_):\n l5Ny = ''\n if U6D_.text is not None:\n l5Ny = l5Ny + U6D_.text\n for aUGN in U6D_.getchildren():\n l5Ny = l5Ny + YKHO._get_element_text(aUGN)\n if U6D_.tail is not None:\n l5Ny = l5Ny + U6D_.tail\n return l5Ny", "def GXzx(YKHO, LihS):\n KCHu = u' '....
[ "0.7476083", "0.7238177", "0.7155042", "0.6381594", "0.63180053", "0.6168671", "0.61297727", "0.60860467", "0.60681915", "0.60440797", "0.6019012", "0.5995016", "0.58992743", "0.58555645", "0.5831631", "0.58067006", "0.58049875", "0.57526165", "0.57024235", "0.56474376", "0.5...
0.6447832
3
A generator that, given a DOM tree, yields all text fragments contained immediately within
def TCDG(Q6kx): for aUGN in Q6kx.childNodes: if aUGN.nodeType == aUGN.TEXT_NODE: yield aUGN.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R2V6(Q6kx):\n if Q6kx.nodeType == Q6kx.TEXT_NODE:\n yield Q6kx.data\n for aUGN in Q6kx.childNodes:\n for l5Ny in R2V6(aUGN):\n yield l5Ny", "def tCBU(YKHO, U6D_):\n for l5Ny in YKHO.iter_main_text(U6D_):\n yield l5Ny.strip()", "def RfE7(Q6kx):\n return ''.join(R2...
[ "0.7660141", "0.66082823", "0.64660794", "0.6397904", "0.635378", "0.63032055", "0.6213505", "0.6194677", "0.60316443", "0.582272", "0.57656145", "0.5759193", "0.57142687", "0.56226665", "0.5621452", "0.5611139", "0.5539588", "0.550501", "0.54603165", "0.5450323", "0.54207486...
0.70954376
1
Compare two version strings of the form N0.N1.N2... Where N[0...] are decimal integers separated by periods(.)
def pvyc(T8d8, hQHm): try: L1dM = [int(eHNT) for eHNT in T8d8.split('.')] XOOk = [int(eHNT) for eHNT in hQHm.split('.')] except ValueError as error: bo34.error('invalid version comparison: {} <> {}'.format(T8d8, hQHm)) raise P1dF while len(L1dM) < len(XOOk): L1dM.appe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _p03(OqI1, ZdHp):\n pdni = OqI1.split('.')\n LL_Z = ZdHp.split('.')\n dgHy = len(pdni)\n b9mc = len(LL_Z)\n A2Fp = dgHy if dgHy < b9mc else b9mc\n for YRbF in range(0, A2Fp):\n if pdni[YRbF] > LL_Z[YRbF]:\n return (ZdHp, OqI1)\n if dgHy > b9mc and pdni[A2Fp - 1] == LL_Z[A...
[ "0.782437", "0.77762115", "0.76624346", "0.7596419", "0.7563813", "0.74166566", "0.74079436", "0.7347602", "0.731061", "0.7240587", "0.6969875", "0.6900846", "0.6692955", "0.6575106", "0.65666085", "0.65629387", "0.6537446", "0.64507836", "0.64374435", "0.6404391", "0.6350561...
0.6760001
12
Check if two version strings are equivalent
def Ow7A(T8d8, hQHm): return pvyc(T8d8, hQHm) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NYfh(YKHO):\n VC5D = '1.0.0.dev (Hello, World!)'\n aEqx = False\n n5sN = moxu.literally_compare(VC5D, VC5D.replace('.', '_'))\n YKHO.assertEqual(aEqx, n5sN)", "def oHTG(YKHO):\n VC5D = '1.0.0.dev (Hello, World!)'\n aEqx = True\n n5sN = moxu.literally_compare(VC5D, VC5D)\n YKHO.assertE...
[ "0.7253761", "0.7080029", "0.69020677", "0.68730366", "0.6816865", "0.68077374", "0.67947614", "0.67156863", "0.6705432", "0.6687337", "0.6645401", "0.65992266", "0.6587252", "0.6555264", "0.6551205", "0.64862543", "0.64862156", "0.645905", "0.64512753", "0.6446384", "0.64365...
0.6571167
13
Construct Multivariate Normal distribution on `R^k`. The `batch_shape` is the broadcast shape between `loc` and `scale` arguments. The `event_shape` is given by last dimension of the matrix implied by `scale`. The last dimension of `loc` (if provided) must broadcast with this. Recall that `covariance = scale @ scale.T`...
def FIMM(YKHO, hksT=None, NXpY=None, rUrJ=False, fdIe=True, oUbg=False, mWFP='MultivariateNormalLinearOperator'): SGPK = dict(locals()) YKHO._experimental_use_kahan_sum = oUbg if NXpY is None: raise ValueError('Missing required `scale` parameter.') if not vqUI.is_floating(NXpY.dtype): ra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wc9F(es2x, mWFP, NXpY=True, hgjH=True, KFeh=False, X8dm=False, wH3T='NHWC', yDqo=ZylS.float32, CJGY=False, H0zq=0.99, Y9ns=True, XJsN=None):\n if XJsN is None:\n XJsN = Y9ns\n if wH3T == 'NHWC' or wH3T == 'channels_last':\n jDK_ = -1\n elif wH3T == 'NCHW' or wH3T == 'channels_first':\n ...
[ "0.56068945", "0.558533", "0.55352217", "0.54480374", "0.54281026", "0.5373338", "0.5348993", "0.534293", "0.53155196", "0.5298864", "0.5228155", "0.5228155", "0.52274436", "0.51956904", "0.5165971", "0.51586795", "0.5144612", "0.51437366", "0.51434505", "0.5129371", "0.51289...
0.55445164
2
Batched KL divergence `KL(a || b)` for multivariate Normals. With `X`, `Y` both multivariate Normals in `R^k` with means `mu_a`, `mu_b` and covariance `C_a`, `C_b` respectively, ``` KL(a || b) = 0.5 ( L k + T + Q ),
def LcX9(jzdc, Fg_i, mWFP=None): def oRrT(WKvO): """Helper to make KL calculation slightly more readable.""" return ZylS.reduce_sum(ZylS.square(WKvO), axis=[-2, -1]) def KAm0(WKvO): """Helper to identify if `LinearOperator` has only a diagonal component.""" return isinstance(WK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zxnm(gxeW, ob0C, gGnb):\n B4TH = T7cc(gxeW, gGnb)\n iAZA = T7cc(ob0C, gGnb)\n return B4TH.KL(iAZA)", "def AiMb(EcVT, fuBA):\n ryEI, WNRf = tuple(oyIN.mean(EcVT, axis=0))\n _RNt, UkX0 = tuple(oyIN.std(EcVT, axis=0))\n gpRq, E43s = tuple(oyIN.mean(EcVT, axis=0))\n j93S, Nqp_ = tuple(oyIN.s...
[ "0.658404", "0.6311214", "0.62525827", "0.6197443", "0.6048815", "0.6012848", "0.5933193", "0.5931558", "0.58591413", "0.5849715", "0.5815837", "0.5800051", "0.5774561", "0.5740252", "0.57145333", "0.57052726", "0.5697698", "0.5600439", "0.55989295", "0.5567024", "0.55540746"...
0.5721349
14
Inititializing name and age attributes of dog
def FIMM(YKHO, mWFP, ZJe_): YKHO.name = mWFP YKHO.age = ZJe_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, mWFP, ZJe_):\n YKHO.name = mWFP\n YKHO.age = ZJe_\n print('Dog initialization is complete')", "def FIMM(YKHO, mWFP, ZJe_):\n YKHO.name = mWFP\n YKHO.age = ZJe_", "def FIMM(YKHO, mWFP, ZJe_):\n YKHO.name = mWFP\n YKHO.age = ZJe_", "def FIMM(YKHO, mWFP, ZJe_):\n YKHO.name...
[ "0.7660444", "0.6837803", "0.6837803", "0.6837803", "0.6767654", "0.67561054", "0.67561054", "0.67561054", "0.67561054", "0.6583374", "0.65085125", "0.65085125", "0.65085125", "0.65085125", "0.65085125", "0.65085125", "0.65085125", "0.65085125", "0.6506186", "0.63915575", "0....
0.67424846
9
Returns a tree of processes
def H78X(JbyC='-a'): MoOh('pstree {0}'.format(JbyC))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P3Cm(YKHO):\n Ziit = YKHO.nodes.exclude(process__isnull=True).values_list('process_id', flat=True)\n return ASOO.objects.filter(id__in=Ziit).distinct()", "def d9Dg(YKHO) -> jd6F[dict, None, None]:\n\n def I2VN(NBjn: dict) -> dict:\n hlel = {}\n for LFlW, _tIi in [(aR0E.PROCESS_IMAGE, a...
[ "0.7100633", "0.6870322", "0.6783588", "0.6770188", "0.6622113", "0.66027844", "0.6592738", "0.6571604", "0.6506026", "0.6309497", "0.6301092", "0.62224627", "0.62101513", "0.617808", "0.6111363", "0.6105415", "0.60873955", "0.6077496", "0.5935122", "0.5927807", "0.59078175",...
0.5721147
32
Returns operating system name
def Wju4(JbyC='-a'): MoOh('uname {0}'.format(JbyC))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mToc():\n return PSrQ.osName_", "def pqhZ():\n fATW = HwRy.platform.lower()\n if fATW == 'linux2':\n fATW = 'linux'\n return fATW", "def uR89() -> str:\n Oz1B = a9EH.system().lower()\n if Oz1B == 'linux':\n fwgd = Hy7s.uname().machine\n if fwgd.startswith('arm') or fw...
[ "0.83773994", "0.8279905", "0.81569976", "0.8150991", "0.81152725", "0.8065729", "0.80242413", "0.798916", "0.7968415", "0.7898788", "0.78795296", "0.78795296", "0.78149897", "0.77735364", "0.7747724", "0.7722913", "0.76965964", "0.76950985", "0.7667121", "0.76587385", "0.762...
0.0
-1
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(LZy1, YKHO).__init__(*qIxc, **c_sp) if YKHO.s1 is None: YKHO.s1 = False if YKHO.s2 is None: YKHO.s2 = False if YKHO.s3 is None: YKHO.s3 = False if YKHO.s4 is None: YKHO.s4 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.77949196", "0.77207184", "0.77207184", "0.7687274", "0.7626665", "0.75640404", "0.7440775", "0.7417612", "0.7351781", "0.7308563", "0.7280241", "0.7237561", "0.7227551", "0.72248346", "0.72248346", "0.7218737", "0.721217", "0.721217", "0.721217", "0.721217", "0.721217", ...
0.7139067
34
Should return a list of two words.
def dEJS(YKHO): p1kx = Rci7.match_weight('clevedon UK', ['clevedon']) YKHO.assertEqual(p1kx, 1000)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def koFS(yAmx):\n yAmx = kH6X.sub('\\\\1 \\\\2', yAmx)\n yAmx = pJIn.sub('\\\\1 \\\\2', yAmx)\n yAmx = A3Pt.split(yAmx)\n yAmx = ' '.join(yAmx)\n cfuW = [YRbF for YRbF in yAmx.split()]\n return ' '.join(cfuW)", "def HZTO(RLYO: list) -> list:\n pass", "def a1Ak(YKHO):\n UHFx = YKHO.aggre...
[ "0.72570837", "0.72046727", "0.7069434", "0.6990114", "0.69727683", "0.6948797", "0.68982446", "0.68766356", "0.68631524", "0.68228734", "0.68228734", "0.6808646", "0.6772686", "0.6742592", "0.67259824", "0.6721441", "0.6718466", "0.6698988", "0.6674042", "0.6660404", "0.6643...
0.0
-1
Function to export preprocessed data to a csv file
def XqFa(YKHO, qaEx, g0lY=True, i76I=True): YKHO.pre_proc_data.to_csv(qaEx + '.csv', index=g0lY, header=i76I) print('Pre-processed data saved to .csv succesfully. \n')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B5wr(YKHO):\n YKHO.process_report_data().to_csv(YKHO.out_file_path, index=False)", "def aVpL(YKHO, Ux0P):\n YKHO.data.to_csv(Ux0P)", "def z36O(nPrm, kmfe, Ux0P, T4Wy=[], sdCG=True):\n with open(kmfe + Ux0P + '.csv', 'w') as eHNT:\n Lsrz = m6_J.writer(eHNT)\n Lsrz.writerows(VWXq.dic_t...
[ "0.7475848", "0.7361879", "0.7313685", "0.71949476", "0.71727455", "0.71075267", "0.69587564", "0.6955538", "0.69286054", "0.6883265", "0.6881506", "0.68803203", "0.687411", "0.6871328", "0.68420494", "0.68386006", "0.6827709", "0.6819446", "0.6819446", "0.6817574", "0.681086...
0.80190265
0
Function to return the maximum absorbance in the timelapse
def JhlG(YKHO): return oyIN.nanmax(YKHO.abs_data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gNly(YKHO):\n return YKHO.time[oyIN.argmax(YKHO.flux)]", "def qCWK(YKHO):\n try:\n PtQX = max(YKHO.sample[YKHO.sample['masked'] == False]['abundance']) + 0.01\n except:\n PtQX = 0\n return PtQX", "def max(YKHO):\n return pTmx(YKHO, stat='max')", "def DDWp(YKHO, ITS7):\n xT...
[ "0.69801533", "0.68877816", "0.6874527", "0.6819879", "0.66570175", "0.6527111", "0.65086555", "0.64958", "0.64427745", "0.6397908", "0.6377062", "0.6304347", "0.62882537", "0.6276951", "0.6272387", "0.62265176", "0.6181445", "0.6172777", "0.61725163", "0.61337143", "0.612818...
0.5723995
69
r"""Fills the input `Tensor` with values according to the method described in `Understanding the difficulty of training deep feedforward neural networks` Glorot, X. & Bengio, Y. (2010), using a normal distribution. The resulting tensor will have values sampled from
def LovO(vhpA, mb4J=1.0, t3eI=None): IddF, XNhq = ML5d(vhpA) M1Jx = mb4J * epAf.sqrt(2.0 / float(IddF + XNhq)) h6h3(vhpA, 0.0, M1Jx, t3eI) return vhpA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def URok(YKHO, *qIxc, **B2fa):\n return ht2j.empty(*qIxc, **B2fa).normal_()", "def Ixt2():\n return oyIN.random.uniform(-1, 1)", "def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (None, YKHO.latent_dim))", "def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZ...
[ "0.61725956", "0.6070464", "0.60264194", "0.60264194", "0.60264194", "0.60264194", "0.60264194", "0.5985324", "0.5977713", "0.5937544", "0.59191823", "0.5911526", "0.5907372", "0.5898523", "0.58974665", "0.5875607", "0.58514076", "0.58495027", "0.5823291", "0.5820147", "0.581...
0.0
-1
r"""Fills the 2D input `Tensor` as a sparse matrix, where the nonzero elements will be drawn from the normal distribution
def GhBO(vhpA, o_OR, M1Jx=0.01, t3eI=None): if vhpA.ndimension() != 2: raise ValueError('Only tensors with 2 dimensions are supported') usx6, WfCS = vhpA.shape ZiMX = int(epAf.ceil(o_OR * usx6)) if t3eI is not None: eK5b = ht2j.Generator() eK5b.manual_seed(t3eI) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YTBl(SppC):\n exwG = SppC[0].size\n UqER = []\n for YRbF in range(exwG):\n for r845 in range(exwG):\n if SppC[YRbF][r845] != 0:\n ycBG = hhkW(YRbF, r845, SppC[YRbF][r845])\n UqER.append(ycBG)\n return BsUr(exwG, UqER)", "def YKF9(zNig, begE='cuda:0'...
[ "0.67311174", "0.66716176", "0.64965165", "0.63598454", "0.63387793", "0.6238487", "0.62327516", "0.61652976", "0.6108471", "0.60718554", "0.6067091", "0.60586315", "0.603004", "0.5993939", "0.59564877", "0.5950967", "0.59054613", "0.5886422", "0.5877167", "0.58765334", "0.58...
0.6960967
0
Building CNN Model using Keras 2 Functional API
def L11X(YKHO, GhuM): d6hw = X6a0(shape=GhuM) dFGd = yHwh(32, (3, 3), activation='relu')(d6hw) maLU = BzBX((2, 2))(dFGd) sUaA = yHwh(32, (3, 3), activation='relu')(maLU) bck4 = BzBX((2, 2))(sUaA) bwvV = yHwh(64, (3, 3), activation='relu')(bck4) __cJ = BzBX((2, 2))(bwvV) PWgb = D2Bo()(__c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8cN():\n if nMvt.image_data_format() == 'channels_first':\n GhuM = (3, PLSm, s3Vn)\n else:\n GhuM = (PLSm, s3Vn, 3)\n C3ST = ileL()\n C3ST.add(yHwh(32, (3, 3), input_shape=GhuM))\n C3ST.add(MroH('relu'))\n C3ST.add(BzBX(pool_size=(2, 2)))\n C3ST.add(yHwh(32, (3, 3)))\n C3...
[ "0.79656893", "0.7958207", "0.7817639", "0.7698621", "0.7653019", "0.7582791", "0.7561601", "0.75297076", "0.75131255", "0.7422548", "0.73869014", "0.737296", "0.73530495", "0.73505014", "0.7336627", "0.7306447", "0.7295593", "0.72819936", "0.72589046", "0.7256983", "0.725078...
0.7019755
48
Checks whether a user can be created with username email and password
def cDXr(YKHO): YKHO.assertIsInstance(mv1M.objects.create_user(username='username', email='username@mail.com', password='password'), mv1M)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RDRA(YKHO):\n pB3N = {'email': 'test@test1.com', 'password': 'testpass', 'name': 'TestName'}\n Ylbp = YKHO.client.post(CKgv, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED)\n CBIr = egNl().objects.get(**Ylbp.data)\n YKHO.assertTrue(CBIr.check_password(pB3N['test@test1.com', 'te...
[ "0.7756845", "0.7741258", "0.7736343", "0.7733922", "0.7677574", "0.767662", "0.76544", "0.7653951", "0.76383364", "0.763251", "0.7613336", "0.76109636", "0.760976", "0.7597538", "0.75855196", "0.7582497", "0.75782627", "0.75762373", "0.7569223", "0.75680345", "0.75503266", ...
0.71962583
49
Ensure a user cannot be created without an email
def FfRJ(YKHO): with YKHO.assertRaises(TypeError): mv1M.objects.create_user(username='username', password='password', email=None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q5xs(YKHO):\n with trZe.raises(ValueError) as wrFM:\n biYH.objects._create_user(None, None, False, False)\n YKHO.assertIn('email must be set', str(wrFM.value))", "def hhyC(YKHO):\n with YKHO.assertRaises(ValueError):\n egNl().objects.create_user(None, 'Test1234')", "def JmAV(YKHO):\n...
[ "0.82582766", "0.7919107", "0.7875968", "0.7741182", "0.7733113", "0.77283794", "0.77254593", "0.7721021", "0.76949185", "0.7693235", "0.7693235", "0.7693235", "0.7693235", "0.7693235", "0.7690692", "0.76710504", "0.76565343", "0.7654827", "0.75902516", "0.7588441", "0.757935...
0.7850715
3
Ensure a superuser can be created
def CA3s(YKHO): CBIr = mv1M.objects.create_superuser(username='admin', email='admin@admin.com', password='password') YKHO.assertTrue(CBIr.is_staff) YKHO.assertTrue(CBIr.is_superuser)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ciZx(YKHO):\n pB3N = {'email': 't@t.pl', 'password': 'password', 'name': 'asdasd', 'is_superuser': False}\n Ylbp = YKHO.client_superuser.post(gxEw(CKgv), data=pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED)", "def rCAj(YKHO):\n CBIr = egNl().objects.create_superuser('test@asd.co...
[ "0.8124481", "0.7641515", "0.7616243", "0.74287134", "0.74168247", "0.73632073", "0.7360824", "0.7311047", "0.7307638", "0.72554475", "0.7249822", "0.7238858", "0.7235135", "0.7224442", "0.7224177", "0.7223552", "0.7209373", "0.71918464", "0.7186527", "0.71835196", "0.7138508...
0.7200312
17
Getter for path of postfile.
def k7LB(YKHO): return YKHO.file_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OyQC(YKHO):\n try:\n return YKHO._file.path\n except AttributeError:\n return Hy7s.path.abspath(YKHO._file.name)", "def pmON(YKHO):\n return YKHO.file_path()", "def pmON(YKHO):\n return YKHO.get_upload_set().path(YKHO.filename)", "def vcG3(YKHO):\n return YKHO.path", "def F...
[ "0.7684424", "0.7634675", "0.7584958", "0.7500743", "0.74892503", "0.7436438", "0.74001753", "0.73950005", "0.7212271", "0.7194952", "0.71715444", "0.7152331", "0.71349305", "0.712261", "0.712261", "0.712261", "0.712261", "0.712261", "0.712261", "0.712261", "0.712261", "0.7...
0.6561106
61
Date commonly used for Expires response header
def BPmX(Wave): JRYC = qcWV.datetime.now() + qcWV.timedelta(hours=Wave) return _1bu(JRYC)
{ "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 yxS0(YKHO, BWXx):\n BWXx = gnPz.parse_valid_date...
[ "0.7195939", "0.6907186", "0.6881916", "0.6744938", "0.6724165", "0.66852033", "0.65854144", "0.6536665", "0.6499758", "0.64993864", "0.6485234", "0.6301679", "0.62763596", "0.62661", "0.6180781", "0.6173712", "0.613423", "0.6105018", "0.60970664", "0.608861", "0.60184294", ...
0.6574573
7
String commonly used for CacheControl response headers
def e0AN(Wave): C6wh = Wave * 60 * 60 return 'max-age=' + str(C6wh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TyNi(YKHO):\n\n def chpw(TyNi):\n if not TyNi and 'surrogate-control' in YKHO.headers:\n del YKHO.headers['surrogate-control']\n elif TyNi:\n YKHO.headers['Surrogate-Control'] = TyNi.to_header()\n return LAY0(YKHO.headers.get('surrogate-control'), chpw, OA2m)", "def ...
[ "0.6768353", "0.6566287", "0.65467256", "0.6538585", "0.6342155", "0.61724174", "0.61724174", "0.6127087", "0.6127087", "0.61033094", "0.60564166", "0.6011409", "0.6011409", "0.6001654", "0.5991665", "0.5977934", "0.59726334", "0.5960509", "0.5953296", "0.5953296", "0.5953296...
0.0
-1
Add all the strided dst_ops of the first cat to the second and make an appropriate slice op between the second cat and each dst_ops. cat_dim_offset represents the offset of the first cat output appearing in the second cat along the cat_dim dimension.
def Ageh(pBvT: Operator, L9Me: Operator, bc4L: int) -> None: hxIu = pBvT._attrs['outputs'][0] uppJ = hxIu._attrs['dst_ops'] if len(uppJ) <= 1: return OPz6 = hxIu.shape() fdMZ = len(OPz6) TGxH = pBvT._attrs['concat_dim'] assert TxfM.cat_split_dim_is_static(pBvT, TGxH), f'expected the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PKdv(pBvT: Operator, L9Me: Operator) -> bool:\n if not all((CU1e.actual_shapes is None for CU1e in pBvT._attrs['input_accessors'])):\n return False\n if not all(pBvT._attrs['input_masks']):\n return False\n TGxH = pBvT._attrs['concat_dim']\n LdgA = pBvT._attrs['outputs']\n assert l...
[ "0.6612727", "0.5544993", "0.5439845", "0.53585875", "0.5300117", "0.52778655", "0.521713", "0.5149487", "0.51412314", "0.51373166", "0.5121676", "0.5056443", "0.50411654", "0.5012992", "0.50077736", "0.50072813", "0.49859685", "0.49837145", "0.49785277", "0.49754632", "0.496...
0.8834131
0
A helper function that returns True if the given dst_op is a supported strided op; or a view op that is only used by a supported stride op; or a view op that is indirectly (via another singledst view op) used by a supported strided op. Note that technically, this checking is not necessary, because we could let other pa...
def VuAS(qDtx: Operator) -> bool: SsE4 = ['reshape', 'flatten', 'dynamic_slice', 'squeeze', 'unsqueeze'] mZBc = ['elementwise', 'fused_elementwise'] def xsXF(GOAn): if GOAn in mZBc: return True return GOAn.startswith(('bmm_crr', 'bmm_rrr')) rXLM = qDtx._attrs['op'] if xs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _kMC(YKHO, khtY, TY6p):\n HMDd = TY6p.get_op_slices(khtY)\n AD7c = [TY6p.get_op_group(amBP) for amBP in HMDd]\n return SnUE.get_op_size(khtY) == 1 and all(AD7c)", "def PKdv(pBvT: Operator, L9Me: Operator) -> bool:\n if not all((CU1e.actual_shapes is None for CU1e in pBvT._attrs['input_accessors']...
[ "0.6025673", "0.58237857", "0.55752563", "0.53833795", "0.52820736", "0.5281718", "0.5199627", "0.51538306", "0.5042549", "0.50408286", "0.49940622", "0.4991036", "0.4928692", "0.48980138", "0.48713082", "0.48710307", "0.48587143", "0.48244345", "0.48205978", "0.4820422", "0....
0.8079707
0
Wrapper function for printing to STDERR
def GaGw(*qIxc, **B2fa): print(*qIxc, file=HwRy.stderr, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y2SS(*qIxc, **B2fa):\n JVz5(HwRy.stderr, *qIxc, **B2fa)", "def GaGw(jMN5):\n print(jMN5, file=QeD9)", "def ob7F(*qIxc, **B2fa):\n print(*qIxc, file=HwRy.stderr, **B2fa)", "def p_yA(*qIxc, **B2fa):\n print(*qIxc, file=wIbz, **B2fa)", "def sZGp(*qIxc):\n HwRy.stderr.write(' '.join(map(str,...
[ "0.76097333", "0.7591649", "0.74702775", "0.74254733", "0.7383956", "0.7311232", "0.7297354", "0.7272107", "0.7193542", "0.7187452", "0.7010251", "0.6952484", "0.6948659", "0.6901616", "0.6831819", "0.6814909", "0.6779725", "0.6747327", "0.67462695", "0.66478425", "0.6627871"...
0.6609267
26
When given a `pk` value, this view will list all the configuration profiles for a given device. When `pk` is not supplied, the view will list all the profiles in the MDM.
def Z5Nm(QePW, _sei=0): QpfX = {'items': [], 'resource_type': 'Profile'} Essj() if _sei == 0: QpfX['h2'] = 'Configuration Profiles' QpfX['header_1'] = 'Type' QpfX['header_2'] = 'Last Modified' QhXp = eNol.objects.all().reverse() for z39Z in QhXp: L4Go = z3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OmRi(QePW, _sei):\n QpfX = {}\n z39Z = Iofl(eNol, pk=_sei)\n lV4j = HL1e.objects.filter(profile=z39Z, device__pending__in=[z39Z], active=True, version='RM')\n GBx4 = dCYf.objects.filter(pending__in=[z39Z]).exclude(install_records__in=lV4j)\n rsSf = HL1e.objects.filter(profile=z39Z, device__insta...
[ "0.6888834", "0.5336745", "0.52153695", "0.52136016", "0.51638395", "0.50880617", "0.5059607", "0.504103", "0.5034145", "0.50094795", "0.4929928", "0.4871672", "0.48644266", "0.48373175", "0.4781555", "0.47694975", "0.47589234", "0.47347584", "0.46774995", "0.46605673", "0.45...
0.64643496
1
Aggregate all columns in the input data frame, assuming the data is "count" data that can be summed. Note The geometry of the returned object is aggregated geometry of all input geometries (the unary union).
def fvlw(jQ3Z, wk71, Q9E_=[]): if wk71 not in jQ3Z.columns: raise ValueError(f"the specified column to group by '{xEOs}' is not in the input data") Dxeq = [fvDH for fvDH in jQ3Z.columns if not fvDH.startswith('geo') and (not fvDH.endswith('moe'))] def RGND(gO7E): """ The function th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RGND(gO7E):\n yvT9 = {}\n for fvDH in Dxeq:\n czjy = f'{fvDH}_moe'\n vcn7 = gO7E.dropna(subset=[fvDH], how='any')\n if len(vcn7):\n qIxc = oyIN.column_stack([vcn7[fvDH], vcn7.get(czjy, oyIN.zeros(len(vcn7)))])\n enPK, RAXt = X8hU.approximate_sum(*qIxc)\n ...
[ "0.6704904", "0.6203286", "0.58382016", "0.5811576", "0.5790583", "0.5765033", "0.5745803", "0.56839", "0.56277764", "0.5618349", "0.5607276", "0.5562513", "0.5506225", "0.5492474", "0.5485867", "0.5466448", "0.54351276", "0.54331636", "0.53565496", "0.5348488", "0.53447205",...
0.6208687
1
Check that the sigmoid function returns the expected values for certain test cases
def ga5J(YKHO): YKHO.assertAlmostEqual(m1Hg(0), 0.5) YKHO.assertAlmostEqual(m1Hg(1), 1 / (1 + epAf.e ** (-1))) oyIN.testing.assert_array_almost_equal(m1Hg([0, 0, 0]), oyIN.array([0.5, 0.5, 0.5]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _4Ie(YKHO):\n YKHO.assertEqual([0.5, 0.5], list(fmAV.Sigmoid().output(oyIN.array([0, 0]))))\n YKHO.assertEqual([0.25, 0.25], list(fmAV.Sigmoid().derivative(oyIN.array([0, 0]))))", "def F8d8(YKHO):\n MxcS = 1\n Aofo = YDYE.soft_sigmoid(MxcS)\n YKHO.assertEqual(Aofo, 0.6963549298238342)", "def...
[ "0.83076197", "0.82581586", "0.81059945", "0.7922861", "0.7910582", "0.7693582", "0.75288785", "0.747376", "0.73051524", "0.7269971", "0.7269971", "0.7269971", "0.7269971", "0.7269971", "0.7269971", "0.726492", "0.726492", "0.7261148", "0.7260175", "0.7259793", "0.72550905", ...
0.8721928
0
Check that the sigmoid derivative function returns the expected values for certain test cases
def IFS4(YKHO): YKHO.assertAlmostEqual(NZml(0), 0.25) YKHO.assertAlmostEqual(NZml(1), 0.19661193324)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ga5J(YKHO):\n YKHO.assertAlmostEqual(m1Hg(0), 0.5)\n YKHO.assertAlmostEqual(m1Hg(1), 1 / (1 + epAf.e ** (-1)))\n oyIN.testing.assert_array_almost_equal(m1Hg([0, 0, 0]), oyIN.array([0.5, 0.5, 0.5]))", "def _4Ie(YKHO):\n YKHO.assertEqual([0.5, 0.5], list(fmAV.Sigmoid().output(oyIN.array([0, 0]))))\...
[ "0.800912", "0.79653865", "0.77460605", "0.7609893", "0.7427794", "0.74054325", "0.74054325", "0.7382616", "0.7380849", "0.735495", "0.734648", "0.7110635", "0.7073369", "0.70732284", "0.7010165", "0.69350487", "0.69266385", "0.69154626", "0.690125", "0.6846333", "0.6807472",...
0.8694649
0
Check that the sigmoid function saturates to one at high input values
def euRN(YKHO): YKHO.assertAlmostEqual(m1Hg(50), 1.0) YKHO.assertAlmostEqual(m1Hg(-36), 0.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ga5J(YKHO):\n YKHO.assertAlmostEqual(m1Hg(0), 0.5)\n YKHO.assertAlmostEqual(m1Hg(1), 1 / (1 + epAf.e ** (-1)))\n oyIN.testing.assert_array_almost_equal(m1Hg([0, 0, 0]), oyIN.array([0.5, 0.5, 0.5]))", "def rjwA(WKvO):\n WKvO = 0.2 * WKvO + 0.5\n WKvO = vuvg.threshold(-WKvO, -1, -1)\n WKvO = ...
[ "0.7840822", "0.78328764", "0.7658974", "0.7566247", "0.75269365", "0.74784154", "0.74627495", "0.7444658", "0.7440511", "0.7440511", "0.74286145", "0.74239683", "0.74051744", "0.7400626", "0.7384288", "0.73818886", "0.7373797", "0.7373797", "0.7373797", "0.7373797", "0.73737...
0.7862481
0
The fully resolved URI string for this target.
def kt0C(YKHO): if isinstance(YKHO.entity, int): kt0C = '{{{0}}}'.format(YKHO.entity) elif isinstance(YKHO.entity, XEWp): kt0C = '{{{0}}}'.format(YKHO.entity.address) else: try: kt0C = YKHO.entity.ref except AttributeError: kt0C = pGcm(YKHO.entity) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j8eK(YKHO) -> str:\n return YKHO._uri", "def D3T3(YKHO):\n return '%s://%s%s' % (YKHO.protocol, YKHO.host, YKHO.uri)", "def zFcP(YKHO):\n return YKHO.__uri", "def j8eK(YKHO):\n return YKHO._uri", "def j8eK(YKHO):\n return YKHO._uri", "def j8eK(YKHO):\n return YKHO._uri", "def j8eK...
[ "0.79681325", "0.78171605", "0.77143604", "0.77074355", "0.77074355", "0.77074355", "0.77074355", "0.77074355", "0.77074355", "0.7666865", "0.76534194", "0.7589608", "0.756532", "0.75619304", "0.75571066", "0.74762946", "0.74659306", "0.7406349", "0.736927", "0.7322809", "0.7...
0.7216512
23
Get reward from given state
def nFcm(BH3N): vOGg = 0 if BH3N.gameLevel.asteroidDestroyed(): vOGg += 10 if BH3N.gameLevel.levelCleared: vOGg += 20 if BH3N.gameLevel.gameOver: vOGg -= 10 return vOGg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xyVK(YKHO, QTBn, XeOP, rxHc, _5Eh):\n raise NotImplementedError", "def xyVK(YKHO, QTBn, XeOP, rxHc):\n assert XeOP in YKHO.get_possible_actions(QTBn), 'cannot do action %s from state %s' % (XeOP, QTBn)\n return YKHO._rewards.get(QTBn, {}).get(XeOP, {}).get(rxHc, 0.0)", "def xyVK(YKHO, QTBn, XeOP, ...
[ "0.8045687", "0.8026533", "0.79626703", "0.79564565", "0.7616803", "0.75947267", "0.7569971", "0.7482292", "0.7471966", "0.74115306", "0.7394233", "0.7372406", "0.72931135", "0.7243583", "0.7222978", "0.7184763", "0.7159693", "0.71118283", "0.7111579", "0.7102477", "0.7058823...
0.0
-1
Returns true if this process has a fixed smp affinity mask, not allowing it to be moved to a different set of CPUs.
def Z6Aj(YKHO): return YKHO.fields['flags'] & YKHO.PF_THREAD_BOUND and True or False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f6Cx(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'session_affinity_enabled')", "def f6Cx(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'session_affinity_enabled')", "def f6Cx(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'session_affinity_enabled')", "def Pns3...
[ "0.6239417", "0.6239417", "0.597791", "0.56544566", "0.56213695", "0.5586835", "0.55038387", "0.548722", "0.5473159", "0.544503", "0.543302", "0.5388909", "0.5388909", "0.5351124", "0.53324836", "0.52388155", "0.52211", "0.5182524", "0.5160681", "0.51578665", "0.51391023", ...
0.5746601
3
Loads the environment variables for this process. The entries then become available via the 'environ' member, or via the 'environ' dict key when accessing as p["environ"].
def oVSi(YKHO): YKHO.environ = {} eHNT = nUeQ('/proc/%d/environ' % YKHO.pid) for WKvO in eHNT.readline().split('\x00'): if len(WKvO) > 0: LVAh = WKvO.split('=') YKHO.environ[LVAh[0]] = LVAh[1] eHNT.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f3RG():\n GikI = Fm8B.load_yaml(Hy7s.getenv('system_file', './system.yaml'))\n for H5ew in GikI:\n if H5ew in Hy7s.environ:\n GikI[H5ew] = Hy7s.getenv(H5ew)\n Fm8B.environment = GikI", "def HLSQ(Ii1o=1):\n try:\n Ii1o = int(Ii1o)\n except ValueError:\n raise Typ...
[ "0.72640723", "0.67112094", "0.6643739", "0.6579186", "0.64578545", "0.64321744", "0.64190364", "0.63612753", "0.6336438", "0.6309374", "0.6309374", "0.6309374", "0.6309374", "0.6309374", "0.6309374", "0.6308915", "0.6305903", "0.63039196", "0.6287894", "0.6287856", "0.628616...
0.8507662
0
Euclidean distance between two points.
def sOE8(WKvO, LVAh): return oyIN.sqrt(oyIN.sum((WKvO - LVAh) ** 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usGr(lCHq, ANJu):\n return epAf.sqrt(sum([(WKvO - LVAh) ** 2 for WKvO, LVAh in zip(lCHq, ANJu)]))", "def usGr(lCHq, ANJu):\n return oyIN.linalg.norm(oyIN.array(lCHq) - oyIN.array(ANJu))", "def usGr(QxIi, Mo0Q):\n return oyIN.linalg.norm(QxIi - Mo0Q)", "def usGr(o4D3, ajwV):\n return oyIN.sqrt...
[ "0.84279233", "0.83612895", "0.8324174", "0.83092695", "0.8306929", "0.82199126", "0.8209069", "0.82086724", "0.8176723", "0.805556", "0.80503225", "0.8045459", "0.80258095", "0.7958847", "0.7943932", "0.79337907", "0.79223317", "0.78885055", "0.7877786", "0.78511626", "0.784...
0.7513078
49
Quadratic distance between two points.
def V70B(WKvO, LVAh): return oyIN.sum((WKvO - LVAh) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiNI(o4D3: float, si3g: float, ajwV: float, skBL: float) -> float:\n Jw7X = ajwV - o4D3\n eUWA = skBL - si3g\n return Jw7X ** 2 + eUWA ** 2", "def lx4K(KwKv: tuple, YBrO: tuple) -> float:\n return (YBrO[1] - KwKv[1]) ** 2 + (YBrO[0] - KwKv[0]) ** 2", "def Ayfi(X3qZ, ZYCo):\n o4D3, si3g = X3q...
[ "0.73594093", "0.68154496", "0.6797626", "0.67503107", "0.6729357", "0.65785533", "0.64868337", "0.6474658", "0.6469908", "0.6450345", "0.6420173", "0.6415566", "0.63962483", "0.6381101", "0.6363967", "0.6362239", "0.6341671", "0.63354266", "0.63243765", "0.6319101", "0.63175...
0.0
-1
Returns the X coordinate for the bus.
def HwwM(YKHO) -> float: return YKHO.dss_obj.BUSF(1, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nIKw(YKHO):\n return YKHO.coords[0]", "def p5xg(YKHO):\n return YKHO.x_coord", "def vAgg(YKHO):\n return YKHO.position.x", "def YH9x(YKHO):\n return YKHO.actual_coordinates[0]", "def h1ia(YKHO) -> float:\n return YKHO.x_coord", "def WKvO(YKHO):\n return YKHO.coords[0]", "def WKvO(...
[ "0.80993617", "0.7988393", "0.79276025", "0.7882585", "0.7859119", "0.77510834", "0.7740236", "0.7716511", "0.7660599", "0.76177466", "0.7482796", "0.7402999", "0.7389607", "0.73621637", "0.7351837", "0.7350878", "0.734291", "0.7341933", "0.7339877", "0.73084044", "0.7281881"...
0.67632663
34
Allows to write the X coordinate for the bus. Returns 0.
def wD0m(YKHO, cFAM) -> int: cFAM = i_Aq.check_float_param(cFAM) Aofo = YKHO.dss_obj.BUSF(2, gk2W.c_double(cFAM)) i_Aq.check_assertion_result(Aofo, 'Write X coordinate failed!', 'Something wrong when tried defined the X coordinate!') return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p5xg(YKHO):\n return YKHO.x_coord", "def vAgg(YKHO):\n return YKHO.position.x", "def WKvO(YKHO):\n return YKHO.position.x", "def nIKw(YKHO):\n return YKHO.posX", "def VIZJ(YKHO, BWXx):\n YKHO.position[0] = BWXx", "def WKvO(YKHO):\n return YKHO.coords[0]", "def nIKw(YKHO):\n ret...
[ "0.6805958", "0.675453", "0.6699914", "0.669043", "0.6583456", "0.6578621", "0.6551312", "0.6539589", "0.6512612", "0.6468095", "0.6468062", "0.6466091", "0.6410193", "0.6367617", "0.6351005", "0.63464594", "0.6322574", "0.6318194", "0.6302353", "0.62887406", "0.62839437", ...
0.7504362
0
Returns the X coordinate for the bus.
def KVi_(YKHO) -> float: return YKHO.dss_obj.BUSF(3, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nIKw(YKHO):\n return YKHO.coords[0]", "def p5xg(YKHO):\n return YKHO.x_coord", "def vAgg(YKHO):\n return YKHO.position.x", "def YH9x(YKHO):\n return YKHO.actual_coordinates[0]", "def h1ia(YKHO) -> float:\n return YKHO.x_coord", "def WKvO(YKHO):\n return YKHO.coords[0]", "def WKvO(...
[ "0.80993617", "0.7988393", "0.79276025", "0.7882585", "0.7859119", "0.77510834", "0.7740236", "0.7716511", "0.7660599", "0.76177466", "0.7482796", "0.7402999", "0.7389607", "0.73621637", "0.7351837", "0.7350878", "0.734291", "0.7341933", "0.7339877", "0.73084044", "0.7281881"...
0.0
-1
Allows to write the Y coordinate for the bus. Returns 0.
def qUNT(YKHO, cFAM: float) -> int: cFAM = i_Aq.check_float_param(cFAM) Aofo = YKHO.dss_obj.BUSF(4, gk2W.c_double(cFAM)) i_Aq.check_assertion_result(Aofo, 'Write Y coordinate failed!', 'Something wrong when tried defined the Y coordinate!') return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DppO(YKHO):\n return YKHO.Direction['y']", "def KVi_(YKHO) -> float:\n return YKHO.dss_obj.BUSF(3, 0)", "def bmPF(YKHO):\n return YKHO.y0 + oyIN.arange(YKHO.ny) * YKHO.dy", "def n_tS(YKHO) -> float:\n return YKHO.y_coord", "def LVAh(YKHO):\n return YKHO.coords[1]", "def BBTF(YKHO):\n ...
[ "0.7204729", "0.7133915", "0.70421714", "0.7035175", "0.7029254", "0.7027589", "0.7025204", "0.69881326", "0.6954376", "0.69359756", "0.69286776", "0.69241136", "0.69053024", "0.6893719", "0.6874418", "0.68630475", "0.68284446", "0.68284446", "0.6804384", "0.67853445", "0.678...
0.7932193
0
Read serialized data from JSON file, decode into Python object(s).
def Ueki(IznC): with open(IznC, 'r') as o36Q: Pt6R = o36Q.read() ITJE = qQXR.JSONDecoder(object_hook=mU7y) nPrm = ITJE.decode(Pt6R) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y45A(Ux0P):\n with open(Ux0P, 'r', encoding='UTF-8') as JZXy:\n nPrm = qQXR.load(JZXy, object_hook=gQ4a)\n return nPrm", "def n5rA(YKHO):\n with open(Hy7s.path.join(YKHO.root_path, YKHO._data_file), 'r') as nUeQ:\n nPrm = qQXR.load(nUeQ)\n for H5ew, wEf2 in nPrm.items():\n YK...
[ "0.7427025", "0.7401203", "0.73061746", "0.73061746", "0.7266844", "0.7232876", "0.7217766", "0.7144292", "0.71408784", "0.71408373", "0.71408373", "0.71165866", "0.710775", "0.71004343", "0.7082682", "0.70816326", "0.7022214", "0.7020085", "0.69943637", "0.6984892", "0.69675...
0.72445816
5
Return a generator of rowtype dictionary objects. Each row emitted should be a dictionary of property names to their values.
def csM9(YKHO, QpfX: Optional[dict]=None) -> iu5r[cuzp[str, ImMB]]: if QpfX and QpfX.get('comments', None) == 0: YKHO.logger.debug(f"No comments detected. Skipping '{YKHO.name}' sync.") return [] return super().get_records(QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FkCx(YKHO):\n WRKq = iter(YKHO)\n MOPg = next(WRKq)\n for rdlD in WRKq:\n yield dict(zip(MOPg, rdlD))", "def ei4T(YKHO):\n bGrB, Z9rn = YKHO.get_column(0)\n zNig = len(Z9rn)\n MOPg = YKHO.headers()\n for YRbF in range(zNig):\n YEnM = {}\n for MKlR in MOPg:\n ...
[ "0.6687146", "0.66758406", "0.65323836", "0.6425175", "0.63274896", "0.62857723", "0.6259711", "0.6259711", "0.610761", "0.61050224", "0.60067976", "0.58888286", "0.5881483", "0.5859894", "0.5858678", "0.5857102", "0.5835678", "0.5800577", "0.57668644", "0.5720909", "0.569728...
0.0
-1
Calculate and round number of filters based on depth multiplier.
def XF81(KUnM, jMd6): pSDG = jMd6.width_coefficient if not pSDG: return KUnM di96 = jMd6.depth_divisor i0Hi = jMd6.min_depth KUnM *= pSDG i0Hi = i0Hi or di96 b3cX = max(i0Hi, int(KUnM + di96 / 2) // di96 * di96) if b3cX < 0.9 * KUnM: b3cX += di96 return int(b3cX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r7mr(YKHO, KUnM):\n KUnM *= YKHO.width_coefficient\n b3cX = max(YKHO.depth_divisor, int(KUnM + YKHO.depth_divisor / 2) // YKHO.depth_divisor * YKHO.depth_divisor)\n if b3cX < 0.9 * KUnM:\n b3cX += YKHO.depth_divisor\n return int(b3cX)", "def XF81(KUnM, ey7p, lcK0, i0Hi):\n pSDG = float(...
[ "0.79212844", "0.77277", "0.77277", "0.76260203", "0.73904824", "0.73495585", "0.71545386", "0.71514016", "0.6494475", "0.64639574", "0.62070477", "0.61848557", "0.61825573", "0.6107263", "0.6089815", "0.6086534", "0.59294385", "0.58493793", "0.5784097", "0.5751723", "0.56976...
0.7674134
4
Chooses static padding if you have specified an image size, and dynamic padding otherwise. Static padding is necessary for ONNX exporting of models.
def kj_6(N0ky=None): if N0ky is None: return yGGu else: return YLnl(bzDh, image_size=N0ky)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tHuz(YKHO):\n ...", "def dvgN(VXjJ, exwG):\n VXjJ = oyIN.pad(VXjJ, [(exwG, exwG), (exwG, exwG)], mode='constant', constant_values=0)\n return VXjJ", "def AsTi(YKHO):\n XA_w, ZHfW, YKHO.pad_to_right, YKHO.pad_to_bottom = QSHj(Hy7s.path.join('utils_dfn/temp', YKHO.file_name_with_ext), YKHO.new_he...
[ "0.66277635", "0.64855933", "0.6460414", "0.6414065", "0.6413534", "0.6340561", "0.6336683", "0.63226736", "0.6322462", "0.6312314", "0.62720925", "0.61532396", "0.61212975", "0.6105602", "0.60911524", "0.60413617", "0.6026047", "0.6025298", "0.5991839", "0.59883153", "0.5968...
0.5830092
31
Map EfficientNet model name to parameter coefficients.
def ZR3X(ZGE9): BDvi = {'efficientnet-b0': (1.0, 1.0, 224, 0.2), 'efficientnet-b1': (1.0, 1.1, 240, 0.2), 'efficientnet-b2': (1.1, 1.2, 260, 0.3), 'efficientnet-b3': (1.2, 1.4, 300, 0.3), 'efficientnet-b4': (1.4, 1.8, 380, 0.4), 'efficientnet-b5': (1.6, 2.2, 456, 0.4), 'efficientnet-b6': (1.8, 2.6, 528, 0.5), 'effi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZR3X(ZGE9):\n BDvi = {'efficientnet-b0': (1.0, 1.0, 224, 0.2), 'efficientnet-b1': (1.0, 1.1, 240, 0.2), 'efficientnet-b2': (1.1, 1.2, 260, 0.3), 'efficientnet-b3': (1.2, 1.4, 300, 0.3), 'efficientnet-b4': (1.4, 1.8, 380, 0.4), 'efficientnet-b5': (1.6, 2.2, 456, 0.4), 'efficientnet-b6': (1.8, 2.6, 528, 0.5),...
[ "0.68057907", "0.65481", "0.6298889", "0.6029276", "0.5877488", "0.5838003", "0.5772829", "0.57585347", "0.57317084", "0.5586488", "0.55061686", "0.54998165", "0.54380655", "0.5390309", "0.53836536", "0.5380048", "0.53270173", "0.5286134", "0.52834225", "0.52834225", "0.52664...
0.67349935
1
Generates multiscale anchor boxes.
def KVH6(YKHO, LNo8, yDqo=ht2j.float32): lNai = LNo8.shape[2:] if lNai == YKHO.last_shape and LNo8.device in YKHO.last_anchors: return YKHO.last_anchors[LNo8.device] if YKHO.last_shape is None or YKHO.last_shape != lNai: YKHO.last_shape = lNai if yDqo == ht2j.float16: yDqo = oyIN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BIp9(N0ky, YYHl, maxY, m_03):\n l5eN, Kmi0 = N0ky\n QKaW, FzeP = YYHl\n ne9i = int(l5eN / QKaW)\n zWAB = int(Kmi0 / FzeP)\n udai = oyIN.arange(0, l5eN, ne9i)\n k8R8 = oyIN.arange(0, Kmi0, zWAB)\n eKGI = oyIN.dstack(oyIN.meshgrid(udai, k8R8)).reshape((-1, 2))\n GWer = oyIN.repeat([m_03],...
[ "0.7095319", "0.7087414", "0.676033", "0.67057395", "0.6698711", "0.66437685", "0.66208327", "0.65511936", "0.6535815", "0.64397883", "0.64372414", "0.6420171", "0.6420171", "0.62874", "0.6277956", "0.6263748", "0.6261684", "0.6235041", "0.6204222", "0.6189743", "0.61732316",...
0.5288869
74
Converts a session JSON dict back to a session object.
def yhR6(fK8P): cuiw = KndY.Session(fK8P['name']) cuiw.sets = set(fK8P['sets']) cuiw.banlist = set(fK8P['banlist']) cuiw.players = [] for XP5J in fK8P['players']: oyg0 = KndY.Player(XP5J['name']) oyg0.uid = XP5J['uid'] oyg0.sets = set(XP5J['sets']) oyg0.decklist = XP5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KxFu(pmON):\n fK8P = {}\n with open(pmON, 'r', encoding='utf-8') as eHNT:\n fK8P = qQXR.load(eHNT)\n return yhR6(fK8P)", "def s4lA(Emd4, ZMzz: URLSafeSerializer, cuiw):\n return Emd4.load(ZMzz, cuiw.get(oZv2, None))", "def tcAT(YKHO, cuiw, n5rA=t2lc.loads):\n n2kg = cuiw.session_id\n ...
[ "0.68154377", "0.671255", "0.6576613", "0.63816625", "0.6081353", "0.60064596", "0.59257865", "0.58779347", "0.5821056", "0.57519543", "0.57486", "0.57320344", "0.5722132", "0.5694485", "0.5694358", "0.56442887", "0.5597721", "0.5570776", "0.5560245", "0.5545202", "0.55329657...
0.70577866
0
Remove stop words from list of tokenized words
def aUcs(V22M): g68O = [] for GIN8 in V22M: if GIN8 not in di0c.words('english'): g68O.append(GIN8) return g68O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g8pp(a1Ws, s2mk):\n return [a1PO for a1PO in s2mk if len(a1PO) > 2 and (not a1PO in a1Ws)]", "def aUcs(s2mk):\n hwHU = set(di0c.words('english'))\n s2mk = [yzQ0 for yzQ0 in s2mk if yzQ0 not in hwHU]\n return s2mk", "def g8pp(jKE7):\n hwHU = set(Dhdw.corpus.stopwords.words('english'))\n i6...
[ "0.86644375", "0.86184067", "0.8597777", "0.8597093", "0.8581807", "0.8363134", "0.8351681", "0.8328106", "0.83188903", "0.8264969", "0.82471436", "0.82020384", "0.8179686", "0.8164016", "0.81590205", "0.8138802", "0.8127921", "0.81133604", "0.81009424", "0.8049209", "0.80285...
0.800315
24
Lemmatize verbs in list of tokenized words
def sAwM(V22M): LkXt = GFnk() A1xJ = [] for GIN8 in V22M: dhx_ = LkXt.lemmatize(GIN8, pos='v') A1xJ.append(dhx_) return A1xJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iKsa(jKE7):\n wgQP = Dhdw.stem.PorterStemmer()\n i6lF = [wgQP.stem(GIN8) for GIN8 in jKE7]\n return i6lF", "def sAwM(YKHO):\n A1xJ = []\n for GIN8 in YKHO.words:\n dhx_ = X1AK.lemmatize(GIN8, pos='v')\n A1xJ.append(dhx_)\n YKHO.words = A1xJ\n return YKHO", "def kzmx(s2mk)...
[ "0.8030157", "0.79708034", "0.7929658", "0.78893584", "0.7825038", "0.77570516", "0.7734948", "0.7710127", "0.7703662", "0.77004546", "0.7636745", "0.7632275", "0.7570557", "0.7545994", "0.7536599", "0.7523452", "0.7493259", "0.7472224", "0.74654067", "0.7435876", "0.7369798"...
0.774135
10
returns x^e mod m
def HQuV(WKvO: int, tTpl: int, r8hN: int) -> int: EcVT = WKvO ut5U = tTpl fuBA = 1 while ut5U > 0: if ut5U % 2 == 0: EcVT = EcVT * EcVT % r8hN ut5U = ut5U / 2 else: fuBA = EcVT * fuBA % r8hN ut5U = ut5U - 1 return fuBA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IPZR(jzdc, r8hN):\n Oa1e, WKvO, LVAh = N5DO(jzdc, r8hN)\n if Oa1e != 1:\n raise Exception('modular inverse does not exist')\n else:\n return WKvO % r8hN", "def S_l8(r8hN, exwG, tTpl):\n XP5J = r8hN\n Mkmy = 1\n while tTpl > 0:\n if tTpl % 2 == 1:\n Mkmy = Mkm...
[ "0.77618134", "0.73800933", "0.73720944", "0.7367118", "0.7336699", "0.7270356", "0.7231597", "0.7227261", "0.72020775", "0.7172352", "0.7125868", "0.712268", "0.7120021", "0.7046479", "0.6995632", "0.69825965", "0.6939103", "0.6901672", "0.68617284", "0.6860597", "0.681716",...
0.82136214
0