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
Test base model instance None
def tDaN(YKHO): with YKHO.assertRaises(TypeError): KcDH(None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVF8(YKHO):\n YKHO.assertEqual(KcDH, type(KcDH()))", "def nLZM(YKHO):\n YKHO.assertIsInstance(YKHO.test1, KcDH)", "def p0oN(YKHO):\n YKHO.assertTrue(isinstance(YKHO.my_object, KcDH))", "def VSwP(YKHO):\n tjUW = KcDH()\n YKHO.assertIsInstance(tjUW, KcDH)\n YKHO.assertEqual(KcDH, type(KcD...
[ "0.80231947", "0.79989123", "0.7941508", "0.7813731", "0.7544405", "0.74999666", "0.7452782", "0.7351618", "0.7337447", "0.72895074", "0.7280447", "0.72775495", "0.7277241", "0.72593814", "0.72263646", "0.7222089", "0.72038734", "0.72015023", "0.717199", "0.7169258", "0.71668...
0.8098113
0
Render index.html and return a list of all genres in the database
def d6pt(): return TvZl('index.html', genres=qm8v.db.genres.find())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MDIn(QePW):\n UvpI = OBnk.objects.all()\n rPXJ = 'genres.html'\n QpfX = {'genre_list': UvpI}\n return _1tc(QePW, rPXJ, QpfX)", "def XgiC(QePW):\n MDIn = zOPr.objects.all().order_by('-name')\n return _1tc(QePW, 'library/book_genre_list.html', {'genres': MDIn})", "def d6pt():\n return Tv...
[ "0.78544897", "0.7411427", "0.71637625", "0.7032562", "0.6912489", "0.6703285", "0.6597688", "0.65362465", "0.6515454", "0.65054166", "0.6504956", "0.64526534", "0.64524806", "0.64430505", "0.64412606", "0.6438455", "0.63923275", "0.636675", "0.6349975", "0.63493997", "0.6332...
0.8579369
0
Find a book, return all reviews and update the book review with form data.
def ucPg(ABua): if QePW.method == 'POST': qm8v.db.books.find_one_and_update({'_id': aA6B(ABua)}, {'$push': {'reviews': QePW.form.to_dict()['reviews']}}) return vKnz(nKyW('library')) else: return TvZl('leave_review.html', book=qm8v.db.books.find_one({'_id': aA6B(ABua)}), reviews=qm8v.db.b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Slbv(ABua):\n uJjO = cuiw['user_id']\n try:\n RrWF = QePW.form.get('rating')\n l5Ny = QePW.form.get('review-text')\n except ValueError:\n return P1dF('Something went wrong with submission.', 400)\n t3AT = NCls.execute('SELECT user_id from reviews WHERE book_id = :book_id AND us...
[ "0.7074716", "0.7001833", "0.6901512", "0.6462823", "0.6442863", "0.62262726", "0.62024945", "0.6140798", "0.6126515", "0.60852975", "0.6026697", "0.59292054", "0.59257895", "0.5876543", "0.5862409", "0.5848849", "0.5817138", "0.57618445", "0.57392174", "0.56552154", "0.55964...
0.6707456
3
Remove a book to user's book collection.
def i3Bz(ABua): if 'username' in cuiw: qm8v.db.users.update_one({'username': cuiw['username']}, {'$pull': {'book_collection': aA6B(ABua)}}) return vKnz(nKyW('user', user_id=cuiw['username']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B1C1(YKHO, jI4j):\n if YKHO.has_book(jI4j):\n YKHO.books.remove(jI4j)\n if YKHO.owner.lists_with_book_count(jI4j) <= 1:\n YKHO.owner.remove_book(jI4j)\n return YKHO", "def B1C1(YKHO, jI4j):\n if YKHO.has_book(jI4j):\n YKHO.books.remove(jI4j)\n return YKHO",...
[ "0.80136096", "0.78585315", "0.75852716", "0.7238311", "0.7016101", "0.70006436", "0.6723079", "0.67099124", "0.66443354", "0.6585086", "0.6554451", "0.64218336", "0.6200322", "0.6104956", "0.6100536", "0.6099474", "0.60963315", "0.6024604", "0.5997149", "0.59902793", "0.5888...
0.7002449
5
Convenience layer that perorms an affine transform followed by a ReLU
def lDHV(WKvO, yzQ0, Fg_i): jzdc, A45l = Fav1(WKvO, yzQ0, Fg_i) yvT9, GhMp = wN5Y(jzdc) wyyA = (A45l, GhMp) return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YxOf(WKvO, yzQ0, Fg_i, KMvS, UqYS, QLJ1):\n cSEP, A45l = Fav1(WKvO, yzQ0, Fg_i)\n zgIO, oyJl = wucA(cSEP, KMvS, UqYS, QLJ1)\n yvT9, GhMp = wN5Y(zgIO)\n wyyA = (A45l, oyJl, GhMp)\n return (yvT9, wyyA)", "def ANoO(WKvO, EDoJ):\n yzQ0 = ZylS.get_variable('w', [WKvO.get_shape()[1], EDoJ])\n ...
[ "0.69867504", "0.6572268", "0.6439855", "0.6433597", "0.6433597", "0.6433597", "0.6433597", "0.642217", "0.6333756", "0.6289237", "0.62431914", "0.62354267", "0.62161696", "0.6189127", "0.6136317", "0.6120578", "0.6056729", "0.60451454", "0.6031833", "0.60112923", "0.6002554"...
0.71841645
2
Forward pass for the affinebatchnormrelu convenience layer
def gwM2(WKvO, yzQ0, Fg_i, KMvS, UqYS, Y7R2): jzdc, A45l = Fav1(WKvO, yzQ0, Fg_i) dkvI, ICjk = d3MU(jzdc, KMvS, UqYS, Y7R2) yvT9, GhMp = wN5Y(dkvI) wyyA = (A45l, ICjk, GhMp) return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NAgT(WKvO, yzQ0, Fg_i, KMvS, UqYS, Y7R2):\n cSEP, A45l = Fav1(WKvO, yzQ0, Fg_i)\n zgIO, oyJl = d3MU(cSEP, KMvS, UqYS, Y7R2)\n yvT9, GhMp = wN5Y(zgIO)\n wyyA = (A45l, oyJl, GhMp)\n return (yvT9, wyyA)", "def NAgT(WKvO, yzQ0, Fg_i, KMvS, UqYS, exGu):\n Fiv7, Smws = Fav1(WKvO, yzQ0, Fg_i)\n ...
[ "0.79018676", "0.77066606", "0.7054248", "0.699916", "0.69421965", "0.69206274", "0.6888592", "0.68694115", "0.6762852", "0.6748065", "0.670639", "0.670639", "0.6693821", "0.6693821", "0.6693821", "0.6693821", "0.6659797", "0.66587037", "0.6654921", "0.6628577", "0.6628577", ...
0.68866247
7
Backward pass for the affinebatchnormrelu convenience layer
def sdfy(zYcP, wyyA): A45l, ICjk, GhMp = wyyA SG6Y = PPFh(zYcP, GhMp) hFDI, bfN2, T0XM = BmpB(SG6Y, ICjk) Jw7X, ncXl, NCls = Kt1o(hFDI, A45l) return (Jw7X, ncXl, NCls, bfN2, T0XM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G8jx(zYcP, wyyA):\n A45l, oyJl, GhMp = wyyA\n YynT = PPFh(zYcP, GhMp)\n dl9Q, bfN2, T0XM = VRTA(YynT, oyJl)\n Jw7X, ncXl, NCls = Kt1o(dl9Q, A45l)\n return (Jw7X, ncXl, NCls, bfN2, T0XM)", "def G8jx(zYcP, wyyA):\n Smws, R8fZ, GhMp = wyyA\n _qin = PPFh(zYcP, GhMp)\n jWm5, bfN2, T0XM = B...
[ "0.7655102", "0.758219", "0.7579185", "0.74714565", "0.70438194", "0.70393753", "0.70271826", "0.69933707", "0.6937926", "0.6911695", "0.6853179", "0.6847639", "0.68472373", "0.68472373", "0.68370694", "0.68370694", "0.68370694", "0.68370694", "0.68253684", "0.68253684", "0.6...
0.72211415
4
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, unxO): 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.8088463", "0.8088463", "0.80553037", "0.7983272", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", ...
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
References may be compared for equality.
def Vdqg(YKHO, Ty9i): return not YKHO == Ty9i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if not isinstance(Elif, a78G):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def whu6(YKHO):\n pass", "def xa14(YKHO, Elif):\n try:\n if not YKHO.size == Elif.size and YKHO.reference == Elif.reference:\n return False\n except:\n ...
[ "0.70439565", "0.6973399", "0.6865347", "0.67290837", "0.672133", "0.6677314", "0.66354334", "0.66354334", "0.66354334", "0.66354334", "0.66354334", "0.66354334", "0.66354334", "0.66354334", "0.66354334", "0.66354334", "0.66354334", "0.66354334", "0.66354334", "0.66354334", "...
0.0
-1
References may be compared for equality.
def xa14(YKHO, Ty9i): return YKHO is Ty9i or (YKHO.__class__ == Ty9i.__class__ and YKHO.AEM_comparable() == Ty9i.AEM_comparable())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if not isinstance(Elif, a78G):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def whu6(YKHO):\n pass", "def xa14(YKHO, Elif):\n try:\n if not YKHO.size == Elif.size and YKHO.reference == Elif.reference:\n return False\n except:\n ...
[ "0.7044891", "0.69766766", "0.6866396", "0.67298496", "0.6721524", "0.66790557", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", "0.663721", ...
0.0
-1
ne(anything) > does not equal test
def d_5N(YKHO, wEf2): return B2Z0(YKHO, wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t33R(YKHO):\n BfDw.compare_tracing_methods(pr14('notEqual'), ht2j.randn(3, 4, 5), ht2j.randn(3, 4, 5), fusible_ops={'aten::ne'})", "def Vdqg(YKHO, RKYb):\n return not YKHO.__eq__(RKYb)", "def Vdqg(LFlW, _tIi):\n return not LFlW == _tIi", "def kUu4(yLHq, RKYb):\n return sfxH.not_equal(yLHq, RK...
[ "0.76794857", "0.7646952", "0.7624771", "0.7618851", "0.76152855", "0.7575103", "0.7551571", "0.752134", "0.7474319", "0.7470581", "0.7465002", "0.7449085", "0.74459475", "0.7445002", "0.7436726", "0.74279624", "0.74279624", "0.74244225", "0.7417717", "0.7417717", "0.74144965...
0.73761225
28
Test the setDirection() and getDirection() methods.
def eZzz(YKHO): YKHO.assertEqual(YKHO.group_tr.getDirection(), Dxvu.TRANSFORM_DIR_FORWARD) for XSoh in Dxvu.TransformDirection.__members__.values(): YKHO.group_tr.setDirection(XSoh) YKHO.assertEqual(YKHO.group_tr.getDirection(), XSoh) for qVG7 in (None, 1, 'test'): with YKHO.assertRa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_set_direction(ajET: HomeAssistant, VIzB) -> None:\n await TFzc(ajET)\n X8c9 = 0\n await BJsk.async_turn_on(ajET, _eHF)\n X8c9 += 1\n for HCmI in [IDxW, bJNn]:\n await BJsk.async_set_direction(ajET, _eHF, HCmI)\n assert ajET.states.get(PWc7).state == HCmI\n L5Ty(aj...
[ "0.7145497", "0.7121669", "0.6851404", "0.66780984", "0.6673258", "0.666593", "0.6592404", "0.63893515", "0.63365847", "0.63028646", "0.6277874", "0.6252377", "0.61980975", "0.6173451", "0.614588", "0.61166686", "0.60882276", "0.60839725", "0.6066155", "0.60179055", "0.600951...
0.8282881
0
Returns filtered segments belonging to a specified file.
async def get_segments_for_file(gIsw: str, B2Dn: int=0, p1kx: int=0, CMJC: int=0, lx4p: int=0, Hjby: List[str]=_aLO([]), CLNa: str=''): rQow = m2MS(gIsw) pbQE, aF82 = wYIN(Hjby, rQow) try: p9bx = GGod() zRKG = p9bx.AQLQuery(query=iRqA.QUERY_TABLE_VIEW, batchSize=10000, bindVars={'filename': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ulE5(U_xt):\n PXIy = []\n qR6U = bFIR(s5Rh, IboZ, uFt8, Tqyj, rW4J)\n for a5z2 in U_xt:\n print('getting the labeled segments from the recording ', str(a5z2.filename))\n PXIy.extend(H4TM(a5z2, qR6U))\n if U_xt.index(a5z2) == 20:\n break\n return PXIy", "def u1dh(O3...
[ "0.62946147", "0.62885654", "0.61816967", "0.6112191", "0.5847772", "0.5818864", "0.56699187", "0.5444992", "0.5440816", "0.543574", "0.5435727", "0.540324", "0.53578675", "0.5318706", "0.5264703", "0.5240469", "0.5224177", "0.52083683", "0.5208033", "0.5202241", "0.5154116",...
0.5929332
4
Returns the displayName for a segmentnr.
async def get_displayname(AEAW: str): DuqQ = m2MS(AEAW) Ux0P = AEAW.split(':')[0] if DuqQ == 'chn': Ux0P = ZbWC.sub('_[0-9]+', '', Ux0P) p9bx = GGod() zCev = p9bx.AQLQuery(query=iRqA.QUERY_DISPLAYNAME, bindVars={'filename': Ux0P}, rawResults=True) LNYD = {} if zCev.result: BO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y0hN(AIu6):\n return AIu6['InstanceProfileName']", "def qQNS(YKHO):\n return YKHO.properties.get('displayName', None)", "def y0hN(YKHO):\n return YKHO.get_property(_D3F.DisplayName())", "def qQNS(YKHO):\n return YKHO.settings['displayName']", "def y0hN(YKHO):\n return YKHO.display_name",...
[ "0.68661433", "0.6769828", "0.66963017", "0.6691317", "0.6658782", "0.6635132", "0.6580928", "0.6580928", "0.6580928", "0.6580928", "0.6580928", "0.65756917", "0.6521884", "0.6521884", "0.6521884", "0.6521884", "0.6521884", "0.6521884", "0.6521884", "0.6521884", "0.6521884", ...
0.702293
0
Returns the displayName for a segmentnr.
async def get_multilingual(Ux0P: str): BOjq = {'langList': []} p9bx = GGod() zCev = p9bx.AQLQuery(query=iRqA.QUERY_MULTILINGUAL_LANGS, bindVars={'filename': Ux0P}, rawResults=True) BOjq = {'langList': zCev.result[0]} return BOjq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_displayname(AEAW: str):\n DuqQ = m2MS(AEAW)\n Ux0P = AEAW.split(':')[0]\n if DuqQ == 'chn':\n Ux0P = ZbWC.sub('_[0-9]+', '', Ux0P)\n p9bx = GGod()\n zCev = p9bx.AQLQuery(query=iRqA.QUERY_DISPLAYNAME, bindVars={'filename': Ux0P}, rawResults=True)\n LNYD = {}\n if zCev.resul...
[ "0.7022871", "0.68670315", "0.6770365", "0.6697097", "0.66918707", "0.6660152", "0.6636053", "0.6581341", "0.6581341", "0.6581341", "0.6581341", "0.6581341", "0.65761983", "0.652306", "0.652306", "0.652306", "0.652306", "0.652306", "0.652306", "0.652306", "0.652306", "0.652...
0.0
-1
Returns the best Action
def NXPA(YKHO, QTBn): XeOP = YKHO.q_network.chooseBestAction(QTBn) cAlv = max(YKHO.q_network.qValues(QTBn)) return (XeOP, cAlv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction", "def u_ln(YKHO):\n XeOP = YKHO.best_action()\n return XeOP", "def HS6c(YKHO, QTBn):\n TFJY = list(YKHO.Q[QTBn].items())\n return max(TFJY, key=lambda WKvO: WKvO[1])[0]", "def ePBn(...
[ "0.9061267", "0.8763294", "0.81735426", "0.80723083", "0.80659574", "0.80254227", "0.8009562", "0.79923254", "0.79643923", "0.7830964", "0.78182834", "0.7756368", "0.77301204", "0.7713598", "0.7688321", "0.76736903", "0.76577526", "0.76307034", "0.7617552", "0.7592945", "0.75...
0.764178
17
Whether to use L2 weight decay for `param_name`.
def yKA8(YKHO, _N6A): if not YKHO.weight_decay_rate: return False if YKHO.exclude_from_weight_decay: for Mkmy in YKHO.exclude_from_weight_decay: if ZbWC.search(Mkmy, _N6A) is not None: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yKA8(YKHO, _N6A):\n if not YKHO.weight_decay_rate:\n return False\n if YKHO.exclude_from_weight_decay:\n for Mkmy in YKHO.exclude_from_weight_decay:\n if ZbWC.search(Mkmy, _N6A) is not None:\n return False\n return True", "def yKA8(YKHO, _N6A):\n if not YKH...
[ "0.7058274", "0.7058274", "0.7058274", "0.7058274", "0.7058274", "0.7042912", "0.7037783", "0.6148344", "0.6116324", "0.60738724", "0.58761394", "0.5731123", "0.56879544", "0.5607771", "0.55421853", "0.5533301", "0.5528204", "0.5493097", "0.54622954", "0.54472876", "0.5446343...
0.69730985
8
Whether to use L2 weight decay for `param_name`.
def yKA8(YKHO, _N6A): if not YKHO.weight_decay_rate: return False if YKHO.exclude_from_weight_decay: for Mkmy in YKHO.exclude_from_weight_decay: if ZbWC.search(Mkmy, _N6A) is not None: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yKA8(YKHO, _N6A):\n if not YKHO.weight_decay_rate:\n return False\n if YKHO.exclude_from_weight_decay:\n for Mkmy in YKHO.exclude_from_weight_decay:\n if ZbWC.search(Mkmy, _N6A) is not None:\n return False\n return True", "def yKA8(YKHO, _N6A):\n if not YKH...
[ "0.7058274", "0.7058274", "0.7058274", "0.7058274", "0.7058274", "0.7042912", "0.7037783", "0.6148344", "0.6116324", "0.60738724", "0.58761394", "0.5731123", "0.56879544", "0.5607771", "0.55421853", "0.5533301", "0.5528204", "0.5493097", "0.54622954", "0.54472876", "0.5446343...
0.69730985
9
Whether to do layerwise learning rate adaptation for `param_name`.
def vJ0S(YKHO, _N6A): if YKHO.exclude_from_layer_adaptation: for Mkmy in YKHO.exclude_from_layer_adaptation: if ZbWC.search(Mkmy, _N6A) is not None: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yKA8(YKHO, _N6A):\n if not YKHO.weight_decay_rate:\n return False\n if YKHO.exclude_from_weight_decay:\n for Mkmy in YKHO.exclude_from_weight_decay:\n if ZbWC.search(Mkmy, _N6A) is not None:\n return False\n return True", "def yKA8(YKHO, _N6A):\n if not YKH...
[ "0.728557", "0.728557", "0.728557", "0.728557", "0.728557", "0.714325", "0.714325", "0.714325", "0.714325", "0.7100122", "0.70338655", "0.66027194", "0.6597934", "0.6561045", "0.65270674", "0.6521741", "0.65065384", "0.64637876", "0.64630455", "0.64630455", "0.64630455", "0...
0.69685507
11
Returns the employee home page.
def YvUd(): return oGir(TvZl('employee/employee.html'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y3Rc(Emd4):\n return Emd4.__home(Emd4._logger)", "def vja_(YKHO) -> str:\n return YKHO._home_page", "def PZbI(YKHO) -> str:\n return YKHO._personal_home_page", "def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')", "def kZiy():\n bpFo = ''\n Wkxa = cuiw.get('UserType', ...
[ "0.7884416", "0.75349647", "0.7347782", "0.7281752", "0.72741693", "0.7154845", "0.7153947", "0.71193093", "0.7106191", "0.70715547", "0.7046188", "0.70405316", "0.70185184", "0.69691277", "0.69671506", "0.6944817", "0.69183534", "0.6917072", "0.6917072", "0.6917072", "0.6917...
0.6510263
81
Create label tensors with the same size as the input.
def PpUY(YKHO, o3Uj, nbSS): if nbSS: zvoY = YKHO.real_label else: zvoY = YKHO.fake_label return zvoY.expand_as(o3Uj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wl12(cDK5):\n return (oyIN.ones([cDK5, 1]), oyIN.zeros([cDK5, 1]))", "def nAMM(j9VG, XqwL, jTqs, KLLm=True, D5gV='seg'):\n with ZylS.name_scope('label_encode'):\n j9VG = ZylS.image.resize_nearest_neighbor(j9VG, XqwL)\n if D5gV == 'seg':\n j9VG = ZylS.squeeze(j9VG, squeeze_dims=...
[ "0.7334109", "0.7140496", "0.71153593", "0.7086969", "0.70147705", "0.69324046", "0.6846251", "0.68401986", "0.67875797", "0.6771887", "0.6746952", "0.6703911", "0.6692927", "0.66772044", "0.65051234", "0.6464831", "0.6432414", "0.6425861", "0.64061236", "0.63710165", "0.6313...
0.0
-1
Fetch the latest yaml configuration for an integration.
async def async_integration_yaml_config(RUgX: OpenPeerPower, qGgq: str) -> V8S8 | None: Urat = await VB24(RUgX, qGgq) return await msd8.async_process_component_config(RUgX, await msd8.async_opp_config_yaml(RUgX), Urat)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_integration_yaml_config(ajET: HomeAssistant, qGgq: str) -> V8S8 | None:\n Urat = await VB24(ajET, qGgq)\n return await msd8.async_process_component_config(ajET, await msd8.async_hass_config_yaml(ajET), Urat)", "def tgzD():\n bGrB, Ylbp = MY6y.files_download(Z9rn.io.FILE_CONFIG)\n retu...
[ "0.6813492", "0.6743552", "0.64173716", "0.62785614", "0.6152126", "0.6135238", "0.61309814", "0.61097306", "0.61047447", "0.6104074", "0.604214", "0.6037852", "0.60316753", "0.60095185", "0.599183", "0.59627116", "0.59585446", "0.5957831", "0.5944566", "0.59428513", "0.59407...
0.66172695
2
Creates a singular name string by combining first and last name
def LvoP(c9ua, zp3f): return c9ua + ' ' + zp3f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaIN(c9ua, zp3f):\n eHMM = c9ua + '' + zp3f\n return eHMM.title()", "def yT1d(c9ua, zp3f, WG1t=''):\n if WG1t:\n return f'{c9ua} {WG1t[0:1]}. {zp3f}'\n else:\n return f'{c9ua} {zp3f}'", "def e1yb(cntZ, XVAW):\n eHMM = cntZ + ' ' + XVAW\n return eHMM.title()", "def e1yb(cnt...
[ "0.7938396", "0.79240555", "0.7851024", "0.78010374", "0.77954876", "0.779184", "0.7788236", "0.77865845", "0.77760607", "0.77143985", "0.7704728", "0.76981026", "0.76968825", "0.76944816", "0.76944816", "0.76944816", "0.768721", "0.7684031", "0.7684031", "0.7684031", "0.7679...
0.0
-1
Apply the standard template to some more HTML. This method is used in the creation of most pages title The page title (in the header) text The page content
def XU4p(leAC, l5Ny, g4pi=False): rPXJ = open(xBs1('html/page.mustache')).read() return GEZT.render(rPXJ, {'title': leAC, 'content': l5Ny, 'app_title': CURa, 'context': zaMS, 'is_test': g4pi})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m9aE(YKHO, _R2e):\n YKHO.html_template(_R2e, lang='en')\n YKHO.add_language('en')", "def EPt3(YKHO, WmM4=None):\n J_Es = QK7R(YKHO.book.get_template(YKHO._template_name))\n nQYr = J_Es.getroot()\n nQYr.set('lang', YKHO.lang or YKHO.book.language)\n nQYr.attrib['{%s}lang' % hHbH['XML']] = YK...
[ "0.6389394", "0.6216893", "0.620742", "0.6187255", "0.609868", "0.602595", "0.5982625", "0.5910555", "0.5860774", "0.5829621", "0.58202815", "0.58085954", "0.5789463", "0.57796603", "0.5754765", "0.56842643", "0.5676206", "0.5655952", "0.5643539", "0.56402767", "0.5639693", ...
0.6092565
5
Send a 404 not found start_response The response object
def XTyb(MP2k): MP2k('404 Not Found', [('Content-type', 'text/html; charset=utf-8')]) return [osTA.render_html(MXxE, g1LM).encode('utf-8')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf(PNq_, MP2k):\n MP2k('404 NOT FOUND', [('Content-Type', 'text/plain')])\n return [str.enocde('Not Found')]", "def o3cf(PNq_, MP2k):\n MP2k('404 Empty WPP request msg!', [('Content-Type', 'text/plain')])\n return ['Empty WPP request msg!\\n']", "def XTyb(YKHO):\n YKHO.send_error(404, 'Fil...
[ "0.8237397", "0.7933496", "0.7789341", "0.7781334", "0.7660513", "0.7531275", "0.75295776", "0.75204694", "0.7490554", "0.74848807", "0.7413102", "0.73565924", "0.73314077", "0.7326615", "0.7323068", "0.7301029", "0.7283452", "0.72760576", "0.72760576", "0.72397757", "0.72353...
0.7931079
2
Assigns field to buzzerrooms.
def uwjK(YKHO, Jyyj): usUl = ['8', '7', 'Elementary'] Jyyj = list(filter(lambda UlMg: UlMg.bee, Jyyj)) for oyg0 in Jyyj: oyg0.schedule = list(sorted(oyg0.schedule, key=TU9R(1))) Dts0 = [[] for bGrB in range(len(YKHO.buzzerschedule))] for YRbF, ITS7 in enumerate(YKHO.buzzerschedule, 0): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o6yu(YKHO, m3Nh, abiq):\n YKHO.room[abiq] = m3Nh\n return True", "def Wot2(YKHO, z6Sp):\n YKHO.roomList = z6Sp", "def Wot2(YKHO, z6Sp):\n YKHO.roomList = z6Sp", "def DFSo(YKHO, DFSo):\n YKHO._rooms = DFSo", "def FIMM(YKHO, mWFP, FatH):\n YKHO.name = mWFP\n YKHO.num_rooms = FatH\n ...
[ "0.62463576", "0.6233621", "0.6233621", "0.59965897", "0.58163726", "0.5702544", "0.568325", "0.5620691", "0.5620506", "0.5511594", "0.54238725", "0.5403611", "0.5309989", "0.53049", "0.5277939", "0.5248739", "0.5191165", "0.51901656", "0.51830745", "0.51732373", "0.51644504"...
0.5435831
10
Hash password before saving.
def G3s8(YKHO, jTXt): YKHO.password = vT87(jTXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO):\n YKHO.__password = YKHO.str_to_hash(YKHO.__password)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password = jf1V.encrypt(jTXt)", "def qzFd(YKHO, poHf):\n YKHO.password = vT87(poHf)", "def GPjS(YKHO, jTXt):\n hmgX = B8ni.hashpw(j...
[ "0.81892926", "0.79767346", "0.7861677", "0.77282685", "0.7631551", "0.7624802", "0.74794847", "0.7420639", "0.7324399", "0.728064", "0.7228339", "0.7228339", "0.7228339", "0.7228339", "0.7225862", "0.7187474", "0.7139251", "0.7115133", "0.7102463", "0.7087808", "0.7068659", ...
0.67335445
50
Check password hash against a pwd provided by user.
def EvfH(YKHO, jTXt): return z8jj(YKHO.password, jTXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A5rN(YKHO, IfJ1):\n return z8jj(YKHO.passHash, IfJ1)", "def yeKu(mWFP, jTXt, MKlR):\n NTfD = MKlR.split(',')[0]\n return MKlR == FHEU(mWFP, jTXt, NTfD)", "def A5rN(YKHO, jTXt):\n eSXN = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'adminPass.psw')\n if Hy7s.path.isfile(eSXN):\n...
[ "0.7540943", "0.7505496", "0.7329342", "0.72880447", "0.7241134", "0.72142076", "0.72111917", "0.7203458", "0.7200366", "0.719823", "0.7181897", "0.71716213", "0.71501374", "0.71501374", "0.71501374", "0.71501374", "0.71349406", "0.7119356", "0.7105546", "0.70869344", "0.7073...
0.71753347
11
Retrieve the mountpoint under a file
def nPpC(KcEq, HPZj): oUZx = "df -P %s | awk 'END{print $NF}'" % HPZj XTpC, BiGf, ymVL = Oa1e.run(KcEq, oUZx) if XTpC == 0: return BiGf.strip() Oa1e.log.error('Get mountpoint failed: %s' % ymVL) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v2CM(YKHO):\n return YKHO._properties.get('mountpoint')", "def sJ2P(RgWw):\n ENHB = O0k5.disk_partitions()\n for ZfUD in ENHB:\n if ZfUD.mountpoint == RgWw:\n return RUFc(ZfUD.device)\n return None", "def mxMZ(v2CM):\n tJfx.initialize()\n for XZBf in tJfx._mounts:\n ...
[ "0.77689135", "0.7064576", "0.6981762", "0.6934608", "0.6695603", "0.648559", "0.6450375", "0.6433785", "0.6357996", "0.6355451", "0.63459533", "0.63377875", "0.63245195", "0.61639154", "0.6149914", "0.605027", "0.6043915", "0.6016457", "0.5983911", "0.59671116", "0.59671116"...
0.73824847
1
Get the xattr for the file instance.
def WK16(YKHO, K0IF): return rYjV(YKHO._host, YKHO._fqpath, K0IF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vizl(uvd8, hkS8):\n if hkS8 in K0IF.listxattr(uvd8):\n return K0IF.getxattr(uvd8, hkS8)\n else:\n return None", "def KDVe(YKHO, hkS8, tk5Y=None):\n with YKHO._h5file('r') as tapr:\n if tk5Y is None:\n YEnM = tapr\n else:\n YEnM = tapr[tk5Y]\n ...
[ "0.68741703", "0.61961746", "0.60997534", "0.604604", "0.59459674", "0.5782565", "0.57605594", "0.57089293", "0.5689203", "0.56089175", "0.5587231", "0.55533874", "0.55171597", "0.5499459", "0.5486242", "0.5476765", "0.5449688", "0.53918236", "0.53777164", "0.53624433", "0.53...
0.7778568
0
Get timestamp from tweet id
def jLSx(Huo2): vgXP = 1288834974657 ka7q = (Huo2 >> 22) + vgXP return epAf.floor(ka7q / 1000)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KOTW(Mau6):\n if 'timestamp_ms' in Mau6:\n adSP = int(Mau6['timestamp_ms'])\n adSP = adSP - adSP % 1000\n return adSP / 1000.0\n elif 'created_at' in Mau6:\n return hfK9(Mau6['created_at']).timestamp()\n raise KeyError(\"Neither the 'timestamp_ms' attribute, nor the 'create...
[ "0.7752677", "0.759698", "0.69382507", "0.6797679", "0.6662933", "0.6579704", "0.65106815", "0.6442436", "0.64221776", "0.6421252", "0.6394101", "0.6345774", "0.6306192", "0.62966603", "0.62829405", "0.62200916", "0.6191024", "0.6183969", "0.61559373", "0.61379576", "0.612409...
0.78979266
0
Convert timestamp to timestamponly tweet id
def QzgZ(ka7q): vgXP = 1288834974657 return ka7q * 1000 - vgXP << 22
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jLSx(Huo2):\n vgXP = 1288834974657\n ka7q = (Huo2 >> 22) + vgXP\n return epAf.floor(ka7q / 1000)", "def KOTW(Mau6):\n if 'timestamp_ms' in Mau6:\n adSP = int(Mau6['timestamp_ms'])\n adSP = adSP - adSP % 1000\n return adSP / 1000.0\n elif 'created_at' in Mau6:\n retu...
[ "0.7285081", "0.69341433", "0.6916905", "0.68557876", "0.67509687", "0.6709116", "0.66192627", "0.6474197", "0.6375429", "0.62828374", "0.62692636", "0.6205269", "0.6193097", "0.619257", "0.6164524", "0.6154402", "0.61530477", "0.6141056", "0.61285704", "0.6126497", "0.611513...
0.67924047
4
Initializes a clause. Here, the input clause is either a list or set of integers, or is an instance of Clause; in the latter case, a shallow copy is made, so that one can modify this clause without modifying the original clause.
def FIMM(YKHO, woks): if isinstance(woks, ZTFu): YKHO.literals = frozenset(woks.literals) else: for YRbF in woks: assert isinstance(YRbF, int), 'Not an integer: %r' % YRbF YKHO.literals = frozenset(woks)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, dWj_):\n kFMF = {ZTFu(Z9rn) for Z9rn in dWj_}\n YKHO.clauses = set()\n for Z9rn in kFMF:\n if Z9rn.isfalse:\n YKHO.clauses = {Z9rn}\n break\n elif Z9rn.istrue:\n pass\n else:\n YKHO.clauses.add(Z9rn)", "def lSki(Emd4, woks='...
[ "0.650933", "0.59525424", "0.593376", "0.5478546", "0.5431269", "0.5244287", "0.51739204", "0.5156626", "0.5074115", "0.5069725", "0.506462", "0.5061173", "0.5056712", "0.50069165", "0.4978111", "0.49681395", "0.49034697", "0.48363853", "0.48253945", "0.4784638", "0.47787258"...
0.81750333
0
Convert a sudoku grid into a dict with '0' or '.' chars for empty values.
def yhMG(YKHO, Cs6h): gLiZ = [fvDH for fvDH in Cs6h if fvDH in YKHO.digits or fvDH in '0.'] assert len(gLiZ) == 81 return dict(zip(YKHO.squares, gLiZ))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mOzq(YKHO):\n AG2z = '..3.2.6..9..3.5..1..18.64....81.29..7.......8..67.82....26.95..8..2.3..9..5.1.3..'\n T4ek = {'C7': '4', 'I6': '123456789', 'E7': '123456789', 'E6': '123456789', 'F6': '8', 'H6': '3', 'C9': '123456789', 'E4': '123456789', 'E9': '8', 'G7': '5', 'A3': '3', 'H2': '123456789', 'G8': '123...
[ "0.6910479", "0.67018765", "0.6563154", "0.61465", "0.59778345", "0.59628564", "0.5937581", "0.5926858", "0.58715427", "0.58365506", "0.56829625", "0.5664944", "0.55299735", "0.54854554", "0.5480748", "0.54610455", "0.54581344", "0.54571784", "0.54326534", "0.5398145", "0.535...
0.7828931
0
This method parse the manifest file and return a dictionary of activities names
def q0mj(YKHO): FVp4 = list() dCYV = YKHO.get_specific_node_list('activity') for rxHD in dCYV: cgSZ = dict() KEwv = None Ghho = None for H5ew, wEf2 in rxHD.attrib.iteritems(): if '}name' in H5ew: KEwv = wEf2.split('.')[-1] break ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PObv(pWGZ):\n UHFx = BlNT.unpack(FopV, Mxrh(pWGZ, LBlu))[0]\n Rr9Z = {}\n for Vo9x in range(0, UHFx):\n u54L, QGKY, HoFx = BlNT.unpack(c2jG, Mxrh(pWGZ, o9Wb))\n u54L -= o9Wb\n mWFP = Mxrh(pWGZ, u54L)\n assert not mWFP in Rr9Z\n Rr9Z[mWFP] = (QGKY, HoFx)\n return R...
[ "0.66667044", "0.65207", "0.6505412", "0.64356816", "0.63779986", "0.63779986", "0.63068473", "0.6226707", "0.6213305", "0.6132024", "0.6062842", "0.59646606", "0.5918902", "0.59096247", "0.58729666", "0.5865666", "0.5792879", "0.5728339", "0.5694827", "0.5675231", "0.5673349...
0.66049016
1
Return a new NamedSettingsDict corresponding to the given name.
def FIMM(YKHO, mWFP): if mWFP.endswith('.sublime-settings'): YKHO.name = mWFP[:-17] else: YKHO.name = mWFP super().__init__(CREs.load_settings(YKHO.file_name))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lwlR(YKHO, mWFP):\n qaEx = Hy7s.path.join(YKHO._root, kF3y._SETTINGS_FILE % mWFP)\n if not Hy7s.path.exists(qaEx):\n return {}\n with open(qaEx) as eHNT:\n return qQXR.load(eHNT)", "def LTGN(YKHO, xA7f, mWFP):\n return xA7f", "def OP2O(YKHO, mWFP):\n return YKHO._settings[mWFP]...
[ "0.60476655", "0.5927722", "0.5643837", "0.56061804", "0.5393393", "0.5387126", "0.5294058", "0.52648467", "0.5247465", "0.5164386", "0.5162726", "0.51561636", "0.5155647", "0.5155311", "0.51550025", "0.5148", "0.51339036", "0.5116907", "0.51028895", "0.5084978", "0.5084312",...
0.46622956
57
The service name. This string is how a service is referenced and can be passed to win_service_get() to get a new WindowsService instance.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSEa(YKHO):\n return YKHO._service_name", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def _8AV(WmM4=None):\n return YPxG.get('SERVICE_NAME', default=WmM4, store=YPxG.Stores.OS).value", "def bSEa(YKHO) -...
[ "0.804075", "0.7997186", "0.7997186", "0.7809816", "0.7764362", "0.7764362", "0.7764362", "0.75507903", "0.75507903", "0.75507903", "0.75155205", "0.75155205", "0.75155205", "0.7221105", "0.71536344", "0.7042482", "0.68764967", "0.68425196", "0.6780238", "0.6741953", "0.66981...
0.0
-1
The service display name. The value is cached when this class is instantiated.
def qQNS(YKHO): return YKHO._display_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n ret...
[ "0.7973046", "0.7973046", "0.7898421", "0.7898421", "0.7898421", "0.7898421", "0.7898421", "0.7898421", "0.7898421", "0.7898421", "0.7898421", "0.7898421", "0.7898421", "0.7898421", "0.78433675", "0.7816541", "0.7787969", "0.7786229", "0.7786229", "0.7786229", "0.77599514", ...
0.775978
28
Service status as a string.
def jGRS(YKHO): return YKHO._query_status()['status']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q44o(YKHO, KAOR):\n return KAOR.get_status_string()", "def EUmI(YKHO):\n if YKHO.downloaded == 0:\n return '[Starting... ]'\n return '[%s, %s, %s]' % YKHO.get_status()", "def hqCf(YKHO):\n return u'%s' % YKHO.get_status_display()", "def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'st...
[ "0.80052143", "0.78648233", "0.7779186", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057", "0.76995057",...
0.0
-1
Whether the latest rate limit update is older than the maximum allowed age specified in the config file.
def C2yP(YKHO): if YKHO._rate_limit_status is None: YKHO.update_rate_limit_status() _WOX = GDa9.RATE_LIMIT_MAX_AGE_SEC return round(ITS7.time()) - YKHO._rate_limit_status['last_update'] > _WOX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uqEL(YKHO):\n return 120 if YKHO.realtime else 1800", "def Ka0t(YKHO):\n return YKHO.access_control_max_age", "def zlBN(YKHO):\n HFd_ = YKHO.age >= 30\n return HFd_", "def BNW8(YKHO):\n if YKHO.expires_at:\n return YKHO.expires_at - YKHO.issued_at > fCoM(days=30)\n return False",...
[ "0.69649273", "0.67634785", "0.6603106", "0.64910936", "0.64871645", "0.64871645", "0.6426875", "0.64044267", "0.63085955", "0.62778777", "0.62716424", "0.62035686", "0.6112259", "0.6053784", "0.601286", "0.60107034", "0.59689564", "0.5968755", "0.59468865", "0.5918833", "0.5...
0.6904237
1
Whether the authenticated user is currently blocked by rate limitation.
def bEjv(YKHO, rVtO=False, UQ_H=False): jGRS = YKHO.request_rate_limit_status(rVtO, UQ_H) return jGRS['remaining'] <= 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aK5O(YKHO) -> bool:\n return qe4Y.get(YKHO, 'blocked')", "def J3wX(YKHO):\n if YKHO.rate_limit_sleep:\n tO9_ = f'请求过于频繁,已被BitMEX限制,请等待{YKHO.rate_limit_sleep}秒后再试'\n YKHO.gateway.write_log(tO9_)\n return False\n elif not YKHO.rate_limit_remaining:\n tO9_ = '请求频率太高,有触发BitME...
[ "0.73950404", "0.68803215", "0.65682876", "0.6542018", "0.63924646", "0.6369933", "0.635768", "0.63198876", "0.6274557", "0.6243277", "0.6243277", "0.6243277", "0.6213224", "0.62000203", "0.62000203", "0.6193149", "0.6190315", "0.6153055", "0.61509573", "0.6131337", "0.612554...
0.7144611
1
load networks and optimizer paramters from checkpoint_path if checkpoint_path is None, use the latest created path from checkpoint_dir
def Nh79(YKHO, V1C0=None): if V1C0 is None: V1C0 = YKHO.get_latest_path() if Hy7s.path.isfile(V1C0): H5ew = 'cuda' if ht2j.cuda.is_available() else 'cpu' vauY = ht2j.load(V1C0, map_location=H5ew) YKHO.network.load_state_dict(vauY['network']) YKHO.network_target.load_state...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nh79(pmON, C3ST, K0do=None, zlJE=True):\n print('Load checkpoint from: {}'.format(pmON))\n xA7f, oyOk = AXOg(pmON)\n C3ST.load_dict(xA7f)\n if not zlJE and K0do is not None:\n if oyOk is not None:\n print('[loading] Load optimizer state from {}'.format(pmON))\n K0do.loa...
[ "0.7546553", "0.74854255", "0.74183464", "0.74064326", "0.7385257", "0.7361709", "0.7328672", "0.7298083", "0.7295632", "0.726133", "0.7203486", "0.7201959", "0.7154857", "0.7154551", "0.7151866", "0.71383786", "0.7126096", "0.70818895", "0.7055671", "0.70248204", "0.7015447"...
0.75682735
0
Return the number of tenpairs within positive integer n. >>> ten_pairs(7823952) 3 >>> ten_pairs(55055) 6 >>> ten_pairs(9641469) 6
def m4oV(exwG): def IZk_(mLGw, YRbF): if mLGw < 10: return 1 if mLGw == YRbF else 0 elif mLGw % 10 == YRbF: return 1 + IZk_(mLGw // 10, YRbF) else: return IZk_(mLGw // 10, YRbF) def h1TN(mLGw): if mLGw <= 0: return 0 retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m4oV(exwG):\n\n def ewCu(WKvO, exwG):\n if exwG == 0:\n return 0\n elif WKvO == exwG % 10:\n return 1 + ewCu(WKvO, exwG // 10)\n else:\n return ewCu(WKvO, exwG // 10)\n\n def UYnw(G1Hx):\n if G1Hx == 5:\n return round(ewCu(G1Hx, exwG...
[ "0.802376", "0.7577683", "0.66532683", "0.6543198", "0.63087475", "0.61719275", "0.61575025", "0.61553824", "0.6151965", "0.6029092", "0.59617597", "0.59297264", "0.5842583", "0.58412814", "0.5836359", "0.58314747", "0.5806533", "0.57904756", "0.57579", "0.575229", "0.5693340...
0.79459846
1
Efficient version of torch.cat that avoids a copy if there is only a single element in a list
def ACia(cRc2, tpio=0): assert isinstance(cRc2, (list, tuple)) if len(cRc2) == 1: return cRc2[0] return ht2j.cat(cRc2, tpio)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQmu(qIxc, tpio=-1):\n return [ht2j.cat(WKvO, dim=tpio) for WKvO in zip(*qIxc)]", "def ENFq(jzdc, Fg_i):\n return ht2j.cat((jzdc, Fg_i), 1)", "def v_lw(WKvO: Union[Tensor, List[Tensor]]) -> llWB:\n WKvO = WKvO if isinstance(WKvO, (list, tuple)) else [WKvO]\n WKvO = [LVAh.unsqueeze(0) if LVAh.nu...
[ "0.6819189", "0.66446334", "0.64845526", "0.64733356", "0.62033004", "0.6057658", "0.60194373", "0.596737", "0.592376", "0.59082305", "0.59036916", "0.58742404", "0.58368826", "0.5834499", "0.5820864", "0.5820569", "0.58196753", "0.5815302", "0.57852066", "0.5781512", "0.5749...
0.6803915
2
ensure TypeError raised if bad track format provided
def jREt(): A6b2 = oyIN.random.randn(50, 1) try: B6eg = Inv7.get_spiral_slice(track=A6b2) except TypeError: assert True else: assert False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zk7T(YKHO):\n YKHO.assertRaises(ValueError, bWeC._trackInfo, 'Track ID 5: telepathic (junk for the rest')", "def uefi(YKHO, pKvt):\n YKHO.metadata = {}\n VUZr = URgV.split(pKvt.strip('\\n'))\n for ZfUD in VUZr:\n G1Hx, Ty9i = ZfUD.split('=')\n YKHO.metadata[G1Hx] = Ty9i\n RTYj = ...
[ "0.7379462", "0.64195806", "0.6245985", "0.62185216", "0.60319483", "0.60155916", "0.5975581", "0.58395606", "0.5764234", "0.5748249", "0.5745362", "0.57157195", "0.5647919", "0.56259984", "0.56225663", "0.5617027", "0.56084853", "0.55884296", "0.5540927", "0.55244374", "0.55...
0.54813325
23
Return true if this battle has a prop buffing it.
def LhZc(YKHO, A6b2): Aofo = False if YKHO.battle.getInteractivePropTrackBonus() == A6b2: Aofo = True return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l_f6(YKHO, yxzR):\n assert isinstance(yxzR, es6m)\n return yxzR.value in YKHO.proto.buff_ids", "def z04E(YKHO):\n return YKHO.trainer.hasPokemon()", "def jo6v(YKHO, qBb6):\n if qBb6 > idLg:\n return False\n return bool(YKHO.pump_array[qBb6])", "def B4F4(YKHO):\n return YKHO.posit...
[ "0.631334", "0.6253141", "0.6243663", "0.62090474", "0.61014867", "0.60575736", "0.60503316", "0.5982553", "0.5932516", "0.59265876", "0.59114945", "0.5899399", "0.5898618", "0.5885047", "0.5872705", "0.5856941", "0.5842111", "0.58084947", "0.5800105", "0.57981575", "0.578234...
0.65199304
0
tgt, the target (in this case a suit) lastAtk, an attack that might have killed the 'tgt' currAtk, an attack that should flag 'tgt' killed if necessary Check to see if the suit died flag for 'lastAtk' should be cleared. This can happen if 'lastAtk' killed the suit, but 'currAtk', which happened right after 'lastAtk', i...
def z7ah(YKHO, V_1d, Zu4r, obk9): dQgj = YKHO.battle.activeSuits.index(V_1d) YZFG = YKHO.__getActualTrack(obk9) YTtA = YKHO.__getActualTrack(Zu4r) if YZFG == YTtA and Zu4r[L4UC] & 1 << dQgj and YKHO.__attackHasHit(obk9, suit=0): if YKHO.notify.getDebug(): YKHO.notify.debug('Clearing ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HIPq(YKHO, ywKX, ZKiJ=1):\n if ZKiJ:\n rYVa = YKHO.toonAtkOrder.index(ywKX) - 1\n if rYVa >= 0:\n nvgS = YKHO.toonAtkOrder[rYVa]\n qXxR = YKHO.battle.toonAttacks[nvgS]\n return YKHO.__getActualTrack(qXxR)\n else:\n return cvCG\n else:\n ...
[ "0.598517", "0.5974699", "0.5852701", "0.5785423", "0.5661788", "0.56065154", "0.5484903", "0.5473535", "0.5470061", "0.5447276", "0.5425377", "0.5413967", "0.5397414", "0.53921294", "0.5290287", "0.52901095", "0.5283121", "0.5283121", "0.5259553", "0.5240435", "0.5223457", ...
0.8009515
0
toonId, the attack to wake suits up from kbBonusReq, 1 if a knockback bonus on the suit is required for the suit to become unlured, 0 if no knockback bonus is needed Wake up all suits which have been hit by the specified toon attack
def c4BT(YKHO, vrNx, ZztN=0, Ggae=-1): if YKHO.notify.getDebug(): YKHO.notify.debug('__clearLuredSuitsByAttack') if Ggae != -1 and YKHO.__suitIsLured(a1PO.getDoId()): YKHO.__removeLured(a1PO.getDoId()) else: vV14 = YKHO.__createToonTargetList(vrNx) for a1PO in vV14: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJ5l(YKHO, vrNx, eR9Q=0, wWf7=0):\n OfqE = 0\n if not YKHO.APPLY_HEALTH_ADJUSTMENTS:\n return OfqE\n assert YKHO.battle.toonAttacks.has_key(vrNx)\n qXxR = YKHO.battle.toonAttacks[vrNx]\n A6b2 = YKHO.__getActualTrack(qXxR)\n if A6b2 != cvCG and A6b2 != hUw6 and (A6b2 != bE_U) and (A6b2 ...
[ "0.6493317", "0.62998986", "0.60501176", "0.6020419", "0.6006825", "0.5972982", "0.5825091", "0.55868196", "0.54445934", "0.5411383", "0.53446424", "0.5286513", "0.52760273", "0.5213654", "0.5170754", "0.5150872", "0.51286346", "0.51173306", "0.50354517", "0.50299513", "0.496...
0.6887736
0
toonId, the attack to wake suits up from kbBonusReq, 1 if a knockback bonus on the suit is required for the suit to become unlured, 0 if no knockback bonus is needed Wke up all suits which have been hit by the specified toon attack
def uNpm(YKHO): if YKHO.notify.getDebug(): YKHO.notify.debug('__clearLuredSuitsDelayed') for a1PO in YKHO.delayedUnlures: if YKHO.__suitIsLured(a1PO): YKHO.__removeLured(a1PO) if YKHO.notify.getDebug(): YKHO.notify.debug('Suit %d stepping back from lured s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c4BT(YKHO, vrNx, ZztN=0, Ggae=-1):\n if YKHO.notify.getDebug():\n YKHO.notify.debug('__clearLuredSuitsByAttack')\n if Ggae != -1 and YKHO.__suitIsLured(a1PO.getDoId()):\n YKHO.__removeLured(a1PO.getDoId())\n else:\n vV14 = YKHO.__createToonTargetList(vrNx)\n for a1PO in vV1...
[ "0.69368184", "0.67075634", "0.6387855", "0.61469966", "0.6144112", "0.6107178", "0.6033393", "0.5985751", "0.57929665", "0.56713283", "0.56618774", "0.55224794", "0.53417385", "0.5326139", "0.5271027", "0.5259224", "0.52427715", "0.5211329", "0.5200238", "0.5117381", "0.5060...
0.0
-1
For each toon attack in the toonAttacks list, calculate and fill in appropriate damage, accuracyBonus, and HPBonus values
def cfM4(YKHO): YKHO.notify.debug('__calculateToonAttacks()') YKHO.__clearBonuses(hp=0) IGmF = None YKHO.notify.debug('Traps: ' + str(YKHO.traps)) u4J4 = 0 for gKSi in YKHO.battle.activeSuits: u4J4 = max(u4J4, gKSi.getActualLevel()) YKHO.creditLevel = u4J4 for vrNx in YKHO.toonAt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJ5l(YKHO, vrNx, eR9Q=0, wWf7=0):\n OfqE = 0\n if not YKHO.APPLY_HEALTH_ADJUSTMENTS:\n return OfqE\n assert YKHO.battle.toonAttacks.has_key(vrNx)\n qXxR = YKHO.battle.toonAttacks[vrNx]\n A6b2 = YKHO.__getActualTrack(qXxR)\n if A6b2 != cvCG and A6b2 != hUw6 and (A6b2 != bE_U) and (A6b2 ...
[ "0.741983", "0.705281", "0.70327556", "0.6763573", "0.67306995", "0.6712482", "0.6653256", "0.66477716", "0.6587766", "0.6462124", "0.6437446", "0.63767576", "0.6308153", "0.6178584", "0.6028461", "0.59619147", "0.59122634", "0.5878387", "0.5855052", "0.5826932", "0.5790384",...
0.72567874
1
Check all lured suits and see if the lure has expired also randomly unlure suits
def lsbm(YKHO): if YKHO.notify.getDebug(): YKHO.notify.debug('__updateLureTimeouts()') YKHO.notify.debug('Lured suits: ' + str(YKHO.currentlyLuredSuits)) aMfT = [] for rJqF in YKHO.currentlyLuredSuits.keys(): YKHO.__incLuredCurrRound(rJqF) if YKHO.__luredMaxRoundsReached(rJqF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ozel(YKHO, a_pm):\n return YKHO.__suitIsLured(a_pm) and YKHO.currentlyLuredSuits[a_pm][0] > 0 and (tuKI.randint(0, 99) < YKHO.currentlyLuredSuits[a_pm][2])", "def uNpm(YKHO):\n if YKHO.notify.getDebug():\n YKHO.notify.debug('__clearLuredSuitsDelayed')\n for a1PO in YKHO.delayedUnlures:\n ...
[ "0.6164725", "0.610967", "0.59160125", "0.56781894", "0.56397796", "0.5626918", "0.56039464", "0.55455685", "0.54669297", "0.5466615", "0.5373111", "0.5373111", "0.5373111", "0.53681964", "0.53646827", "0.53471905", "0.53407794", "0.5320498", "0.5307309", "0.52980405", "0.529...
0.6932608
0
This returns true if a toon will gain credit for using this item in this particular battle, false otherwise. This is based on the credit level computed at the beginning of __calculateToonAttacks.
def luCL(YKHO, A6b2, ABDL): if A6b2 == aiXj: return 0 return ABDL < YKHO.creditLevel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iexV(YKHO) -> bool:\n return YKHO.orders and YKHO.orders[0].ability.id in (mJjM.ATTACK, mJjM.ATTACK_ATTACK, mJjM.ATTACK_ATTACKTOWARDS, mJjM.ATTACK_ATTACKBARRAGE, mJjM.SCAN_MOVE)", "def Uk_n(YKHO):\n Aofo = True\n if YKHO.side_effects['shield'] > 0:\n Aofo = False\n return Aofo", "def keE...
[ "0.666303", "0.659887", "0.65605307", "0.65568036", "0.6533572", "0.64593047", "0.6432116", "0.6280954", "0.6158226", "0.6147137", "0.6087242", "0.6061372", "0.6051988", "0.6051988", "0.60469633", "0.60105354", "0.60051966", "0.5999336", "0.59954756", "0.595975", "0.5945721",...
0.62877744
7
Turns the robot to the left and changes the state to follow.
def LFlW(fqP7): WmiQ.turn_left() AJEJ = 'follow' FUjE = 'follow line..' return (AJEJ, FUjE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BOYQ(YKHO):\n YKHO.change_x = -6\n YKHO.direction = 'L'", "def jDQv(YKHO):\n YKHO.yaw_motor.step_backward()", "def nmwV(YKHO):\n YKHO.facing_direction -= YKHO.config\n if YKHO.facing_direction < 0:\n YKHO.facing_direction += 8\n YKHO.x, YKHO.y = YKHO.compute_positions()", "def nm...
[ "0.8070071", "0.80674684", "0.8044708", "0.7854896", "0.7719246", "0.76795363", "0.7678348", "0.7661182", "0.76416725", "0.7635445", "0.76121175", "0.75864094", "0.7579163", "0.7544379", "0.75394875", "0.75333554", "0.7519345", "0.7476809", "0.74731493", "0.74007666", "0.7400...
0.7104588
34
Turns the robot to the right and changes the state to follow.
def _tIi(fqP7): WmiQ.turn_right() AJEJ = 'follow' FUjE = 'follow line..' return (AJEJ, FUjE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bjjd(YKHO):\n YKHO.yaw_motor.step_forward()", "def wzI_(YKHO):\n YKHO.facing_direction += YKHO.config\n if YKHO.facing_direction > 7:\n YKHO.facing_direction -= 8\n YKHO.x, YKHO.y = YKHO.compute_positions()", "def WaKS(YKHO):\n YKHO.change_x = 6\n YKHO.direction = 'R'", "def wzI_...
[ "0.7897611", "0.7585429", "0.7581828", "0.74656385", "0.7394653", "0.73612714", "0.7243653", "0.72246015", "0.72196674", "0.7213382", "0.72075266", "0.71376", "0.7091153", "0.70224255", "0.6953188", "0.6944379", "0.6905491", "0.6900412", "0.6883804", "0.6876622", "0.6842383",...
0.7340969
6
Compute precision for each of the provided cutoffs
def S8Nq(ZT17: torch.Tensor, cCrA: torch.Tensor, Crrw: torch.Tensor) -> ht2j.Tensor: ZT17, cCrA, Crrw = OImT(ZT17, cCrA, Crrw) bGrB, bGrB, r0f5 = taQ9(ZT17, cCrA, Crrw) gCUM = gA2O(cCrA, ZT17) for d6pt, G1Hx in enumerate(ZT17): gCUM[:, d6pt] = ht2j.sum(r0f5[:, :int(G1Hx)], dim=1) / float(G1Hx) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(Y8eF, aMgO):\n COti = CdMZ.sum(CdMZ.round(CdMZ.clip(Y8eF * aMgO, 0, 1)))\n ftZB = CdMZ.sum(CdMZ.round(CdMZ.clip(aMgO, 0, 1)))\n rhd_ = COti / (ftZB + CdMZ.epsilon())\n return rhd_", "def rhd_(yLaY, o3Uj):\n yLaY = dDv2(yLaY)\n o3Uj = dDv2(o3Uj)\n Rrc1 = gN_D(o3Uj, yLaY) / float(len(...
[ "0.7087553", "0.70232457", "0.6989542", "0.69123226", "0.6888049", "0.6888049", "0.6888049", "0.6888049", "0.6888049", "0.6888049", "0.6888049", "0.6888049", "0.6888049", "0.68858355", "0.6883725", "0.6883725", "0.6883725", "0.6883725", "0.6883725", "0.6883725", "0.68691623",...
0.61008084
74
Compute recall for each of the provided cutoffs
def qumA(ZT17: torch.Tensor, cCrA: torch.Tensor, Crrw: torch.Tensor) -> ht2j.Tensor: ZT17, cCrA, Crrw = OImT(ZT17, cCrA, Crrw) bGrB, bGrB, r0f5 = taQ9(ZT17, cCrA, Crrw) dYrk = gA2O(cCrA, ZT17) fK81 = ht2j.sum(Crrw, dim=-1) CXXl = (fK81 != 0).nonzero() UsYn = fK81[CXXl].squeeze() if CXXl.shap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO):\n COti = CdMZ.sum(CdMZ.round(CdMZ.clip(Y8eF * aMgO, 0, 1)))\n z5jX = CdMZ.sum(CdMZ.round(CdMZ.clip(Y8eF, 0, 1)))\n AOzf = COti / (z5jX + CdMZ.epsilon())\n return AOzf", "def AOzf(Y8eF, aMgO):\n HRJ_ = wXuO(Y8eF, aMgO)\n FYKK = Rw7j(Y8eF, aMgO)\n AOzf = HRJ_ / (HRJ_ + FY...
[ "0.70595795", "0.6988666", "0.6928547", "0.69014645", "0.6888264", "0.6875284", "0.6875284", "0.6875284", "0.6875284", "0.6875284", "0.6875284", "0.686552", "0.6857851", "0.6857851", "0.6857851", "0.6857851", "0.6857851", "0.6857851", "0.6857851", "0.6857851", "0.6857851", ...
0.59931934
69
Compute the sigmoid of z
def m1Hg(epBp): KCHu = 1 / (1 + oyIN.exp(-epBp)) return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(epBp):\n return mFhB(epBp)", "def m1Hg(epBp):\n return 1 / (1 + oyIN.e ** (-epBp))", "def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))", "def m1Hg(epBp):\n return 1 / (1 + tTpl ** (-epBp))", "def m1Hg(epBp):\n return 1 / (1 + oyIN.exp(-1 * epBp))", "def m1Hg(YKHO, epBp):\n ...
[ "0.9236619", "0.91155094", "0.9034886", "0.9032656", "0.8983236", "0.8982324", "0.89819604", "0.8958828", "0.8936817", "0.89279467", "0.8925133", "0.8906126", "0.8891459", "0.88882077", "0.8875157", "0.8872043", "0.88688284", "0.886221", "0.8861199", "0.8856525", "0.8849176",...
0.8420076
32
This function creates a vector of zeros of shape (dim, 1) for w and initializes b to 0.
def yw0A(tpio): yzQ0 = oyIN.zeros(shape=(tpio, 1)) Fg_i = 0 assert yzQ0.shape == (tpio, 1) assert isinstance(Fg_i, float) or isinstance(Fg_i, int) return (yzQ0, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yw0A(tpio):\n yzQ0 = oyIN.zeros((tpio, 1))\n Fg_i = 0\n return (yzQ0, Fg_i)", "def yw0A(tpio):\n yzQ0 = oyIN.zeros([tpio, 1])\n Fg_i = 0\n assert yzQ0.shape == (tpio, 1)\n assert isinstance(Fg_i, float) or isinstance(Fg_i, int)\n return (yzQ0, Fg_i)", "def yw0A(tpio):\n yzQ0 = oy...
[ "0.7801021", "0.7477936", "0.73508734", "0.7131797", "0.6638015", "0.66138625", "0.6566842", "0.6530196", "0.65089864", "0.6427708", "0.6408813", "0.638868", "0.6381563", "0.633592", "0.6272247", "0.6272247", "0.6272247", "0.62344176", "0.62181735", "0.6201392", "0.6191589", ...
0.72403485
3
Find all subclasses of a given class
def Ty1Z(Emd4): return Emd4.__subclasses__() + [Oa1e for KCHu in Emd4.__subclasses__() for Oa1e in Ty1Z(KCHu)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wlg_(Emd4):\n Hh7E = []\n for dm7U in Emd4.__subclasses__():\n Hh7E.append(dm7U)\n Hh7E.extend(Wlg_(dm7U))\n Pfad = []\n for YRbF in range(len(Hh7E)):\n KAOR = Hh7E[YRbF]()\n Pfad.append(KAOR.kind)\n return Pfad", "def sXxB(kAug):\n kAug.__subclasses__()\n Hh7...
[ "0.8172433", "0.780109", "0.7674884", "0.7580169", "0.7580169", "0.7515398", "0.74849594", "0.74814093", "0.7471728", "0.7454161", "0.74444854", "0.7415641", "0.738507", "0.72913605", "0.72748137", "0.72664064", "0.72400504", "0.71437126", "0.7143012", "0.7139842", "0.7100506...
0.69416714
31
Builds a finetuning dataloader for training or evaluating.
def KEk1(_Fei: DictConfig, b0j5: PreTrainedTokenizerBase, kWKC: int) -> pVAc: NeQs(_Fei.dataset) if b0j5.pad_token is None: b0j5.pad_token = b0j5.eos_token __n6 = None if _Fei.dataset.get('remote') is not None: __n6 = R_Cf.build_from_streaming(tokenizer=b0j5, local=_Fei.dataset.local, re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cMaC(YKHO) -> pVAc:\n pass", "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.loader.build_dataset(ppBc, YKHO.args.train_max_seq_len)\n Pa1c = YKHO.loader.build_data...
[ "0.75692147", "0.7343005", "0.69351757", "0.67658263", "0.6735763", "0.6676411", "0.666284", "0.6662131", "0.66256243", "0.65740573", "0.6562627", "0.6529676", "0.6527331", "0.64904666", "0.64832574", "0.646617", "0.6452471", "0.64508325", "0.64124936", "0.63939", "0.6370264"...
0.7688224
0
Builds a dataset from a remote object store. This function supports 'jsonl', 'csv', and 'parquet' file formats for the dataset. It will attempt to download the dataset, then once it is downloaded, convert it into HuggingFace ``datasets`` format, and then return this dataset. The function also ensures synchronicity acro...
def oU1D(_Fei: DictConfig, b0j5: PreTrainedTokenizerBase) -> uLKX[cHNR.DatasetDict, cHNR.Dataset, cHNR.IterableDatasetDict, cHNR.IterableDataset]: r4tT = ['jsonl', 'csv', 'parquet'] NAMY = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), f'downloaded_finetuning_data/{_Fei.dataset.split}') Hy7s.ma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AyYN(YKHO, EVcG, D3EF, WpAY=None, bD7m=None, j1Tx=True, wADy=None, KPoT='csv', xAU6=[], NtEF=None, jTXt=None, JKCy=None, U3hF=False, pig2=None):\n __n6 = None\n G6EG = None\n Zmbl = dict()\n if bD7m is not None:\n if not U3hF and JKCy is not None:\n if JKCy.get(P8oC.RESOURCE_URL) ...
[ "0.6575908", "0.62878567", "0.6272358", "0.6238716", "0.6044357", "0.59407175", "0.59343", "0.5923842", "0.5838245", "0.57652354", "0.5754219", "0.5706753", "0.56975925", "0.5683073", "0.56655884", "0.5655984", "0.5644313", "0.5643489", "0.56327087", "0.560831", "0.560667", ...
0.65556467
1
The Amazon Resource Name (ARN) of the parameter group.
def hMqs(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R2Qp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'group_arn')", "def wXF1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'parameter_group_name')", "def wXF1(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'parameter_group_name')", "def wXF1(YKHO) -> str:\n return qe4Y.get(Y...
[ "0.76403", "0.7284272", "0.71811014", "0.7171272", "0.68828434", "0.6817659", "0.6817659", "0.6817659", "0.6817659", "0.6729742", "0.6729742", "0.6729742", "0.6729742", "0.6729742", "0.6729742", "0.6729742", "0.6729742", "0.6729742", "0.6729742", "0.6729742", "0.6729742", "...
0.0
-1
Format an address to string, aligned to the given architecture
def cSGF(rRzo: int, JACg: Optional[cemu.arch.Architecture]=None) -> str: if JACg is None: JACg = rczC.core.context.architecture if JACg.ptrsize == 2: return f'{rRzo:#04x}' elif JACg.ptrsize == 4: return f'{rRzo:#08x}' elif JACg.ptrsize == 8: return f'{rRzo:#016x}' els...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxuZ(iJKf):\n return f'{iJKf} architecture'", "def cSGF(BWXx):\n if type(BWXx) in (tuple, list):\n return ', '.join([cSGF(Ty9i) for Ty9i in BWXx])\n mWFP, rRzo = Psfc(BWXx)\n return i7JJ((y3zO(mWFP), rRzo.encode('ascii')))", "def Z2MB(UTX6):\n print(':'.join(('%02x' % PDy8(Fg_i) for F...
[ "0.7025737", "0.6702889", "0.6427396", "0.640924", "0.63837", "0.6380178", "0.6215458", "0.5982466", "0.5982466", "0.5982466", "0.5982466", "0.5898666", "0.5898666", "0.5883418", "0.58436966", "0.581971", "0.5793493", "0.57907534", "0.57650733", "0.57145584", "0.5705159", "...
0.82092696
0
Returns a random string
def e7Tf(u54L: int) -> str: p4k2 = vIwR.ascii_letters + vIwR.digits return ''.join((tuKI.choice(p4k2) for bGrB in range(u54L)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KpEQ():\n return ''.join(QMfv(rU7A(32)).decode('utf-8'))", "def e7Tf():\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(16)))", "def r4k0(OaeV, wuRi=''):\n bo34.info('DeprecationWarning: randomstr is deprecated. Use random:str instead')\n tuKI(OaeV, 'str', wu...
[ "0.82806224", "0.8130788", "0.8050951", "0.7993263", "0.7954804", "0.7896301", "0.7890371", "0.78023106", "0.7801216", "0.7794588", "0.7778455", "0.77663887", "0.7743764", "0.7719187", "0.7717533", "0.7708271", "0.7701349", "0.7684879", "0.7663948", "0.7655649", "0.7625446", ...
0.7336862
56
Tests _retrieve gets all projects' merged audit configs.
def pbzb(YKHO): vpUO = of_R() SqXy = TMAJ.MagicMock() SqXy.scanner_iter.return_value = vpUO jAJ6 = TMAJ.MagicMock() jAJ6.model_manager = TMAJ.MagicMock() jAJ6.model_manager.get.return_value = (TMAJ.MagicMock(), SqXy) YKHO.scanner.service_config = jAJ6 jCUV = YKHO.scanner._retrieve() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sfuj():\n J2us = WsL5.request.db_api.get_all_project_record()\n return WsL5.jsonify(records=J2us)", "def Y7Yi(YKHO):\n pass", "def a27t():\n return pz3A(dp9S.get_all_projects(wk5E.scoped_session()))", "def PKRp(YKHO):\n return Fv2L.projects", "def Peqf(YKHO) -> bdIy['outputs.AuditLogConf...
[ "0.609209", "0.59704125", "0.5869138", "0.58548677", "0.5802502", "0.5746501", "0.56826156", "0.56467366", "0.5597494", "0.55794966", "0.5562809", "0.5559444", "0.55544186", "0.55544186", "0.55452454", "0.5507187", "0.5495196", "0.547791", "0.54552", "0.54000217", "0.5394479"...
0.6720298
0
Construct an LayerNorm object.
def FIMM(YKHO, KR2F, tpio=-1): super(b9m4, YKHO).__init__(KR2F, eps=1e-12) YKHO.dim = tpio
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def amAv():\n ykhl = xBlr.partial(U78l.InstanceNorm2d, affine=False, track_running_stats=False)\n return ykhl", "def hnSq(KgjX):\n return U78l.LayerNorm(KgjX, eps=_Fei.LN.EPS)", "def vUJ3(input, Mo6Q, upAO, oug5, SGf8=1e-05):\n return o8DQ.apply('LayerNorm', input.device, [input, upAO, oug5], axis=...
[ "0.6417725", "0.6159931", "0.60568386", "0.6010308", "0.5939424", "0.5925004", "0.59041643", "0.577654", "0.57746017", "0.5758614", "0.57477224", "0.5731986", "0.5727288", "0.57038754", "0.56981486", "0.5677127", "0.5673824", "0.564988", "0.56143343", "0.5547716", "0.5547716"...
0.6631577
0
Initilize duration predictor module.
def FIMM(YKHO, Ym5V, hUTg=2, VAjL=384, Ot1W=3, lo24=0.1, vgXP=1.0, dvgN='SAME', JQHs='mse'): super(TwF9, YKHO).__init__() YKHO.offset = vgXP YKHO.conv = ht2j.nn.ModuleList() YKHO.kernel_size = Ot1W YKHO.padding = dvgN YKHO.dur_loss = JQHs for or8S in range(hUTg): mNnu = Ym5V if or8S ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super().__init__()\n YKHO.dynamic = True\n YKHO.numBins = None\n YKHO.targets = None", "def FIMM(YKHO, **B2fa):\n YKHO.is_initialized = False\n YKHO.delta = 1", "def FIMM(Ro_8, *, WbTE: Optional[pulumi.Input[str]]=None):\n if WbTE is not None:\n qe4Y.set(Ro_8, 'dur...
[ "0.69967747", "0.6116887", "0.6071434", "0.606084", "0.60207707", "0.60128325", "0.5994014", "0.5994014", "0.59522986", "0.59372646", "0.593415", "0.5924272", "0.5914327", "0.5914129", "0.5904202", "0.58114356", "0.58114356", "0.57932585", "0.5792656", "0.57591134", "0.575395...
0.6040176
4
Creates a URL safe slug automatically when a new a playlist is created.
def xkzz(YKHO, *qIxc, **B2fa): if not YKHO.pk: YKHO.slug = eIIt(YKHO.playlist_name, allow_unicode=True) return super(gfdD, YKHO).save(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AGH_(YKHO):\n s5ru = eIIt(YKHO.title)\n Tr7p = s5ru\n exwG = 1\n while wHLq.objects.filter(slug=Tr7p).exists():\n Tr7p = '{}-{}'.format(s5ru, exwG)\n exwG += 1\n return Tr7p", "def AGH_(wEf2):\n s5ru = eIIt(XKrx(wEf2))\n for KCHu in gCuF.DJCAT_SLUG_RESERVED:\n s5ru =...
[ "0.72830945", "0.69432545", "0.6900598", "0.68737316", "0.67953086", "0.6793334", "0.6668365", "0.6601068", "0.6591085", "0.65859586", "0.65716815", "0.6556059", "0.6553092", "0.6553092", "0.65325284", "0.64253896", "0.64214975", "0.64103854", "0.63411963", "0.63260573", "0.6...
0.7397025
0
Take rule from configuration value
def hvRM(YKHO, yRKV=None): return {'roleName': 'hasici', 'roleTitle': 'Soptici'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n if eD8c == k0nO:\n return k0nO", "def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n if eD8c == k0nO:\n return k0nO", "def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n if eD8c == k0nO:\n return k0nO...
[ "0.71305686", "0.71305686", "0.71305686", "0.68413407", "0.68413407", "0.68413407", "0.65716726", "0.65716726", "0.65716726", "0.65716726", "0.65716726", "0.65716726", "0.65716726", "0.6102921", "0.6093363", "0.60735893", "0.6071056", "0.5991717", "0.5861347", "0.5851954", "0...
0.0
-1
Take rule from configuration value
def aQ1c(YKHO): return [YKHO.getRole(), {'roleName': 'policajti', 'roleTitle': 'Svestky'}]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n if eD8c == k0nO:\n return k0nO", "def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n if eD8c == k0nO:\n return k0nO", "def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n if eD8c == k0nO:\n return k0nO...
[ "0.7129508", "0.7129508", "0.7129508", "0.68408585", "0.68408585", "0.68408585", "0.657088", "0.657088", "0.657088", "0.657088", "0.657088", "0.657088", "0.657088", "0.6101231", "0.60920256", "0.6072495", "0.60712457", "0.5991088", "0.5859912", "0.58492255", "0.58492255", "...
0.0
-1
evaluation function takes in the current and proposed successor GameStates(from pacman.py) and returns a number, where higher numbers are better.
def Q2nq(YKHO, rfNN, XeOP): omyo = rfNN.generatePacmanSuccessor(XeOP) hqYL = omyo.getPacmanPosition() d9mM = omyo.getFood().asList() eqBn = omyo.getGhostStates() eqBn = omyo.getGhostStates() BWXx = 0 if XeOP == o5oX.STOP: BWXx -= 5 qJY2 = [] for pvZU in d9mM: qJY2.app...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ybSK(rfNN):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n Ylbp = rfNN.getScore()\n gHpS = rfNN.getFood().asList()\n CFnn = rfNN.getPacmanPosition()\n bIZs = rfNN.getGhostStates()\n ZZwS = [zfrT.scaredTimer for zfrT in bIZs]\n wDoP = rfNN.getCapsules()\n SF7m = min([q0Tb(gXZ2.getPosition(), CFn...
[ "0.76831955", "0.76502645", "0.7541777", "0.75395733", "0.7535079", "0.751071", "0.74914724", "0.7477093", "0.744562", "0.7441441", "0.74404657", "0.74390864", "0.7428105", "0.740881", "0.7382483", "0.7374679", "0.7354751", "0.73455083", "0.73454976", "0.7333668", "0.73101693...
0.7271959
26
A decorator to add a static variable to a function. Inside the decorated function, the variable can be accessed like `funcname.foovar`.
def wXDg(M_u8: str, lJf5: Any) -> YrBT[[YrBT], YrBT]: def mrMx(m2Zb): setattr(m2Zb, M_u8, lJf5) return m2Zb return mrMx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Un1o(mZ1z, BWXx):\n\n def AuU4(JfyU):\n setattr(JfyU, mZ1z, BWXx)\n return JfyU\n return AuU4", "def Un1o(**B2fa):\n\n def AuU4(JfyU):\n for G1Hx in B2fa:\n setattr(JfyU, G1Hx, B2fa[G1Hx])\n return JfyU\n return AuU4", "def MKQJ(**B2fa):\n\n def AuU4(Jf...
[ "0.82796407", "0.7524129", "0.72036564", "0.6951949", "0.5921421", "0.57414013", "0.56274104", "0.56274104", "0.5341875", "0.52864546", "0.51409584", "0.5129167", "0.5083505", "0.505809", "0.50511575", "0.49889112", "0.49889112", "0.49512202", "0.49435556", "0.4941172", "0.49...
0.7436739
2
Returns True if the host in the web address starts with
def DISu() -> bool: if not o5w1(): return True KcEq = QePW.headers.get('Host', '') return KcEq.startswith(('localhost:', '127.0.0.1:', '0.0.0.0:'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ue_N(Emd4, bD7m, **B2fa):\n return bD7m.scheme.startswith('http')", "def hHld(YKHO, bD7m):\n lpha = KVWQ.urlsplit(bD7m)\n return YKHO.host == lpha.hostname", "def YpAj(YKHO, KcEq: str, KCuY: bool=False) -> bool:\n return YKHO.url and YKHO.site_host and (YKHO.site_host in KcEq) and (YKHO.data_ur...
[ "0.7012713", "0.6916655", "0.68736744", "0.67831594", "0.67087", "0.665796", "0.6628359", "0.65655935", "0.65627193", "0.6527216", "0.6496239", "0.64690983", "0.64210063", "0.635671", "0.63421917", "0.63380384", "0.63281035", "0.63260233", "0.6322511", "0.6272828", "0.6264701...
0.6123011
33
Get the api key that belongs to the current user If running on localhost, api key is obtained from the environment variable MP_API_KEY
def Urj_(R72Z=None) -> str | None: if not R72Z: R72Z = NQFU() if DISu(): return fvfo.API_KEY elif cmCT(R72Z): return R72Z['X-Consumer-Custom-Id'] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rLF4(YKHO):\n bD7m = '{0}/{1}'.format(YKHO.get_url(), 'api_key')\n return (Xqgu.Request('GET', bD7m), gpan.parse_json)", "def p7gc(YKHO):\n YKHO.api.apikey = YKHO.api.action.user_show(id=YKHO.username)['apikey']", "def p7gc():\n if not Hy7s.getenv('SPOON_API_KEY'):\n raise RuntimeError('...
[ "0.8213145", "0.81916946", "0.8109363", "0.7861162", "0.77677387", "0.7746433", "0.77437836", "0.7730946", "0.7727143", "0.7726606", "0.77076614", "0.77076614", "0.77076614", "0.77076614", "0.76982087", "0.76982087", "0.767847", "0.76398945", "0.760045", "0.7577182", "0.75269...
0.71091044
31
Get an instance of the MPContribsClient that will work in either production or a dev environment. Client uses MPCONTRIBS_API_HOST by default.
def ggQ3(): from mpcontribs.client import Client MOPg = NQFU() if DISu(): return Client(apikey=Urj_()) else: return Client(headers=MOPg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxbw(BGoJ: Optional[dict]=None) -> 'PrefectClient':\n OaeV = nlbW.context.get_settings_context()\n nNXP = wluw.value()\n if not nNXP:\n from prefect.server.api.server import create_app\n nNXP = create_app(OaeV.settings, ephemeral=True)\n return hhYu(nNXP, api_key=d7Q0.value(), httpx_s...
[ "0.6298783", "0.5332566", "0.51578116", "0.5099357", "0.5095646", "0.5039207", "0.50320953", "0.50247", "0.50153434", "0.5012056", "0.49813688", "0.49738854", "0.4938187", "0.49197465", "0.4894062", "0.48849285", "0.48849285", "0.48834327", "0.48825872", "0.48752582", "0.4857...
0.72025865
0
Returns a nicely styled DataTable with sensible defaults for reuse.
def d8z_(jQ3Z=None, wBxx=True, ZLJ_=None, AeBl=None, **B2fa): ABPL = dict(sort_action='native', row_selectable='single', style_as_list_view=True, style_cell={'fontFamily': 'Helvetica Neue', 'textAlign': 'left', 'whitespace': 'normal'}) if wBxx: ABPL['virtualization'] = True ABPL['filter_action']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BdN0(f5cH: Optional[List[Any]]=None, nPrm: Optional[List[List[Any]]]=None, _Cnz: Text='default', mIJV: Text=None, begE: Text='stdout', bOBl=None) -> sz1P:\n if bOBl is not None:\n f5cH = list(bOBl.columns)\n nPrm = bOBl.values.tolist()\n return sz1P(f5cH or [], nPrm or [], _Cnz, mIJV, begE)...
[ "0.6891989", "0.64900285", "0.6405003", "0.61437035", "0.60903734", "0.6069421", "0.59286547", "0.58621913", "0.5832146", "0.5831438", "0.5786531", "0.5778875", "0.57785875", "0.5736635", "0.5735365", "0.5717534", "0.5689248", "0.56869274", "0.56751406", "0.5668884", "0.56462...
0.6825049
1
Returns a string for use in mpc.Markdown() to render a matrix or vector.
def Vl9F(SppC, M_u8=None, phJ9=4): if phJ9: SppC = oyIN.round(SppC, decimals=phJ9) + 0 else: SppC = oyIN.array(SppC) WBPg = '$$\n' if M_u8: WBPg += f'{M_u8} = \\begin{{bmatrix}}\n' else: WBPg += '\\begin{bmatrix}\n' mRnc = '\\end{bmatrix}\n$$' jcvM = '' as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return YKHO.matrix and '\\n'.join(['|%s|' % KCHu for KCHu in [' '.join(['%-6.3f' % tTpl for tTpl in yzQ0]) for yzQ0 in YKHO.matrix]]) or '<pusta macierz>'", "def Ne1c(YKHO):\n if len(YKHO.shape) > 2:\n raise ValueError('bmatrix can at most display two dimensions')\n\n def FMLJ(W...
[ "0.7383598", "0.7108758", "0.6749569", "0.6715628", "0.67057943", "0.6644011", "0.65047073", "0.6478859", "0.6476085", "0.64556503", "0.64111507", "0.63904965", "0.63793623", "0.63732594", "0.6336498", "0.6334333", "0.62667745", "0.6257158", "0.62316585", "0.62299895", "0.621...
0.6610932
6
Provide tile location (upper left corner of tile) in nanometres.
def _pUi(YKHO, G0g2, VfpF): Jw7X, eUWA = YKHO.get_tile_coordinates_d(G0g2, VfpF) igyL = YKHO.get_tile_width_d(G0g2) yIpg = YKHO.get_tile_height_d(G0g2) return (int((Jw7X - igyL / 2) * 1000), int((eUWA - yIpg / 2) * 1000))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DgzE(YKHO):\n WKvO, LVAh = YKHO.lonlat2xy(YKHO.longitude, YKHO.latitude)\n return LVAh", "def BuiI(YKHO):\n if YKHO.rect.x == 0:\n Y8lG = 0\n elif YKHO.rect.x % 32 == 0:\n Y8lG = YKHO.rect.x / 32\n else:\n Y8lG = 0\n if YKHO.rect.y == 0:\n u41L = 0\n elif YKHO...
[ "0.69824326", "0.6949951", "0.6506156", "0.6442526", "0.63840777", "0.63380224", "0.63071394", "0.630412", "0.6281366", "0.6255272", "0.6230896", "0.6218979", "0.6199323", "0.6195288", "0.61910176", "0.6180585", "0.61670285", "0.6161853", "0.6139104", "0.61352193", "0.6107923...
0.6316637
6
Performs forward pass of the input. Here an input tensor x is transformed through several layer transformations.
def KVH6(YKHO, WKvO): for vC9B in range(len(YKHO.layers)): if vC9B == 0: epBp = YKHO.layers[vC9B].forward(WKvO) else: epBp = YKHO.layers[vC9B].forward(jzdc) jzdc = YKHO.activations[vC9B].forward(epBp) yvT9 = jzdc return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, dqxq):\n for gEmA in YKHO.layers:\n BF4L = gEmA.forward(dqxq)\n dqxq = BF4L\n YKHO.temp = dqxq\n return BF4L", "def KVH6(YKHO, input=None):\n if input is not None and YKHO.result is None:\n YKHO.result = YKHO.act(input)\n elif YKHO.result is None:\n TZfR ...
[ "0.8100585", "0.78592265", "0.781218", "0.780231", "0.7764269", "0.77563226", "0.7741146", "0.77348596", "0.77293", "0.7700638", "0.76963764", "0.76776093", "0.76748264", "0.76373404", "0.76264703", "0.7609787", "0.7593594", "0.7579113", "0.75505877", "0.7541774", "0.754019",...
0.74987984
24
Creates a TensorFlow variable using given initial value. Note that this function saves the created variable to `self._tls._embed_variables`.
def R_An(YKHO, mWFP, lJf5): if mWFP not in YKHO._tls._embed_variables: sxSY = ZylS.Variable(lJf5, name=mWFP + str(T6FA.get_ident()), shape=(None, None), dtype=ZylS.float32, trainable=False) YKHO._tls._embed_variables[mWFP] = sxSY else: sxSY = YKHO._tls._embed_variables[mWFP] sxSY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YQk0(lJf5: np.ndarray, *qIxc, **B2fa):\n assert isinstance(lJf5, oyIN.ndarray)\n VNqG = ZylS.zeros(lJf5.shape, lJf5.dtype)\n SRYB = ZylS.Variable(VNqG, *qIxc, **B2fa)\n return SRYB", "def pizJ(lJf5, fz2t=True, mWFP=None, Ic0L=None):\n return jj4W.variable(lJf5, trainable=False, collections=[IP...
[ "0.74373466", "0.6830368", "0.6520404", "0.6321912", "0.62276006", "0.6206064", "0.6206064", "0.616734", "0.60653645", "0.6058866", "0.6052092", "0.60213", "0.600679", "0.59797984", "0.5969599", "0.5966226", "0.59491664", "0.591467", "0.58837134", "0.5860128", "0.58585757", ...
0.8361567
0
Get the variable for the specified ElasticDL embedding layer.
def Cuwe(YKHO, lzjZ): return YKHO._tls._embed_variables.get(lzjZ, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n3S6(SRYB):\n if isinstance(SRYB, str):\n return SRYB\n return None", "def ocQg(WbAn, jXxl, q4ee):\n wjQX = ZylS.Variable(ZylS.random_uniform((jXxl, q4ee), -1, 1))\n Q1PJ = ZylS.nn.embedding_lookup(wjQX, WbAn)\n return Q1PJ", "def LeTJ(YKHO, M_u8):\n with YKHO._graph.as_default():\...
[ "0.6743214", "0.63091016", "0.6283216", "0.6108311", "0.6108311", "0.6108311", "0.6084474", "0.60842997", "0.59954244", "0.5964092", "0.59291476", "0.59087086", "0.5860784", "0.5839625", "0.5818966", "0.58174425", "0.57583433", "0.5741345", "0.57331795", "0.573289", "0.573247...
0.8319732
0
Clear the slots and weights in the optimizer according to Embedding layers.
def zWBU(YKHO): for lzjZ, FLFa in YKHO._tls._slot_variables.items(): sxSY = YKHO._get_embedding_variable(lzjZ) Cgln = fQHB(sxSY) if Cgln in YKHO._opt._slots: del YKHO._opt._slots[Cgln] for bGrB, SRYB in FLFa.items(): PM6A = 0 while PM6A < len(YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LFbZ(YKHO):\n YKHO.prompt_embeddings.weight.fill_(0.0)", "def SiRx(YKHO):\n YKHO._weights.clear()", "def Q0Ko(YKHO):\n bo34.info('===== Initialize %s =====' % YKHO.__class__.__name__)\n U78l.init.normal_(YKHO.embed.weight, mean=0.0, std=YKHO.d_model ** (-0.5))\n U78l.init.constant_(YKHO.embe...
[ "0.6725236", "0.6724402", "0.67240566", "0.6673172", "0.6622231", "0.6536576", "0.6521717", "0.65087134", "0.6484279", "0.64576614", "0.64538854", "0.6402418", "0.6371955", "0.6306975", "0.62614024", "0.6255943", "0.6226978", "0.62221205", "0.62213993", "0.61776865", "0.61776...
0.7387308
0
Gets the median of a list of values
def KFgI(hkxX): lKXT = int(len(hkxX) / 2) if len(hkxX) % 2 == 0: BjRM = (hkxX[lKXT - 1] + hkxX[lKXT]) / 2 else: BjRM = hkxX[lKXT] return BjRM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qPfM(qQiX):\n return oyIN.median(qQiX)", "def BjRM(Ty9i: List[float]) -> float:\n return cjmi(Ty9i) if len(Ty9i) % 2 == 0 else tchW(Ty9i)", "def BjRM(hkxX):\n lKXT = int(len(hkxX) / 2)\n if len(hkxX) % 2 == 0:\n BjRM = (hkxX[lKXT - 1] + hkxX[lKXT]) / 2\n else:\n BjRM = hkxX[lKX...
[ "0.85748947", "0.83829796", "0.8311173", "0.82589555", "0.8222346", "0.81842107", "0.81027406", "0.8075546", "0.8068739", "0.79999703", "0.7880431", "0.78548086", "0.78201586", "0.7791548", "0.7739428", "0.7699509", "0.7699283", "0.7688011", "0.7679814", "0.7627588", "0.75781...
0.81193554
6
MillerRabin primality test for n < 2 64
def T1qg(exwG): LyE1 = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37] if exwG in LyE1: return True Csk6 = exwG - 1 KCHu = 0 while not Csk6 & 1: Csk6 = Csk6 >> 1 KCHu += 1 for jzdc in LyE1: for Mkmy in range(0, KCHu): if jzdc ** (Csk6 * (1 << Mkmy)) % exw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fq8_(exwG):\n assert exwG >= 1\n if exwG == 2:\n return True\n if exwG <= 1 or not exwG & 1:\n return False\n rPed = [2, 3, 5, 7, 11, 13, 17, 19, 23]\n Csk6 = exwG - 1\n KCHu = 0\n while not Csk6 & 1:\n Csk6 >>= 1\n KCHu += 1\n for ffYW in rPed:\n if f...
[ "0.8272356", "0.8147638", "0.8147638", "0.78105867", "0.77271765", "0.76982826", "0.76699215", "0.7629885", "0.7616009", "0.7396357", "0.73662406", "0.7359161", "0.7331089", "0.73296785", "0.726059", "0.7253802", "0.71390456", "0.70460534", "0.6992279", "0.6938401", "0.690631...
0.6796784
31
Get a prime number larger than n Not guaranteed to be the next prime
def dZ_g(exwG): Aofo = exwG + (1 if exwG % 2 == 0 else 2) while not T1qg(Aofo): Aofo += 2 return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UtWo(exwG):\n YRbF = exwG + 1\n while not T1qg(YRbF):\n YRbF += 1\n return YRbF", "def XtR7(exwG):\n return next(uOgj(DzI6(), exwG - 1, None), None)", "def T1qg(exwG):\n return kU5Q(exwG)", "def XtR7(exwG: int) -> int:\n YdtA = 0\n nSWf = 0\n while nSWf <= exwG:\n Yd...
[ "0.82137835", "0.8201824", "0.8157683", "0.80231524", "0.79650825", "0.7892381", "0.7852389", "0.78492236", "0.779757", "0.77452135", "0.77441525", "0.7719324", "0.77051294", "0.76462847", "0.76133084", "0.75309426", "0.74999046", "0.74076384", "0.73986924", "0.73933405", "0....
0.83887327
0
Constructeur to set the parameters of the density.
def FIMM(YKHO, WAr3, kV90, UqYS, CzNp=1e-08, LtG6=100): pqrA.__init__(YKHO, EPS=CzNp, discretization=LtG6) YKHO.__alpha0 = WAr3 YKHO.__alpha1 = kV90 YKHO.__beta = UqYS YKHO.__eta = 3.0 / 8.0 * (1.0 - YKHO.__alpha0 - YKHO.__alpha1 - 2.0 * YKHO.__beta) if YKHO.__eta < 0.0: YKHO.__eta = 0.0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ykIn(YKHO, q7In, NXpY=None):\n YKHO.density.loc = YKHO.mean(q7In)\n if NXpY is not None:\n YKHO.density.scale = NXpY", "def InLe(YKHO, InLe):\n YKHO._density = InLe", "def NFIB(YKHO, q7In, NXpY):\n YKHO.density = WGTe(YKHO.mean(q7In), NXpY)", "def pTTm(YKHO, RsFe):\n YKHO.nNodes = 2...
[ "0.6944613", "0.69130623", "0.6854342", "0.6680744", "0.660867", "0.65039307", "0.6495796", "0.64872825", "0.6480063", "0.6416365", "0.6389142", "0.6388913", "0.6377092", "0.63707685", "0.63665646", "0.6358948", "0.6357998", "0.63351107", "0.63284504", "0.6328399", "0.6316728...
0.0
-1
Return the joint proba at r1, r2.
def mxl6(YKHO, J1b4, CYjz): if J1b4 == 0.0: if CYjz == 0.0: return YKHO.__alpha0 elif CYjz == 1.0: return YKHO.__beta else: return YKHO.__eta * (1.0 - CYjz) if J1b4 == 1.0: if CYjz == 0.0: return YKHO.__beta elif CYjz == 1.0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L8Gd(YKHO):\n return ((1, 4), (2, 5), (3, 6), (14, 11), (15, 12), (16, 13))", "def FdHi(YKHO, EcVT):\n return YKHO.weights * YKHO._bernoulli(EcVT)", "def VQvZ(YKHO, J1b4, CYjz):\n if J1b4 == 0.0:\n if CYjz == 0.0:\n return YKHO.__alpha0 / YKHO.__D0\n elif CYjz == 1.0:\n ...
[ "0.6219277", "0.61670285", "0.61366516", "0.6005037", "0.5808568", "0.56800926", "0.5561546", "0.55009794", "0.54992795", "0.5447199", "0.5431401", "0.54246116", "0.54233605", "0.54017335", "0.5359065", "0.5324804", "0.5323142", "0.52881074", "0.52518237", "0.5247377", "0.524...
0.65843827
0
Return the marginal proba at r.
def Nlm3(YKHO, Mkmy): if Mkmy == 0.0: return YKHO.__alpha0 + YKHO.__beta + YKHO.__eta / 2.0 if Mkmy == 1.0: return YKHO.__alpha1 + YKHO.__beta + YKHO.__eta / 2.0 return YKHO.__eta * (3.0 / 2.0 + Mkmy - Mkmy * Mkmy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t6Sc(YKHO):\n r8hN = oyIN.zeros(len(YKHO.domain))\n for z_ak in YKHO.neighbors:\n r8hN += YKHO.received[z_ak]\n return oyIN.exp(NkkI(r8hN))", "def gdV8(YKHO, WKvO, Es0b):\n return YKHO._distribution.marginal(WKvO, Es0b)", "def s_py(YKHO):\n YKHO.marginal_ray = kbav()\n r8hN = YKHO....
[ "0.6157373", "0.6125072", "0.6066535", "0.6058912", "0.5944578", "0.59029824", "0.5808245", "0.57462287", "0.5690898", "0.5666928", "0.5655451", "0.5595766", "0.55798787", "0.55728155", "0.55728155", "0.5522183", "0.55125934", "0.5512489", "0.5484048", "0.54618627", "0.544234...
0.68406016
0
generate a random string of alpha + spaces equal to length
def C6M2(u54L): Cwt5 = map(chr, range(97, 123)) Cwt5.append(' ') Aofo = '' for WKvO in range(u54L): Aofo += Cwt5[tuKI.randrange(0, 27)] return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TqfU(u54L):\n return ''.join([CbOq() for bGrB in range(0, u54L)])", "def Jv62(u54L=8, KoG3=vIwR.ascii_letters + vIwR.digits):\n return ''.join((tuKI.choice(KoG3) for WKvO in range(u54L)))", "def BWvy(u54L=25):\n return ''.join((tuKI.choice(vIwR.ascii_letters) for YRbF in range(25)))", "def BWvy(...
[ "0.8442623", "0.83673245", "0.82823306", "0.82814884", "0.82244056", "0.82085603", "0.82072", "0.81841785", "0.81750053", "0.80985534", "0.80796605", "0.80747044", "0.80681646", "0.80655473", "0.8038588", "0.8022799", "0.8020795", "0.8008102", "0.8005021", "0.7993443", "0.798...
0.85462075
0
Reset the drift detector. Resets the DDM Drift detector. This should be called after `detect()` returns True to reset internal parameters.
def SiRx(YKHO): YKHO.i = 0 YKHO.pi = 1.0 YKHO.si = 0.0 YKHO.pi_min = float('inf') YKHO.si_min = float('inf')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Flko(YKHO, Ztxs=False):\n if Ztxs:\n YKHO.D = YKHO.DInit\n YKHO.NAcc = 0.0\n YKHO.NAtt = 0.0", "def Vonk(YKHO):\n YKHO.mpr121._reset()", "def SiRx(YKHO):\n YKHO.num_frames = 0\n YKHO.nbin = YKHO.nfft // 2 + 1\n if YKHO.D == 1:\n YKHO.fft_in_buffer[:] = 0.0\n YKHO.X...
[ "0.68778163", "0.65773445", "0.6443813", "0.62938493", "0.61762637", "0.6095777", "0.604903", "0.60315496", "0.60047203", "0.592436", "0.5831448", "0.5789184", "0.5780796", "0.5773765", "0.5739929", "0.5707811", "0.56759995", "0.56634724", "0.56376356", "0.5634935", "0.562867...
0.0
-1
Applies word dropout to an input Variable. Dropout isn't constant across batch examples. This is only to be used to drop input symbols (i.e. before the embedding layer)
def r6wY(pKvt, pan_, XP5J=0.0, Y9ns=True, k7AY=()): if not Y9ns or XP5J == 0: return pKvt ZHfW = q5WX(pKvt.data, XP5J, reserved_codes=k7AY) return pKvt.masked_fill(iQnE(ZHfW), pan_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, F6PT, BMlT):\n with ZylS.variable_scope(YKHO.scope, reuse=ZylS.AUTO_REUSE):\n hwse = BMlT\n fNSR = ZylS.squeeze(YKHO.embedding_layer(F6PT), axis=-2)\n Tsgu, IIv2 = YKHO.dropout_layer(fNSR, hwse)\n O1lg = Tsgu\n _62k = IIv2\n return (O1lg, _62k)", "def r6wY(...
[ "0.7276263", "0.720548", "0.6847571", "0.6613133", "0.6469184", "0.64488655", "0.6399754", "0.6389784", "0.625298", "0.5954456", "0.59279144", "0.59155816", "0.5870367", "0.5782119", "0.5735164", "0.5715335", "0.5670086", "0.55773854", "0.55761707", "0.5572221", "0.55694693",...
0.73293495
0
Instantiate an Embedding module from a fitted Dict.
def jG8h(Emd4, Csk6, m_Zy, XP5J=0.0, h3Q2=False, wzH_=5000, bMm2=None, **B2fa): if XP5J > 0.0 and Csk6.get_unk() is None: raise ValueError('Word dropout requires unknown token') p4_k = Emd4(len(Csk6), m_Zy, padding_idx=Csk6.get_pad(), _secret=DilS._SECRET, **B2fa) p4_k.d, p4_k.p, p4_k.target_code = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n m_De = cmPJ.get('enableWormOnExternalTarget')\n gnKP = cmPJ.get('policyType')\n GClr = cmPJ.get('retentionSecs')\n DpZH = cmPJ.get('version')\n return Emd4(m_De, gnKP, GClr, DpZH)", "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n ...
[ "0.61104006", "0.6067204", "0.6003864", "0.5935257", "0.5893066", "0.5861109", "0.5850618", "0.58429676", "0.5842839", "0.5830996", "0.5807956", "0.5787398", "0.5763948", "0.5730169", "0.5719661", "0.5708326", "0.57009053", "0.5690724", "0.5651717", "0.5631666", "0.56305486",...
0.620632
0
Load embeddings from a weight matrix with words `words` as rows.
def RqWc(YKHO, upAO, V22M): if isinstance(upAO, list): upAO = ht2j.Tensor(upAO).float() if isinstance(upAO, oyIN.ndarray): upAO = ht2j.from_numpy(upAO).float() if upAO.size(1) != YKHO.embedding_dim: raise ValueError('Mismatched embedding dim {} for model with dim {}'.format(upAO.size...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w6Hl(YKHO, _mSQ):\n assert YKHO.model is not None, 'Cannot assign weights, apply build() before trying to loading embedding weights '\n ZspY = YKHO.model.get_layer(name='word_embedding')\n assert ZspY.output_dim == _mSQ.shape[1], 'embedding vectors shape mismatch'\n ZspY.set_weights([_mSQ])", "de...
[ "0.7391219", "0.7092202", "0.70468843", "0.70298856", "0.6873526", "0.67775095", "0.6692423", "0.6606134", "0.6536549", "0.6517945", "0.6499557", "0.6477148", "0.6411822", "0.64050263", "0.63866097", "0.6371233", "0.6343471", "0.63424593", "0.633308", "0.6312807", "0.6295333"...
0.7301505
1
calculate the parity (sum(it)%2) of the iterable
def tUub(WhY1): return sum(WhY1) % 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tUub(exwG):\n return sum((int(WKvO) for WKvO in bin(exwG)[2:])) % 2", "def tUub(XP5J):\n eHNT = dict(zip(sorted(XP5J), XP5J))\n PwWw, T0dk = (set(), 0)\n for WKvO in XP5J:\n if WKvO in PwWw:\n continue\n Z9rn, vC9B = (WKvO, 0)\n while Z9rn not in PwWw:\n ...
[ "0.78136903", "0.7612799", "0.71205205", "0.6951747", "0.69468606", "0.69354695", "0.6888333", "0.6780914", "0.6501096", "0.6481943", "0.6466265", "0.63605976", "0.63197446", "0.6310321", "0.6281249", "0.6269732", "0.6263378", "0.6141122", "0.6112712", "0.61013824", "0.608394...
0.91763633
0
Apply action to environment, then return observation and reward.
def YPaw(YKHO, XeOP): YKHO.steps += 1 YKHO.robots[0].setAction(XeOP) for YRbF in range(YKHO.num_agents): if YRbF != 0 and YKHO.policies[YRbF:YRbF + 1]: YKHO.robots[YRbF].setAction(YKHO.policies[YRbF](YKHO.robots[YRbF].getObservation())) vwlo = [0.0 for bGrB in range(YKHO.num_agents)]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gb37(YKHO, XeOP):\n return YKHO.__environment.step(XeOP)", "def ZP5O(YKHO):\n QTBn = jth9.copy(YKHO.env.get_state())\n XeOP = YKHO.agent.get_action(QTBn)\n vOGg = 0.0\n if YKHO.env.check_terminal() is False:\n SBHY = XlZM(jth9.copy(QTBn), jth9.copy(XeOP))\n YKHO.env.update(XeOP)\...
[ "0.77125806", "0.7108414", "0.7067796", "0.6913966", "0.68721795", "0.6863198", "0.6860378", "0.68041855", "0.6801775", "0.6743534", "0.67350036", "0.67293054", "0.67291236", "0.6707606", "0.6702209", "0.6695293", "0.66895103", "0.66783965", "0.6662368", "0.6662368", "0.66623...
0.61794937
64
returns True when the values of ndarray `a` are small.
def Oo80(jzdc, RA_F=1e-30): return oyIN.average(jzdc * jzdc) <= RA_F
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JdM7(FGW3):\n return abs(FGW3) < _hZ2", "def qY_y(jzdc):\n return oyIN.sum(MF4b(MF4b(jzdc).shape) > 1) <= 1", "def PFXX(jzdc):\n try:\n ROpF = jzdc.shape\n return len(ROpF) >= 1\n except AttributeError:\n return False", "def E0CO(YKHO):\n YKHO.assertTrue(all((ATUZ < 10...
[ "0.66593975", "0.66150355", "0.648106", "0.6176655", "0.6168032", "0.6123765", "0.60556716", "0.59781396", "0.5901164", "0.5811848", "0.58041716", "0.5748773", "0.5708647", "0.5695639", "0.5548588", "0.5494029", "0.5474237", "0.5472861", "0.54479855", "0.54377204", "0.5431104...
0.74111456
0
Initialize the weigths according to the type of activation function.
def xBDt(YKHO): bnkX = (2 / (YKHO.num_input + YKHO.num_output)) ** 0.5 if 'relu' == YKHO.act_function: pkvj = bnkX * 2 ** 0.5 elif 'sigmoid' == YKHO.act_function: pkvj = bnkX else: pkvj = bnkX YKHO.W = oyIN.random.normal(0, pkvj, (YKHO.num_input, YKHO.num_output)) YKHO.b ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n YKHO.transformer.init_weights()\n if YKHO.loss_cls.use_sigmoid:\n R9Vf = FQWJ(0.01)\n for r8hN in YKHO.cls_branches:\n U78l.init.constant_(r8hN[-1].bias, R9Vf)", "def PAGg(YKHO):\n\n def ky7u(xqoZ):\n \"\"\"\n Initialises weights of a given pa...
[ "0.7108541", "0.7098255", "0.7088407", "0.70576185", "0.7041271", "0.69761795", "0.6954065", "0.6946985", "0.68991065", "0.68937653", "0.68890935", "0.6874208", "0.6831622", "0.6829417", "0.6829417", "0.6829417", "0.6824331", "0.6802368", "0.6792842", "0.6770777", "0.6762865"...
0.66079843
31
The identity block is the block that has no conv layer at shortcut. Arguments
def aP6R(FRUf, Ot1W, KUnM, EtM5, XkN1): DZWo, MXwb, wMAF = KUnM if nMvt.image_data_format() == 'channels_last': pGaa = 3 else: pGaa = 1 RmTP = 'res' + str(EtM5) + XkN1 + '_branch' lPXw = 'bn' + str(EtM5) + XkN1 + '_branch' WKvO = yHwh(DZWo, (1, 1), name=RmTP + '2a')(FRUf) WKv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ...
[ "0.7128075", "0.7022187", "0.69112873", "0.6884249", "0.6850563", "0.6846568", "0.6822699", "0.6821866", "0.6803595", "0.6800122", "0.6784813", "0.6770751", "0.6714853", "0.67141736", "0.6663679", "0.66245866", "0.66224706", "0.66224706", "0.66083175", "0.65988076", "0.654811...
0.67161965
12
A block that has a conv layer at shortcut. Arguments
def mQG_(FRUf, Ot1W, KUnM, EtM5, XkN1, FEri=(2, 2)): DZWo, MXwb, wMAF = KUnM if nMvt.image_data_format() == 'channels_last': pGaa = 3 else: pGaa = 1 RmTP = 'res' + str(EtM5) + XkN1 + '_branch' lPXw = 'bn' + str(EtM5) + XkN1 + '_branch' WKvO = yHwh(DZWo, (1, 1), strides=FEri, name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQG_(YKHO, DVMO, UU6M, b27A):\n return YKHO.add_layer(mQG_, DVMO, UU6M, b27A)", "def mjQN(YKHO, EcVT, KUnM, eHNT, KCHu, EtM5, XkN1):\n jZbr = 'res' + str(EtM5) + XkN1 + '_branch'\n tagR = 'bn' + str(EtM5) + XkN1 + '_branch'\n LedO = EcVT\n nK5p, Xf5Z, uN8x = KUnM\n EcVT = yHwh(filters=nK5p,...
[ "0.72210574", "0.6797653", "0.67508686", "0.673468", "0.6702727", "0.66709983", "0.66706705", "0.6638113", "0.6602907", "0.6602907", "0.65983295", "0.65591985", "0.6556552", "0.6553555", "0.6531844", "0.65101147", "0.650745", "0.6479069", "0.6421294", "0.64118993", "0.6391051...
0.60525066
66