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
Format a 2D Numpy array into a NRRD optional matrix string Function converts a 2D Numpy array into a string using the NRRD matrix format. For any rows of the matrix that contain all NaNs for each element, the row will be replaced with a 'none' indicating the row has no vector.
def sMWE(WKvO): return ' '.join([PKlq(LVAh) for LVAh in WKvO])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ugsf(WKvO):\n SppC = [Xaw1(WKvO, dtype=float) for WKvO in WKvO.split()]\n maxY = oyIN.array([0 if WKvO is None else len(WKvO) for WKvO in SppC])\n a0a_ = oyIN.unique(maxY)\n if len(a0a_) != 1 and (len(a0a_) != 2 or a0a_.min() != 0):\n raise EEj0('Matrix should have same number of elements in...
[ "0.622035", "0.5954527", "0.5928205", "0.5912855", "0.5727499", "0.57008296", "0.56179947", "0.5614566", "0.55843174", "0.54149926", "0.53773344", "0.53477156", "0.532382", "0.53015757", "0.5123682", "0.511336", "0.5099299", "0.5092014", "0.5065899", "0.5063694", "0.5053405",...
0.72085553
0
Format a 1D Numpy array into NRRD number list. Function converts a 1D Numpy array into a string using NRRD number list format.
def lwDz(WKvO): return ' '.join([eY98(LVAh) for LVAh in WKvO])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sVgn(jTM_, FMLJ='%16s', TDw3=','):\n jTM_ = oyIN.array(jTM_)\n SGl7 = len(jTM_.shape)\n if SGl7 == 1:\n return [qyZ8(jTM_, FMLJ, TDw3)]\n elif SGl7 == 2:\n HzTH = []\n YpoM = jTM_.shape[0]\n for YRbF in range(YpoM):\n jfrd = qyZ8(jTM_[YRbF, :], FMLJ, TDw3)\n ...
[ "0.686501", "0.62243104", "0.61535454", "0.61421543", "0.6059983", "0.60590684", "0.6055084", "0.59325016", "0.58198637", "0.57788", "0.57686704", "0.5677016", "0.55862576", "0.5585505", "0.5558441", "0.5533447", "0.5497891", "0.5480171", "0.54751545", "0.54410905", "0.542361...
0.5995008
7
For NRRD files, the first four characters are always "NRRD", and remaining characters give information about the file format version >>> _validate_magic_line('NRRD0005') 8 >>> _validate_magic_line('NRRD0006')
def z_ao(zFiD): if not zFiD.startswith('NRRD'): raise EEj0('Missing magic "NRRD" word. Is this an NRRD file?') try: if int(zFiD[4:]) > 5: raise EEj0('NRRD file version too new for this library.') except ValueError: raise EEj0('Invalid NRRD magic line: %s' % (zFiD,)) r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k6qd(YKHO, JoSy, Niv4):\n import struct\n woZq = struct.unpack('!I', Niv4[:4])[0]\n znyy = struct.unpack('!I', Niv4[12:])[0]\n if YKHO.__magic_number != woZq or YKHO.__magic_number != znyy:\n raise BF6O()\n if JoSy != Niv4:\n raise qm5C()", "def Ogn5(YKHO, vIwR):\n if vIwR[-1]...
[ "0.569201", "0.56090045", "0.5599128", "0.5566738", "0.55418366", "0.5524839", "0.55238646", "0.5521166", "0.54416674", "0.5324497", "0.5295214", "0.5292996", "0.5256851", "0.5239331", "0.52130955", "0.52078396", "0.52056634", "0.5189201", "0.5186579", "0.5170318", "0.5164074...
0.8453927
0
Render index.html. Initialization is performed asynchronously in initialize() function
def F_xU(): return TvZl('index.html', token=iCQW.token)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_():\n return TvZl('index.html')", "def b8V_():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt(YKHO):\n return TvZl('main/index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt(YKHO):\n ...
[ "0.7591317", "0.7591317", "0.75896853", "0.75501835", "0.7542187", "0.7540321", "0.75173515", "0.7512761", "0.7512761", "0.7493453", "0.7493453", "0.7480306", "0.7462847", "0.7462278", "0.7447789", "0.7439562", "0.7439562", "0.7439562", "0.7439562", "0.7439562", "0.7439562", ...
0.0
-1
Explode a GeoJSON geometry's coordinates object and yield coordinate tuples. As long as the input is conforming, the type of the geometry doesn't matter.
def TIOf(jNOo): for tTpl in jNOo: if isinstance(tTpl, (float, int, Swre)): yield jNOo break else: for eHNT in TIOf(tTpl): yield eHNT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CSPn(jNOo):\n if isinstance(jNOo, XTiz.ndarray):\n jNOo = jNOo.tolist()\n Auqz = {'type': 'MultiPoint', 'coordinates': jNOo}\n xImL = K40W.CreateGeometryFromJson(repr(Auqz))\n return xImL", "def pM9A(NgpY):\n Auqz = eval(NgpY.ExportToJson())\n jNOo = Auqz['coordinates']\n if Auqz[...
[ "0.6310954", "0.6286501", "0.6224508", "0.61245656", "0.61227405", "0.61075085", "0.58908945", "0.5888281", "0.5884113", "0.58764863", "0.58513206", "0.5839912", "0.5814071", "0.57629925", "0.5734253", "0.5729233", "0.56301165", "0.560742", "0.55914867", "0.55578196", "0.5543...
0.6802374
0
Submit a new comment.
def ZMyC(): aM_I = {'title': QePW.form.get('title'), 'content': QePW.form.get('content'), 'playlist_id': aA6B(QePW.form.get('playlist._id'))} print(aM_I) pQGt = NCls.comments.insert_one(aM_I).inserted_id return vKnz(nKyW('playlists.playlists_show', playlist_id=QePW.form.get('playlist._id')))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LNxR(YKHO):\n YKHO.post_question()\n return YKHO.client.post('api/v2/1/comments', headers={'Authorization': '{}'.format(YKHO.token())}, data=qQXR.dumps(YKHO.comment), content_type='application/json')", "def m8z6(YKHO):\n Fi3q = int(YKHO.request.get('post_id'))\n m8z6 = f5si.get_by_id(Fi3q)\n a...
[ "0.7297798", "0.69898343", "0.6864198", "0.68514276", "0.67083836", "0.668532", "0.6682932", "0.666236", "0.66497433", "0.662015", "0.6584421", "0.6577321", "0.65517324", "0.6512225", "0.65074533", "0.64814925", "0.64590675", "0.6453132", "0.6443592", "0.64327055", "0.6431085...
0.6187039
36
Creates a sprite that, when the player collides with it, will prompt the user to exit.
def FIMM(YKHO, TVTK, H2v2): super().__init__() YKHO.image = a9eO.Surface([TVTK, H2v2]) YKHO.image.fill(uwaB.BLUE) Cv4z = a9eO.image.load('Graphics/Door.png') YKHO.image.blit(Cv4z, Cv4z.get_rect()) YKHO.image.set_colorkey(uwaB.BLUE) YKHO.rect = YKHO.image.get_rect()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m81R(YKHO):\n YKHO.x = tuKI.randrange(eN17.screen.width)\n YKHO.y = tuKI.randrange(eN17.screen.height)\n eRQZ.play()", "def FIMM(YKHO, i1q_, OHQf):\n a9eO.sprite.Sprite.__init__(YKHO)\n YKHO.image = a9eO.image.load('image/hero.png')\n YKHO.rect = YKHO.image.get_rect()\n YKHO.rect.left, Y...
[ "0.61719465", "0.60282546", "0.6028132", "0.5920436", "0.5864075", "0.5774956", "0.5742993", "0.5742993", "0.5742993", "0.57380384", "0.57255703", "0.5717211", "0.57102424", "0.5681366", "0.5670776", "0.5657477", "0.5657432", "0.56347543", "0.56325614", "0.56220084", "0.56085...
0.0
-1
Return system database instance
def B9hj() -> IsPP: x0hE = Lemc() return x0hE.db('_system', username=lQiN, password=E2f4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u_OD(YKHO):\n return YKHO.database", "def u_OD(YKHO, KAOR, mWFP):\n return KAOR.get_database(mWFP)", "def u_OD(YKHO, p9bx, KAOR=None):\n return YKHO._get(t8hf.Database, p9bx)", "def NCls(YKHO) -> FfT0:\n return YKHO.impl.db", "def u_OD(YKHO):\n if YKHO._database is None:\n w2B8 = ...
[ "0.7939189", "0.7920433", "0.78951895", "0.78404564", "0.7790942", "0.7776532", "0.7736766", "0.77303636", "0.76975584", "0.76906294", "0.76341784", "0.7610511", "0.7609939", "0.7582774", "0.7582774", "0.756159", "0.75452924", "0.74812025", "0.74715596", "0.7459757", "0.74288...
0.8008464
0
Return buddhanexus database instance
def u_OD() -> IsPP: x0hE = Lemc() return x0hE.db(mDZH, username=lQiN, password=E2f4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGod():\n return FfT0(gCuF.COUCH_DATABASE)", "def NCls(YKHO) -> FfT0:\n return YKHO.impl.db", "def u_OD() -> FfT0:\n L_qe = tfrY(mDZH)\n return WlyJ(L_qe)", "def v0Hh(YKHO):\n return YKHO.db", "def VmlM(YKHO):\n i0ln = ...\n return i0ln", "def u_OD(YKHO):\n return YKHO.databas...
[ "0.7504944", "0.73750067", "0.7339674", "0.7225183", "0.71974593", "0.71942425", "0.7148886", "0.70750517", "0.7070916", "0.7062201", "0.7046365", "0.70364183", "0.7035892", "0.70356107", "0.70356107", "0.70334214", "0.702936", "0.7020423", "0.70172554", "0.70089877", "0.7001...
0.6680306
85
Return the current player.
def oyg0(YKHO): return YKHO.players[YKHO.tictactoe.turn]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mCd_(YKHO):\n return YKHO.current_player", "def mCd_(YKHO):\n return YKHO.current_player", "def vevC(YKHO):\n return YKHO.currentPlayer", "def mCd_(YKHO):\n return YKHO._current_player", "def GFCh(YKHO):\n return YKHO.currentPlayer", "def oyg0(YKHO):\n return YKHO.current.player", ...
[ "0.93282586", "0.929401", "0.9215122", "0.913688", "0.9102611", "0.89838165", "0.897016", "0.88548744", "0.8829041", "0.87268007", "0.87268007", "0.86650807", "0.85642856", "0.8556092", "0.84805095", "0.84269875", "0.8318831", "0.8256911", "0.80736005", "0.78696734", "0.78440...
0.75655884
23
Test that correct users may create Cavatica projects
def KX6A(NCls, Onn9, sMth, kWzS, KzJa): KgVA = nRTR(kf_id='SD_00000000') KgVA.save() x0hE = Onn9.get(kWzS) Dja4 = yvHG('StudyNode', 'SD_00000000') kc1W = {'input': {'workflowType': 'rsem', 'study': Dja4, 'projectType': 'HAR'}} _hkX = x0hE.post('/graphql', content_type='application/json', data={'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dokK(YKHO):\n pass", "def dokK(YKHO):\n pass", "def dokK(YKHO):\n pass", "def qvta(YKHO):\n YKHO.assertEqual(E50Z.Project.objects.get(user=YKHO.test_user).pk, YKHO.test_project.pk)", "def afx2(YKHO):\n pass", "def PLcX(YKHO):\n CBIr = YKHO._create_user({'username': 'user2', 'email':...
[ "0.784348", "0.784348", "0.784348", "0.7746186", "0.77352273", "0.7699514", "0.7556866", "0.7270996", "0.7232274", "0.7211973", "0.72028965", "0.7162585", "0.713959", "0.71366113", "0.7112341", "0.7087111", "0.7062536", "0.7035972", "0.7028445", "0.70074105", "0.69981164", ...
0.71139944
14
Test that multiple projects with the same workflow may not be created for the same study.
def N40X(NCls, Onn9, sMth): x0hE = Onn9.get('Administrators') KgVA = nRTR(kf_id='SD_00000000') KgVA.save() Dja4 = yvHG('StudyNode', 'SD_00000000') kc1W = {'input': {'workflowType': 'rsem', 'study': Dja4, 'projectType': 'HAR'}} _hkX = x0hE.post('/graphql', content_type='application/json', data={'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohHh(NCls, Onn9, sMth):\n x0hE = Onn9.get('Administrators')\n KgVA = nRTR(kf_id='SD_00000000')\n KgVA.save()\n Dja4 = yvHG('StudyNode', 'SD_00000000')\n kc1W = {'input': {'workflowType': 'invalid@workflow*input', 'study': Dja4, 'projectType': 'RES'}}\n _hkX = x0hE.post('/graphql', content_typ...
[ "0.7134573", "0.66505384", "0.6468209", "0.6388659", "0.62340355", "0.6145839", "0.612046", "0.61085075", "0.61085075", "0.60835934", "0.6079471", "0.60697186", "0.6042777", "0.6040249", "0.6036487", "0.60094327", "0.5988171", "0.59810096", "0.5971545", "0.596354", "0.5962919...
0.74672663
0
Test that research projects with invalid workflow input may not be created.
def ohHh(NCls, Onn9, sMth): x0hE = Onn9.get('Administrators') KgVA = nRTR(kf_id='SD_00000000') KgVA.save() Dja4 = yvHG('StudyNode', 'SD_00000000') kc1W = {'input': {'workflowType': 'invalid@workflow*input', 'study': Dja4, 'projectType': 'RES'}} _hkX = x0hE.post('/graphql', content_type='applicat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pI8E(FyZa, Aq7q, gcBE, HDjX, yokr, x0SS):\n *bGrB, BH3N = u7Ba(FyZa, Aq7q, gcBE, HDjX, yokr, x0SS)\n BH3N.solve()\n bNKA = BH3N.projects[0]\n g3Gt = G8qb(name='foo')\n bNKA.matching.append(g3Gt)\n with trZe.raises(r7VV) as tTpl:\n BH3N.check_validity()\n P1dF = tTpl.unacceptable...
[ "0.7055492", "0.69701475", "0.6939135", "0.69033504", "0.6789375", "0.67686033", "0.6768363", "0.6751658", "0.6729493", "0.67239165", "0.67095023", "0.66931164", "0.66392416", "0.66254085", "0.6609532", "0.6505268", "0.64722306", "0.64369893", "0.64119256", "0.64098793", "0.6...
0.7960564
0
Sets up a temp dir for each test.
def FCbF(YKHO): YKHO.tempdir = gbPf.mkdtemp() YKHO.subdir = Hy7s.path.join(YKHO.tempdir, 'dir') YKHO.emptydir = Hy7s.path.join(YKHO.tempdir, 'empty') Hy7s.makedirs(YKHO.subdir) Hy7s.makedirs(YKHO.emptydir) YKHO.root_fcount = 3 YKHO.nest_fcount = 5 for YRbF in range(0, YKHO.root_fcount): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.tmp = bxBA()", "def FCbF(YKHO):\n sTpg(qf3c())", "def FCbF(YKHO):\n sTpg(qf3c())", "def FCbF(YKHO):\n YKHO.tmpdir = qf3c()", "def FCbF(YKHO):\n YKHO._dir = gbPf.mkdtemp(prefix=f'miniwdl_test_{YKHO.id()}_')", "def FCbF(YKHO):\n fYGm.safe_mkdir(parents=True)\n Hy...
[ "0.826158", "0.8176917", "0.8176917", "0.8143828", "0.81345826", "0.801594", "0.7868184", "0.76964504", "0.7638751", "0.7592907", "0.7592907", "0.7592907", "0.7592907", "0.7592907", "0.7592907", "0.7592907", "0.75182325", "0.7501411", "0.7501411", "0.7485169", "0.746291", "...
0.75500166
16
Returns the unique ID of this document
def lSxO(YKHO): return YKHO.get('_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oFUB(YKHO):\n return YKHO._id", "def apch(YKHO):\n return YKHO.__doc_id", "def Ilxn(YKHO) -> str:\n return YKHO.doc['id']", "def ShR8(YKHO):\n return YKHO._id", "def ShR8(YKHO):\n return YKHO._id", "def oFUB(YKHO):\n return YKHO.properties.get('DocId', None)", "def unpH(YKHO):\n ...
[ "0.8280916", "0.81764466", "0.8117715", "0.7955348", "0.7955348", "0.788048", "0.7716234", "0.7716234", "0.7716234", "0.7716234", "0.7716234", "0.7716234", "0.7715426", "0.76716936", "0.7669201", "0.76648706", "0.76648706", "0.76297355", "0.75981677", "0.75981677", "0.7598167...
0.0
-1
Return the dictionary representation of this object.
def MNRr(YKHO): Aofo = super(uBwj, YKHO).to_dict() Aofo['provider_class'] = YKHO.provider_class.value return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fYl(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO):\n return dict(YKHO)", "def MNRr(YKHO):\n return MNRr(YKHO.__dict__)", "def dict(YKHO):\n return YKHO.__dict__", "def dict(YKHO):\n return YKHO.__dict__", "def dict(YKHO):\n return YKHO.__dict__", "def dict(YKHO):\n return YK...
[ "0.87623477", "0.8750051", "0.8720296", "0.87060523", "0.87060523", "0.87060523", "0.87060523", "0.87060523", "0.87060523", "0.87060523", "0.8691401", "0.8691401", "0.8691401", "0.8691401", "0.8691401", "0.8691401", "0.86906916", "0.86867994", "0.86864716", "0.86722887", "0.8...
0.0
-1
Purpose Center filter. Synopsis y = center(f, b=None) Input
def hgjH(eHNT, Fg_i=None): if Fg_i is None: Fg_i = P6wZ() LVAh = eHNT yk4i = 0 while not yk4i: p06G = LVAh dgWh = w3CT(LVAh, 'COC', Fg_i, 1) znmT = w3CT(LVAh, 'OCO', Fg_i, 1) LVAh = b65I(Zi8U(LVAh, dgWh), znmT) yk4i = Viqq(p06G, LVAh) return LVAh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z__R(eHNT, MKlR, nJ9F):\n return (eHNT(nJ9F + MKlR) - 2 * eHNT(nJ9F) + eHNT(nJ9F - MKlR)) / MKlR ** 2", "def PwZr(YKHO, *qIxc):\n return ujPI.Bnd_Sphere_Center(YKHO, *qIxc)", "def hgjH(WKvO):\n return WKvO - WKvO.mean()", "def hgjH(YKHO):\n return oyIN.array([0, 0, 1 / YKHO.C + YKHO.pos()])",...
[ "0.6362392", "0.60890687", "0.6059413", "0.60569865", "0.6014868", "0.59663165", "0.5898244", "0.58954257", "0.5855407", "0.58440626", "0.58334535", "0.57709855", "0.5746369", "0.5724208", "0.57143396", "0.5699061", "0.56946635", "0.569103", "0.56903344", "0.56831795", "0.567...
0.7412997
0
Purpose Create a line structuring element. Synopsis B = seline(l=3, theta=0) Input
def ghiq(vC9B=3, q7In=0): import numpy from numpy import pi, tan, cos, sin, sign, floor, arange, transpose, array, ones q7In = pi * q7In // 180 if abs(tan(q7In)) <= 1: KCHu = sign(cos(q7In)) nJ9F = arange(0, vC9B * cos(q7In) - KCHu * 0.5, KCHu) o4D3 = floor(nJ9F * tan(q7In) + 0.5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zFiD(vC9B, qfpW='k', **B2fa):\n aNZO.plot(FXR4(_J4B(vC9B, 0)), KNYs(_J4B(vC9B, 1)), color=qfpW, **B2fa)", "def egFI(YKHO):\n return _VfD.Curve_createLineSegment(YKHO)", "def jah9(YKHO, **B2fa):\n return NTRO(YKHO.p1, YKHO.angle, **B2fa)", "def O_lX(js4S=True, *qIxc):\n jDK_ = ccKF.radioButton...
[ "0.62474877", "0.6006988", "0.58282876", "0.5787256", "0.5750338", "0.56996584", "0.5695907", "0.5674978", "0.5670235", "0.5636259", "0.56338775", "0.55811584", "0.55447286", "0.5528125", "0.5523192", "0.5521161", "0.5507543", "0.5501937", "0.5496593", "0.5456718", "0.5447206...
0.74614924
0
Purpose Returns the maximum value associated to an image datatype Synopsis max = maxleveltype(TYPE='uint8') Input
def j6jQ(BAu0='uint8'): max = 0 if BAu0 == 'uint8': max = 255 elif BAu0 == 'binary': max = 1 elif BAu0 == 'uint16': max = 65535 elif BAu0 == 'int32': max = 2147483647 else: assert 0, 'does not support this data type:' + BAu0 return max
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0fZ(nPrm: np.ndarray) -> int:\n ROpF = nPrm.shape[1:]\n return min(ROpF).bit_length() - 1", "def f0fZ(YKHO):\n return YKHO.__max", "def TO88(YKHO) -> float:\n if YKHO._type == 'power':\n return 5.0\n elif YKHO._type == 'setpoint':\n return YKHO._product.get_data_config_json()[...
[ "0.664823", "0.6647606", "0.6606293", "0.6573356", "0.65679485", "0.65679485", "0.6517624", "0.644482", "0.64230394", "0.64144516", "0.64096117", "0.6396367", "0.63958275", "0.6321711", "0.6287342", "0.626718", "0.62576795", "0.62556404", "0.62458754", "0.62254846", "0.622512...
0.8170591
0
The quantiles corresponding to the features
def o7bE(YKHO): return YKHO._quantiles
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7bE(YKHO, vexM: int):\n return YKHO.dist.quantiles(vexM)", "def aM62(RDhP, Pyrc):\n a1PO = RDhP.sort_values().values\n yzQ0 = round(len(a1PO) / Pyrc)\n return [a1PO[yzQ0 * YRbF - 1] for YRbF in range(1, Pyrc)]", "def aM62(YKHO, lHyk):\n raise NotImplementedError()", "def zhWo(YKHO):\n ...
[ "0.7665638", "0.76528394", "0.71875024", "0.70389974", "0.70126265", "0.69704837", "0.69322085", "0.6846064", "0.6841902", "0.68319213", "0.67076045", "0.6676857", "0.6661948", "0.6650516", "0.66478264", "0.66478264", "0.66478264", "0.6621563", "0.6536564", "0.6535335", "0.65...
0.8084947
0
The quantiles corresponding to the features
def o7bE(YKHO, BWXx): YKHO._quantiles = CwDs.DataFrame(BWXx, dtype=float)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7bE(YKHO):\n return YKHO._quantiles", "def o7bE(YKHO, vexM: int):\n return YKHO.dist.quantiles(vexM)", "def aM62(RDhP, Pyrc):\n a1PO = RDhP.sort_values().values\n yzQ0 = round(len(a1PO) / Pyrc)\n return [a1PO[yzQ0 * YRbF - 1] for YRbF in range(1, Pyrc)]", "def aM62(YKHO, lHyk):\n raise...
[ "0.8084947", "0.7665638", "0.76528394", "0.71875024", "0.70389974", "0.70126265", "0.69704837", "0.69322085", "0.6846064", "0.6841902", "0.67076045", "0.6676857", "0.6661948", "0.6650516", "0.66478264", "0.66478264", "0.66478264", "0.6621563", "0.6536564", "0.6535335", "0.653...
0.68319213
10
Generates the quantiles for each feature in X. The quantiles for one feature are computed such that the area between quantiles is the same throughout. The default quantiles are computed at the following
def FMUv(YKHO, EcVT, Xqiw=9): if Xqiw < 1: raise ByVR('n_quantiles must be at least one.') EcVT = CwDs.DataFrame(EcVT) BFeB = XTiz.linspace(0.0, 1.0, Xqiw + 2)[1:-1] YKHO._quantiles = CwDs.DataFrame(dtype=float) for fvDH in EcVT: RDhP = EcVT[fvDH].dropna().values hkxX = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7bE(WKvO, zOYc=[2.5, 25, 50, 75, 97.5]):\n WKvO = WKvO.copy()\n if WKvO.ndim > 1:\n o0ZM = oyIN.transpose(oyIN.sort(oyIN.transpose(WKvO)))\n else:\n o0ZM = oyIN.sort(WKvO)\n try:\n sa8Z = [o0ZM[int(len(o0ZM) * vexM / 100.0)] for vexM in zOYc]\n return dict(zip(zOYc, sa8...
[ "0.70554554", "0.6961914", "0.6935193", "0.68663985", "0.6722963", "0.6685941", "0.65833944", "0.65438044", "0.6502006", "0.6346135", "0.6340859", "0.6323469", "0.63208634", "0.6201339", "0.61836976", "0.61179936", "0.61027896", "0.61023414", "0.6099939", "0.60567063", "0.604...
0.69860053
1
Compute the Euclidean distance between two ndimensional objects.
def usGr(j93S, Nqp_): vNEo = 0 for d6pt, BWXx in enumerate(j93S): vNEo += (j93S[d6pt] - Nqp_[d6pt]) ** 2 return epAf.sqrt(vNEo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VVDj(YKHO, F5TF, BPWI):\n return oyIN.linalg.norm(oyIN.array(F5TF) - oyIN.array(BPWI))", "def sOE8(WKvO, LVAh):\n assert isinstance(WKvO, FePl) and isinstance(LVAh, FePl), 'Must pass in BayesNet objects.'\n assert WKvO == LVAh, 'Passed-in BayesNet objects are not structurally equal.'\n Ayfi = oyI...
[ "0.78630954", "0.75014645", "0.72984904", "0.7252056", "0.7198011", "0.7175983", "0.71631706", "0.7146378", "0.7120438", "0.70882535", "0.7087155", "0.70861405", "0.708451", "0.706804", "0.70471025", "0.70345724", "0.70338404", "0.70252156", "0.70200783", "0.70191354", "0.701...
0.0
-1
Drop the maximum dose and related response values.
def O8Yn(YKHO): for pOqt in ('doses', 'ns', 'means', 'stdevs'): ezWE = getattr(YKHO, pOqt)[:-1] setattr(YKHO, pOqt, ezWE) YKHO._validate()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O8Yn(YKHO):\n w0mG = oyIN.array(YKHO.individual_doses)\n h2IT = oyIN.array(YKHO.responses)\n ZHfW = w0mG != w0mG.max()\n gP1j = w0mG[ZHfW].tolist()\n h2IT = h2IT[ZHfW].tolist()\n KXnc = YKHO._prepare_summary_data(gP1j, h2IT)\n for H5ew, BWXx in KXnc.items():\n setattr(YKHO, H5ew, BW...
[ "0.7200658", "0.62198234", "0.5772812", "0.5744219", "0.56280816", "0.55736995", "0.5513809", "0.54918855", "0.54886866", "0.54837", "0.5429068", "0.5419061", "0.53948057", "0.53888166", "0.53503466", "0.5337019", "0.53281724", "0.5226603", "0.5226471", "0.5201941", "0.519972...
0.64605606
1
Drop the maximum dose and related response values.
def O8Yn(YKHO): w0mG = oyIN.array(YKHO.individual_doses) h2IT = oyIN.array(YKHO.responses) ZHfW = w0mG != w0mG.max() gP1j = w0mG[ZHfW].tolist() h2IT = h2IT[ZHfW].tolist() KXnc = YKHO._prepare_summary_data(gP1j, h2IT) for H5ew, BWXx in KXnc.items(): setattr(YKHO, H5ew, BWXx) YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O8Yn(YKHO):\n for pOqt in ('doses', 'ns', 'means', 'stdevs'):\n ezWE = getattr(YKHO, pOqt)[:-1]\n setattr(YKHO, pOqt, ezWE)\n YKHO._validate()", "def t2aI(YKHO):\n Hqoa = YKHO.find_max()\n if Hqoa is not None:\n YKHO.items[1] = YKHO.items[YKHO.size]\n YKHO.items[YKHO.s...
[ "0.64582723", "0.622028", "0.5770182", "0.5745489", "0.5629807", "0.5575314", "0.5513428", "0.5490371", "0.54876935", "0.5482849", "0.543109", "0.54207766", "0.5394414", "0.53877926", "0.5351516", "0.53369254", "0.5329014", "0.52281237", "0.5226602", "0.5202013", "0.5201195",...
0.7198417
0
Get a named environment variable.
def Bx7h(mWFP): return Hy7s.environ.get(mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _4kQ(mWFP):\n Es0b = None\n try:\n Es0b = Hy7s.environ[mWFP]\n except KeyError:\n pass\n return Es0b", "def FLAV(XuY2: str):\n return Hy7s.environ[XuY2]", "def Cu40(XuY2):\n try:\n return Hy7s.environ[XuY2]\n except KeyError:\n tf1m = 'Set the %s environment...
[ "0.87718797", "0.8226911", "0.79157805", "0.7888638", "0.7883775", "0.77977866", "0.77544516", "0.7713071", "0.77109146", "0.770913", "0.7647273", "0.7614183", "0.760763", "0.75793314", "0.7554774", "0.7553723", "0.7534137", "0.74628687", "0.7448695", "0.7385682", "0.737286",...
0.87937665
0
Test that multiple subscribers can wait for a notification. This test checks that the subscribers are awoken in the order they subscribed. This may or may not be guarenteed according to the implementations of both ChangeNotifier and the event loop. This test functions as a canary, given that our code may relies on this...
async def test_multiple_subscribers(UHFx: int) -> None: U4ZT = UtFd() dixj = [] async def _do_task_1() -> None: await U4ZT.wait() dixj.append(1) async def _do_task_2() -> None: await U4ZT.wait() dixj.append(2) async def _do_task_3() -> None: await U4ZT.wait...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_single_subscriber() -> None:\n U4ZT = UtFd()\n Aofo = V7ok.create_task(U4ZT.wait())\n await V7ok.sleep(0.1)\n assert Aofo.done() is False\n V7ok.get_running_loop().call_soon(U4ZT.notify)\n await Aofo", "def u5j6(YKHO):\n XP5J = N89S()\n for YRbF in range(6):\n Q81m =...
[ "0.7654742", "0.6791694", "0.67711705", "0.6699863", "0.66720235", "0.6671149", "0.65840507", "0.6576444", "0.65402824", "0.65248865", "0.6514565", "0.64312106", "0.6329941", "0.62138104", "0.61673623", "0.61454916", "0.610082", "0.6076075", "0.6068079", "0.6021281", "0.60173...
0.79677045
0
Decide the position of characters to capitalize. Decides positions in a word to capitalize randomly.
def UtdU(YKHO, GIN8): qMXo = int(len(GIN8) * YKHO.sponge_percentage / 100) FBNX = [] for YRbF in range(0, qMXo): TLKY = YKHO.__generate_position(GIN8, FBNX) FBNX.append(TLKY) return FBNX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CmUU(Emd4, GIN8, FBNX):\n Ss1n = qukk(0, len(GIN8))\n if Ss1n not in FBNX:\n return Ss1n\n else:\n return Emd4.__generate_position(GIN8, FBNX)", "def MJaU(YKHO, GIN8, dQgj):\n if GIN8[0].isupper():\n if dQgj == 0:\n return YKHO.__return_feature_index__(('fCapStart'...
[ "0.70963705", "0.6508292", "0.638785", "0.6289683", "0.62466246", "0.62367964", "0.6230413", "0.6135915", "0.61242163", "0.6101123", "0.60882884", "0.60882884", "0.605548", "0.6048008", "0.6036323", "0.602291", "0.60042727", "0.6003932", "0.5982964", "0.5958503", "0.58701086"...
0.6403706
2
onehot encodes an array
def fKLU(WKvO, jTqs): return oyIN.eye(jTqs, dtype='uint8')[WKvO]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r845] = 1\n return hlel", "def zGX0(YKHO, ezWE, OR2u):\n KLLm = oyIN.zeros((oyIN.multiply(*ezWE.shape), OR2u), dtype=oyIN.float32)\n KLLm[oyIN.arange(KLLm.shape[0]), ezWE.flatten()] = 1.0\...
[ "0.8576771", "0.8545493", "0.8403242", "0.83911836", "0.8277237", "0.8139565", "0.81292146", "0.81211203", "0.80612904", "0.8027901", "0.79804116", "0.7977593", "0.79452986", "0.79127145", "0.78901577", "0.78901285", "0.78709936", "0.7869139", "0.78645533", "0.7858717", "0.78...
0.0
-1
Gets the access control policy on the specified Source.
def zJtK(YKHO, QePW, QpfX): QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED) QpfX.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qFaa(YKHO):\n try:\n na1r.debug('Searching for retention_policy in K2.')\n return YKHO.client.search('retention_policies', name='Best_Effort_Retention').hits[0]\n except Exception as ex:\n na1r.exception('Retention policy search failed in K2.')\n raise ZUNr(reason=aTqo)", "d...
[ "0.6393413", "0.5957159", "0.5945247", "0.5911586", "0.58936405", "0.58229315", "0.5806834", "0.5760215", "0.5638382", "0.5604752", "0.55268115", "0.5494631", "0.5486191", "0.5475898", "0.54113775", "0.54113775", "0.53914684", "0.5362438", "0.53545266", "0.5309652", "0.530673...
0.0
-1
Sets the access control policy on the specified Source.
def kVQY(YKHO, QePW, QpfX): QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED) QpfX.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SPaC(YKHO, vYBr: Optional[int]=None, HyFk: Optional[_models.LeaseAccessConditions]=None, mKkj: Optional[List[_models.SignedIdentifier]]=None, **B2fa: Any) -> None:\n KVtY = {401: lhwm, 404: llBy, 409: DKDz, 304: AVtL}\n KVtY.update(B2fa.pop('error_map', {}) or {})\n kkzV = jxqF(B2fa.pop('headers', {})...
[ "0.590164", "0.568738", "0.56550294", "0.5582311", "0.5579302", "0.537496", "0.5364177", "0.5351427", "0.5315542", "0.5312642", "0.53022426", "0.5188839", "0.5165241", "0.51605785", "0.51604086", "0.51513314", "0.5137051", "0.5127089", "0.5115932", "0.5109599", "0.5108453", ...
0.45882952
79
Check whether relative paths are used within a module.
def T6DH(OaeV, ZlgM): pmON = ZlgM.arg if pmON[0] == '/': WQbV = True else: WQbV = False AdfU = X8Gf.split_paths(pmON) if ':' in AdfU[0]: _63S = AdfU[0].split(':')[0] else: _63S = ZlgM.i_module.i_prefix Kq7E = ZlgM.i_module.i_prefix if _63S == Kq7E and WQbV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j33C(EBgd: Path, HpuQ: Path) -> bool:\n try:\n EBgd.relative_to(HpuQ)\n return True\n except ValueError:\n return False", "def X26e(YKHO):\n YKHO.buildTempDirs()\n aEqx = Hy7s.path.join(YKHO.temp_fake_aa, 'spam')\n Eg8e = Hy7s.path.join(YKHO.temp_fake_aa, 'eggs.py')\n Y...
[ "0.6869687", "0.6536748", "0.64589703", "0.6399969", "0.6396609", "0.6358301", "0.6248277", "0.62355566", "0.6224298", "0.61984104", "0.6163366", "0.6139353", "0.60878813", "0.60558623", "0.6032954", "0.6031183", "0.6009926", "0.6003163", "0.5970523", "0.5964149", "0.59610105...
0.74338627
0
Returns the next power of two greater than or equal to `n`
def nOGD(exwG): YRbF = 1 while YRbF < exwG: YRbF = YRbF << 1 return YRbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKtM(YKHO, exwG):\n if exwG == 0:\n return 1\n return int(2 ** epAf.ceil(epAf.log2(exwG)))", "def rCT3(exwG):\n ju77 = oyIN.log2(exwG)\n kqeo = oyIN.ceil(ju77)\n return oyIN.int(2 ** kqeo)", "def yNd4(exwG):\n UHFx = 0\n if exwG and (not exwG & exwG - 1):\n return exwG\n ...
[ "0.8846374", "0.84687304", "0.841344", "0.81295115", "0.8119157", "0.80217546", "0.7982148", "0.7935714", "0.78664106", "0.7832619", "0.77918994", "0.77531743", "0.77531743", "0.7700856", "0.76726377", "0.76673084", "0.761716", "0.76112163", "0.751201", "0.7486262", "0.746107...
0.8760269
1
Find the minimum value of this probability distribution. Returns float
def max(YKHO): if YKHO._mesh.is_1d(): QyVM = 1 elif YKHO._mesh.is_2d(): QyVM = 2 else: if YKHO._logger: YKHO._logger.error('mesh dimension not implemented') raise NotImplementedError('mesh dimension not implemented') def b52D(r8hN): return r8hN[QyVM] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def min(YKHO) -> float:\n return eQSh.min(YKHO)", "def dgIT(YKHO) -> float:\n return znFd", "def pgD_(YKHO):\n return YKHO._fitness[YKHO._minidx]", "def Kx2j(YKHO) -> float:\n return aXpi", "def qSqA(YKHO):\n return YKHO._fitness[YKHO._minIndex]", "def min(YKHO):\n return YKHO._reduce_f...
[ "0.830633", "0.8093407", "0.79256004", "0.79039156", "0.7789286", "0.7601184", "0.75269556", "0.74669725", "0.7408763", "0.7358523", "0.7336871", "0.73309755", "0.7285753", "0.72768", "0.7253811", "0.72429985", "0.72309744", "0.7176928", "0.71497", "0.71497", "0.71177554", ...
0.0
-1
Find the minimum value of this probability distribution. Returns float
def min(YKHO): if YKHO._mesh.is_1d(): QyVM = 1 elif YKHO._mesh.is_2d(): QyVM = 2 else: if YKHO._logger: YKHO._logger.error('mesh dimension not implemented') raise NotImplementedError('mesh dimension not implemented') def b52D(r8hN): return r8hN[QyVM] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def min(YKHO) -> float:\n return eQSh.min(YKHO)", "def dgIT(YKHO) -> float:\n return znFd", "def pgD_(YKHO):\n return YKHO._fitness[YKHO._minidx]", "def Kx2j(YKHO) -> float:\n return aXpi", "def qSqA(YKHO):\n return YKHO._fitness[YKHO._minIndex]", "def min(YKHO):\n return YKHO._reduce_f...
[ "0.8306288", "0.8093641", "0.79255813", "0.79041344", "0.7789307", "0.76010853", "0.7527025", "0.7467089", "0.7408823", "0.73584664", "0.73366624", "0.733115", "0.72855824", "0.7276661", "0.7253727", "0.72432095", "0.7231134", "0.717682", "0.7149883", "0.7149883", "0.7117972"...
0.0
-1
view root page function that returns the index page and its data
def d6pt(): LOS_ = UEmZ() print(LOS_) leAC = 'Welcome to the Best News Website for latest and current news' return TvZl('index.html', title=leAC, current_news=LOS_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return {'page': 'index'}", "def b8V_():\n B2Dn = xhTS()\n DumB = UlWi(B2Dn)\n SV4W = CDCC()\n QpfX = {'current_page': B2Dn, 'total_pages': SV4W, 'items': DumB}\n return TvZl('index.html', **QpfX)", "def d6pt():\n return TvZl('pages/index.html', isNav=True)", "def kZiy():\n ...
[ "0.82565635", "0.8098345", "0.8021132", "0.7964447", "0.7913464", "0.7913464", "0.7913464", "0.7897068", "0.78894967", "0.78651595", "0.7844439", "0.78408384", "0.7820593", "0.7815564", "0.78104883", "0.78095865", "0.78062797", "0.77909493", "0.77909493", "0.77845234", "0.778...
0.0
-1
calculate the alpha DIRECTLY for the disparity filter
def Wqi3(YKHO, qwQW, tjON): return 1 - (tjON - 1) * zQMB.quad(lambda WKvO: (1 - WKvO) ** (tjON - 2), 0, qwQW)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ifpr(qfpW, vuvg, tjUW):\n return oyIN.dot(qfpW - tjUW, vuvg - tjUW) / oyIN.dot(vuvg - tjUW, vuvg - tjUW)", "def Cwt5(YKHO) -> float:\n return YKHO.intrinsic_matrix[0, 1]", "def Cwt5(YKHO) -> float:\n return YKHO._alpha", "def h56s(A3Vt):\n return 1 - oyIN.abs(A3Vt) ** 2", "def G7cS(YKHO):\n...
[ "0.66736346", "0.6356342", "0.6308676", "0.6225196", "0.6191466", "0.61109656", "0.61109656", "0.61109656", "0.6106442", "0.60542166", "0.60495", "0.5983184", "0.59430313", "0.5911935", "0.5896451", "0.58829683", "0.585503", "0.58384377", "0.5834095", "0.58319455", "0.5827659...
0.0
-1
Reads source and target sequences from txt files.
def FIMM(YKHO, jeRD, WyHi, yOtb, Kg0t, V0f2, L1L7, qIxc, lpha, Cmxr): YKHO.ID = jeRD['ID'] YKHO.turn_id = jeRD['turn_id'] YKHO.dialog_history = jeRD['dialog_history'] YKHO.delex_dialog_history = jeRD['delex_dialog_history'] YKHO.user_uttr = jeRD['user_uttr'] YKHO.turn_belief = jeRD['turn_belief'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uaX7(gY90, YB6w):\n c7pe = []\n x6A0 = []\n with qJi5.GFile(gY90, 'r') as Xf36:\n for zFiD in Xf36:\n c7pe.append(zFiD.rstrip('\\n'))\n with qJi5.GFile(YB6w, 'r') as Xf36:\n for zFiD in Xf36:\n x6A0.append(zFiD.rstrip('\\n'))\n _73Q = list(zip(c7pe, x6A0))\n ...
[ "0.7004346", "0.6208018", "0.61497456", "0.6132846", "0.6076196", "0.60475314", "0.6025892", "0.5775756", "0.56896174", "0.5674089", "0.5657116", "0.56105125", "0.5501782", "0.5494425", "0.5476749", "0.5456228", "0.54284465", "0.54284143", "0.5420703", "0.5415088", "0.5394724...
0.0
-1
Return the direction of the LSPE pointing axis at the given time. `time' is expressed in seconds. The result is a (latitude, longitude) pair in the LSPE coordinate system (z points toward the Zenith).
def aOXB(YKHO, ITS7): return (YKHO.elevation, YKHO.start_angle + ITS7 * YKHO.omega_rot)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kS_7(YKHO, ITS7):\n return e3rO(YKHO.pointing_pos_lspe(ITS7))", "def PSFa(YKHO, ITS7):\n return (YKHO.base_lat, YKHO.base_long + ITS7 * 2 * oyIN.pi * (1 + 1 / YKHO.rev_days) / PbFr)", "def Iyzh(YKHO, ITS7):\n return YKHO._response.getDirection(ITS7)", "def WKDF(YKHO, ITS7):\n return YKHO.vect...
[ "0.70938075", "0.69791526", "0.68939024", "0.6795198", "0.6252546", "0.6250635", "0.61746335", "0.601992", "0.6003701", "0.57562494", "0.5663964", "0.5598658", "0.55148643", "0.5468612", "0.54618716", "0.5375528", "0.5349885", "0.53247106", "0.52398443", "0.5236297", "0.52313...
0.66604656
4
Return the pointing axis at the given time. `time' is expressed in seconds. The result is a 3D normalized vector in the LSPE coordinate system (z points toward the Zenith).
def kS_7(YKHO, ITS7): return e3rO(YKHO.pointing_pos_lspe(ITS7))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmTN(ITS7='now'):\n JG3c = LrXp(ITS7)\n QGt6 = DDGt(equinox=JG3c, obstime=JG3c)\n return d1Zr(QGt6)", "def aOXB(YKHO, ITS7):\n return (YKHO.elevation, YKHO.start_angle + ITS7 * YKHO.omega_rot)", "def WKDF(YKHO, ITS7):\n return YKHO.vect_from_lspe_to_earth(YKHO.pointing_dir_lspe(ITS7), ITS7)"...
[ "0.6433514", "0.64309686", "0.6389323", "0.6296026", "0.62352294", "0.6122941", "0.6073413", "0.59992754", "0.59911525", "0.58216655", "0.57996625", "0.56260103", "0.5584469", "0.5572924", "0.5554556", "0.55154806", "0.5493454", "0.54903036", "0.5326363", "0.5326363", "0.5281...
0.58437085
9
Return the pointing axis at the given time. `time' is expressed in seconds. The result is a 3D normalized vector in the Earth coordinate system (equatorial coordinates).
def WKDF(YKHO, ITS7): return YKHO.vect_from_lspe_to_earth(YKHO.pointing_dir_lspe(ITS7), ITS7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dpED(YKHO, ITS7):\n return YKHO.vect_from_lspe_to_earth(YKHO.spin_axis_lspe(ITS7), ITS7)", "def JmTN(ITS7='now'):\n JG3c = LrXp(ITS7)\n QGt6 = DDGt(equinox=JG3c, obstime=JG3c)\n return d1Zr(QGt6)", "def ZIKL(YKHO, iArr, ITS7):\n wLdB = YKHO.lspe_coordinates(ITS7)\n YylR = oyIN.pi * 0.5 - ...
[ "0.7195893", "0.626813", "0.6265568", "0.6017088", "0.6016693", "0.59964687", "0.5989676", "0.5925973", "0.5901042", "0.58309186", "0.5752033", "0.56539387", "0.5561295", "0.5533267", "0.55301183", "0.5498682", "0.5498639", "0.5467805", "0.5411977", "0.53572595", "0.53317136"...
0.6909739
1
Return the coordinates of LSPE at the given time. The result is a (latitude, longitude) pair specifying where LSPE is at the given `time' (in seconds).
def PSFa(YKHO, ITS7): return (YKHO.base_lat, YKHO.base_long + ITS7 * 2 * oyIN.pi * (1 + 1 / YKHO.rev_days) / PbFr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JWM5(ITS7):\n klZU = 36000.7695\n cufM = 280.4659\n k0lF = oyIN.array([1.9147, 0.02, 0.0048, 0.002, 0.0018, 0.0018, 0.0015, 0.0013, 0.0007, 0.0007, 0.0007, 0.0006, 0.0005, 0.0005, 0.0004, 0.0004])\n tjUW = oyIN.array([35999.05, 71998.1, 1934, 32964, 19, 445267, 45038, 22519, 65929, 3035, 9038, 3371...
[ "0.64156216", "0.62733424", "0.6054417", "0.59554416", "0.575077", "0.5719059", "0.569973", "0.56042564", "0.54053766", "0.53990406", "0.5355739", "0.5332108", "0.53242445", "0.5267854", "0.52543586", "0.5240149", "0.52363694", "0.52345276", "0.52316546", "0.5230655", "0.5202...
0.8144775
0
Return the LSPE spin axis at the given time. `time' is expressed in seconds. The result is a 3D normalized vector in the equatorial coordinate system.
def dpED(YKHO, ITS7): return YKHO.vect_from_lspe_to_earth(YKHO.spin_axis_lspe(ITS7), ITS7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZIKL(YKHO, iArr, ITS7):\n wLdB = YKHO.lspe_coordinates(ITS7)\n YylR = oyIN.pi * 0.5 - wLdB[0]\n AvVN = oyIN.array([-oyIN.sin(wLdB[1]), oyIN.cos(wLdB[1]), 0])\n return N0Pp(iArr, YylR, AvVN)", "def BWXx(YKHO, ITS7):\n Kt_s = YKHO.translate.value(ITS7)\n Kt_s = he6J(he6J(1, 0, 0, Kt_s[0]), he...
[ "0.624724", "0.608877", "0.5773101", "0.5696111", "0.56890506", "0.5685792", "0.56773686", "0.56202793", "0.5601596", "0.5515599", "0.5491223", "0.54664624", "0.5454418", "0.53252333", "0.5323779", "0.52936375", "0.52904826", "0.52311695", "0.5209736", "0.5209331", "0.5205471...
0.7387977
0
Split a list into parts based on a set of indexes
def Qrt_(ybN4, _0VL): return [ybN4[YRbF:r845] for YRbF, r845 in zip([0] + _0VL, _0VL + [None])]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(qw7D, bS0K):\n if isinstance(bS0K, int):\n return list(qw7D[0:bS0K], qw7D[bS0K:])\n FMk5 = []\n vgXP = 0\n for or8S in bS0K:\n FMk5.append(qw7D[vgXP:or8S])\n vgXP += or8S\n if bS0K[-1] < len(qw7D):\n FMk5.append(qw7D[bS0K[-1]:])\n return FMk5", "def IeGF(xpK...
[ "0.69890213", "0.6807072", "0.677275", "0.677275", "0.6755652", "0.6721113", "0.6678109", "0.66106856", "0.6585786", "0.64385384", "0.6438394", "0.643007", "0.63700277", "0.6337263", "0.63080686", "0.6291404", "0.62714213", "0.6254273", "0.62111574", "0.6197336", "0.61953783"...
0.72672635
0
False if self.audit or self.audit_id is set, True otherwise.
def a7uL(YKHO): return YKHO.audit_id is None and YKHO.audit is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cKH7(YKHO) -> bool:\n Aofo = True\n for yK6F in YKHO.allowed_effects:\n if yK6F not in ['disabled', 'audit', 'auditifnotexists']:\n Aofo = False\n return Aofo", "def EkIl(YKHO):\n if YKHO.crypt_private is not None and YKHO.sign_private is not None:\n return True\n else...
[ "0.683113", "0.6191331", "0.6014149", "0.5957627", "0.59350103", "0.5918815", "0.5918815", "0.5884331", "0.58457464", "0.57644427", "0.5666733", "0.5666299", "0.5661693", "0.56545955", "0.5641392", "0.5625657", "0.5624119", "0.5619391", "0.56157696", "0.56139696", "0.5597099"...
0.71672326
0
Create a copy of this Query, optionally with a different store instance than this query's self.store.
def jth9(YKHO, VUF1: Optional[StoreInterface]=None) -> 'Query': xDcj = _aLO(store=VUF1 or YKHO.store) xDcj.selected = {G1Hx: Ty9i.copy() for G1Hx, Ty9i in YKHO.selected.items()} xDcj.predicate = YKHO.predicate.copy() xDcj.orderings = _qLf(YKHO.orderings) xDcj.limit_index = YKHO.limit_index xDcj....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return type(YKHO)(*YKHO.__queries, op=YKHO.__op)", "def bv2I(YKHO):\n Z9rn = YKHO.__class__(model=YKHO.model, query=YKHO.query.chain(), using=YKHO._db, hints=YKHO._hints)\n Z9rn._sticky_filter = YKHO._sticky_filter\n Z9rn._for_write = YKHO._for_write\n Z9rn._prefetch_related_look...
[ "0.7348373", "0.6757588", "0.67500645", "0.6685531", "0.6333551", "0.6175301", "0.61612636", "0.61032754", "0.59796643", "0.5944079", "0.5938738", "0.59329224", "0.5882597", "0.5845459", "0.5837441", "0.5806018", "0.5794587", "0.57779443", "0.57744503", "0.57643527", "0.57435...
0.8707415
0
Set the pagination "limit", as in the maximum number of records to return per "page."
def qoqK(YKHO, qoqK: int) -> 'Query': YKHO.limit_index = max(1, qoqK) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK", "def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK\n return YKHO", "def USOo(YKHO, qoqK):\n NArs = Mq78(YKHO.parameters, {'per_page': h6ei(qoqK), 'limit': YKHO._limit, 'url_domain': YKHO.url_domain, 'proxies': YKHO.proxies})\n return YKHO.__class__(**NArs)",...
[ "0.76834166", "0.7615425", "0.7607272", "0.75510806", "0.75510806", "0.75510806", "0.7528365", "0.7507847", "0.7503021", "0.7270429", "0.7229816", "0.71996254", "0.71189463", "0.7104942", "0.7061253", "0.70071185", "0.6994131", "0.69546235", "0.6927474", "0.6855342", "0.68012...
0.70080024
15
Make a scalar R>R function into a tensor one
def hAEw(eHNT): def Oa1e(EcVT: tuple()): return sjOu(eHNT(sjOu(EcVT))) return Oa1e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vhpA(*qIxc, **B2fa):\n return llWB(*qIxc, **B2fa)", "def UUG8(hAEw, WKvO, LVAh, YDYE=None):\n A3Vt = ZylS.add(ZylS.scalar_mul(hAEw, WKvO), LVAh)\n if YDYE:\n return YDYE(A3Vt)\n else:\n return A3Vt", "def nrOS(YKHO, vhpA):\n vhpA = (vhpA - 127.5) / 127.5\n assert ht2j.min(vh...
[ "0.6278768", "0.6250319", "0.6036445", "0.60087484", "0.5967739", "0.5964352", "0.5888104", "0.5886529", "0.5856317", "0.5839871", "0.5832009", "0.5796428", "0.5748774", "0.57463694", "0.569091", "0.56640303", "0.56586426", "0.5650278", "0.5646189", "0.5639135", "0.56217676",...
0.59738374
4
Test the situation when scenario is not found.
def Ey1Z(GvHC, yVDk): GvHC.makefile('.feature', not_found=TI0e.dedent(' Feature: Scenario is not found\n\n ')) GvHC.makepyfile(TI0e.dedent(' import re\n import pytest\n from pytest_bdd import parsers, given, then, scenario\n\n @scenario("not_found.feature", "NOT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u_ak(YKHO):\n with YKHO.assertRaises(Exception):\n YKHO.run_step('FAKE-STEP.no-exists')", "def amXm(YKHO):\n bD7m = 'i4x://MITx/999/chapter/notfound'\n with YKHO.assertRaises(bWeC.DashboardError):\n bWeC.find_unit(YKHO.course, bD7m)", "def ZQkg(YKHO):\n YKHO.library.get.when.calle...
[ "0.7552852", "0.724558", "0.71064776", "0.69101816", "0.6812769", "0.67679614", "0.67449826", "0.6726229", "0.658368", "0.6548276", "0.6542335", "0.65245664", "0.65075564", "0.65014774", "0.64789724", "0.6474327", "0.64591765", "0.6428042", "0.6419193", "0.6389983", "0.636883...
0.7472041
1
Return True if number is a power of two, supports n>1 and n<1.
def z0fB(exwG: Union[int, float]): if exwG > 1: if exwG != int(exwG): return False exwG = int(exwG) return exwG != 0 and exwG & exwG - 1 == 0 elif exwG == 1: return True elif exwG > 0: return z0fB(1 / exwG) else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gEah(YKHO, exwG: int) -> bool:\n if exwG <= 0:\n return False\n return bin(exwG).count('1') == 1", "def z0fB(exwG):\n if exwG < 0:\n return False\n else:\n return exwG & exwG - 1 == 0", "def z0fB(exwG):\n if exwG <= 0:\n return False\n else:\n return exw...
[ "0.8641741", "0.8559665", "0.853048", "0.8378766", "0.8378766", "0.8273397", "0.8103103", "0.80063003", "0.7962913", "0.7507049", "0.73038036", "0.7036625", "0.6923268", "0.69191253", "0.68892705", "0.6852972", "0.6748093", "0.67080873", "0.66790396", "0.66678953", "0.6577840...
0.84972197
3
We currently convert xarray Dataset input into a numpy structured array. Xarry Datasets appear to be rather slow in testing, I believe because they do some stuff under the hood with matching coordinates when you do basic operations. Also, you can't do any fancy indexing with xarray Dataset, at best you can use slice wi...
def _qCn(YKHO): U1J1 = ['x', 'y', 'z', 'tvu', 'thu'] XDPY = [(mZ1z, YKHO.data[mZ1z].dtype) for mZ1z in U1J1 if mZ1z in YKHO.data] kNus = oyIN.empty(len(YKHO.data['x']), dtype=XDPY) for mZ1z, hfFz in XDPY: kNus[mZ1z] = YKHO.data[mZ1z].values YKHO.data = kNus
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XryS(oxOY: xr.Dataset) -> oyIN.ndarray:\n qw7D = oxOY.transpose('lat', 'lon', 'band').to_array().values\n return oyIN.squeeze(qw7D, 0)", "def ARze(YKHO):\n SDIH = zuVY.Dataset()\n for SRYB, nPrm in YKHO.items(deep=True):\n SDIH[SRYB] = nPrm.to_xarray()\n SDIH.attrs.update(**YKHO.attrs)\...
[ "0.6672121", "0.6504071", "0.64366394", "0.6436551", "0.6390116", "0.6316874", "0.62554896", "0.62541354", "0.6224573", "0.61783355", "0.61278087", "0.61178744", "0.61000365", "0.609082", "0.6057803", "0.60349447", "0.6032285", "0.60014206", "0.5989693", "0.598313", "0.597381...
0.5563167
73
Return a list of layer names based on what layers exist in the BaseSurface instance. Returns list
def VsZl(YKHO): Vxqs = [] if YKHO.node_data is not []: for gaJu, PxR3 in YKHO.layer_lookup.items(): if YKHO.node_data[PxR3].any(): Vxqs.append(gaJu) return Vxqs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xQJr(YKHO):\n return YKHO._fileSystem.getLayerNames()", "def jn2h(YKHO):\n fhcK = []\n for KCHu in YKHO.surfaces:\n exwG = YKHO.miller_to_direction(KCHu)\n Mkmy = oyIN.dot(YKHO.get_positions() - YKHO.center, exwG).max()\n Csk6 = YKHO.get_layer_distance(KCHu, 2)\n vC9B = 2...
[ "0.76468474", "0.7344719", "0.7263227", "0.723299", "0.7055118", "0.6845979", "0.6752388", "0.6735394", "0.67261845", "0.6679928", "0.6628666", "0.6517553", "0.6470188", "0.6391233", "0.63873905", "0.63852024", "0.6367763", "0.6298952", "0.6251205", "0.62266123", "0.6179383",...
0.7293472
2
Get the attribute corresponding to attr from all leaves
def icTA(YKHO, hkS8: str): return [getattr(vexM, hkS8) for vexM in YKHO.leaves]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 return Am8S(YEnM.attrs, hkS8)[hkS8]", "def bVlj(YKHO, Q6kx, hkS8):\n return YKHO.metrics[hkS8].ix[Q6kx]", "def KHOR(nUeQ, J_Es, hkS8...
[ "0.69037783", "0.68113965", "0.68011683", "0.6742704", "0.66509706", "0.62171644", "0.6213443", "0.6208558", "0.6163948", "0.6148756", "0.60806924", "0.6068117", "0.6030441", "0.5967563", "0.59623355", "0.59315515", "0.59315515", "0.58916986", "0.58902794", "0.58779556", "0.5...
0.7731435
0
Return a list of all neighbors for this QuadTree (orthogonal) Returns list list of QuadTrees that are orthogonally adjacent to this QuadTree
def bdGm(YKHO): bdGm = [] tk5Y = YKHO.root if YKHO == tk5Y: return bdGm maxY = [YKHO.maxs[0] - YKHO.mins[0], YKHO.maxs[1] - YKHO.mins[1]] jNOo = [(YKHO.mins[0] + maxY[0] / 2, YKHO.maxs[1] + maxY[1] / 2), (YKHO.maxs[0] + maxY[0] / 2, YKHO.mins[1] + maxY[1] / 2), (YKHO.mins[0] + maxY[0] / 2, Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bdGm(YKHO):\n PwWw = set()\n return [vC9B.other(YKHO) for vC9B in YKHO.dovetails if id(vC9B) not in PwWw and (not PwWw.add(id(vC9B)))]", "def JjFS(YKHO):\n PwWw = set()\n return [vC9B.other(YKHO) for vC9B in YKHO.dovetails_L if id(vC9B) not in PwWw and (not PwWw.add(id(vC9B)))]", "def bdGm(YKHO...
[ "0.69070774", "0.6672059", "0.6541326", "0.6539021", "0.6521663", "0.6521663", "0.6507441", "0.64733523", "0.6458688", "0.6458688", "0.64416724", "0.6341816", "0.6302468", "0.62991655", "0.62931883", "0.6275906", "0.62652934", "0.62225336", "0.6208394", "0.6181248", "0.618098...
0.70649123
0
Return a list of all leaves for the tree, leaves being QuadTrees with no children Returns list list of QuadTrees
def K3B_(YKHO): return YKHO.get_leaves()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ozmh(YKHO):\n Ziit = YKHO._heads[:]\n K3B_ = []\n azXi = set(Ziit)\n while Ziit:\n exwG = Ziit.pop()\n if exwG.all_children:\n KgZi = [Z9rn for Z9rn in exwG.all_children if Z9rn not in azXi]\n Ziit.extend(KgZi)\n azXi.update(KgZi)\n else:\n ...
[ "0.7597788", "0.7445184", "0.7390554", "0.7359457", "0.7294599", "0.72522914", "0.7133439", "0.71092623", "0.709481", "0.69948804", "0.69900835", "0.69755894", "0.69286317", "0.6925147", "0.69246536", "0.6905016", "0.6859689", "0.6816301", "0.6789675", "0.6780764", "0.6756697...
0.6784422
19
Create a language model based on the Crepe model in Zhang et. al. Creates a model that uses only Convolutional Layers (max pooling in between), and dense layers for prediction tasks. For this model, the final output layer will predict the next character in the sequence.
def xeR6(qXlM=None, PJWX=None): if qXlM is None: qXlM = EDpA.load_dictionary('model_hyperparameters.json') '\n Load hyperparameter-specific values from JSON file.\n ' bV1g = qXlM.get('vocabulary_size') cSG5 = qXlM.get('text_length') gt4n = qXlM.get('num_filters') gwAu = qXlM.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQs7():\n C3ST = ileL()\n C3ST.add(Zlsf(lambda WKvO: WKvO / 127.5 - 1.0, input_shape=cHjE))\n C3ST.add(yHwh(24, (5, 5), activation='elu', strides=(2, 2)))\n C3ST.add(GVKG())\n C3ST.add(yHwh(36, (5, 5), activation='elu', strides=(2, 2)))\n C3ST.add(GVKG())\n C3ST.add(yHwh(48, (5, 5), activa...
[ "0.67907363", "0.67853427", "0.66978896", "0.6664061", "0.6596703", "0.6590391", "0.65843797", "0.6537042", "0.6521642", "0.65098804", "0.6504644", "0.64829683", "0.64660394", "0.64641047", "0.6429148", "0.64270455", "0.6405421", "0.6403719", "0.6393534", "0.6377966", "0.6366...
0.6983286
0
check if values in `df` are higher than those in `df2`.
def SwlE(jQ3Z, qaAi, waEm='max'): if waEm == 'max': return jQ3Z[jQ3Z['max'] > qaAi['max']].drop('mean', axis=1) elif waEm == 'mean': return jQ3Z[jQ3Z['mean'] > qaAi['mean']].drop('max', axis=1) else: raise ValueError('unknown test')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPrO(_lYe, qaAi):\n _0VL = list(set(_lYe.index).intersection(qaAi.index))\n gLXy = _lYe.loc[_0VL, :]\n _p1M = qaAi.loc[_0VL, :]\n jQ3Z = gLXy - _p1M\n U0W_ = jQ3Z.applymap(lambda Ty9i: Ty9i <= 0)\n Aofo = U0W_.sum().sum() == jQ3Z.size\n return Aofo", "def cIT_(_lYe, qaAi, rhd_=0.5) -> bo...
[ "0.7089077", "0.65464246", "0.6446613", "0.6308537", "0.62558085", "0.62524134", "0.6236358", "0.616724", "0.61446786", "0.61343825", "0.6126738", "0.60659033", "0.60639274", "0.6008289", "0.59934646", "0.5992191", "0.5976035", "0.59452075", "0.59068024", "0.5898108", "0.5892...
0.66314673
1
Modifies a string to determine the correct case for each individual character in the string. A character will be uppercase if the bit representing it in the iteration value is set to 1. For example, the string "hello" with an iteration of 3 would be return "HEllo".
def vJBM(WBPg, dfHy): if dfHy <= 0: return WBPg.lower() gLiZ = [] eSnm = [] for YRbF, hcXw in enumerate(WBPg): if hcXw not in vIwR.ascii_letters: eSnm.append({'char': hcXw, 'pos': YRbF}) else: gLiZ.append(hcXw) for YRbF, hcXw in enumerate(gLiZ): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLRn(vIwR: str) -> str:\n return ''.join(('[' + Z9rn.upper() + Z9rn.lower() + ']' if Z9rn.isalpha() else Z9rn for Z9rn in ZbWC.escape(vIwR)))", "def O5QS(vIwR):\n gSE7 = ''\n for hcXw in vIwR:\n if hcXw.isupper():\n gSE7 += '_%s' % hcXw.lower()\n else:\n gSE7 += h...
[ "0.72456825", "0.7035167", "0.6963037", "0.6683893", "0.6570315", "0.65661544", "0.6561868", "0.65565664", "0.65565664", "0.65565664", "0.65565664", "0.6546514", "0.6458094", "0.6431306", "0.6342048", "0.6290183", "0.6276903", "0.6270719", "0.625104", "0.6237894", "0.6229199"...
0.7466728
0
Return the GeoDataFrame geometry coordinates as list. >>> from shapely.geometry import LineString >>> geo_dataframe_to_list(gpd.GeoDataFrame(geometry=[LineString([(0, 0), (1, 1)])])) [[(0.0, 0.0), (1.0, 1.0)]]
def BNNj(Kiac, j5tF=False): dzye = [] for zFiD in Kiac.geometry: Nqlg = [] if j5tF: for hkxX in zFiD.exterior.coords: Nqlg.append(hkxX) else: for hkxX in zFiD.coords: Nqlg.append(hkxX) dzye.append(Nqlg) return dzye
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jrKi(Fw8z):\n if Fw8z.geom_type == 'Polygon':\n return [Fw8z]\n elif Fw8z.geom_type == 'MultiPolygon':\n return Fw8z.geoms", "def l9X7(nPrm, mWFP='sources'):\n tO9_ = 'contains geometries that are not points'\n if isinstance(nPrm, (list, tuple)):\n if any((YRbF.geom_type != '...
[ "0.73027647", "0.67995375", "0.6595124", "0.6595124", "0.6595124", "0.65617627", "0.6501597", "0.6494119", "0.6448384", "0.639071", "0.6296989", "0.6264255", "0.6244541", "0.62118316", "0.6195807", "0.6195759", "0.6193018", "0.611168", "0.6107985", "0.6086046", "0.6048354", ...
0.8569541
0
Determine ratio to transform real units to pixels. >>> determine_real_to_pixel_ratio((155, 155), 0, 0, 100, 100) 1.55
def waMo(lNai: Tuple[int, int], JRC0: float, LChT: float, IA3S: float, dCLF: float): xG2C = lNai[1] KtOa = lNai[0] q_cO = IA3S - JRC0 Q_eH = dCLF - LChT WDBs = xG2C / q_cO E9vb = KtOa / Q_eH if not oyIN.isclose(WDBs, E9vb): G9jH.info(f'Resolution in x and y axes differ: x: {WDBs} y: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HTGA():\n return 1 / G_Pv()", "def BBVU(VXjJ):\n aSsI = 4872 * 6496\n Ouhn = VXjJ.shape[0] * VXjJ.shape[1]\n dMYj = Ouhn / aSsI\n return dMYj", "def ldZo(YKHO):\n return 2 ** (YKHO.levels[-1] - YKHO.levels[0])", "def OHum(N0ky: tuple, B_yZ: tuple):\n C58h = B_yZ[0] / N0ky[0]\n Uwu...
[ "0.57218885", "0.5695205", "0.56670064", "0.5639818", "0.5583204", "0.55717343", "0.54913086", "0.54902655", "0.5475159", "0.54592144", "0.5391389", "0.5386133", "0.5377819", "0.5377819", "0.5377819", "0.5377819", "0.5377819", "0.5377819", "0.5377819", "0.5377819", "0.5377819...
0.7477013
0
Return a binary matrix where 1s correspond to the coordinates in the dataframe. Slack determines how accurately the pixels in return array are turned into 1s. I.e. it is equivalent to a buffer around each trace. The higher abs(slack) the more "rounded" the areas. >>> from shapely.geometry import LineString, box >>> geo...
def fjWE(Kiac: gpd.GeoDataFrame, Htse, PCVg: gpd.GeoDataFrame, mE3u: int=0): def lCL9(jcPU: List[Tuple[int, int]], MC8u: LineString, IO6x: Callable, Ua5v: Callable): yqD4 = MC8u.xy[0] aYhq = MC8u.xy[1] for WKvO, LVAh in zip(yqD4, aYhq): WKvO = int(IO6x(WKvO)) LVAh = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XdOU(zy_N, oJJL, kYVl, AUJJ):\n MGkT = XTiz.full((kYVl, AUJJ), False, dtype=bool)\n MGkT[zy_N, oJJL] = True\n return MGkT", "def dSTx(MGkT):\n return XTiz.where(MGkT)", "def XNrW(LVAh, vsK8):\n oeNL = oyIN.in1d(LVAh, vsK8).reshape(LVAh.shape)\n eLqP = oyIN.zeros(LVAh.shape, dtype=oyIN.int...
[ "0.5656183", "0.5549513", "0.52041864", "0.49339083", "0.492434", "0.49073893", "0.49058205", "0.49001232", "0.48872524", "0.4862354", "0.48543525", "0.48536086", "0.48409858", "0.4837322", "0.481904", "0.4791744", "0.4698955", "0.4665087", "0.4663252", "0.46290466", "0.46201...
0.74961513
0
Check if specified columns have the same base dtypes across both DataFrames.
def _fWt(p0EN, j5az, ZLJ_=None): if ZLJ_ is None: if any(set(p0EN.columns).symmetric_difference(set(j5az.columns))): print('Cannot test all columns because they are not all shared across DataFrames') return False ZLJ_ = p0EN.columns if not (tZi7(df=p0EN, columns=ZLJ_) and...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sA5Z(wEHg):\n for YRbF in wEHg:\n if not wEHg.dtypes[1] == wEHg.dtypes[YRbF]:\n raise ValueError('Types do not match')", "def kQqI(YKHO, Elif: 'PlainFrame'):\n go_b = {iVRZ.name: iVRZ.dtype for iVRZ in YKHO.parent.plaincolumns}\n BUaT = {iVRZ.name: iVRZ.dtype for iVRZ in Elif.plain...
[ "0.7408321", "0.71147156", "0.6641731", "0.65087014", "0.63816726", "0.6321202", "0.629999", "0.6283512", "0.6265409", "0.6262452", "0.6251955", "0.6239271", "0.6219968", "0.6186627", "0.6135912", "0.6122012", "0.61172754", "0.6110978", "0.60853505", "0.60832155", "0.6078434"...
0.8694105
0
Check columns of DataFrame inputs. This includes the checks on 1. whether the input columns exist in the input DataFrames. 2. whether the data types of col_user as well as col_item are matched in the two input DataFrames.
def dfgq(JfyU): @zaGL(JfyU) def vm29(rlsr, WCoU, Gta7=TcYg, ZqVT=tUER, Vc9H=aPQ9, D1IY=IVQw, *qIxc, **B2fa): """Check columns of DataFrame inputs. Args: rating_true (pd.DataFrame): True data. rating_pred (pd.DataFrame): Predicted data. col_user (str): column...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vA80(KYM1, wEHg):\n if not all([ZfUD in KYM1 for ZfUD in wEHg.columns]):\n raise ValueError('Columns do not match')", "def V0OA(jQ3Z: pd.DataFrame, ZWCE: typing.Sequence[str]) -> None:\n for aEqx in ZWCE:\n if aEqx not in jQ3Z.columns:\n raise ValueError(f\"'{aEqx}' column not ...
[ "0.7297595", "0.7219656", "0.6985565", "0.6940473", "0.68711317", "0.67589295", "0.67561454", "0.6635416", "0.65715855", "0.6518252", "0.65078294", "0.6379187", "0.6378104", "0.63751537", "0.63514984", "0.6336134", "0.6325551", "0.62211627", "0.62177145", "0.6204443", "0.6203...
0.72755945
1
Check columns of DataFrame inputs.
def vm29(rlsr, WCoU, Gta7=TcYg, ZqVT=tUER, Vc9H=aPQ9, D1IY=IVQw, *qIxc, **B2fa): if not tZi7(rlsr, [Gta7, ZqVT, Vc9H]): raise ValueError('Missing columns in true rating DataFrame') if not tZi7(WCoU, [Gta7, ZqVT, D1IY]): raise ValueError('Missing columns in predicted rating DataFrame') if not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V0OA(jQ3Z: pd.DataFrame, ZWCE: typing.Sequence[str]) -> None:\n for aEqx in ZWCE:\n if aEqx not in jQ3Z.columns:\n raise ValueError(f\"'{aEqx}' column not found in input\")\n return", "def vA80(KYM1, wEHg):\n if not all([ZfUD in KYM1 for ZfUD in wEHg.columns]):\n raise Value...
[ "0.8138648", "0.8009004", "0.78570914", "0.7762899", "0.7692292", "0.74537516", "0.7437064", "0.7314041", "0.71670604", "0.7125938", "0.70786184", "0.7066877", "0.7007949", "0.699493", "0.69611573", "0.69052166", "0.68848443", "0.6850352", "0.6823604", "0.67768997", "0.675656...
0.0
-1
Calculate the AreaUnderCurve metric. Calculate the AreadUnderCurve metric for implicit feedback typed recommender, where rating is binary and prediction is float number ranging from 0 to 1.
def zUeS(rlsr, WCoU, Gta7=TcYg, ZqVT=tUER, Vc9H=aPQ9, D1IY=IVQw): Y8eF, aMgO = AVkY(rating_true=rlsr, rating_pred=WCoU, col_user=Gta7, col_item=ZqVT, col_rating=Vc9H, col_prediction=D1IY) return Qq_d(Y8eF, aMgO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zUeS(Y8eF, aMgO):\n with ZylS.name_scope('RocAucScore'):\n oeNL = ZylS.boolean_mask(aMgO, ZylS.cast(Y8eF, ZylS.bool))\n V3hn = ZylS.boolean_mask(aMgO, ~ZylS.cast(Y8eF, ZylS.bool))\n oeNL = ZylS.expand_dims(oeNL, 0)\n V3hn = ZylS.expand_dims(V3hn, 1)\n KMvS = 0.2\n X...
[ "0.634584", "0.63127875", "0.6220491", "0.62128216", "0.6148436", "0.61381024", "0.613065", "0.6032029", "0.59607893", "0.5954473", "0.5927012", "0.5906104", "0.58835906", "0.58814156", "0.5876876", "0.58675784", "0.58647805", "0.58647805", "0.5861427", "0.5840358", "0.575434...
0.603403
7
verifies whether the user password is correct
def FrJ2(NtEF: str, jTXt: str) -> bool: cuiw = DMju() CBIr: mv1M = cuiw.query(mv1M).filter(mv1M.username == NtEF).first() rgK4 = jTXt.encode('utf-8') if CBIr and B8ni.checkpw(rgK4, CBIr.password_hash.encode('utf-8')): cuiw.refresh(CBIr) return CBIr.id cuiw.close() if not CBIr: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNjs(YKHO, jTXt):\n return YKHO.PASS == jTXt", "def EvfH(YKHO, jTXt):\n return YKHO.password == jTXt", "def sNjs(YKHO, jTXt):\n return YKHO.PASSWORD == jTXt", "def viSq(YKHO):\n YKHO.user.password = '123456'\n YKHO.assertTrue(YKHO.user.verify_password('123456'))\n YKHO.assertFalse(YKHO....
[ "0.79849017", "0.7920743", "0.7886876", "0.7811781", "0.7805611", "0.7786152", "0.77789557", "0.77745336", "0.77577746", "0.77044064", "0.76242536", "0.76149166", "0.75667053", "0.756621", "0.7538054", "0.7535364", "0.7525703", "0.75153124", "0.75075984", "0.75032437", "0.749...
0.0
-1
Looks up user by id.
def bt8D(uJjO: int) -> mv1M: cuiw = DMju() rqQf: mv1M = cuiw.query(mv1M).filter(mv1M.id == uJjO).first() cuiw.close() if not rqQf: raise dRH6 return rqQf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(YKHO, id):\n return YKHO.users.get(id)", "def UH_v(id: str) -> mv1M:\n return mv1M.query.get(int(id))", "def JuUv(YKHO, id):\n for CBIr in YKHO.users:\n if CBIr['id'] == id:\n return CBIr", "def TKWP(id):\n pass", "def kkRG(YKHO, _eu6):\n mRLc = YKHO._db.Users(HlzD...
[ "0.84620047", "0.8195957", "0.8163513", "0.80844134", "0.8067835", "0.8066282", "0.79709303", "0.79524136", "0.79524136", "0.79524136", "0.79524136", "0.79498637", "0.79072964", "0.7903944", "0.79022855", "0.7881155", "0.78770703", "0.78700954", "0.78677875", "0.7862678", "0....
0.72641045
91
weight_variable generates a weight variable of a given shape.
def E9N2(ROpF): RqgG = ZylS.truncated_normal(ROpF, stddev=0.1) return ZylS.Variable(RqgG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.get_variable('weight', initializer=RqgG, regularizer=ZylS.nn.l2_loss)", "def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF)\n return ZylS.Variable(RqgG)", "def JJi2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev...
[ "0.8268452", "0.8235441", "0.8159065", "0.81569624", "0.81399345", "0.81399345", "0.81399345", "0.8134774", "0.8134774", "0.8134774", "0.8134774", "0.8134774", "0.8134774", "0.8134774", "0.8134774", "0.8134774", "0.8134774", "0.81210643", "0.80650693", "0.79823756", "0.797880...
0.813776
7
conv2d returns a 2d convolution layer with full stride.
def b_zE(WKvO, XcU5): return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DYf_():\n VXjJ = oyIN.array([[0.3, 0.5, 0.7, 0.9], [0.1, 0.3, 0.5, 0.7], [0.9, 0.7, 0.5, 0.3]])\n rPXJ = oyIN.array([[1, 0], [1, 0]])\n rPXJ = oyIN.flipud(oyIN.fliplr(rPXJ))\n return cxpp(VXjJ, rPXJ, mode='valid')", "def gZ8A(WKvO, XcU5):\n return ZylS.nn.conv2d(input=WKvO, filter=XcU5, stride...
[ "0.7629538", "0.7627165", "0.7579147", "0.7463493", "0.74578935", "0.74578935", "0.7426121", "0.7426121", "0.7426121", "0.7426121", "0.7386576", "0.7337714", "0.7330282", "0.73295087", "0.7313963", "0.73015827", "0.7296284", "0.72696656", "0.72463566", "0.72321266", "0.720884...
0.71902525
22
Compute logistic sigmoid activation
def ECMu(YKHO, epBp): return 1.0 / (1.0 + oyIN.exp(-oyIN.clip(epBp, -250, 250)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d1fz(WKvO):\n return 1.0 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n retur...
[ "0.838003", "0.819735", "0.819735", "0.81502354", "0.8134324", "0.8134324", "0.8134324", "0.8134324", "0.8134324", "0.8134324", "0.812058", "0.8110861", "0.8107186", "0.8099222", "0.8098866", "0.80923676", "0.80923676", "0.8088351", "0.80804044", "0.8072143", "0.80694366", ...
0.0
-1
fixture for creating a spark context
def nr89(QePW): ujem = lBG2.builder.master('local[1]').appName('pytest-test').getOrCreate() QePW.addfinalizer(lambda: ujem.stop()) _ACa() return ujem
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ujem():\n tjS7()\n mBtZ = lBG2.builder.master('local[2]').appName('pytest-pyspark-local-testing').config('spark.sql.shuffle.partitions', 4)\n if 'XDG_CACHE_HOME' in Hy7s.environ:\n mBtZ.config('spark.jars.ivy', Hy7s.path.join(Hy7s.environ['XDG_CACHE_HOME'], 'ivy2'))\n with mBtZ.getOrCreate()...
[ "0.7401126", "0.7185849", "0.7147665", "0.71358913", "0.6700026", "0.66479564", "0.6571936", "0.6427863", "0.6411044", "0.636135", "0.6243758", "0.6203419", "0.6150244", "0.61185306", "0.6116119", "0.6085249", "0.6083701", "0.60627055", "0.6043724", "0.60128736", "0.6011979",...
0.77547735
0
Plot range of reward high and low percentile
def LYdT(YKHO, yA3N, sEAN, qfpW=None, Cwt5=0.2, **B2fa): WKvO, JBMS = yA3N.get_reward_mean() bGrB, gqRb = yA3N.get_reward_percentile(YKHO.env_params[sEAN]['high_low_percentile']) bGrB, ODP9 = yA3N.get_reward_percentile(100 - YKHO.env_params[sEAN]['high_low_percentile']) QrM1.plot(WKvO, JBMS, c=qfpW, **B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i7J2(YKHO, X7zS=[-20, 1]):\n import matplotlib.pyplot as QrM1\n XP5J, vexM = YKHO.stability_function()\n CAzz = oyIN.arange(X7zS[0], X7zS[1], 0.01)\n Jd40 = XP5J(CAzz) / vexM(CAzz)\n LZpg, = QrM1.plot(CAzz, Jd40)\n QrM1.draw()", "def mc16(VQ6Z, yKcO, Os4s):\n if str(VQ6Z) == 'nan':\n ...
[ "0.61897177", "0.6142304", "0.61223316", "0.60464966", "0.5764064", "0.57531226", "0.5688331", "0.5688129", "0.56239134", "0.56094724", "0.5551428", "0.55341935", "0.55000323", "0.5484973", "0.5470953", "0.5462968", "0.5457872", "0.5455016", "0.5430253", "0.53900945", "0.5378...
0.6613888
0
Get a working copy of whole dataset (list of dicts)
def pi1E(YKHO): YKHO.data = list(YKHO.data) return YKHO.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n cO5D = rreK()\n for ZfUD in YKHO.iteritems():\n cO5D.add_data(ZfUD)\n return cO5D", "def qO6Y(YKHO):\n import copy\n nPrm = copy.copy(YKHO)\n nPrm.xp = nPrm.xp.get_pure_data_copy()\n nPrm.timetable = nPrm.timetable.get_pure_data_copy()\n return nPrm", "def vzZr(...
[ "0.67610884", "0.65187263", "0.6476569", "0.63374424", "0.63339067", "0.61601204", "0.61589545", "0.61473143", "0.6135965", "0.612407", "0.60831195", "0.6003884", "0.599526", "0.5956172", "0.594787", "0.5930081", "0.59126955", "0.5895318", "0.58703154", "0.5868029", "0.586651...
0.5738142
31
Extract min value and max value for Minmax Scaler according to the provided column.
def WgYu(YKHO, GzdK: dd.Series) -> ImMB: YKHO.min = GzdK.min() YKHO.max = GzdK.max() return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PN3y(YKHO, fvDH):\n YKHO.max = max(fvDH)\n YKHO.min = min(fvDH)", "def ipRy(jQ3Z, iVRZ):\n ZkhX = jQ3Z.copy()\n Qn20 = jQ3Z[iVRZ].isnull() == False\n Ty9i = oyIN.matrix(ZkhX.loc[Qn20, iVRZ])\n Y5YY = mG7K.MinMaxScaler()\n ZkhX.loc[Qn20, iVRZ] = Y5YY.fit_transform(Ty9i.T)\n return ZkhX...
[ "0.7673651", "0.71557504", "0.70815915", "0.67124826", "0.6703426", "0.6681409", "0.6659227", "0.66270506", "0.6586529", "0.6434424", "0.63125056", "0.62613964", "0.6247337", "0.6200842", "0.6154483", "0.6103468", "0.6069686", "0.6069235", "0.6069235", "0.60514814", "0.602198...
0.59047997
24
Return True once the User enters a valid puzzle string, it should have a length of 81 chars and should contain only digits.
def gfTJ(YKHO): fsTN = False while fsTN is False: bAls = 'Enter a valid puzzle. (81 inline digits where zeros ' + 'represent empty spots) E.g. 01040506.... and so on\npuzzle' mDzW = YKHO.ask_user_input(bAls) if not mDzW.isdigit(): print('The puzzle should contain only digits,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PsOK(CK9p: str) -> bool:\n return oJuv('[1-9]', CK9p) is not None", "def _50c(c5uu: tuple, _omC: str, jTXt: str):\n ZgWB = jTXt.count(_omC)\n LSh8, CN9P = c5uu\n if LSh8 <= ZgWB <= CN9P:\n return True\n else:\n return False", "def xISP(RIcg):\n u54L = len(RIcg)\n if u54L ...
[ "0.6988238", "0.687215", "0.6835534", "0.68153137", "0.6782101", "0.64769334", "0.64731705", "0.6458984", "0.643432", "0.6433204", "0.6431435", "0.64165646", "0.6377844", "0.6358205", "0.6288739", "0.6282731", "0.62333125", "0.6206595", "0.6188043", "0.61569345", "0.61154485"...
0.9071734
0
Default the container to use specified encryption scope for all writes.
def kH4e(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'default_encryption_scope')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C4fF(H5ew):\n HgdZ['enc'] = CuV2(H5ew.encode())", "def T3oP(YKHO):\n if 'requireEncryptionForWriteAccess' in YKHO._prop_dict:\n return YKHO._prop_dict['requireEncryptionForWriteAccess']\n else:\n return None", "def nGBF(YKHO) -> h8nf[qe4Y.Input['WorkspaceEncryptionArgs']]:\n retur...
[ "0.5898364", "0.5772351", "0.57698435", "0.57698435", "0.56035644", "0.5572135", "0.5525414", "0.53106827", "0.5251916", "0.5183517", "0.5142388", "0.51339895", "0.5103925", "0.5067164", "0.5056541", "0.5053999", "0.49991542", "0.4992962", "0.4899988", "0.48994812", "0.488171...
0.5906583
0
The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container.
def AIKA(YKHO) -> bool: return qe4Y.get(YKHO, 'has_immutability_policy')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z9tG(YKHO) -> 'outputs.ImmutabilityPolicyPropertiesResponse':\n return qe4Y.get(YKHO, 'immutability_policy')", "def u2aT(YKHO) -> h8nf['outputs.ImmutabilitySettingsResponse']:\n return qe4Y.get(YKHO, 'immutability_settings')", "def ZbdI(YKHO) -> bool:\n return YKHO._immutable", "def u2aT(YKHO) -...
[ "0.6947443", "0.57288796", "0.56547576", "0.5653203", "0.54542214", "0.53227615", "0.5313179", "0.5109668", "0.5021372", "0.49839082", "0.49568674", "0.49565306", "0.49460852", "0.4944232", "0.49010536", "0.48988754", "0.48743588", "0.48399776", "0.48239785", "0.481021", "0.4...
0.7187662
0
Remaining retention days for soft deleted blob container.
def Ezo4(YKHO) -> int: return qe4Y.get(YKHO, 'remaining_retention_days')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ELK5(YKHO) -> int:\n return qe4Y.get(YKHO, 'soft_delete_retention_days')", "def zkeL(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'retention_days')", "def Ddc0(YKHO) -> qe4Y.Output[h8nf['outputs.DeleteRetentionPolicyResponse']]:\n return qe4Y.get(YKHO, 'container_delete_retention_policy')", "def ...
[ "0.7603276", "0.65898246", "0.6585647", "0.65824777", "0.65142", "0.6479939", "0.6467616", "0.6465218", "0.63896096", "0.63780963", "0.6276856", "0.62488556", "0.6040693", "0.57856303", "0.5741927", "0.56296825", "0.5572426", "0.551001", "0.54318726", "0.5428414", "0.5401405"...
0.7409727
1
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
def type(YKHO) -> str: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '...
[ "0.7918516", "0.7918516", "0.7866337", "0.7866337", "0.7866337", "0.7866337", "0.7866337", "0.7708053", "0.75534964", "0.7282099", "0.70591027", "0.6979169", "0.69202054", "0.6868452", "0.67303157", "0.67049116", "0.6654272", "0.6646357", "0.65510035", "0.65426683", "0.654266...
0.66396123
57
Init method for initializaing the CNN model
def FIMM(YKHO, yuKm=3, e2wl=16, G1Hx=3, KCHu=1, hVLt=1, XP5J=0.5): super(EnfM, YKHO).__init__() YKHO.conv1 = U78l.Conv2d(in_channels=yuKm, out_channels=e2wl, kernel_size=G1Hx, stride=KCHu, padding=hVLt) YKHO.bn1 = U78l.BatchNorm2d(e2wl) YKHO.conv2 = U78l.Conv2d(in_channels=e2wl, out_channels=2 * e2wl, k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, dyeT):\n YKHO.__learning_rate = dyeT['cnnLearningRate']\n YKHO.__num_classes = dyeT['numClasses']\n YKHO.__weight_decay = 0.0001\n YKHO.__num_gpus = dyeT['numGpus']\n YKHO.__use_csnn = dyeT['useCsnn']\n YKHO.__csnn = zJyy(dyeT)", "def FIMM(YKHO, HSDT: int, jTqs: int):\n YKHO.n...
[ "0.76347876", "0.72431886", "0.7222825", "0.7211717", "0.71300805", "0.71097064", "0.7040969", "0.70310324", "0.7016919", "0.69921887", "0.6986525", "0.6986486", "0.69744736", "0.6958348", "0.69579613", "0.69438034", "0.69347113", "0.69238573", "0.6914468", "0.6886502", "0.68...
0.0
-1
Return True if the queen at column c clashes with any queen to its left.
def nERh(lHmx, Z9rn): for YRbF in range(Z9rn): if C7r_(YRbF, lHmx[YRbF], Z9rn, lHmx[Z9rn]): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQiv(fvDH, OHLN):\n if fvDH in OHLN:\n return False\n elif any([abs(fvDH - iIDh) == len(OHLN) - d6pt for d6pt, iIDh in enumerate(OHLN)]):\n return False\n else:\n return True", "def SGVO(OHLN):\n exwG = len(OHLN)\n WfCS = range(exwG)\n return exwG == len(set((OHLN[YRbF]...
[ "0.77055407", "0.72922397", "0.7145801", "0.70153964", "0.6985228", "0.6902115", "0.66958386", "0.65576535", "0.6551649", "0.6548673", "0.6523149", "0.6523149", "0.6522317", "0.6519715", "0.65155363", "0.6512403", "0.6512403", "0.65036315", "0.6501785", "0.64987516", "0.64938...
0.6340493
36
Creates a new app instance for every test case.
def FCbF(YKHO): super(AE6w, YKHO).setUp() YKHO.testbed.init_blobstore_stub() YKHO.testbed.init_urlfetch_stub() dp9S = Jpbe.Identity(Jpbe.IDENTITY_USER, 'admin@example.com') Hztn = GPtr.settings().auth.full_access_group Jpbe.bootstrap_group(Hztn, [dp9S]) brfH.mock_get_current_identity(YKHO, d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P4t4():\n print('creating app with test vars')\n P4t4 = LUif('test')\n P4t4.testing = True\n OaeV = P4t4.app_context()\n OaeV.push()\n yield P4t4\n OaeV.pop()", "def fkN9():\n xqoZ = {'DEBUG': True, 'TESTING': True}\n wMcu = LUif(settings_override=xqoZ)\n OaeV = wMcu.app_context...
[ "0.7631757", "0.7527916", "0.736817", "0.73311406", "0.7328756", "0.73164105", "0.73162866", "0.73058444", "0.7255259", "0.7248177", "0.724135", "0.72368133", "0.720076", "0.7198792", "0.7191736", "0.7186308", "0.71752286", "0.7173285", "0.7163543", "0.7163543", "0.7163543", ...
0.0
-1
Sets the recipient_email of this GiftDetails.
def iOUK(YKHO, iOUK): YKHO._recipient_email = iOUK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nG3o(YKHO, nG3o):\n YKHO._recipient = nG3o", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D...
[ "0.7003676", "0.655063", "0.655063", "0.655063", "0.655063", "0.655063", "0.655063", "0.655063", "0.655063", "0.655063", "0.655063", "0.6463328", "0.6463328", "0.6395344", "0.6375733", "0.6240201", "0.6240201", "0.6240201", "0.62081444", "0.6160627", "0.61436236", "0.605806...
0.824746
0
Sets the sender_name of this GiftDetails.
def yH5S(YKHO, yH5S): YKHO._sender_name = yH5S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vC92(YKHO, vC92: str):\n if vC92 is None:\n raise ValueError('Invalid value for `sender`, must not be `None`')\n YKHO._sender = vC92", "def vC92(YKHO, vC92: Address) -> None:\n SlLe(isinstance(vC92, str), f\"Sender must be string. Found '{type(vC92)}'\")\n YKHO._sender = vC92", "def yR5F...
[ "0.71977746", "0.7106946", "0.65814424", "0.62214434", "0.62214434", "0.61114466", "0.61114466", "0.61114466", "0.61114466", "0.61114466", "0.60985005", "0.60284305", "0.60284305", "0.5976745", "0.5976745", "0.59699434", "0.5942325", "0.59321296", "0.59235996", "0.5812395", "...
0.8307557
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, d2Ds): 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.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): 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
A Recurrent module that performs soft attention over the input. At timestep t, the output o = softmax(K^Tq/sqrt(d))V, where 'q' is the embedded input at timestep 't', K = [k_1, ... k_{t1}] is a matrix of the previous inputs embedded as keys. V = [v_1, ... , v_{t1}] is the same, but for the values
def FIMM(YKHO, klGB, Nl7y, YTQZ, iRrw=None, hC9O=1, mnIA=False, ZFtT=None, A0RF=True, mWFP=None): super(KCwJ, YKHO).__init__(name=mWFP) with YKHO._enter_variable_scope(): if isinstance(Nl7y, int): sjXb = nZEg(Nl7y * hC9O, name='key_module') if isinstance(YTQZ, int): T6S7 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WtQF, REGG):\n from scipy.special import softmax\n r8hN, YRbF = REGG.shape\n YZWC = YKHO.Wh[:YRbF]\n mH3V = YKHO.Wh[YRbF:]\n ACia = oyIN.concatenate((WtQF, REGG), axis=1)\n JnYf = oyIN.tanh(ACia @ YKHO.Wh + YKHO.bh)\n LVAh = YKHO.softmax(JnYf @ YKHO.Wy + YKHO.by)\n return (Jn...
[ "0.6452041", "0.6319821", "0.62740105", "0.6259367", "0.6225947", "0.615052", "0.6131718", "0.6130936", "0.60880506", "0.6066625", "0.6018428", "0.5973469", "0.596313", "0.5950622", "0.59385467", "0.59383583", "0.5909008", "0.5903755", "0.5896433", "0.5893444", "0.5890925", ...
0.0
-1
Return the value of opamversion.
def kaPv(hObn): for DM04 in hObn: if 'opam-version' in DM04: DpZH = DM04.split('"') return DpZH[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xhfZ(YKHO):\n return YKHO.get('Version', type='numeric')", "def DpZH(YKHO):\n if 'version' in YKHO._prop_dict:\n return YKHO._prop_dict['version']\n else:\n return None", "def DpZH(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'version')", "def DpZH(YKHO) -> h8nf[str]:\n return...
[ "0.7108706", "0.70909154", "0.7048375", "0.7048375", "0.7048375", "0.7048375", "0.7048375", "0.70407534", "0.70192933", "0.70127195", "0.70103025", "0.69899166", "0.6983395", "0.69403905", "0.6925841", "0.6925841", "0.6925841", "0.6925841", "0.6925841", "0.6925841", "0.692584...
0.7085643
2
L2normalize columns of X
def wsvu(EcVT): CkYf = ht2j.pow(EcVT, 2).sum(dim=1, keepdim=True).sqrt() jzdc = CkYf.expand_as(EcVT) + 1e-08 EcVT = ht2j.div(EcVT, jzdc) return EcVT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KRpR(nPrm, SGf8, jDK_=None):\n return KQGe.nn.l2_normalize(nPrm, SGf8, jDK_)", "def jz9k(WKvO):\n return WKvO / TuJO.norm(WKvO)", "def BDj2(CAzz):\n E_k5 = mjlx(CAzz)\n return CAzz / oyIN.sqrt(E_k5[:, oyIN.newaxis])", "def U95B(WKvO):\n WKvO = WKvO / oyIN.sqrt(oyIN.sum(WKvO * WKvO, axis=-1...
[ "0.76127386", "0.74197316", "0.72367084", "0.7202008", "0.7162083", "0.7133827", "0.70338094", "0.69962883", "0.6908121", "0.69054306", "0.6894549", "0.6815722", "0.6789521", "0.6779976", "0.67509", "0.6738499", "0.6678439", "0.6676479", "0.66763866", "0.665484", "0.665484", ...
0.66768813
17
Method sets the prompt embedding weights to 0.0
def LFbZ(YKHO): YKHO.prompt_embeddings.weight.fill_(0.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n YKHO.embedding.weight.data.uniform_(-0.1, 0.1)\n YKHO.word.bias.data.fill_(0)\n YKHO.word.weight.data.uniform_(-0.1, 0.1)", "def vB93(YKHO):\n YKHO.embedding.weight.data.uniform_(-0.1, 0.1)\n YKHO.fc.bias.data.fill_(0)\n YKHO.fc.weight.data.uniform_(-0.1, 0.1)", "def Q0Ko(YK...
[ "0.7463873", "0.7199745", "0.71822166", "0.71816295", "0.7171803", "0.7171803", "0.7171803", "0.709266", "0.7066728", "0.7066646", "0.6958817", "0.690859", "0.68791986", "0.672614", "0.67151546", "0.6635397", "0.65766937", "0.65614665", "0.6556054", "0.653788", "0.65227437", ...
0.8714095
0
Method sets the prompt embedding weights with a new weight w
def O6Ou(YKHO, upAO: torch.Tensor): YKHO.prompt_embeddings.weight.data = upAO.type_as(YKHO.prompt_embeddings.weight.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LFbZ(YKHO):\n YKHO.prompt_embeddings.weight.fill_(0.0)", "def vB93(YKHO):\n YKHO.embedding.weight.data.uniform_(-0.1, 0.1)\n YKHO.word.bias.data.fill_(0)\n YKHO.word.weight.data.uniform_(-0.1, 0.1)", "def pOke(YKHO, yzQ0):\n raise NotImplementedError", "def sNuA(YKHO, yzQ0):\n YKHO.nn.s...
[ "0.73268247", "0.72788864", "0.7256226", "0.7252996", "0.701445", "0.6961656", "0.6961656", "0.6951745", "0.6946087", "0.6880116", "0.68501544", "0.6839706", "0.68244517", "0.68196607", "0.68133944", "0.681045", "0.678291", "0.67816025", "0.67816025", "0.67816025", "0.6776748...
0.7940417
0
This method caches the output representation from the Encoder and saves it inside `self.inference_table`.
def ljGd(YKHO, vdKp: torch.Tensor): vdKp = vdKp.detach().clone() YKHO.inference_table.set_prompt_table(vdKp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZFtT(YKHO, ARjH):\n bo34.info(ARjH)\n return ARjH", "def riyy(YKHO):\n YKHO.output_dict = {H5ew: ht2j.cat(BWXx).numpy() for H5ew, BWXx in YKHO.output_dict.items()}", "def dSez(YKHO):\n if YKHO.enc_types == 'label':\n return YKHO._label_encoding()\n elif YKHO.enc_types == 'ohe':\n ...
[ "0.60971045", "0.5868804", "0.576231", "0.57325697", "0.5721347", "0.5717437", "0.56383574", "0.56224364", "0.5604912", "0.55992657", "0.55775964", "0.5576467", "0.5551276", "0.5551276", "0.554509", "0.55051947", "0.5466245", "0.5459163", "0.5447188", "0.54386246", "0.5412206...
0.0
-1
Set value of the element defined by the locator.
def j6Nn(YKHO, uG8F: Optional[Locator]=None, BWXx: Optional[str]=None, SStx: bool=False, d5ak: bool=False, wN2A: bool=False, dXSk: bool=True, aBkf: Optional[Callable]=DjZ7) -> ivMU: BWXx = BWXx or '' if wN2A and d5ak: YKHO.logger.warning('Both `newline` and `enter` switches detected, expect to see multi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkZW(YKHO, YEnM, BWXx):\n E_qD = YEnM.driver\n if YKHO.locator[0] != 'css selector':\n raise 'Using a locator other than css'\n R3wq(E_qD, 100).until(lambda E_qD: E_qD.find_element_by_css_selector(YKHO.locator[1]))\n E_qD.find_element_by_css_selector(YKHO.locator[1]).send_keys(BWXx)", "def...
[ "0.7702934", "0.7651599", "0.7624431", "0.75003856", "0.71484035", "0.7023398", "0.68845725", "0.67296845", "0.64471656", "0.62897176", "0.62897176", "0.62872565", "0.6217247", "0.62076586", "0.61985034", "0.6128379", "0.6094752", "0.6094752", "0.6069835", "0.60674113", "0.59...
0.64328885
9
Given a flow name within this Storage object, load and return the Flow.
def iCMW(YKHO, smSl: str) -> 'Flow': if smSl not in YKHO.flows: raise ValueError('Flow is not contained in this Storage') _m5B = YKHO._method_to_function[YKHO.get_flow_request_http_method] nUCU = OVM3(YKHO.get_flow_request_kwargs) geh0 = _m5B(**nUCU) geh0.raise_for_status() if YKHO.store...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def read_flow_by_name(YKHO, smSl: str) -> i2pj:\n geh0 = await YKHO._client.get(f'/flows/name/{smSl}')\n return i2pj.parse_obj(geh0.json())", "async def read_flow(YKHO, S1v3: UUID) -> i2pj:\n geh0 = await YKHO._client.get(f'/flows/{S1v3}')\n return i2pj.parse_obj(geh0.json())", "async def cre...
[ "0.7934159", "0.646134", "0.63433677", "0.6178463", "0.6128208", "0.5960097", "0.5926186", "0.58671963", "0.5768048", "0.56477654", "0.5555112", "0.5476098", "0.53369844", "0.5315714", "0.5313755", "0.5297373", "0.51395684", "0.51168096", "0.510803", "0.5079798", "0.50309175"...
0.81868434
0
Process sentences in the tweets into a list of tokens.
def coXY(Rhv4): for yAmx in Rhv4: yield eGBw.utils.simple_preprocess(str(yAmx), deacc=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oBem(YKHO):\n sqHJ = []\n SpBD = []\n for a1PO in range(len(YKHO.all_tweets) - 1):\n MNmn = N3rN(YKHO.all_tweets[a1PO][0][1])\n SpBD.append([])\n for KCHu in MNmn:\n QMab = dFss(KCHu)\n LTyf = kdPk(QMab)\n SpBD[a1PO].append(LTyf)\n print...
[ "0.7719989", "0.75884455", "0.75834835", "0.73863953", "0.73863953", "0.737072", "0.7334494", "0.73207206", "0.73027545", "0.71946573", "0.7133221", "0.70299", "0.70299", "0.7024187", "0.70050687", "0.69844687", "0.6942141", "0.6907542", "0.6873646", "0.68733406", "0.6864705"...
0.0
-1
Process the words in each tweet of the corpus to remove stopwords as defined by NLTK.
def aUcs(z_aV): return [[GIN8 for GIN8 in oGub(str(A97Q)) if GIN8 not in hwHU] for A97Q in z_aV]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g8pp(Mau6):\n HM5X = ''\n for GIN8 in Mau6.split():\n if not GIN8.lower() in vDyF:\n HM5X += GIN8.lower() + ' '\n return HM5X", "def aUcs(Mau6, di0c):\n import re\n LkLW = set(di0c)\n KvhJ = [GIN8 for GIN8 in re.split('\\\\W+', Mau6) if GIN8 not in LkLW]\n return ' '.jo...
[ "0.7504535", "0.7311473", "0.72665703", "0.71183944", "0.71179533", "0.70261437", "0.70210373", "0.70041984", "0.69915", "0.69900596", "0.6963771", "0.69616854", "0.696012", "0.6955361", "0.6955017", "0.6950152", "0.6946842", "0.69362426", "0.69338983", "0.6927413", "0.691163...
0.70493966
5
Create list of bigrams from the tweets in the corpus.
def iFw2(z_aV, zHkQ): return [zHkQ[A97Q] for A97Q in z_aV]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iFw2(zHkQ, z_aV):\n return [zHkQ[A97Q] for A97Q in z_aV]", "def yVUy(mTBh):\n assert g5BI\n return INAj(mTBh)", "def SyRs(YKHO, s2mk):\n return [jzdc + ' ' + Fg_i for jzdc, Fg_i in zip(s2mk, s2mk[1:])]", "def xicJ(YKHO, l5Ny):\n YKHO.bigrams = YKHO._generateNgrams(l5Ny, 2)", "def INAj(yA...
[ "0.7402998", "0.7327968", "0.7226348", "0.70147127", "0.6941188", "0.68485177", "0.67478436", "0.6733484", "0.6681483", "0.6675648", "0.6675056", "0.66608196", "0.66165566", "0.638539", "0.6374289", "0.6310031", "0.6274061", "0.61876446", "0.61874664", "0.6078481", "0.6074752...
0.7377119
1
return a comma + space (', ') separated string of jeep models (original order)
def Z1hz(roBb=roBb): return str(', '.join(roBb['Jeep']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GEOF(C3ST):\n return ', '.join(C3ST)", "def zAg0(YKHO):\n ZsMR = '['\n for WKvO in YKHO.elementos:\n ZsMR += str(WKvO) + ','\n return ZsMR.rstrip(',') + ']'", "def zAg0(YKHO):\n aPd6 = []\n for KCHu, tTpl in YKHO.normalized():\n if KCHu == tTpl:\n aPd6.append(str(...
[ "0.75830364", "0.6378074", "0.6335463", "0.6308942", "0.62725854", "0.6264572", "0.6233202", "0.62196636", "0.61696225", "0.6104148", "0.6097838", "0.60654783", "0.6030665", "0.6030577", "0.5962757", "0.59550625", "0.5922775", "0.5852799", "0.5805409", "0.5793003", "0.5783226...
0.5372605
75
return a copy of the cars dict with the car models (values) sorted alphabetically
def ydZL(roBb=roBb): return {G1Hx: sorted(roBb[G1Hx]) for G1Hx in roBb.keys()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ydZL():\n for PEX4, C3ST in roBb.items():\n roBb[PEX4] = sorted(C3ST)\n return roBb", "def ydZL(roBb=roBb):\n for C3ST in roBb:\n roBb[C3ST].sort()\n return roBb", "def SJNW(YKHO):\n hmhj = U8Lr([])\n G9jH.info('loading %d car models' % len(CGbP.models))\n for C3ST in CGb...
[ "0.8386408", "0.78856957", "0.6111236", "0.5691202", "0.56717473", "0.5667032", "0.5664055", "0.5633449", "0.55873", "0.5546567", "0.5545345", "0.5537814", "0.5529127", "0.5487243", "0.54769766", "0.5475808", "0.54684997", "0.54667825", "0.5397825", "0.538667", "0.5378415", ...
0.8272651
1
PUT /reviews with ID api route
def ZjmN(oOW1): bzhV = ['id', 'created_at', 'updated_at', 'user_id', 'place_id'] return NpNj(Emd4, oOW1, bzhV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZjmN(oOW1=None):\n Slbv = S8SU.get(E1cg, oOW1)\n if not Slbv:\n eTsH(404)\n nPrm = QePW.get_json()\n if not nPrm:\n eTsH(400, 'Not a JSON')\n DrX1 = ['id', 'user_id', 'recipe_id', 'created_at', 'updated_at']\n for H5ew in nPrm.keys():\n if H5ew not in DrX1:\n s...
[ "0.73310935", "0.7320185", "0.70410097", "0.6979166", "0.69729793", "0.68921614", "0.6873529", "0.6861512", "0.67701066", "0.6640359", "0.6605413", "0.65403956", "0.6475809", "0.6309277", "0.62332803", "0.61628556", "0.6126825", "0.6078451", "0.6028495", "0.5958496", "0.59473...
0.7094173
2