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
initialize weights and threshold based on input arguments.
def FIMM(YKHO, _mSQ=oyIN.array([1]), gwAu=0): YKHO.weights = _mSQ YKHO.threshold = gwAu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C0Lv(YKHO):\n pass", "def vJuA(YKHO):\n raise NotImplementedError", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def vB93(YKHO) -> None:\n super().init_weights()\n knri(YKHO.convs_all_levels, a=1, dist...
[ "0.74358875", "0.74069947", "0.7295503", "0.722618", "0.7069061", "0.6869385", "0.68263906", "0.67593724", "0.67395127", "0.6722039", "0.6721932", "0.67041874", "0.66074723", "0.6598126", "0.6566606", "0.6559926", "0.6559485", "0.65505767", "0.6538249", "0.65252817", "0.65252...
0.82167745
0
Get the last error value, then turn it into a nice string. Return the string.
def S0w3(): AbHN = Dnb3.GetLastError() if AbHN == 0: return None LaVg = gaxy.new('LPWSTR') gLiZ = Dnb3.FormatMessageA(arM0 | dt4b | KAsZ, gaxy.NULL, AbHN, 0, LaVg, 0, gaxy.NULL) return gaxy.string(gaxy.cast('char **', LaVg)[0][0:gLiZ]).decode('utf-8').strip('\r\n')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YIKv():\n BQDi, P1dF = HwRy.exc_info()[0:2]\n d2YU = str(BQDi)\n if '<class' in d2YU:\n d2YU = d2YU.split(\"'\")[1]\n d2YU = d2YU.replace('dns.exception.', '')\n P1dF = '%s %s' % (d2YU, P1dF)\n return P1dF.rstrip()", "def isRP(YKHO):\n return YKHO._error_string", "def P1dF(YKHO)...
[ "0.7328513", "0.7111968", "0.7021454", "0.70003325", "0.69528633", "0.6913359", "0.6690948", "0.6670149", "0.6569769", "0.6548604", "0.6537746", "0.6513374", "0.6488014", "0.64193314", "0.63823825", "0.63724697", "0.63373506", "0.63226837", "0.63206697", "0.63149035", "0.6314...
0.70455366
2
Translates window screen coordinates to client coordinates.
def QTpz(YKHO, G6tB): return QTpz(G6tB, YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hBUG(YKHO, xTRn=u3MD, gkcs=u3MD):\n LTIa = [(YKHO.left, YKHO.top), (YKHO.right, YKHO.bottom)]\n return NvHq(xTRn, gkcs, LTIa)", "def Yxmg(YKHO, G6tB):\n hd3f = Yxmg(G6tB, (YKHO.left, YKHO.top))\n rzex = Yxmg(G6tB, (YKHO.bottom, YKHO.right))\n return rbZs(hd3f.x, hd3f.y, rzex.x, rzex.y)", "de...
[ "0.6911647", "0.687672", "0.6724786", "0.64854413", "0.6424445", "0.63403136", "0.6247594", "0.6226036", "0.6134524", "0.60914207", "0.60803926", "0.6073212", "0.59958386", "0.5940359", "0.59166497", "0.5830678", "0.5787844", "0.5780775", "0.5737968", "0.56814885", "0.5678975...
0.6230344
7
Translates window client coordinates to screen coordinates.
def Yxmg(YKHO, G6tB): return Yxmg(G6tB, YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hBUG(YKHO, xTRn=u3MD, gkcs=u3MD):\n LTIa = [(YKHO.left, YKHO.top), (YKHO.right, YKHO.bottom)]\n return NvHq(xTRn, gkcs, LTIa)", "def Yxmg(YKHO, G6tB):\n hd3f = Yxmg(G6tB, (YKHO.left, YKHO.top))\n rzex = Yxmg(G6tB, (YKHO.bottom, YKHO.right))\n return rbZs(hd3f.x, hd3f.y, rzex.x, rzex.y)", "de...
[ "0.6988184", "0.67997557", "0.65164655", "0.64731133", "0.6253972", "0.621387", "0.6190013", "0.61088026", "0.61063373", "0.60343206", "0.602864", "0.59666455", "0.59329396", "0.5781834", "0.56813246", "0.5679642", "0.56572706", "0.5637912", "0.55977017", "0.55974686", "0.559...
0.61267453
7
Translates window screen coordinates to client coordinates.
def QTpz(YKHO, G6tB): hd3f = QTpz(G6tB, (YKHO.left, YKHO.top)) rzex = QTpz(G6tB, (YKHO.bottom, YKHO.right)) return rbZs(hd3f.x, hd3f.y, rzex.x, rzex.y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hBUG(YKHO, xTRn=u3MD, gkcs=u3MD):\n LTIa = [(YKHO.left, YKHO.top), (YKHO.right, YKHO.bottom)]\n return NvHq(xTRn, gkcs, LTIa)", "def Yxmg(YKHO, G6tB):\n hd3f = Yxmg(G6tB, (YKHO.left, YKHO.top))\n rzex = Yxmg(G6tB, (YKHO.bottom, YKHO.right))\n return rbZs(hd3f.x, hd3f.y, rzex.x, rzex.y)", "de...
[ "0.6911647", "0.687672", "0.64854413", "0.6424445", "0.63403136", "0.6247594", "0.6230344", "0.6226036", "0.6134524", "0.60914207", "0.60803926", "0.6073212", "0.59958386", "0.5940359", "0.59166497", "0.5830678", "0.5787844", "0.5780775", "0.5737968", "0.56814885", "0.5678975...
0.6724786
2
Translates window client coordinates to screen coordinates.
def Yxmg(YKHO, G6tB): hd3f = Yxmg(G6tB, (YKHO.left, YKHO.top)) rzex = Yxmg(G6tB, (YKHO.bottom, YKHO.right)) return rbZs(hd3f.x, hd3f.y, rzex.x, rzex.y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hBUG(YKHO, xTRn=u3MD, gkcs=u3MD):\n LTIa = [(YKHO.left, YKHO.top), (YKHO.right, YKHO.bottom)]\n return NvHq(xTRn, gkcs, LTIa)", "def QTpz(YKHO, G6tB):\n hd3f = QTpz(G6tB, (YKHO.left, YKHO.top))\n rzex = QTpz(G6tB, (YKHO.bottom, YKHO.right))\n return rbZs(hd3f.x, hd3f.y, rzex.x, rzex.y)", "de...
[ "0.6988184", "0.65164655", "0.64731133", "0.6253972", "0.621387", "0.6190013", "0.61267453", "0.61088026", "0.61063373", "0.60343206", "0.602864", "0.59666455", "0.59329396", "0.5781834", "0.56813246", "0.5679642", "0.56572706", "0.5637912", "0.55977017", "0.55974686", "0.559...
0.67997557
1
Load in slip systems from file. 3 integers for slip plane normal and 3 for slip direction. Returns a list of list of slip systems grouped by slip plane.
def tyeH(mWFP, luw3, aiKG=None, t7FG='plane'): try: JRE7 = '.txt' _Ser, bGrB = Hy7s.path.split(xAKo) VqRE = f'{_Ser}/slip_systems/{mWFP}{JRE7}' w06P = open(VqRE) except FileNotFoundError: try: VqRE = mWFP w06P = open(VqRE) except FileNotFou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U3wS(Ux0P):\n ytgA = open(Ux0P, 'r')\n Nqlg = ytgA.readlines()\n ytgA.close()\n dGPN = DbxN()\n for zFiD in Nqlg:\n V22M = zFiD.split()\n if V22M[0] == 'base':\n wJca(dGPN, V22M[1])\n elif V22M[0] == 'rule':\n mLWx(dGPN, V22M[1:])\n return dGPN", "...
[ "0.6289391", "0.5827481", "0.57126117", "0.5691731", "0.5610091", "0.5580039", "0.55767643", "0.53915215", "0.5347351", "0.5343848", "0.53318816", "0.53284085", "0.52800757", "0.5276263", "0.52678186", "0.52649075", "0.52390105", "0.522971", "0.52043563", "0.52033377", "0.519...
0.6828519
0
Generates random colors. Color.RED with 1/3 and Color.BLACK with 2/3 probability.
def rYs4(YKHO): z2lz = tuKI.random() if z2lz <= 1 / 3.0: return HRmL.RED else: return HRmL.BLACK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xt3l():\n Mkmy = ajWY(0, 255)\n Oa1e = ajWY(0, 255)\n Fg_i = ajWY(0, 255)\n return [Mkmy, Oa1e, Fg_i]", "def pph3():\n CRwB(255)\n return (ajWY(0, 255), ajWY(0, 255), ajWY(0, 255))", "def I85y():\n Fg_i = tuKI.randint(0, 255)\n Oa1e = tuKI.randint(0, 255)\n Mkmy = tuKI.randint(0,...
[ "0.8339735", "0.8075161", "0.7885394", "0.788348", "0.7826575", "0.77174824", "0.7710736", "0.76617014", "0.76451856", "0.76421994", "0.76181316", "0.756889", "0.7560552", "0.7509352", "0.7487519", "0.74852407", "0.7431164", "0.74289817", "0.74040896", "0.7403635", "0.7372824...
0.7603502
11
Returns the best action possible in state s.
def Cez0(YKHO, KCHu): raise NotImplemented()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HS6c(YKHO, QTBn):\n TFJY = list(YKHO.Q[QTBn].items())\n return max(TFJY, key=lambda WKvO: WKvO[1])[0]", "def XyPH(YKHO, QTBn):\n r8IL = 0\n K85q = -9999\n for XeOP in YKHO.getLegalActions(QTBn):\n T8ck = YKHO.getQValue(QTBn, XeOP)\n if T8ck > K85q:\n r8IL = XeOP\n ...
[ "0.84041375", "0.83494097", "0.82477665", "0.8184842", "0.81075436", "0.80925196", "0.7850672", "0.78151333", "0.77984", "0.7759665", "0.77576095", "0.7745814", "0.7676397", "0.76517326", "0.76159114", "0.7610927", "0.75898933", "0.75406533", "0.7539394", "0.7524829", "0.7496...
0.8097551
5
check if a new chunk started between the previous and current word
def CLeC(CGwC, TZ9E): oPCp, iYK_ = _Alm(CGwC) TEkk, alG5 = _Alm(TZ9E) if TEkk == 'O': return False if oPCp == 'O': return TEkk != 'O' if iYK_ != alG5: return True return TEkk in ['B', 'S'] or oPCp in ['E', 'S']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U1xR(YKHO):\n EmMj = False\n YKHO._setIeWord(None)\n YKHO._setIeSentence(None)\n en1E = 1\n if YKHO.currRange and YKHO.endRange and YKHO.startRange:\n sMtK = True\n try:\n sMtK = YKHO.currRange.isEqual(YKHO.endRange)\n except:\n pass\n while not ...
[ "0.64714223", "0.64157623", "0.62573755", "0.6216005", "0.6201482", "0.59428453", "0.58791757", "0.58472997", "0.58375716", "0.58274645", "0.57998115", "0.5741804", "0.56975996", "0.5682696", "0.5679295", "0.56639445", "0.56394476", "0.5635118", "0.5628108", "0.560133", "0.56...
0.6540808
0
A short representation of the object
def repr(YKHO): raise l8Sf('Unimplemented repr()')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQtJ(YKHO):\n return YKHO.stringify()", "def zAg0(YKHO):\n return str(YKHO.__dict__['_obj'])", "def lmi1(YKHO):\n return f'{YKHO.name} - {YKHO.resource_type}'", "def zAg0(YKHO):\n return str(YKHO.serialize())", "def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])", "def zAg0(YKHO):\n ...
[ "0.7715198", "0.7068685", "0.7034965", "0.69751126", "0.69612944", "0.6950877", "0.69289017", "0.68919617", "0.6837801", "0.6837801", "0.6837801", "0.6837801", "0.6837801", "0.6825278", "0.6814406", "0.67487365", "0.6735115", "0.6727017", "0.6727017", "0.6727017", "0.6727017"...
0.0
-1
Get an attribute by reference Implements e.g. ... =& $x>attr Returns the new value of $x and the reference.
def nwg4(YKHO, pTn1, mWFP, kVPe=None): pTn1.warn('Attempt to modify property of non-object') return pTn1.space.empty_ref()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bf9h(U6D_):\n return int(U6D_['attrs']['ref'])", "def bf9h(YKHO, xC3W):\n Hxtq = {'title': 'T', 'username': 'U', 'password': 'P', 'url': 'A', 'notes': 'N', 'uuid': 'I'}\n return '{{REF:{}@I:{}}}'.format(Hxtq[xC3W], YKHO.uuid.hex.upper())", "def NMoC(YKHO, AniK):\n return getattr(YKHO, AniK)", ...
[ "0.6214337", "0.5825381", "0.5822674", "0.56593996", "0.5570551", "0.55653614", "0.55328864", "0.55160964", "0.5503773", "0.54645044", "0.5459306", "0.5450127", "0.5429975", "0.5425124", "0.5396926", "0.53945214", "0.5367309", "0.53460824", "0.53449917", "0.5343275", "0.53378...
0.514099
38
Returns the dictionary of test variables. If the library is invoked as a standalone executable, return a mockup dictionary, otherwise return the RobotFramework test variable dictionary.
def jz9n(): if __name__ == '__main__': return RYSa else: return y5Kl().get_variables()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lbkK(YKHO):\n pass", "def lfdS(YKHO):\n return {'variable_boolean': YKHO.variable_boolean}", "def SFOu(Emd4) -> AzJI[str, ...]:\n return ('shell_cmd', 'expect', 'known_logline')", "def XPKt():\n return dict()", "def xjOV():\n return dict(O5Rx)", "def gyjD():\n PNq_ = {}\n PNq_['B...
[ "0.6096", "0.5887758", "0.58755654", "0.5809661", "0.57905895", "0.56500524", "0.56343985", "0.561235", "0.5582134", "0.5547837", "0.55462337", "0.55300826", "0.5528229", "0.5518903", "0.5513444", "0.55087733", "0.55087733", "0.54964024", "0.54746264", "0.5436337", "0.5433624...
0.80904293
0
Compares the given password in a secure way with a value stored in database to determine if the password is correct or not.
def NLCy(YKHO, jTXt): try: lEyZ = jTXt.encode('utf-8') Nzyw = YKHO.password.encode('utf-8') return w7Kq(Nzyw, lEyZ) except Exception as ex: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNjs(YKHO, NtEF, jTXt):\n try:\n YKHO.c.execute('SELECT password FROM profiles WHERE name=(?)', (NtEF,))\n bXAX = YKHO.c.fetchone()[0]\n print(jTXt)\n return bXAX == jTXt\n except TypeError:\n return False", "def e3F7(YKHO, jTXt):\n return axsU().check_password_has...
[ "0.78731614", "0.78306586", "0.77533066", "0.7669572", "0.76548934", "0.7596522", "0.7585206", "0.75842786", "0.7559725", "0.7552213", "0.7513887", "0.7511698", "0.7511095", "0.75033915", "0.7453581", "0.74502766", "0.7415836", "0.74145097", "0.74098754", "0.7404953", "0.7403...
0.0
-1
Attach to an existing lease by ID. When using in conjunction with the context manager, it will not delete the lease at the end.
def fcS5(Emd4, XZsl, id): return Emd4(XZsl, _preexisting=True, _id=id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WQp_(Emd4, id):\n vexM = {'_id': id}\n m8z6 = FfT0.find_one(collection='pending_trailers', query=vexM)\n FfT0.insert(collection='queued_trailers', data=m8z6)\n FfT0.delete_one(collection='pending_trailers', query=vexM)", "def OmLg(YKHO, e5oc, pmON, MOPg=None, **B2fa):\n bo34.debug('Leasing pat...
[ "0.5806472", "0.53215486", "0.5289764", "0.5205676", "0.5205676", "0.5205676", "0.5205676", "0.5205676", "0.51937735", "0.51937735", "0.51937735", "0.51937735", "0.51937735", "0.51937735", "0.51937735", "0.51937735", "0.51937735", "0.51937735", "0.51937735", "0.51937735", "0....
0.0
-1
Given the updated C0 and rho, the previous gamma, and the updated gamma, returns the updated t_prime t_prime is the time elapsed in the muon's reference frame
def QSN0(cufM, oZuG, WqnB, Yo9A): iAiE = r8hN * Z9rn / (oZuG * cufM) * (WqnB * (WqnB ** 2 - 1) ** (-3 / 2) - Yo9A * (Yo9A ** 2 - 1) ** (-3 / 2)) return iAiE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ryQC(zxcf, y2qY, acbC, o4sw, KMvS, Kt_s=R47j, JRYC=0.01):\n for YRbF in range(0, len(o4sw)):\n if o4sw[YRbF] < 1e-100:\n o4sw[YRbF] = 1e-100\n C7Ls = o4sw[0]\n Nq1b = o4sw[1]\n ywwl = o4sw[2]\n yvY1 = o4sw[3]\n RBVb = acbC[0]\n eMWi = acbC[1]\n s7DM = acbC[2]\n ZT17...
[ "0.5871047", "0.578687", "0.5700725", "0.5663817", "0.56599563", "0.5644158", "0.56219983", "0.5615904", "0.56118596", "0.56011987", "0.56011707", "0.5562016", "0.55521184", "0.5407914", "0.533332", "0.53032327", "0.52722394", "0.525737", "0.52447623", "0.52414197", "0.524141...
0.7798841
0
Changes velocity x when hitting an object
def Q1Vt(YKHO): YKHO.__dx *= -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QJzm(YKHO, *qIxc, **B2fa) -> ImMB:\n pass", "def aQ6N(YKHO, oMLs, fCtx):\n YKHO.xvelocity = oMLs\n YKHO.yvelocity = fCtx", "def QdZT(YKHO):\n YKHO.x += YKHO.velocity_x\n if YKHO.x < 0 or YKHO.x + YKHO.width > 640:\n YKHO.velocity_x = 0", "def Gzib(YKHO):\n if YKHO.direction == 'l...
[ "0.7495039", "0.70301", "0.6877174", "0.6773192", "0.67445487", "0.66338277", "0.6592792", "0.65633154", "0.656296", "0.65332645", "0.65089077", "0.64937323", "0.6477043", "0.64235127", "0.6418332", "0.6400769", "0.6388023", "0.638295", "0.6382915", "0.6377059", "0.6312399", ...
0.7280352
1
Changes ball's direction when hitting the paddle
def riZZ(YKHO): YKHO.__dx = tuKI.randint(1, w476) YKHO.__dy = -abs(YKHO.__dy) if tuKI.random() > 0.5: YKHO.__dx = -YKHO.__dx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RT98(YKHO):\n pass", "def pf4A(YKHO):\n YKHO.ball_x += YKHO.velocity_x\n YKHO.ball_y += YKHO.velocity_y\n if YKHO.ball_y < 0:\n YKHO.ball_y = -YKHO.ball_y\n YKHO.velocity_y = -YKHO.velocity_y\n if YKHO.ball_y > 1:\n YKHO.ball_y = 2 - YKHO.ball_y\n YKHO.velocity_y = ...
[ "0.7587691", "0.7352522", "0.69009835", "0.68982434", "0.6843783", "0.6738381", "0.67141676", "0.66157234", "0.6597591", "0.65484", "0.6536513", "0.65207756", "0.6457713", "0.6444708", "0.64362913", "0.6391172", "0.6390471", "0.63849556", "0.63635474", "0.63528454", "0.633417...
0.0
-1
Checking if the ball hit the paddle
def u8DF(YKHO): if YKHO.window.get_object_at(YKHO.ball.x, YKHO.ball.y + YKHO.radius * 2) is YKHO.paddle: YKHO.bounce() if YKHO.window.get_object_at(YKHO.ball.x + YKHO.radius * 2, YKHO.ball.y + YKHO.radius * 2) is YKHO.paddle: YKHO.bounce()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RT98(YKHO):\n pass", "def SnsZ(YKHO, CbyH):\n if CbyH.contains(YKHO.left, YKHO.top) and YKHO._vy < 0:\n YKHO.bouncesound.play()\n YKHO.verticalBounce()\n YKHO._vx = tuKI.uniform(5.0, 15.0)\n if CbyH.contains(YKHO.left, YKHO.bottom) and YKHO._vy < 0:\n YKHO.bouncesound.pla...
[ "0.8591229", "0.8056836", "0.8020083", "0.77586263", "0.77236736", "0.7362593", "0.7290314", "0.7284007", "0.72161925", "0.7001375", "0.69952947", "0.68564844", "0.6746317", "0.6745626", "0.67251056", "0.6690283", "0.6663458", "0.6661547", "0.6625274", "0.66014457", "0.658517...
0.7807907
3
Drops a random item that may shorten the paddle for limited rounds
def wbiC(YKHO): if tuKI.random() < 0.3: YKHO.window.add(YKHO.shorten_paddle, x=YKHO.ball.x + YKHO.objects_length / 2, y=YKHO.ball.y) YKHO.shorten_paddle_exist = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ReNU(YKHO, HeeX):\n if HeeX not in YKHO.items:\n print('The player does not carry the item')\n else:\n YKHO.items.remove(HeeX)", "def K9pI(YKHO):\n RZ9F = YKHO.items()\n c8V9 = tuKI.choice(RZ9F)\n YKHO[c8V9[0]] = None\n return c8V9", "def W9dw(F9Of: dict):\n rKSe = tuKI.r...
[ "0.65682304", "0.6537298", "0.6385646", "0.6309748", "0.6228441", "0.62270457", "0.60924864", "0.6080497", "0.6008909", "0.6001737", "0.5989179", "0.5971677", "0.59682345", "0.5967807", "0.59657407", "0.59515166", "0.593082", "0.58605486", "0.5852083", "0.5829403", "0.5816003...
0.7511028
0
Restores the model and optimizer states This helper function restores the model's state to a given iteration so that a user can resume training at any epoch.
def BzYT(YKHO, sRHT): YKHO.load_state_dict(sRHT['model']) YKHO.optimizer.load_state_dict(sRHT['optimizer']) YKHO.lr_scheduler.load_state_dict(sRHT['lr_scheduler']) K33I = sRHT['iteration'] + 1 if YKHO.config['verbose']: print(f'Restored checkpoint to iteration {K33I}.') if sRHT['best_mod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPqq(YKHO, koun):\n print('Loading the trained models from step {}...'.format(koun))\n RnJ2 = Hy7s.path.join(YKHO.model_save_dir, '{}-G.ckpt'.format(koun))\n YKHO.G.load_state_dict(ht2j.load(RnJ2, map_location=lambda S8SU, hksT: S8SU))", "def JPqq(YKHO, koun):\n if YKHO.resume_iters:\n bPT...
[ "0.7254063", "0.71848124", "0.70208925", "0.69592184", "0.6915095", "0.68498456", "0.68313843", "0.66074514", "0.6552805", "0.65403545", "0.6533953", "0.6466362", "0.64618224", "0.64539486", "0.6422329", "0.6388614", "0.6375843", "0.63736147", "0.6329389", "0.6312831", "0.627...
0.72677165
0
Converts a None, list, np.ndarray, or torch.Tensor to np.ndarray; also handles converting sparse input to dense.
def vuQn(Nk6w): if Nk6w is None: return Nk6w elif KN5h(Nk6w): return Nk6w.toarray() elif isinstance(Nk6w, oyIN.ndarray): return Nk6w elif isinstance(Nk6w, list): return oyIN.array(Nk6w) elif isinstance(Nk6w, ht2j.Tensor): return Nk6w.cpu().numpy() else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTDd(WKvO: Union[torch.Tensor, np.ndarray, Any, None]) -> uLKX[oyIN.ndarray, None]:\n if WKvO is None:\n return None\n elif ht2j.is_tensor(WKvO):\n return WKvO.data.cpu().numpy()\n elif isinstance(WKvO, oyIN.ndarray):\n return WKvO\n elif isinstance(WKvO, (iu5r, int, float)):\n...
[ "0.76773345", "0.7233963", "0.7173584", "0.716279", "0.7142096", "0.7061303", "0.7032503", "0.7032503", "0.70195454", "0.69758123", "0.69744414", "0.6958734", "0.6917689", "0.6917689", "0.69000363", "0.6894789", "0.6866577", "0.67931455", "0.67750895", "0.67735124", "0.676101...
0.7002494
9
User pressed OK button
def raTX(YKHO): YKHO.runschematisations = ['geen'] JXeG = YKHO.listSchematisations.model() for d6pt in range(JXeG.rowCount()): ZfUD = JXeG.item(d6pt) if ZfUD.isCheckable() and ZfUD.checkState() == wDYU.Qt.Checked: YKHO.runschematisations.append(ZfUD.text()) YKHO.runwaterlevel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aEq5(YKHO, tvqc):\n YKHO.OnButtonOKButton()", "def _QLQ(YKHO, YRbF):\n if YRbF.text() == 'OK':\n print('Entry added')", "def v7CM(YKHO):\n YKHO.answer = 'ok'\n YKHO.top.destroy()", "def rFvk(YKHO, tvqc):\n YKHO.EndModal(lnPd.ID_OK)", "def v7CM(YKHO):\n KCHu = YKHO.number_entry....
[ "0.80168444", "0.786827", "0.7807484", "0.7736293", "0.7610414", "0.75357693", "0.73405415", "0.73405415", "0.73405415", "0.732669", "0.72668827", "0.72544056", "0.7163284", "0.7145008", "0.71215755", "0.7076128", "0.7052186", "0.7009362", "0.6997362", "0.6942393", "0.6915014...
0.0
-1
Initializes a test workspace by creating a temporary directory for it.
def sAWZ(ZqHk, QePW): yield lnpD(ZqHk, QePW.config.getoption('--bin-dir'), QePW.config.getoption('--lib-dir'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.workspace_dir = gbPf.mkdtemp()\n if not Hy7s.path.exists(YKHO.workspace_dir):\n Hy7s.makedirs(YKHO.workspace_dir)", "def FCbF(YKHO):\n YKHO.workspace_dir = gbPf.mkdtemp()", "def FCbF(YKHO):\n YKHO.workspace_dir = gbPf.mkdtemp()", "def FCbF(YKHO):\n YKHO.workspace_...
[ "0.79310685", "0.781631", "0.781631", "0.781631", "0.781631", "0.781631", "0.781631", "0.781631", "0.7707678", "0.7198403", "0.7191681", "0.7098867", "0.7074984", "0.695244", "0.6890569", "0.6888354", "0.6876332", "0.6876332", "0.6870755", "0.6864816", "0.6837567", "0.68019...
0.70295
13
Evaluate a Gaussian profile at x, given the profile parameters. y = amplitude exp((x position)2 / (2.0 sigma2))
def IAWS(WKvO, *SGPK): dQgj, WTkW, caa_, pmez = SGPK return caa_ * oyIN.exp(-(WKvO - dQgj) ** 2 / (2.0 * WTkW ** 2)) + pmez
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cEZ4(EcVT):\n yGTL = oyIN.mean(EcVT, axis=0)\n UkX0 = oyIN.std(EcVT, axis=0) ** 2\n return (yGTL, UkX0)", "def IAWS(WKvO, JBMS, WTkW):\n return oyIN.exp(-oyIN.square(WKvO - JBMS) / (2 * oyIN.square(WTkW))) / oyIN.sqrt(2 * oyIN.pi * WTkW ** 2)", "def Gkmu(WKvO, yGTL=0, WTkW=26.4, k0lF=1, nxyw=0)...
[ "0.6495758", "0.6491235", "0.64024776", "0.6383537", "0.637135", "0.63533294", "0.63418245", "0.6341676", "0.62667817", "0.6265572", "0.62360567", "0.62020063", "0.62014705", "0.6151087", "0.6125277", "0.60939956", "0.60737383", "0.6054487", "0.60086715", "0.6003975", "0.6000...
0.6753406
0
Evaluate the derivative of the MARS interpolant at x
def BXW4(YKHO, WKvO, Csk6=None): if YKHO.weights is None: YKHO.compute_weights() wEf2 = 0.0 for YRbF in range(YKHO.M): wEf2 += YKHO.weights[YRbF] * YKHO.model_list[YRbF].deriv(WKvO, Csk6) return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LFRa(YKHO, WKvO):\n epBp = oyIN.asarray(WKvO)\n LVAh, FF1C = YKHO._evalAndDer(epBp.flatten())\n return (LVAh.reshape(epBp.shape), FF1C.reshape(epBp.shape))", "def qQJX(YKHO, WKvO):\n r8hN = len(WKvO)\n AOlJ = oyIN.zeros((r8hN, YKHO.funcCount))\n for r845 in range(YKHO.funcCount):\n A...
[ "0.78760386", "0.75173146", "0.75173146", "0.73359746", "0.7282882", "0.7276047", "0.72053844", "0.72053844", "0.7121522", "0.7110428", "0.7083183", "0.7039563", "0.6991064", "0.6938784", "0.6918987", "0.6796998", "0.67168504", "0.670519", "0.67048144", "0.67048144", "0.66782...
0.62320125
55
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Reds): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') QrM1.imshow(Bcwd, interpolation='nearest'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.0
-1
Updates metric state by accumulating the variables.
def VAZT(YKHO, Y8eF: tf.Tensor, aMgO: tf.Tensor): if YKHO.sparse_y_true: Y8eF = ZylS.one_hot(ZylS.cast(Y8eF, dtype=ZylS.int32), YKHO.num_classes, axis=YKHO.axis, on_value=True, off_value=False) if YKHO.sparse_y_pred: aMgO = ZylS.one_hot(ZylS.cast(aMgO, dtype=ZylS.int32), YKHO.num_classes, axis=Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VAZT(YKHO):\n if YKHO._coordinator.data:\n v9CE = YKHO._coordinator.data['values']\n hkxX = [Ty9i['value'] for Ty9i in v9CE]\n YKHO._state = f'{sum(hkxX):.2f}'", "def VAZT(YKHO, **B2fa):\n for mWFP in YKHO.metrics:\n AcYW = YKHO.metrics[mWFP]\n fctm = tq_1.getfullargs...
[ "0.6553084", "0.65116304", "0.6480227", "0.63618547", "0.63167506", "0.63015777", "0.61579233", "0.6127702", "0.60753965", "0.6062084", "0.60589623", "0.6026772", "0.6020309", "0.6001727", "0.59968036", "0.59858155", "0.5970429", "0.59650236", "0.59607506", "0.59604686", "0.5...
0.0
-1
Returns the serializable config of the metric.
def tgzD(YKHO) -> cuzp[str, ImMB]: return {'num_classes': YKHO.num_classes, 'name': YKHO.name, 'dtype': YKHO.dtype, 'sparse_y_true': YKHO.sparse_y_true, 'sparse_y_pred': YKHO.sparse_y_pred, 'axis': YKHO.axis}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n GPtr = YKHO._kwargs.copy()\n GPtr.update({'metric': YKHO.__class__.__name__, 'name': YKHO.name, 'output_names': YKHO.output_names, 'label_names': YKHO.label_names})\n return GPtr", "def tgzD(YKHO):\n return YKHO.config", "def tgzD(YKHO):\n return {'name': YKHO.name, 'dtype': YK...
[ "0.71470386", "0.68104744", "0.6746141", "0.67385936", "0.67385936", "0.67378443", "0.66127694", "0.66092986", "0.66083086", "0.65892947", "0.6586016", "0.6555168", "0.6545104", "0.64308745", "0.64308745", "0.64308745", "0.64308745", "0.64308745", "0.64308745", "0.64308745", ...
0.0
-1
Find root directory of project.
def Gok7(YKHO, awCZ, nYcc): G8u3 = Hy7s.path.abspath(awCZ) try: return boHx.Repo.discover(G8u3).path except Exception: pass for tk5Y in ('.', '..', '../..'): if Hy7s.path.exists(Hy7s.path.join(tk5Y, nYcc)): return tk5Y raise Exception('Could not discover root dire...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mlYH() -> oAb3.Path:\n sWmO = oAb3.Path.cwd()\n while not (oAb3.Path(sWmO, 'pyproject.toml').exists() or oAb3.Path(sWmO, 'poetry.lock').exists() or oAb3.Path('/') == sWmO):\n sWmO = sWmO.parent\n return sWmO", "def L59w() -> GkAb:\n return lkbE", "def ez41():\n return KfRp", "def jN...
[ "0.8293513", "0.815047", "0.8148224", "0.8136446", "0.8025839", "0.7947668", "0.7891882", "0.7891882", "0.78869134", "0.7880807", "0.78408545", "0.78408545", "0.78408545", "0.78408545", "0.7833131", "0.7799999", "0.77990746", "0.7793968", "0.77714366", "0.77528095", "0.767173...
0.69286495
47
At the end of the web request, this makes sure to close the database connection. If you don't the database could run out of memory!
def gBn5(AJ5d): try: Oa1e.conn.close() except Exception as e: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYe1():\n NCls.close()", "def DDI8(YKHO):\n YKHO.conn.close()\n gigf.collect()", "def HySU(bGrB):\n YKHO.db.close()", "def DDI8(YKHO):\n YKHO.connection.close()", "def DDI8(YKHO):\n YKHO.db.close()", "def rYe1(geh0):\n Oa1e.db.close()\n return geh0", "def rYe1(geh0):\n Oa...
[ "0.79800886", "0.78219384", "0.76396084", "0.7537861", "0.74763024", "0.74483776", "0.74483776", "0.74483776", "0.74483776", "0.74483776", "0.74483776", "0.74483776", "0.74483776", "0.74483776", "0.74483776", "0.74483776", "0.7435468", "0.7435468", "0.74213195", "0.74184453", ...
0.0
-1
Compare this reference to another.
def xa14(YKHO, Elif): ikcb = Elif if isinstance(Elif, tuple): ikcb = YKHO.__class__(*Elif) elif not isinstance(Elif, ZnjK): try: ikcb = YKHO.__class__.from_string(Elif) except TypeError: raise TypeError('Unable to compare {0}() to {1}()'.format(type(YKHO).__na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aicm(YKHO, Elif):\n bGrB, bGrB = (YKHO, Elif)\n return 0", "def qk7K(YKHO, Elif):\n if YKHO is Elif:\n return 0\n MxXY = YKHO.__class__\n cWFu = Elif.__class__\n Z9rn = jyan(MxXY, cWFu)\n if Z9rn:\n return Z9rn\n aevO = YKHO._hashable_content()\n M_pm = Elif._hashable...
[ "0.7201796", "0.71304446", "0.7101162", "0.7047165", "0.7032989", "0.7024927", "0.70207924", "0.6938044", "0.69235224", "0.6918194", "0.6873511", "0.68704987", "0.68701327", "0.6853344", "0.6844247", "0.6844247", "0.6844247", "0.68301713", "0.68280697", "0.68280697", "0.68280...
0.0
-1
returns theano implementation of function func_name is either 'relu', 'sigmoid', 'tanh', 'softmax', 'linear'
def sYYm(RKN_): return {'linear': lambda WKvO: WKvO, 'relu': lambda WKvO: WKvO * (WKvO > 0), 'elu': lambda WKvO: WKvO * (WKvO >= 0) + (Kt_s.exp(WKvO) - 1) * (WKvO < 0), 'softmax': Kt_s.nnet.softmax, 'tanh': Kt_s.tanh, 'log_softmax': h_oU, 'sigmoid': Kt_s.nnet.sigmoid}[RKN_]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b914(mWFP: Optional[str]):\n if mWFP in (None, 'linear'):\n return lambda WKvO: WKvO\n elif mWFP in ('sigmoid', 'tanh'):\n return getattr(ht2j, mWFP)\n else:\n return getattr(vuvg, mWFP)", "def siRH(mWFP):\n if mWFP == 'relu':\n return U78l.ReLU(inplace=True)\n if m...
[ "0.7163165", "0.70450497", "0.69873726", "0.6959398", "0.69545597", "0.68011796", "0.6779878", "0.6661059", "0.66009206", "0.6521031", "0.6481226", "0.6390445", "0.63719976", "0.6280136", "0.6269302", "0.625469", "0.6254442", "0.6247554", "0.6239254", "0.62021536", "0.6200585...
0.7446129
0
Register a user. user will be assigned a session id
def m8z6(YKHO): YKHO.finish(YKHO.register())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQ7K():\n pass", "def iQ7K(YKHO):\n mv1M.add_user(mv1M(YKHO.email.data, YKHO.password.data))", "def gr_i():\n N6Es(GgSi())\n try:\n NCls.session.commit()\n except yXsM:\n raise BQDi.CouldNotCreateEntry()\n return (pz3A({'message': 'Created user.'}), 200)", "def Q5YQ(Esbi):...
[ "0.8143407", "0.80467325", "0.7752725", "0.75790393", "0.7549946", "0.74663204", "0.74383515", "0.74009556", "0.739184", "0.7383206", "0.7362326", "0.7347286", "0.7324185", "0.73134017", "0.7281073", "0.7267179", "0.7245193", "0.72216827", "0.7205791", "0.7203419", "0.7199138...
0.0
-1
Converts a dot product into an `Einsum`.
def gm2n(WKvO: JaxExpression, LVAh: JaxExpression, NArs: Params) -> jzee: YVZ0 = NArs['dimension_numbers'] (oOLG, GdRu), (VmaS, omIE) = YVZ0 rm5h, nbNY = (len(WKvO.shape), len(LVAh.shape)) y5En = jIRx.einsum_letters() tyBV = ''.join(WhY1.islice(y5En, rm5h)) XVPr = list(WhY1.islice(y5En, nbNY)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pxL1(hQHm, jlSq):\n return sum(JaxB(seET.mul, hQHm, jlSq))", "def pxL1(WKvO, LVAh):\n return sum(JaxB(seET.mul, WKvO, LVAh))", "def X6_J(hQHm, jlSq):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(hQHm, jlSq)))", "def BJ1H(jzdc, Fg_i):\n return sum([jzdc[YRbF] * Fg_i[YRbF] for YRbF in range(...
[ "0.6300768", "0.6202338", "0.6178872", "0.61547214", "0.6152906", "0.61438024", "0.6139741", "0.61156595", "0.60799295", "0.607694", "0.6057838", "0.6051067", "0.6044876", "0.60022324", "0.5995402", "0.5993264", "0.59914434", "0.595684", "0.5925157", "0.59184045", "0.58900076...
0.7109156
0
Lemmatize verbs in list of tokenized words
def sAwM(YKHO, V22M): LkXt = GFnk() A1xJ = [] for GIN8 in V22M: dhx_ = LkXt.lemmatize(GIN8, pos='v') A1xJ.append(dhx_) return A1xJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iKsa(jKE7):\n wgQP = Dhdw.stem.PorterStemmer()\n i6lF = [wgQP.stem(GIN8) for GIN8 in jKE7]\n return i6lF", "def sAwM(YKHO):\n A1xJ = []\n for GIN8 in YKHO.words:\n dhx_ = X1AK.lemmatize(GIN8, pos='v')\n A1xJ.append(dhx_)\n YKHO.words = A1xJ\n return YKHO", "def kzmx(s2mk)...
[ "0.8030228", "0.79704237", "0.7929821", "0.78893256", "0.78252596", "0.7756634", "0.7741538", "0.7741538", "0.7741538", "0.7741538", "0.7741538", "0.7741538", "0.77332175", "0.7703726", "0.7699928", "0.76371783", "0.7631672", "0.75700194", "0.7544735", "0.7536392", "0.7522604...
0.77103
13
Lemmatize verbs in list of tokenized words
def YQi3(YKHO, V22M): LkXt = GFnk() A1xJ = [] for GIN8 in V22M: dhx_ = LkXt.lemmatize(GIN8, pos='n') A1xJ.append(dhx_) return A1xJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iKsa(jKE7):\n wgQP = Dhdw.stem.PorterStemmer()\n i6lF = [wgQP.stem(GIN8) for GIN8 in jKE7]\n return i6lF", "def sAwM(YKHO):\n A1xJ = []\n for GIN8 in YKHO.words:\n dhx_ = X1AK.lemmatize(GIN8, pos='v')\n A1xJ.append(dhx_)\n YKHO.words = A1xJ\n return YKHO", "def kzmx(s2mk)...
[ "0.8030228", "0.79704237", "0.7929821", "0.78893256", "0.78252596", "0.7756634", "0.7741538", "0.7741538", "0.7741538", "0.7741538", "0.7741538", "0.7741538", "0.77332175", "0.77103", "0.7703726", "0.7699928", "0.76371783", "0.7631672", "0.75700194", "0.7544735", "0.7536392",...
0.67795396
65
Lemmatize verbs in list of tokenized words
def yA6w(YKHO, V22M): LkXt = GFnk() A1xJ = [] for GIN8 in V22M: dhx_ = LkXt.lemmatize(GIN8, pos='a') A1xJ.append(dhx_) return A1xJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iKsa(jKE7):\n wgQP = Dhdw.stem.PorterStemmer()\n i6lF = [wgQP.stem(GIN8) for GIN8 in jKE7]\n return i6lF", "def sAwM(YKHO):\n A1xJ = []\n for GIN8 in YKHO.words:\n dhx_ = X1AK.lemmatize(GIN8, pos='v')\n A1xJ.append(dhx_)\n YKHO.words = A1xJ\n return YKHO", "def kzmx(s2mk)...
[ "0.80288726", "0.7971245", "0.79286313", "0.7890332", "0.7825369", "0.77554196", "0.77416253", "0.77416253", "0.77416253", "0.77416253", "0.77416253", "0.77416253", "0.77338827", "0.7710709", "0.7703906", "0.7699137", "0.7638337", "0.7630645", "0.75690055", "0.7545449", "0.75...
0.6722515
67
Forwardmode pushforward analogous to the pullback defined by tf.gradients. With tf.gradients, grad_ys is the vector being pulled back, and here d_xs is the vector being pushed forward.
def v9Bz(bEXe, fUYa, eIB5): Ty9i = ZylS.placeholder_with_default(oyIN.zeros(bEXe.get_shape(), dtype=oyIN.float32), shape=bEXe.get_shape()) Oa1e = ZylS.gradients(bEXe, fUYa, grad_ys=Ty9i, gate_gradients=True) return ZylS.gradients(Oa1e, Ty9i, grad_ys=eIB5, gate_gradients=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TV9t(YKHO, g4y1):\n raise NotImplementedError", "def KVH6(YKHO, g4y1: Tensor) -> llWB:\n YKHO.inputs = g4y1\n return g4y1 @ YKHO.w + YKHO.b", "def Xnhd(YKHO, input: np.ndarray, jHhP: Dict[str, np.ndarray]) -> oyIN.ndarray:\n raise NotImplementedError", "def lKut(YKHO, WKvO):\n z1Rg, Oa1e =...
[ "0.66093916", "0.6260517", "0.6203519", "0.6099338", "0.6076721", "0.6063734", "0.5994405", "0.5972849", "0.59590906", "0.59428406", "0.59128237", "0.5911637", "0.58836234", "0.5866258", "0.5861849", "0.58401406", "0.58346903", "0.58326226", "0.583119", "0.5824074", "0.582230...
0.7529103
0
Takes in a list of rewards for each timestep in an episode, and returns a list of the sum of discounted rewards for each timestep. Refer to the slides to see how this is done.
def FMQW(vwlo, tzvm=0.99): L4bz = len(vwlo) vwlo = ZylS.convert_to_tensor([vwlo], dtype=ZylS.float32) Kt_s = ZylS.convert_to_tensor([[max(1 + YRbF - r845, 0) for r845 in range(L4bz)] for YRbF in range(L4bz)], dtype=ZylS.float32) Kt_s = ZylS.math.pow(tzvm, Kt_s) Kt_s = ZylS.linalg.band_part(Kt_s, -1,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FMQW(vwlo):\n elw2 = 0.0\n MLVm = []\n for Mkmy in vwlo[::-1]:\n elw2 = elw2 * OtCq + Mkmy\n MLVm.append(elw2)\n return MLVm[::-1]", "def UV6d(YKHO, NH4l):\n CjDa = oyIN.zeros_like(NH4l)\n uGmR = 0.0\n for YRbF in reversed(range(len(NH4l))):\n uGmR = uGmR * KMvS + NH...
[ "0.7318004", "0.71212083", "0.7074243", "0.70572597", "0.7029099", "0.69638443", "0.69231766", "0.6774244", "0.66538954", "0.664611", "0.6608329", "0.64343405", "0.63544387", "0.63373727", "0.6291445", "0.6271778", "0.62690884", "0.6256094", "0.6249298", "0.6215773", "0.61826...
0.57212853
41
Split the message and clean the tokens 1. Tokenize text using word_tokenize 2. Lemmetize the tokens 3. Normalize the tokens 4. Strip any white spaces INPUT Disaster Message OUTPUT list of processed tokens
def wr3U(l5Ny): s2mk = dFss(l5Ny) LkXt = GFnk() zKDd = [] for w2fL in s2mk: NM_J = LkXt.lemmatize(w2fL).lower().strip() zKDd.append(NM_J) return zKDd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zi4e(YKHO, Novh):\n CjW2 = ZbWC.split('\\\\s+', Novh.strip())\n if len(CjW2) < 2:\n print(CjW2)\n iCr7 = CjW2[0]\n CjW2 = ''.join(CjW2[1:])\n return (iCr7, CjW2)", "def ZvG6(Novh):\n IChv = wr3U(Novh)\n IChv = g8pp(IChv)\n IChv = cQ_D(IChv)\n IChv = iKsa(IChv)\n return IC...
[ "0.686459", "0.6775587", "0.67578614", "0.67010355", "0.66956043", "0.66933405", "0.6589228", "0.6567017", "0.65641457", "0.6501551", "0.6501551", "0.64927274", "0.64617354", "0.64170957", "0.63853174", "0.63328636", "0.6330338", "0.6311813", "0.6307169", "0.6292793", "0.6286...
0.62757283
21
Get a Pipe's instance or remote rowcount.
def IBLv(YKHO, _9an: Optional['datetime.datetime']=None, Os4s: Optional['datetime.datetime']=None, y5Cv: bool=False, NArs: Optional[Dict[str, Any]]=None, dsE5: bool=False) -> h8nf[int]: from meerschaum.utils.warnings import warn SQvy = YKHO.instance_connector if not y5Cv else YKHO.connector try: ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RJbo(YKHO):\n uaN3 = 'SELECT count(*) FROM \"%s\"' % (YKHO.name,)\n DpUl = YKHO.con.cursor()\n DpUl.execute(uaN3)\n return DpUl.fetchone()[0]", "def ZyKR(YKHO, bCYe):\n if bCYe not in YKHO.components:\n raise KeyError('{} is not recognized as an existing pipe'.format(bCYe))\n return ...
[ "0.6452065", "0.6436908", "0.634522", "0.62102914", "0.6173379", "0.6167278", "0.6148683", "0.6136996", "0.6066057", "0.60653806", "0.597468", "0.5957729", "0.5955991", "0.59475875", "0.59291667", "0.5906066", "0.59003234", "0.58895546", "0.58632606", "0.58339155", "0.5832181...
0.69679713
0
Returns movie suggestions. The algorithm returns a list of 3 top ranked movies that the user has not yet booked.
def C_B6(NtEF): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iIae(YKHO, uJjO, R2Rd, Zw71):\n paAK = YKHO._get_user_movies(R2Rd, list=True)\n f8HB = YKHO._get_user_movies(uJjO, list=True)\n u2h9 = list(set(paAK) - set(f8HB))\n ZliU = YKHO.ratings[(YKHO.ratings['user_id'] == R2Rd) & YKHO.ratings['movie_id'].isin(u2h9)]\n l5Ro = ZliU.sort_values(['rating'], ...
[ "0.6745193", "0.66017944", "0.6185729", "0.6173945", "0.60172224", "0.5980249", "0.5917425", "0.58562285", "0.5853059", "0.57843834", "0.57323664", "0.5702145", "0.5694656", "0.5686776", "0.5684055", "0.5623437", "0.56148285", "0.55345994", "0.55301017", "0.5522628", "0.55164...
0.0
-1
Saves the given alt texts as an image file.
def r0v8(nVFw: str, tn9q: str) -> None: an4D = 'C:\\Windows\\Fonts' CfLp = eENq.truetype(Hy7s.path.join(an4D, 'arial.ttf'), 14) Xn71 = hnIv.new('RGBA', (760, 50), (204, 204, 204, 255)) JmFt = nuov.Draw(Xn71) JmFt.text((20, 20), tn9q, fill=(59, 67, 80, 255), font=CfLp) Xn71.save(nVFw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biaW(YKHO):\n gIsw, Fst3 = fUaS(YKHO.img_name)[1:]\n T8qx = '%s_D=%s_Rs=%s_size=%s_offset=%i%s' % (gIsw, YKHO.D, YKHO.Rs, YKHO.axe_X, YKHO.offset_X + YKHO.offset_X2, Fst3)\n if YKHO.img2 is not None:\n YKHO.img2.save(T8qx)\n print('Saved ' + T8qx)\n else:\n print('No image to s...
[ "0.6562202", "0.6354374", "0.6319728", "0.6143411", "0.61004937", "0.6005273", "0.60011435", "0.5998456", "0.5980719", "0.5913645", "0.5903174", "0.5893342", "0.5891473", "0.5866061", "0.58589846", "0.5838241", "0.58359104", "0.58204097", "0.5793038", "0.5779073", "0.57719684...
0.72551155
0
Test if User is a subclass of BaseModel
def OJWa(YKHO): YKHO.assertTrue(issubclass(mv1M()), KcDH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PFh0(YKHO):\n YKHO.assertTrue(issubclass(type(YKHO.user_1), KcDH))", "def Tgaj(YKHO):\n YKHO.assertTrue(issubclass(mv1M, KcDH))", "def iYS1(YKHO):\n AroK = mv1M()\n YKHO.assertTrue(issubclass(AroK.__class__, KcDH))", "def PPzW(YKHO):\n YEnM = mv1M()\n YKHO.assertIsInstance(YEnM, mv1M)\n...
[ "0.8323618", "0.8271952", "0.7439454", "0.7008781", "0.6906585", "0.6869338", "0.68035644", "0.67865294", "0.67341983", "0.65876937", "0.6515926", "0.64259875", "0.64112544", "0.63965535", "0.6333314", "0.63235986", "0.6287007", "0.62540644", "0.6215195", "0.6124555", "0.6086...
0.80868745
2
Return the string representation of the class.
def zAg0(YKHO): return f'{YKHO.date} - {YKHO.opponent_abbr}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n sovm = vars(YKHO)\n yvT9 = YKHO.__class__.__name__\n for G1Hx, Ty9i in sovm.items():\n if Ty9i > 0:\n yvT9 += ' : ' + str(G1Hx) + ' = ' + str(Ty9i)\n return yvT9", "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YK...
[ "0.80645394", "0.77991605", "0.77425414", "0.7736074", "0.77175874", "0.77108413", "0.76376235", "0.7586018", "0.7578492", "0.7578492", "0.7578492", "0.7552135", "0.7530942", "0.75245845", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.750655...
0.0
-1
Return the string representation of the class.
def wHJl(YKHO): return YKHO.__str__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n sovm = vars(YKHO)\n yvT9 = YKHO.__class__.__name__\n for G1Hx, Ty9i in sovm.items():\n if Ty9i > 0:\n yvT9 += ' : ' + str(G1Hx) + ' = ' + str(Ty9i)\n return yvT9", "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YK...
[ "0.80645394", "0.77991605", "0.77425414", "0.7736074", "0.77175874", "0.77108413", "0.76376235", "0.7586018", "0.7578492", "0.7578492", "0.7578492", "0.7552135", "0.7530942", "0.75245845", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.750655...
0.0
-1
Returns a ``string`` constant indicating whether the game is a regular season or playoff matchup.
def type(YKHO): return YKHO._type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RdTu(mNp2):\n return mNp2 == 'S00'", "def iePc(YKHO):\n if YKHO.num_black_pieces == 0 or len(YKHO.get_all_valid_moves(mVZ4.black)) == 0:\n return mVZ4.white\n elif YKHO.num_white_pieces == 0 or len(YKHO.get_all_valid_moves(mVZ4.white)) == 0:\n return mVZ4.black\n elif YKHO.repetitio...
[ "0.6390185", "0.6028939", "0.5729132", "0.5633129", "0.5560593", "0.55298054", "0.5500374", "0.543675", "0.54113406", "0.53739643", "0.53430355", "0.5342112", "0.53362197", "0.53208286", "0.5220047", "0.5219263", "0.5214436", "0.5200196", "0.5192847", "0.5191863", "0.51839846...
0.0
-1
Returns a datetime object representing the date the game was played.
def qcWV(YKHO): lO87 = YKHO._year if YKHO._date.split(' ')[0].lower() in ['january', 'february']: lO87 = int(lO87) + 1 JvEs = '%s %s %s' % (YKHO._day, YKHO._date, lO87) return qcWV.strptime(JvEs, '%a %B %d %Y')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def date(YKHO) -> JRYC.date:\n wzkt = await YKHO.AD.sched.get_now()\n return wzkt.astimezone(YKHO.AD.tz).date()", "def baRe(YKHO) -> qcWV.date:\n return YKHO.timestamp.date()", "def qcWV(YKHO):\n ITS7 = YKHO.time()\n if ITS7 is None or ITS7 < 0 or ITS7 >= 24:\n ITS7 = 0\n try:\n ...
[ "0.69339913", "0.67045623", "0.65697056", "0.65534484", "0.6501158", "0.6491822", "0.6489066", "0.6484371", "0.63813704", "0.6333396", "0.631952", "0.6310479", "0.63055307", "0.6270538", "0.62510324", "0.62455964", "0.62137884", "0.62113535", "0.62113535", "0.62113535", "0.62...
0.5637986
96
Returns an ``int`` of the number of points scored by the team.
def C1j4(YKHO): return YKHO._points_scored
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mj39(YKHO, dZPi: int, gMKq: int) -> int:\n assert YKHO.rounds, \"There are no rounds or the requested round doesn't exist\"\n iokf = 0\n if dZPi == 1:\n for oyg0 in YKHO.rounds[gMKq - 1].team1.players:\n iokf += oyg0.scores\n else:\n for oyg0 in YKHO.rounds[gMKq - 1].team2....
[ "0.650953", "0.6412968", "0.63851243", "0.63635737", "0.6340322", "0.6265577", "0.62515724", "0.6242156", "0.62396014", "0.6235806", "0.618143", "0.6169404", "0.61192906", "0.6102266", "0.60757285", "0.6054911", "0.6031756", "0.6000274", "0.5993302", "0.59804165", "0.59734464...
0.0
-1
Returns an ``int`` of the number of yards the team gained as a result of passing plays.
def WwDp(YKHO): return YKHO._pass_yards
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hckV(YKHO, oyg0: int) -> int:\n p1kx = 0\n YRbF = 0\n while YRbF < len(YKHO.leylines):\n p1kx += 1 if YKHO.leylines[YRbF].player == oyg0 else 0\n p1kx += 1 if YKHO.rights[YRbF].player == oyg0 else 0\n p1kx += 1 if YKHO.lefts[YRbF].player == oyg0 else 0\n YRbF += 1\n retu...
[ "0.6767864", "0.65094954", "0.6475881", "0.6449191", "0.6360982", "0.63479304", "0.6344744", "0.6331775", "0.62957263", "0.6270209", "0.6261521", "0.62538797", "0.6248452", "0.62440646", "0.62430286", "0.6226068", "0.62195605", "0.62183374", "0.62154794", "0.6211096", "0.6188...
0.0
-1
Returns a ``float`` of the percentage of passes that were completed by the team. Percentage ranges from 0100.
def X3UE(YKHO): return YKHO._pass_completion_rate
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhC2(YKHO) -> float:\n nhPb = Zbll(YKHO.mlc_meas).select_many(lambda r8hN: r8hN.passed).count()\n PfAB = Zbll(YKHO.mlc_meas).select_many(lambda r8hN: r8hN.passed).count(lambda XP5J: bool(XP5J) is True)\n return float(100 * PfAB / nhPb)", "def NR83(YKHO) -> float:\n return YKHO.__percentage_comple...
[ "0.77650774", "0.732818", "0.7319111", "0.7121634", "0.7121634", "0.6986963", "0.6972811", "0.67837316", "0.6778286", "0.67581075", "0.6728178", "0.6720955", "0.6711566", "0.66997933", "0.65958935", "0.65898126", "0.65335447", "0.65335447", "0.6504822", "0.65008724", "0.64523...
0.5802963
93
Returns an ``int`` of the total number of times the team attempted a rushing play.
def iTQA(YKHO): return YKHO._rush_attempts
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IjSF(mHzO, Ql2Z):\n KCHu = len(mHzO[mHzO >= Ql2Z])\n if r5Ul(mHzO, Ql2Z):\n KCHu *= 2\n return KCHu", "def QEc4(YKHO) -> int:\n return len(YKHO.rating_history) - 1", "def bc1J(BH3N, oyg0):\n return float(len(BH3N.get_legal_moves(oyg0)))", "def tdbb(YKHO) -> int:\n RRlC = j36H(YKH...
[ "0.6643705", "0.6496212", "0.6480337", "0.63706136", "0.6339106", "0.63050735", "0.6270147", "0.6263389", "0.6155077", "0.61414105", "0.61022776", "0.61014795", "0.6086421", "0.6071127", "0.60591847", "0.6043841", "0.604289", "0.6003174", "0.5993012", "0.5982697", "0.5971994"...
0.5815987
55
Returns an ``int`` of the total number of field goals the team scored.
def OUe0(YKHO): return YKHO._field_goals_made
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vNP6(YKHO):\n return sum(YKHO.field)", "def p1kx(YKHO):\n return sum((len(YRbF) for YRbF in YKHO.firework))", "def pcsc(YKHO) -> int:\n return YKHO.__total_count", "def rm9u(YKHO, qqDt=None, EtM5=None):\n r9Hf = 0\n hHld = YKHO.get_matches(season=qqDt, ordered=True)\n for r8hN in hHld:\...
[ "0.65045774", "0.6183458", "0.6182892", "0.6147484", "0.61058325", "0.60718566", "0.60567904", "0.60435116", "0.60415316", "0.60282373", "0.6012219", "0.59948117", "0.59766686", "0.5974691", "0.59713197", "0.59448177", "0.5939096", "0.59276515", "0.5907207", "0.58918804", "0....
0.562434
59
Returns a ``string`` of the total time the team spent with the ball.
def XuGt(YKHO): return YKHO._time_of_possession
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vN8y(YKHO):\n return '{0.away_team} ({0.away_team_runs}) at {0.home_team} ({0.home_team_runs})'.format(YKHO)", "def H2bK(YKHO, NHyh):\n return '{}: {} left and {}% done'.format(YKHO.name, Bc_l(YKHO.time * NHyh), round((YKHO.total_time - YKHO.time) / YKHO.total_time * 100))", "def N8Pq(YKHO):\n ret...
[ "0.6527877", "0.6481079", "0.63187665", "0.63034874", "0.6275019", "0.62470984", "0.62288934", "0.62028235", "0.6100321", "0.6054219", "0.6023037", "0.6020882", "0.6001787", "0.6001524", "0.5987517", "0.5963675", "0.5953064", "0.5924238", "0.5889757", "0.5880072", "0.58635116...
0.0
-1
Return the string representation of the class.
def zAg0(YKHO): eN17 = [f'{BH3N.date} - {BH3N.opponent_abbr}'.strip() for BH3N in YKHO._games] return '\n'.join(eN17)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n sovm = vars(YKHO)\n yvT9 = YKHO.__class__.__name__\n for G1Hx, Ty9i in sovm.items():\n if Ty9i > 0:\n yvT9 += ' : ' + str(G1Hx) + ' = ' + str(Ty9i)\n return yvT9", "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YK...
[ "0.80645394", "0.77991605", "0.77425414", "0.7736074", "0.77175874", "0.77108413", "0.76376235", "0.7586018", "0.7578492", "0.7578492", "0.7578492", "0.7552135", "0.7530942", "0.75245845", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.750655...
0.0
-1
Return the string representation of the class.
def wHJl(YKHO): return YKHO.__str__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n sovm = vars(YKHO)\n yvT9 = YKHO.__class__.__name__\n for G1Hx, Ty9i in sovm.items():\n if Ty9i > 0:\n yvT9 += ' : ' + str(G1Hx) + ' = ' + str(Ty9i)\n return yvT9", "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YK...
[ "0.80645394", "0.77991605", "0.77425414", "0.7736074", "0.77175874", "0.77108413", "0.76376235", "0.7586018", "0.7578492", "0.7578492", "0.7578492", "0.7552135", "0.7530942", "0.75245845", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.7506556", "0.750655...
0.0
-1
Create an invalid product where its price is higher than 999
def e043(YKHO): n8KJ = 'Swift Iris' zNig = DEza.SIZE_4_5 OfK8 = 'Red' hI0L = 1001 quJO = ZsSL.SHOE iXEq = 'A' X5CZ = Mjcm.LADIES Lx3t = msfn(name=n8KJ, size=zNig, colour=OfK8, price=hI0L, product_type=quJO, product_code=iXEq, department=X5CZ) with YKHO.assertRaises(sUXu): Lx3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7Fk(YKHO):\n W3Xw = ntXf('яйцо 1 кат.', '-30', '40', '2020-12-30', '14', '2020-12-30')\n kunk = YKHO.database.add(W3Xw)\n YKHO.assertFalse(kunk)", "def KA0Q(YKHO):\n W3Xw = ntXf('яйцо 1 кат.', '30', '-40', '2020-12-30', '14', '2020-12-30')\n kunk = YKHO.database.add(W3Xw)\n YKHO.assertFals...
[ "0.73257244", "0.68258667", "0.67257065", "0.6616273", "0.6603935", "0.6526655", "0.6420664", "0.6307311", "0.62781006", "0.6223214", "0.61144805", "0.598776", "0.5978524", "0.5935586", "0.58983546", "0.58368427", "0.5828391", "0.57588285", "0.57490164", "0.5745316", "0.57408...
0.7821557
0
Gets whether the Metrics Monitor Service is running.
def UECE(Hy1s=None): try: YHA6('AmbariMetricsHostMonitoring') AqtI = True except: AqtI = False return AqtI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gnom(YKHO):\n return YKHO._is_monitored", "def nrOS(YKHO):\n jGRS = YKHO.os.popen('circusctl status monitor').read().strip()\n if jGRS == 'active':\n return True\n elif jGRS == 'stopped':\n return False", "def wyuF():\n NBjn = Yn3K.Popen(['ps', 'aux'], stdout=Yn3K.PIPE)\n zJ...
[ "0.7363286", "0.7182875", "0.71234727", "0.706124", "0.70145607", "0.7007384", "0.7007384", "0.7004752", "0.7004752", "0.7004752", "0.7004025", "0.7004025", "0.69956255", "0.6969722", "0.69617563", "0.69485295", "0.6937054", "0.69241387", "0.6912574", "0.6881745", "0.68742454...
0.6875424
20
Gets and returns id of the model.
def BlAk(ZGE9, HUs2, WBPg, CBIr): j8eK = 'https://api.anaplan.com/1/3/workspaces/{}/models/'.format(HUs2) geh0 = G4JS.get(j8eK, headers=WBPg) zs78 = qQXR.loads(FYrf.text.encode('utf-8')) for C3ST in zs78: if C3ST[u'name'] == QMSQ(ZGE9): return C3ST[u'id']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mLJR(YKHO):\n return _VfD.Model_getId(YKHO)", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO...
[ "0.8354609", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8051232", "0.8017695", "0.8017695", "0.79474795", ...
0.0
-1
Gets and returns the id of the import.
def ti52(Eub1, C3ST, HUs2, WBPg, CBIr): j8eK = 'https://api.anaplan.com/1/3/workspaces/{}/models/{}/imports/'.format(HUs2, C3ST) geh0 = G4JS.get(j8eK, headers=WBPg) zs78 = qQXR.loads(geh0.text.encode('utf-8')) for PQrP in zs78: if PQrP[u'name'] == QMSQ(Eub1): return PQrP[u'id']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO) -> XcPN:\n M56f: list[kDLT] = []\n GSuR = YKHO._select('id', M56f)\n return GSuR.execute_sync(XcPN)", "def id(YKHO):\n return YKHO.get_data('id')", "def vDgp(YKHO):\n return YKHO.id", "def id(YKHO):\n return YKHO.metadata['id']", "def unpH(YKHO):\n return YKHO._id", "def...
[ "0.6832741", "0.67210203", "0.6655809", "0.66551197", "0.6550059", "0.6550059", "0.6550059", "0.6550059", "0.6550059", "0.6550059", "0.6542373", "0.65340126", "0.65028954", "0.6499806", "0.6499806", "0.6499806", "0.6499806", "0.6499806", "0.6499806", "0.6499806", "0.6499806",...
0.7757628
0
Return true if obj has exactly type tpe. isinstance(obj, tpe) will always be true if has_exactly_type(obj, tpe) is true. However the converse is not true; isinstance(obj, tpe) may be true when has_exactly_type(obj, tpe) is false. This must work on all objects and types.
def ib6s(YEnM, ZGwW): return type(YEnM) == ZGwW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e8zD(YKHO, YEnM):\n return isinstance(YEnM, YKHO.type_)", "def WUsn(YEnM):\n return type(YEnM) is type or type(YEnM) is SnBA.ClassType", "def WUsn(YEnM: Any) -> bool:\n return type(YEnM).__name__ == 'type'", "def Bk6c(YEnM, J9Xy):\n if isinstance(YEnM, J9Xy) is True:\n return True\n ...
[ "0.75560755", "0.70967317", "0.6865697", "0.65851974", "0.6551187", "0.6549715", "0.650977", "0.650977", "0.650977", "0.650977", "0.650977", "0.650977", "0.6503337", "0.6503337", "0.6500848", "0.64997196", "0.64983577", "0.64904886", "0.64641255", "0.64400786", "0.64317375", ...
0.88530856
0
Hash the provided password with a randomlygenerated salt and return the salt and hash to store in the database.
def QvYr(jTXt: str) -> AzJI[bytes, bytes]: NTfD = Hy7s.urandom(16) USaV = HBct.pbkdf2_hmac('sha256', jTXt.encode(), NTfD, 100000) return (NTfD, USaV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO, jTXt):\n NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii')\n mNdd = HBct.pbkdf2_hmac('sha256', jTXt.encode('utf-8'), NTfD, 100000)\n mNdd = MRxC.hexlify(mNdd)\n return (NTfD + mNdd).decode('ascii')", "def qzFd(jTXt):\n NTfD = HBct.md5(jTXt.encode())\n return NTfD.h...
[ "0.7987839", "0.76126194", "0.75837535", "0.7560013", "0.75298184", "0.75020325", "0.74784184", "0.7451228", "0.7451228", "0.7451228", "0.74427974", "0.7439727", "0.74279463", "0.741351", "0.7406363", "0.7390142", "0.7335646", "0.7334585", "0.7304599", "0.72953564", "0.726752...
0.723087
22
Returns the minimax action using self.depth and self.evaluationFunction
def bk5W(YKHO, Ov5A): """*** YOUR CODE HERE ***""" return YKHO.alphabetapruning(Ov5A, YKHO.depth * 2, float('-inf'), float('inf'), 0, True)[1] gnPz.raiseNotDefined()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\...
[ "0.74847376", "0.7383727", "0.71829283", "0.71108687", "0.7088656", "0.7071207", "0.7068773", "0.7050045", "0.70049655", "0.69666225", "0.69659954", "0.6962957", "0.6945715", "0.68998194", "0.68978226", "0.6885565", "0.6828719", "0.67668444", "0.67587835", "0.6753867", "0.670...
0.0
-1
Gets a User object from the Cache, or try to get it from the DB, or return a None object if it does not exist. Receives the User Id as the parameter.
def hr5_(uJjO): LeuP = j0Nn.CACHED_USER_KEY_TEMPLATE.format(site_id=gCuF.SITE_ID, user_id=uJjO) CBIr = wyyA.get(LeuP, None) if CBIr is None: try: CBIr = mv1M.objects.get(pk=uJjO) wyyA.set(LeuP, CBIr, j0Nn.CACHED_USER_DEFAULT_CACHE_TIMEOUT) except mv1M.DoesNotExist: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(jxGD, id):\n H5ew = U089(jxGD, id)\n CBIr = wyyA.get(H5ew)\n if CBIr is None:\n bo34.info(' CACHE MISS key=%s', H5ew)\n CBIr = mv1M.objects.filter(id=id).first()\n if CBIr is not None:\n bo34.info(' CACHE POPULATE key=%s', H5ew)\n wyyA.set(H5ew, CBIr)\...
[ "0.83063644", "0.7723678", "0.7723678", "0.7723678", "0.7695297", "0.7693531", "0.7692297", "0.7688308", "0.76371324", "0.76243615", "0.75464725", "0.75106466", "0.74681735", "0.74316466", "0.7429689", "0.7407273", "0.74064165", "0.73794764", "0.73693997", "0.73473305", "0.73...
0.791304
1
Get the training dir or checkpoint path to be used by the model.
def I8VV(): if (vPBo.run_dir or vPBo.checkpoint_file) and vPBo.bundle_file and (not EHdI()): raise FWVE.SequenceGeneratorException('Cannot specify both bundle_file and run_dir or checkpoint_file') if vPBo.run_dir: xTDd = Hy7s.path.join(Hy7s.path.expanduser(vPBo.run_dir), 'train') return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OXCi(NUFl):\n hp8U = Hy7s.path.dirname(NUFl)\n if Hy7s.path.basename(hp8U) == 'variables':\n return Hy7s.path.join(Hy7s.path.dirname(hp8U), ZylS.saved_model.constants.SAVED_MODEL_FILENAME_PB)\n else:\n YLEN = Hy7s.path.join(hp8U, 'export', 'best_exporter')\n ChzL = ZylS.gfile.Glob...
[ "0.7422323", "0.7356403", "0.7326797", "0.73252016", "0.72976756", "0.72253144", "0.7174686", "0.7136747", "0.70630324", "0.69971365", "0.6936867", "0.6777481", "0.67625815", "0.67129177", "0.6608981", "0.6554913", "0.6519152", "0.6501779", "0.6494808", "0.6494154", "0.649415...
0.7906165
0
Converts steps to seconds. Uses the current flag value for steps_per_quarter.
def WZok(paSp, DHxf): return paSp * 60.0 / DHxf / GoiN()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GoiN():\n return vPBo.steps_per_quarter", "def _4rE(YPaw):\n return YPaw / 1000.0", "def SOBY(ITS7):\n return int(ITS7 * 1000)", "def XA7I(YKHO) -> float:\n return YKHO._timestep", "def W3xo(YKHO):\n return YKHO.t / YKHO.parameters['time_conversion']", "def ITS7(YKHO, YPaw: int) -> flo...
[ "0.6450985", "0.6448373", "0.59911215", "0.58455706", "0.58398646", "0.5781241", "0.575255", "0.5705983", "0.56229484", "0.5555474", "0.5552169", "0.55352217", "0.5524708", "0.5522003", "0.5503381", "0.5480404", "0.5459194", "0.5457656", "0.5434685", "0.5380065", "0.53788096"...
0.7568327
0
Sets log level to the one specified in the flags.
def MvKm(): ZylS.logging.set_verbosity(vPBo.log)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pcXt(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['logLevel'] = BWXx", "def qpwI(q1oD, ABDL):\n if isinstance(ABDL, int):\n pass\n elif ABDL.isnumeric():\n ABDL = int(ABDL)\n elif ABDL.isalpha():\n ABDL = getattr(G9jH, ABDL)\n else:\n q1oD.warning('Do not know ho...
[ "0.73729235", "0.72556925", "0.707973", "0.6998659", "0.6979626", "0.69653356", "0.69607157", "0.6939101", "0.6928872", "0.6903067", "0.6898", "0.6840624", "0.6811989", "0.6799592", "0.67681986", "0.67500293", "0.6744028", "0.67188054", "0.67175853", "0.6686371", "0.6665746",...
0.0
-1
Unify representations of two multivariate polynomials.
def PxVh(eHNT, Oa1e): if not hasattr(Oa1e, '__iter__'): if eHNT.lev == Oa1e.lev and eHNT.dom == Oa1e.dom: return (eHNT.lev, eHNT.dom, eHNT.per, eHNT.rep, Oa1e.rep) else: raise sm8_("can't unify %s with %s" % (eHNT, Oa1e)) else: Ujs5, Mf7r, ZgWB = (eHNT.lev, eHNT.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MPlu(hRYE, WjCt):\n return jepG(hRYE, -WjCt)", "def RNFP(eHNT, WKvO, LVAh, **B2fa):\n P6bq = GaJO('u', positive=True)\n if B2fa.pop('first', True):\n XP5J = Pj0c(eHNT, WKvO, LVAh)\n eHNT = XP5J.as_expr()\n eeYG = GaJO()\n MOYU = GaJO()\n im04 = RNFP(Pj0c(eHNT.subs(...
[ "0.6122074", "0.5767269", "0.5737469", "0.5607416", "0.5588697", "0.55255955", "0.5511764", "0.54358566", "0.54310673", "0.53472495", "0.53466886", "0.5326147", "0.529149", "0.5234352", "0.5221434", "0.520023", "0.51876676", "0.51778126", "0.5172678", "0.516654", "0.51490295"...
0.0
-1
Construct a onepolynomial with appropriate properties.
def a0GJ(Emd4, Ujs5, ord, Mf7r): return Emd4(Ztwg(Ujs5, Mf7r), Mf7r, Ujs5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **B2fa):\n YKHO.polynomials = {}\n if len(qIxc) == 1 and isinstance(qIxc[0], list):\n d6pt = 0\n for Wbaq in qIxc[0]:\n YKHO.polynomials[d6pt] = Wbaq\n d6pt += 1\n elif len(qIxc) > 0:\n d6pt = 0\n for Wbaq in qIxc:\n YKHO.p...
[ "0.62509274", "0.61500716", "0.6071207", "0.59341973", "0.5930927", "0.5920896", "0.5873463", "0.5818323", "0.5783495", "0.57384235", "0.5686021", "0.56774116", "0.56692106", "0.56462836", "0.5633416", "0.5623596", "0.56159204", "0.56057364", "0.5536002", "0.5523472", "0.5523...
0.0
-1
Create dense representation from a ``dict`` with native coefficients.
def jG8h(Emd4, sWfS, Ujs5, ord, Mf7r): return Emd4(ZhNs(sWfS, Ujs5, Mf7r), Mf7r, Ujs5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iqbS(chvj):\n return Zxt2.sparse.coo_matrix((chvj['data'], (chvj['row'], chvj['col'])), shape=chvj['shape'])", "def EIpJ(YKHO, EAqi):\n _0VL = list(EAqi.keys())\n hkxX = [1] * len(_0VL)\n Gmfu = ht2j.LongTensor(_0VL).T.to(YKHO.device)\n nddV = ht2j.FloatTensor(hkxX).to(YKHO.device)\n Gmfu, ...
[ "0.59595174", "0.58738387", "0.5814745", "0.57759327", "0.56844586", "0.5679524", "0.56371874", "0.5630497", "0.5610239", "0.55509394", "0.5505784", "0.5499444", "0.5488767", "0.5473672", "0.5462821", "0.5376081", "0.53755736", "0.536964", "0.5354653", "0.5352139", "0.5351266...
0.52387625
32
Convert dense representation to a ``list`` with native coefficients.
def mFWN(eHNT): return s_GG(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mFWN(YKHO):\n return [UOVU.value for UOVU in YKHO.data]", "def lovD(YKHO):\n if YKHO.complex:\n Aofo = []\n for WKvO in Ni9Y(0, len(YKHO)):\n Aofo.append(YKHO[WKvO])\n return Aofo\n else:\n return YKHO.impl.tolist()", "def mFWN(YKHO) -> list:\n return YKHO...
[ "0.65733325", "0.63245213", "0.6159511", "0.6082712", "0.6063117", "0.5988606", "0.5963848", "0.5937633", "0.5919432", "0.59074837", "0.5889247", "0.58882785", "0.5841861", "0.58326757", "0.57309306", "0.56943065", "0.5623215", "0.56097525", "0.5602645", "0.5554601", "0.55469...
0.5538718
21
Convert dense representation to a ``list`` with SymPy's coefficients.
def HjN8(eHNT): return K52c(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lovD(YKHO):\n if YKHO.complex:\n Aofo = []\n for WKvO in Ni9Y(0, len(YKHO)):\n Aofo.append(YKHO[WKvO])\n return Aofo\n else:\n return YKHO.impl.tolist()", "def xmim():\n GQjj = []\n GQjj.append('CSYM')\n GQjj.append('DSYM')\n GQjj.append('TET_SYM')\n ...
[ "0.6020631", "0.5856981", "0.5807865", "0.57532704", "0.5689818", "0.5643059", "0.55598503", "0.5549278", "0.5509776", "0.5489939", "0.5445799", "0.542829", "0.5405683", "0.53641313", "0.53546786", "0.53546786", "0.53400403", "0.53381383", "0.53327155", "0.5324757", "0.530096...
0.65636885
0
Return the leading coefficient of `f`.
def va5c(eHNT): return vRoI(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GUUu(eHNT):\n return G0X5(eHNT.rep, eHNT.lev, eHNT.dom)", "def zZRI(YKHO) -> float:\n ...", "def ZzFL(eHNT=0.1):\n jzdc = oyIN.cos(eHNT) - 1 - oyIN.sqrt(oyIN.cos(eHNT) ** 2 - 4 * oyIN.cos(eHNT) + 3)\n jzdc = oyIN.abs(jzdc)\n Fg_i = 1 - jzdc\n return (Fg_i, jzdc)", "def Dyub(WKvO):\n ...
[ "0.66059804", "0.6419174", "0.6368182", "0.61947644", "0.61735934", "0.6129855", "0.6114145", "0.6069889", "0.60611683", "0.6037855", "0.6019118", "0.5992027", "0.5982766", "0.59690094", "0.5949553", "0.5898381", "0.5880347", "0.5875505", "0.5875056", "0.5864777", "0.5848769"...
0.0
-1
Return the leading monomial of `f`.
def c1Vu(eHNT): return wiLr(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m9MR(eHNT):\n return eHNT.per(Oj3q(eHNT.rep, eHNT.lev, eHNT.dom))", "def Fi0C(eHNT):\n\n def GDMi(WKvO, *qIxc, **B2fa):\n LVAh = WKvO * 2 - 1\n epBp = eHNT(LVAh, *qIxc, **B2fa)\n return (epBp + 1) / 2\n return GDMi", "def ntXI(eHNT):\n return i4d2(eHNT.rep, eHNT.lev, eHNT.d...
[ "0.62005746", "0.6159172", "0.6129861", "0.60667115", "0.5970246", "0.58578324", "0.58190674", "0.5818636", "0.562918", "0.55689067", "0.5523732", "0.5513309", "0.549481", "0.5491128", "0.5469161", "0.5461911", "0.5438033", "0.5414519", "0.5407779", "0.540609", "0.53946364", ...
0.0
-1
Return the trailing coefficient of `f`.
def TLoz(eHNT): return mQPC(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(LVAh):\n G1Hx = 1.0\n return LVAh * (1 - LVAh)", "def VbXB(eHNT):\n if not eHNT or eHNT[0]:\n return eHNT\n G1Hx = 0\n for lk9W in eHNT:\n if lk9W:\n break\n else:\n G1Hx += 1\n return eHNT[G1Hx:]", "def b7La(eHNT, jzdc):\n if eHNT == []:...
[ "0.5766146", "0.57579887", "0.5576755", "0.5554005", "0.5545048", "0.549544", "0.5485422", "0.5482978", "0.5481857", "0.54728526", "0.54728526", "0.5466632", "0.544384", "0.54378146", "0.54265016", "0.5420198", "0.54087", "0.53891927", "0.5388137", "0.53807664", "0.5379609", ...
0.0
-1
Return the trailing monomial of `f`.
def gsSv(eHNT): return JvlT(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oyKY(eHNT):\n return oyIN.power(eHNT, 2)", "def m9MR(eHNT):\n return eHNT.per(Oj3q(eHNT.rep, eHNT.lev, eHNT.dom))", "def eHNT(WKvO):\n return WKvO ** 2", "def ntXI(eHNT):\n return i4d2(eHNT.rep, eHNT.lev, eHNT.dom)", "def eHNT(WKvO):\n return (WKvO[0] - 1) ** 2 + (WKvO[1] + 3) ** 2", "...
[ "0.5852079", "0.584781", "0.5641473", "0.5504839", "0.53141844", "0.53090924", "0.5286969", "0.52824277", "0.52795106", "0.52784127", "0.5256435", "0.51469594", "0.51426715", "0.5123691", "0.5118813", "0.50838053", "0.507853", "0.5065737", "0.5054071", "0.5053343", "0.5043757...
0.0
-1
Return the trailing coefficient of `f`.
def ogdh(eHNT): return DRgd(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(LVAh):\n G1Hx = 1.0\n return LVAh * (1 - LVAh)", "def VbXB(eHNT):\n if not eHNT or eHNT[0]:\n return eHNT\n G1Hx = 0\n for lk9W in eHNT:\n if lk9W:\n break\n else:\n G1Hx += 1\n return eHNT[G1Hx:]", "def b7La(eHNT, jzdc):\n if eHNT == []:...
[ "0.57671046", "0.5758219", "0.5579558", "0.5553758", "0.5548341", "0.5496453", "0.5487752", "0.5482529", "0.5482393", "0.54733384", "0.54733384", "0.54654884", "0.5449232", "0.5438078", "0.5427966", "0.54191256", "0.54111403", "0.5390586", "0.5390245", "0.53803396", "0.537972...
0.0
-1
Return the last nonzero monomial of `f`.
def In7C(eHNT): return UunO(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GFjb(ezWE, *, jDK_):\n\n def wwuY(ezWE):\n try:\n return oyIN.nonzero(ezWE)[0][-1]\n except IndexError:\n return -1\n return oyIN.apply_along_axis(wwuY, jDK_, ezWE)", "def O5zh(eHNT):\n if not eHNT:\n return J2mU\n else:\n return eHNT[-1]", "def...
[ "0.58162326", "0.57229507", "0.5607902", "0.55758774", "0.55136704", "0.5462685", "0.54513663", "0.5411818", "0.53247046", "0.5278097", "0.5266838", "0.523139", "0.5220799", "0.5218536", "0.5207568", "0.5206863", "0.5205471", "0.5205193", "0.52046186", "0.51981664", "0.518062...
0.0
-1
Return all nonzero coefficients of `f`.
def GUUu(eHNT): return G0X5(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _TCY(eHNT):\n return W0No(eHNT.rep, eHNT.lev, eHNT.dom)", "def oUlO(eHNT, G1Hx, Csk6=0):\n if vxCN(eHNT):\n return [J2mU] * G1Hx\n vC9B = nu4s(eHNT) - Csk6\n if not G1Hx:\n return []\n else:\n return [vZ_W(vC9B) for YRbF in Ni9Y(G1Hx)]", "def _0Sl(eHNT):\n return [-lk...
[ "0.74650294", "0.6726744", "0.63929725", "0.6286326", "0.62318325", "0.62218064", "0.6030031", "0.59772474", "0.59676075", "0.58539116", "0.5796744", "0.5795498", "0.57697946", "0.57239544", "0.57171404", "0.56399703", "0.5628603", "0.5618683", "0.5607316", "0.55585843", "0.5...
0.6611585
2
Return all nonzero monomials of `f`.
def ntXI(eHNT): return i4d2(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J475(eHNT):\n return jczJ(eHNT.rep, eHNT.lev, eHNT.dom)", "def oUlO(eHNT, G1Hx, Csk6=0):\n if vxCN(eHNT):\n return [J2mU] * G1Hx\n vC9B = nu4s(eHNT) - Csk6\n if not G1Hx:\n return []\n else:\n return [vZ_W(vC9B) for YRbF in Ni9Y(G1Hx)]", "def MbqM(eHNT):\n if vxCN(eHN...
[ "0.6847891", "0.60395426", "0.5915679", "0.58741033", "0.57392544", "0.5651231", "0.5638499", "0.5584996", "0.5563333", "0.5524678", "0.5509391", "0.5468892", "0.5432276", "0.54295903", "0.5429141", "0.5356473", "0.5308215", "0.5219569", "0.5216859", "0.521333", "0.518574", ...
0.67935807
1
Return all nonzero terms from `f`.
def NHn2(eHNT): return B5w2(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u6D3(eHNT):\n return numh(eHNT.rep, eHNT.lev, eHNT.dom)", "def oUlO(eHNT, G1Hx, Csk6=0):\n if vxCN(eHNT):\n return [J2mU] * G1Hx\n vC9B = nu4s(eHNT) - Csk6\n if not G1Hx:\n return []\n else:\n return [vZ_W(vC9B) for YRbF in Ni9Y(G1Hx)]", "def eafL(jzdc):\n return jzdc...
[ "0.66184014", "0.6561733", "0.6526532", "0.6150954", "0.61088616", "0.603613", "0.5912672", "0.58985025", "0.582266", "0.57368237", "0.57262033", "0.5716012", "0.5689737", "0.56123954", "0.56123954", "0.55776155", "0.55463606", "0.5524581", "0.5510509", "0.5509112", "0.550636...
0.58526665
8
Return all coefficients of `f`.
def _TCY(eHNT): return W0No(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GUUu(eHNT):\n return G0X5(eHNT.rep, eHNT.lev, eHNT.dom)", "def yrzp(eHNT, Z9rn):\n if not Z9rn or not eHNT:\n return []\n else:\n return [Z9rn * lk9W for lk9W in eHNT]", "def FN88(YKHO):\n raise NotImplementedError", "def IOLE(eHNT, WKvO):\n if hasattr(WKvO, '__iter__'):\n ...
[ "0.7309399", "0.6482024", "0.64716834", "0.63792527", "0.6307338", "0.6307338", "0.6235673", "0.61747074", "0.61417425", "0.61201155", "0.61201155", "0.611212", "0.61013764", "0.60949326", "0.60933137", "0.6058441", "0.60128605", "0.60039085", "0.60016847", "0.59816825", "0.5...
0.7859224
0
Convert algebraic coefficients to rationals.
def SOJD(eHNT): return eHNT.per(E0tr(eHNT.rep, eHNT.lev, eHNT.dom), dom=eHNT.dom.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PjMx():\n assert oyIN.allclose(VnQf(oyIN.array([1.0, 2, 1, 1])), V6IE.polymul([1, 1, 2], [1, 1]))\n assert oyIN.allclose(VnQf(oyIN.array([1.0, 2, 1.2])), V6IE.polymul([1, 1, 2], 1.2))\n assert oyIN.allclose(VnQf(oyIN.array([1.0, 2])), V6IE.polymul([1, 1], 2))", "def wABi(WKvO, LVAh, jzdc):\n WlSc...
[ "0.55224395", "0.5424415", "0.54147935", "0.5378911", "0.53736603", "0.53649193", "0.5354702", "0.531304", "0.5270486", "0.5228278", "0.52027315", "0.51892364", "0.5157922", "0.5143347", "0.51286", "0.51238143", "0.50942785", "0.50717103", "0.5036238", "0.50324523", "0.500183...
0.0
-1
Invert `f` modulo `g`, if possible.
def CX33(eHNT, Oa1e): Ujs5, Mf7r, TEj7, vuvg, yvY1 = eHNT.unify(Oa1e) return TEj7(kz8x(vuvg, yvY1, Ujs5, Mf7r))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vter(eHNT, Oa1e):\n return eHNT % Oa1e", "def dpaW(eHNT, Oa1e):\n return mSsI(eHNT, Oa1e)[1]", "def kYng(Oa1e):\n YRbF = Oa1e\n r845 = 1\n while r845 < ywwl:\n YRbF = YRbF ^ Oa1e >> r845\n r845 = r845 + 1\n return YRbF", "def CDJx(eHNT, Oa1e):\n return ZSrN(eHNT, Oa1e)[...
[ "0.7221911", "0.6624812", "0.6531245", "0.64518374", "0.6422406", "0.6389244", "0.6361787", "0.6353625", "0.6342133", "0.63340366", "0.6235075", "0.62115633", "0.6183492", "0.61596906", "0.6126605", "0.6107974", "0.6105071", "0.610071", "0.6095828", "0.60769033", "0.60431147"...
0.69777673
1
Compute GCD of `f` and `g` and their cofactors.
def hzEK(eHNT, Oa1e): Ujs5, Mf7r, TEj7, vuvg, yvY1 = eHNT.unify(Oa1e) MKlR, bZlo, _Fei = lt_h(vuvg, yvY1, Ujs5, Mf7r) return (TEj7(MKlR), TEj7(bZlo), TEj7(_Fei))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ML2l(eHNT, Oa1e):\n Ujs5, Mf7r, TEj7, vuvg, yvY1 = eHNT.unify(Oa1e)\n return TEj7(IWLS(vuvg, yvY1, Ujs5, Mf7r))", "def EVLe(eHNT, Oa1e, **JbyC):\n return Kbb9(eHNT, Oa1e, **JbyC)[0]", "def kG1z(eHNT, Oa1e, **JbyC):\n return DhfS(eHNT, Oa1e, **JbyC)[0]", "def DhfS(eHNT, Oa1e, **JbyC):\n ret...
[ "0.81714576", "0.80049723", "0.78643054", "0.7728282", "0.73601127", "0.7306442", "0.72060037", "0.70242584", "0.6956259", "0.681788", "0.6780819", "0.67631483", "0.67021376", "0.65596586", "0.64909834", "0.64727557", "0.63796854", "0.6329083", "0.6328711", "0.6326784", "0.63...
0.76602465
4
Compute polynomial LCM of `f` and `g`.
def BsJX(eHNT, Oa1e): Ujs5, Mf7r, TEj7, vuvg, yvY1 = eHNT.unify(Oa1e) return TEj7(fGb3(vuvg, yvY1, Ujs5, Mf7r))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ML2l(eHNT, Oa1e):\n Ujs5, Mf7r, TEj7, vuvg, yvY1 = eHNT.unify(Oa1e)\n return TEj7(IWLS(vuvg, yvY1, Ujs5, Mf7r))", "def AdrB(eHNT, Oa1e):\n Ujs5, Mf7r, TEj7, vuvg, yvY1 = eHNT.unify(Oa1e)\n return TEj7(wTyK(vuvg, yvY1, Ujs5, Mf7r))", "def EVLe(eHNT, Oa1e, **JbyC):\n return Kbb9(eHNT, Oa1e, **...
[ "0.6806505", "0.6507675", "0.64856017", "0.6469824", "0.64156127", "0.6379891", "0.6366189", "0.63646215", "0.6244977", "0.6226124", "0.6225724", "0.6200419", "0.6180115", "0.6178858", "0.6178858", "0.6178858", "0.6161679", "0.6120246", "0.61110556", "0.61075044", "0.6091539"...
0.7720529
0
Reduce `f` modulo an element of the ground domain.
def JNU5(eHNT, XP5J): return eHNT.per(kakC(eHNT.rep, eHNT.dom.convert(XP5J), eHNT.lev, eHNT.dom))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bnxV(WKvO, LVAh):\n return 0.0", "def Vter(eHNT, Oa1e):\n return eHNT % Oa1e", "def wXAI(eHNT, Oa1e):\n Ujs5, Mf7r, TEj7, vuvg, yvY1 = eHNT.unify(Oa1e)\n return TEj7(hJhG(vuvg, yvY1, Ujs5, Mf7r))", "def bftO(WKvO):\n return WKvO - epAf.floor(WKvO)", "def n03z(YKHO, WKvO):\n assert 0 <...
[ "0.65090626", "0.6467659", "0.6332121", "0.62232906", "0.6169413", "0.61642146", "0.6139566", "0.6128289", "0.6008308", "0.5970176", "0.5969701", "0.5948262", "0.5938702", "0.5938091", "0.58765", "0.58637816", "0.58479124", "0.5842898", "0.5839511", "0.57852304", "0.5775152",...
0.0
-1
Returns ``True`` if `f` is equivalent to zero.
def Witr(eHNT): return EMda(eHNT.rep, eHNT.lev)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MbqM(eHNT):\n if vxCN(eHNT):\n return not eHNT\n elif len(eHNT) == 1:\n return MbqM(eHNT[0])\n else:\n return False", "def Witr(YKHO) -> bool:\n return YKHO.field.zero == YKHO", "def UT6m(jzdc: float) -> bool:\n return oyIN.isclose(jzdc, 0.0, atol=1e-12, rtol=0.0)", "d...
[ "0.68627155", "0.68321836", "0.6829095", "0.66861373", "0.66580784", "0.6646886", "0.66446394", "0.65123105", "0.64821994", "0.6450247", "0.6421283", "0.6403154", "0.6375742", "0.63626796", "0.63572216", "0.6343458", "0.63421607", "0.62852013", "0.6237728", "0.6227138", "0.61...
0.82312423
0
Return ``True`` if `f` has zero trailing coefficient.
def NJSv(eHNT): return D9be(eHNT.rep, eHNT.lev, eHNT.dom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Witr(eHNT):\n return EMda(eHNT.rep, eHNT.lev)", "def MbqM(eHNT):\n if vxCN(eHNT):\n return not eHNT\n elif len(eHNT) == 1:\n return MbqM(eHNT[0])\n else:\n return False", "def UT6m(jzdc: float) -> bool:\n return oyIN.isclose(jzdc, 0.0, atol=1e-12, rtol=0.0)", "def p8as...
[ "0.70650417", "0.66157144", "0.6415445", "0.63003606", "0.62573594", "0.61306244", "0.60404515", "0.5986724", "0.5955625", "0.5919853", "0.58975965", "0.5879079", "0.5855871", "0.58355117", "0.58319634", "0.58083016", "0.580651", "0.5805895", "0.57963556", "0.57779497", "0.57...
0.0
-1
convert normal timestamp to integer timestamp
def MJTz(U99d): wzkt = qcWV.now(rIAI) if 'giờ' in U99d: RA_F = int(ZbWC.search('\\d{1,2}').group()) return int(qcWV.timestamp(wzkt - fCoM(hours=RA_F))) if 'lúc' in U99d: ITS7 = ZbWC.search('(?<= )\\d{1,2}:\\d{1,2}', U99d).group() if 'Hôm qua' in U99d: RA_F = (qcWV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X2x9(YKHO, E3oo):\n return int(E3oo * 1000000.0)", "def E3oo(YKHO, a1PO):\n if isinstance(a1PO, qcWV):\n a1PO = ITS7.mktime(a1PO.timetuple())\n return a1PO - 631065600", "def _uaQ(_c1T):\n return int(GRk0.timegm(_c1T.utctimetuple()))", "def QGdl(E3oo):\n return E3oo / 1000000.0", ...
[ "0.7704156", "0.7226174", "0.7167579", "0.70981246", "0.708771", "0.70694554", "0.70527333", "0.70431846", "0.6984574", "0.69801474", "0.6964149", "0.69581187", "0.6931208", "0.6908212", "0.68865085", "0.6883597", "0.68598557", "0.68565315", "0.6851186", "0.6830723", "0.67971...
0.0
-1
Initializes `ResourceManagingExecutorFactory`. `ResourceManagingExecutorFactory` manages a mapping from `cardinalities` to `executor_base.Executors`, closing and destroying the executors in this mapping when asked.
def FIMM(YKHO, rse3: Callable[[executor_factory.CardinalitiesType], executor_base.Executor], AHRE: Optional[Sequence[executor_base.Executor]]=None): gw9A.check_callable(rse3) YKHO._executor_stack_fn = rse3 YKHO._executors = K1JL.LRUCache(ZC8K) if AHRE is None: AHRE = () YKHO._ensure_closed =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super(ByBc, YKHO).__init__()\n YKHO.__scheduler = RJ4a.Scheduler()\n YKHO.__procedures_lock = T6FA.RLock()\n YKHO.__procedures = reoY()\n YKHO.__threads_lock = T6FA.RLock()\n YKHO.__executors = []\n YKHO.__number_executors = 1", "def kiyx(YKHO, fHUa):\n\n def VjpH(Xtuq):...
[ "0.59641737", "0.5913751", "0.5838488", "0.5786392", "0.57544863", "0.57422686", "0.56361204", "0.55896586", "0.5280068", "0.52781945", "0.5177498", "0.5092387", "0.5090342", "0.50892085", "0.50529647", "0.5030522", "0.50236547", "0.4990004", "0.4987313", "0.49792656", "0.493...
0.62560743
0
Creates an executor hierarchy of maximum width `self._max_fanout`. First creates a flat list of executors to aggregate, using the `flat_stack_fn` passed in at initialization. Then composes this list into a hierarchy of width at most `self._max_fanout`.
def qcLG(YKHO, ylii: executor_factory.CardinalitiesType) -> scQE.Executor: QlIX = YKHO._flat_stack_fn(ylii) return YKHO._aggregate_stacks(QlIX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tg7_(YKHO, QlIX: Sequence[executor_base.Executor]) -> scQE.Executor:\n if len(QlIX) <= 1:\n return HeNH.ReferenceResolvingExecutor(YKHO._create_composing_stack(target_executors=QlIX))\n while len(QlIX) > 1:\n qle6 = []\n vgXP = 0\n while vgXP < len(QlIX):\n uW06 = v...
[ "0.7038833", "0.660228", "0.6479736", "0.5151284", "0.49770188", "0.4903775", "0.4770318", "0.47636992", "0.47501507", "0.4703066", "0.46829724", "0.46696302", "0.4572329", "0.44979513", "0.44887832", "0.44757384", "0.44733563", "0.44526994", "0.44457334", "0.44153833", "0.44...
0.6299105
3
Get the duration for this ExportTaskRecord.
def WbTE(YKHO): KAOn = YKHO.started_at Pt1K = YKHO.finished_at if KAOn and Pt1K: return str(Pt1K - KAOn) else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EdTY(YKHO):\n return YKHO._duration", "def EdTY(YKHO):\n return YKHO.duration", "def WbTE(YKHO):\n return YKHO._get('duration')", "def WbTE(YKHO):\n return YKHO._get('duration')", "def WbTE(YKHO):\n return YKHO._duration", "def WbTE(YKHO):\n return YKHO._duration", "def WbTE(YKHO)...
[ "0.7330607", "0.722008", "0.70875984", "0.7068969", "0.7040436", "0.7040436", "0.7040436", "0.7040436", "0.7040436", "0.7040436", "0.7040436", "0.7040436", "0.7014009", "0.6987497", "0.6826969", "0.6826969", "0.67713547", "0.6734279", "0.6703747", "0.6681958", "0.66615355", ...
0.66107684
25
Return an option defaults module, containing default overrides as the 'options_default' value. By default this will be discovered based on the kolibri_options property.
def MeM0(YKHO): if YKHO.kolibri_option_defaults: yR_P = YKHO._return_module(YKHO.kolibri_option_defaults) if yR_P is None: G9jH.warning('{plugin} defined {module} kolibri option defaults but the module was not found'.format(plugin=YKHO.module_path, module=YKHO.kolibri_option_defaults)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PpKX():\n return {'library_folders': [], 'verbose': False, 'check_balanced': True, 'mtime_check': True, 'cache': False, 'codegen': False, 'expand_mx': False, 'unroll_loops': True, 'inline_functions': True, 'expand_vectors': False, 'resolve_parameter_values': False, 'replace_parameter_expressions': False, 'r...
[ "0.72297364", "0.6994755", "0.67126906", "0.66852456", "0.66505", "0.6613466", "0.66012967", "0.6578986", "0.65687126", "0.65598536", "0.6557565", "0.65210766", "0.65106964", "0.65106964", "0.6484937", "0.6481155", "0.6481155", "0.64747983", "0.6472846", "0.64651245", "0.6428...
0.82514477
0
function used to convert heatmaps to bounding boxes (batch wise)
def koO_(Y4Ek): teJs = [] Y4Ek = Y4Ek.detach().cpu().numpy().astype(oyIN.uint8) for ITiw in Y4Ek: knl1 = XC5k.threshold(ITiw, 0, 255, XC5k.THRESH_BINARY + XC5k.THRESH_OTSU)[1] EbWA = XC5k.findContours(knl1, XC5k.RETR_EXTERNAL, XC5k.CHAIN_APPROX_SIMPLE) EbWA = EbWA[0] if len(EbWA) == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wafR(Y4Ek: NdArray, PWAq: float=0.5) -> AzJI[x1iM[oyIN.ndarray], x1iM[oyIN.ndarray]]:\n fsgT = lDLs.get_array_module(Y4Ek)\n ywwl = len(Y4Ek)\n hkxX, _0VL = vuvg.max_pooling_2d(Y4Ek[:, 0:-4, :, :], ksize=3, pad=1, stride=1, return_indices=True)\n ITSp, Crrw, Gr9o, V8qt = fsgT.where(fsgT.logical_and...
[ "0.68734914", "0.6679655", "0.6617095", "0.6521179", "0.6444042", "0.643972", "0.6428377", "0.63893396", "0.637411", "0.637171", "0.63717", "0.6367261", "0.63521093", "0.6329034", "0.63287985", "0.62770826", "0.62763524", "0.62763524", "0.6275485", "0.6203071", "0.6190359", ...
0.6756906
1
Callback for '/obstacles'. Calculates directional obstacle risk factor and indicator for obstacles.
def f4wG(YKHO, nPrm): EFrT = [(W061.ObsPosition.x, W061.ObsPosition.y, W061.ObsPosition.z) for W061 in nPrm.obs] hh3T = oyIN.array([W061.ObsTheta for W061 in nPrm.obs]) if len(EFrT) == 0: YKHO.obs_risk = 0.0 YKHO.min_obs_dist = YKHO.detect_obstacle_range + 100.0 else: fAl8 = oyIN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xn0s(YKHO):\n\n def AcQ8(AU8u, bDPk, dT4a):\n \"\"\"calcuate the distance between a point and a line\"\"\"\n lSjb = bDPk - AU8u\n v8Fa = dT4a - AU8u\n Ayfi = oyIN.abs(oyIN.cross(lSjb, v8Fa)) / oyIN.linalg.norm(bDPk - dT4a)\n return Ayfi\n\n def AW8Q(AU8u, bDPk, dT4a):\n...
[ "0.6006229", "0.59831464", "0.59676105", "0.5895385", "0.5861162", "0.58480954", "0.57113296", "0.56835693", "0.56673706", "0.56472874", "0.562744", "0.554277", "0.5479771", "0.54709125", "0.5457258", "0.5455121", "0.5406178", "0.5397039", "0.5394005", "0.5380201", "0.5363121...
0.7002966
0
Sets the account_id of this Account.
def Z31E(YKHO, Z31E): YKHO._account_id = Z31E
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPha(YKHO, Z31E):\n YKHO.data_struct['_setAccount'] = Z31E", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def Z31E(YKHO, Z31E: str):\n if Z31E is None:\n raise ValueError('Invalid value for `account_id`, must not be `None`')\n YKHO._account_id = Z31E", "def Z31E(YKHO, Z31E):\n ...
[ "0.87249315", "0.87208027", "0.8242886", "0.81835634", "0.7223229", "0.7059459", "0.7050165", "0.7050165", "0.7050165", "0.7050165", "0.6984745", "0.68363744", "0.66445804", "0.66445804", "0.66127974", "0.6467379", "0.64107895", "0.63521343", "0.62496644", "0.62413317", "0.61...
0.8788047
4
Sets the type of this Account.
def type(YKHO, type): BbPm = ['BANK', 'EMPLOYERSNIC', 'NICLIABILITY', 'PAYEECONTRIBUTION', 'PAYELIABILITY', 'WAGESPAYABLE', 'WAGESEXPENSE', 'None'] if type: if type not in BbPm: raise ValueError('Invalid value for `type` ({0}), must be one of {1}'.format(type, BbPm)) YKHO._type = type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ", "def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ", "def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ", "def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ", "def TG_K(YKHO, type):\n YKHO.type = type", "def TG_K(YKHO, type):\n YKHO.ty...
[ "0.84160495", "0.84160495", "0.84160495", "0.84160495", "0.78631777", "0.78631777", "0.78404707", "0.74956423", "0.7327187", "0.7292451", "0.7229779", "0.72196895", "0.72196895", "0.72196895", "0.72196895", "0.72196895", "0.72196895", "0.72196895", "0.72196895", "0.72196895", ...
0.7136352
39
Sets the name of this Account.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def zPdd(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP: str):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO,...
[ "0.823638", "0.8215202", "0.8214959", "0.8180439", "0.8180439", "0.8180439", "0.8180439", "0.8180439", "0.8036948", "0.8036948", "0.8019196", "0.80168986", "0.7987468", "0.7987468", "0.796202", "0.796202", "0.7951831", "0.7897971", "0.7836926", "0.77722913", "0.7768749", "0...
0.7463994
97