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
Convert class labels from scalars to onehot vectors.
def kPpE(lexL, jTqs=10): svPB = lexL.shape[0] whV7 = XTiz.arange(svPB) * jTqs xZkh = XTiz.zeros((svPB, jTqs)) xZkh.flat[whV7 + lexL.ravel()] = 1 return xZkh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(Crrw, KndY=None):\n return nMvt.utils.to_categorical(Crrw, KndY)", "def KLLm(Crrw, KndY=None):\n PnsN = nMvt.utils.to_categorical(Crrw, KndY)\n return PnsN", "def LQDo(Crrw: torch.Tensor, jTqs: int) -> ht2j.Tensor:\n if len(Crrw.size()) == 1:\n return vuvg.one_hot(Crrw, jTqs).float(...
[ "0.8250402", "0.807683", "0.80523187", "0.7977843", "0.7908335", "0.7900327", "0.7892233", "0.7869711", "0.7849721", "0.7849721", "0.7826951", "0.7826122", "0.77677035", "0.7765413", "0.77540547", "0.77540547", "0.77540547", "0.77489346", "0.7742955", "0.7737176", "0.77226317...
0.76462805
33
Returns the highest magnification for the slide
def nTML(THEQ): return int(THEQ.properties['aperio.AppMag'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOSW(YKHO):\n return YKHO.photosamplers.get_estimate(mag=True)[0]", "def S5rY(THEQ, zNig):\n E0wO = THEQ.dimensions\n SWJY = nTML(THEQ)\n myXy = oyIN.average([kvoN / Bzr0 for kvoN, Bzr0 in zip(E0wO, zNig)])\n return SWJY / myXy", "def wG7t(THEQ):\n dMYj = oyIN.asarray(THEQ.dimensions) / o...
[ "0.7143382", "0.6984062", "0.6947595", "0.6700194", "0.6502702", "0.6465279", "0.6439392", "0.6389368", "0.62770873", "0.62758964", "0.6203424", "0.6182897", "0.6060569", "0.6010728", "0.6000861", "0.59334785", "0.5931892", "0.59017086", "0.5889821", "0.58670044", "0.584315",...
0.8554771
0
fetcher.get_models() should return a list of models.
def ZzvH(FBfN: fetcher.Fetcher): OJy8 = FBfN.get_models() assert isinstance(OJy8, list) assert isinstance(OJy8[0], FYrf.LookmlModel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sK1D(YKHO, qv1X, SPkB):\n QpfX = qv1X.environ['meteos.context']\n eJum = {}\n eJum.update(qv1X.GET)\n eJum.pop('limit', None)\n eJum.pop('offset', None)\n gpXh = eJum.pop('sort_key', 'created_at')\n G852 = eJum.pop('sort_dir', 'desc')\n FYrf = YKHO.engine_api.get_all_models(QpfX, search...
[ "0.7452906", "0.72231185", "0.7150281", "0.71438277", "0.70214987", "0.69560665", "0.69169444", "0.6905092", "0.68741965", "0.6871369", "0.6853938", "0.6839921", "0.67970765", "0.67815137", "0.6671083", "0.66492426", "0.6614827", "0.65691483", "0.6551473", "0.64561534", "0.64...
0.769774
0
fetcher.get_models() should throw if a model is not found.
def XS9z(FBfN: fetcher.Fetcher, bNKA, C3ST): with trZe.raises(Bx6I.NotFoundError) as BQDi: FBfN.get_models(project=bNKA, model=C3ST) assert 'An error occured while getting models.' in str(BQDi.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZzvH(FBfN: fetcher.Fetcher):\n OJy8 = FBfN.get_models()\n assert isinstance(OJy8, list)\n assert isinstance(OJy8[0], FYrf.LookmlModel)", "def ArHU(YKHO, kvcN):\n try:\n FYrf = list(XLL2.get_app_config(kvcN).get_models())\n return FYrf\n except:\n raise LookupError(f'this i...
[ "0.7327567", "0.69435924", "0.67743224", "0.67731684", "0.666128", "0.66390353", "0.6595562", "0.6590047", "0.64084816", "0.6316313", "0.6267025", "0.62651926", "0.626041", "0.6233475", "0.6200443", "0.61957514", "0.61935633", "0.61921066", "0.61672646", "0.61589247", "0.6154...
0.75194955
0
fetcher.get_models() should throw if a model is not found.
def pg0A(FBfN: fetcher.Fetcher, bNKA, C3ST): with trZe.raises(Bx6I.NotFoundError) as BQDi: FBfN.get_models(project=bNKA, model=C3ST) assert 'An error occured while getting projects.' in str(BQDi.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XS9z(FBfN: fetcher.Fetcher, bNKA, C3ST):\n with trZe.raises(Bx6I.NotFoundError) as BQDi:\n FBfN.get_models(project=bNKA, model=C3ST)\n assert 'An error occured while getting models.' in str(BQDi.value)", "def ZzvH(FBfN: fetcher.Fetcher):\n OJy8 = FBfN.get_models()\n assert isinstance(OJy8,...
[ "0.75194955", "0.7327567", "0.69435924", "0.67743224", "0.67731684", "0.66390353", "0.6595562", "0.6590047", "0.64084816", "0.6316313", "0.6267025", "0.62651926", "0.626041", "0.6233475", "0.6200443", "0.61957514", "0.61935633", "0.61921066", "0.61672646", "0.61589247", "0.61...
0.666128
5
fetcher.get_used_models() should return models that have queries against them.
def t7pz(FBfN: fetcher.Fetcher, jqkm): l5Th = FBfN.get_used_models() assert isinstance(l5Th, dict) assert len(l5Th) > 0 assert all((type(ZGE9) == str for ZGE9 in l5Th.keys())) assert all((type(fTIw) == int for fTIw in l5Th.values())) assert jqkm['name'] in l5Th.keys()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eqaJ(YKHO):\n return YKHO.__models.keys()", "def sK1D(YKHO, qv1X, SPkB):\n QpfX = qv1X.environ['meteos.context']\n eJum = {}\n eJum.update(qv1X.GET)\n eJum.pop('limit', None)\n eJum.pop('offset', None)\n gpXh = eJum.pop('sort_key', 'created_at')\n G852 = eJum.pop('sort_dir', 'desc')\n...
[ "0.70178705", "0.66382486", "0.6534866", "0.631813", "0.63044095", "0.6285215", "0.61792207", "0.6041896", "0.60361505", "0.6007675", "0.592958", "0.5920479", "0.58479476", "0.5833444", "0.58288264", "0.5817674", "0.58034897", "0.58034897", "0.58034897", "0.58034897", "0.5747...
0.7987806
0
Compute Haversine distance between points. LatLongDistance(p1, p2) returns distance in meters between points p1 and p2. A point p is a list/array p=[longitude, latitude]
def _VrB(EBgd, HpuQ): r1VO = 6371 igSk = EBgd[1] * epAf.pi / 180.0 TGuP = HpuQ[1] * epAf.pi / 180.0 GgQG = EBgd[0] * epAf.pi / 180.0 tk0B = HpuQ[0] * epAf.pi / 180.0 QNAJ = TGuP - igSk eSAP = tk0B - GgQG jzdc = epAf.sin(QNAJ / 2) ** 2 + epAf.cos(igSk) * epAf.cos(TGuP) * epAf.sin(eSAP / 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GeVo(fJfP, hWOy):\n m6kB = 6372.8\n YRrr = fJfP[0]\n HTmV = hWOy[0]\n CcJL = fJfP[1]\n vnyE = hWOy[1]\n YRrr, CcJL = oyIN.radians((YRrr, CcJL))\n HTmV, vnyE = oyIN.radians((HTmV, vnyE))\n qGcS = HTmV - YRrr\n WmXC = vnyE - CcJL\n _gok = oyIN.square(oyIN.sin(oyIN.multiply(qGcS, 0.5...
[ "0.7411768", "0.7283244", "0.7281911", "0.7275467", "0.7160516", "0.7140681", "0.71359766", "0.706824", "0.7068029", "0.7050806", "0.70261496", "0.70184296", "0.69995123", "0.6997063", "0.69919103", "0.6987301", "0.69823533", "0.69742984", "0.6964179", "0.6947977", "0.6935867...
0.71147573
7
Sends a 401 response that enables basic auth
def NLCy(): return oGir(TvZl('index.html', auth=False), 401, {'WWW-Authenticate': 'Basic realm="Login Required"'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})", "def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})", "def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\...
[ "0.8093736", "0.80926424", "0.7958403", "0.7852648", "0.7843114", "0.7824419", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", ...
0.76140213
41
Check if user is admin
def P2EB(JfyU): @zaGL(JfyU) def mrMx(*qIxc, **B2fa): if not Oa1e.user: return vKnz(nKyW('admin.login')) if Oa1e.user.name != 'admin': eTsH(403) return JfyU(*qIxc, **B2fa) return mrMx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jo_v(CBIr):\n return CBIr in PDtd", "def _Kb1(CBIr):\n return CBIr.is_authenticated and CBIr.id == P4t4.config.get('ADMIN')", "def _Kb1(YKHO, CBIr):\n return CBIr.name in YKHO.admins", "def ECYw(YKHO):\n if 'is_admin' in YKHO._properties and YKHO.is_admin == 'YES':\n return True\n r...
[ "0.8688236", "0.8687356", "0.8556875", "0.8554287", "0.85044616", "0.84716874", "0.8450938", "0.841185", "0.84050906", "0.8394017", "0.8363089", "0.83423585", "0.83161926", "0.8280715", "0.82797027", "0.82743096", "0.82743096", "0.8248748", "0.82192075", "0.8196186", "0.81672...
0.0
-1
r""" Return the number of variables used in this matrix.
def vO0m(YKHO): return YKHO._nvars
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CS5f(YKHO):\n return len(YKHO.variables)", "def vO0m(YKHO):\n return YKHO.nvars", "def MVZX(YKHO):\n return len(YKHO.__vars)", "def zXzy(YKHO):\n if YKHO.nvar == None:\n YKHO.nvar = YKHO.ndim\n return YKHO.nvar", "def wGJe(YKHO):\n return len(YKHO.variables)", "def eOqM(YKHO)...
[ "0.826646", "0.80817354", "0.79613394", "0.7953327", "0.79433763", "0.7778536", "0.7749949", "0.75871086", "0.74991745", "0.74765337", "0.74339026", "0.72988725", "0.71537995", "0.71156085", "0.7080469", "0.69808406", "0.691234", "0.67460585", "0.6729376", "0.6723816", "0.671...
0.8000086
2
r""" Return the list of entries of this matrix.
def list(YKHO): return [YKHO[YRbF, r845] for YRbF in range(YKHO._d) for r845 in range(YKHO._d)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eK7y(YKHO):\n nPrm = []\n for rdlD in YKHO._matrix_data:\n for iVRZ in rdlD:\n nPrm.append(iVRZ)\n return nPrm", "def usx6(YKHO):\n return list(YKHO)", "def fZCz(YKHO):\n return YKHO._matrix_data", "def fRr3(YKHO):\n return list((WKvO for WKvO in YKHO))", "def VECZ(Y...
[ "0.74211484", "0.7351907", "0.7139602", "0.7107239", "0.7102002", "0.7040875", "0.700234", "0.700234", "0.69514894", "0.6915959", "0.6805772", "0.68021935", "0.67886513", "0.6775163", "0.6770315", "0.6736421", "0.67067957", "0.66475236", "0.6628927", "0.66164464", "0.65946597...
0.69504046
9
r""" Return the list of equal coefficients between self and other.
def q8gJ(YKHO, Elif): Csk6 = YKHO._d return [(YRbF, r845) for YRbF in range(Csk6) for r845 in range(Csk6) if YKHO[YRbF][r845] == Elif[YRbF][r845]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def loPh(YKHO, Elif):\n _jF9 = [BWXx for BWXx in YKHO if BWXx not in Elif]\n _jF9.extend([BWXx for BWXx in Elif if BWXx not in YKHO])\n return _jF9", "def _ivv(YKHO):\n return mJjH.Spacecraft_GetEqualConstrains(YKHO)", "def FN88(YKHO):\n raise NotImplementedError", "def FN88(YKHO):\n return...
[ "0.66310555", "0.6198817", "0.61889756", "0.5865301", "0.5818835", "0.5683608", "0.5683608", "0.56740135", "0.5648324", "0.56273437", "0.56273437", "0.5593266", "0.55242145", "0.5514569", "0.546532", "0.5455155", "0.5414487", "0.5409538", "0.5363544", "0.53480685", "0.5334692...
0.78071773
0
Used to get a users full name
def xpqj(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.user.first_name.strip(), YKHO.user.last_name.strip())\n if len(eHMM.strip()) == 0:\n eHMM = YKHO.user.username\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = f'{YKHO.first_name} {YKHO.last_name}' if YKHO.first_name and YKHO.last_name else YKHO.userna...
[ "0.8447406", "0.84173375", "0.840863", "0.840863", "0.8322008", "0.83157456", "0.8233342", "0.8191648", "0.81704843", "0.80976194", "0.8085201", "0.8049897", "0.80166596", "0.8014928", "0.8014928", "0.80035484", "0.7998611", "0.79971266", "0.79911834", "0.79884243", "0.798031...
0.0
-1
Used to get the users short name
def dsRp(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dsRp(YKHO):\n return YKHO.username", "def dsRp(YKHO):\n return YKHO.username", "def dsRp(YKHO):\n return YKHO.username", "def dsRp(YKHO):\n return YKHO.first_name", "def dsRp(YKHO):\n return f'{YKHO.first_name} {YKHO.last_name[:1]}' if YKHO.first_name else YKHO.username", "def dsRp(YKH...
[ "0.8692162", "0.8692162", "0.8692162", "0.8419169", "0.835935", "0.8267483", "0.8214984", "0.8179056", "0.8179056", "0.8179056", "0.8179056", "0.8179056", "0.8179056", "0.8179056", "0.8179056", "0.8179056", "0.8179056", "0.8179056", "0.8179056", "0.8179056", "0.8179056", "0...
0.73236275
60
Reset the obstacles' positions within the map (should be called when map is refreshed to clean the array)
def LM9n(YKHO): YKHO.obstacles = oyIN.array([])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.obstacles = []\n YKHO._tick = 0", "def dvBT(YKHO):\n YKHO.board_matrix = oyIN.full(eOte.board_size(), 1)\n YKHO.obstacles = YKHO.create_obstacles()", "def SiRx(YKHO) -> None:\n YKHO.map = []\n for fvDH in range(YKHO.width):\n YKHO.map.append([])\n for VmPb...
[ "0.80095875", "0.7382117", "0.72062683", "0.7101044", "0.7061013", "0.70536333", "0.7010583", "0.6989404", "0.69813454", "0.69743735", "0.6880206", "0.68602246", "0.6838129", "0.6808036", "0.67923963", "0.6767282", "0.67519385", "0.67181975", "0.67109746", "0.6702349", "0.669...
0.84130687
0
Construct a filename from varying experimental parameters.
def Y7Hi(kmfe, FaZ_, Fst3, *qIxc, **B2fa): if len(qIxc) == 0 and len(B2fa) == 0: return GkAb(kmfe, '{}{}'.format(FaZ_, Fst3)) elif len(qIxc) == 0: return GkAb(kmfe, '{}_{}{}'.format('_'.join([f'{G1Hx}{Ty9i}' for G1Hx, Ty9i in B2fa.items() if Ty9i is not None]), FaZ_, Fst3)) elif len(B2fa) ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xll8(YKHO):\n K9hW = '_'.join(sorted(qIxc.exp)) if qIxc.exp else 'noexp'\n return 'quad--{}--{}{}{}_{}{}_{}{}_{}{}{}{}{}_{}{}--{:02}_{:02}--{:02}_{:02}_{:02}_{:02}_{:02}_{:02}_{:02}_{:02}_{:02}--{}.log'.format(YKHO.pts_total, hex(YKHO.cnt_T)[-1:], YKHO.cnt_S, YKHO.cnt_U, YKHO.cnt_P, YKHO.cnt_G, YKHO.cnt_...
[ "0.7097925", "0.66764444", "0.6525119", "0.64324546", "0.62918216", "0.6271143", "0.62647027", "0.6250804", "0.6229975", "0.6168056", "0.6167285", "0.61520386", "0.6138422", "0.6122441", "0.61129963", "0.6110849", "0.6091121", "0.60664004", "0.6061048", "0.60583425", "0.59809...
0.59908104
20
Return current credit limit
def K3hO(YKHO): return YKHO._limit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zxZQ(YKHO, JZXy):\n AByL = getattr(YKHO.get_subscription(), 'commitment', {})\n return YKHO.get_plan().get_price_data(JZXy, AByL)[1]", "def K3hO(YKHO):\n return YKHO.limit", "def y9Jp(YKHO, qoqK=None):\n if qoqK is None:\n _ins, nPrm = YKHO._request('GH')\n if _ins:\n r...
[ "0.70615613", "0.6857322", "0.68410796", "0.6831366", "0.6759597", "0.661983", "0.6546747", "0.63908046", "0.63815755", "0.6301675", "0.6296434", "0.6276246", "0.626394", "0.6231881", "0.62091506", "0.62080514", "0.6149896", "0.6149896", "0.6126138", "0.61131227", "0.6094338"...
0.6619479
7
Charge given price to the card, assuming sufficient card limit Return True if charge was processed;False if charge was denied
def WJkG(YKHO, hI0L): if hI0L + YKHO._balance > YKHO._limit: return False else: YKHO._balance += hI0L return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJkG(YKHO, hI0L):\n if not isinstance(hI0L, (int, float)):\n raise TypeError('Price must be numeric')\n if hI0L + YKHO._balance > YKHO._limit:\n return False\n YKHO._balance += hI0L\n return True", "def WJkG(YKHO, hI0L):\n if not isinstance(hI0L, (int, float)):\n raise Typ...
[ "0.8322736", "0.8296711", "0.7829243", "0.6570418", "0.6408199", "0.612218", "0.61032504", "0.60590565", "0.6037275", "0.60188115", "0.5950383", "0.59281176", "0.59213865", "0.5874455", "0.58660394", "0.5860026", "0.5825693", "0.5783239", "0.57501924", "0.5738126", "0.5724947...
0.8432956
0
get the list of agents managed by this starter
def lYNB(YKHO): U5bT = [] for YRbF in YKHO.all_instances: if YRbF.instance_type == Qw_m.AGENT: U5bT.append(YRbF) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Agj9(YKHO):\n return YKHO.get('manager_agents')", "def lYNB(YKHO):\n if YKHO.retrieved:\n raise UAju.IllegalState('List has already been retrieved.')\n YKHO.retrieved = True\n return ei4T.AgentList(YKHO._results, runtime=YKHO._runtime)", "def list(YKHO):\n geh0 = YKHO._client.get('sca...
[ "0.77033234", "0.7416487", "0.7300729", "0.7252941", "0.72281355", "0.7117161", "0.70339304", "0.6690089", "0.666582", "0.66602963", "0.6639476", "0.6470405", "0.6329325", "0.62738615", "0.6230014", "0.61977404", "0.61977404", "0.61977404", "0.61977404", "0.6167947", "0.61341...
0.76709455
1
return jwt header from current installation
def jMZU(YKHO): if YKHO.jwt_header: return YKHO.jwt_header YKHO.jwt_header = YKHO.get_jwt_token_from_secret_file(str(YKHO.jwtfile)) return YKHO.jwt_header
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def doHj():\n with open(F5f8, 'r') as nUeQ:\n WBPg = qQXR.load(nUeQ)\n return WBPg", "def VsOv(YKHO):\n return {'Authorization': 'Bearer {}'.format(YKHO.get_jwt())}", "def iwDu(YKHO, QePW):\n RqSo = YKHO.auth_header_prefix\n try:\n em58 = QePW.authorization\n except ValueError:\...
[ "0.7406444", "0.7215993", "0.7196089", "0.7186894", "0.7012713", "0.6979103", "0.6942568", "0.69397306", "0.69034165", "0.6893624", "0.6858153", "0.68385124", "0.6749719", "0.6743572", "0.6729134", "0.6724721", "0.6700563", "0.6690566", "0.6663717", "0.66617864", "0.663666", ...
0.8041909
0
Returns the total number of available frames.
def szAg(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h38U(YKHO) -> int:\n return YKHO.num_frames", "def zNig(YKHO):\n if YKHO.frames is None:\n return 0\n return YKHO.frames.size", "def VIPT(YKHO):\n uOR6 = 0\n if YKHO.is_video() or YKHO.is_audio():\n if YKHO.__dict__['nb_frames']:\n try:\n uOR6 = int(YK...
[ "0.8600426", "0.77835464", "0.7621566", "0.75558245", "0.7531837", "0.7526261", "0.7391324", "0.7189588", "0.71559983", "0.70775414", "0.70692587", "0.7036695", "0.7004031", "0.69709444", "0.6951622", "0.688492", "0.68131065", "0.6812733", "0.6789151", "0.66947013", "0.664887...
0.0
-1
Returns the total number of available frames.
def szAg(YKHO): return len(YKHO.keys)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h38U(YKHO) -> int:\n return YKHO.num_frames", "def zNig(YKHO):\n if YKHO.frames is None:\n return 0\n return YKHO.frames.size", "def VIPT(YKHO):\n uOR6 = 0\n if YKHO.is_video() or YKHO.is_audio():\n if YKHO.__dict__['nb_frames']:\n try:\n uOR6 = int(YK...
[ "0.8600426", "0.77835464", "0.7621566", "0.75558245", "0.7531837", "0.7526261", "0.7391324", "0.7189588", "0.71559983", "0.70775414", "0.70692587", "0.7036695", "0.7004031", "0.69709444", "0.6951622", "0.688492", "0.68131065", "0.6812733", "0.6789151", "0.66947013", "0.664887...
0.0
-1
Playing with spatial convs after transpose convolutions. Recent testing suggests this is the best setup so far. Revisit idea of interleaving spatial convolutions between transpose layers to achieve more cleanly defined shapes.
def QNgD(): ITJE = jyzo({'op': 'avg', 'kernel': (1, 2, 2), 'causal': True}, [{'in': 15, 'out': [45, 45, 15], 'kernel': (2, 1, 1), 'stride': 1, 'groups': 15, 'acivation': U78l.ReLU, 'pool': {'op': 'avg', 'kernel': (2, 2, 2), 'causal': True}}], [], [], [{'in': 15, 'out': [128, 256, 128], 'kernel': (2, 3, 3), 'stride'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d4rw(YKHO):\n ZylS.compat.v1.reset_default_graph()\n bGrB = hTOc()\n nenD = fIov(ZylS.compat.v1.get_default_graph(), ['input_1'], ['conv2d_transpose/BiasAdd'])\n YKHO.assertEqual(nenD.get_all_ops()['conv2d_transpose/conv2d_transpose'].type, 'Conv2DTranspose')", "def AvQo(_Fei, MYYV):\n MYYV = ...
[ "0.6420241", "0.63742214", "0.630493", "0.62457377", "0.6166526", "0.61490655", "0.60816073", "0.6013133", "0.59594655", "0.59204423", "0.5848845", "0.5842317", "0.58345294", "0.5829648", "0.58118945", "0.5805117", "0.57954824", "0.5793485", "0.5791456", "0.57831615", "0.5781...
0.0
-1
Create a onehot encoding of x of size k.
def KLLm(WKvO, G1Hx, yDqo=oyIN.float32): return oyIN.array(WKvO[:, None] == oyIN.arange(G1Hx), yDqo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N9CW(epBp, nMvt):\n O50u = oyIN.zeros((epBp.size, nMvt))\n O50u[oyIN.arange(epBp.size), epBp] = 1\n return O50u", "def KLLm(WKvO, G1Hx, yDqo=oyIN.float32):\n return oyIN.array(WKvO[:, None] == oyIN.arange(G1Hx), yDqo)", "def N9CW(WKvO, G1Hx, yDqo=oyIN.float32):\n return oyIN.array(WKvO[:, No...
[ "0.804429", "0.801011", "0.78977334", "0.7889785", "0.7800311", "0.7714966", "0.75706875", "0.75658363", "0.7427502", "0.7418045", "0.73576915", "0.735553", "0.7347711", "0.7343637", "0.7291789", "0.7286171", "0.7206042", "0.72045", "0.7190287", "0.7164403", "0.71621656", "...
0.7974455
2
Returns a Bokeh glyph object.
def PktK(YKHO, kj9G, J8oL, C9U5): ABDL = C9U5.pop('level', 'underlay') pFW3 = kj9G.add_tile(J8oL['tile_source'], level=ABDL) pFW3.alpha = C9U5.get('alpha', 1) return (pFW3, pFW3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZYoy(YKHO):\n return _VfD.GeneralGlyph_createReferenceGlyph(YKHO)", "def E979(YKHO):\n return _VfD.Layout_createTextGlyph(YKHO)", "def PktK(YKHO, kj9G, J8oL, C9U5):\n C9U5.pop('source')\n C9U5.pop('legend')\n FlUN = IbBk(level='overlay', **dict(J8oL, **C9U5))\n kj9G.renderers.append(FlUN)...
[ "0.64251554", "0.6417896", "0.6385368", "0.61207485", "0.6027903", "0.5853716", "0.5838887", "0.580616", "0.5715113", "0.5697527", "0.5558109", "0.55418766", "0.5470425", "0.54696107", "0.5457854", "0.5454618", "0.5413018", "0.5380582", "0.5379364", "0.5375702", "0.5330651", ...
0.5845592
6
Percolates up the item if the first element in the item is smaller than the first element in the parent.
def PogI(YKHO, YRbF: int): while YRbF > 0: _AKB = (YRbF - 1) // 2 if YKHO.__heap[YRbF][0] < YKHO.__heap[_AKB][0]: jbXL = YKHO.__heap[_AKB] YKHO.__heap[_AKB] = YKHO.__heap[YRbF] YKHO.__heap[YRbF] = jbXL YRbF = _AKB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rRKC(YKHO, d6pt):\n if YKHO.min is True:\n _AKB = YKHO._parent(d6pt)\n if d6pt > 0 and YKHO._data[d6pt] < YKHO._data[_AKB]:\n YKHO._swap(d6pt, _AKB)\n YKHO.percolate_up(_AKB)\n if YKHO.min is False:\n _AKB = YKHO._parent(d6pt)\n if d6pt > 0 and YKHO._data...
[ "0.73008174", "0.6977387", "0.69455796", "0.6931688", "0.6897218", "0.68804336", "0.6834447", "0.6793737", "0.67846876", "0.67604595", "0.672829", "0.6725234", "0.6719083", "0.66191155", "0.65959144", "0.6558018", "0.65543073", "0.6469654", "0.64037776", "0.63678527", "0.6363...
0.69485795
2
Returns false if the user is not logged in
def wDqn(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y8Sy(YKHO):\n return YKHO.auth.get_user_by_session() is not None", "def MQ6L(YKHO):\n cuiw = YKHO.getSession()\n if cuiw is not None:\n return True\n return False", "def T_ME(YKHO) -> bool:\n return YKHO.id is not None and YKHO.username is not None", "def Y8Sy(YKHO):\n return YKH...
[ "0.85514784", "0.8487751", "0.8463887", "0.84311163", "0.83854413", "0.83422846", "0.8227351", "0.81986076", "0.8189232", "0.81029665", "0.80995315", "0.8037724", "0.79774845", "0.7907793", "0.78765494", "0.7856657", "0.7833945", "0.7820103", "0.7789442", "0.77781737", "0.771...
0.0
-1
Returns true if the user is logged in
def rts1(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y8Sy():\n if c5ow.is_authenticated:\n return True\n return False", "def T_ME():\n return 'user' in cuiw", "def Y8Sy(YKHO):\n return YKHO.auth.get_user_by_session() is not None", "def MQ6L(YKHO):\n cuiw = YKHO.getSession()\n if cuiw is not None:\n return True\n return Fa...
[ "0.88950294", "0.8790608", "0.8753903", "0.8581064", "0.8567044", "0.84687513", "0.84203804", "0.8413966", "0.8383255", "0.8209496", "0.82089865", "0.8092678", "0.80382335", "0.8021618", "0.79841244", "0.7928396", "0.7890733", "0.78188694", "0.77794355", "0.7776155", "0.77729...
0.7648227
30
Returns true if the logged in user is an admin
def _Kb1(YKHO): if YKHO.type == 1: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Kb1(CBIr):\n return CBIr.is_authenticated and CBIr.id == P4t4.config.get('ADMIN')", "def ECYw(YKHO):\n if 'is_admin' in YKHO._properties and YKHO.is_admin == 'YES':\n return True\n return False", "def uJBC():\n if 'username' in cuiw and cuiw['username'] == 'admin':\n return True\...
[ "0.88923126", "0.8880638", "0.8843605", "0.87530965", "0.87412965", "0.86163646", "0.8612412", "0.85848016", "0.84613305", "0.8420776", "0.84073126", "0.840208", "0.8374834", "0.83690375", "0.835545", "0.8350487", "0.8346385", "0.8346304", "0.83000356", "0.8297389", "0.828466...
0.7866901
36
Returns true if the current user is following the desired user
def Hi_R(YKHO, CBIr): return YKHO.followed.filter(yKDG.c.followed_id == CBIr.id).count() > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oKgM(YKHO, uJjO):\n return uJjO in YKHO.following", "def Hi_R(YKHO, Sl6z, _CZM):\n if YKHO.filter(from_user=Sl6z, to_user=_CZM).count() > 0:\n return True\n return False", "def Hi_R(YKHO, CBIr):\n return YKHO.followed.filter_by(followed_id=CBIr.id).first() is not None", "def cm6q(YKHO,...
[ "0.7629527", "0.7531042", "0.7460013", "0.73141354", "0.72661006", "0.70735085", "0.70591176", "0.7049096", "0.6914572", "0.69122463", "0.68232995", "0.6788982", "0.67763567", "0.6769098", "0.6714947", "0.65794", "0.6538119", "0.652213", "0.6521558", "0.64769983", "0.64418167...
0.7424364
4
Returns true if the current user is following the desired user
def qKdB(YKHO, id): return YKHO.followed.filter(yKDG.c.followed_id == id).count() > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oKgM(YKHO, uJjO):\n return uJjO in YKHO.following", "def Hi_R(YKHO, Sl6z, _CZM):\n if YKHO.filter(from_user=Sl6z, to_user=_CZM).count() > 0:\n return True\n return False", "def Hi_R(YKHO, CBIr):\n return YKHO.followed.filter_by(followed_id=CBIr.id).first() is not None", "def Hi_R(YKHO,...
[ "0.7629707", "0.75313014", "0.74600714", "0.7424218", "0.7424218", "0.73141986", "0.7265916", "0.7074228", "0.7049804", "0.6913712", "0.6912288", "0.682332", "0.6789204", "0.6776134", "0.67695856", "0.67149085", "0.65792125", "0.6536938", "0.6522163", "0.6520679", "0.6476891"...
0.70594585
8
Gets the list of banks.
def T57H() -> x1iM[FIln]: from paynlsdk.api.transaction.getbanks import Request x0hE = iJSR() QePW = Request() x0hE.perform_request(QePW) return QePW.response.banks
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TkXK(YKHO):\n return YKHO.__banks", "def TkXK(YKHO):\n return YKHO.__banks", "def TkXK(YKHO):\n return YKHO.__banks", "def TkXK(YKHO):\n return YKHO.__banks", "def TkXK(YKHO):\n return YKHO.__banks", "def TkXK(YKHO):\n return YKHO.__banks", "def TkXK(YKHO):\n return YKHO.__bank...
[ "0.83688354", "0.83688354", "0.83688354", "0.83688354", "0.83688354", "0.83688354", "0.83688354", "0.76620173", "0.664025", "0.664025", "0.664025", "0.664025", "0.664025", "0.664025", "0.664025", "0.6498705", "0.6401011", "0.63876766", "0.6261225", "0.6159119", "0.6064427", ...
0.7611785
8
admin should be passed through for nonadmin users
async def test_auth_admin_non_admin(P4t4): mWFP = 'kiwi' CBIr = IMdO(P4t4.db, P4t4, name=mWFP, admin=False) assert CBIr.admin is False ku7L = await P4t4.login_user(mWFP) assert CBIr.admin is False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def lUlO(YKHO):\n if not Z9rn.user.name in Oa1e.admins:\n ...
[ "0.76604193", "0.76227117", "0.7580729", "0.7580729", "0.74723893", "0.7399326", "0.73662555", "0.72489077", "0.7212591", "0.71992993", "0.7144615", "0.7074819", "0.7029829", "0.7020532", "0.70080376", "0.7003052", "0.7002116", "0.6998605", "0.69832844", "0.6980152", "0.69801...
0.0
-1
Tests whether ``SoundboardSound.__eq__`` works as intended.
def v4T7(): yWbd = False JUOb = DNEC['heart'] mWFP = 'rember' uJjO = 202305240038 akib = 0.69 mDOo = 202305240039 LRlk = 202305240040 nURT = {'available': yWbd, 'emoji': JUOb, 'name': mWFP, 'user_id': uJjO, 'volume': akib} x2yN = _xc9.precreate(mDOo, guild_id=LRlk, **nURT) Qg87.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if not isinstance(Elif, jBnD):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def xa14(YKHO, Elif):\n if not isinstance(Elif, viou):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def xa14(YKHO, Elif):\n if not isinstance(Elif, QBRU):\n...
[ "0.7053136", "0.69082266", "0.68528724", "0.6663054", "0.6607504", "0.65843195", "0.65642565", "0.65642565", "0.65642565", "0.65642565", "0.65642565", "0.65642565", "0.65642565", "0.65642565", "0.65642565", "0.65642565", "0.65642565", "0.65642565", "0.65642565", "0.65642565", ...
0.7741757
0
Getter method for usr_traceroute_count, mapped from YANG variable /mpls_state/statistics_oam/usr_traceroute_count (uint32)
def kOZO(YKHO): return YKHO.__usr_traceroute_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zsTP(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='usr-traceroute-count', rest_name='usr-traceroute-count', parent=Y...
[ "0.8096988", "0.58348656", "0.5540107", "0.5337788", "0.5088764", "0.50769204", "0.5072222", "0.50714403", "0.5059296", "0.50581366", "0.50281113", "0.49717057", "0.4894099", "0.48607355", "0.48384598", "0.48260984", "0.48260832", "0.48071045", "0.47291836", "0.47040775", "0....
0.7333012
1
Getter method for echo_req_sent_count, mapped from YANG variable /mpls_state/statistics_oam/echo_req_sent_count (uint32)
def nuTf(YKHO): return YKHO.__echo_req_sent_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E7TA(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-req-sent-count', rest_name='echo-req-sent-count', parent=YKH...
[ "0.7922508", "0.6860566", "0.67645717", "0.65473276", "0.64664423", "0.5968414", "0.5861087", "0.5787943", "0.5689521", "0.56807286", "0.5430021", "0.54220355", "0.5201689", "0.5130782", "0.49798772", "0.4948916", "0.48980132", "0.48834348", "0.4872083", "0.48253825", "0.4824...
0.7223332
1
Setter method for echo_req_sent_count, mapped from YANG variable /mpls_state/statistics_oam/echo_req_sent_count (uint32)
def E7TA(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-req-sent-count', rest_name='echo-req-sent-count', parent=YKHO, path_h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u11x(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-resp-sent-count', rest_name='echo-resp-sent-count', parent=Y...
[ "0.7546443", "0.74266785", "0.69616437", "0.66970843", "0.6288053", "0.6279342", "0.6064423", "0.57884806", "0.5556439", "0.5305215", "0.52710307", "0.5181049", "0.50654066", "0.50303006", "0.50086975", "0.49919927", "0.48444322", "0.4777001", "0.4770685", "0.4731099", "0.468...
0.86451477
0
Getter method for echo_req_received_count, mapped from YANG variable /mpls_state/statistics_oam/echo_req_received_count (uint32)
def tKLl(YKHO): return YKHO.__echo_req_received_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tzs7(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-req-received-count', rest_name='echo-req-received-count', pa...
[ "0.77231425", "0.7023055", "0.6542562", "0.62707675", "0.5976226", "0.5851045", "0.58174163", "0.54856044", "0.54173255", "0.5317395", "0.50623125", "0.5022893", "0.5022014", "0.4883163", "0.4860375", "0.48226205", "0.48192063", "0.4816786", "0.4814243", "0.4797339", "0.46779...
0.70718306
1
Setter method for echo_req_received_count, mapped from YANG variable /mpls_state/statistics_oam/echo_req_received_count (uint32)
def Tzs7(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-req-received-count', rest_name='echo-req-received-count', parent=YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YBjW(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-resp-received-count', rest_name='echo-resp-received-count', ...
[ "0.7757586", "0.7065394", "0.68073034", "0.67364514", "0.66612166", "0.62458676", "0.56309354", "0.5338627", "0.52505404", "0.50096846", "0.48576525", "0.48448968", "0.48185655", "0.47561345", "0.4739262", "0.46860245", "0.46509308", "0.46177593", "0.45707104", "0.45225346", ...
0.84776396
0
Getter method for echo_req_timeout_count, mapped from YANG variable /mpls_state/statistics_oam/echo_req_timeout_count (uint32)
def J2tQ(YKHO): return YKHO.__echo_req_timeout_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nKzX(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-req-timeout-count', rest_name='echo-req-timeout-count', pare...
[ "0.80206865", "0.6734563", "0.6540391", "0.6376731", "0.61047983", "0.60804176", "0.60245043", "0.5819295", "0.55777395", "0.49859354", "0.49369183", "0.4863983", "0.48448384", "0.48247913", "0.4788822", "0.4729328", "0.47008264", "0.4682831", "0.46340755", "0.46337748", "0.4...
0.7347358
1
Setter method for echo_req_timeout_count, mapped from YANG variable /mpls_state/statistics_oam/echo_req_timeout_count (uint32)
def nKzX(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-req-timeout-count', rest_name='echo-req-timeout-count', parent=YKHO, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tzs7(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-req-received-count', rest_name='echo-req-received-count', pa...
[ "0.7362202", "0.7095978", "0.6999127", "0.6642217", "0.64998084", "0.60558325", "0.57168615", "0.5617509", "0.52749455", "0.50046265", "0.4905859", "0.49030608", "0.48003668", "0.4683387", "0.4644038", "0.45746693", "0.45659736", "0.4561842", "0.45596886", "0.4557894", "0.448...
0.87411803
0
Getter method for echo_resp_sent_count, mapped from YANG variable /mpls_state/statistics_oam/echo_resp_sent_count (uint32)
def UG4I(YKHO): return YKHO.__echo_resp_sent_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u11x(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-resp-sent-count', rest_name='echo-resp-sent-count', parent=Y...
[ "0.7885906", "0.71892625", "0.7101065", "0.69950885", "0.66274446", "0.6617462", "0.635762", "0.5800941", "0.577533", "0.55431056", "0.5397536", "0.5257677", "0.5200311", "0.5128361", "0.5111158", "0.51002544", "0.50733143", "0.50320685", "0.50222456", "0.4920297", "0.4917206...
0.7451523
1
Setter method for echo_resp_sent_count, mapped from YANG variable /mpls_state/statistics_oam/echo_resp_sent_count (uint32)
def u11x(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-resp-sent-count', rest_name='echo-resp-sent-count', parent=YKHO, path...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YBjW(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-resp-received-count', rest_name='echo-resp-received-count', ...
[ "0.7872074", "0.7738624", "0.7278106", "0.7268996", "0.6715367", "0.65274954", "0.6379835", "0.60264504", "0.5693287", "0.55500114", "0.5237852", "0.515169", "0.50731426", "0.5025889", "0.49551892", "0.4954932", "0.4935209", "0.49100864", "0.4884356", "0.48487535", "0.4827424...
0.8611856
0
Setter method for echo_resp_received_count, mapped from YANG variable /mpls_state/statistics_oam/echo_resp_received_count (uint32)
def YBjW(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-resp-received-count', rest_name='echo-resp-received-count', parent=YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tzs7(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='echo-req-received-count', rest_name='echo-req-received-count', pa...
[ "0.76704717", "0.73230594", "0.70944583", "0.6276271", "0.618727", "0.6063231", "0.60443354", "0.51781255", "0.5142111", "0.50479865", "0.49492952", "0.48183542", "0.47569573", "0.47515997", "0.47491166", "0.4727505", "0.46277964", "0.45390615", "0.45219365", "0.44867164", "0...
0.8556093
0
Getter method for return_codes, mapped from YANG variable /mpls_state/statistics_oam/return_codes (list)
def C8JO(YKHO): return YKHO.__return_codes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xwkH(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QuAi('number', dPOG.return_codes, yang_name='return-codes', rest_name='return-codes', parent=YKHO, is_container='list', user_ordered=False, path_helper=YKHO._path_helper, y...
[ "0.74746984", "0.6001439", "0.5503843", "0.52020866", "0.51311105", "0.5087448", "0.5053257", "0.50515985", "0.49911606", "0.48414174", "0.48189038", "0.46903574", "0.4685551", "0.4676945", "0.46544784", "0.46471697", "0.45722067", "0.45684677", "0.45653287", "0.44813254", "0...
0.6220025
1
Returns the indices without performing any operation on them. To be used for fitting on the whole dataset. This strategy is not compatible with HPO search.
def I7t7(t3eI: np.random.RandomState, _0VL: np.ndarray) -> oyIN.ndarray: return _0VL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0VL(YKHO) -> oyIN.ndarray:\n return YKHO.impl.indices", "def xvIg(YKHO):\n return YKHO._indices", "def W4FM(YKHO):\n _0VL = []\n for d6pt, ZfUD in enumerate(YKHO):\n if ZfUD == 0:\n _0VL.append(d6pt)\n return _0VL", "def F6gi(YKHO):\n Qrya = Qrlr * len(YKHO.preprocess...
[ "0.7181901", "0.69676125", "0.69128466", "0.6892532", "0.68412507", "0.67869836", "0.6754658", "0.67145926", "0.6703281", "0.66633874", "0.65803033", "0.6534292", "0.6509533", "0.64898914", "0.6441676", "0.6402624", "0.63538474", "0.6317454", "0.6311111", "0.6274377", "0.6259...
0.65598696
11
Returns the sum of all priorities stored in this sum tree.
def dy5e(YKHO): return YKHO.nodes[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sum(YKHO) -> int:\n return YKHO.root.sum", "def sum(YKHO):\n return sum(YKHO.items())", "def sTKP(YKHO):\n return YKHO.__tree[0]", "def sum(YKHO):\n return sum(YKHO._values.values())", "def qUx6(YKHO) -> int:\n return YKHO.tree[0].item()", "def sum(YKHO):\n return YKHO._summarize(la...
[ "0.6984377", "0.67695606", "0.67609626", "0.6698405", "0.6667603", "0.6662966", "0.66467816", "0.66216046", "0.66216046", "0.65775466", "0.6440943", "0.6387141", "0.635604", "0.6329519", "0.63249815", "0.6249568", "0.61827457", "0.6161957", "0.61138844", "0.6100439", "0.60939...
0.65628356
10
This function will optionally print a header guard for `cl_khr_fp64` if a 64bit type is used as the source or destination and return a bool that indicates whether this guard will need closed after the calling function has finished printing functions that use the 64bit source/destination type.
def J9cR(zZcM, zr3f): oTOm = 0 DSNl = 0 Bpy5 = 0 if zZcM in i832 or zr3f in i832: oTOm = 1 if zZcM in X3qz or zr3f in X3qz: DSNl = 1 if zZcM in gyos or zr3f in gyos: Bpy5 = 1 if Bpy5 > 0: print('#ifdef cl_khr_fp16') if DSNl > 0: print('#ifdef cl_kh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kD5D():\n return BlNT.calcsize('P') * 8 == 64", "def HcpF():\n try:\n xTkX = nMnB(oyIN.longdouble)\n except gsnG:\n return False\n return (xTkX['nmant'], xTkX['maxexp']) == (112, 16384)", "def Iu1u(YKHO):\n return True", "def Iu1u(YKHO):\n return True", "def sUtu(YKHO):\...
[ "0.4971328", "0.46334147", "0.46194386", "0.46194386", "0.4604871", "0.4570718", "0.45214003", "0.45135522", "0.44693208", "0.44124466", "0.44066575", "0.44048572", "0.43934348", "0.43365443", "0.42555895", "0.4250501", "0.42504188", "0.42486706", "0.42251563", "0.4212047", "...
0.59550357
0
Apply weight normalization module from all of the layers.
def YwhL(YKHO): def b8oy(r8hN): if isinstance(r8hN, ht2j.nn.Conv1d) or isinstance(r8hN, ht2j.nn.ConvTranspose1d): ht2j.nn.utils.weight_norm(r8hN) G9jH.debug(f'Weight norm is applied to {r8hN}.') YKHO.apply(b8oy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dGkD(YKHO):\n for gEmA in YKHO.modules():\n if isinstance(gEmA, (U78l.Conv1d, U78l.Linear)):\n U78l.init.xavier_uniform_(gEmA.weight)\n if gEmA.bias is not None:\n U78l.init.constant_(gEmA.bias, 0)\n elif isinstance(gEmA, U78l.BatchNorm1d):\n U78...
[ "0.7143955", "0.7143955", "0.7143955", "0.71335757", "0.7069364", "0.7069364", "0.70534694", "0.7049442", "0.70303166", "0.6807604", "0.6779128", "0.6764302", "0.67596924", "0.6736109", "0.6710482", "0.66960436", "0.6584008", "0.6554928", "0.6526808", "0.65179425", "0.6516647...
0.73184675
1
Apply weight normalization module from all of the layers.
def YwhL(YKHO): def b8oy(r8hN): if isinstance(r8hN, ht2j.nn.Conv1d) or isinstance(r8hN, ht2j.nn.ConvTranspose1d): ht2j.nn.utils.weight_norm(r8hN) G9jH.debug(f'Weight norm is applied to {r8hN}.') YKHO.apply(b8oy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dGkD(YKHO):\n for gEmA in YKHO.modules():\n if isinstance(gEmA, (U78l.Conv1d, U78l.Linear)):\n U78l.init.xavier_uniform_(gEmA.weight)\n if gEmA.bias is not None:\n U78l.init.constant_(gEmA.bias, 0)\n elif isinstance(gEmA, U78l.BatchNorm1d):\n U78...
[ "0.71435213", "0.71435213", "0.71435213", "0.7134102", "0.70675933", "0.70675933", "0.70535696", "0.7048801", "0.70298284", "0.6807073", "0.67789346", "0.6764012", "0.6759336", "0.67359823", "0.671116", "0.6696031", "0.6583814", "0.6554803", "0.65268165", "0.65178454", "0.651...
0.7316938
2
Apply weight normalization module from all of the layers.
def YwhL(YKHO): def b8oy(r8hN): if isinstance(r8hN, ht2j.nn.Conv1d) or isinstance(r8hN, ht2j.nn.ConvTranspose1d): ht2j.nn.utils.weight_norm(r8hN) G9jH.debug(f'Weight norm is applied to {r8hN}.') YKHO.apply(b8oy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dGkD(YKHO):\n for gEmA in YKHO.modules():\n if isinstance(gEmA, (U78l.Conv1d, U78l.Linear)):\n U78l.init.xavier_uniform_(gEmA.weight)\n if gEmA.bias is not None:\n U78l.init.constant_(gEmA.bias, 0)\n elif isinstance(gEmA, U78l.BatchNorm1d):\n U78...
[ "0.71430475", "0.71430475", "0.71430475", "0.713435", "0.70688635", "0.70688635", "0.7052796", "0.7049518", "0.70298177", "0.68070155", "0.6778134", "0.676388", "0.6760103", "0.67364126", "0.6710347", "0.6696243", "0.65825963", "0.65547544", "0.6525561", "0.6517765", "0.65163...
0.73182416
0
Returns a humanized rstring representing time difference between now() and the input timestamp. The output rounds up to days, hours, minutes, or seconds. 4 days 5 hours returns '4 days' 0 days 4 hours 3 minutes returns '4 hours', etc...
def vbk0(E3oo=None): l3zR = '' if not E3oo or not isinstance(E3oo, qcWV.datetime): return l3zR wzkt = rIAI.now() ME9B = wzkt - E3oo Sm0u = ME9B.days DKYA = Sm0u // 7 X_bn = Sm0u // 30 O66n = ME9B.seconds % 3600 // 60 C6wh = ME9B.seconds % 3600 % 60 Wave = O66n // 60 i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NV8A(E3oo=False):\n wzkt = qcWV.now()\n yk4i = wzkt - qcWV.fromtimestamp(E3oo)\n TJQv = yk4i.seconds\n QyvJ = yk4i.days\n if QyvJ < 0:\n return ''\n if QyvJ == 0:\n if TJQv < 10:\n return 'just now'\n if TJQv < 60:\n return str(int(TJQv)) + ' seconds...
[ "0.7199235", "0.6999816", "0.6862485", "0.6823745", "0.6743255", "0.6654757", "0.66247755", "0.65492713", "0.64874226", "0.64806837", "0.6469421", "0.64674145", "0.64304537", "0.6402844", "0.6387063", "0.6360706", "0.6358006", "0.6357516", "0.63572836", "0.63446885", "0.63081...
0.7168039
1
Check if two things have the same type.
def ILiT(a0GJ, TLv5): return isinstance(a0GJ, type(TLv5))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l_QA(YKHO, Elif):\n return True", "def cMLt(uGHt, Fvlg):\n _fHV = TQdx(uGHt)\n Luf1 = TQdx(Fvlg)\n return _fHV == Luf1", "def iIoa(iXsv, R1nJ):\n return isinstance(iXsv, type(R1nJ))", "def l_QA(YKHO, Elif):\n GTHQ = YKHO.id\n ouk8 = Elif.id\n if (GTHQ and ouk8) and GTHQ != ouk8:\n...
[ "0.826196", "0.7960103", "0.7685877", "0.75767535", "0.73899287", "0.7386229", "0.73627245", "0.72946095", "0.7151994", "0.7137583", "0.7062871", "0.7059909", "0.70217156", "0.69869566", "0.6975931", "0.69511235", "0.6951103", "0.682518", "0.6799043", "0.6766386", "0.67605907...
0.8348503
0
Add token to vocabulary.
def efuE(YKHO, eOtH): eOtH = YKHO.process_token(eOtH) YKHO._token_count.update([eOtH])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def efuE(YKHO, eOtH):\n if not eOtH:\n G9jH.error('Token cannot be empty!')\n exit()\n YKHO.tokens.append(eOtH.lower())", "def JznN(YKHO, eOtH, wjQX):\n YKHO.word2idx[eOtH] = YKHO.vocab_size\n YKHO.vocab_size += 1\n YKHO.embedding = oyIN.vstack((YKHO.embedding, wjQX))", "def h9DM(Y...
[ "0.7474371", "0.7235822", "0.6903988", "0.6526929", "0.65188766", "0.6505907", "0.6505907", "0.64998305", "0.6496983", "0.6493279", "0.64262176", "0.6420701", "0.6391367", "0.6325264", "0.63200015", "0.62549394", "0.62311953", "0.622333", "0.6177798", "0.61690384", "0.6133628...
0.68879795
4
Convert `document` into the bagofwords (BoW) format = list of `(token_id, token_count)` tuples.
def KR34(YKHO, C13M, kCPm=False, AqNH=False): A97Q = [a1PO.text for a1PO in C13M.tokens] if isinstance(A97Q, jUrF): raise TypeError('doc2bow expects an array of unicode tokens on input, not a single string') ewCu = oRi_(int) for yzQ0 in A97Q: ewCu[yzQ0 if isinstance(yzQ0, str) else str(y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d2ON(O1Hz):\n _FAw = dict()\n for eOtH in O1Hz:\n if eOtH in _FAw.keys():\n _FAw[eOtH] += 1\n else:\n _FAw[eOtH] = 1\n return _FAw", "def E1xT(ol4k):\n RVut = []\n cmPJ = tTte(ol4k)\n Cyld = len(ol4k)\n MM5k = sum(map(len, ol4k)) / Cyld\n for C13M i...
[ "0.75598925", "0.67602545", "0.64582515", "0.63520515", "0.5917524", "0.5897528", "0.58469146", "0.5783915", "0.5782803", "0.5771413", "0.57590044", "0.5732742", "0.5720406", "0.57064784", "0.5675183", "0.5654374", "0.5644353", "0.5635149", "0.55853426", "0.5584801", "0.55662...
0.6443913
3
Get the token_id of given token.
def yeO7(YKHO, eOtH): eOtH = YKHO.process_token(eOtH) return YKHO.token2id.get(eOtH, len(YKHO.token2id) - 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yeO7(YKHO, eOtH):\n eOtH = YKHO.process_token(eOtH)\n return YKHO._token2id.get(eOtH, len(YKHO._token2id) - 1)", "def yeO7(YKHO, eOtH):\n return YKHO.encoder.get(eOtH, YKHO.encoder.get(YKHO.unk_token))", "def oFhs(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'token_id')", "def EPt_...
[ "0.8310672", "0.7980398", "0.79235566", "0.7840283", "0.7578476", "0.730748", "0.71591955", "0.7151534", "0.7099397", "0.6803577", "0.66393685", "0.65554255", "0.6520694", "0.64726806", "0.64626735", "0.6437027", "0.6431865", "0.6408412", "0.63829017", "0.6313626", "0.6299330...
0.8298625
1
dataloader for training dataset via voxsampler.
def QQpJ(J_EG, pgPm, yeUC, aPd6=aPd6, Ep8u=Ep8u, IdIw=IdIw, WuVw=WuVw, oSF1=None): if oSF1 is None: def qFDb(pmON): return _LEG(pmON, L=aPd6, evalmode=False) else: qFDb = oSF1 GVWp = rLdf.read_csv(J_EG, sep=' ', header=None, names=['speaker', 'file']) GVWp['file'] = GVWp['fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K1Op(YKHO) -> ht2j.utils.data.DataLoader:\n return ht2j.utils.data.DataLoader(YKHO.dataset_train, **YKHO.dl_kwargs)", "def JyoU(YKHO):\n ppBc = YKHO.data.get_train_data()\n if YKHO.args.use_dev:\n ppBc, sujI = YKHO.data.split_data(ppBc)\n Zwka = YKHO.data.get_test_data()\n EPL3 = YKHO.l...
[ "0.7731121", "0.7497621", "0.72368264", "0.71800596", "0.7143441", "0.7102657", "0.7093028", "0.7014497", "0.6950995", "0.6860976", "0.6830999", "0.67986304", "0.6784964", "0.6782085", "0.67802626", "0.6743672", "0.6729586", "0.6659931", "0.66424596", "0.6627726", "0.6623991"...
0.0
-1
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True) Ylbp.append(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R...
[ "0.76427615", "0.74189496", "0.7418079", "0.72710466", "0.72456723", "0.72446615", "0.7237539", "0.72213703", "0.7210107", "0.7058935", "0.6852219", "0.6786084", "0.67836976", "0.6768417", "0.67273885", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0....
0.0
-1
Construct a new Player
def FIMM(YKHO): YKHO.loop = V7ok.get_event_loop() YKHO.aiohttp = jA2G.Application(loop=YKHO.loop, middlewares=[J8hx]) YKHO.client = Qm_e() YKHO.ws = Tpmr(YKHO) YKHO.cert = YKHO._load_ssl_certificate() YKHO.config()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chb0(YKHO):\n yK2S, d_5N = YKHO.playerCreationRectangle\n WKvO = YKHO.random.randrange(yK2S.x, d_5N.x)\n LVAh = 1.0\n epBp = YKHO.random.randrange(yK2S.y, d_5N.y)\n oyg0 = mVZ4(lNLu(WKvO, LVAh, epBp), 2, YKHO.seconds)\n for LiTy in YKHO.observers:\n LiTy.playerCreated(oyg0)\n YKHO.p...
[ "0.8133294", "0.73655224", "0.7338226", "0.7169045", "0.7107056", "0.71011436", "0.7019268", "0.70154893", "0.7000745", "0.6951531", "0.6851873", "0.68201184", "0.6619382", "0.6601898", "0.6583949", "0.65359473", "0.65358025", "0.6531014", "0.6509729", "0.6432442", "0.639431"...
0.0
-1
Constructor with data and next element
def FIMM(YKHO, nPrm): YKHO.data = nPrm YKHO.next = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nPrm, next=None):\n YKHO.data = nPrm\n YKHO.next = next", "def FIMM(YKHO, nPrm, next=None):\n YKHO.data = nPrm\n YKHO.next = next", "def FIMM(YKHO, nPrm=None, next=None):\n YKHO.data = nPrm\n YKHO.next = next", "def FIMM(YKHO, nPrm, zAcD=None):\n YKHO.data = nPrm\n YKHO...
[ "0.8599574", "0.85121983", "0.84967536", "0.8359982", "0.8315263", "0.8315263", "0.81818867", "0.8087428", "0.80368114", "0.8025065", "0.8019018", "0.7919946", "0.76897675", "0.7610863", "0.7575822", "0.75584215", "0.7526036", "0.7419128", "0.72142625", "0.7198809", "0.708651...
0.8276122
7
Returns first n values from the given sequence.
def _iMd(exwG, Q6uT): Q6uT = iter(Q6uT) Aofo = [] try: for YRbF in range(exwG): Aofo.append(next(Q6uT)) except StopIteration: pass return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iMd(exwG, Q6uT):\n return Hs6x.islice(Q6uT, exwG)", "def _J4B(exwG, Q6uT):\n try:\n return Q6uT[exwG]\n except TypeError:\n return next(Hs6x.islice(Q6uT, exwG, None))", "def _iMd(OxJJ, exwG):\n return list(Hs6x.islice(OxJJ, exwG))", "def XHb1(exwG, OxJJ):\n for BWXx in uOgj(...
[ "0.7429517", "0.6876003", "0.6727532", "0.67118037", "0.66985476", "0.66985476", "0.66961426", "0.6665714", "0.6665714", "0.66652995", "0.6647308", "0.64990807", "0.6490624", "0.6476307", "0.6448948", "0.6416278", "0.6414325", "0.64115244", "0.6388718", "0.63765794", "0.63302...
0.7366886
1
Old string code that takes any 2D list and maps it to a 1D list by adding each subsequent row to the end of the first row
def eXnU(bmd0): D3ol = [] for YRbF in range(len(bmd0)): for r845 in range(len(bmd0[YRbF])): D3ol.append(bmd0[YRbF][r845]) return D3ol
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c9Sn(yv6U, TUL3):\n nJNG = yv6U[0].split('\\t')\n if TUL3:\n return [nJNG[0] + ' ' + nJNG[1], '1']\n return [nJNG[0] + ' ' + nJNG[1], '0']", "def l7uB(hkWs):\n if (exwG := len(hkWs)) == 0:\n return []\n if (r8hN := len(hkWs[0])) == 1 and exwG == r8hN:\n return hkWs\n iE...
[ "0.66831225", "0.6467971", "0.6433592", "0.62176746", "0.61118764", "0.59531605", "0.59194076", "0.5904703", "0.5842135", "0.58245844", "0.5760106", "0.57579666", "0.573827", "0.5714012", "0.5692371", "0.569116", "0.56879634", "0.56724775", "0.56658834", "0.5663291", "0.56433...
0.576872
10
Sets the peer of this Dial.
def jYLz(YKHO, jYLz): if jYLz is None: raise ValueError('Invalid value for `peer`, must not be `None`') YKHO._peer = jYLz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eOUL(YKHO, jYLz):\n YKHO.peer = jYLz", "def z6WE(YKHO, fvZd):\n raise NotImplementedError()", "def jYLz(YKHO, BWXx: Optional[MicrobitPeer]) -> None:\n if YKHO.__peer is not None:\n YKHO.__peer.remove_listener(YKHO.__execute)\n if BWXx is not None:\n BWXx.add_listener(YKHO.__execut...
[ "0.83918417", "0.67424357", "0.6415004", "0.60654163", "0.5945206", "0.5834176", "0.5686866", "0.5547047", "0.54729116", "0.54373324", "0.54167396", "0.53934383", "0.5380653", "0.5360441", "0.5354226", "0.53020024", "0.5296971", "0.5267418", "0.52219296", "0.52138495", "0.517...
0.7684957
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, k66g): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.808826", "0.808826", "0.8054592", "0.79827315", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Hamming Heuristic (admissible) provides very little speedup, but it's one line and admissible
def ITSD(QTBn: SpotlessRoombaState) -> float: return len(QTBn.dirty_locations)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lr8Y(nPrm):\n pass", "def t497(nPrm: bytearray):\n print(f'data: {nPrm}')\n if len(nPrm) % 4 != 0:\n yk4i = 4 - len(nPrm) % 4\n nPrm += bytes(yk4i)\n r8hN = len(nPrm)\n Mkmy = 0\n tzc6 = 0\n YRbF = 0\n cT8E = bytearray()\n while YRbF < r8hN // 4:\n tzc6 = BlNT....
[ "0.75875574", "0.6815475", "0.68022764", "0.626976", "0.62238514", "0.6208715", "0.6082887", "0.60824615", "0.6025382", "0.60161185", "0.5995922", "0.5990126", "0.5911016", "0.5893186", "0.5888975", "0.5871593", "0.58487594", "0.58374834", "0.5815022", "0.5806226", "0.5787427...
0.0
-1
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038751", "0.7924752", "0.7923082", "0.78850657", "0.78771824", "0.7815519", "0.77652335", "0.775546", "0.77440816", "0.77313656", "0.77284646", "0.77244157", "0.770246", "0.76888484", "0.76888484", "0.766384", "0.7656689", "0.7655605", "0.7655605", "0.76455575", "0.764555...
0.7537613
27
Checks top to target to see if it hit top of screen
def LiA1(YKHO): if YKHO.rect.top <= 0: YKHO.target_direction = 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zngr(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for bVA9 in YKHO.autos.sprites():\n if bVA9.rect.top <= VXOZ.top:\n YKHO._pigeon_hit()\n break", "def T2b6(YKHO):\n if YKHO.y >= YKHO.scene.screen.get_height() - YKHO.image.get_height() or YKHO.y <= 0:\n return True\n ...
[ "0.733528", "0.73351", "0.6623284", "0.6466618", "0.6390728", "0.62321746", "0.6225023", "0.62215257", "0.6199803", "0.61606985", "0.6129186", "0.610839", "0.6086093", "0.6061291", "0.6013783", "0.598041", "0.5974214", "0.5962553", "0.58782667", "0.58218175", "0.58168215", ...
0.8144298
0
Start random direction movement
def iEax(YKHO): MKlR = tuKI.randrange(2, 4) Ty9i = tuKI.randrange(1, 3) if not bool(tuKI.getrandbits(1)): MKlR = -MKlR YKHO.velocity = [MKlR, -Ty9i] YKHO.explode.play()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uVf3(YKHO):\n rVnq = 2 * epAf.pi * tuKI.random()\n P6bq = 2 * tuKI.random() - 1\n Ty9i = epAf.sqrt(1 - P6bq * P6bq) * epAf.cos(rVnq)\n yzQ0 = epAf.sqrt(1 - P6bq * P6bq) * epAf.sin(rVnq)\n YKHO.direction = (P6bq, Ty9i, yzQ0)", "def gKSy(ZbiO, Ayfi):\n YylR = js4S(-90, 90)\n Csk6 = js4S(0,...
[ "0.76126647", "0.7555828", "0.7380981", "0.7263461", "0.71452343", "0.7137276", "0.69984514", "0.6989068", "0.6987881", "0.69832087", "0.6966477", "0.6943634", "0.6943634", "0.6928557", "0.6794044", "0.67522436", "0.6749555", "0.6610872", "0.6600256", "0.6551586", "0.6535305"...
0.6732395
17
Make an ArgumentParser instance for comparative benchmark options.
def RIXt(): wvEv = OjCr.make_argument_parser() wvEv.add_argument('--skip-reference', action='store_true', help='Skip the reference simulation run.') return wvEv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RIXt():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--device', type=str, choices=['CPU', 'GPU'], help='Execution device.', required=True)\n wvEv.add_argument('-N', type=int, default=bnlv, help='Number of particles.')\n wvEv.add_argument('--rho', type=float, default=M0D9, help='Number densit...
[ "0.72827846", "0.7190032", "0.7093924", "0.7032623", "0.70229095", "0.69860554", "0.6946884", "0.694275", "0.693303", "0.6930106", "0.69170386", "0.68352914", "0.6832233", "0.68094486", "0.68094486", "0.6783497", "0.6778075", "0.6772473", "0.675373", "0.6753382", "0.6745362",...
0.788973
0
Unstack batch dimension and split into channels and alpha mask.
def XXK8(YKHO, WKvO, Ep8u, Qi3c=3): IoLu = ht2j.reshape(WKvO, [Ep8u, -1] + list(WKvO.shape)[1:]) xMux, oGem = ht2j.split(IoLu, [Qi3c, 1], dim=2) return (xMux, oGem)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def feNb(WKvO):\n assert WKvO.dim() == 4\n Ep8u, fHmP, MKlR, yzQ0 = WKvO.size()\n REGG = WKvO.view(Ep8u, fHmP, -1).transpose(1, 2).contiguous()\n REGG = REGG.view(Ep8u, MKlR, yzQ0, fHmP)\n return REGG", "def Bz4p(Wc9F):\n Yw_3 = []\n oGem = []\n for LNo8, gudP, ZHfW in Wc9F:\n ZHfW...
[ "0.59909207", "0.58123934", "0.5716505", "0.5716326", "0.5704696", "0.5700815", "0.55700964", "0.5564052", "0.55450964", "0.55180305", "0.551707", "0.54962254", "0.5416754", "0.5411667", "0.5395286", "0.5373396", "0.53642625", "0.5344805", "0.5337699", "0.5336697", "0.5332148...
0.7611791
0
Close the session and the Thrift transport.
def DDI8(YKHO): lTaB.close_service(YKHO.service)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n YKHO.__session.close()", "def DDI8(YKHO):\n YKHO.__session.close()", "def DDI8(YKHO):\n YKHO.__session.close()", "def DDI8(YKHO):\n YKHO.__session.close()", "def DDI8(YKHO):\n YKHO.__session.close()", "def DDI8(YKHO):\n YKHO.__session.close()", "def DDI8(YKHO) -> Non...
[ "0.78195184", "0.78195184", "0.78195184", "0.78195184", "0.78195184", "0.78195184", "0.7808701", "0.7711172", "0.76763135", "0.7660848", "0.7508555", "0.7420375", "0.7418072", "0.7413811", "0.7404994", "0.732449", "0.7322094", "0.722286", "0.7220323", "0.71922815", "0.712453"...
0.0
-1
The name of the application that is associated with this environment.
def VpPs(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'application_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvcN(YKHO) -> str:\n return YKHO._app_name", "def kvcN(YKHO):\n return YKHO._app_name", "def VpPs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'application_name')", "def VpPs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'application_name')", "def kvcN(YKHO) -> qe4Y.Output[h8nf[s...
[ "0.8759173", "0.8733051", "0.8620485", "0.8620485", "0.8601236", "0.8559315", "0.8510323", "0.8470934", "0.83924884", "0.8365387", "0.81169367", "0.80879086", "0.8058957", "0.80493975", "0.80454445", "0.80223936", "0.8003628", "0.79939234", "0.7801216", "0.7618629", "0.748491...
0.83143616
13
If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.
def tNyy(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'cname_prefix')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XD37(YKiD):\n return 'crds://'", "def X8ah(a2jN, mWFP):\n sEAN = _ht_(a2jN)\n if sEAN:\n sEAN = sEAN.lower()\n if sEAN == 'prod':\n return mWFP\n return mWFP + '.' + sEAN", "def i2I_(YKHO):\n return f'{YKHO.project_name}-{YKHO.stage}'", "def i2I_(f4S_='(', pfzt=')'):\n ...
[ "0.64996815", "0.5894681", "0.5874034", "0.5585658", "0.5544347", "0.54832244", "0.5323281", "0.5320591", "0.52773994", "0.52695954", "0.5262594", "0.5224099", "0.5203325", "0.5185465", "0.51792514", "0.51767623", "0.51628804", "0.5161422", "0.51356816", "0.5127793", "0.51247...
0.52725095
9
A unique name for the environment.
def nbhT(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'environment_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._env_name", "def mWFP(YKHO):\n return Ynut(YKHO.tool_name, YKHO._python, YKHO._requirements, YKHO._tagged_env_vars)", "def i2I_(YKHO):\n return f'{YKHO.project_name}-{YKHO.stage}'", "def W2a_():\n return 'unique-{0}'.format(qxeD.uuid4())", "def nbhT(YKHO) -> qe4Y.O...
[ "0.79486114", "0.75685275", "0.7347741", "0.71612895", "0.7083821", "0.6932168", "0.6866546", "0.6833046", "0.6826362", "0.6653989", "0.66474885", "0.658179", "0.6504934", "0.6459993", "0.64504695", "0.64480555", "0.6429557", "0.6411307", "0.6345184", "0.63397086", "0.6339165...
0.69573826
5
The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment's operations role.
def hWiS(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'operations_role')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')", "def SQQ_(YKHO) -> str:\n return qe4Y.get(YKHO, 'iam_role_arn')", "def axXk(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'role_arn')", "def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')", "def _Kal(YKH...
[ "0.7612605", "0.75487196", "0.7544673", "0.7489435", "0.74707127", "0.74707127", "0.7373255", "0.7373255", "0.734374", "0.734374", "0.734374", "0.734374", "0.72820526", "0.72820526", "0.7252721", "0.71177185", "0.70236653", "0.69610494", "0.6929272", "0.6908325", "0.69070154"...
0.6835086
21
The Amazon Resource Name (ARN) of the custom platform to use with the environment.
def SHFZ(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'platform_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SHFZ(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'platform_arn')", "def a9EH(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'platform')", "def a9EH():\n return 'micaz'", "def X7ke():\n if cZl2:\n return cZl2\n if Njvv():\n return 'win32'\n if jWLO():\n ...
[ "0.7836344", "0.6630474", "0.66273826", "0.6609992", "0.6324445", "0.6285871", "0.623594", "0.61513615", "0.60816205", "0.60486674", "0.60041595", "0.598996", "0.59880674", "0.596188", "0.59613025", "0.5961109", "0.5934884", "0.5923574", "0.5923574", "0.59224755", "0.59224755...
0.77357316
1
The name of the application version to deploy.
def P3Mv(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'version_label')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jtRV(YKHO) -> str:\n return qe4Y.get(YKHO, 'version_name')", "def CJtF(YKHO) -> str:\n return qe4Y.get(YKHO, 'app_version')", "def jtRV(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'version_name')", "def yj5T(YKHO):\n return YKHO.name + '-' + YKHO.version", "def mWFP(YKHO):\n ...
[ "0.79632217", "0.7523307", "0.7298782", "0.7256948", "0.7225796", "0.7173701", "0.7093467", "0.70632595", "0.70144266", "0.691959", "0.6919559", "0.6915445", "0.6907794", "0.6907794", "0.68302757", "0.68228155", "0.67623806", "0.6752896", "0.6749308", "0.6721663", "0.67069286...
0.0
-1
Get an existing Environment resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Environment': VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id)) r6DL = QGws.__new__(QGws) r6DL.__dict__['application_name'] = None r6DL.__dict__['cname_prefix'] = None r6DL.__dict__['descri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Environment':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = QGws.__new__(QGws)\n r6DL.__dict__['arm_template_display_name'] = None\n r6DL.__dict__['created_by_user'] = None\n ...
[ "0.6518575", "0.61676663", "0.615199", "0.6109608", "0.6109441", "0.60900664", "0.6072669", "0.5931966", "0.58831435", "0.5837981", "0.5818557", "0.58057237", "0.5786659", "0.5786354", "0.5778798", "0.5712893", "0.56756985", "0.5640747", "0.5597875", "0.5522777", "0.54472834"...
0.6545722
0
The name of the application that is associated with this environment.
def VpPs(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'application_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvcN(YKHO) -> str:\n return YKHO._app_name", "def kvcN(YKHO):\n return YKHO._app_name", "def kvcN(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'app_name')", "def kvcN(YKHO):\n return YKHO._app_name", "def W0tD():\n return GPtr.APP_NAME", "def VpPs(YKHO) -> h8nf[str]:\n r...
[ "0.8760097", "0.8733922", "0.8601743", "0.8560242", "0.8511749", "0.8471325", "0.8393377", "0.8365738", "0.8314625", "0.8314625", "0.8314625", "0.8314625", "0.811715", "0.8087263", "0.8060348", "0.8050741", "0.80447793", "0.80227804", "0.80048144", "0.79946846", "0.7801479", ...
0.8621024
3
If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.
def tNyy(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'cname_prefix')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XD37(YKiD):\n return 'crds://'", "def X8ah(a2jN, mWFP):\n sEAN = _ht_(a2jN)\n if sEAN:\n sEAN = sEAN.lower()\n if sEAN == 'prod':\n return mWFP\n return mWFP + '.' + sEAN", "def i2I_(YKHO):\n return f'{YKHO.project_name}-{YKHO.stage}'", "def i2I_(f4S_='(', pfzt=')'):\n ...
[ "0.6500855", "0.5895467", "0.5876529", "0.5587471", "0.55460733", "0.5484087", "0.5324461", "0.5320309", "0.5279635", "0.5274285", "0.52700907", "0.52646524", "0.5225509", "0.5187014", "0.5178442", "0.5177224", "0.5163091", "0.5162621", "0.5136999", "0.51282483", "0.5125458",...
0.52051395
13
A unique name for the environment.
def nbhT(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'environment_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._env_name", "def mWFP(YKHO):\n return Ynut(YKHO.tool_name, YKHO._python, YKHO._requirements, YKHO._tagged_env_vars)", "def i2I_(YKHO):\n return f'{YKHO.project_name}-{YKHO.stage}'", "def W2a_():\n return 'unique-{0}'.format(qxeD.uuid4())", "def nbhT(YKHO) -> h8nf[q...
[ "0.79474497", "0.75676024", "0.7346393", "0.71637094", "0.69561476", "0.69324404", "0.6864522", "0.6832018", "0.6827754", "0.66545093", "0.66468686", "0.65825635", "0.6506662", "0.6461384", "0.6451408", "0.64490986", "0.6430531", "0.6412154", "0.6346107", "0.6341232", "0.6337...
0.7082336
4
The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment's operations role.
def hWiS(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'operations_role')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')", "def SQQ_(YKHO) -> str:\n return qe4Y.get(YKHO, 'iam_role_arn')", "def axXk(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'role_arn')", "def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')", "def _Kal(YKH...
[ "0.7611145", "0.7547483", "0.7543366", "0.7487498", "0.7469303", "0.7469303", "0.7371766", "0.7371766", "0.73421746", "0.73421746", "0.73421746", "0.73421746", "0.7280896", "0.7280896", "0.72515625", "0.70219666", "0.69590557", "0.6927607", "0.69078577", "0.6905639", "0.68344...
0.7117283
15
The Amazon Resource Name (ARN) of the custom platform to use with the environment.
def SHFZ(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'platform_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SHFZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'platform_arn')", "def a9EH(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'platform')", "def a9EH():\n return 'micaz'", "def X7ke():\n if cZl2:\n return cZl2\n if Njvv():\n return 'win32'\n if jWLO():\n ...
[ "0.7735306", "0.66278744", "0.6624211", "0.6606932", "0.6323558", "0.6283941", "0.6234539", "0.61513674", "0.6081606", "0.60462385", "0.60026896", "0.5988347", "0.598575", "0.59628206", "0.5962734", "0.59611076", "0.59324396", "0.59225625", "0.59225625", "0.5922316", "0.59223...
0.7835914
0
The name of the application version to deploy.
def P3Mv(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'version_label')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jtRV(YKHO) -> str:\n return qe4Y.get(YKHO, 'version_name')", "def CJtF(YKHO) -> str:\n return qe4Y.get(YKHO, 'app_version')", "def jtRV(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'version_name')", "def yj5T(YKHO):\n return YKHO.name + '-' + YKHO.version", "def mWFP(YKHO):\n ...
[ "0.79674184", "0.752541", "0.7301922", "0.7259704", "0.72298706", "0.71760947", "0.7097202", "0.7067314", "0.7017301", "0.69222665", "0.69211406", "0.6917922", "0.6909662", "0.6909662", "0.6832326", "0.6825434", "0.67636746", "0.6756408", "0.67505723", "0.67250407", "0.670931...
0.6369655
59
The column labels of the DataFrame. Returns orca.Index The column labels of each column.
def ZLJ_(YKHO): return YKHO._columns
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Crrw(YKHO):\n return YKHO.column_labels", "def fNI0(YKHO):\n return tuple(YKHO._columns.keys())", "def Te1x(YKHO) -> {int: str}:\n return {WKvO: fvDH.label for WKvO, fvDH in YKHO._cols.items()}", "def LyTn(jQ3Z: DataFrame, Crrw: list):\n return [or8S for or8S, mWFP in enumerate(jQ3Z.columns) ...
[ "0.7897917", "0.76980937", "0.7478725", "0.69867", "0.6826641", "0.68240386", "0.6750179", "0.6732042", "0.6705691", "0.66914195", "0.6630234", "0.65252477", "0.6519194", "0.64722145", "0.6469839", "0.64630276", "0.6462272", "0.6409666", "0.6367081", "0.63438576", "0.62805796...
0.6088458
41
Align the input columns, filling the missing columns with None Examples >>> merge_columns( ... ["a", "b", "ba", "d", "f"], ... ["e", "c", "d", "g", "ga", "a"] ... ) (('a','a'),('b',None),('ba',None),(None,c),('d','d'),(None,'e'),('f',None),(None,'g'),(None,'ga'))
def tvWw(wsZ9, cnQT): hF0l, JLcG = (sorted(wsZ9), sorted(cnQT)) qZw8 = oJDU = 0 iGoo, GKHe = (len(wsZ9), len(cnQT)) while qZw8 < iGoo and oJDU < GKHe: nq1k, gln0 = (hF0l[qZw8], JLcG[oJDU]) if nq1k == gln0: yield (nq1k, gln0) qZw8 += 1 oJDU += 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bPLc(qHe1):\n Ig7T = [Ty9i for Ty9i in qHe1 if Ty9i in jQ3Z.columns]\n Ig7T.sort()\n for YRbF in range(1, len(Ig7T)):\n jQ3Z[Ig7T[0]] = jQ3Z[Ig7T[0]].fillna(jQ3Z[Ig7T[YRbF]])\n jQ3Z.drop(Ig7T[YRbF], 1, inplace=True)\n return Ig7T[0]", "def tvWw(zKHR, usx6, vGZu=None):\n if vGZu i...
[ "0.6452826", "0.59999216", "0.5639353", "0.53557676", "0.5288406", "0.51761496", "0.50632006", "0.5041874", "0.5031121", "0.49720797", "0.49664128", "0.49384537", "0.49003986", "0.4899783", "0.48729792", "0.4778065", "0.47356743", "0.47148484", "0.46847248", "0.4650927", "0.4...
0.5532568
3
Return a sorted selections by the correlation rsquared scores
def HNs7(YKHO, gnAD, z2aV, SRYB, UXbG, gysN, xEOs, UAE4, si3H=True, JM_I=None, EeIc=True, BN6X=None): Z5H0 = rLdf.DataFrame(index=oyIN.arange(0, len(z2aV)), columns=['corel', 'selections', 'params', 'selectionname']) for YRbF, (SuM2, kbeV) in enumerate(zip(z2aV, JM_I)): try: fuBA = gnAD.getD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rpzN(YKHO):\n Z9rn = YKHO.df.corr().abs()\n KCHu = Z9rn.unstack()\n cbZA = KCHu.sort_values(ascending=False)\n YRbF = int(len(cbZA) ** (1 / 2))\n c0yN = cbZA[YRbF:]\n c0yN = c0yN[::2]\n if len(c0yN) > 3:\n c0yN = c0yN[:3]\n return (c0yN.index, c0yN.values)", "def TuN9(vbCc, MTK...
[ "0.5838652", "0.55438906", "0.5539825", "0.5511799", "0.5483375", "0.54549277", "0.54273504", "0.5422278", "0.5394091", "0.536099", "0.53258604", "0.53121966", "0.5309838", "0.5289699", "0.52868915", "0.5261606", "0.5250422", "0.52314734", "0.5225502", "0.5213998", "0.5203932...
0.62526226
0
To be used in conjunction with loss.binary_xentropy_with_sigmoid
def hTMZ(epBp): return m1Hg(epBp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(WKvO):\n hcL3 = 1.0 / (1.0 + oyIN.exp(-WKvO))\n return hcL3\n pass", "def ExI1(YKHO):\n tEbt = iXxX.SigmoidCrossEntropy()\n aMgO = tEbt.final_activation_op({'logits': YKHO.logits, 'metadata': {'mask': YKHO.mask}})\n assert oyIN.isclose(aMgO[0][0].numpy(), 0.54905695, atol=1e-05)\n a...
[ "0.7591269", "0.75822216", "0.7455182", "0.74292374", "0.74232256", "0.74232256", "0.74083984", "0.74083984", "0.74083984", "0.74083984", "0.74083984", "0.74083984", "0.7393072", "0.73908216", "0.73857445", "0.73740834", "0.73655087", "0.73640925", "0.73640925", "0.73588455", ...
0.8279197
0
Return a diagonal mask computed from an array. Useful when the data is the same if you transpose the array, eg in a heatmap.
def M1mY(nPrm): ZHfW = oyIN.zeros_like(nPrm, dtype=oyIN.bool) ZHfW[oyIN.triu_indices_from(ZHfW)] = True return ZHfW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WyUJ(YKHO, qw7D):\n x1Jm = [qw7D[::-1, :].diagonal(YRbF) for YRbF in range(-qw7D.shape[0] + 1, qw7D.shape[1])]\n x1Jm.extend((qw7D.diagonal(YRbF) for YRbF in range(qw7D.shape[1] - 1, -qw7D.shape[0], -1)))\n return x1Jm", "def IjIm(jzdc, vgXP=0, M_mI=0, ZMAG=1):\n return jzdc.diagonal(vgXP, M_mI, ...
[ "0.72953194", "0.61421484", "0.6136961", "0.58667374", "0.5818971", "0.558432", "0.5531007", "0.55216306", "0.5488027", "0.5458054", "0.5457682", "0.5436873", "0.54321617", "0.5413237", "0.54027534", "0.5357985", "0.5352605", "0.53214806", "0.53060347", "0.5296002", "0.528144...
0.706273
1
Retrieve the ItopapiOSVersion corresponding to this server
def wFSE(YKHO): if YKHO.osversion_id is not None: TC9A.get_itop_class('OSVersion').find(YKHO.osfamily_id) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cu3Z(YKHO):\n return gTEQ('PrlSrvInfo_GetOsVersion', YKHO.handle)", "def vr5H(YKHO):\n return gTEQ('PrlFoundVmInfo_GetOSVersion', YKHO.handle)", "def Cu3Z(YKHO):\n return gTEQ('PrlVmCfg_GetOsVersion', YKHO.handle)", "def LioG(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'os_version')", ...
[ "0.8168305", "0.7857166", "0.7728561", "0.76559675", "0.7597805", "0.7398409", "0.7351898", "0.7313755", "0.7304044", "0.7298166", "0.7229817", "0.7214568", "0.7212459", "0.719492", "0.7193201", "0.71634763", "0.7163448", "0.7133119", "0.7087612", "0.7079623", "0.70749295", ...
0.7123767
18
Retrieve the ItopapiOrganization corresponding to this server
def D1IT(YKHO): if YKHO.org_id is not None: TC9A.get_itop_class('Organization').find(YKHO.org_id) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbiw(YKHO):\n return YKHO._tower.get_organization_by_id(YKHO._data.get('organization'))", "def PI_r(YKHO):\n return YKHO.reference[Issx][NNfF]", "def pBok(YKHO):\n return _VfD.ModelCreator_getOrganization(YKHO)", "def PI_r(YKHO):\n oJ7E = YKHO.position.to_object\n if oJ7E is None:\n ...
[ "0.7651209", "0.71187073", "0.7091516", "0.68542224", "0.6810734", "0.680332", "0.67780435", "0.6712279", "0.6706957", "0.66816705", "0.6667797", "0.6625002", "0.65964967", "0.6589382", "0.6561183", "0.6561183", "0.6561183", "0.65521574", "0.6543021", "0.64575344", "0.6378819...
0.75703514
1
Builds the correct URL. Replaces "query" with "queryauth" if client has authentication information.
def l4eR(YKHO, zVa7, Qjbs, SGPK={}): if YKHO.user is not None: if zVa7 == 'dataselect' and Qjbs == 'query': Qjbs = 'queryauth' return jNi7(YKHO.base_url, zVa7, YKHO.major_versions[zVa7], Qjbs, SGPK, service_mappings=YKHO._service_mappings, subpath=YKHO.url_subpath)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jNi7(YKHO, QePW, XeOP, **xDcj):\n P8oC = KVWQ.urljoin(QePW['base_url'], YKHO.auth_prefix + '/' + XeOP)\n return hmqx(P8oC, xDcj)", "def tJ84(YKHO):\n pmON = [YKHO.path]\n pmON.extend([str(WKvO) for WKvO in YKHO.params])\n bD7m = YKHO.client.base_url + '/'.join((WKvO for WKvO in pmON if WKvO))\...
[ "0.7369034", "0.7334827", "0.72362584", "0.7071104", "0.7013484", "0.6760965", "0.65050304", "0.6447025", "0.6425153", "0.63879895", "0.6378408", "0.6330067", "0.63281715", "0.62623614", "0.62623614", "0.62423044", "0.62401664", "0.62292403", "0.6221821", "0.61912405", "0.615...
0.660301
6
URL builder for the FDSN webservices. Built as a separate function to enhance testability.
def jNi7(NKRf, zVa7, QAZ2, Qjbs, SGPK=None, dwQd=None, _o7t='fdsnws'): if SGPK is None: SGPK = {} if dwQd is None: dwQd = {} if zVa7 not in ['dataselect', 'station']: tO9_ = "Resource type '%s' not allowed. Allowed types: \n%s" % (zVa7, ','.join(('dataselect', 'station'))) ra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Psis(B0gN):\n return '/'.join((B0gN.context_meta['server_uri'], 'servicesNS', 'nobody', 'Splunk_TA_paloalto', 'storage', 'collections', 'data', 'minemeldfeeds'))", "def IBRk(yR_P):\n kQbe = '/axapi/v3/event-notification/kafka/server'\n OEyw = {}\n return kQbe.format(**OEyw)", "def jNi7(YKHO, w2...
[ "0.66425973", "0.65290934", "0.64784485", "0.6391138", "0.6334783", "0.6291143", "0.6275944", "0.62580895", "0.6257961", "0.6254215", "0.6222721", "0.6197548", "0.61817586", "0.61761576", "0.61630815", "0.6116728", "0.6090364", "0.6049933", "0.6026856", "0.60260284", "0.60106...
0.6375497
4
Set appointment's begin date; Pass to appointment's begin time
def SmSP(bWOo): cuiw.attributes['begin_date'] = str(bWOo) umWR = TvZl('time') return bAls(umWR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C_5k(YKHO, bWOo):\n YKHO.set_value_into_input_field(YKHO.begin_date_inputbox_locator, bWOo)", "def bWOo(YKHO, BWXx):\n if not isinstance(BWXx, qcWV):\n raise TypeError(UkQH('\\n begin_date must be an instance of datetime.datetime, not %s\\n ', cCRh(BWXx)))\n YKHO...
[ "0.7065128", "0.7005564", "0.697397", "0.6942992", "0.65339845", "0.64918524", "0.6489678", "0.647476", "0.6436995", "0.6375545", "0.62956077", "0.61982006", "0.61860764", "0.61311483", "0.6118447", "0.6097708", "0.6097708", "0.6097708", "0.6097708", "0.6097708", "0.6097708",...
0.7202706
0
Set appointment's end date; Pass to appointment's end time
def VGJS(KhBf): cuiw.attributes['end_date'] = str(KhBf) tO9_ = TvZl('end_time') return bAls(tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EmhK(YKHO, _c1T):\n pass", "def M4HV(YKHO, M4HV):\n YKHO._end_date_time = M4HV", "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def zvAj(YKHO, Id2S):\n YKHO.end_date = Id2S", "def g3KG(C7pn):\n cuiw.attributes['end_time'] = str(C7pn)\n L03z = vkvs(cuiw.attributes)\n L03z.submit(...
[ "0.76225775", "0.7512484", "0.7296414", "0.72335875", "0.72125554", "0.71424943", "0.71424943", "0.71424943", "0.71424943", "0.71424943", "0.71424943", "0.71424943", "0.71424943", "0.7120749", "0.7087847", "0.6900266", "0.6880423", "0.6880423", "0.6826085", "0.6826085", "0.68...
0.78313226
0
Usage When you call the DescribeDBInstanceEncryptionKey operation, the instance must have transparent data encryption (TDE) enabled in BYOK mode. You can call the [ModifyDBInstanceTDE](~~131267~~) operation to enable TDE.
def SRJW(YKHO, QePW: dds_20151201_models.DescribeDBInstanceEncryptionKeyRequest, Qvn0: util_models.RuntimeOptions) -> NWRF.DescribeDBInstanceEncryptionKeyResponse: tSvq.validate_model(QePW) xDcj = {} if not tSvq.is_unset(QePW.dbinstance_id): xDcj['DBInstanceId'] = QePW.dbinstance_id if not tSvq....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NSao(YKHO, QePW: dds_20151201_models.DescribeDBInstanceEncryptionKeyRequest) -> NWRF.DescribeDBInstanceEncryptionKeyResponse:\n Qvn0 = RZdT.RuntimeOptions()\n return YKHO.describe_dbinstance_encryption_key_with_options(QePW, Qvn0)", "def FMBb(YKHO, QePW: dds_20151201_models.ModifyDBInstanceTDERequest, ...
[ "0.673887", "0.6716472", "0.65085775", "0.6401395", "0.6124461", "0.6019866", "0.5743563", "0.5593969", "0.5453083", "0.53697926", "0.50822043", "0.5020621", "0.50204563", "0.50042874", "0.4984543", "0.49620974", "0.49530983", "0.48969638", "0.4866419", "0.4756271", "0.472960...
0.6771073
0
Usage When you call the DescribeDBInstanceEncryptionKey operation, the instance must have transparent data encryption (TDE) enabled in BYOK mode. You can call the [ModifyDBInstanceTDE](~~131267~~) operation to enable TDE.
async def describe_dbinstance_encryption_key_with_options_async(YKHO, QePW: dds_20151201_models.DescribeDBInstanceEncryptionKeyRequest, Qvn0: util_models.RuntimeOptions) -> NWRF.DescribeDBInstanceEncryptionKeyResponse: tSvq.validate_model(QePW) xDcj = {} if not tSvq.is_unset(QePW.dbinstance_id): xDc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SRJW(YKHO, QePW: dds_20151201_models.DescribeDBInstanceEncryptionKeyRequest, Qvn0: util_models.RuntimeOptions) -> NWRF.DescribeDBInstanceEncryptionKeyResponse:\n tSvq.validate_model(QePW)\n xDcj = {}\n if not tSvq.is_unset(QePW.dbinstance_id):\n xDcj['DBInstanceId'] = QePW.dbinstance_id\n if...
[ "0.67736393", "0.6740733", "0.6716724", "0.64031655", "0.61244464", "0.60200423", "0.5743947", "0.55937266", "0.54525197", "0.5369969", "0.5083985", "0.5020417", "0.50197154", "0.5004098", "0.49828136", "0.4963517", "0.4952876", "0.4897045", "0.4868045", "0.4755675", "0.47292...
0.6510804
3
Usage When you call the DescribeDBInstanceEncryptionKey operation, the instance must have transparent data encryption (TDE) enabled in BYOK mode. You can call the [ModifyDBInstanceTDE](~~131267~~) operation to enable TDE.
def NSao(YKHO, QePW: dds_20151201_models.DescribeDBInstanceEncryptionKeyRequest) -> NWRF.DescribeDBInstanceEncryptionKeyResponse: Qvn0 = RZdT.RuntimeOptions() return YKHO.describe_dbinstance_encryption_key_with_options(QePW, Qvn0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SRJW(YKHO, QePW: dds_20151201_models.DescribeDBInstanceEncryptionKeyRequest, Qvn0: util_models.RuntimeOptions) -> NWRF.DescribeDBInstanceEncryptionKeyResponse:\n tSvq.validate_model(QePW)\n xDcj = {}\n if not tSvq.is_unset(QePW.dbinstance_id):\n xDcj['DBInstanceId'] = QePW.dbinstance_id\n if...
[ "0.6771073", "0.6716472", "0.65085775", "0.6401395", "0.6124461", "0.6019866", "0.5743563", "0.5593969", "0.5453083", "0.53697926", "0.50822043", "0.5020621", "0.50204563", "0.50042874", "0.4984543", "0.49620974", "0.49530983", "0.48969638", "0.4866419", "0.4756271", "0.47296...
0.673887
1
Usage When you call the DescribeDBInstanceEncryptionKey operation, the instance must have transparent data encryption (TDE) enabled in BYOK mode. You can call the [ModifyDBInstanceTDE](~~131267~~) operation to enable TDE.
async def describe_dbinstance_encryption_key_async(YKHO, QePW: dds_20151201_models.DescribeDBInstanceEncryptionKeyRequest) -> NWRF.DescribeDBInstanceEncryptionKeyResponse: Qvn0 = RZdT.RuntimeOptions() return await YKHO.describe_dbinstance_encryption_key_with_options_async(QePW, Qvn0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SRJW(YKHO, QePW: dds_20151201_models.DescribeDBInstanceEncryptionKeyRequest, Qvn0: util_models.RuntimeOptions) -> NWRF.DescribeDBInstanceEncryptionKeyResponse:\n tSvq.validate_model(QePW)\n xDcj = {}\n if not tSvq.is_unset(QePW.dbinstance_id):\n xDcj['DBInstanceId'] = QePW.dbinstance_id\n if...
[ "0.6772166", "0.6739101", "0.671771", "0.6509689", "0.6125098", "0.60211706", "0.5744258", "0.5594484", "0.5452331", "0.5370367", "0.50826246", "0.5019888", "0.5019626", "0.500507", "0.49832922", "0.49626267", "0.49528944", "0.48964608", "0.48669487", "0.47548133", "0.4728359...
0.6401872
4