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
Check if x contains var. This prevents binding a variable to an expression that contains the variable in an infinite loop. >>> occur_check('?x', '?x') True >>> occur_check('?x', '?y') False >>> occur_check('?x', ('relation', '?x')) True >>> occur_check('?x', ('relation', ('relation2', '?x'))) True >>> occur_check('?x',...
def eGuG(SRYB, WKvO): if SRYB == WKvO: return True if isinstance(WKvO, (list, tuple)): for tTpl in WKvO: if eGuG(SRYB, tTpl): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eGuG(SRYB, WKvO, KCHu):\n if SRYB == WKvO:\n return True\n elif IKfL(WKvO) and WKvO in KCHu:\n return eGuG(SRYB, KCHu[WKvO], KCHu)\n elif isinstance(WKvO, EWKA):\n return eGuG(SRYB, WKvO.op, KCHu) or eGuG(SRYB, WKvO.args, KCHu)\n elif isinstance(WKvO, (list, tuple)):\n r...
[ "0.7967469", "0.6942879", "0.6602854", "0.62514776", "0.6096988", "0.6037859", "0.59713364", "0.58912504", "0.5847777", "0.57969457", "0.57969457", "0.5779715", "0.57708395", "0.5717581", "0.5705825", "0.57046455", "0.5656402", "0.56027967", "0.55972916", "0.5592867", "0.5592...
0.7560415
1
"hello world" "dlrow olleh" l r 1. reverse the whole string 2. if l == ' ', move l and r 3. if r != ' ' r++ 4. find a valid word, reverse it, add to the result 5. move l = r 6. add the last word if l < r and l != ' '
def Thwe(YKHO, KCHu: str) -> str: KCHu = YKHO.reverse_string(KCHu) vC9B = 0 Mkmy = 0 Ylbp = '' while Mkmy < len(KCHu): if KCHu[vC9B] == ' ': vC9B += 1 Mkmy += 1 elif KCHu[Mkmy] != ' ': Mkmy += 1 else: ycBG = YKHO.reverse_string(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uRmS(vIwR):\n Beie = [GIN8 for GIN8 in vIwR.split(' ') if GIN8 != '']\n return ' '.join(Beie[::-1])", "def jjqZ(vIwR):\n SIyd = list(vIwR)\n _BO4(SIyd)\n cntZ = XVAW = 0\n while cntZ < len(SIyd) and XVAW < len(SIyd):\n if SIyd[XVAW] != ' ':\n XVAW += 1\n continu...
[ "0.7118213", "0.69704485", "0.6874633", "0.68528885", "0.68185", "0.68007326", "0.6795916", "0.6765165", "0.67525315", "0.67334753", "0.67258924", "0.66796315", "0.6673528", "0.6614656", "0.66106236", "0.6602578", "0.6565691", "0.6558681", "0.65185523", "0.649915", "0.644835"...
0.6954962
2
Decorator to add an argument to a command of the application. Will automatically register a command with the function name if none exists yet and use the function __doc__ value as the command description.
def wAVY(YKHO, mWFP, JBZA=None, jeGQ=False, Lm1b=False, WmM4=None): def AuU4(JfyU): RKN_ = JfyU.__name__ if YKHO.has(RKN_): oUZx = YKHO.get(RKN_) else: oUZx = YKHO.register(RKN_) oUZx.set_description(JfyU.__doc__) oUZx.add_argument_from_dict({'nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUZx(*qIxc, **B2fa):\n\n def mrMx(eHNT):\n if 'description' not in B2fa:\n B2fa['description'] = eHNT.__doc__\n eHNT.parser = j1Jz.ArgumentParser(*qIxc, **B2fa)\n eHNT.climax = True\n for d7pR in getattr(eHNT, '_arguments', []):\n eHNT.parser.add_argument(*d...
[ "0.7609403", "0.7175131", "0.7175131", "0.71745694", "0.71345204", "0.6994179", "0.6955011", "0.69460464", "0.693835", "0.69289577", "0.69018185", "0.6868935", "0.68573546", "0.6855144", "0.6804777", "0.6771423", "0.6726301", "0.67078215", "0.6682993", "0.66675246", "0.664786...
0.746107
1
Returns whether a request wants a json response or html response
def CaIp() -> bool: return QePW.accept_mimetypes['application/json'] >= QePW.accept_mimetypes['text/html']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qtMY(QePW):\n return QePW.method == 'GET' and QePW.headers.get('Accept') == 'application/json'", "def rheg():\n if not QePW.accept_mimetypes.accept_json:\n return False\n if not QePW.accept_mimetypes.accept_html:\n return True\n P6Dd = QePW.accept_mimetypes.best_match(('text/html', ...
[ "0.7978924", "0.77879053", "0.76408565", "0.75995106", "0.7572143", "0.7506556", "0.7476634", "0.7242158", "0.7160453", "0.7123839", "0.71047014", "0.7081507", "0.7030753", "0.70210344", "0.6994325", "0.6951853", "0.6938385", "0.6916375", "0.6907476", "0.68698186", "0.6863946...
0.8527235
0
Error handler for 500 internal server errors
def C89g(P1dF: str) -> oGir: if CaIp(): return isYT(500) return (TvZl('errors/500.html'), 500)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F51w(QePW, geh0, AJ5d):\n HpJk(QePW, geh0, AJ5d, 500)", "def r1yd(tTpl):\n return (TvZl('500.html'), 500)", "def r1yd(tTpl):\n return (TvZl('500.html'), 500)", "def P1dF(P1dF, QePW):\n QePW.response.status_int = 500\n return {'status': '500 Internal Server Error', 'message': None}", "def...
[ "0.86737233", "0.82758427", "0.8231677", "0.81884235", "0.81816137", "0.81800234", "0.8173667", "0.81589144", "0.8157075", "0.8144388", "0.81190586", "0.80913234", "0.8086798", "0.8084984", "0.8084984", "0.8069112", "0.8046999", "0.80075276", "0.79853445", "0.7968586", "0.796...
0.7441939
83
Get the x and y position and orientation of this agent in the 2D plane
def fop7(YKHO, WKvO: torch.Tensor) -> ht2j.Tensor: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fBW9(YKHO):\n return (YKHO.x, YKHO.y, YKHO.angle)", "def fBW9(YKHO):\n TIQN()\n DuhE()\n hBUG(YKHO.vehicle.x, YKHO.vehicle.y)\n N0Pp(YKHO.vehicle.angle)\n hBUG(YKHO.x, YKHO.y)\n N0Pp(YKHO.angle)\n WKvO, LVAh = (m7d6(0, 0, 0), hC5T(0, 0, 0))\n s29G()\n return (WKvO, LVAh, YKHO.ve...
[ "0.71485215", "0.68892866", "0.6868893", "0.6868893", "0.6863134", "0.67844254", "0.67457056", "0.6743026", "0.66942275", "0.6645977", "0.6638847", "0.6618884", "0.661657", "0.660174", "0.6547507", "0.6546188", "0.6510605", "0.64860266", "0.6470942", "0.646512", "0.6455758", ...
0.0
-1
Xpath will return none if the element is not found.
def V8u2(YKHO): def q0C1(): return None YKHO.assertIsNone(OMWt(q0C1)())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aj5U(YKHO, geyT, XwK7, nfqd=True):\n try:\n return geyT.find_element_by_xpath(YKHO.xpaths[XwK7])\n except (Oe3Q, _1LP, FxK5, WxwH) as e:\n if nfqd:\n bo34.warning(f'XPATH: {XwK7} ')\n return None", "def XtiN(E_qD, laNn):\n U6D_ = None\n try:\n U6D_ = E_qD.fi...
[ "0.7411612", "0.7102616", "0.70878875", "0.70658773", "0.68788016", "0.68322915", "0.6813316", "0.6726522", "0.6715626", "0.6715626", "0.66907805", "0.6690342", "0.6680412", "0.66655165", "0.664557", "0.66029865", "0.6572095", "0.65470773", "0.65182686", "0.6510844", "0.64877...
0.0
-1
Xpath will return none if the element is not found.
def SnyV(YKHO): def q0C1(): return None YKHO.assertFalse(lIW9(q0C1)())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aj5U(YKHO, geyT, XwK7, nfqd=True):\n try:\n return geyT.find_element_by_xpath(YKHO.xpaths[XwK7])\n except (Oe3Q, _1LP, FxK5, WxwH) as e:\n if nfqd:\n bo34.warning(f'XPATH: {XwK7} ')\n return None", "def XtiN(E_qD, laNn):\n U6D_ = None\n try:\n U6D_ = E_qD.fi...
[ "0.7411125", "0.71015215", "0.7089818", "0.70655847", "0.6878481", "0.68325126", "0.6812459", "0.6728187", "0.67157257", "0.67157257", "0.6692184", "0.66917014", "0.66819173", "0.6666781", "0.6645371", "0.66029465", "0.65699595", "0.6546483", "0.6519256", "0.6512438", "0.6487...
0.0
-1
Xpath will return none if the element is not found.
def hhEX(YKHO): def q0C1(): return None YKHO.assertIsNone(feVn(q0C1)())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aj5U(YKHO, geyT, XwK7, nfqd=True):\n try:\n return geyT.find_element_by_xpath(YKHO.xpaths[XwK7])\n except (Oe3Q, _1LP, FxK5, WxwH) as e:\n if nfqd:\n bo34.warning(f'XPATH: {XwK7} ')\n return None", "def XtiN(E_qD, laNn):\n U6D_ = None\n try:\n U6D_ = E_qD.fi...
[ "0.7411125", "0.71015215", "0.7089818", "0.70655847", "0.6878481", "0.68325126", "0.6812459", "0.6728187", "0.67157257", "0.67157257", "0.6692184", "0.66917014", "0.66819173", "0.6666781", "0.6645371", "0.66029465", "0.65699595", "0.6546483", "0.6519256", "0.6512438", "0.6487...
0.0
-1
Retrieves details about a guild
def lSCo(YKHO, LRlk, Eb4t=None, DgAC=True): try: LRlk = int(LRlk) except: raise iwvd('invalid guild id') _aJM = kJLK(YKHO.requests_session, YKHO._guild_api_url, params={'id': LRlk, 'members': int(DgAC)}, timeout=YKHO._timeout, retries=YKHO._retries, retry_delay=YKHO._retry_delay) lSCo = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def guildinfo(YKHO, OaeV, *, lSCo: Union[int, str]=None):\n if lSCo is None:\n lSCo = OaeV.guild\n elif isinstance(lSCo, int):\n ycBG = YKHO.bot.get_guild(lSCo)\n if ycBG is not None:\n lSCo = ycBG\n elif isinstance(lSCo, str):\n ycBG = ZOrr.utils.get(YKHO.bot....
[ "0.7991637", "0.78006977", "0.7605512", "0.7511736", "0.7243651", "0.7227254", "0.7051405", "0.7051405", "0.69961", "0.6969354", "0.69491035", "0.69485116", "0.6934604", "0.68991864", "0.6839339", "0.6815381", "0.680895", "0.6775288", "0.67379886", "0.6729333", "0.6676185", ...
0.56837785
76
Get list of games by from a list of ids.
def GTCO(YKHO, gATz, L6MF=False, SFIC=False, thBh=False, ZhfN=False): if not gATz: raise pWCH('List of Game Ids must be specified') RKD7.debug('retrieving games {}'.format(gATz)) NArs = {'id': ','.join([str(A0tR) for A0tR in gATz]), 'versions': int(L6MF), 'videos': int(SFIC), 'historical': int(thBh)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HUgo(A07C):\n zAev = {Z0L6.id: Z0L6 for Z0L6 in rFtl()}\n dixj = []\n for hbFX in A07C:\n try:\n Z0L6 = zAev[hbFX]\n except KeyError:\n Z0L6 = None\n dixj.append(Z0L6)\n return dixj", "def HU4L(YKHO, rsqG: List[int]) -> x1iM[mVZ4]:\n Bwa6 = []\n fo...
[ "0.70188195", "0.6862194", "0.68565774", "0.6730368", "0.6653988", "0.65552884", "0.65451765", "0.65432125", "0.65142685", "0.63791937", "0.637858", "0.63527066", "0.6338469", "0.6329404", "0.6291746", "0.62299585", "0.622835", "0.62239563", "0.62084675", "0.61634785", "0.613...
0.6755534
3
Test creating user with valid payload is successful
def RDRA(YKHO): pB3N = {'email': 'prueba@pruebagmail.com', 'password': 'pruebapassword123', 'name': 'Terminatorrex'} Ylbp = YKHO.client.post(CKgv, pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED) CBIr = egNl().objects.get(**Ylbp.data) YKHO.assertTrue(CBIr.check_password(pB3N['password...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aLKA(YKHO):\n pB3N = {'email': 'k@gmail.com', 'password': 'testTSET1230', 'name': 'khaled osman'}\n lYUQ(**pB3N)\n Ylbp = YKHO.client.post(CKgv, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n print('T-----> success test_create_an_existing_user')", "def sviJ(YKHO):\n ...
[ "0.873841", "0.8673395", "0.86301476", "0.8606255", "0.8593417", "0.8581811", "0.8566527", "0.8510692", "0.85099566", "0.8505785", "0.8502713", "0.84628046", "0.84582794", "0.84549326", "0.8452974", "0.8437607", "0.8435688", "0.841937", "0.84121996", "0.840023", "0.8390651", ...
0.8547859
7
Test that token is not create if the credencial given are wrong
def WzbI(YKHO): lYUQ(email='ramon@gmail.com', password='1234password') pB3N = {'email': 'amila@amila.com', 'password': 'pas'} Ylbp = YKHO.client.post(pEkX, pB3N) YKHO.assertNotIn('token', Ylbp.data) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yj75(YKHO):\n lYUQ(email='test@francorueta.com', password='test1234')\n Tejp = {'email': 'test@francorueta.com', 'password': 'test123'}\n Ylbp = YKHO.client.post(pEkX, Tejp)\n YKHO.assertNotIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def yj75(YKHO)...
[ "0.7705056", "0.76514035", "0.7645201", "0.7643321", "0.76318264", "0.7630523", "0.7620511", "0.76128185", "0.7521581", "0.75211465", "0.75179595", "0.7504997", "0.7503119", "0.7494605", "0.74783957", "0.7466383", "0.7464916", "0.74472785", "0.7446884", "0.7439067", "0.743547...
0.7940318
0
TEst that token is not created with user unregistered
def lyL2(YKHO): pB3N = {'email': 'amilcar@gmail.com', 'password': 'pass123'} Ylbp = YKHO.client.post(pEkX, pB3N) YKHO.assertNotIn('token', Ylbp.data) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zlUv(YKHO):\n Ylbp = YKHO.client.post(pEkX, YKHO.payload)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertNotIn('token', Ylbp.data)", "def i_2a(YKHO):\n Ylbp = YKHO.client.post(BfDw.TOKEN_URL, BfDw.USER_PAYLOAD)\n YKHO.assertNotIn('token', Ylbp.data)\n YKHO.asse...
[ "0.74067914", "0.7361885", "0.73153865", "0.72128713", "0.7211065", "0.7211048", "0.713789", "0.71326447", "0.71054554", "0.710378", "0.7096097", "0.7090775", "0.7052173", "0.70193166", "0.70025384", "0.69963276", "0.6992072", "0.6957703", "0.6939902", "0.6932967", "0.6819554...
0.7109648
8
test that update the user profile
def fk7V(YKHO): pB3N = {'name': 'new name', 'password': 'new password'} Ylbp = YKHO.client.patch(XiK1, pB3N) YKHO.user.refresh_from_db() YKHO.assertEqual(YKHO.user.name, pB3N['name']) YKHO.assertTrue(YKHO.user.check_password(pB3N['password'])) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fk7V(YKHO):\n Ylbp = YKHO.client.patch(BfDw.ME_URL, BfDw.USER_PAYLOAD_UPDATE)\n YKHO.user.refresh_from_db()\n YKHO.assertEqual(YKHO.user.name, BfDw.USER_PAYLOAD_UPDATE['name'])\n YKHO.assertTrue(YKHO.user.check_password(BfDw.USER_PAYLOAD_UPDATE['password']))\n YKHO.assertEqual(Ylbp.status_code, ...
[ "0.86662704", "0.8541558", "0.8541558", "0.8541558", "0.8528072", "0.85089904", "0.85005504", "0.84894544", "0.84362453", "0.8432898", "0.8418675", "0.84091413", "0.83928776", "0.83799154", "0.83789545", "0.8247107", "0.8229953", "0.82083166", "0.81603295", "0.8153139", "0.81...
0.84367144
8
Elements of a chord with the exception of the last note of the chord might have wrong note values. They are set the value defined after the last note of the chord.
def M4FL(rm_v, fdNc): for d6pt, LihS in enumerate(rm_v): if type(LihS) == list: for F8DO, a0E5 in enumerate(LihS): M4FL(a0E5, fdNc[d6pt][F8DO]) elif fdNc[d6pt] == True: EmMj = False feJh = 1 while not EmMj: if fdNc[d6pt ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dGXy(LiLl, WE7e):\n raise NotImplementedError('_set_truly_broken needs to be implemented!')", "def hOTW(nPrm):\n for rpno in bWeC.iter_melodies(*nPrm, all=True):\n oeNL = max(rpno, key=lambda WKvO: WKvO.pos).pos\n Z9rn = xJtk.AbstractChord.findBestChord(rpno, nPrm[0].scaleAt(oeNL))\n ...
[ "0.60488397", "0.58671004", "0.55790293", "0.55004287", "0.54686505", "0.54317605", "0.53926617", "0.53842247", "0.53694355", "0.5320929", "0.53165513", "0.5286475", "0.52766705", "0.5272621", "0.5241201", "0.52346724", "0.5160317", "0.5149232", "0.5085384", "0.50661737", "0....
0.5192471
16
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry): yT1k = all(await V7ok.gather(*[ajET.config_entries.async_forward_entry_unload(bTKY, UksD) for UksD in aprE])) if yT1k: ajET.data[Sugg].pop(bTKY.entry_id) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)", "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()...
[ "0.70418245", "0.69975436", "0.69197667", "0.69024074", "0.6896897", "0.6870464", "0.6840728", "0.67911863", "0.67835754", "0.6782968", "0.6776581", "0.67688036", "0.6737991", "0.6730449", "0.6713354", "0.67085946", "0.6664857", "0.66411716", "0.6637687", "0.66157013", "0.660...
0.6459459
45
Load a pretrained agent with its weights.
def KHY_(pGQh, aiAP, nwiC=None, **B2fa): lqQH = Hy7s.path.join(pGQh, 'agent_config.json') YWSi = aRZW(lqQH, **B2fa) YWSi.load_weights(Hy7s.path.join(pGQh, 'model.ckpt'), env_cls=aiAP, env_params=nwiC) Eb4t("Agent's weights loaded.") return YWSi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XSwm(YKHO, L1Oy):\n YKHO.target_model.load_weights(L1Oy)\n YKHO.eval_model.load_weights(L1Oy)", "def uyMl(YKHO):\n for d6pt, YWSi in enumerate(YKHO.agents):\n YWSi.actor_local.load_state_dict(ht2j.load('agent{}_checkpoint_actor.pth'.format(d6pt + 1)))\n YWSi.critic_local.load_state_dic...
[ "0.73964465", "0.7259143", "0.70691717", "0.70124555", "0.6975481", "0.69309926", "0.6928789", "0.6894608", "0.6891415", "0.6862109", "0.6795964", "0.6782325", "0.66740847", "0.6667773", "0.6660398", "0.66439867", "0.6630663", "0.6583136", "0.6575675", "0.6565181", "0.65067",...
0.76859325
0
Calculate intersection over area between two sets of bounding boxes
def QOnT(ALAo, Ni1E): tcZ4, FyTZ = ALAo.unsqueeze(dim=1).split(2, -1) pf9j, fqjn = Ni1E.unsqueeze(dim=0).split(2, -1) o52R = ht2j.max(tcZ4, pf9j) hnwK = ht2j.min(FyTZ, fqjn) iQin = (hnwK - o52R).clamp(min=0).prod(dim=-1) VmSM = (FyTZ - tcZ4).prod(dim=-1) return iQin / VmSM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQin(knvf, IkxF):\n a4TF, muDC, tBwn, _AAi = knvf\n Xn4L, QTZF, mZ91, b8lW = IkxF\n LFlW = max(a4TF, Xn4L)\n _tIi = min(tBwn, mZ91)\n es2x = min(_AAi, b8lW)\n tlxW = max(muDC, QTZF)\n if LFlW < _tIi and tlxW < es2x:\n return f0tD((LFlW, tlxW, _tIi - LFlW, es2x - tlxW))\n else:\n ...
[ "0.79986733", "0.79431206", "0.7895677", "0.7874967", "0.7806179", "0.7768481", "0.7684578", "0.76769364", "0.75752217", "0.75617945", "0.75617945", "0.7553423", "0.75155795", "0.7507734", "0.74925274", "0.74842733", "0.74744385", "0.7465997", "0.7394416", "0.7374018", "0.737...
0.0
-1
Returns the absolute path to the root directory of the thermography project, i.e. the parent directory of the settings directory.
def vC4N() -> str: return sa6x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)", "def L59w():\n return Hy7s.path.dirname(Hy7s.path.dirname(xAKo))", "def phdL():\n Zef8 = __import__(gCuF.SETTINGS_MODULE, {}, {}, [''])\n return Hy7s.path.dirname(Hy7s.path.abspath(Zef8.__file__))", "def phdL():\n return Hy7s.path.dirname(Hy7s...
[ "0.8512758", "0.82944936", "0.8167346", "0.81586504", "0.8138227", "0.811938", "0.8096531", "0.80655426", "0.8051905", "0.8043995", "0.8040995", "0.7985983", "0.79763675", "0.7957159", "0.79515344", "0.7950206", "0.7950206", "0.7950206", "0.7950206", "0.79393387", "0.7922603"...
0.77953076
31
Get the Observation's physics client.
def x0hE(YKHO) -> TLfG.BulletClient: if not YKHO._client: raise ValueError('PyBullet client needs to be set') return YKHO._client
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gdyb(YKHO):\n gdyb = YKHO.world.physics.for_(YKHO.state)\n assert gdyb is not None\n return gdyb", "def bxbw(YKHO, ebbi):\n return YKHO.clients[ebbi]", "def FFDg(YKHO, QTBn):\n if isinstance(QTBn, ic8o):\n QTBn = QTBn.state\n return YKHO.physics.for_(QTBn)", "def hIc_(YKHO):\n ...
[ "0.6233003", "0.60332453", "0.59682167", "0.59546053", "0.5876484", "0.57826304", "0.57826304", "0.5722302", "0.5671932", "0.56610054", "0.56547886", "0.5632499", "0.5606991", "0.5588141", "0.5581685", "0.5581685", "0.5581685", "0.5581685", "0.5549143", "0.5525732", "0.549273...
0.5563634
18
Add an observation to be computed.
def Fv6e(YKHO, W061: Observation): W061.client = YKHO._client EqSZ = len(W061.labels) hc8y = len(W061.observation_space.low) CNOe = W061.compute().size if EqSZ != hc8y: raise ValueError('Labels have length {} != obs space len {}'.format(EqSZ, hc8y)) if EqSZ != CNOe: raise ValueEr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ovt1(YKHO, W061: str) -> None:\n i9Rn = sum(YKHO.alpha_matrix)\n if i9Rn > 0.0:\n for KCHu in range(YKHO.m.nb_states):\n YKHO.mat[KCHu, YKHO.last_act] += YKHO.alpha_matrix[KCHu] / i9Rn\n CCKW = VNqG(YKHO.nb_states)\n for KCHu in range(YKHO.nb_states):\n XP5J = q...
[ "0.6932294", "0.6816311", "0.6716768", "0.67037874", "0.66278005", "0.65733117", "0.6482355", "0.6475994", "0.63058", "0.62941927", "0.6270251", "0.6194277", "0.6176923", "0.6174599", "0.6160676", "0.6153254", "0.6152854", "0.61208206", "0.61167157", "0.6114957", "0.61037487"...
0.0
-1
Compute the torso IMU values for a state.
def GvK6(YKHO) -> sq96.obs: bGrB, KQwq = YKHO.client.getBasePositionAndOrientation(YKHO.robot) Xbxu = oyIN.array(YKHO.client.getEulerFromQuaternion(KQwq)) whTQ, V6Rs = YKHO.client.getBaseVelocity(YKHO.robot) whTQ = oyIN.array(whTQ) V6Rs = oyIN.array(V6Rs) if YKHO._degrees: Xbxu = oyIN.de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FsBQ(YKHO):\n return YKHO.getState('Imu')", "def H_4W(YKHO, QTBn):\n g2zq = YKHO._motor_parameter\n return 1.5 * g2zq['p'] * (g2zq['Psi_p'] + (g2zq['L_d'] - g2zq['L_q']) * QTBn[YKHO.I_D_IDX]) * QTBn[YKHO.I_Q_IDX]", "def vWea(YKHO, QTBn):\n KeL5 = YKHO.neural_network.model.predict(QTBn[None, :])...
[ "0.61947054", "0.58827317", "0.57789505", "0.5656909", "0.5599817", "0.55007976", "0.5483727", "0.54509383", "0.5441045", "0.54340285", "0.5394997", "0.5363985", "0.5359821", "0.5349816", "0.5303489", "0.52847415", "0.52763104", "0.5265812", "0.5257283", "0.5236397", "0.52360...
0.53941
11
A list of labels corresponding to the observation.
def Crrw(YKHO) -> x1iM[str]: return [YKHO.client.getJointInfo(YKHO.robot, HMCV)[1].decode('UTF-8') for HMCV in range(YKHO._num_joints)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Crrw():\n return list(uzmd)", "def Te1x(YKHO) -> list:\n return []", "def Crrw(YKHO) -> x1iM[str]:\n pass", "def Crrw(YKHO) -> x1iM[str]:\n return YKHO._labels", "def Te1x(YKHO):\n return []", "def Te1x(YKHO):\n return []", "def Te1x(YKHO):\n return YKHO.label_list", "def Crr...
[ "0.83598024", "0.8217122", "0.8210816", "0.8150778", "0.81205624", "0.81205624", "0.8078986", "0.8017751", "0.8017751", "0.7990449", "0.7939038", "0.79311633", "0.79146975", "0.79146975", "0.79146975", "0.79146975", "0.79146975", "0.7897549", "0.78792715", "0.7866488", "0.786...
0.7592615
50
Assert that an invitation can be POSTed.
def eHeT(x0hE, DvJO, cuiw, j6SQ, EErt, LmAn, RZVq): MOPg = uhrz(jwt=DvJO, claims=RZVq) im04 = x0hE.post('/api/v1/users', headers=MOPg, content_type='application/json') im04 = x0hE.post('/api/v1/orgs', data=qQXR.dumps(EErt), headers=MOPg, content_type='application/json') cmPJ = qQXR.loads(im04.data) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hDvB(YKHO):\n bsXF = YKHO.client.post('/users/', data=qQXR.dumps(dict(email='gill@gmail.com', username='gibilan', password='123456')), content_type='application/json')\n if bsXF.status_code == qed_.CONFLICT:\n HVZp = YKHO.client.post('/auth/login', data=qQXR.dumps(dict(email='gill@gmail.com', pass...
[ "0.69774735", "0.68630606", "0.66253877", "0.6530945", "0.65217537", "0.65066916", "0.642005", "0.6416861", "0.64075494", "0.63877183", "0.633814", "0.633203", "0.62958896", "0.6235707", "0.6208195", "0.6202643", "0.6196321", "0.6190439", "0.61866415", "0.6177714", "0.6151516...
0.6443708
6
Assert that POSTing an invalid invitation returns a 400.
def X09L(x0hE, DvJO, cuiw): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) im04 = x0hE.post('/api/v1/invitations', data=qQXR.dumps(eO5L(org_id=None)), 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 pJBL(YKHO):\n with YKHO.client:\n eOtH = YKHO.get_user_token()\n Ylbp = YKHO.client.put('v1/guests/1', headers=d...
[ "0.81969947", "0.81969947", "0.7363192", "0.7355549", "0.7184319", "0.7171741", "0.7133621", "0.71322244", "0.7127186", "0.7102424", "0.7102424", "0.7096373", "0.7092878", "0.70851314", "0.7016422", "0.69731843", "0.6968733", "0.6942966", "0.6939324", "0.691746", "0.6912666",...
0.75004196
2
Assert that an invitation can be updated.
def W5CI(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 Ip3v(YKHO, w3rp, C9U5):\n YKHO._perman.can('UPDATE', YKHO._requester, w3rp, 'IP address')\n if 'system' in C9U5 and C9U5['system'] != w3rp.system:\n YKHO._assert_system(w3rp, C9U5['system'])\n ygBj = Mwrg.query.filter_by(ip_address_id=w3rp.id).all()\n for KzMy in ygBj:\n K...
[ "0.6731022", "0.6646634", "0.6554319", "0.65194607", "0.65101", "0.6490685", "0.64427656", "0.6400159", "0.6376933", "0.6367153", "0.6364089", "0.6362659", "0.6270502", "0.6268564", "0.6252785", "0.62417954", "0.6214943", "0.62091845", "0.6189828", "0.61334664", "0.61309177",...
0.7237775
0
Assert that a token is valid.
def mE6f(x0hE, DvJO, cuiw, j6SQ): MOPg = uhrz(jwt=DvJO, claims=BGC4.public_user_role) 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) g9K...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pprK(YKHO, eOtH):\n pass", "def HL13(eOtH):\n assert eOtH.find(' ') == -1, 'Token %s is not valid' % eOtH", "def fNu_(YKHO):\n YKHO.assertEqual(YKHO.api.is_token_valid(YKHO.token), True)", "def GSK3():\n eO7W = '33\\tcintre\\tcintre\\tNOUN\\t_\\tGender=Masc|Number=Sing\\t'\n with trZe.rais...
[ "0.79163694", "0.7785398", "0.7501763", "0.73827004", "0.72594714", "0.7192523", "0.7173249", "0.71709096", "0.7146164", "0.7145561", "0.70848835", "0.70781744", "0.7038932", "0.6997513", "0.69675994", "0.68497187", "0.68223727", "0.68171537", "0.68118584", "0.6801225", "0.67...
0.0
-1
Test LOCAL_API_URL (custom with ipv6)
def qBpg(HLtX, k3Zu): trZe.skip('ipv6 not supported yet') sEAN = {'LOCAL_API_URL': 'http://[::1]:8080'} with HLtX(flavor=k3Zu, environment=sEAN) as gtI8: gtI8.wait_for_log(['*Starting processing data*', '*CrowdSec Local API listening on 0.0.0.0:8080*']) gtI8.wait_for_http(8080, '/health', wa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e05X(YKHO):\n Aofo = YKHO.config.web_api_ip_address()\n YKHO.assertEqual(Aofo, '127.0.0.12')", "def e05X(YKHO):\n Aofo = YKHO.config.web_api_ip_address()\n YKHO.assertEqual(Aofo, '127.0.0.12')", "def e05X(YKHO):\n Aofo = YKHO.config.web_api_ip_address()\n YKHO.assertEqual(Aofo, '127.0.0.1...
[ "0.68027353", "0.68027353", "0.68027353", "0.68027353", "0.68027353", "0.6541477", "0.6535182", "0.6535182", "0.6535182", "0.6535182", "0.6535182", "0.6501783", "0.64250416", "0.64250416", "0.64250416", "0.64250416", "0.64250416", "0.6399808", "0.6399808", "0.6399808", "0.639...
0.77461106
0
Assert ``$nick`` in a rule is not replaced (deprecated feature).
def y1oc(oOYc, JfyU): setattr(JfyU, 'rule', ['$nickhello']) DWkG.clean_callable(JfyU, oOYc) assert hasattr(JfyU, 'rule') assert len(JfyU.rule) == 1 assert JfyU.rule[0] == '$nickhello' DWkG.clean_callable(JfyU, oOYc) assert len(JfyU.rule) == 1 assert JfyU.rule[0] == '$nickhello'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yWSg(YKHO, RuJL=None, CVgL=None, **YSA3):\n if RuJL == '*':\n YKHO.bot.set_nick(YKHO.bot.nick + '_')\n YKHO.bot.log.debug('Trying to regain nickname in 30s...')\n YKHO.nick_handle = YKHO.bot.loop.call_later(30, YKHO.bot.set_nick, YKHO.bot.original_nick)", "def ATKf(YKHO, YLl4):\n CVgL = YL...
[ "0.64301556", "0.63230675", "0.61870736", "0.59463984", "0.5904263", "0.5896368", "0.5887707", "0.58746994", "0.5802468", "0.575738", "0.55892557", "0.55714923", "0.5530761", "0.5501572", "0.54405564", "0.5435959", "0.5432219", "0.54302174", "0.54243594", "0.5409967", "0.5405...
0.63997483
1
Return all distinct labels in the current .bin file. Because this method cannot check if there are other data inside the label region, you should use get_label_list() with cautions.
def R5Oj(YKHO, tZ2K='shift-jis'): EKkb = YKHO._labels.split(b'\x00') if tZ2K == 'shift-jis': return EKkb else: return [UXqs.decode('shift-jis').encode(tZ2K) for UXqs in EKkb]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M7NY(YKHO):\n qNKB = YKHO.large_contigs[~YKHO.disconnected][~YKHO.disconnected_intersected]\n YKHO.labels = oyIN.array([-1 for bGrB in range(qNKB.shape[0])])\n for bSdt, AK9_ in YKHO.bins.items():\n if bSdt != 0:\n Y_16 = qNKB['tid'].isin(AK9_)\n YKHO.labels[Y_16] = bSdt",...
[ "0.6916332", "0.689412", "0.6857599", "0.6857599", "0.6823678", "0.67030615", "0.6656817", "0.66566885", "0.66433454", "0.6588551", "0.65807605", "0.6578864", "0.6528849", "0.6498498", "0.6497405", "0.64859766", "0.64859766", "0.6469694", "0.6463188", "0.6456118", "0.6453288"...
0.0
-1
Function checking whether a path to a file exists.
def GfdN(d7pR): if not Hy7s.path.exists(d7pR): raise j1Jz.ArgumentTypeError('"{0}" does not exist, please enter valid argument.'.format(d7pR)) return Hy7s.path.abspath(d7pR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def poxP(pmON):\n return EFYe(pmON)", "def poxP(pmON: str) -> bool:\n return Hy7s.path.isfile(pmON)", "def IeRR(pmON):\n return Hy7s.path.isfile(pmON)", "def Hat5(pmON: str):\n if Hy7s.path.isfile(pmON):\n return True\n return False", "def poxP(pmON: str) -> bool:\n assert isinstan...
[ "0.889218", "0.8871964", "0.8860039", "0.88294184", "0.8818196", "0.875272", "0.8709498", "0.85858333", "0.8511973", "0.85008407", "0.8433479", "0.8374818", "0.8366912", "0.83378685", "0.83228105", "0.83157945", "0.83151925", "0.83147085", "0.8303148", "0.8299856", "0.8292703...
0.0
-1
Get extents of a PolygonLike, handles explicitly given coordinates.
def yqnz(zn0c: PolygonLike.TYPE) -> AzJI[AzJI[float, float, float, float], bool]: zJ3o = False KvxI = None try: wZ2E = mFWN(zn0c, dtype=float) if wZ2E is not None: if len(wZ2E) == 4: KvxI = wZ2E zJ3o = True except BaseException: j5tF = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q9t9(j5tF, gxdT=None):\n if gxdT is None:\n qwA9 = O2Zy = j5tF[0][0]\n B4jR = vvwy = j5tF[0][1]\n else:\n qwA9, B4jR, O2Zy, vvwy = gxdT\n for WKvO, LVAh in j5tF:\n if WKvO < qwA9:\n qwA9 = WKvO\n elif WKvO > O2Zy:\n O2Zy = WKvO\n if LVAh ...
[ "0.66910243", "0.6502925", "0.6429224", "0.64282304", "0.636743", "0.633883", "0.6243925", "0.6232694", "0.6140573", "0.6109703", "0.60915333", "0.60181016", "0.5944121", "0.5891108", "0.5877184", "0.587098", "0.584577", "0.58085626", "0.5791608", "0.5786127", "0.5755273", ...
0.73349196
0
Return true if the binary_sensor is on.
def Debg(YKHO): return YKHO._controller.is_on
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO) -> bool:\n return YKHO.wemo.has_sensor != 0 and YKHO.wemo.sensor_state == 0", "def Debg(YKHO):\n try:\n return YKHO._izzibridge.data[YKHO._sensor_type] == YKHO._active_state\n except KeyError:\n return False", "def NPsq(YKHO, PG3W):\n XtFw = b8Sj.TcpBinarySensor(YKHO.ha...
[ "0.7919749", "0.77325594", "0.75553095", "0.7399241", "0.7327895", "0.7310684", "0.7246992", "0.7185012", "0.71577615", "0.71484065", "0.7139475", "0.71000147", "0.7096147", "0.70885026", "0.70885026", "0.7059291", "0.7056712", "0.7056712", "0.7056712", "0.7056712", "0.705671...
0.0
-1
Return the state attributes of the device.
def R1i3(YKHO): hkS8 = {} hkS8[zCxe] = YKHO._controller.index hkS8[z4mR] = YKHO._controller.enabled hkS8[M0Wj] = YKHO._controller.status hkS8[ZITY] = len(YKHO._controller.zones) hkS8[dItt] = '' jvSB = YKHO._controller.runs.current_run if jvSB is not None: hkS8[vmZx] = jvSB.zone.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._state_attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3...
[ "0.92501426", "0.92424875", "0.92059964", "0.92059964", "0.92059964", "0.91724473", "0.915227", "0.915227", "0.915227", "0.915227", "0.915227", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", ...
0.0
-1
Return true if the binary_sensor is on.
def Debg(YKHO): return YKHO._zone.is_on
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO) -> bool:\n return YKHO.wemo.has_sensor != 0 and YKHO.wemo.sensor_state == 0", "def Debg(YKHO):\n try:\n return YKHO._izzibridge.data[YKHO._sensor_type] == YKHO._active_state\n except KeyError:\n return False", "def NPsq(YKHO, PG3W):\n XtFw = b8Sj.TcpBinarySensor(YKHO.ha...
[ "0.7918911", "0.7732101", "0.7556891", "0.74001104", "0.73285824", "0.7311407", "0.7247263", "0.7185406", "0.71567065", "0.7148837", "0.714026", "0.71006024", "0.7095507", "0.70892835", "0.70892835", "0.7058172", "0.70576984", "0.70576984", "0.70576984", "0.70576984", "0.7057...
0.0
-1
Indicate that we need to poll data
def KZ_I(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aBG1(YKHO):\n pass", "def aBG1(YKHO):\n pass", "def aBG1():\n pass", "def aBG1(YKHO):\n return", "def KZ_I(YKHO):\n return True", "def KZ_I(YKHO):\n return True", "def KZ_I(YKHO):\n return True", "def aBG1(YKHO, *qIxc, **B2fa):\n pass", "def aBG1(YKHO):\n pass", "de...
[ "0.8001735", "0.79554313", "0.7817431", "0.7684038", "0.768042", "0.766661", "0.766661", "0.76247066", "0.76061827", "0.75054413", "0.75054413", "0.75054413", "0.75054413", "0.75054413", "0.75054413", "0.75054413", "0.75054413", "0.75054413", "0.75054413", "0.75054413", "0.75...
0.7327045
37
Return the state attributes of the device.
def R1i3(YKHO): hkS8 = {} hkS8[xoHk] = YKHO._zone.zone_id hkS8[zCxe] = YKHO._zone.index hkS8[z4mR] = YKHO._zone.enabled hkS8[M0Wj] = YKHO._zone.status hkS8[jYaV] = len(YKHO._zone.schedules) hkS8[zn2O] = '' hkS8[NPxp] = str(YKHO._zone.adjustment) jvSB = YKHO._zone.runs.current_run ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._state_attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3...
[ "0.92501426", "0.92424875", "0.92059964", "0.92059964", "0.92059964", "0.91724473", "0.915227", "0.915227", "0.915227", "0.915227", "0.915227", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", "0.9149528", ...
0.0
-1
test column value stddev to be between
def cmaN(YKHO): Pcn2 = _znt(name='my_test_case', entityLink='<#E::table::service.db.users::columns::age>', testSuite=Q6C3(id=kxTZ(), type='TestSuite'), testDefinition=Q6C3(id=kxTZ(), type='TestDefinition'), parameterValues=[RAsS(name='minValueForStdDevInCol', value='20'), RAsS(name='maxValueForStdDevInCol', value='...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M1Jx(hkxX):\n return Dz7Y.stdev(hkxX)", "def M1Jx(WUeM):\n return ee6l(WUeM)", "def y2d3(YKHO) -> float:\n return YKHO.data['value'].std().round(2)", "def OehW(nPrm, z2bo, JBMS):\n g5q1 = float(len(nPrm))\n NUch = 0\n for tLuO in nPrm:\n if tLuO > JBMS - z2bo and tLuO < JBMS + z2...
[ "0.7381196", "0.73004884", "0.7125103", "0.7074945", "0.70193064", "0.70110744", "0.695737", "0.6928014", "0.692129", "0.6847527", "0.6800203", "0.67865765", "0.6786218", "0.67704993", "0.67395914", "0.67184174", "0.6700854", "0.66832906", "0.6669226", "0.664234", "0.66364175...
0.64482784
35
Create a connection to the Google Search Console API and return service object.
def jqi5(H5ew: str): try: rrBf = ['https://www.googleapis.com/auth/webmasters'] Vt89 = zOZf.Credentials.from_service_account_file(H5ew, scopes=rrBf) zVa7 = Cc7Y('webmasters', 'v3', credentials=Vt89) return zVa7 except Exception as e: print('Error: ', tTpl) HwRy.ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVwF(YKHO):\n if m1bP.credentials is None:\n YKHO.login()\n return Cc7Y(YKHO.api_name, YKHO.api_version, http=m1bP.credentials.authorize(OBHh.Http()))", "def sB4I():\n return wxaU(hosts=XgL1['host'], port=XgL1['port'], send_get_body_as='POST')", "def nNSx(YKHO):\n j6zZ = Kr3u(YKHO.servic...
[ "0.69867444", "0.67981666", "0.67928916", "0.64599276", "0.63435864", "0.6187265", "0.6141919", "0.61361516", "0.6129704", "0.60700554", "0.6038852", "0.60313904", "0.5983564", "0.5957828", "0.5895203", "0.5894286", "0.58658403", "0.5839108", "0.58211124", "0.582085", "0.5813...
0.6474191
3
Render the homepage template on the / route
def C_QL(): return vKnz(nKyW('account.login'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return T...
[ "0.85673344", "0.8563182", "0.8539366", "0.8539366", "0.8535036", "0.85138595", "0.85138595", "0.848972", "0.8456827", "0.84357065", "0.8424191", "0.8424191", "0.8424191", "0.8424191", "0.8424191", "0.8415442", "0.8412444", "0.833204", "0.83252907", "0.8321982", "0.8313638", ...
0.0
-1
Render the homepage template on the / route
def bySB(): return vKnz(nKyW('account.login'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return T...
[ "0.85673344", "0.8563182", "0.8539366", "0.8539366", "0.8535036", "0.85138595", "0.85138595", "0.848972", "0.8456827", "0.84357065", "0.8424191", "0.8424191", "0.8424191", "0.8424191", "0.8424191", "0.8415442", "0.8412444", "0.833204", "0.83252907", "0.8321982", "0.8313638", ...
0.0
-1
Render the homepage template on the / route
def OY2O(): return vKnz(nKyW('account.login'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return T...
[ "0.85665303", "0.8562738", "0.85388345", "0.85388345", "0.8534527", "0.85128576", "0.85128576", "0.8489146", "0.84560436", "0.84343183", "0.8424129", "0.8424129", "0.8424129", "0.8424129", "0.8424129", "0.8415239", "0.84115773", "0.83314025", "0.83245605", "0.83215326", "0.83...
0.0
-1
Update Target & Current Temperature.
def QdZT(YKHO): YKHO._target_temperature = YKHO._read_register(nzoY, YKHO._target_temperature_register) YKHO._current_temperature = YKHO._read_register(YKHO._current_temperature_register_type, YKHO._current_temperature_register)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YN0V(YKHO):\n ycBG = None\n agbH = YKHO.hvac_mode\n if agbH == gDI4:\n ycBG = YKHO._pykumo.get_heat_setpoint()\n elif agbH == OHWN:\n ycBG = YKHO._pykumo.get_cool_setpoint()\n else:\n ycBG = None\n YKHO._target_temperature = ycBG", "def D8Uc(YKHO):\n YKHO._current_te...
[ "0.7796029", "0.77109843", "0.73589563", "0.72214025", "0.7197144", "0.70901006", "0.7074281", "0.7004437", "0.6956806", "0.6945817", "0.6931118", "0.6913143", "0.68969077", "0.68274176", "0.6815929", "0.68152446", "0.67841536", "0.67841536", "0.6766888", "0.67663676", "0.670...
0.75788015
2
Return the current temperature.
def CMHP(YKHO): return YKHO._current_temperature
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CMHP(YKHO):\n return YKHO._current_temp", "def CMHP(YKHO):\n return YKHO._cur_temp", "def CMHP(YKHO):\n return YKHO._cur_temp", "def CMHP(YKHO):\n return YKHO._temperature", "def CMHP(YKHO) -> float:\n return YKHO.device['sensors']['temperature']", "def CMHP(YKHO):\n return YKHO._de...
[ "0.88459253", "0.8834011", "0.8834011", "0.8827252", "0.88014287", "0.8781482", "0.87779963", "0.877693", "0.87618834", "0.875637", "0.87354743", "0.8715311", "0.8701527", "0.8700191", "0.8697905", "0.8694658", "0.86789656", "0.86441076", "0.8622577", "0.8622577", "0.8622577"...
0.8787866
5
Return the target temperature.
def T6n4(YKHO): return YKHO._target_temperature
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T6n4(YKHO):\n return YKHO._target_temp", "def T6n4(YKHO):\n return YKHO._climate.get_target_temperature()", "def T6n4(YKHO):\n return YKHO._circuit.get('target_temperature')", "def T6n4(YKHO):\n return YKHO._temperature_desired", "def T6n4(YKHO):\n return YKHO._device.target_temperature"...
[ "0.90014905", "0.8955412", "0.8926957", "0.8894578", "0.8890445", "0.8844147", "0.88245887", "0.88193583", "0.87508243", "0.8717783", "0.87122816", "0.8710814", "0.87070996", "0.8655408", "0.8644105", "0.8527771", "0.8494318", "0.8456801", "0.8456801", "0.84555846", "0.844865...
0.89532954
2
Return the unit of measurement.
def xklW(YKHO): return ELtl if YKHO._unit == 'F' else hMVl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82...
[ "0.907914", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90140283", "0.9006033", "0.8946556", "0.8946556", "0.8937156", "0.891861", "0.891861", "0.891861", "0.891861", "0.891861"...
0.0
-1
Wrap os.path.splitext to return the name and the extension without the '.' (e.g., csv instead of .csv)
def mc5t(Ux0P): mWFP, YBcr = Hy7s.path.splitext(Ux0P) YBcr = YBcr.lower() return (mWFP, YBcr.strip('.'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LydB(pmON):\n aPr_ = Hy7s.path.basename(pmON)\n d6pt = aPr_.rfind('.')\n if d6pt > 0:\n tk5Y = aPr_[:d6pt]\n if tk5Y.count('.') != d6pt:\n return (Hy7s.path.join(Hy7s.path.dirname(pmON), tk5Y), aPr_[d6pt:])\n return (pmON, '')", "def YlPp(nUeQ):\n bGrB, mWFP = Hy7s.pat...
[ "0.80147374", "0.7852318", "0.776547", "0.7749819", "0.768573", "0.7635263", "0.76341647", "0.7629599", "0.76066834", "0.7583094", "0.7583094", "0.7582533", "0.7545983", "0.74900126", "0.7441541", "0.7375025", "0.73730254", "0.7353579", "0.73154557", "0.73069596", "0.7300425"...
0.78873
1
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() jQ3Z['month'] = rLdf.DatetimeIndex(jQ3Z['Start Time']).month XYie = jQ3Z['month'].mode()[0] Hu0p = jQ3Z['month'].value_counts() print('The most common month is {} and count is {}.'.format(XYie, Hu0p....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.79996175", "0.7920857", "0.7891767", "0.78612196", "0.785926", "0.7838814", "0.779974", "0.77848285", "0.7735119", "0.7723049", "0.771342", "0.7708436", "0.770453", "0.77017164", "0.7689714", "0.7685842", "0.7680146", "0.76788265", "0.76721054", "0.7661351", "0.7660023", ...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() V_8k = jQ3Z['Start Station'].value_counts() print('The most commonly used start station is {} and count is {}.'.format(V_8k.idxmax(), V_8k.max())) S7Eb = jQ3Z['End Station'].value_counts() print('Th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665077", "0.7626045", "0.76101774", "0.75846785", "0.7575866", "0.7566431", "0.755723", "0.7537712", "0.7529112", "0.7501894", "0.74994457", "0.7496024", "0.7486785", "0.7483556", "0.7475163", "0.7472587", "0.7437267", "0.7436243", "0.74326277", "0.74276906", "0.7426641",...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() NHi1 = jQ3Z['Trip Duration'].sum() print('Total travel time is {}.'.format(NHi1)) Jj87 = jQ3Z['Trip Duration'].mean() print('Total traveling mean time is {}.'.format(Jj87)) print('\nThis took %s seconds.' % (ITS7.ti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.79176366", "0.79...
0.7978646
6
Shows all user's entries and allows to pick one to delete.
def Uxbn(QdZT, QpfX): d2mg = fSy6(QdZT.message.from_user.id) if d2mg: l9Bt = [] for YRbF in range(0, len(d2mg), 2): try: l9Bt.append([d2mg[YRbF], d2mg[YRbF + 1]]) except IndexError: l9Bt.append([d2mg[YRbF]]) QdZT.message.reply_text(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NTrK(uJjO):\n DW23 = list(qm8v.db.users.find({'_id': aA6B(uJjO)}))\n return TvZl('delete_user.html', users=DW23)", "def PTpj(YKHO):\n global users\n DW23 = []\n return ('All users are deleted.', 200)", "def _FVT():\n DW23 = mv1M.query.all()\n return TvZl('user_list.html', users=DW23)",...
[ "0.6764995", "0.66737765", "0.6445182", "0.6365157", "0.63413584", "0.6322298", "0.6302266", "0.62945145", "0.6253848", "0.61841226", "0.6167322", "0.6148541", "0.61090064", "0.6090356", "0.6075526", "0.6056874", "0.60524625", "0.60471654", "0.60471654", "0.60471654", "0.6047...
0.0
-1
Get bot chat_id in telegram. This function very suitable. It must be used, when you write to bot today. If ypu didnt write today, you will get empty result. Also this function must used ONLY for your personal bots, because it get first chat_id from updates.
def pk2W(Kcjx): bD7m = f'https://api.telegram.org/bot{Kcjx}/getUpdates' geh0 = G4JS.get(url=bD7m) gH5N(geh0) try: DVsZ = geh0.json()['result'][0]['message']['chat']['id'] except IndexError: raise ValueError('Please, write to bot for initialize chat.') return DVsZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y5Kv(NKRf):\n Ylbp = rw_n._get_updates(NKRf)\n DVsZ = Ylbp['result'][-1]['message']['chat']['id']\n return DVsZ", "def pk2W(nPrm):\n DVsZ = nPrm['message']['chat']['id']\n return DVsZ", "def pk2W(nPrm):\n DVsZ = nPrm['message']['chat']['id']\n return DVsZ", "def pk2W(YKHO, nPrm):\n ...
[ "0.8140919", "0.7659882", "0.7659882", "0.7541665", "0.7540793", "0.69883275", "0.67267627", "0.6684381", "0.667299", "0.65199566", "0.65011436", "0.65011436", "0.6485947", "0.6470385", "0.6382957", "0.63094026", "0.61116004", "0.6093773", "0.60181016", "0.59753907", "0.59610...
0.83894295
0
Converts a string traversal to an int traversal
def a8Pe(fSCU): kOIG = [eHNT if isinstance(eHNT, str) else eHNT.name for eHNT in Qyor.library] return oyIN.array([kOIG.index(eHNT.lower()) for eHNT in fSCU], dtype=oyIN.int32)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sQSW(Inpp, hksT, Keew):\n return int(Keew[0])", "def ZYKP(vIwR):\n if vIwR == '':\n return 0\n else:\n jvSB = ord(vIwR[-1])\n u54L = 0\n jneV = jvSB\n while jneV > 0:\n jneV = jneV // 10\n u54L += 1\n return jvSB + ZYKP(vIwR[:len(vIwR) ...
[ "0.703727", "0.68548775", "0.65921545", "0.64960045", "0.64909697", "0.64778394", "0.63442713", "0.62788844", "0.62788844", "0.6181972", "0.6178768", "0.6166965", "0.616216", "0.61266714", "0.61211854", "0.6098319", "0.6078879", "0.6078713", "0.60350454", "0.60341126", "0.603...
0.0
-1
Evaluates and returns the base reward of the program on the training set
def ETra(YKHO): uN02 = YKHO.execute(Qyor.X_train) return Qyor.reward_function(Qyor.y_train, uN02)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BiIn(YKHO):\n raise NotImplementedError", "def vOGg(YKHO):\n if YKHO.score_type == z34d.PROGRESS:\n return YKHO.progress()\n elif YKHO.score_type == z34d.REGRET:\n return YKHO.progress() - YKHO.regret()\n else:\n return YKHO.score()", "def oYJk(YKHO):\n uN02 = YKHO.execu...
[ "0.79601645", "0.7479632", "0.7188448", "0.71316415", "0.7096242", "0.7052641", "0.7031686", "0.7017554", "0.6969269", "0.69399303", "0.6901383", "0.6900964", "0.69008076", "0.6898405", "0.6891049", "0.68704206", "0.6865965", "0.6861847", "0.6837797", "0.6804206", "0.6793403"...
0.8042983
0
Evaluates and returns the base reward of the program on the test set
def oYJk(YKHO): uN02 = YKHO.execute(Qyor.X_test) return Qyor.reward_function(Qyor.y_test, uN02)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETra(YKHO):\n uN02 = YKHO.execute(Qyor.X_train)\n return Qyor.reward_function(Qyor.y_train, uN02)", "def BiIn(YKHO):\n raise NotImplementedError", "def vOGg(YKHO):\n if YKHO.score_type == z34d.PROGRESS:\n return YKHO.progress()\n elif YKHO.score_type == z34d.REGRET:\n return YK...
[ "0.7666026", "0.7566169", "0.7353708", "0.6913374", "0.68913215", "0.6853702", "0.68295497", "0.681879", "0.68153775", "0.6763547", "0.6758394", "0.67349166", "0.67337847", "0.67314875", "0.67165756", "0.670153", "0.66963375", "0.66942817", "0.66844875", "0.66810745", "0.6671...
0.765478
1
Evaluates and returns the base reward of the program on the noiseless training set
def Sp08(YKHO): uN02 = YKHO.execute(Qyor.X_train) return Qyor.reward_function(Qyor.y_train_noiseless, uN02)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETra(YKHO):\n uN02 = YKHO.execute(Qyor.X_train)\n return Qyor.reward_function(Qyor.y_train, uN02)", "def BiIn(YKHO):\n raise NotImplementedError", "def h3jX(YKHO):\n uN02 = YKHO.execute(Qyor.X_test)\n return Qyor.reward_function(Qyor.y_test_noiseless, uN02)", "def vOGg(YKHO):\n return t...
[ "0.7660664", "0.73156214", "0.7280541", "0.7107195", "0.69901663", "0.6964851", "0.6955783", "0.69394845", "0.6936088", "0.6869934", "0.679642", "0.67492336", "0.6742299", "0.67347944", "0.67187643", "0.67158407", "0.67110264", "0.66959834", "0.6695852", "0.6667487", "0.66298...
0.7860753
0
Evaluates and returns the base reward of the program on the noiseless test set
def h3jX(YKHO): uN02 = YKHO.execute(Qyor.X_test) return Qyor.reward_function(Qyor.y_test_noiseless, uN02)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sp08(YKHO):\n uN02 = YKHO.execute(Qyor.X_train)\n return Qyor.reward_function(Qyor.y_train_noiseless, uN02)", "def ETra(YKHO):\n uN02 = YKHO.execute(Qyor.X_train)\n return Qyor.reward_function(Qyor.y_train, uN02)", "def oYJk(YKHO):\n uN02 = YKHO.execute(Qyor.X_test)\n return Qyor.reward_f...
[ "0.7714214", "0.73428756", "0.7229086", "0.70716864", "0.69756943", "0.6975609", "0.69373155", "0.68891275", "0.6719155", "0.67058074", "0.6669833", "0.6662869", "0.66105604", "0.6606856", "0.65858734", "0.6575212", "0.6571132", "0.6551891", "0.65453136", "0.6533393", "0.6513...
0.77149194
0
Cached labels, only available when `lazy=False` or preloading is performed manually.
def Crrw(YKHO) -> oyIN.ndarray: return YKHO._labels
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HAAw(YKHO, **B2fa):\n Sd0C = YKHO.get('label-file', make=True, **B2fa)\n Crrw = YKHO._label_cache[Sd0C]\n return Crrw", "def Crrw(YKHO):\n if YKHO.bound and 'labels' in YKHO.__stale:\n YKHO.refresh()\n return YKHO.__labels", "def iZXs(YKHO, pmON=GkAb('./labels.cache')):\n owew = {}...
[ "0.74969345", "0.66150147", "0.6581413", "0.6565327", "0.6543104", "0.632312", "0.62098455", "0.6152182", "0.6147524", "0.6137842", "0.60149217", "0.5971533", "0.5971533", "0.5914664", "0.5901278", "0.5892736", "0.5892736", "0.588593", "0.57778364", "0.5756782", "0.57536775",...
0.0
-1
Return the empirical CDF of a sample at a given value.
def Zt0j(WKvO: xr.DataArray, BWXx: float, tpio: str='time'): return (WKvO <= BWXx).sum(tpio) / WKvO.notnull().sum(tpio)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzER(YKHO, BWXx):\n return YKHO._normal.cdf(BWXx)", "def YzER(YKHO, WKvO):\n p06G = (WKvO - YKHO.mean) / (YKHO.stddev * 2 ** (1 / 2))\n return 1 / 2 * (1 + tVah(p06G))", "def YzER(YKHO, BWXx):\n if YKHO.cond_dist is not None:\n return YKHO.cond_dist.cdf(BWXx, YKHO.params)\n return ht2...
[ "0.76502824", "0.73867834", "0.7386455", "0.7369019", "0.7344394", "0.7294388", "0.7143695", "0.7137622", "0.7093824", "0.70714235", "0.7040018", "0.70089984", "0.699079", "0.6929636", "0.6878376", "0.683204", "0.6802453", "0.676431", "0.67376494", "0.6724778", "0.6717064", ...
0.60341996
76
Broadcast a grouped array back to the same shape as a given array.
def iJtT(qDyV: xr.DataArray, WKvO: xr.DataArray, *, uOe2: Union[str, Grouper]='time', pTn1: str='nearest', iz5W: Optional[Mapping[str, xr.DataArray]]=None): if iz5W is None: iz5W = {} if uOe2.prop is not None and uOe2.prop not in iz5W: iz5W.update({uOe2.prop: uOe2.get_index(WKvO, interp=pTn1)}) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZuV8(qw7D, ROpF, DkY6=False):\n return v2Sb(qw7D, ROpF, subok=DkY6, readonly=True)", "def vfsF(qw7D):\n if qw7D.ndim == 0:\n return qw7D\n qw7D = qw7D[tuple((slice(0, 1) if _0fC == 0 else slice(None) for _0fC in qw7D.strides))]\n QnCP = next((YRbF for YRbF, KCHu in enumerate(qw7D.shape) if...
[ "0.705704", "0.6751183", "0.64558053", "0.6383306", "0.6375906", "0.6227658", "0.6111994", "0.6037567", "0.6024472", "0.6010494", "0.5960064", "0.59062636", "0.5881513", "0.58714867", "0.5863965", "0.5830841", "0.5774639", "0.5714384", "0.57127637", "0.56926805", "0.5692574",...
0.5684606
22
Add node to the chain and receive transmissions.
def mxdm(YKHO, Q6kx, eVVj): eVVj.add_node(Q6kx) JZXy = eVVj.nodes(type=LSFv)[0] JZXy.connect(direction='to', whom=Q6kx) cAl7 = JZXy.infos() if not cAl7: JZXy.transmit(to_whom=Q6kx) Q6kx.receive()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mxdm(YKHO, Q6kx, eVVj):\n eVVj.add_node(Q6kx)\n ACnF = Q6kx.neighbors(direction='from')\n if len(ACnF):\n _AKB = ACnF[0]\n _AKB.transmit()\n Q6kx.receive()", "def aZVs(YKHO, Q6kx):\n YKHO.nodeList.append(Q6kx)", "def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)", "def g5gD(...
[ "0.7642267", "0.72605145", "0.72169137", "0.72104055", "0.7172626", "0.71634966", "0.71634966", "0.7057646", "0.70344096", "0.7017529", "0.7017529", "0.6970181", "0.69463414", "0.6913576", "0.6897313", "0.68789625", "0.681775", "0.6800003", "0.6790772", "0.67660725", "0.67652...
0.6817348
17
Sets the redeem_after_date of this RedeemVoucherError.
def W7Ws(YKHO, W7Ws): YKHO._redeem_after_date = W7Ws
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dtml(YKHO, dtml):\n YKHO._promise_response_due_date = dtml", "def uKC7(YKHO, uKC7):\n YKHO._date_due = uKC7", "def uKC7(YKHO, uKC7):\n YKHO._date_due = uKC7", "def uKC7(YKHO, uKC7):\n YKHO._date_due = uKC7", "def CwgM(YKHO, CwgM):\n YKHO._expiry_date = CwgM", "def CwgM(YKHO, CwgM):\n ...
[ "0.6445179", "0.6095615", "0.6095615", "0.6095615", "0.6024254", "0.6024254", "0.59702456", "0.59437543", "0.59395134", "0.59180313", "0.59180313", "0.59180313", "0.59180313", "0.58659273", "0.5862772", "0.5777371", "0.5721157", "0.5715887", "0.5713483", "0.5713483", "0.57134...
0.8747858
0
Sets the payment_error of this RedeemVoucherError.
def l46x(YKHO, l46x): YKHO._payment_error = l46x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q0JL(YKHO, q0JL):\n YKHO._payment_id = q0JL", "def q0JL(YKHO, q0JL):\n YKHO._payment_id = q0JL", "def rpdr(YKHO, rpdr):\n YKHO._payment = rpdr", "def CCyJ(x0hE, QePW):\n _VHy.gateway.error = TQue\n return (x0hE, QePW)", "def q0JL(YKHO, q0JL):\n YKHO._payment_id = q0JL", "def wCZd(YK...
[ "0.6426671", "0.6426671", "0.6243277", "0.6146485", "0.6102761", "0.60310334", "0.5985908", "0.5960875", "0.5935245", "0.59130853", "0.59130853", "0.5887874", "0.5848027", "0.57808715", "0.57808715", "0.57808715", "0.57808715", "0.57808715", "0.57808715", "0.57808715", "0.578...
0.8433198
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): if not isinstance(Elif, _BWS): return True return YKHO.to_dict() != Elif.to_dict()
{ "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.8393829", "0.83557564", "0.8296152", "0.8133522", "0.81153053", "0.8100911", "0.8100133", "0.8098902", "0.8098902", "0.80937666", "0.80937666", "0.80937666", "0.80937666", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8067774", "0.80598664", "0.805856...
0.0
-1
Close a browser on exit
def fFx9(YKHO): YKHO.bot.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5JM():\n E_qD.close()", "def xFj2(YKHO):\n print('*INFO:%d* Start function close_browser' % (ITS7.time() * 1000))\n YKHO.driver.quit()\n print('*INFO:%d* close_browser successfully' % (ITS7.time() * 1000))", "def Ov1G():\n global _driver\n if nS8u is not None:\n nS8u.quit()\n ...
[ "0.82166773", "0.81561404", "0.80433136", "0.80187684", "0.8016966", "0.80116135", "0.7951803", "0.764871", "0.7568857", "0.75446147", "0.75325423", "0.7497762", "0.74298286", "0.7423324", "0.7408906", "0.7387358", "0.73292714", "0.7323233", "0.72843933", "0.7251122", "0.7250...
0.0
-1
Returns the default URL to redirect to after successfully connecting a social account.
def DVbf(YKHO, QePW, XiIs): assert QePW.user.is_authenticated bD7m = vKnz('/') return bD7m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DVbf(YKHO, QePW, XiIs):\n assert QePW.user.is_authenticated\n bD7m = gxEw('socialaccount_connections')\n return bD7m", "def DVbf(YKHO, QePW: HttpRequest, a1Cl: SocialAccount) -> str:\n return sZT5(QePW) or '/user'", "def PAKi(YKHO):\n return '/api/v1/user/login/'", "def ppIY(YKHO) -> 'outp...
[ "0.80124056", "0.7901996", "0.7416036", "0.7163187", "0.7125137", "0.7081945", "0.70792127", "0.6996666", "0.6973343", "0.69554937", "0.689793", "0.6892101", "0.68798167", "0.6875282", "0.6867652", "0.6781097", "0.67700356", "0.6736386", "0.6716644", "0.6711066", "0.67030454"...
0.8307617
0
Returns the commaseparated input string as a list of integers.
def xpmc(n_L_): DumB = n_L_.split(',') for d6pt, ZfUD in enumerate(DumB): DumB[d6pt] = int(ZfUD) return DumB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def De9W(WbAn: str) -> x1iM[int]:\n return [int(BWXx) for BWXx in WbAn.strip().split('\\n')]", "def CbXR():\n return [int(WKvO.strip()) for WKvO in input().split(' ')]", "def gXtX(KCHu: str) -> x1iM[int]:\n return XqC_(int, ZbWC.findall('-?\\\\d+', KCHu))", "def cxLC(vIwR):\n eK7y = vIwR.splitlin...
[ "0.80339634", "0.7749148", "0.76109785", "0.75756", "0.7563008", "0.74778384", "0.74249846", "0.7356569", "0.7339694", "0.72839826", "0.7220752", "0.721564", "0.71960574", "0.7178481", "0.7172237", "0.7161576", "0.7159228", "0.7096975", "0.70730734", "0.7062955", "0.70332325"...
0.731929
9
Finds which centroid each element in the dataset is closest to
def D8Wx(__n6, yHxN): CkYf = EJ6Q(__n6, yHxN) return oyIN.argmin(CkYf, axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XA2f(nPrm, yHxN):\n tGYC = [XTiz.argmin(((rdlD - yHxN) ** 2).sum(axis=1)) for rdlD in nPrm]\n return tGYC", "def hKxl(LTIa, yHxN):\n return ((LTIa[:, None, :] - yHxN[None, :, :]) ** 2).sum(axis=2).argmin(axis=1)", "def GYE6(YKHO):\n YKHO.distances = YKHO.get_distance()\n return oyIN.argmin(Y...
[ "0.8556039", "0.81030613", "0.7990273", "0.78465265", "0.7803418", "0.75482434", "0.7539919", "0.75013447", "0.7465609", "0.7434101", "0.74214214", "0.73184526", "0.72950065", "0.7181148", "0.7159438", "0.7136241", "0.6977993", "0.6934738", "0.69207996", "0.6917872", "0.69062...
0.66585875
40
Calculates the Sum of squared error
def yTJm(__n6, Crrw, yHxN): Ayfi = oyIN.zeros(__n6.shape[0]) for YRbF in range(__n6.shape[0]): Ayfi[YRbF] = CkYf(__n6[YRbF] - yHxN[Crrw[YRbF]]) return oyIN.sum(oyIN.square(Ayfi))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i8nm(nJ9F, o4D3):\n return Zciu()(nJ9F, o4D3)", "def oIwW(LVAh, kLQb):\n JBMS = sum(kLQb) / len(kLQb)\n v5wx = sum([(YRbF - JBMS) ** 2 for YRbF in LVAh])\n return v5wx", "def BKL_(si3g, skBL):\n return sum((skBL - si3g) ** 2)", "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error...
[ "0.73277515", "0.71657085", "0.7153716", "0.70603025", "0.7058895", "0.7058895", "0.7027065", "0.69946617", "0.6980297", "0.69473386", "0.69390166", "0.69362813", "0.6919866", "0.68939006", "0.68502784", "0.6838573", "0.682721", "0.6797632", "0.67452306", "0.67144895", "0.670...
0.0
-1
Helper method to slice all arrays contained in a dictionary.
def uPHR(ezWE, A3OT): if isinstance(ezWE, dict): U5bT = U8Lr() for G1Hx, Ty9i in ezWE.items(): U5bT[G1Hx] = Ty9i[A3OT] return U5bT else: return ezWE[A3OT]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hM8s(YKHO, sjXb: Iterable[str]) -> cxzP:\n It1h = omfu()\n for G1Hx in sjXb:\n It1h.Set(G1Hx, YKHO.GetItem(G1Hx))\n return It1h", "def _J1t(Csk6):\n for G1Hx, Ty9i in Csk6.items():\n if type(Ty9i) == oyIN.ndarray:\n Csk6[G1Hx] = Ty9i.tolist()\n if type(Ty9i) == dic...
[ "0.598501", "0.5968744", "0.5830604", "0.5787174", "0.5768926", "0.57071996", "0.5666152", "0.56471515", "0.5639945", "0.5626097", "0.54991794", "0.5483095", "0.545809", "0.53552514", "0.5350551", "0.53233194", "0.53233194", "0.52985895", "0.52882195", "0.5286302", "0.5261445...
0.56870735
6
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: yT1k = await ajET.config_entries.async_unload_platforms(bTKY, aprE) if yT1k: ajET.data[Sugg].pop(bTKY.entry_id) for Q23w in HGCR.async_entries_for_config_entry(HGCR.async_get(ajET), bTKY.entry_id): for w2B8...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)", "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()...
[ "0.7043359", "0.6999121", "0.69212514", "0.6904225", "0.6900343", "0.687238", "0.68417174", "0.6792225", "0.67856234", "0.6784704", "0.67776716", "0.67699945", "0.67392117", "0.6731991", "0.6714924", "0.67091984", "0.6666205", "0.66417104", "0.66387224", "0.66168916", "0.6608...
0.0
-1
View function for home page of site.
def U_Fc(QePW): MlTh = Iaah.objects.all().count() IpTa = Iaah.objects.filter(patient_status__exact='Active').count() cbvu = Iaah.objects.filter(patient_status__exact='Rest In Peace').count() ZLKm = Iaah.objects.filter(patient_status__exact='Missing').count() xDcj = QePW.GET.get('q') if not xDcj:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def kZiy():\n ...
[ "0.85217434", "0.8380931", "0.8353748", "0.83413374", "0.83413374", "0.8319174", "0.8305984", "0.8300563", "0.82979417", "0.82653725", "0.8225946", "0.82176214", "0.8206454", "0.8191403", "0.8191403", "0.8182568", "0.8177858", "0.8177146", "0.81488675", "0.81348485", "0.81348...
0.0
-1
Get close icon. The generic close icon for dismissing content like modals and alerts.
def yndw(): yndw = '<button class="close">&times;</button>' return yndw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBcF(YKHO):\n return YKHO._icon", "def _G4g(YKHO) -> str | None:\n return YKHO._icon", "def EBcF(YKHO):\n return None", "def _G4g(YKHO) -> str:\n return YKHO._icon", "def _G4g(YKHO):\n return k00g", "def _G4g(YKHO):\n return k00g", "def _G4g(YKHO):\n return p3LA", "def _G4g(Y...
[ "0.6965828", "0.6822602", "0.6799714", "0.6757502", "0.67521", "0.67521", "0.67258257", "0.67258257", "0.67258257", "0.67258257", "0.67258257", "0.67258257", "0.67258257", "0.67258257", "0.67258257", "0.67258257", "0.67258257", "0.67258257", "0.67258257", "0.67258257", "0.672...
0.7176731
0
Size of the vocabulary.
def cAlv(YKHO): return YKHO._V
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bV1g(YKHO):\n return len(YKHO.__vocabulary)", "def iq72(YKHO):\n return len(YKHO.vocab.keys())", "def awLZ(YKHO):\n return len(YKHO.word2index)", "def jXxl(YKHO) -> int:\n pass", "def zNig(YKHO):\n return len(YKHO.vec.vocabulary_)", "def bV1g(YKHO) -> int:\n return 256", "def jXxl...
[ "0.9200316", "0.89967334", "0.8788439", "0.8760452", "0.8724915", "0.8712107", "0.8706069", "0.868297", "0.8653579", "0.8465427", "0.8455268", "0.8432657", "0.8384181", "0.83069134", "0.8273071", "0.8262965", "0.8226153", "0.80133337", "0.8005907", "0.79274005", "0.7899191", ...
0.0
-1
Given a string with integers in it, return a list of those integers.
def SyRt(l5Ny): gXtX = [] evxD = ALbi(l5Ny) for WXos in evxD: gXtX.append(int(WXos)) return gXtX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gXtX(KCHu: str) -> x1iM[int]:\n return XqC_(int, ZbWC.findall('-?\\\\d+', KCHu))", "def mXcU(vIwR):\n return map(int, list(vIwR))", "def OhIQ(KCHu):\n SQ3m = KCHu.split(',')\n gXtX = [kAne(XP5J) for XP5J in SQ3m]\n return gXtX", "def KKqX(WKvO: str) -> list[int]:\n aTqo = '(?:(?<!\\\\d)...
[ "0.8814822", "0.83196473", "0.8318442", "0.824939", "0.824939", "0.8232901", "0.82233465", "0.8168016", "0.80495214", "0.80082715", "0.79964095", "0.7942389", "0.7871268", "0.77607113", "0.7691144", "0.76416796", "0.763733", "0.76174206", "0.758754", "0.75056726", "0.7499979"...
0.7203584
30
String para representar o objeto MyModelName (no site Admin).
def zAg0(YKHO): return YKHO.name
{ "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) -> str:\n return f'MyModel(id={YKHO.id}, my_column={YKHO.my_column})'", "def XWXe(YKHO):\n return 'a model'", "def XWXe(YKHO):\n return 'a model'", "def wOed(YKHO):\n return YKHO.Get...
[ "0.79869866", "0.77711433", "0.7672358", "0.72934324", "0.72934324", "0.7098014", "0.7054586", "0.6966431", "0.69074327", "0.6898256", "0.6891851", "0.68622124", "0.6859915", "0.6844139", "0.6844139", "0.68125033", "0.68125033", "0.6810006", "0.68053335", "0.68053335", "0.680...
0.0
-1
String para representar o objeto MyModelName (no site Admin).
def zAg0(YKHO): return YKHO.name
{ "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) -> str:\n return f'MyModel(id={YKHO.id}, my_column={YKHO.my_column})'", "def XWXe(YKHO):\n return 'a model'", "def XWXe(YKHO):\n return 'a model'", "def wOed(YKHO):\n return YKHO.Get...
[ "0.7985385", "0.7769535", "0.7671499", "0.72904164", "0.72904164", "0.70959824", "0.7053776", "0.6964564", "0.690601", "0.6896643", "0.68903315", "0.68598324", "0.68575835", "0.68416655", "0.68416655", "0.68115497", "0.68115497", "0.6808879", "0.68032485", "0.68032485", "0.68...
0.0
-1
String para representar o objeto MyModelName (no site Admin).
def zAg0(YKHO): return YKHO.name
{ "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) -> str:\n return f'MyModel(id={YKHO.id}, my_column={YKHO.my_column})'", "def XWXe(YKHO):\n return 'a model'", "def XWXe(YKHO):\n return 'a model'", "def wOed(YKHO):\n return YKHO.Get...
[ "0.79869866", "0.77711433", "0.7672358", "0.72934324", "0.72934324", "0.7098014", "0.7054586", "0.6966431", "0.69074327", "0.6898256", "0.6891851", "0.68622124", "0.6859915", "0.6844139", "0.6844139", "0.68125033", "0.68125033", "0.6810006", "0.68053335", "0.68053335", "0.680...
0.0
-1
String para representar o objeto MyModelName (no site Admin).
def zAg0(YKHO): return YKHO.name
{ "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) -> str:\n return f'MyModel(id={YKHO.id}, my_column={YKHO.my_column})'", "def XWXe(YKHO):\n return 'a model'", "def XWXe(YKHO):\n return 'a model'", "def wOed(YKHO):\n return YKHO.Get...
[ "0.79869866", "0.77711433", "0.7672358", "0.72934324", "0.72934324", "0.7098014", "0.7054586", "0.6966431", "0.69074327", "0.6898256", "0.6891851", "0.68622124", "0.6859915", "0.6844139", "0.6844139", "0.68125033", "0.68125033", "0.6810006", "0.68053335", "0.68053335", "0.680...
0.0
-1
String para representar o objeto MyModelName (no site Admin).
def zAg0(YKHO): return YKHO.name
{ "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) -> str:\n return f'MyModel(id={YKHO.id}, my_column={YKHO.my_column})'", "def XWXe(YKHO):\n return 'a model'", "def XWXe(YKHO):\n return 'a model'", "def wOed(YKHO):\n return YKHO.Get...
[ "0.79869866", "0.77711433", "0.7672358", "0.72934324", "0.72934324", "0.7098014", "0.7054586", "0.6966431", "0.69074327", "0.6898256", "0.6891851", "0.68622124", "0.6859915", "0.6844139", "0.6844139", "0.68125033", "0.68125033", "0.6810006", "0.68053335", "0.68053335", "0.680...
0.0
-1
String para representar o objeto MyModelName (no site Admin).
def zAg0(YKHO): return YKHO.name
{ "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) -> str:\n return f'MyModel(id={YKHO.id}, my_column={YKHO.my_column})'", "def XWXe(YKHO):\n return 'a model'", "def XWXe(YKHO):\n return 'a model'", "def wOed(YKHO):\n return YKHO.Get...
[ "0.7985385", "0.7769535", "0.7671499", "0.72904164", "0.72904164", "0.70959824", "0.7053776", "0.6964564", "0.690601", "0.6896643", "0.68903315", "0.68598324", "0.68575835", "0.68416655", "0.68416655", "0.68115497", "0.68115497", "0.6808879", "0.68032485", "0.68032485", "0.68...
0.0
-1
String para representar o objeto MyModelName (no site Admin).
def zAg0(YKHO): return YKHO.title
{ "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) -> str:\n return f'MyModel(id={YKHO.id}, my_column={YKHO.my_column})'", "def XWXe(YKHO):\n return 'a model'", "def XWXe(YKHO):\n return 'a model'", "def wOed(YKHO):\n return YKHO.Get...
[ "0.79869866", "0.77711433", "0.7672358", "0.72934324", "0.72934324", "0.7098014", "0.7054586", "0.6966431", "0.69074327", "0.6898256", "0.6891851", "0.68622124", "0.6859915", "0.6844139", "0.6844139", "0.68125033", "0.68125033", "0.6810006", "0.68053335", "0.68053335", "0.680...
0.0
-1
String para representar o objeto MyModelName (no site Admin).
def zAg0(YKHO): return YKHO.client.name
{ "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) -> str:\n return f'MyModel(id={YKHO.id}, my_column={YKHO.my_column})'", "def XWXe(YKHO):\n return 'a model'", "def XWXe(YKHO):\n return 'a model'", "def wOed(YKHO):\n return YKHO.Get...
[ "0.79869866", "0.77711433", "0.7672358", "0.72934324", "0.72934324", "0.7098014", "0.7054586", "0.6966431", "0.69074327", "0.6898256", "0.6891851", "0.68622124", "0.6859915", "0.6844139", "0.6844139", "0.68125033", "0.68125033", "0.6810006", "0.68053335", "0.68053335", "0.680...
0.0
-1
Gets the enemy player object.
def DbMR(YKHO): return YKHO.__enemy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nAM4(YKHO):\n return YKHO._player", "def nAM4(YKHO):\n return YKHO._player", "def nAM4(YKHO):\n return YKHO._player", "def nAM4(YKHO):\n return YKHO._player", "def nAM4(YKHO):\n return YKHO._player", "def nAM4(YKHO):\n return YKHO.player", "def nAM4(YKHO):\n return YKHO.player"...
[ "0.7419633", "0.7419633", "0.7419633", "0.7419633", "0.7419633", "0.7402108", "0.7402108", "0.73195136", "0.7283159", "0.72112554", "0.72112554", "0.72112554", "0.7189939", "0.7092222", "0.7070188", "0.70376116", "0.69844145", "0.6955674", "0.6899421", "0.68867743", "0.683074...
0.76210785
0
Gets the neutral 'player'.
def SjeU(YKHO): return YKHO.__neutral
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dR5L(YKHO):\n for XP5J in YKHO.PLAYERS:\n if XP5J.getType() == 'human':\n return XP5J\n return None", "def nAM4(YKHO):\n return YKHO.player", "def nAM4(YKHO):\n return YKHO.player", "def nAM4(YKHO):\n return YKHO._player", "def nAM4(YKHO):\n return YKHO._player", "...
[ "0.7464386", "0.7212999", "0.7212999", "0.7084456", "0.7084456", "0.7084456", "0.7084456", "0.7084456", "0.70586586", "0.70360243", "0.6987226", "0.69145197", "0.6840223", "0.6831339", "0.68074256", "0.67980736", "0.67953914", "0.67607933", "0.6752676", "0.67162716", "0.67073...
0.7170279
3
Returns the maximum number of turns in this game.
def SOPb(YKHO): return YKHO.__max_turns
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SnV9(YKHO):\n return YKHO.game.max_moves()", "def MD05(YKHO):\n return sum(YKHO.turns)", "def n6mp(YKHO) -> int:\n return YKHO._max_count", "def CoQy(YKHO):\n return YKHO._parms.get('max_iterations')", "def FfYT(YKHO):\n return YKHO._max_run_count", "def w8vP(YKHO):\n return max(YKH...
[ "0.75712454", "0.72638136", "0.7219227", "0.710888", "0.70910996", "0.70407444", "0.69463265", "0.693541", "0.6923527", "0.68585575", "0.68574107", "0.684062", "0.67687064", "0.67292356", "0.670603", "0.6703549", "0.66624063", "0.66624063", "0.66402954", "0.6633126", "0.66178...
0.83787656
0
Returns the pirate max health.
def UHkj(YKHO): return YKHO.__pirate_max_health
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vWIN(ABDL):\n Dxow = ABDL * 1000\n return Dxow", "def vflO(YKHO):\n return YKHO.__drone_max_health", "def LSDB(YKHO):\n return YKHO.maxhp", "def Ocqc(YKHO):\n return YKHO._HUMIDITY_LIMITS['max']", "def Ocqc(YKHO) -> int:\n bQ6z = nQiK\n if YKHO._setpoint and YKHO._setpoint.metadata...
[ "0.8107004", "0.80855125", "0.78141105", "0.7540102", "0.7430028", "0.7311717", "0.7269328", "0.7238586", "0.7238586", "0.71600103", "0.71310997", "0.7070249", "0.706953", "0.70492196", "0.7048274", "0.7030424", "0.7025821", "0.70225817", "0.70122993", "0.70062304", "0.700311...
0.8946293
0
Returns the drone max health.
def vflO(YKHO): return YKHO.__drone_max_health
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHkj(YKHO):\n return YKHO.__pirate_max_health", "def vWIN(ABDL):\n Dxow = ABDL * 1000\n return Dxow", "def LSDB(YKHO):\n return YKHO.maxhp", "def Ocqc(YKHO):\n return YKHO._HUMIDITY_LIMITS['max']", "def Ocqc(YKHO) -> int:\n bQ6z = nQiK\n if YKHO._setpoint and YKHO._setpoint.metadat...
[ "0.7962342", "0.78757966", "0.7585897", "0.75386435", "0.75056326", "0.73330736", "0.73091954", "0.72398406", "0.71372414", "0.6879946", "0.6867585", "0.6792974", "0.6755134", "0.675152", "0.6743199", "0.6730107", "0.6723225", "0.6723225", "0.6709595", "0.67070866", "0.668373...
0.88949794
0
Returns the pirate speed.
def jGJh(YKHO): return YKHO.__pirate_max_speed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ERGf(YKHO):\n return YKHO._speed", "def ERGf(YKHO):\n return YKHO.__speed", "def ERGf(YKHO):\n return YKHO.__speed", "def ERGf(YKHO):\n return YKHO._speed", "def iBLD(YKHO):\n return YKHO.__speed", "def PW4g(YKHO) -> float:\n ...", "def iBLD(YKHO):\n return YKHO._speed", "def...
[ "0.7909041", "0.79008573", "0.79008573", "0.78580356", "0.7847612", "0.7802085", "0.7721225", "0.7721225", "0.7721225", "0.762819", "0.7570069", "0.7570069", "0.7557696", "0.74910504", "0.74902797", "0.74852073", "0.74852073", "0.74842876", "0.7459236", "0.7459236", "0.745923...
0.7095304
46
Returns the drone speed.
def Vk76(YKHO): return YKHO.__drone_max_speed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ERGf(YKHO):\n return YKHO._speed", "def ERGf(YKHO):\n return YKHO.__speed", "def ERGf(YKHO):\n return YKHO.__speed", "def ERGf(YKHO):\n return YKHO._speed", "def PW4g(YKHO) -> float:\n ...", "def iBLD(YKHO):\n return YKHO.named.data.sensordata['torso_subtreelinvel'][0]", "def iBLD...
[ "0.7824984", "0.7822931", "0.7822931", "0.78013545", "0.77864933", "0.7761487", "0.76810735", "0.7663885", "0.7652556", "0.7652556", "0.76185215", "0.75360644", "0.7475984", "0.7475984", "0.7475984", "0.73923093", "0.7384801", "0.73812634", "0.73779815", "0.73779815", "0.7346...
0.73179686
25
Returns the number of rows in the board.
def RJbo(YKHO): return YKHO.__row_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usx6(YKHO) -> int:\n return len(YKHO._game_state.game_board)", "def _1Ox(YKHO):\n return YKHO._grid.get_num_rows()", "def _1Ox(YKHO):\n return YKHO._grid.get_num_rows()", "def l003(YKHO):\n return len(YKHO.cells)", "def usx6(YKHO) -> int:\n return len(YKHO.matrix)", "def lXtG(YKHO):\n ...
[ "0.85679317", "0.799209", "0.799209", "0.79194677", "0.7904037", "0.779841", "0.775398", "0.7699532", "0.76840997", "0.7645583", "0.76434267", "0.7626112", "0.7601698", "0.7577318", "0.7523499", "0.74208105", "0.74147147", "0.74102515", "0.7408264", "0.73701584", "0.7364603",...
0.71329325
60
Test that 'Sign In' page is seen if select 'Logout' option in 'Hello, User' dropdown
def wcVf(SYsl, MC83): cD8n = Rali(SYsl) cD8n.load() cD8n.hello_user_click() cD8n.user_logout_select() assert cD8n.get_title() == 'Sign In'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y9nz(YKHO):\n im04 = YKHO.app.get('/')\n YKHO.assertIn('register', im04.get_data(as_text=True).lower())\n YKHO.assertIn('login', im04.get_data(as_text=True).lower())", "def EN7c(YKHO):\n geh0 = YKHO.client.get(gxEw('selection'))\n YKHO.assertRedirects(geh0, gxEw('signin') + '?redirection_vers=...
[ "0.7892492", "0.75125974", "0.74724734", "0.7436436", "0.73859984", "0.7140954", "0.7139433", "0.7108865", "0.709517", "0.70685303", "0.70677996", "0.70328784", "0.702595", "0.7024384", "0.7020242", "0.69888747", "0.6955782", "0.6950211", "0.6946621", "0.6919468", "0.69112825...
0.7158123
5
Normalize ``path``. It returns ``path`` with leading and trailing slashes, and no multiple continuous slashes.
def s5sT(pmON): if pmON: if pmON[0] != '/': pmON = '/' + pmON if pmON[-1] != '/': pmON = pmON + '/' pmON = fmqA.sub('/', pmON) else: pmON = '/' return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s5sT(pmON):\n pmON = pmON.strip('/')\n pmON = '/' + pmON + '/' if pmON else '/'\n return pmON", "def byFv(pmON):\n pmON = pmON.replace('\\\\', '/')\n pmON = pmON.replace('//', '/')\n DzmH = []\n for Q7me in pmON.split('/'):\n if Q7me == '..':\n if DzmH:\n ...
[ "0.79832274", "0.79816854", "0.7957506", "0.7915252", "0.79113966", "0.7767458", "0.77016133", "0.75020635", "0.74589956", "0.7438408", "0.73613614", "0.7355848", "0.731269", "0.7291639", "0.71726364", "0.71619993", "0.7104088", "0.7095945", "0.7059662", "0.7021207", "0.70154...
0.83468485
0
Normalize ``file path``. It returns ``path`` with leading but no trailing slashes, and no multiple continuous slashes.
def gAno(pmON): if pmON: if pmON[0] != '/': pmON = '/' + pmON pmON = fmqA.sub('/', pmON) else: pmON = '/' return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HBfW(YKHO, pmON):\n pmON = pmON.strip('/')\n if YKHO.path_fixer:\n pmON = YKHO.path_fixer(pmON)\n return pmON.strip('/')", "def byFv(pmON):\n pmON = pmON.replace('\\\\', '/')\n pmON = pmON.replace('//', '/')\n DzmH = []\n for Q7me in pmON.split('/'):\n if Q7me == '..':\n ...
[ "0.79150844", "0.7691901", "0.7648984", "0.75005424", "0.7468312", "0.73881733", "0.7376137", "0.73607695", "0.7359674", "0.7325484", "0.7311828", "0.73066556", "0.7286822", "0.7284491", "0.72117394", "0.71600556", "0.7142826", "0.7110102", "0.7078589", "0.699748", "0.6990316...
0.818075
0
Check if file exists in directory.
def n4rh(I7OS, fKpb): hHld = [] for Ux0P in SC2F.glob('{0}/{1}'.format(I7OS, fKpb), recursive=False): hHld.append(Ux0P) cKQZ = [gAno(ZfUD) for ZfUD in hHld] return cKQZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwy0(YKHO, Ux0P):\n return Hy7s.access(YKHO.filename_in_dir(Ux0P), Hy7s.F_OK)", "def fepa(nUeQ, AGPF):\n bo34.debug('checking if file {0} exists in {1} directory'.format(nUeQ, AGPF))\n with gvhc(AGPF):\n if Hy7s.path.isfile(nUeQ):\n return True\n else:\n return Fa...
[ "0.83107936", "0.81772625", "0.80867815", "0.808442", "0.8025227", "0.80222064", "0.79917705", "0.79821014", "0.7960942", "0.7958209", "0.79434085", "0.79174423", "0.7908832", "0.78791857", "0.7859973", "0.781779", "0.78097767", "0.78069276", "0.78019947", "0.7794194", "0.779...
0.0
-1
Mocked AWS Credentials for moto.
def AP1z(): Hy7s.environ['AWS_ACCESS_KEY_ID'] = 'testing' Hy7s.environ['AWS_SECRET_ACCESS_KEY'] = 'testing' Hy7s.environ['AWS_SECURITY_TOKEN'] = 'testing' Hy7s.environ['AWS_SESSION_TOKEN'] = 'testing'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PUyH():\n Hy7s.environ['AWS_ACCESS_KEY_ID'] = 'testing'\n Hy7s.environ['AWS_DEFAULT_REGION'] = 'ap-southeast-2'\n Hy7s.environ['AWS_SECRET_ACCESS_KEY'] = 'testing'\n Hy7s.environ['AWS_SECURITY_TOKEN'] = 'testing'\n Hy7s.environ['AWS_SESSION_TOKEN'] = 'testing'", "def MU4w(eXVH, Ehsq):\n Ehs...
[ "0.8539649", "0.7609735", "0.72904336", "0.72635967", "0.7212455", "0.7182388", "0.71761876", "0.71761876", "0.71761876", "0.71761876", "0.7141403", "0.7063853", "0.66895556", "0.64615655", "0.6426863", "0.64185965", "0.633513", "0.63053906", "0.62641495", "0.6187777", "0.617...
0.7143531
11
Test that a child uri env name not in ALL_CAPS_SNAKE_CASE doesn't validate
def b1rw(YKHO): qySE = '\n [\n {\n "key": "gis",\n "id": "some-id",\n "uri_env_name": "an environment variable not in CAPS_CASE is invalid per the credentials spec"\n }\n ]\n ' with YKHO.assertRai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M0ir(mWFP):\n if not ZbWC.match('^[a-zA-Z0-9_-]+$', mWFP):\n eTsH(404)\n if mWFP.startswith('base_'):\n eTsH(404)", "def sqwD(YKHO):\n bnjs = ExNN('sIp:foo.com')\n assert b'sip' == bnjs.protocol", "def iH98():\n assert PBJY.name_to_snake_case('PARAGRAPH') == 'paragraph'\n as...
[ "0.6392708", "0.5889888", "0.58450687", "0.58206314", "0.5761978", "0.56675845", "0.55356985", "0.5534952", "0.5527491", "0.55176836", "0.5497412", "0.5486868", "0.5466451", "0.5457398", "0.5449558", "0.5444975", "0.54354334", "0.5422564", "0.541851", "0.5417943", "0.5406266"...
0.6654584
0
return the screen width
def YRPK(YKHO) -> int: return YKHO._screen.getmaxyx()[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVTK():\n return KnxT.width", "def V8C_():\n TVTK = float(fvO8) / 9 - 5\n return TVTK", "def TVTK(YKHO):\n return Z33s._win.width", "def TVTK(YKHO):\n return YKHO.screen.getmaxyx()[1]", "def Kdbb() -> int:\n pass", "def TVTK(YKHO):\n return YKHO.request('nvim_win_get_width')", ...
[ "0.83933526", "0.82239354", "0.79613096", "0.7921877", "0.79061276", "0.7812512", "0.7775307", "0.772664", "0.7586575", "0.74841887", "0.74742985", "0.74660474", "0.73755014", "0.73654586", "0.73654586", "0.7290234", "0.7271523", "0.726438", "0.726438", "0.7248053", "0.723609...
0.8048346
2