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
Returns a vector of shaping reward components based on pairwise distances.
def tnH_(gdyb, H59A, kgDL, uV4E=0.1): TaUL = [] for JNoY, HIyH in kgDL: Lgsx = H59A[JNoY] TRK0 = H59A[HIyH] TaUL.append(al36(gdyb, Lgsx, TRK0)) TaUL = oyIN.hstack(TaUL) DDI8 = vwlo.tolerance(TaUL, bounds=(0, JX2j), margin=JX2j * 10) pb19 = vwlo.tolerance(TaUL, bounds=(0, gAIh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PvaW(YKHO):\n Ek0W = []\n for XeOP in YKHO.get_all_actions():\n pnw7 = []\n for QTBn in YKHO.get_all_states():\n f9TP = QTBn.position >= YKHO.config['road_length'] + YKHO.config['intersection_length']\n pnw7.append(YKHO.make_reward(XeOP, QTBn, f9TP))\n Ek0W.appe...
[ "0.59636664", "0.5855053", "0.5850322", "0.58347255", "0.57900673", "0.5790035", "0.56665254", "0.56371814", "0.56064385", "0.5562947", "0.55455804", "0.5508991", "0.55028784", "0.54956955", "0.5479522", "0.5408218", "0.5407139", "0.5401941", "0.53991866", "0.5393717", "0.539...
0.50805295
56
Convert model object to dictionary.
def MNRr(GfdN): return {'id': GfdN.id, 'name': GfdN.name, 'plugin_id': GfdN.plugin.id, 'plugin_name': GfdN.plugin.name, 'status': GfdN.status, 'last_run': GfdN.last_run, 'output': GfdN.output, 'target_port': GfdN.target_port, 'run_freq': GfdN.run_freq, 'service_id': GfdN.service.id, 'state': GfdN.state}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO, C3ST):\n raise NotImplementedError", "def FZ5p(YKHO, C3ST):\n nPrm = C3ST.to_dict()\n return nPrm", "def _fYl(YKHO):\n return FZ5p(YKHO)", "def MNRr(YKHO) -> cuzp:\n tbx9 = {}\n if hasattr(YKHO, 'model') and YKHO.model is not None:\n tbx9['model'] = YKHO.model\n ret...
[ "0.8357003", "0.824316", "0.8116016", "0.80654407", "0.78469175", "0.7752578", "0.75224197", "0.75136906", "0.7492668", "0.74721724", "0.7448317", "0.7415703", "0.7304216", "0.72976667", "0.72931564", "0.72745246", "0.7236457", "0.72355217", "0.72298324", "0.7173672", "0.7162...
0.0
-1
Ensure that GET method returns 403 status if the requested Check is assigned to improper user
def jbA_(YKHO): bD7m = gxEw('check', args=[12]) geh0 = YKHO.client.get(bD7m) YKHO.assertEqual(geh0.status_code, 403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DPBd(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)", "def DPBd(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)", "def DPBd(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)", "def...
[ "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814", "0.72975814"...
0.7708858
0
Ensure that POST method returns invalid JSON error and status 400
def WNqr(YKHO): TFbm = qQXR.dumps({'error': 'Incorrect JSON format.'}) bD7m = gxEw('check') nPrm = qQXR.dumps({'plugin': '10', 'run_freq': '15', 'target_port': '3000', 'state': False}) geh0 = YKHO.client.post(bD7m, data=nPrm, content_type='application/json') afx5 = geh0.content.decode('utf-8') Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I5Jw(YKHO):\n pmON = '/api/'\n ZVSX = 'invalid json'\n geh0 = YKHO.client.post(pmON, ZVSX, content_type='application/json')\n YKHO.assertEqual(geh0.status_code, 400)", "def jnh5(YKHO):\n geh0 = YKHO.client.post(YKHO.url, content_type='application/json')\n YKHO.assertEqual(geh0.status_code, ...
[ "0.7822556", "0.7573596", "0.746089", "0.74273527", "0.74217105", "0.7416321", "0.7416321", "0.73878527", "0.7349997", "0.7349997", "0.7333069", "0.73021764", "0.7283056", "0.72791994", "0.7222564", "0.72189325", "0.7215532", "0.72008723", "0.71860456", "0.7176665", "0.717569...
0.7149444
21
Ensure that POST method returns Plugin not found error and status 404
def ufZS(YKHO): TFbm = qQXR.dumps({'response': 'Plugin with given id was not found.'}) bD7m = gxEw('check') nPrm = qQXR.dumps({'name': 'test', 'plugin_id': '200', 'run_freq': '15', 'target_port': '3000', 'service_id': '1'}) geh0 = YKHO.client.post(bD7m, data=nPrm, content_type='application/json') af...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wkvh(YKHO):\n TFbm = qQXR.dumps({'response': 'Plugin with given id was not found.'})\n bD7m = gxEw('check', args=[11])\n nPrm = qQXR.dumps({'name': 'test', 'plugin_id': '200', 'run_freq': '15', 'target_port': '3000', 'state': False})\n geh0 = YKHO.client.put(bD7m, data=nPrm, content_type='applicati...
[ "0.70312864", "0.658515", "0.65667754", "0.652997", "0.631004", "0.63082045", "0.6297102", "0.6264097", "0.6261877", "0.6251805", "0.62343544", "0.6148774", "0.61269945", "0.6091835", "0.60801923", "0.60741305", "0.604958", "0.6049413", "0.60406", "0.60288507", "0.6027448", ...
0.77297825
0
Ensure that POST method returns Service not found error and status 404
def TJ32(YKHO): TFbm = qQXR.dumps({'response': 'Service with given id was not found.'}) bD7m = gxEw('check') nPrm = qQXR.dumps({'name': 'test', 'plugin_id': '10', 'run_freq': '15', 'target_port': '3000', 'service_id': '103'}) geh0 = YKHO.client.post(bD7m, data=nPrm, content_type='application/json') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf(YKHO):\n raise lW34()", "def raaz(YKHO, NKcE):\n YKHO._register_uri(NKcE, status=404)\n with YKHO.assertRaises(dyGo.Trovebox404Error):\n lGIF(YKHO.client, NKcE).call(YKHO.test_endpoint)", "def tSeu(tTpl):\n return geh0('failed', 'The method is not allowed for the requested URL', 405...
[ "0.7235249", "0.72313184", "0.71188027", "0.70977676", "0.7065015", "0.701569", "0.69473153", "0.69021106", "0.6877768", "0.68597686", "0.6840979", "0.6828842", "0.6795085", "0.67912215", "0.6778372", "0.6776755", "0.6771564", "0.676387", "0.67324454", "0.6726847", "0.6708360...
0.7521815
0
Ensure that POST method returns 403 status if the requested Check is assigned to improper user
def jSRx(YKHO): bD7m = gxEw('check') nPrm = qQXR.dumps({'name': 'test', 'plugin_id': '10', 'run_freq': '15', 'target_port': '3000', 'service_id': '2'}) geh0 = YKHO.client.post(bD7m, data=nPrm, content_type='application/json') YKHO.assertEqual(geh0.status_code, 403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wC_R(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)", "def wC_R(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)", "def wC_R(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)", "...
[ "0.71682495", "0.71682495", "0.71682495", "0.71682495", "0.71682495", "0.71682495", "0.71682495", "0.71682495", "0.69757193", "0.68685025", "0.68424755", "0.6816991", "0.6816991", "0.6816991", "0.6816991", "0.6816991", "0.6816991", "0.6816991", "0.6816991", "0.6816991", "0.68...
0.7313535
0
Ensure that PUT method returns 403 status if the requested Check is assigned to improper user
def vLho(YKHO): bD7m = gxEw('check', args=[12]) nPrm = qQXR.dumps({'name': 'test', 'plugin_id': '20', 'run_freq': '15', 'target_port': '3000', 'state': False}) geh0 = YKHO.client.put(bD7m, data=nPrm) YKHO.assertEqual(geh0.status_code, 403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hDJM(YKHO):\n YKHO.client.logout()\n geh0 = YKHO.client.put('/api/checks/%s/' % str(YKHO.to_edit.id), YKHO.put_data)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)", "def QdZT(YKHO, QePW, *qIxc, **B2fa):\n KAOR = YKHO.get_object()\n if YKHO._deny_permission(KAOR):\n nPrm ...
[ "0.7466974", "0.6782904", "0.6781219", "0.6752084", "0.6695745", "0.6668802", "0.66621214", "0.6644796", "0.6642179", "0.66398793", "0.6568129", "0.6532571", "0.64962375", "0.64879364", "0.6470501", "0.6459205", "0.6449159", "0.64322", "0.6414713", "0.6411721", "0.63807565", ...
0.7548406
0
Create an instance of a Quasar() The preferred name form is like 'J2305+4707'. However, 'B2303+46' is also exceptable, as is '2305+4707'. In the latter case, it must be a Julian epoch name. The name may also be given as "3C84" or "3C 84" Notes ===== Instance methods and attributes flux radio flux in janskys at a specif...
def FIMM(YKHO, mWFP): super(ipac, YKHO).__init__() YKHO.logger = G9jH.getLogger(SOR8.name + '.Quasar') if mWFP[0] == 'J': YKHO.Jname = YKHO.name YKHO.name = mWFP[1:] try: YKHO.Bname = 'B' + RYaa[YKHO.name] except KeyError: raise iH34 elif mWFP[0] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c8Lc(YKHO, muZG, y4Sy=rIJu(0), GfdN=True, Z23m=False):\n rYQz = muZG.base_ring()\n if Hy_Q(rYQz.base()):\n if not YKHO.coeff_ring().has_coerce_map_from(rYQz):\n raise ValueError(\"The Laurent coefficients don't coerce into the coefficient ring of self!\")\n elif Z23m:\n muZG =...
[ "0.56217355", "0.54720354", "0.5429929", "0.5387317", "0.5373136", "0.53656644", "0.5336292", "0.52707165", "0.52444047", "0.52339715", "0.51765007", "0.5159144", "0.5149093", "0.5137453", "0.5135473", "0.5132605", "0.5127033", "0.50935024", "0.5065557", "0.50589746", "0.5054...
0.7982229
0
Creates a session with the given map_id and token user's id
def gte4(RZVq, n5lq): return fyIx.create_session(RZVq, n5lq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xlyK(eOtH):\n j4SB(AmPw(eOtH), None)", "def gte4(YKHO, uJjO=None):\n if uJjO:\n cuiw = super().create_session(uJjO)\n uJjO = YKHO.user_id_by_session_id.get(cuiw)\n VlFv = {'user_id': uJjO, 'created_at': qcWV.now()}\n YKHO.user_id_by_session_id[cuiw] = VlFv\n return cu...
[ "0.6584901", "0.6353678", "0.6281324", "0.6237837", "0.62023187", "0.6136479", "0.6049412", "0.6003717", "0.5962978", "0.5960424", "0.593683", "0.59198326", "0.58817315", "0.58650184", "0.58593893", "0.58561707", "0.5833388", "0.5828624", "0.5808892", "0.5800576", "0.57935864...
0.6741311
0
Test for method is_superuser should return False for user object.
def UXMr(YKHO): CBIr = lYUQ() YKHO.assertEqual(CBIr.is_superuser, False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXMr(YKHO):\n _5cq = Zp54()\n YKHO.assertEqual(_5cq.is_superuser, True)", "def fFR8(YKHO):\n CBIr = egNl().objects.create_superuser('jose@gmail.com', '1234')\n YKHO.assertTrue(CBIr.is_superuser)\n YKHO.assertTrue(CBIr.is_staff)", "def qLmv(YKHO):\n i_PC = Y8oF()\n QePW = i_PC.get('user...
[ "0.8334901", "0.77984744", "0.776739", "0.77079254", "0.7693134", "0.7672565", "0.7635972", "0.7618836", "0.75965416", "0.7579978", "0.7569816", "0.75297755", "0.75297755", "0.75297755", "0.7514531", "0.7509553", "0.7466922", "0.74534374", "0.74451584", "0.743221", "0.7406131...
0.861444
0
Test for method is_staff should return False for user object.
def Lzz1(YKHO): CBIr = lYUQ() YKHO.assertEqual(CBIr.is_staff, False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ejzn(YKHO):\n YKHO.assertFalse(YKHO.created_user.is_staff)", "def Iw6c(YKHO) -> bool:\n return bool(YKHO.request.user.is_staff)", "def ALlK(CBIr):\n return CBIr.is_authenticated() and CBIr.is_staff", "def hhyh(YKHO):\n Aofo = YKHO.service.is_course_staff(YKHO.student, str(YKHO.course.id))\n ...
[ "0.84607863", "0.843792", "0.8206198", "0.81680375", "0.8140361", "0.80761886", "0.80761886", "0.8038871", "0.7949443", "0.79139066", "0.7893616", "0.7885623", "0.7858742", "0.7834407", "0.7834407", "0.78035164", "0.7784853", "0.7764331", "0.77338296", "0.77338296", "0.773382...
0.8639209
0
Test for method has_perm should return False for user object.
def Reai(YKHO): CBIr = lYUQ() YKHO.assertEqual(CBIr.has_perm(perm=None), False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Reai(YKHO):\n _5cq = Zp54()\n YKHO.assertEqual(_5cq.has_perm(perm=None), True)", "def M1EP(YKHO, IuXB, YEnM=None):\n return YKHO.is_superuser", "def M1EP(YKHO, IuXB, YEnM=None):\n xc3U = super(mv1M, YKHO).has_perm(IuXB, YEnM)\n return xc3U", "def M1EP(YKHO, IuXB, YEnM=None):\n return Tr...
[ "0.83766943", "0.8168984", "0.8058604", "0.7974238", "0.79088664", "0.7880617", "0.7880617", "0.7852022", "0.78401", "0.7834152", "0.77596223", "0.7718201", "0.7697525", "0.7681628", "0.7670724", "0.7628273", "0.76145846", "0.76145846", "0.76145846", "0.7583856", "0.75740254"...
0.88656855
0
Test for method is_staff should return True for super_user object.
def Lzz1(YKHO): _5cq = Zp54() YKHO.assertEqual(_5cq.is_staff, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lzz1(YKHO):\n CBIr = lYUQ()\n YKHO.assertEqual(CBIr.is_staff, False)", "def WJxI(YKHO):\n return YKHO.is_superuser", "def WJxI(YKHO):\n return YKHO.is_superuser", "def Iw6c(YKHO) -> bool:\n return bool(YKHO.request.user.is_staff)", "def ALlK(CBIr):\n return CBIr.is_authenticated() and...
[ "0.84494567", "0.82344073", "0.82344073", "0.8222749", "0.8152345", "0.81038946", "0.80940986", "0.8075288", "0.80474544", "0.802065", "0.79500294", "0.79403216", "0.79403216", "0.79181916", "0.7915455", "0.78972435", "0.78766936", "0.77745736", "0.77745736", "0.77745736", "0...
0.89511
0
Test for method module_perms should return True for super_user object.
def SeyH(YKHO): _5cq = Zp54() YKHO.assertEqual(_5cq.has_module_perms(app_label=None), True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SeyH(YKHO):\n CBIr = lYUQ()\n YKHO.assertEqual(CBIr.has_module_perms(app_label=None), False)", "def spO2(YKHO, tKz9):\n return YKHO.is_superuser", "def Reai(YKHO):\n _5cq = Zp54()\n YKHO.assertEqual(_5cq.has_perm(perm=None), True)", "def spO2(YKHO, tKz9):\n xc3U = super(mv1M, YKHO).has_...
[ "0.819939", "0.7727663", "0.7674968", "0.7545148", "0.7538709", "0.7467952", "0.74583906", "0.74024093", "0.7397064", "0.7397064", "0.7397064", "0.73690885", "0.73683584", "0.7150376", "0.7147713", "0.7145673", "0.71448946", "0.7133046", "0.7110582", "0.71088505", "0.70847154...
0.86159366
0
Returns the Matrix multiplied by a scalar.
def ylzi(YKHO, i4dA: Number) -> 'Matrix': nPrm = [[YRbF * i4dA for YRbF in fvDH] for fvDH in YKHO._data] return aLMY(data=nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A13R(YKHO, hAEw):\n Aofo = YKHO.duplicate()\n for Mkmy in range(Aofo.row_count):\n for Z9rn in range(Aofo.col_count):\n Aofo[Mkmy, Z9rn] *= hAEw\n return Aofo", "def k0gx(E3D9, WKvO):\n return I7o1([[iVRZ * WKvO for iVRZ in rdlD] for rdlD in E3D9.store])", "def wTxu(YKHO, hAEw...
[ "0.82394356", "0.8113613", "0.77204996", "0.76910275", "0.76887596", "0.7664834", "0.76281464", "0.75491273", "0.751557", "0.75148714", "0.7500948", "0.7455148", "0.73692745", "0.72705966", "0.7132627", "0.7122775", "0.70943743", "0.70830303", "0.7078456", "0.7045451", "0.701...
0.7277763
13
Update data type of `image` to `dtype`
def vEws(YKHO, yDqo): if YKHO.image.dtype != yDqo: YKHO._image = YKHO._image.astype(yDqo) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZIAy(LNo8, yDqo):\n return LNo8.astype(yDqo)", "def vEws(YKHO, dgiG):\n if isinstance(dgiG, oyIN.dtype):\n pass\n elif isinstance(dgiG, str):\n dgiG = oyIN.dtype(dgiG)\n YKHO._dtype = dgiG\n if hasattr(YKHO, '_format_str'):\n delattr(YKHO, '_format_str')", "def Gu1n(px70...
[ "0.76465863", "0.7060209", "0.67907673", "0.67172134", "0.6698068", "0.66488373", "0.657263", "0.6462942", "0.6442698", "0.6422702", "0.6364196", "0.62598634", "0.6209939", "0.6204735", "0.6097967", "0.60847795", "0.5996664", "0.59715796", "0.5955402", "0.5955108", "0.5944673...
0.84578043
0
Load and return the text of a text file, assuming latin1 encoding as that is what the BBC corpus uses. Use codecs.open() function not open().
def gFHi(Ux0P: str) -> str: eHNT = T_Uj.open(Ux0P, encoding='latin-1', mode='r') KCHu = eHNT.read() eHNT.close() return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Slht(qaEx):\n Ux0P = GkAb(qaEx)\n tZ2K = bMom(Ux0P)\n eHNT = open(Ux0P, encoding=tZ2K)\n nPrm = eHNT.read()\n eHNT.close()\n return nPrm.rstrip()", "def gFHi(Ux0P: str):\n eHNT = T_Uj.open(Ux0P, encoding='latin-1', mode='r')\n KCHu = eHNT.read()\n eHNT.close()\n return KCHu", ...
[ "0.8140797", "0.8047954", "0.790648", "0.7717839", "0.756341", "0.7429816", "0.73722327", "0.73593307", "0.73314816", "0.7330668", "0.73028475", "0.72552687", "0.7193107", "0.714628", "0.714628", "0.7143065", "0.7129873", "0.71001065", "0.7076206", "0.70655966", "0.7060434", ...
0.7882115
3
Given a string, return a list of words normalized as follows. Split the string to make words first by using regex compile() function and string.punctuation + '09\\r\\t\\n]' to replace all those char with a space character. Split on space to get word list. Ignore words < 3 char long. Lowercase all words Remove English s...
def V22M(l5Ny: str) -> bdIy[str]: xdxQ = '\x00-\x1f' njyT = ZbWC.compile('[' + xdxQ + vIwR.punctuation + '0-9\r\t\n]') V4nF = njyT.sub(' ', l5Ny) V22M = V4nF.split(' ') V22M = [yzQ0 for yzQ0 in V22M if len(yzQ0) > 2] V22M = [yzQ0.lower() for yzQ0 in V22M] V22M = [yzQ0 for yzQ0 in V22M if yzQ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V22M(l5Ny):\n mXDZ = ZbWC.compile('[' + vIwR.punctuation + '0-9\\\\r\\\\t\\\\n]')\n qoGC = ''\n for a1PO in l5Ny:\n qoGC += ZbWC.sub(mXDZ, ' ', a1PO)\n VyPo = qoGC.split(' ')\n Xwej = set()\n for GIN8 in VyPo:\n if len(GIN8) >= 3 and GIN8 not in Xwej:\n Xwej.add(GIN8)...
[ "0.7813216", "0.778122", "0.75891465", "0.7542372", "0.74960387", "0.7429983", "0.7397309", "0.735678", "0.7351089", "0.7351089", "0.7343927", "0.7313465", "0.7266097", "0.7259383", "0.7256243", "0.7255682", "0.7231754", "0.7197558", "0.7160446", "0.71373487", "0.71051145", ...
0.77814364
1
Sets the learning rate
def e_63(K0do, tspZ): for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVtO(YKHO, Qj8D: float):\n pass", "def Aaf0(YKHO, Tclk):\n YKHO.learningRate = Tclk", "def kVtO(YKHO, tspZ=0.1):\n YKHO.learning_rate = tspZ\n return YKHO", "def kVtO(YKHO, tspZ):\n if not isinstance(tspZ, float):\n raise TypeError('lr must be a float')\n else:\n YKHO._lea...
[ "0.85884196", "0.8530926", "0.8506454", "0.8335565", "0.83055896", "0.8275571", "0.8275571", "0.8159603", "0.8059843", "0.79830354", "0.796874", "0.7946855", "0.79443324", "0.7927012", "0.7821867", "0.77972573", "0.77972573", "0.7795065", "0.7747986", "0.7696061", "0.7665781"...
0.0
-1
Add connection between node1 and node2
def H2v5(YKHO, i4Va, rUTj): YKHO._graph[i4Va].add(rUTj) if not YKHO._directed: YKHO._graph[rUTj].add(i4Va) YKHO._nodes[rUTj].add(i4Va)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXHT(YKHO, i4Va, rUTj):\n i4Va.adjacent.add(rUTj)\n rUTj.adjacent.add(i4Va)", "def YXHT(MxXY, cWFu):\n MxXY.neighbors.append(cWFu)\n cWFu.neighbors.append(MxXY)", "def Ykhp(YKHO, n7rZ: Label, aS5z: Label):\n pass", "def foeh():\n pass", "def zC5T(YKHO, B6gA, nwxv, DHvX):\n pass", ...
[ "0.88017493", "0.8540145", "0.78986275", "0.75232446", "0.74920684", "0.7467674", "0.745193", "0.7437225", "0.7437225", "0.73057514", "0.72763824", "0.725125", "0.721871", "0.71975446", "0.7130472", "0.712485", "0.710569", "0.70525736", "0.69009376", "0.68895495", "0.6831394"...
0.72965044
10
Find all the parents associated with node
def HqGg(YKHO, Q6kx): return [exwG for exwG in YKHO._graph if Q6kx in YKHO._graph[exwG]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ACnF(YKHO, Q6kx):\n return []", "def YRwb(Q6kx):\n lpha = Q6kx.split('|')\n return ['|'.join(lpha[:YRbF]) for YRbF in reversed(range(2, len(lpha)))]", "def ACnF(YKHO, YVTg):\n return [_AKB for _AKB in YKHO.G.predecessors(YVTg)]", "def HqGg(YKHO, Q6kx):\n return [YKHO._idx2node[exwG] for ex...
[ "0.85506535", "0.7910546", "0.7870106", "0.78012526", "0.7790639", "0.76321745", "0.7628271", "0.76139194", "0.7550504", "0.75042534", "0.74627674", "0.7428771", "0.7400618", "0.7393675", "0.73908335", "0.7332469", "0.7328002", "0.7323398", "0.72945124", "0.72786695", "0.7275...
0.81768894
1
Find all the parents associated with node
def HqGg(YKHO, Q6kx): return [YKHO._idx2node[exwG] for exwG in YKHO._graph.predecessors(YKHO._node2idx[Q6kx])]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ACnF(YKHO, Q6kx):\n return []", "def HqGg(YKHO, Q6kx):\n return [exwG for exwG in YKHO._graph if Q6kx in YKHO._graph[exwG]]", "def YRwb(Q6kx):\n lpha = Q6kx.split('|')\n return ['|'.join(lpha[:YRbF]) for YRbF in reversed(range(2, len(lpha)))]", "def ACnF(YKHO, YVTg):\n return [_AKB for _AK...
[ "0.8550882", "0.8177658", "0.7910074", "0.78695095", "0.77910954", "0.7631219", "0.76274055", "0.7612749", "0.75508386", "0.7504793", "0.7462355", "0.7427061", "0.74000376", "0.73925793", "0.7389748", "0.73319024", "0.73277766", "0.7323115", "0.7293212", "0.72777617", "0.7274...
0.7801959
4
Returns the parent element or `None` for root element and for elements that are not included in the tree. Uses a LRU cache to minimize parent map rebuilding for trees processed with an incremental parser.
def PAwq(YKHO, LihS: Union[ElementNode, TypedElement]) -> h8nf[uLKX[h2j7, Ecbt]]: if isinstance(LihS, hKpc): LihS = LihS.elem if LihS is YKHO.root: return None try: return YKHO.parent_map[LihS] except KeyError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AKB(YKHO):\n if len(YKHO._parents) == 1:\n return YKHO._parents[0]\n elif len(YKHO._parents) == 0:\n return None\n else:\n raise Exception(\"The node has '\" + str(len(YKHO._parents)) + \"' parents.\")", "def PAwq(YKHO):\n if YKHO.parent:\n return YKHO.parent\n els...
[ "0.6895464", "0.6819755", "0.6809467", "0.6809467", "0.680598", "0.6722711", "0.67150736", "0.6691119", "0.66410375", "0.6612739", "0.6601565", "0.65886766", "0.6577757", "0.6551909", "0.6551293", "0.64945364", "0.63814306", "0.63808304", "0.6376549", "0.63608915", "0.6326847...
0.7640656
0
Iterator for cartesian products of selectors.
def dshC(YKHO, g3yn: Sequence[Callable[[Any], Any]], NLVo: Optional[Sequence[str]]=None) -> bDy6[ImMB]: IrPK = [WKvO(YKHO) for WKvO in g3yn] e_2d = len(IrPK) QRFO = [None] * e_2d bKPk = e_2d - 1 G1Hx = 0 while True: try: BWXx = next(IrPK[G1Hx]) except StopIteration: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Idki(YKHO, PKko):\n return FUX1([YRbF for YRbF in [PKko(finE) for finE in YKHO.iterable]])", "def Ldyl(YKHO, *qIxc, **B2fa):\n for WKvO in []:\n yield WKvO", "def Vs4Q(YKHO):\n yield from Hs6x.product(*(range(tpio) for tpio in YKHO._dim))", "def AUi1(YKHO, RA4y: list):\n if len(RA4y) =...
[ "0.64918137", "0.6478508", "0.61106235", "0.60997456", "0.60702395", "0.6040123", "0.6034401", "0.60239273", "0.6023216", "0.60226077", "0.60000026", "0.59967685", "0.59843475", "0.5983189", "0.5873273", "0.58437186", "0.58431", "0.5828095", "0.5804073", "0.5754102", "0.57293...
0.67971367
0
Iterator for 'child' forward axis and '/' step.
def u3Jc(YKHO) -> bDy6[ImMB]: if YKHO.axis is not None: yield YKHO.item return jGRS = (YKHO.item, YKHO.axis) YKHO.axis = 'child' if isinstance(YKHO.item, hKpc): YKHO.item = YKHO.item.elem if YKHO.item is None: if Lukk(YKHO.root): C13M = YWvJ(Ecbt, YKHO.roo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I1Xg(_AKB):\n LihS = _AKB.first_child\n while LihS is not None:\n yield LihS\n LihS = LihS.nxt", "def Vs4Q(YKHO):\n if YKHO:\n yield YKHO.value\n if YKHO.has_left_child():\n for ZfUD in YKHO.left:\n yield ZfUD\n if YKHO.has_right_child():\...
[ "0.68403995", "0.65393686", "0.6436577", "0.63967997", "0.6337275", "0.63312477", "0.6286363", "0.6268072", "0.6242101", "0.6228899", "0.621732", "0.6193928", "0.6192454", "0.6180295", "0.6179875", "0.6178686", "0.6163571", "0.61470544", "0.61470544", "0.6133068", "0.6124113"...
0.66031957
1
Iterator for 'ancestor' and 'ancestororself' reverse axes.
def nXTb(YKHO, jDK_: Optional[str]=None) -> bDy6[VnSt]: jGRS = (YKHO.item, YKHO.axis) YKHO.axis = jDK_ or 'ancestor' if isinstance(YKHO.item, hKpc): LihS = YKHO.item.elem elif i7Cc(YKHO.item): LihS = YWvJ(h2j7, YKHO.item) else: return JZlq: x1iM[uLKX[h2j7, Ecbt]] = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m39U(YKHO):\n if YKHO._parent is not None:\n for _AKB in YKHO._parent._reverseParents():\n yield _AKB\n yield YKHO._parent", "def Ck0r(YKHO, S86P=None, yYKB=True):\n if yYKB:\n yield YKHO\n Q6kx = YKHO\n while Q6kx is not None:\n Q6kx = Q6kx.parent_node\n ...
[ "0.66052985", "0.65541005", "0.6502162", "0.6410995", "0.6385543", "0.6226675", "0.6203353", "0.6168778", "0.61352134", "0.61125594", "0.6109813", "0.60754347", "0.6052035", "0.59996206", "0.59748656", "0.59748656", "0.59748656", "0.5965765", "0.5941251", "0.5937531", "0.5934...
0.69977844
0
Remove and return the item at the front of this Queue. Return None if this Queue is empty. >>> q = Queue() >>> q.enqueue('hello') >>> q.enqueue('goodbye') >>> q.dequeue() 'hello' >>> q.dequeue() 'goodbye' >>> q.dequeue()
def he0F(YKHO) -> h8nf[Kt_s]: if len(YKHO._items) == 0: return None return YKHO._items.pop(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def he0F(YKHO):\n return None if YKHO.is_empty() else YKHO._q.popleft()", "def he0F(YKHO):...
[ "0.80669117", "0.80603164", "0.80603164", "0.7970182", "0.79700226", "0.79171914", "0.78841233", "0.78635913", "0.78507286", "0.77947867", "0.7762593", "0.77483577", "0.7747532", "0.7745755", "0.77009", "0.76991045", "0.769611", "0.7693905", "0.76930773", "0.76912993", "0.767...
0.7508109
53
Test that endpoint to query the rotki version works fine
def lg0q(sjJg): geh0 = G4JS.get(MP4i(sjJg, 'versionresource')) XVs8(geh0) m5zn = Zkuh()['rotkehlchen'] nPrm = geh0.json() assert nPrm['message'] == '' assert len(nPrm['result']) == 3 assert nPrm['result']['our_version'] == m5zn HCmI = ['git', 'describe', '--abbrev=0', '--tags'] km6w ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QA8F(YKHO):\n geh0 = YKHO.client.open('/upgrade/version', method='GET')\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))", "def QA8F(YKHO):\n x0hE = YKHO.create_client()\n YKHO.check_result(x0hE.version.get())", "def uvNp(YKHO):\n pass", "def iq4P(YKHO):\n QePW ...
[ "0.7005825", "0.6928351", "0.69207597", "0.68332314", "0.6798279", "0.6798279", "0.6780503", "0.6780503", "0.67654437", "0.67654437", "0.67654437", "0.6704691", "0.6678014", "0.6653174", "0.6645533", "0.66409755", "0.6631804", "0.661727", "0.66147757", "0.66000533", "0.658450...
0.7062499
0
Return the firing rate of V1 orientationtuned cells in response to an input stimulus. firing rates = max_spike ( 0.5 ( cos(2 (preferred_orientations stimulus)) + 1 ) ).^sharpness
def qFxS(XckE, B1Wx=32, IJH7=4.0, Mwll=50, ehVc=0.5): if XckE is None: raise TypeError('No stimulus provided.') if B1Wx is None: raise TypeError('No resolution provided.') if B1Wx <= 0: raise ValueError('Invalid resolution (%d).' % B1Wx) if IJH7 is None: raise TypeError('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n5gt(YKHO) -> P6bq.J * P6bq.m ** (-3) * P6bq.s ** (-1):\n ...", "def H0Fc(YKHO, KS8Z):\n if YKHO._block_starts is None:\n CnCo = oyIN.diff(YKHO.stim_table['start_time'])\n DRWe = oyIN.concatenate((oyIN.where(CnCo > YKHO.trial_duration * 2)[0], oyIN.array([YKHO.total_presentations - 1])))\...
[ "0.6172908", "0.57499856", "0.56663597", "0.5636704", "0.5611817", "0.55938256", "0.5551542", "0.55450624", "0.5497024", "0.5470768", "0.54425067", "0.5417374", "0.5416308", "0.5350515", "0.53293216", "0.53292185", "0.5314035", "0.5298054", "0.5295218", "0.5272677", "0.526487...
0.6729382
0
Sets the stop_id of this V3Departure.
def zL37(YKHO, zL37): YKHO._stop_id = zL37
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zL37(YKHO, zL37):\n if zL37 is not None and zL37 > 2147483647:\n raise ValueError('Invalid value for `stop_id`, must be a value less than or equal to `2147483647`')\n if zL37 is not None and zL37 < 0:\n raise ValueError('Invalid value for `stop_id`, must be a value greater than or equal to ...
[ "0.77167904", "0.6475715", "0.6475715", "0.60570323", "0.5808275", "0.5716328", "0.56453675", "0.5634434", "0.5634434", "0.5526972", "0.55125105", "0.5476939", "0.5463765", "0.53577554", "0.53477097", "0.5340394", "0.53161204", "0.530253", "0.52924216", "0.52843875", "0.52490...
0.8147664
0
Sets the route_id of this V3Departure.
def hRJu(YKHO, hRJu): YKHO._route_id = hRJu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O62t(YKHO, _Ivi, PsCT, SKVp, yqiJ):\n if not YKHO._update_parking(_Ivi, SKVp, yqiJ):\n return -1\n YKHO._update_route(_Ivi, PsCT)", "def JqtQ(YKHO, JqtQ):\n YKHO._route_map_id = JqtQ", "def PsCT(YKHO, PsCT):\n YKHO._route = PsCT", "def O62t(YKHO, PsCT):\n YKHO.route = PsCT\n YKHO...
[ "0.65487957", "0.6088546", "0.594701", "0.5922973", "0.58579284", "0.57678825", "0.56792676", "0.5616167", "0.55963105", "0.55826014", "0.55376476", "0.5509759", "0.5364754", "0.52085537", "0.52009064", "0.51938665", "0.5175988", "0.517125", "0.517125", "0.51418835", "0.51380...
0.7562698
0
Sets the departure_sequence of this V3Departure.
def VOGz(YKHO, VOGz): YKHO._departure_sequence = VOGz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aWuw(YKHO, aWuw: int):\n YKHO._sequence = aWuw", "def aWuw(YKHO, aWuw):\n YKHO._sequence = aWuw", "def udyv(YKHO, udyv):\n YKHO._scheduled_departure_utc = udyv", "def aWuw(YKHO, aWuw):\n YKHO._sequence = aWuw", "def aWuw(YKHO, aWuw):\n YKHO._sequence = aWuw", "def aWuw(YKHO, aWuw):\n ...
[ "0.532835", "0.52720165", "0.52519566", "0.5236387", "0.5236387", "0.5181678", "0.5046899", "0.48956615", "0.4867452", "0.4846713", "0.4777074", "0.4777074", "0.4777074", "0.4775029", "0.4775029", "0.4775029", "0.47716486", "0.47716486", "0.47716486", "0.47716486", "0.4771648...
0.8531336
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83931243", "0.83552086", "0.82955265", "0.8132768", "0.81150424", "0.81002593", "0.80996835", "0.80982906", "0.80982906", "0.80930424", "0.80930424", "0.80930424", "0.80930424", "0.8085779", "0.8085779", "0.8085779", "0.8085779", "0.8085779", "0.8067391", "0.80594134", "0....
0.0
-1
Produces a JSONified version of analytics needed for ReactJS UI component.
def Qutd(): yKcO = wuTr() Os4s = wuTr(offset=fCoM(hours=24)) edEx = A8Lf(yKcO, Os4s, 5, 15, 60) D8cM = orql() return qQXR.dumps({'ui': edEx, 'network': D8cM}, default=str)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n return {'id': YKHO.id, 'title': YKHO.title, 'endpoint': YKHO.google_analytics, 'creation_date': str(YKHO.creation_date), 'end_date': str(YKHO.end_date), 'twitter_keyword': YKHO.twitter_keyword}", "def xUzn(YKHO):\n return qQXR.dumps(YKHO.basic, indent=2)", "def uhqx(YKHO):\n nPrm = Y...
[ "0.61514205", "0.60468614", "0.59754443", "0.59131145", "0.59131145", "0.59131145", "0.59131145", "0.59131145", "0.59131145", "0.5882907", "0.58246547", "0.5821962", "0.58169824", "0.58081806", "0.5799897", "0.5799834", "0.57946455", "0.5787749", "0.5787749", "0.5787749", "0....
0.0
-1
Adding the new node to the graph and add the edge weight
def g5gD(YKHO, Esd_, cnOs): cnOs = cnOs.split(', ') if len(cnOs) == len(YKHO.nodes) + 1: cnOs = [int(YRbF) for YRbF in cnOs] YKHO.g_dict[Esd_] = cnOs YKHO.nodes.append(Esd_) YKHO.edges.append(cnOs) for YRbF, r845 in enumerate(YKHO.g_dict): if not YRbF + 1 == l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, rJkO, cnOs, upAO):\n YKHO.vertices.setdefault(rJkO, []).append(cnOs)\n YKHO.vertices[rJkO].append(upAO)", "def rz7z(YKHO, V3IK, vyDA, upAO):\n if V3IK not in YKHO.graph:\n YKHO.add_node(V3IK)\n if vyDA not in YKHO.graph:\n YKHO.add_node(vyDA)\n YKHO.graph[V3IK][vyDA] =...
[ "0.8011873", "0.790807", "0.78899217", "0.7781495", "0.778121", "0.7603046", "0.75739706", "0.75540835", "0.7535364", "0.7476043", "0.74625903", "0.7426597", "0.73943347", "0.72363055", "0.72239244", "0.7220083", "0.7219481", "0.7190026", "0.7168445", "0.71664345", "0.71612",...
0.7751416
5
Assert that an org can be POSTed.
def MZEZ(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') assert im04.status_code == E4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WqdW(YKHO):\n pass", "def TG5u(YKHO):\n jpuF = 'Halperin Organix'\n YKHO.client.login(username='volunteer1@example.com', password='volunteer1')\n tXgX = {'name': jpuF, 'address': 'East Street 123', 'description': 'User unfriendly organization'}\n geh0 = YKHO.client.post('/o/organizations/creat...
[ "0.7468118", "0.72040915", "0.68997526", "0.6801878", "0.66922164", "0.6666735", "0.6612549", "0.6553523", "0.64157665", "0.638212", "0.63610095", "0.63485795", "0.6347061", "0.63309497", "0.6326555", "0.63264275", "0.6218557", "0.6189675", "0.6186855", "0.61829454", "0.61691...
0.5929546
56
Assert that an org can be POSTed.
def tNKJ(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.staff_admin_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org_anonymous), headers=MOPg, content_type='application/json') assert im04.status_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WqdW(YKHO):\n pass", "def TG5u(YKHO):\n jpuF = 'Halperin Organix'\n YKHO.client.login(username='volunteer1@example.com', password='volunteer1')\n tXgX = {'name': jpuF, 'address': 'East Street 123', 'description': 'User unfriendly organization'}\n geh0 = YKHO.client.post('/o/organizations/creat...
[ "0.74692005", "0.72058445", "0.69015616", "0.68038386", "0.66945475", "0.66682816", "0.66122156", "0.65544033", "0.641345", "0.63852644", "0.6362984", "0.63468945", "0.6343663", "0.63303804", "0.63280535", "0.63265693", "0.6221642", "0.61864877", "0.61859417", "0.61819005", "...
0.0
-1
Assert that an org can be POSTed.
def ADCU(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org_anonymous), headers=MOPg, content_type='application/json') assert im04.status_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WqdW(YKHO):\n pass", "def TG5u(YKHO):\n jpuF = 'Halperin Organix'\n YKHO.client.login(username='volunteer1@example.com', password='volunteer1')\n tXgX = {'name': jpuF, 'address': 'East Street 123', 'description': 'User unfriendly organization'}\n geh0 = YKHO.client.post('/o/organizations/creat...
[ "0.7468118", "0.72040915", "0.68997526", "0.6801878", "0.66922164", "0.6666735", "0.6612549", "0.6553523", "0.64157665", "0.638212", "0.63610095", "0.63485795", "0.6347061", "0.63309497", "0.6326555", "0.63264275", "0.6218557", "0.6189675", "0.6186855", "0.61829454", "0.61691...
0.0
-1
Assert that an org can be POSTed.
def FMGa(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.staff_admin_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps({'name': 'My Test Org'}), headers=MOPg, content_type='application/json') assert im04.sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WqdW(YKHO):\n pass", "def TG5u(YKHO):\n jpuF = 'Halperin Organix'\n YKHO.client.login(username='volunteer1@example.com', password='volunteer1')\n tXgX = {'name': jpuF, 'address': 'East Street 123', 'description': 'User unfriendly organization'}\n geh0 = YKHO.client.post('/o/organizations/creat...
[ "0.74690104", "0.72053987", "0.69026136", "0.6802823", "0.66950047", "0.66672784", "0.66116595", "0.65534407", "0.6413587", "0.63839626", "0.63630706", "0.6346222", "0.6343065", "0.63289684", "0.6326839", "0.63245034", "0.6221606", "0.61860794", "0.6184459", "0.61807084", "0....
0.0
-1
Assert that an org can be POSTed.
def jC4t(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.staff_admin_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') assert im04.status_code == E4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WqdW(YKHO):\n pass", "def TG5u(YKHO):\n jpuF = 'Halperin Organix'\n YKHO.client.login(username='volunteer1@example.com', password='volunteer1')\n tXgX = {'name': jpuF, 'address': 'East Street 123', 'description': 'User unfriendly organization'}\n geh0 = YKHO.client.post('/o/organizations/creat...
[ "0.7468118", "0.72040915", "0.68997526", "0.6801878", "0.66922164", "0.6666735", "0.6612549", "0.6553523", "0.64157665", "0.638212", "0.63610095", "0.63485795", "0.6347061", "0.63309497", "0.6326555", "0.63264275", "0.6218557", "0.6189675", "0.6186855", "0.61829454", "0.61691...
0.0
-1
Assert that an org can be POSTed.
def IjRC(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') assert im04.status_code == E4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WqdW(YKHO):\n pass", "def TG5u(YKHO):\n jpuF = 'Halperin Organix'\n YKHO.client.login(username='volunteer1@example.com', password='volunteer1')\n tXgX = {'name': jpuF, 'address': 'East Street 123', 'description': 'User unfriendly organization'}\n geh0 = YKHO.client.post('/o/organizations/creat...
[ "0.7468118", "0.72040915", "0.68997526", "0.6801878", "0.66922164", "0.6666735", "0.6612549", "0.6553523", "0.64157665", "0.638212", "0.63610095", "0.63485795", "0.6347061", "0.63309497", "0.6326555", "0.63264275", "0.6218557", "0.6189675", "0.6186855", "0.61829454", "0.61691...
0.0
-1
Assert that POSTing an invalid org returns a 400.
def x_qU(x0hE, DvJO, cuiw): MOPg = uhrz(DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.invalid), headers=MOPg, content_type='application/json') assert im04.status_code == E4zG.HTTP_400_BAD_REQUEST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 400)", "def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hk...
[ "0.82340664", "0.82340664", "0.7727219", "0.767089", "0.7465117", "0.7465117", "0.7417481", "0.7413397", "0.7384038", "0.73662394", "0.7333319", "0.7317716", "0.7298735", "0.72722346", "0.7262474", "0.72435915", "0.7243407", "0.72348607", "0.7110538", "0.7106448", "0.7057052"...
0.7239136
17
Assert that POSTing an invalid org returns a 400.
def ekD9(x0hE, DvJO, cuiw): MOPg = uhrz(DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.invalid_name_space), headers=MOPg, content_type='application/json') assert im04.status_code == E4zG.HTTP_400_BAD_REQUEST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 400)", "def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hk...
[ "0.82349026", "0.82349026", "0.77279407", "0.7671653", "0.74658775", "0.74658775", "0.7416672", "0.74126387", "0.7384888", "0.7367951", "0.7334664", "0.7318208", "0.7299735", "0.72725993", "0.72615105", "0.7243866", "0.7243788", "0.72383684", "0.72357464", "0.7111034", "0.710...
0.69690937
30
Assert that POSTing an invalid org returns a 400.
def hySI(x0hE, DvJO, cuiw): MOPg = uhrz(DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.invalid_name_spaces), headers=MOPg, content_type='application/json') assert im04.status_code == E4zG.HTTP_400_BAD_REQUEST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 400)", "def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hk...
[ "0.82351357", "0.82351357", "0.7727867", "0.76715034", "0.7464698", "0.7464698", "0.74188626", "0.74140507", "0.73861396", "0.73668015", "0.7333399", "0.7318266", "0.73001796", "0.7274612", "0.72635865", "0.72456354", "0.7244704", "0.7237915", "0.7236484", "0.71114385", "0.71...
0.6700775
60
Assert that POSTing an invalid org returns a 400.
def yWA5(x0hE, DvJO, cuiw): MOPg = uhrz(DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.invalid_name_end_space), headers=MOPg, content_type='application/json') assert im04.status_code == E4zG.HTTP_400_BAD_REQUEST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 400)", "def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hk...
[ "0.82349026", "0.82349026", "0.77279407", "0.7671653", "0.74658775", "0.74658775", "0.7416672", "0.74126387", "0.7384888", "0.7367951", "0.7334664", "0.7318208", "0.7299735", "0.72725993", "0.72615105", "0.7243866", "0.7243788", "0.72383684", "0.72357464", "0.7111034", "0.710...
0.6993072
28
Assert that POSTing an invalid org returns a 400.
def Xlib(x0hE, DvJO, cuiw): MOPg = uhrz(DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.invalid_name_start_space), headers=MOPg, content_type='application/json') assert im04.status_code == E4zG.HTTP_400_BAD_REQUEST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 400)", "def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hk...
[ "0.82340664", "0.82340664", "0.7727219", "0.767089", "0.7465117", "0.7465117", "0.7417481", "0.7413397", "0.7384038", "0.73662394", "0.7333319", "0.7317716", "0.7298735", "0.72722346", "0.7262474", "0.72435915", "0.7243407", "0.7239136", "0.72348607", "0.7110538", "0.7106448"...
0.6722993
53
Assert that POSTing an invalid org returns a 401.
def OnjW(x0hE, DvJO, cuiw): MOPg = uhrz(DvJO, claims=BGC4.view_role) im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') assert im04.status_code == E4zG.HTTP_401_UNAUTHORIZED
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GSK3(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.post('/api/v1/organizations', headers=dict(Authorization='Bearer invalid'))\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertTrue(nPrm['status'] == 'error')\n YKHO.assertTrue(nPrm['message'] == 'Invalid token. Please log in...
[ "0.77698964", "0.7453911", "0.7442881", "0.74246204", "0.73811394", "0.7377436", "0.7358571", "0.73314613", "0.73238766", "0.7301611", "0.7266374", "0.7257696", "0.71972847", "0.7191444", "0.7191444", "0.7191444", "0.71389854", "0.71307606", "0.71307606", "0.7109103", "0.7104...
0.73610556
6
Assert that POSTing an invalid org returns a 401.
def wk8f(x0hE, DvJO, cuiw): MOPg = uhrz(DvJO, claims=BGC4.staff_role) im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') assert im04.status_code == E4zG.HTTP_401_UNAUTHORIZED
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GSK3(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.post('/api/v1/organizations', headers=dict(Authorization='Bearer invalid'))\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertTrue(nPrm['status'] == 'error')\n YKHO.assertTrue(nPrm['message'] == 'Invalid token. Please log in...
[ "0.776927", "0.74529463", "0.74423116", "0.74248654", "0.73823285", "0.7377218", "0.7360165", "0.73560506", "0.7332781", "0.7324485", "0.730179", "0.7267633", "0.72572386", "0.7197314", "0.71924734", "0.71924734", "0.71924734", "0.7138175", "0.71301603", "0.71301603", "0.7106...
0.0
-1
Assert that POSTing an org with invalid user returns a 401.
def cbaW(x0hE, DvJO, cuiw): MOPg = uhrz(DvJO, claims=BGC4.public_user_role) with Po4F.object(x7_4, 'find_by_jwt_token', return_value=None): im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') assert im04.status_code == E4zG.HTTP_401_UNAUTHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GSK3(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.post('/api/v1/organizations', headers=dict(Authorization='Bearer invalid'))\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertTrue(nPrm['status'] == 'error')\n YKHO.assertTrue(nPrm['message'] == 'Invalid token. Please log in...
[ "0.7738441", "0.7679979", "0.7635554", "0.7589337", "0.75751644", "0.7554388", "0.75506437", "0.7460922", "0.74518543", "0.7442539", "0.7401275", "0.7353888", "0.734766", "0.73294705", "0.7322369", "0.73136413", "0.7312633", "0.7310347", "0.7295471", "0.72869396", "0.72845876...
0.74041325
10
Assert that POSTing an invalid org returns an exception.
def rIKp(x0hE, DvJO, cuiw): MOPg = uhrz(DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') with Po4F.object(WxSC, 'create_org', side_effect=qTNt(xxyF.DATA_ALREADY_EXISTS, None)): im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def e4S6(YKHO):\n Ylbp = RXWa(YKHO.get_request())\n NaW5(Ylbp.status_code, 400)", "def kEJJ(YKHO):\n nPrm = {'account': 'someaccount', 'term': '2015-1'}\n with YKHO.assertRaises(wPvU):\n YKHO._prep_reque...
[ "0.74790424", "0.74790424", "0.74174863", "0.74085045", "0.73488015", "0.7329896", "0.72901183", "0.72364014", "0.7179802", "0.71569973", "0.7147626", "0.70788723", "0.70716965", "0.7050323", "0.7045135", "0.7031542", "0.702171", "0.6981029", "0.69687635", "0.6952908", "0.694...
0.67668664
34
Assert that an org can be updated via PUT.
def aXso(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c3iG(x0hE, DvJO, cuiw, j6SQ):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json')\n im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json')\n cmPJ = qQXR.loads(im...
[ "0.7352961", "0.7291179", "0.71751076", "0.7143077", "0.70945865", "0.7026575", "0.69812137", "0.69752645", "0.6970042", "0.69699067", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6883034", "0.68304163...
0.7377744
0
Assert that an org can be updated via PUT.
def Exwb(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.staff_admin_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org_anonymous), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXso(x0hE, DvJO, cuiw, j6SQ):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json')\n im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json')\n cmPJ = qQXR.loads(im...
[ "0.7376778", "0.7352498", "0.7289867", "0.7175997", "0.71441007", "0.70942914", "0.70285904", "0.6981459", "0.69772124", "0.69705653", "0.6970241", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.68827933", "0.6...
0.0
-1
Assert that an org can be updated via PUT.
def zIa5(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXso(x0hE, DvJO, cuiw, j6SQ):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json')\n im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json')\n cmPJ = qQXR.loads(im...
[ "0.7377554", "0.73527974", "0.7289696", "0.7176013", "0.7143732", "0.7093506", "0.70274776", "0.6981741", "0.69755733", "0.69708014", "0.69703764", "0.69674", "0.69674", "0.69674", "0.69674", "0.69674", "0.69674", "0.69674", "0.69674", "0.69674", "0.688177", "0.6831713", ...
0.6523918
41
Assert that an org can be updated via PUT.
def NJGo(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') Sftc = aJeM.bcol_linked() im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(Sftc), headers=MOPg, content_type='application/json') cmPJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXso(x0hE, DvJO, cuiw, j6SQ):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json')\n im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json')\n cmPJ = qQXR.loads(im...
[ "0.7376778", "0.7352498", "0.7289867", "0.7175997", "0.71441007", "0.70942914", "0.70285904", "0.6981459", "0.69772124", "0.69705653", "0.6970241", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.68827933", "0.6...
0.0
-1
Assert that an org can be updated via PUT.
def eeYF(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') Sftc = aJeM.bcol_linked() im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(Sftc), headers=MOPg, content_type='application/json') cmPJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXso(x0hE, DvJO, cuiw, j6SQ):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json')\n im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json')\n cmPJ = qQXR.loads(im...
[ "0.7377744", "0.7352961", "0.7291179", "0.71751076", "0.7143077", "0.70945865", "0.7026575", "0.69812137", "0.69752645", "0.6970042", "0.69699067", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6883034"...
0.0
-1
Assert that an org can be updated via PUT.
def yLG1(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.bcol_linked()), headers=MOPg, content_type='application/json') assert im04.status_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXso(x0hE, DvJO, cuiw, j6SQ):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json')\n im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json')\n cmPJ = qQXR.loads(im...
[ "0.7376778", "0.7352498", "0.7289867", "0.7175997", "0.71441007", "0.70942914", "0.70285904", "0.6981459", "0.69772124", "0.69705653", "0.6970241", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.696821", "0.68827933", "0.6...
0.0
-1
Assert that an org can be updated via PUT.
def T858(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.bcol_linked()), headers=MOPg, content_type='application/json') assert im04.status_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXso(x0hE, DvJO, cuiw, j6SQ):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json')\n im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json')\n cmPJ = qQXR.loads(im...
[ "0.7377554", "0.73527974", "0.7289696", "0.7176013", "0.7143732", "0.7093506", "0.70274776", "0.6981741", "0.69755733", "0.69708014", "0.69703764", "0.69674", "0.69674", "0.69674", "0.69674", "0.69674", "0.69674", "0.69674", "0.69674", "0.69674", "0.688177", "0.6831713", ...
0.0
-1
Assert that an org can not be updated and return 400 error via PUT.
def c3iG(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tKfT(x0hE, DvJO, cuiw, j6SQ):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json')\n im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json')\n cmPJ = qQXR.loads(im...
[ "0.7539889", "0.7266686", "0.7205823", "0.71588296", "0.69320387", "0.6902563", "0.6850921", "0.68230903", "0.67790055", "0.669482", "0.6675752", "0.6663095", "0.66627395", "0.66616106", "0.6661131", "0.6660341", "0.6641035", "0.6624237", "0.6620175", "0.6612165", "0.65940464...
0.7851105
0
Assert that attempting to update a nonexistent org returns an exception.
def tKfT(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H_WV(x0hE, DvJO, cuiw):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.put('/api/v1/orgs/{}'.format(999), data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json')\n assert im04.status_code == E4zG.HTTP_404_NOT_FOUND", "def c3iG(x0hE, DvJO, cuiw, j6SQ):\n MOP...
[ "0.7190552", "0.7176065", "0.702001", "0.6976558", "0.6779905", "0.67437875", "0.66956514", "0.6634391", "0.6632265", "0.66297054", "0.6622735", "0.64908296", "0.64596486", "0.645565", "0.64427197", "0.6436185", "0.64333117", "0.6405982", "0.63881916", "0.6372035", "0.6345417...
0.7349176
0
Assert that a contact can be added to an org.
def OroB(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NTFJ(YKHO):\n YKHO.check_and_add_contact(YKHO.recipient_phone, YKHO.name2)\n YKHO.contacts.verify_contacts_screen()\n YKHO.contacts.click_tab_btn_native(YKHO.contacts.SAVED_TAB_BTN)\n assert YKHO.contacts.verify_and_select_saved_contact(YKHO.recipient_phone, YKHO.name2) is not False", "def OroB(Y...
[ "0.76031405", "0.73788416", "0.69037944", "0.6848279", "0.6784227", "0.67664564", "0.6672186", "0.6648158", "0.66473055", "0.662254", "0.6587733", "0.65827084", "0.6578353", "0.6421689", "0.63849366", "0.6371258", "0.6362575", "0.6354777", "0.6344178", "0.63159835", "0.629448...
0.68551445
3
Assert that adding an valid formatted contact with special characters in email returns a 201.
def Ve0e(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WG80(YKHO):\n YKHO.fc.nav_to_contacts_screen()\n YKHO.contacts.click_add()\n YKHO.contacts.verify_phone_invalidation_message(1234567890123, 'inavlid_format')", "def EbHg(YKHO):\n b5K5 = YKHO.test_user_1.copy()\n b5K5.update({'name': 'test.user', 'email': 'test.u#ser1@test.com'})\n QePW = G4...
[ "0.693704", "0.67380714", "0.67314017", "0.6720187", "0.67013156", "0.6696238", "0.666769", "0.6627149", "0.6567884", "0.6533748", "0.6508515", "0.65025085", "0.6454239", "0.6449707", "0.64417964", "0.6440398", "0.6415346", "0.63936925", "0.6385021", "0.63844556", "0.6362653"...
0.66894644
6
Assert that a contact can be updated on an org.
def skaU(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def skaU(YKHO):\n pass", "def e7NQ(x0hE, DvJO, cuiw):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.put('/api/v1/orgs/{}/contacts'.format(99), headers=MOPg, data=qQXR.dumps(X6Ha.contact1), content_type='application/json')\n assert im04.status_code == E4zG.HTTP_404_NOT_FOUND", ...
[ "0.76905984", "0.685339", "0.6796315", "0.67656016", "0.67604584", "0.67563176", "0.6738004", "0.6595649", "0.6515152", "0.65008116", "0.64832366", "0.64821225", "0.64404726", "0.64380634", "0.6428542", "0.6394532", "0.63912976", "0.6373616", "0.63501996", "0.62962055", "0.62...
0.7148341
1
Assert that updating with an invalidly formatted contact returns a 400.
def ioDB(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U9ar(YKHO):\n YKHO.client.login(email='user@mail.com', password='1111Bb')\n bD7m = gxEw('change_phone')\n m6UH = {'phone': '+38012bb'}\n geh0 = YKHO.client.put(bD7m, qQXR.dumps(m6UH), content_type='application/json')\n YKHO.assertEquals(geh0.status_code, 400)", "def jyVj(YKHO):\n TBsA = qQX...
[ "0.7021371", "0.7005726", "0.680413", "0.67985046", "0.67965394", "0.66647047", "0.6653322", "0.66507196", "0.66488546", "0.6629827", "0.6628141", "0.6615008", "0.6615008", "0.65642095", "0.6512919", "0.650342", "0.6496951", "0.6463294", "0.6457441", "0.6449869", "0.6422056",...
0.7481121
0
Assert that updating with an validly formatted contact with special characters in email returns a 200.
def DYtr(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SKUD(YKHO):\n pass", "def ITAY(YKHO):\n YKHO.test_new_account()\n geh0 = YKHO.client.get('/accounts/register/')\n vPDf = {'email': 'somenewtester@example.com', 'first_name': 'New', 'last_name': 'Tester', 'password1': 'new123pass', 'password2': 'new123pass', 'newsletter': '0'}\n geh0 = YKHO.cli...
[ "0.71812177", "0.6816146", "0.6811657", "0.6775767", "0.67654014", "0.6719189", "0.66991675", "0.66971934", "0.669376", "0.6691376", "0.66758394", "0.66390884", "0.65742683", "0.654016", "0.6501316", "0.64638126", "0.64614487", "0.6447399", "0.64090776", "0.63587856", "0.6341...
0.7433095
0
Assert that updating a contact on a nonexistant entity returns 404.
def e7NQ(x0hE, DvJO, cuiw): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.put('/api/v1/orgs/{}/contacts'.format(99), headers=MOPg, data=qQXR.dumps(X6Ha.contact1), content_type='application/json') assert im04.status_code == E4zG.HTTP_404_NOT_FOUND
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y9Lt(YKHO):\n _hkX = YKHO.app.put('/users/baduser', content_type='application/json', data=qQXR.dumps(dict(first_name='first', last_name='last')))\n YKHO.assertEqual(_hkX.status_code, 404)", "def eSuj(YKHO):\n TBsA = qQXR.dumps({'name': 'test_name'})\n geh0 = YKHO.client.patch(nKyW('users.update_u...
[ "0.7550386", "0.7329301", "0.7267616", "0.7248946", "0.7115588", "0.71018493", "0.7092212", "0.70881253", "0.70610535", "0.6943564", "0.6939172", "0.6934869", "0.68479955", "0.68458724", "0.6825907", "0.6813425", "0.6776075", "0.6768953", "0.6767126", "0.6726148", "0.66999507...
0.72294545
4
Assert that updating a nonexistant contact returns 404.
def h0rP(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y9Lt(YKHO):\n _hkX = YKHO.app.put('/users/baduser', content_type='application/json', data=qQXR.dumps(dict(first_name='first', last_name='last')))\n YKHO.assertEqual(_hkX.status_code, 404)", "def eSuj(YKHO):\n TBsA = qQXR.dumps({'name': 'test_name'})\n geh0 = YKHO.client.patch(nKyW('users.update_u...
[ "0.7644434", "0.7418838", "0.73483247", "0.729024", "0.7268435", "0.7256049", "0.7187508", "0.71542937", "0.7134982", "0.7132459", "0.70692724", "0.7053305", "0.7050506", "0.7030004", "0.6932905", "0.690986", "0.6902147", "0.68956274", "0.6891012", "0.6846474", "0.6838043", ...
0.7337454
3
Assert that a list of members for an org can be retrieved.
def ADbs(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pTwB(YKHO):\n pass", "def m6br(YKHO):\n pass", "def ECTI(YKHO):\n pass", "def PcAq(YKHO):\n _hkX = YKHO.api_client.get(YKHO.all_members_url, format='json', authentication=YKHO.creds)\n YKHO.assertValidJSONResponse(_hkX)\n n9_s = YKHO.deserialize(_hkX)['objects']\n YKHO.assertEqual(le...
[ "0.76045334", "0.7302526", "0.7244638", "0.7223148", "0.7132036", "0.7006336", "0.6977073", "0.69684786", "0.6933696", "0.6905773", "0.6902886", "0.68832535", "0.6872851", "0.6852744", "0.68355477", "0.6818543", "0.6796941", "0.67072135", "0.6706216", "0.6656372", "0.664484",...
0.75030804
1
Assert that a member of an org can have their role updated.
def xZ29(x0hE, DvJO, cuiw, OU6e, j6SQ): i6Qy = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=i6Qy, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=i6Qy, content_type='application/json') cmPJ = qQXR.loads(im04....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D_1z(YKHO):\n pass", "def HISP(YKHO):\n pass", "def mPVJ(YKHO):\n YKHO.testdata['publicrole']['name'] += YKHO.getRandomString()\n LmAn = FxgQ.create(YKHO.apiclient, YKHO.testdata['publicrole'])\n YKHO.cleanup.append(LmAn)\n YKHO.asserts_visibility_of_public_role(LmAn.id)\n LmAn.update(...
[ "0.75727063", "0.72550964", "0.703621", "0.6926987", "0.674475", "0.67209077", "0.66815925", "0.66801697", "0.66604835", "0.66118395", "0.6602088", "0.65913004", "0.65284556", "0.6490503", "0.6391926", "0.63290715", "0.63211757", "0.62920713", "0.6283953", "0.628217", "0.6278...
0.0
-1
Assert that an org can be updated via PUT.
def LFU3(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.staff_admin_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org_anonymous), headers=MOPg, content_type='application/json') assert im04.status_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXso(x0hE, DvJO, cuiw, j6SQ):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json')\n im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json')\n cmPJ = qQXR.loads(im...
[ "0.7377744", "0.7352961", "0.7291179", "0.71751076", "0.7143077", "0.70945865", "0.7026575", "0.69812137", "0.69752645", "0.6970042", "0.69699067", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6965767", "0.6883034"...
0.6710086
25
Assert that a member of an org can have their role updated.
def F_R2(x0hE, DvJO, cuiw, OU6e, j6SQ): i6Qy = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=i6Qy, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=i6Qy, content_type='application/json') cmPJ = qQXR.loads(im04....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D_1z(YKHO):\n pass", "def HISP(YKHO):\n pass", "def mPVJ(YKHO):\n YKHO.testdata['publicrole']['name'] += YKHO.getRandomString()\n LmAn = FxgQ.create(YKHO.apiclient, YKHO.testdata['publicrole'])\n YKHO.cleanup.append(LmAn)\n YKHO.asserts_visibility_of_public_role(LmAn.id)\n LmAn.update(...
[ "0.757496", "0.725782", "0.7038307", "0.6927291", "0.67459875", "0.6721868", "0.66825145", "0.6680092", "0.666097", "0.66118354", "0.6604291", "0.6591245", "0.65302044", "0.64909714", "0.6393304", "0.632864", "0.6320574", "0.62927175", "0.6285159", "0.6279677", "0.6260998", ...
0.6283941
19
Assert that a contact can be added to an org.
def H2CW(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.passcode) im04 = x0hE.post('/api/v1/entities', data=qQXR.dumps(ilme.entity_lear_mock), headers=MOPg, content_type='application/json') MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NTFJ(YKHO):\n YKHO.check_and_add_contact(YKHO.recipient_phone, YKHO.name2)\n YKHO.contacts.verify_contacts_screen()\n YKHO.contacts.click_tab_btn_native(YKHO.contacts.SAVED_TAB_BTN)\n assert YKHO.contacts.verify_and_select_saved_contact(YKHO.recipient_phone, YKHO.name2) is not False", "def OroB(Y...
[ "0.76031405", "0.73788416", "0.69037944", "0.68551445", "0.6848279", "0.6784227", "0.67664564", "0.6672186", "0.6648158", "0.66473055", "0.662254", "0.6587733", "0.65827084", "0.6578353", "0.6421689", "0.63849366", "0.6371258", "0.6362575", "0.6354777", "0.6344178", "0.631598...
0.0
-1
Assert that adding an invalidly formatted affiliations returns a 400.
def pQBu(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.org1), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IYUs(x0hE, DvJO, cuiw, j6SQ):\n MOPg = uhrz(jwt=DvJO, claims=BGC4.passcode)\n im04 = x0hE.post('/api/v1/entities', data=qQXR.dumps(ilme.entity1), headers=MOPg, content_type='application/json')\n MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role)\n im04 = x0hE.post('/api/v1/users', headers=MOPg, co...
[ "0.6692981", "0.6309153", "0.62843174", "0.6207346", "0.61751133", "0.6102551", "0.60746884", "0.6045704", "0.60332584", "0.6009985", "0.60043156", "0.5997163", "0.59830976", "0.59798867", "0.5965429", "0.596367", "0.59623396", "0.59589887", "0.59586596", "0.5939865", "0.5924...
0.77864766
0
Assert that an org can be POSTed.
def oKZ4(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.bcol_linked()), headers=MOPg, content_type='application/json') assert im04.status_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WqdW(YKHO):\n pass", "def TG5u(YKHO):\n jpuF = 'Halperin Organix'\n YKHO.client.login(username='volunteer1@example.com', password='volunteer1')\n tXgX = {'name': jpuF, 'address': 'East Street 123', 'description': 'User unfriendly organization'}\n geh0 = YKHO.client.post('/o/organizations/creat...
[ "0.7468118", "0.72040915", "0.68997526", "0.6801878", "0.66922164", "0.6666735", "0.6612549", "0.6553523", "0.64157665", "0.638212", "0.63610095", "0.63485795", "0.6347061", "0.63309497", "0.6326555", "0.63264275", "0.6218557", "0.6189675", "0.6186855", "0.61829454", "0.61691...
0.0
-1
Assert that an org can be POSTed.
def OYrm(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(aJeM.bcol_linked_invalid_name()), headers=MOPg, content_type='application/json') assert ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WqdW(YKHO):\n pass", "def TG5u(YKHO):\n jpuF = 'Halperin Organix'\n YKHO.client.login(username='volunteer1@example.com', password='volunteer1')\n tXgX = {'name': jpuF, 'address': 'East Street 123', 'description': 'User unfriendly organization'}\n geh0 = YKHO.client.post('/o/organizations/creat...
[ "0.74692005", "0.72058445", "0.69015616", "0.68038386", "0.66945475", "0.66682816", "0.66122156", "0.65544033", "0.641345", "0.63852644", "0.6362984", "0.63468945", "0.6343663", "0.63303804", "0.63280535", "0.63265693", "0.6221642", "0.61864877", "0.61859417", "0.61819005", "...
0.0
-1
Batch Norm for controlling batch statistics
def idFg(WKvO, ROpF, Y9ns, WMj5=0.999, _hZ2=0.001): UqYS = ZylS.get_variable(name='beta', shape=ROpF, initializer=ZylS.constant_initializer(0.0), trainable=True) KMvS = ZylS.get_variable(name='gamma', shape=ROpF, initializer=ZylS.random_normal_initializer(1.0, 0.02), trainable=True) CQWL = ZylS.get_variable...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lS53():\n return _w_u(op_name='BatchNorm', transforms={'epsilon': 'eps'}, extras={'cudnn_off': 1}, ignores=['spatial', 'is_test', 'consumed_inputs'])", "def idFg(input, UqYS, KMvS, _hZ2=1e-05, max=1000):\n with ZylS.device('/cpu:0'):\n JBMS, SRYB = ZylS.nn.moments(ANqO, [0])\n return ZylS.nn....
[ "0.7643829", "0.7253861", "0.724318", "0.70858526", "0.70858526", "0.7055636", "0.7020141", "0.69775546", "0.6976191", "0.6958926", "0.6958778", "0.69483376", "0.69383913", "0.68552345", "0.6849775", "0.6830253", "0.6820766", "0.6819889", "0.6816257", "0.6809876", "0.6805107"...
0.67234886
25
Creates a box plot of daily, weekly, and monthly return distributions.
def meqz(CuxP, ulhv, w57D, aNZO=None, **B2fa): if aNZO is None: aNZO = QrM1.gca() uuEx.boxplot(data=[CuxP, ulhv, w57D], ax=aNZO, **B2fa) aNZO.set_xticklabels(['daily', 'weekly', 'monthly']) aNZO.set_title('Return quantiles') return aNZO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qNQk():\n Ap9B = jQ3Z.copy()\n Ap9B.reset_index(inplace=True)\n Ap9B['Year'] = [Csk6.year for Csk6 in Ap9B.date]\n Ap9B['Month'] = [Csk6.strftime('%b') for Csk6 in Ap9B.date]\n LZpg, MPlV = QrM1.subplots(figsize=(12, 5), ncols=2, sharex=False)\n uuEx.despine(left=True)\n _5zl = uuEx.boxplo...
[ "0.7235602", "0.6756534", "0.6668263", "0.6608757", "0.6531065", "0.6482206", "0.64162105", "0.6391116", "0.6323654", "0.63042915", "0.62894624", "0.62877196", "0.61872494", "0.6183981", "0.61825925", "0.6140585", "0.60705715", "0.60192186", "0.6018684", "0.59968567", "0.5994...
0.6807124
1
Apply a function to every element in a nested structure. If multiple structures are provided as input, their structure must match and the function will be applied to corresponding groups of elements. The nested structure can consist of any combination of lists, tuples, and dicts.
def iQEz(m2Zb, *_tpO, **B2fa): PWgb = B2fa.pop('flatten', False) assert not B2fa, 'map() got unexpected keyword arguments.' def m5hN(m2Zb, *_tpO): if len(_tpO) == 0: return _tpO if all((isinstance(KCHu, (tuple, list)) for KCHu in _tpO)): if len(set((len(WKvO) for WKv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ycAS(I1iR, FYKK):\n if isinstance(I1iR, dict):\n return {H5ew: ycAS(I1iR[H5ew], FYKK) for H5ew in I1iR}\n elif isinstance(I1iR, list):\n return [ycAS(WKvO, FYKK) for WKvO in I1iR]\n else:\n return FYKK(I1iR)", "def qMvn(JfyU, *g8x2):\n i9xT = [PWgb(KCHu) for KCHu in g8x2]\n ...
[ "0.6649062", "0.6504498", "0.63492155", "0.6280367", "0.6221308", "0.6180833", "0.6124836", "0.61034346", "0.60258824", "0.5889633", "0.58845544", "0.58297926", "0.58048964", "0.5799182", "0.5785682", "0.5759107", "0.57566905", "0.5733812", "0.57286566", "0.56934184", "0.5686...
0.65702486
1
Helper to calculate reward.
def vYlW(YKHO, mbkY): HpuU = mbkY[-1][0]['charging sources available'] Rivs = 0 for XP5J in range(int(YKHO._dt / YKHO._internal_timing)): Rivs |= mbkY[-1 - XP5J][0]['bumps and wheel drops'] CQwJ = 0 for XP5J in range(int(YKHO._dt / YKHO._internal_timing)): CQwJ += mbkY[-1 - XP5J][0][...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _KvT(YKHO, pR3T, _ins):\n return vOGg", "def YncY(YKHO):\n raise NotImplementedError", "def wOT8(YKHO) -> float:\n raise NotImplementedError", "def xMMl(YKHO, Lk7s):\n pass", "def vOGg(YKHO):\n pass", "def vOGg(YKHO):\n if YKHO.score_type == z34d.PROGRESS:\n return YKHO.progr...
[ "0.8523307", "0.8442085", "0.83746165", "0.8331103", "0.82614964", "0.8182391", "0.8177297", "0.80212736", "0.8010237", "0.7987884", "0.79789275", "0.79789275", "0.7898723", "0.7886776", "0.7870145", "0.7867305", "0.7864044", "0.7858299", "0.7858299", "0.78556323", "0.7852660...
0.0
-1
Adds a sample if a sample with the same id isn't in the database
def ZKvw(YKHO, mvm2: 'Sample') -> bool: if mvm2 in YKHO.samples: print('Skip sample {}'.format(mvm2.id)) return False YKHO.samples[mvm2.id] = mvm2 return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZKvw(id):\n T4Wy = L9Jq.query.get_or_404(id)\n if T4Wy.samples.count() != 0:\n Dwep('Sample already exitst for this order', 'info')\n return vKnz(nKyW('lab.sample', id=T4Wy.samples[0].id))\n L03z = ZFVz()\n if L03z.validate_on_submit():\n mvm2 = NlXC(wbc=L03z.wbc.data, rbc=L03z...
[ "0.6557744", "0.6519806", "0.6487953", "0.6454534", "0.6383598", "0.6360647", "0.632903", "0.6204027", "0.6143215", "0.6141878", "0.60685146", "0.60565317", "0.602253", "0.5953933", "0.5929453", "0.58916587", "0.58890635", "0.58597445", "0.584061", "0.583612", "0.5819029", ...
0.76684517
0
return a list of paths to BuildFiles which were referenced by targets in this BuildFile
def fy_z(YKHO): yvT9 = [] for pan_ in YKHO.targets: f9mM = pan_.required_targets if None != f9mM: for qv1X in f9mM: FbQy = qv1X.find(aVW1) if -1 != FbQy: qv1X = qv1X[0:FbQy] if qv1X.startswith(ckRy.ROOT_QUALIFIER): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RMqi(YKHO):\n return [eHNT for eHNT in YKHO.files if eHNT.target]", "def RRlC(YKHO):\n lvR3 = ZbWC.compile('\"(?P<Path>\\\\S+\\\\/\\\\S+\\\\.[a-zA-Z]+)\"')\n TgwQ = lvR3.search\n hHld = (TgwQ(zFiD) for zFiD in nUeQ(YKHO.path, 'rb'))\n z3LN = [kUBT.group('Path') for kUBT in hHld if kUBT]\n r...
[ "0.71979296", "0.7147171", "0.7122624", "0.7062077", "0.7003335", "0.67634934", "0.673821", "0.67208475", "0.6667402", "0.66667825", "0.6653333", "0.66483045", "0.66094583", "0.6573212", "0.65413547", "0.6526588", "0.6514006", "0.6514006", "0.6514006", "0.6514006", "0.649037"...
0.71933085
1
Randomly sample a batch of experiences from memory.
def uj9m(YKHO, Ep8u): def Pumo(*nwEM): MKlR = YKHO._options.history_length vOGg = 0 _ins = False for KCHu in reversed(range(MKlR, MKlR + YKHO._options.nstep_reward)): vOGg = (1 - nwEM[KCHu].done) * YKHO._options.discount_factor * vOGg + nwEM[KCHu].reward _ins...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mvm2(YKHO, Ep8u=64):\n return tuKI.sample(YKHO.memory, Ep8u)", "def cQJh(YKHO):\n Wc9F = []\n for YRbF in Ni9Y(YKHO.minibatch_size):\n Wc9F.append(YKHO.experiences[qukk(0, len(YKHO.experiences))])\n return oyIN.asarray(Wc9F)", "def mvm2(YKHO):\n wfZK = tuKI.sample(YKHO.memory, k=YKHO....
[ "0.79836553", "0.79042304", "0.786877", "0.7706116", "0.75250506", "0.750668", "0.7481939", "0.7433087", "0.7433068", "0.7428771", "0.74271345", "0.741556", "0.740457", "0.740457", "0.740457", "0.73936313", "0.7389979", "0.7389979", "0.7389979", "0.7379796", "0.7377745", "0...
0.0
-1
Sets the comment of this HumanTranslateJobsDto.
def aM_I(YKHO, aM_I): YKHO._comment = aM_I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aM_I(YKHO, aM_I):\n YKHO._comment = aM_I", "def TDCb(YKHO, aM_I):\n YKHO.options['comment'] = aM_I", "def aM_I(YKHO, aM_I):\n if aM_I is not None and len(aM_I) > 128:\n raise ValueError('Invalid value for `comment`, length must be less than or equal to `128`')\n YKHO._comment = aM_I", ...
[ "0.6376734", "0.63027555", "0.6252281", "0.61930287", "0.61441433", "0.61441433", "0.60374355", "0.60271996", "0.5808693", "0.57728064", "0.57432956", "0.57138944", "0.5710705", "0.5621568", "0.5609871", "0.55851036", "0.5544101", "0.5473631", "0.5467285", "0.5467285", "0.546...
0.63795817
0
Sets the glossary_id of this HumanTranslateJobsDto.
def OaAP(YKHO, OaAP): YKHO._glossary_id = OaAP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjee(YKHO, rjee):\n YKHO._job_id = rjee", "def rjee(YKHO, rjee):\n YKHO._job_id = rjee", "def rjee(YKHO, rjee):\n YKHO._job_id = rjee", "def dpac(YKHO, C2h7):\n RRlC = {'glossary': open(C2h7, 'rb')}\n return YKHO._request('/glossary', 'post', files=RRlC)", "def rjee(YKHO, rjee=None):\n ...
[ "0.5211483", "0.51856625", "0.51856625", "0.5160019", "0.51233065", "0.5078709", "0.50606567", "0.4966488", "0.4966488", "0.4966488", "0.48894048", "0.48046795", "0.47907975", "0.47773895", "0.47538698", "0.47484273", "0.4678964", "0.46710247", "0.46647385", "0.4649673", "0.4...
0.7429021
0
Sets the use_preferred_translators of this HumanTranslateJobsDto.
def lLrQ(YKHO, lLrQ): YKHO._use_preferred_translators = lLrQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rJsJ(YKHO, rJsJ: bool):\n YKHO._preferred = rJsJ", "def rJsJ(YKHO, rJsJ):\n YKHO._preferred = rJsJ", "def Ny1v(YKHO, Ny1v):\n YKHO._preferred_certificates = Ny1v", "def MLiY(YKHO, MLiY):\n YKHO._preferred_language = MLiY", "def _q0O(YKHO, _q0O):\n YKHO._use_machine_translation = _q0O", ...
[ "0.57668185", "0.5475098", "0.5278097", "0.52114433", "0.52075183", "0.5205956", "0.51764303", "0.5112791", "0.5000296", "0.48559296", "0.47286847", "0.4706901", "0.4682589", "0.4641883", "0.4596191", "0.4508775", "0.43922427", "0.4390158", "0.4343866", "0.42926097", "0.42875...
0.83413285
0
Sets the callback_url of this HumanTranslateJobsDto.
def RJDY(YKHO, RJDY): YKHO._callback_url = RJDY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RJDY(YKHO, RJDY):\n if RJDY is None:\n raise ValueError('Invalid value for `callback_url`, must not be `None`')\n if RJDY is not None and len(RJDY) > 2100:\n raise ValueError('Invalid value for `callback_url`, length must be less than or equal to `2100`')\n if RJDY is not None and len(RJ...
[ "0.6703006", "0.59901994", "0.58419967", "0.56928617", "0.56928617", "0.55631447", "0.5524843", "0.5504431", "0.54746497", "0.5465318", "0.5384709", "0.533291", "0.51888967", "0.5134046", "0.51179796", "0.50890034", "0.50721645", "0.50396866", "0.49900788", "0.49557543", "0.4...
0.6972675
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.8043786
98
Get string according to byte encoding. Does not validate string.
def Qh68(UL3h, yKcO=0): u54L = FR7V(UL3h[yKcO]) vIwR = Rekt(UL3h[yKcO + 1:yKcO + 1 + u54L]) return (vIwR, yKcO + 1 + u54L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qg0P(KCHu):\n return KCHu.encode('US-ASCII')", "def NFDB(KCHu):\n if isinstance(KCHu, bytes):\n return KCHu.decode('utf-8', 'surrogatepass')\n return KCHu", "def xrD7(Fg_i: bytes, /, tZ2K: str | None=None, UAju: str='strict') -> str:\n if tZ2K is not None:\n return Fg_i.decode(tZ2...
[ "0.7614118", "0.7287272", "0.72359353", "0.7159518", "0.7125834", "0.7111202", "0.7061779", "0.7055364", "0.70461255", "0.7043633", "0.70266044", "0.7023369", "0.7013155", "0.7010102", "0.7000939", "0.6961263", "0.6925527", "0.6925527", "0.69081825", "0.686925", "0.6862667", ...
0.0
-1
(tuple) Returns the size of this matrix.
def zNig(YKHO): return YKHO._dim
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n return len(YKHO.matrix)", "def zNig(YKHO) -> 'unsigned int':\n return hBPC.vnl_matrixD_size(YKHO)", "def zNig(YKHO) -> 'unsigned int':\n return hBPC.vnl_matrixUS_size(YKHO)", "def zNig(YKHO) -> 'unsigned int':\n return hBPC.vnl_matrixSS_size(YKHO)", "def zNig(YKHO) -> 'unsigne...
[ "0.86728966", "0.8402653", "0.83564246", "0.82728386", "0.8263962", "0.8226272", "0.8223271", "0.81535137", "0.814599", "0.8125754", "0.8124489", "0.809735", "0.8097038", "0.8095276", "0.8094565", "0.80677414", "0.80677414", "0.8037888", "0.80206716", "0.80200785", "0.8008685...
0.78758705
29
Read input file and split into individual lines returned as a list.
def b86o(): return GkAb(xAKo).with_name('input.txt').read_text().splitlines()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b86o(eZ_W):\n with open(eZ_W) as eHNT:\n IqQl = [zFiD.rstrip() for zFiD in eHNT]\n return IqQl", "def j_e6():\n with open(wFs9, 'r') as nUeQ:\n Nqlg = nUeQ.read().splitlines()\n return Nqlg", "def Pz7G(eZ_W):\n with open(eZ_W) as eHNT:\n aqea = eHNT.read().rsplit('\\n')\...
[ "0.7947507", "0.79020983", "0.78733367", "0.7838062", "0.7791174", "0.7761611", "0.7751028", "0.7749415", "0.76055634", "0.75898594", "0.7582542", "0.75731397", "0.7510794", "0.74570894", "0.7453936", "0.74369293", "0.7414001", "0.74081945", "0.7370691", "0.73491174", "0.7334...
0.0
-1
Run the bot using the configured token. This method blocks until the bot is terminated. Returns int
def iXC1(YKHO): super().run(YKHO.config.token) return YKHO._exit_code
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def run():\n GPtr = nQmO()\n JyK9 = z1pK(config=GPtr, description=GPtr['description'])\n try:\n await JyK9.start(GPtr['token'])\n except KeyboardInterrupt:\n exit()", "async def run():\n GPtr = nQmO()\n JyK9 = z1pK(config=GPtr, description=GPtr['description'])\n try:\n ...
[ "0.7752578", "0.7131088", "0.71263933", "0.71242833", "0.7049044", "0.7020103", "0.6850706", "0.68022734", "0.67314285", "0.65079284", "0.64798754", "0.63936", "0.63435346", "0.6313568", "0.6196403", "0.6162918", "0.61197716", "0.6068718", "0.6015138", "0.5991998", "0.5991004...
0.65421796
9
Initialize a new CLIClient object.
def FIMM(YKHO, b_Le, NtEF='', jTXt='', xQy_='', j8eK=''): super(DiMT, YKHO).__init__() YKHO.username = NtEF YKHO.tenant_name = xQy_ YKHO.password = jTXt YKHO.uri = j8eK YKHO.osc = b_Le
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.cl = x0hE()", "def FIMM(YKHO, x0hE):\n YKHO.client = x0hE\n YKHO.initialize()", "def FIMM(YKHO, **B2fa):\n YKHO.client = i9zE(**B2fa)", "def FIMM(YKHO, x0hE):\n YKHO.client = x0hE", "def FIMM(YKHO, x0hE):\n YKHO.client = x0hE", "def FIMM(YKHO, x0hE):\n YKHO.cli...
[ "0.7438947", "0.7308879", "0.6992728", "0.69445294", "0.69445294", "0.69445294", "0.69445294", "0.69445294", "0.69445294", "0.69445294", "0.69445294", "0.69445294", "0.69445294", "0.69431615", "0.6919514", "0.6919514", "0.6919514", "0.6899682", "0.68986094", "0.68986094", "0....
0.70209783
2
Setup a Sersic mass and light profiles.
def FIMM(YKHO, A4Ls: typing.Tuple[float, float]=(0.0, 0.0), K8r2: typing.Tuple[float, float]=(0.0, 0.0), _hYw: float=0.1, yjJM: float=0.6, WlLl: float=0.6, ZwBe: float=1.0, fapa: float=0.0): hl9z.EllSersic.__init__(YKHO, centre=A4Ls, elliptical_comps=K8r2, intensity=_hYw, effective_radius=yjJM, sersic_index=WlLl) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ch79(YKHO):\n t_ZQ = YKHO._get_list_materials(source=YKHO.source, onlybinaries=YKHO.onlybinaries, start_material=YKHO.start_material, stop_material=YKHO.stop_material)\n YKHO.All_Details = {}\n YKHO.present_env = {}\n for vb7U in t_ZQ:\n Pitx = YKHO._get_lse_from_folder(vb7U, source=YKHO.sou...
[ "0.5805839", "0.56628644", "0.5541949", "0.55262035", "0.55229616", "0.5495087", "0.54831773", "0.544805", "0.5447829", "0.54347014", "0.5426686", "0.5414466", "0.5411809", "0.53984517", "0.53893524", "0.5375603", "0.53575736", "0.53551346", "0.53551346", "0.535104", "0.53493...
0.0
-1
Setup a Sersic mass and light profiles.
def FIMM(YKHO, A4Ls: typing.Tuple[float, float]=(0.0, 0.0), _hYw: float=0.1, yjJM: float=0.6, WlLl: float=0.6, ZwBe: float=1.0, fapa: float=0.0): WsKM.__init__(YKHO, centre=A4Ls, elliptical_comps=(0.0, 0.0), intensity=_hYw, effective_radius=yjJM, sersic_index=WlLl, mass_to_light_ratio=ZwBe, mass_to_light_gradient=f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ch79(YKHO):\n t_ZQ = YKHO._get_list_materials(source=YKHO.source, onlybinaries=YKHO.onlybinaries, start_material=YKHO.start_material, stop_material=YKHO.stop_material)\n YKHO.All_Details = {}\n YKHO.present_env = {}\n for vb7U in t_ZQ:\n Pitx = YKHO._get_lse_from_folder(vb7U, source=YKHO.sou...
[ "0.5805421", "0.5662977", "0.5540817", "0.552469", "0.55221015", "0.54947454", "0.5481902", "0.54479134", "0.54465127", "0.54338074", "0.5423887", "0.54144037", "0.5411035", "0.5399742", "0.5389012", "0.53741676", "0.53563935", "0.5354778", "0.5354778", "0.5351033", "0.535015...
0.0
-1
Returns all the nodes within the graph.
def Q1qA(): try: geh0 = qmh8(NCls) return geh0 except Exception as err: geh0 = P4t4.response_class(response=qQXR.dumps(str(XObx)), status=404) return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ziit(YKHO):\n return (exwG for exwG in YKHO.graph)", "def qmh8(YKHO):\n return YKHO.nodes", "def qmh8(YKHO, pNZh: DirectedGraph):\n return pNZh.get_all_nodes()", "def Ziit(YKHO):\n return YKHO.graph.nodes()", "def Ziit(YKHO):\n return YKHO.graph.nodes", "def Ziit(YKHO):\n return YKH...
[ "0.87195307", "0.8594855", "0.85537875", "0.841906", "0.8362248", "0.83499044", "0.833491", "0.8285059", "0.8285059", "0.8217428", "0.8160684", "0.814667", "0.8137241", "0.80929506", "0.80185133", "0.80185133", "0.79901874", "0.798877", "0.79756653", "0.795734", "0.7948029", ...
0.0
-1
Returns all the descendants of the specified node.
def CdB0(Lnes): try: IatV = cmJd.SingleNodeSchema().load(QePW.view_args) geh0 = H3ZY(NCls, IatV['node_id']) return geh0 except Exception as err: geh0 = P4t4.response_class(response=qQXR.dumps(str(XObx)), status=404) return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B5QF(YKHO, Q6kx):\n if isinstance(Q6kx, str):\n Q6kx = YKHO.entries[Q6kx]\n B5QF = []\n for aUGN in Q6kx.children:\n B5QF.append(aUGN)\n B5QF.extend(YKHO.descendants(aUGN))\n return B5QF", "def B5QF(Q6kx):\n eEku = [Q6kx]\n if Q6kx.children is not None:\n for aUG...
[ "0.8141014", "0.78794277", "0.74563986", "0.70999634", "0.7070141", "0.7069281", "0.67715305", "0.66501415", "0.66501415", "0.66356546", "0.65777975", "0.6513176", "0.6493886", "0.6488928", "0.64714617", "0.64193046", "0.634255", "0.6335513", "0.62524354", "0.6245012", "0.624...
0.6565396
11
Return the i, j cell index closest to `pos` in local coordinates.
def hOeX(YKHO, oeNL): if YKHO.image is None: return (-1, -1) else: MKlR, yzQ0 = YKHO.image.shape YRbF, r845 = XTiz.floor([oeNL.y(), oeNL.x()]) YRbF = XTiz.clip(YRbF, 0, MKlR - 1) r845 = XTiz.clip(r845, 0, yzQ0 - 1) return (int(YRbF), int(r845))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bRYx(oeNL: np.ndarray, Tegh: np.ndarray):\n TaUL = oyIN.linalg.norm(Tegh - oeNL, axis=1)\n return oyIN.argmin(TaUL)", "def c0WK(YKHO, oeNL):\n YRbF = max(0, min(YKHO.lattice.shape[0] - 1, int(round((oeNL[1] - YKHO.lattice[0, 0, 1]) / YKHO.grid_size))))\n r845 = max(0, min(YKHO.lattice.shape[1] - ...
[ "0.71729136", "0.7085746", "0.69889617", "0.68467385", "0.6801198", "0.67762804", "0.6678424", "0.66636336", "0.6558233", "0.6484956", "0.6457069", "0.64276546", "0.63960475", "0.6341467", "0.63197595", "0.62845075", "0.62406325", "0.61855984", "0.61637545", "0.6159684", "0.6...
0.677959
5
Open the browser at the youtube trailer url.
def PuTj(YKHO): HywK.open(YKHO.trailer_url)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jCGw(YKHO):\n HywK.open(YKHO.trailer_youtube_url)", "def PuTj(YKHO):\n HywK.open(YKHO.trailer_youtube_url)", "def honL(YKHO):\n HywK.open(YKHO.trailer_youtube_url)", "def jCGw(YKHO):\n HywK.open(YKHO.trailer_youtube_url)", "def jCGw(YKHO):\n HywK.open(YKHO.trailer_youtube_url)", "def P...
[ "0.8531768", "0.85015213", "0.84976906", "0.84871614", "0.84871614", "0.8400227", "0.8400227", "0.8400227", "0.8400227", "0.8400227", "0.8400227", "0.8400227", "0.8400227", "0.8400227", "0.8400227", "0.8400227", "0.8400227", "0.8371535", "0.8321824", "0.8321824", "0.8321824",...
0.74028635
51