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
Return a custom 404 error.
def m7kB(tTpl): return ('Sorry, Nothing at this URL.', 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf():\n return c1Bu(404)", "def RQdI(P1dF):\n return '404 Error'", "def RQdI(P1dF):\n return 'Bummer, there is nothing at this URL.'", "def kfnF(P1dF):\n return ('No page here, dood. 404!', 404)", "def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)", "def m7kB(XObx):\...
[ "0.81155777", "0.8041831", "0.7739811", "0.7737286", "0.7717209", "0.7688699", "0.7671161", "0.76105595", "0.76020473", "0.7570478", "0.7552754", "0.75454265", "0.75192803", "0.7474545", "0.7457752", "0.7455727", "0.7455212", "0.7450199", "0.74426883", "0.742785", "0.7405555"...
0.72543144
43
pad a sequence of data specified by a given max_length list, int > array
def ViKf(Lcqa, Z5wO, _NR1=30): Lcqa = S5Za(Lcqa, _NR1, padding='post', truncating='post') Z5wO = S5Za(Z5wO, _NR1, padding='post', truncating='post') return (Lcqa, Z5wO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gc7n(YKHO, ezWE, FvR6):\n if FvR6 > len(ezWE):\n gkRb = [0] * (FvR6 - len(ezWE))\n ezWE.extend(gkRb)\n return ezWE[:FvR6]", "def AeBf(YKHO, qw7D, qBwg, wzH_=None):\n KLk8 = 0\n for Q6uT in qw7D:\n KLk8 = max(KLk8, len(Q6uT))\n if wzH_ is not None:\n KLk8 = max(KLk8,...
[ "0.81016314", "0.79266065", "0.77404624", "0.7690541", "0.7676706", "0.76214975", "0.7527646", "0.7444111", "0.72843784", "0.7280581", "0.72568583", "0.7182862", "0.7176686", "0.71321", "0.7129026", "0.7092075", "0.7076387", "0.7069801", "0.70455825", "0.70083386", "0.699498"...
0.6865131
26
Env wrapper that returns a previous observation with probability `p` and the current observation with a probability `1p`. `last_k` previous observations are stored.
def FIMM(YKHO, sEAN: gym.Env, bAGW: float, uKNz: int): super().__init__(YKHO, sEAN) if 1 >= bAGW >= 0: YKHO._sticky_probability = bAGW else: raise ValueError(f'sticky_probability = {bAGW} is not in the interval [0, 1].') YKHO._last_k = uKNz + 1 YKHO._observations: MUE7 = MUE7([], max...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nxF7(YKHO):\n _Fei = YKHO.config\n exwG = _Fei['batch_size'] * _Fei['q/n_samples']\n cDK5 = _Fei['q/n_samples']\n with gnPz.get_or_create_scope('model', reuse=True):\n _gHv = ZylS.cast(YKHO.p_h_L.sample(exwG), _Fei['dtype'])\n _gHv = ZylS.reshape(_gHv, [_Fei['q/n_samples'], _Fei['batc...
[ "0.58422875", "0.54212475", "0.52596", "0.5250174", "0.5237888", "0.52241963", "0.51826686", "0.51438004", "0.5091699", "0.5071481", "0.50413746", "0.5002886", "0.49614602", "0.49575868", "0.49465007", "0.49387398", "0.49345186", "0.4924787", "0.4917048", "0.49155378", "0.490...
0.54807967
1
Create a JSON configuration file
def v_ul(mWFP): GPtr = {} GPtr['name'] = mWFP QFgE = Hy7s.getcwd() + '/' + mWFP with open(Hy7s.path.join(QFgE, 'configuration.json'), 'w') as Nu1S: qQXR.dump(GPtr, Nu1S)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmIy():\n with open(kmqQ, 'w', encoding='utf-8') as nUeQ:\n qQXR.dump(UiCc, nUeQ, indent=3)", "def YRUn(GPtr, Ux0P):\n with open(Ux0P, 'w+') as eHNT:\n qQXR.dump(vars(GPtr), eHNT)", "def uyD2(GPtr: dict, Ux0P: str):\n with open(Ux0P, 'w', encoding='utf-8') as eHNT:\n THWE.dump...
[ "0.79925877", "0.75612205", "0.7511189", "0.75044733", "0.72702944", "0.7265625", "0.7182749", "0.715349", "0.7092775", "0.707714", "0.70369494", "0.69433916", "0.6888235", "0.68808824", "0.6878264", "0.68310314", "0.68270767", "0.68089056", "0.67931706", "0.6792589", "0.6791...
0.79342985
1
Test that N/A values (None, numpy.nan) are handled consistently when using CSV vs Arrow as a prediction payload format. 1. Make CSV and Arrow prediction payloads from the same dataframe 2. Read both payloads 3. Assert the resulting dataframes are equal
def q9Uw(ZqHk): jQ3Z = rLdf.DataFrame({'col_int': [1, oyIN.nan, None], 'col_obj': ['a', oyIN.nan, None]}) vf4n = Hy7s.path.join(ZqHk, 'X.csv') with open(vf4n, 'w') as eHNT: eHNT.write(jQ3Z.to_csv(index=False)) h0ws = Hy7s.path.join(ZqHk, 'X.arrow') with open(h0ws, 'wb') as eHNT: eHNT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cm5F(YKHO):\n CAjq()\n bOBl = vXOu()\n YKHO.assertIs(type(bOBl['Total'][0]), XTiz.float64)\n YKHO.assertIs(type(bOBl['InvoiceDate'][0]), str)\n YKHO.assertIs(type(bOBl['Count'][0]), XTiz.int64)\n YKHO.assertEqual(bOBl['Total'][0], 8198.79)\n YKHO.assertDataframeEqual(bOBl, fmKa())\n gL5...
[ "0.61763406", "0.6114238", "0.6098677", "0.60721225", "0.607004", "0.60079575", "0.59785664", "0.59550744", "0.59273005", "0.5888702", "0.58884233", "0.5882254", "0.5847906", "0.58434826", "0.58389467", "0.5829927", "0.5829745", "0.5829139", "0.5826037", "0.58072144", "0.5796...
0.8162266
0
Returns the cross entropy for the given `logits` and `labels`.
def zC_E(KeL5, Crrw): N6Z1 = ZylS.nn.softmax(KeL5) sSN_ = ZylS.losses.softmax_cross_entropy(onehot_labels=Crrw, logits=KeL5) return (N6Z1, sSN_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qN0O(YKHO, KeL5, Crrw):\n return vuvg.cross_entropy(KeL5, Crrw)", "def FUSE(pw4I, Crrw):\n XP5J = N93T(pw4I)\n HieJ = -Crrw * oyIN.log(XP5J + 1e-08)\n return oyIN.mean(HieJ)", "def N77f(KeL5, Crrw):\n Crrw = ZylS.to_int64(Crrw)\n CqbS = ZylS.nn.sparse_softmax_cross_entropy_with_logits(lab...
[ "0.85329103", "0.78234965", "0.7710926", "0.7591083", "0.75721323", "0.75721323", "0.75562805", "0.7552464", "0.7445488", "0.7412907", "0.73658127", "0.7359791", "0.7329148", "0.72940445", "0.7279801", "0.7266132", "0.72471684", "0.7246889", "0.7220879", "0.72125256", "0.7212...
0.70683247
32
Returns the learning rate during training based on the current epoch.
def gWpO(MyPD, QjBU, dfHy=None): assert dfHy is not None ybL1 = int(QjBU.train_size / QjBU.batch_size) tspZ = Vi3Z(QjBU.lr, MyPD, dfHy, ybL1, QjBU.num_epochs) return tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr", "def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)", "def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)", "def cBsx(YKHO, yKTC, qtWj):\n \"\"\"\n Dan's Methos\n \"\"\"\n yj8H = yKTC * 0.001\n Z9rn = oyIN.po...
[ "0.889373", "0.864617", "0.864617", "0.8347587", "0.808271", "0.7976919", "0.78345776", "0.7733169", "0.75359875", "0.7415178", "0.74070424", "0.7342057", "0.7311969", "0.7279861", "0.7237017", "0.72271466", "0.72149163", "0.71686745", "0.7139177", "0.7139177", "0.71343726", ...
0.65126944
74
Creates and saves a User with the given username, email and password.
def xWi2(YKHO, D3lj, NtEF, jTXt, WJxI, qMrd, **wdCM): wzkt = rIAI.now() D3lj = YKHO.normalize_email(D3lj) CBIr = YKHO.model(username=NtEF, email=D3lj, is_staff=WJxI, is_active=True, is_superuser=qMrd, date_joined=wzkt, **wdCM) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se...
[ "0.86018157", "0.84706366", "0.8462776", "0.8417308", "0.8413365", "0.839183", "0.8346418", "0.83453476", "0.8314481", "0.8306914", "0.8288764", "0.827679", "0.8270353", "0.82577944", "0.8213095", "0.81978804", "0.8175898", "0.81719273", "0.8164025", "0.8162915", "0.8138058",...
0.0
-1
Map into the Profile model.
def hfK9(YKHO): iQG7 = YKHO.details() return SYRW(book_id=YKHO.book_id, title=YKHO.title(), user_id=YKHO.user_id(), username=YKHO.username(), summary=YKHO.summary(), published=YKHO.published(), updated=YKHO.updated(), **iQG7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j3D5(YKHO) -> SYRW:\n return SYRW(**{**YKHO.profile, **YKHO.contact})", "def jaal(z39Z: Dict[str, Any]) -> zas9:\n CBIr = z39Z['users'][0]['user']\n return zas9(CBIr)", "def JWGT(id):\n CBIr = mv1M.query.get(id)\n return CBIr.to_dict_profile()", "def ipQk(YKHO):\n CBIr = wnQ_.get_curren...
[ "0.6386944", "0.6078071", "0.5955639", "0.59452206", "0.5924131", "0.5893735", "0.58359146", "0.5818783", "0.58164734", "0.5816099", "0.56320775", "0.56275004", "0.5618273", "0.55763835", "0.5563363", "0.5558556", "0.55290043", "0.5456606", "0.54563314", "0.54117835", "0.5393...
0.65340567
0
Check if two points 'point' to the same point.
def xa14(YKHO, RKYb): return YKHO.x == RKYb.x and YKHO.y == RKYb.y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z4s7(jzdc, Fg_i):\n return oyIN.array_equal(jzdc._Point__loc, Fg_i._Point__loc)", "def xa14(YKHO, PVCF):\n return YKHO.xCoordinate == PVCF.xCoordinate and YKHO.yCoordinate == PVCF.yCoordinate", "def kJTp(YKHO, Elif):\n if not isinstance(Elif, PvyL):\n return False\n return YKHO.longitude...
[ "0.7738884", "0.7630163", "0.75458723", "0.7507236", "0.74646354", "0.7366843", "0.72879654", "0.7230881", "0.71916497", "0.7021775", "0.70010066", "0.69988114", "0.6980971", "0.69447684", "0.69423074", "0.6922803", "0.6887719", "0.68692786", "0.68417424", "0.6823753", "0.680...
0.6565101
40
Get Pt as numpy array.
def oyIN(YKHO): return oyIN.array([YKHO.x, YKHO.y])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M3Ox(AU8u: dlib.point):\n return oyIN.array([AU8u.x, AU8u.y])", "def lYQI(Ty9i):\n return Ty9i.data.cpu().numpy()", "def sEd0(AU8u: dict):\n return oyIN.array([AU8u['x'], AU8u['y']])", "def u9qD(YKHO):\n return oyIN.array([YKHO._center[0], YKHO._center[1], YKHO._width, YKHO._length, YKHO._ang...
[ "0.67304754", "0.66762954", "0.66032225", "0.634031", "0.6317778", "0.6309739", "0.62842506", "0.6168719", "0.61543065", "0.6075997", "0.6056005", "0.6040111", "0.6038248", "0.60333204", "0.59668833", "0.5956905", "0.5941488", "0.594069", "0.592537", "0.59135854", "0.59005666...
0.6592524
3
Get the distance between the player and the goal.
def vcpR(YKHO) -> float: PsCT = YKHO.best_route return sum(PsCT.values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Q7N(YKHO, oyg0):\n return YKHO.playerPos.distance(oyg0)", "def zG70(YKHO):\n print(\"voici la distance à l'obstacle\")", "def NosY(YKHO):\n ni8D = YKHO.vehicle.commands.next\n if ni8D == 1:\n return None\n MOoD = YKHO.vehicle.commands[ni8D]\n QnmL = MOoD.x\n FDPT = MOoD.y\n ...
[ "0.7473132", "0.7293953", "0.7254824", "0.7148412", "0.7128136", "0.71275765", "0.7054903", "0.68885946", "0.6857143", "0.68300825", "0.6792063", "0.6770327", "0.67508197", "0.6718603", "0.67152125", "0.66675186", "0.66256315", "0.66200554", "0.66099554", "0.66027814", "0.655...
0.82236296
0
Test the case that Auth0 returns json without an access key
def yQ4v(NCls, AZgw): gCuF.AUTH0_CLIENT = '123' gCuF.AUTH0_SECRET = 'abc' class Resp: def qQXR(YKHO): return {'notvalid': None} def hGN5(YKHO): return 'blah' def phh3(YKHO): pass TMAJ = AZgw.patch('creator.authentication.requests.post') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q93M():\n return pz3A({'answer': 42})", "def ZqaG(YKHO):\n nPrm = {'EdX-ID': YKHO.receipt_id, 'Result': 'Testing', 'Reason': 'Testing', 'MessageType': 'Testing'}\n zgjV = qQXR.dumps(nPrm)\n geh0 = YKHO.client.post(gxEw('verify_student_results_callback'), data=zgjV, content_type='application/json'...
[ "0.68301845", "0.67362094", "0.6731003", "0.66733056", "0.6644412", "0.66375613", "0.663029", "0.6622536", "0.6601812", "0.65738106", "0.65738106", "0.6570111", "0.6558032", "0.65231293", "0.6517943", "0.6509028", "0.6487858", "0.6475346", "0.6441348", "0.6441348", "0.6439401...
0.0
-1
Test that no token is fetched when there is not enough config
def BaGC(NCls, AZgw): gCuF.AUTH0_CLIENT = None TMAJ = AZgw.patch('creator.authentication.requests.post') assert gNTt('my_aud') is None assert TMAJ.call_count == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kz_t(YKHO):\n geh0 = YKHO.app.get('/api/v3/users')\n YKHO.assertEqual(geh0.status_code, 401)", "def dL2g(YKHO, x0hE):\n sxkB(x0hE, status=401)", "def N2vy(YKHO):\n ltnb({}, opsdroid=hFax())\n YKHO.assertLogs('_LOGGER', 'error')", "def JCcY(YKHO):\n with YKHO.client:\n geh0 = YKHO...
[ "0.71030533", "0.7093617", "0.6954731", "0.68749434", "0.68542343", "0.68245643", "0.67864007", "0.6760013", "0.6729617", "0.6728336", "0.67073685", "0.66850024", "0.66672915", "0.66597193", "0.6608426", "0.65870893", "0.65839183", "0.6570184", "0.65669554", "0.65669554", "0....
0.718768
0
The creation timestamp of a CertificateIssuanceConfig.
def x7vo(YKHO) -> str: return qe4Y.get(YKHO, 'create_time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OhEq(YKHO):\n return YKHO.get_signingTime()", "def OhEq(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_timestamp')", "def OhEq(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_timestamp')", "def OhEq(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_timestamp')", "def OhEq(YKHO) -> qe4Y.Outpu...
[ "0.75563693", "0.7485385", "0.7485385", "0.7485385", "0.7162051", "0.7075112", "0.7075112", "0.7075112", "0.70109284", "0.6970187", "0.69627196", "0.69609106", "0.6876807", "0.6876807", "0.6876807", "0.6859561", "0.6859561", "0.68426657", "0.68318677", "0.6739961", "0.6627407...
0.6722326
34
A userdefined name of the certificate issuance config. CertificateIssuanceConfig names must be unique globally and match pattern `projects//locations//certificateIssuanceConfigs/`.
def mWFP(YKHO) -> str: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QnHI(aCrj: Optional[pulumi.Input[str]]=None, Rci7: Optional[pulumi.Input[str]]=None, bNKA: Optional[pulumi.Input[Optional[str]]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[oJfr]:\n ...", "def wXhe(aCrj: Optional[str]=None, Rci7: Optional[str]=None, bNKA: Optional[str]=None, VKhi: Opti...
[ "0.61326957", "0.5638635", "0.55700773", "0.5549022", "0.54405814", "0.5380444", "0.5368658", "0.53381824", "0.53381824", "0.53057086", "0.5272185", "0.5266923", "0.52655244", "0.5196403", "0.51251894", "0.5121793", "0.50983804", "0.5064935", "0.5045498", "0.50395834", "0.502...
0.0
-1
The last update timestamp of a CertificateIssuanceConfig.
def nP7s(YKHO) -> str: return qe4Y.get(YKHO, 'update_time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vit6(YKHO):\n return YKHO._last_update_time", "def Ligi(YKHO) -> qcWV:\n OXNQ = YKHO['tbs_cert_list']['this_update'].native\n return OXNQ", "def cV9T(YKHO):\n ttzF = None\n if Hy7s.path.isfile(YKHO.themes_config_path):\n ttzF = qcWV.utcfromtimestamp(Hy7s.path.getmtime(YKHO.themes_conf...
[ "0.70002806", "0.695427", "0.6888416", "0.68704057", "0.68698895", "0.68135715", "0.6774717", "0.6774717", "0.67425", "0.67425", "0.66539323", "0.6635681", "0.6635294", "0.66305935", "0.6594932", "0.6583277", "0.6538762", "0.6524823", "0.6524823", "0.65207016", "0.65207016", ...
0.6284703
39
Set the learning rate of a given `model` generated by `fe.build`.
def LruE(C3ST: Union[tf.keras.Model, torch.nn.Module], tspZ: float, oNEO: Optional[float]=None): assert hasattr(C3ST, 'fe_compiled') and C3ST.fe_compiled, 'set_lr only accept models from fe.build' if isinstance(C3ST, ZylS.keras.Model): if isinstance(C3ST.current_optimizer, iUUf.optimizers.DecoupledWeigh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVtO(YKHO, mVUw):\n YKHO.SGD.set_learning_rate(mVUw)", "def yCHN(cuiw, _nen, BL_6, WVUz):\n cuiw.run(_nen, feed_dict={BL_6: WVUz})", "def e_63(K0do, qtWj, DMw4):\n if DMw4 == 1:\n if qtWj < 80:\n tspZ = qIxc.lr\n elif qtWj < 120:\n tspZ = qIxc.lr * 0.1\n ...
[ "0.71395046", "0.70618266", "0.6917554", "0.68914354", "0.6872831", "0.6862473", "0.68475896", "0.67931026", "0.6760157", "0.6728568", "0.6724322", "0.67154443", "0.6710236", "0.6707238", "0.6705722", "0.6688397", "0.668348", "0.6672866", "0.6672866", "0.6665554", "0.6663909"...
0.71793497
0
Get the amount of coin in the address passed in. Always returns a single float.
def rCkj(YKHO, z50T, UTX6, _AO2=1): raise NotImplementedError("This service does not support getting address balances. Or rather it has no defined 'get_balance' method.")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aTpA(UTX6):\n wCHR = 'https://blockchain.info/q/addressbalance/' + UTX6\n GfdN = G4JS.get(wCHR)\n BWXx = int(GfdN.content) / 100000000.0\n return BWXx", "def oxN9(g18Y):\n XplW = 0\n LgZ4 = VGpQ(g18Y)\n for XkN1 in LgZ4:\n XplW += float(XkN1['amount'])\n return XplW", "def rC...
[ "0.7205577", "0.71354717", "0.6937523", "0.68846685", "0.68304414", "0.68096286", "0.6396666", "0.62455636", "0.61095047", "0.6093223", "0.6065655", "0.60491633", "0.6025227", "0.60169697", "0.6006699", "0.6005902", "0.5985519", "0.5955521", "0.59548277", "0.5950082", "0.5943...
0.53218186
96
Get block based on either block height, block number or get the latest block. Only one of the previous arguments must be passed on.
def gyco(YKHO, z50T, de0z='', PUiQ='', fsbt=False): raise NotImplementedError("This service does not support getting getting block data. Or rather it has no defined 'get_block' method.")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQDC(H2v2, MOPg):\n if H2v2 == 0:\n print('retrieving genesis block...')\n return SHMZ\n else:\n c42p = MOPg[0]['height']\n Aofo = MOPg[c42p + H2v2 - 2]\n assert H2v2 == Aofo['height']\n return Aofo", "def o1MH(YKHO, H2v2: int):\n try:\n return YKHO.b...
[ "0.72756964", "0.7181289", "0.7142906", "0.6979643", "0.6786556", "0.67289954", "0.6712528", "0.66829705", "0.6668895", "0.6605809", "0.65997833", "0.65225774", "0.6509247", "0.6488133", "0.6473838", "0.64637846", "0.6461936", "0.6452231", "0.6438939", "0.64360714", "0.641553...
0.76772964
0
A new graph is generated when the user toggles between the Line, Area, and Candlesticks radio buttons. This function deletes the previous graph after the new one is generated.
def CeeT(YKHO): uSz2 = YKHO.winfo_children() us2r = [] for TEdI in uSz2: if type(TEdI) == on8l.Frame: us2r.append(TEdI) for f4IJ in range(len(us2r) - 1): us2r[f4IJ].destroy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t8Gy(YKHO):\n for jzdc in range(YKHO.graf_t.buffer_info()[1]):\n YKHO.graf_t.pop()\n for jzdc in range(YKHO.graf_r.buffer_info()[1]):\n YKHO.graf_r.pop()\n for jzdc in range(YKHO.graf_x0.buffer_info()[1]):\n YKHO.graf_x0.pop()\n for jzdc in range(YKHO.graf_x1.buffer_info()[1]):...
[ "0.6685514", "0.63651407", "0.6362829", "0.6317258", "0.6301736", "0.6233415", "0.6069716", "0.60677135", "0.60390854", "0.60253495", "0.59355724", "0.5927729", "0.592492", "0.58967906", "0.58572817", "0.5855828", "0.5855741", "0.58446515", "0.5837996", "0.5828073", "0.582635...
0.6271218
5
Drop samples by sample identifiers.
def wwXY(YKHO, A07C: AnyGenericIdentifier, **B2fa) -> h8nf[nwzi]: ilYk = oyIN.asarray(A07C) if YKHO.xsid.isin(ilYk).sum() == len(ilYk): return YKHO._remove_samples_by_id(ilYk, **B2fa) else: raise ValueError('Invalid sample ids are provided.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rdvi(YKHO, A07C: AnyGenericIdentifier, **B2fa) -> h8nf[nwzi]:\n GstI = oyIN.asarray(A07C, dtype=YKHO.__internal_samples.index.dtype)\n if len(GstI) > 0:\n YKHO.__internal_samples.drop(GstI, inplace=True)\n return YKHO._ratify_action('_remove_samples_by_id', A07C, **B2fa)", "def rry7(YKHO, t5H...
[ "0.74150854", "0.7046915", "0.6834506", "0.6785585", "0.64242166", "0.62633795", "0.62346476", "0.6174152", "0.6078232", "0.6041745", "0.6000368", "0.5999657", "0.59908336", "0.5947375", "0.59472364", "0.5927663", "0.59003496", "0.5890255", "0.5872719", "0.581554", "0.5750582...
0.7465148
0
Convert a motor step position to absolute mm.
def FMeX(YPaw): return YPaw / i_IO.STEPS_PER_MM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pF_V(oeNL):\n return oeNL * i_IO.STEPS_PER_MM", "def QnxS(YKHO, cpvk):\n return cpvk / YKHO.microstep", "def Y6Cm(BIUA):\n return BIUA / 1000.0", "def kQbA(l1UJ):\n return l1UJ * 1000.0", "def kQbA():\n kZw_.context.scene.unit_settings.scale_length = 0.001\n kZw_.context.scene.unit_se...
[ "0.6836627", "0.6787957", "0.5954462", "0.58978343", "0.58848786", "0.58125484", "0.5806784", "0.5804882", "0.57508826", "0.57389694", "0.57245016", "0.56991845", "0.5651881", "0.56379604", "0.56360954", "0.5566998", "0.55438864", "0.5540775", "0.55354816", "0.551437", "0.549...
0.69749653
0
Get the raw status field.
def hz_K(YKHO): YKHO.__param_lock.acquire() jGRS = YKHO.__status YKHO.__param_lock.release() return jGRS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO):\n return O6qs[YKHO.fields['status']]", "def CHRo(YKHO):\n return YKHO.status", "def hqCf(YKHO):\n return YKHO.__status", "def hqCf(YKHO):\n return u'%s' % YKHO.get_status_display()", "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO):\n return YKHO.status", "def V...
[ "0.7672218", "0.7490699", "0.748032", "0.744804", "0.7430829", "0.7430829", "0.7430829", "0.74069136", "0.73661876", "0.7363749", "0.7335432", "0.7310167", "0.72708374", "0.72313976", "0.7231174", "0.72055376", "0.7177862", "0.7118792", "0.7111588", "0.70912224", "0.70912224"...
0.7841977
0
Returns true if the motor is currently moving.
def wZdq(YKHO): wZdq = YKHO.get_raw_status() & YKHO.STATUS_MOVING return bool(wZdq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXJZ(YKHO):\n return YKHO._arm.get_is_moving()", "def wZdq(YKHO):\n return YKHO.gripper_io.get_signal_value('is_moving')", "def wZdq(YKHO):\n return YKHO.steps < YKHO.max_steps", "def Qwlo(YKHO):\n return YKHO.dp.state() == Dosg.DevState.MOVING", "def wZdq(YKHO):\n geh0 = YKHO.__send_and...
[ "0.8021455", "0.7990758", "0.78967416", "0.7811878", "0.77514744", "0.77400964", "0.76786697", "0.73820573", "0.7361447", "0.72986686", "0.72636473", "0.7260419", "0.7147643", "0.71316934", "0.7110344", "0.6996685", "0.69554687", "0.6842992", "0.6811508", "0.6785885", "0.6743...
0.8182077
0
Show info about user.
def wHJl(YKHO): return f'<User_id= {YKHO.user_id} user_name= {YKHO.user_name}>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T6Tk(YKHO):\n mWFP = YKHO.get_user_name()\n print(f'Name: {mWFP.title()}')\n print(f'Age: {YKHO.age}')\n print(f'Gender: {YKHO.gender.title()}')\n print(f'Mobile: {YKHO.m_number}')", "def T6Tk(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('user_details.html', user=CBIr)", "...
[ "0.87687427", "0.799944", "0.7912591", "0.78403974", "0.78403974", "0.78004324", "0.77459043", "0.7667942", "0.7643837", "0.7636991", "0.7602529", "0.7601002", "0.7550209", "0.754345", "0.75432116", "0.7477506", "0.74669594", "0.7454454", "0.74496824", "0.7417272", "0.7417272...
0.0
-1
Returns True if each item in seq matches each corresponding item from the current position onward.
def hMO7(YKHO, Q6uT): for exwG, YRbF in enumerate(Q6uT): try: if YKHO.items[YKHO.pos + exwG] != YRbF: return False except IndexError: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qk7K(YKHO, Q6uT):\n return len(Q6uT) == 4 and YKHO.mScalar == Q6uT[0] and (YKHO.mVector[0] == Q6uT[1]) and (YKHO.mVector[1] == Q6uT[2]) and (YKHO.mVector[2] == Q6uT[3])", "def ac8g(aWuw):\n return all((WKvO == aWuw[0] for WKvO in aWuw))", "def xa14(YKHO, Q6uT):\n if YKHO._length != len(Q6uT) or no...
[ "0.7007871", "0.7005903", "0.69616514", "0.68548906", "0.67441154", "0.672275", "0.66735566", "0.66549057", "0.65945804", "0.6587169", "0.6583016", "0.65333325", "0.6494529", "0.64806014", "0.6478558", "0.6420472", "0.6414683", "0.63779235", "0.63549644", "0.63287604", "0.628...
0.6947311
3
Testspecific qvalues accessor for the comparison of both sets of groups.
def Ocye(YKHO, yxfW, a06Z, NKcE='fdr_bh'): return YKHO._correction_pairs(idx0=yxfW, idx1=a06Z, method=NKcE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmxi(YKHO, Elif: 'MultiChoiceQuestionGroup') -> hxoQ:\n dixj = {}\n for H5ew in YKHO._item_dict.keys():\n dixj[H5ew] = YKHO[H5ew] > Elif[H5ew]\n return hxoQ(dixj)", "def JWbp(YKHO, Elif: 'MultiChoiceQuestionGroup') -> hxoQ:\n return Elif.__gt__(YKHO)", "def xa14(YKHO, Elif):\n uOe2 = ...
[ "0.62772256", "0.6115704", "0.58211607", "0.5820011", "0.58127975", "0.57256657", "0.57033193", "0.56805307", "0.56415606", "0.5618301", "0.56171364", "0.5555912", "0.5525421", "0.5520053", "0.5510492", "0.5485959", "0.54560566", "0.54541695", "0.54465777", "0.54465014", "0.5...
0.0
-1
Save path to json.
def U1ai(YKHO, nPrm, RsFk=None): if RsFk is None: RsFk = YKHO.json_path with open(RsFk, encoding='utf-8', mode='w') as eHNT: qQXR.dump(nPrm, eHNT, indent=4, ensure_ascii=False) print(RsFk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO, pmON):\n if not bHss():\n with open(pmON, 'w') as eHNT:\n qQXR.dump(YKHO.to_dict(), eHNT, indent=4)\n return pmON", "def xkzz(YKHO, pmON: str):\n with open(pmON, 'w', encoding='utf-8') as eHNT:\n eHNT.write(YKHO.to_json())", "def xkzz(YKHO, RsFk):\n with open...
[ "0.8444213", "0.8268647", "0.79312813", "0.79311424", "0.7910115", "0.7910115", "0.7910115", "0.7838634", "0.7793213", "0.77437556", "0.77021885", "0.7681351", "0.7650982", "0.7599761", "0.75222033", "0.7377841", "0.7377841", "0.7377841", "0.7326697", "0.7326697", "0.7319312"...
0.8115855
2
GET request on /roster endpoint.
async def get_roster(YKHO, pB3N: Union[dict, List[dict]], _TuJ: Optional[int]=10, BA9O: Optional[str]=None) -> uLKX[x1iM[cuzp[str, ImMB]], x1iM[x1iM[cuzp[str, ImMB]]]]: return await YKHO._get('/roster', pB3N, _TuJ, BA9O)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_roster(YKHO, YLAH: typing.Union[JID, str], **yKeF) -> hmey:\n if YKHO.granted_privileges['roster'] not in ('get', 'both'):\n RKD7.error('The server did not grant us privileges to get rosters')\n raise ValueError\n else:\n return await YKHO._make_get_roster(YLAH).send(**yKeF...
[ "0.72268814", "0.662058", "0.6105378", "0.6005037", "0.59981555", "0.5978701", "0.59154546", "0.5782593", "0.5743144", "0.5709528", "0.5699877", "0.5687611", "0.5644765", "0.5632288", "0.5629523", "0.5617395", "0.5580365", "0.5559719", "0.55595094", "0.5537139", "0.55300033",...
0.6545795
2
Fills the displacement vectors with imposed and computed values.
def U_LN(TXLx, Ziit, hsJS): JxLs = Ziit.shape[0] EuUG = oyIN.zeros([JxLs, 3], dtype=oyIN.float) for rdlD in range(JxLs): for fvDH in range(3): sDym = TXLx[rdlD, fvDH] if sDym == -1: EuUG[rdlD, fvDH] = 0.0 else: EuUG[rdlD, fvDH] = hs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ATu1(YKHO):\n tuKI.seed(9)\n for d6pt in range(YKHO.npoints):\n YKHO.vector_x.append(d6pt)\n for LVAh in range(YKHO.ncurves):\n YKHO.vector_y[LVAh].append(tuKI.uniform(0, 8))", "def KWNY(YKHO):\n YKHO.vector = oyIN.zeros(YKHO.dimension, dtype=float)", "def Io78(YKHO, ypAU,...
[ "0.6862203", "0.6270894", "0.61910266", "0.5874732", "0.5741658", "0.57296383", "0.56971866", "0.5690983", "0.56731373", "0.5668631", "0.56114703", "0.5599689", "0.5554304", "0.5542041", "0.55314684", "0.552489", "0.5515316", "0.550882", "0.55070776", "0.54658276", "0.5463818...
0.0
-1
Wraps hidden states in new Tensors, to detach them from their history.
def IOWm(MKlR): if isinstance(MKlR, ht2j.Tensor): return MKlR.detach() else: return tuple((IOWm(Ty9i) for Ty9i in MKlR))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xFx6(Zode: Any) -> ImMB:\n return JkHx(Zode, llWB.detach)", "def It5M(YKHO, Zode, qxoj):\n if YKHO.rnn_type in ['lstm', 'mylstm']:\n MKlR = iQnE(Zode[0].data)\n Z9rn = iQnE(Zode[1].data)\n Zode = (MKlR, Z9rn)\n for Fg_i, I1mm in enumerate(qxoj):\n if I1mm.data[0] ...
[ "0.6896774", "0.6564761", "0.6440056", "0.63181335", "0.62956357", "0.61828166", "0.61425817", "0.61264986", "0.61264986", "0.6120289", "0.6029193", "0.60253143", "0.6020807", "0.5987143", "0.5969475", "0.5969475", "0.5932672", "0.5932672", "0.591887", "0.5889544", "0.5871412...
0.555539
40
Indicator that subplot has no layers.
def lsmZ(YKHO): return len(YKHO.layers) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e2OC(YKHO):\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(projection='ternary')\n Nqlg = aNZO.plot()\n assert Nqlg == []", "def WnjB(YKHO):\n YKHO.charts_1.getGV().hide()\n YKHO.charts_2.getGV().hide()", "def LpJY(YKHO):\n return not YKHO.axes", "def MwKC(YKHO):\n pass", "def...
[ "0.65501446", "0.62779915", "0.6195725", "0.6091727", "0.60703593", "0.60156053", "0.5949347", "0.5874869", "0.58582", "0.5817451", "0.57758826", "0.5755941", "0.57396364", "0.570806", "0.5685906", "0.5680052", "0.56657314", "0.5643927", "0.5640388", "0.56380016", "0.56324893...
0.658061
0
Get dictionary with default parameters corresponding to given mode.
def c3_8(Emd4, Tuqy): aWej = getattr(Emd4, f'{Tuqy.upper()}_DEFAULTS') muwo = gV__({**Emd4.COMMON_DEFAULTS, **aWej}) return muwo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vZtQ(YKHO):\n fK8P = {}\n YKHO.initializeRoadRunnerModel()\n YKHO.roadrunnerModel.reset()\n for gm0F in YKHO.parametersToFit:\n fK8P[gm0F] = YKHO.roadrunnerModel.model[gm0F]\n return fK8P", "def muwo() -> dict:\n pass", "def c3_8(YKHO):\n _fHq = {}\n qIxc, K9vJ, peBr, muwo = ...
[ "0.6622207", "0.65702045", "0.6535674", "0.6516511", "0.64357203", "0.64187336", "0.6382547", "0.6349992", "0.6341253", "0.62935245", "0.6264641", "0.6236438", "0.61953825", "0.6156402", "0.6131508", "0.6121125", "0.6118047", "0.60627514", "0.6037397", "0.60161936", "0.599709...
0.7112436
0
Append colorbar to the subplot on the right.
def cChr(YKHO, LNo8, TVTK=0.2, hVLt=None, qfpW='black', dQgj='right', n9UN=False, **B2fa): ALRe = LNP1.make_axes_locatable(LNo8.axes) k13D = ALRe.append_axes(position=dQgj, size=TVTK, pad=hVLt) if n9UN: k13D.set_axis_off() return None Ew8X = LNo8.axes.figure.colorbar(LNo8, cax=k13D, **B2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rz7N(YKHO, LZpg, aNZO, CkYf, MYQr, UXqs=''):\n import matplotlib as x5MY\n oeNL = aNZO.get_position()\n BFKx = [oeNL.x1 + 0.025, oeNL.y0 + 0.0125, 0.015, oeNL.height * 0.8]\n k13D = LZpg.add_axes(BFKx)\n wn16 = x5MY.colorbar.ColorbarBase(k13D, cmap=MYQr, norm=CkYf, spacing='uniform', orientation...
[ "0.7491936", "0.7491936", "0.73847526", "0.73757035", "0.73671067", "0.7358732", "0.7303938", "0.72572565", "0.7119308", "0.7072971", "0.68705446", "0.6862511", "0.6758612", "0.6751871", "0.6475311", "0.64403844", "0.6317786", "0.62895775", "0.6274293", "0.62497246", "0.62136...
0.7022516
10
Validate that data dimensionality is correct for given plot mode.
def F3lw(nPrm, Tuqy): if nPrm.ndim == 1: if Tuqy == 'image': return nPrm.reshape(-1, 1) if Tuqy == 'curve': return (range(len(nPrm)), nPrm) if Tuqy == 'loss': return (nPrm, None) if nPrm.ndim == 3: if Tuqy in ('curve', 'loss'): tO9_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jzy_(YKHO):\n if YKHO.time.ndim != 1:\n raise ValueError('time array must be one-dimensional')\n O9N6 = YKHO.data.shape[-1]\n if O9N6 != len(YKHO.time):\n raise ValueError('mismatch of time and data dimensions')", "def Fz8m(YKHO) -> None:\n Htse = (YKHO.y_dim, YKHO.x_dim)\n SG6Y ...
[ "0.6658219", "0.66115004", "0.6391469", "0.6341775", "0.6337157", "0.6330942", "0.62742263", "0.6267604", "0.6212718", "0.62105066", "0.61228627", "0.61180484", "0.6103872", "0.60918903", "0.60803264", "0.599353", "0.59342146", "0.58855337", "0.5884172", "0.58802974", "0.5843...
0.0
-1
Get object bounding box in inches.
def s_Sm(YKHO, YEnM): pFW3 = YKHO.figure.canvas.get_renderer() d1bu = YKHO.figure.dpi_scale_trans.inverted() return YEnM.get_window_extent(renderer=pFW3).transformed(d1bu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HV3G(YKHO):\n RfpF = S8DJ.vec3(1, -YKHO.y_sign, 0) * YKHO.model.pos * YKHO.transform.scale\n WKvO, LVAh, bGrB = YKHO.transform.pos + RfpF\n LVAh += -YKHO.y_sign * YKHO.font.table['ascent'] * YKHO.transform.scale[1]\n return (WKvO, LVAh, YKHO.pixwidth(), YKHO.pixheight())", "def JcC1(YKHO):\n r...
[ "0.7321456", "0.7208627", "0.7094755", "0.70528084", "0.70528084", "0.7015852", "0.7013305", "0.6966215", "0.69601953", "0.6880392", "0.6877142", "0.6863765", "0.68466276", "0.67882174", "0.67840785", "0.67840785", "0.67565984", "0.6751967", "0.67462975", "0.6729085", "0.6721...
0.73806584
0
Get dictionary with default parameters corresponding to given mode.
def c3_8(Emd4, Tuqy): aWej = getattr(Emd4, f'{Tuqy.upper()}_DEFAULTS') muwo = gV__({**Emd4.COMMON_DEFAULTS, **aWej}) return muwo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vZtQ(YKHO):\n fK8P = {}\n YKHO.initializeRoadRunnerModel()\n YKHO.roadrunnerModel.reset()\n for gm0F in YKHO.parametersToFit:\n fK8P[gm0F] = YKHO.roadrunnerModel.model[gm0F]\n return fK8P", "def muwo() -> dict:\n pass", "def c3_8(YKHO):\n _fHq = {}\n qIxc, K9vJ, peBr, muwo = ...
[ "0.6622207", "0.65702045", "0.6535674", "0.6516511", "0.64357203", "0.64187336", "0.6382547", "0.6349992", "0.6341253", "0.62935245", "0.6264641", "0.6236438", "0.61953825", "0.6156402", "0.6131508", "0.6121125", "0.6118047", "0.60627514", "0.6037397", "0.60161936", "0.599709...
0.7112436
1
The algorithm property of the JWT, present in the token's header.
def lfCk(YKHO) -> a1PO.Optional[str]: return YKHO._alg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E91_(YKHO) -> str:\n return YKHO.auth_type.name", "def tCmu(YKHO) -> str:\n return qe4Y.get(YKHO, 'key_algorithm')", "def E91_(YKHO) -> str:\n return qe4Y.get(YKHO, 'algorithm')", "def E91_(YKHO) -> str:\n return qe4Y.get(YKHO, 'algorithm')", "def iyaw(YKHO) -> str:\n ZgSz = YKHO['signat...
[ "0.7788023", "0.724771", "0.7117834", "0.7117834", "0.6965216", "0.68153304", "0.67992514", "0.67043966", "0.66818166", "0.6673668", "0.6673668", "0.6673668", "0.6673668", "0.6631527", "0.6631527", "0.64808285", "0.6408746", "0.6167961", "0.60400337", "0.60400337", "0.6030945...
0.6263383
17
The header of the JWT.
def WBPg(YKHO) -> dict: return {'typ': YKHO.typ, 'alg': YKHO._alg}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jMZU(YKHO):\n if YKHO.jwt_header:\n return YKHO.jwt_header\n YKHO.jwt_header = YKHO.get_jwt_token_from_secret_file(str(YKHO.jwtfile))\n return YKHO.jwt_header", "def VsOv(YKHO):\n return {'Authorization': 'Bearer {}'.format(YKHO.get_jwt())}", "def E_hp(YKHO):\n return {'Authorization'...
[ "0.8436427", "0.79764926", "0.79137087", "0.78064805", "0.77825725", "0.74781436", "0.74537694", "0.7445296", "0.7445296", "0.7445296", "0.7399845", "0.7382716", "0.73600197", "0.73512626", "0.7339005", "0.7318806", "0.72931683", "0.72931683", "0.7254742", "0.72409415", "0.72...
0.6993704
28
The issuer property of the JWT.
def z_M0(YKHO) -> a1PO.Optional[int]: return YKHO.claims.get('iss')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s5oa(YKHO) -> str:\n return YKHO._issuer", "def s5oa(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'issuer')", "def s5oa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'issuer')", "def s5oa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'issuer')", "def YAB3(YKHO) -> str:\n...
[ "0.835587", "0.80799645", "0.80615586", "0.80058664", "0.7740773", "0.75403756", "0.7509347", "0.7363411", "0.7363411", "0.73131746", "0.7257645", "0.71792614", "0.71792614", "0.7094954", "0.6783554", "0.67626977", "0.6753589", "0.6716641", "0.67098683", "0.66446966", "0.6644...
0.6604931
21
The expiration time property of the JWT.
def kLQb(YKHO) -> a1PO.Optional[int]: return YKHO.claims.get('exp')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OBx7(YKHO) -> str:\n return qe4Y.get(YKHO, 'expiration_time')", "def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')", "def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')", "def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')", "def OBx7(YKHO) -> h8nf[qe4Y.Inp...
[ "0.8452978", "0.8098315", "0.8098315", "0.8098315", "0.7991697", "0.79220504", "0.79109377", "0.78451395", "0.78079146", "0.77680236", "0.77680236", "0.7696627", "0.7696627", "0.7690996", "0.7578736", "0.74577767", "0.7348282", "0.7184964", "0.7178381", "0.713914", "0.7100190...
0.63440484
58
The "issued at" time property of the JWT.
def RNEE(YKHO) -> a1PO.Optional[int]: return YKHO.claims.get('iat')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JtGI(Bhoz):\n RNEE = None\n if Bhoz:\n RNEE = ITS7.time()\n return RNEE", "def oCEZ(YKHO):\n return YKHO.__token_expiry_date", "def OBx7(YKHO) -> str:\n return qe4Y.get(YKHO, 'expiration_time')", "def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')", "def e2iN(YKHO) -...
[ "0.71110594", "0.7070343", "0.69566137", "0.6796135", "0.6796135", "0.6796135", "0.6706147", "0.6680635", "0.6670677", "0.6574447", "0.6548008", "0.6548008", "0.6548008", "0.6541552", "0.6541552", "0.6527178", "0.6495312", "0.6495312", "0.64618343", "0.64618343", "0.64618343"...
0.6616375
9
The max age property of the JWT.
def uqEL(YKHO) -> a1PO.Optional[int]: if not YKHO.iat or not YKHO.exp: return None return YKHO.exp - YKHO.iat
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uqEL(YKHO):\n return YKHO._max_age", "def uqEL(YKHO):\n return YKHO._max_age", "def uqEL(YKHO) -> laHg.Optional[HEOD.Number]:\n return YKHO._values.get('max_age')", "def uqEL(YKHO):\n return YKHO._max_age", "def uqEL(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'max_age')", ...
[ "0.84404695", "0.84404695", "0.8376547", "0.83404607", "0.7991144", "0.7862956", "0.7787322", "0.75152975", "0.7384729", "0.73049575", "0.7296827", "0.7287585", "0.72140723", "0.7051064", "0.70335853", "0.7006728", "0.7004616", "0.69854665", "0.6965686", "0.6965686", "0.69656...
0.7772079
7
Returns whether this JWT has been signed.
def PZNl(YKHO) -> bool: return YKHO.signed is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGVO(YKHO):\n return YKHO.is_signed and (not YKHO.is_expired)", "def wC2y(YKHO):\n return YKHO.token is not None", "def rts1(YKHO):\n return bool(Vu5X())", "def GfdN(YKHO, QePW, R72Z, eOtH, aadv):\n Ha9Z = YKHO.sign(QePW, R72Z, eOtH)\n return Ha9Z == aadv", "def tKUS(YKHO):\n return _...
[ "0.67773134", "0.67657745", "0.67343867", "0.66329306", "0.6559227", "0.6557845", "0.64588183", "0.6397874", "0.6384703", "0.6366098", "0.6342457", "0.6337649", "0.6337649", "0.6337649", "0.6337649", "0.6337649", "0.6337649", "0.6337649", "0.6337649", "0.6337649", "0.6337649"...
0.74498427
0
Change the active device to the specified id.
def Xw1V(mLGw): q7n6(DDLl.get().af_set_device(mLGw))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prmJ(YKHO):\n pass", "def B5WJ(YKHO):\n pass", "def wU6q(YKHO, L8GA=None):\n YKHO.desired_caps['udid'] = L8GA", "def jf3N(YKHO, jf3N):\n YKHO._device_id = jf3N", "def jf3N(YKHO, jf3N):\n YKHO._device_id = jf3N", "def mC97(YKHO, jf3N):\n Sivo('Releasing device %s ...' % jf3N, G9jH.IN...
[ "0.64794147", "0.64731795", "0.64723504", "0.6425086", "0.6425086", "0.6111617", "0.61042994", "0.60775876", "0.602966", "0.5991812", "0.5934229", "0.5890665", "0.5784412", "0.57452834", "0.5743974", "0.57170796", "0.56902623", "0.56617516", "0.5649953", "0.5649953", "0.56499...
0.6061122
8
Get the raw device pointer of an array
def MzCg(jzdc): AsCw = lY0q.c_void_p(0) q7n6(DDLl.get().af_get_device_ptr(lY0q.pointer(AsCw), jzdc.arr)) return AsCw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VeaS():\n FHVu = lY0q.c_int(0)\n q7n6(DDLl.get().af_get_device(lY0q.pointer(FHVu)))\n return FHVu.value", "def k_GR(Emd4, KAOR):\n try:\n return Swre(KAOR.__array_interface__['data'][0])\n except AttributeError:\n KAOR = Emd4.asArray(KAOR)\n try:\n return Swre(K...
[ "0.6149462", "0.6083934", "0.60753775", "0.6059077", "0.6059077", "0.6059077", "0.6059077", "0.6059077", "0.6051239", "0.60167783", "0.59694695", "0.5934218", "0.5870799", "0.57828134", "0.5776091", "0.5770843", "0.57103986", "0.5691612", "0.5680142", "0.564842", "0.5645468",...
0.7616781
0
checks if user has access to protected data
def jK97(YKHO): CBIr = YKHO.getSession() return YKHO.pipe.auth.isSuper(CBIr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pn7U(YKHO):\n return YKHO.user_has_access(DW23.get_current_user())", "def uq5Y(YKHO, uJjO):\n return False", "def JL1u(YKHO, CBIr):\n if CBIr.is_superuser:\n return True\n return YKHO.user_objects(CBIr).filter(id=YKHO.id).exists()", "def qHTF(YKHO, QePW, tTee):\n if QePW.user.is_aut...
[ "0.77658725", "0.77231264", "0.7512203", "0.74774003", "0.7345427", "0.7301951", "0.72769403", "0.72682554", "0.72673184", "0.72673184", "0.7262562", "0.72251576", "0.7220765", "0.71790546", "0.7166986", "0.714387", "0.7058735", "0.7046586", "0.7046586", "0.7046586", "0.70446...
0.0
-1
If this request connected to the database, close the connection.
def ssTe(tTpl=None): NCls = Oa1e.pop('db', None) if NCls is not None: NCls.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n if YKHO.cursor is None and YKHO.database is None:\n return\n YKHO.cursor.close()\n YKHO.database.close()", "def ngVb(YKHO):\n if YKHO.conn:\n YKHO.conn.close()", "def ngVb(YKHO):\n if YKHO.connection is not None:\n YKHO.connection.close()", "def DDI8(YKHO...
[ "0.7909081", "0.78437674", "0.77779657", "0.77692723", "0.77130044", "0.7696115", "0.76471436", "0.7638434", "0.76133895", "0.76087016", "0.7602806", "0.7589563", "0.7583817", "0.75653946", "0.7535055", "0.75241536", "0.75241536", "0.75223124", "0.7520047", "0.75128347", "0.7...
0.0
-1
Only set friend shared each other
def Jfv9(YKHO): with iHv3.connect(YKHO.DBname) as w2B8: Z9rn = w2B8.cursor() Z9rn.execute('select ZID, FRIENDS from user_info') yVA2 = Z9rn.fetchall() for CBIr, zXXY in yVA2: yvT9 = set() zXXY = [WKvO.strip() for WKvO in zXXY.split(',')] for hERe i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h7iA(YKHO):\n P6bq = Szdd(id=1)\n P6bq.django_user = mv1M.objects.create(username='Testuser')\n P6bq.save()\n eHNT = Szdd(id=2)\n eHNT.django_user = mv1M.objects.create(username='Testuser2')\n eHNT.save()\n eHNT.requested_friends.add(P6bq)\n YKHO.assertIs(P6bq in eHNT.requested_friends....
[ "0.6349015", "0.6242519", "0.6191666", "0.6125471", "0.60922015", "0.6055634", "0.6042841", "0.59734774", "0.5909863", "0.58413565", "0.5804734", "0.5765589", "0.57583666", "0.5683953", "0.5657898", "0.55813086", "0.55286247", "0.5477948", "0.5470345", "0.5440596", "0.5440596...
0.50130594
48
Determine whether 2digit numbers num and den share a nonzero digit
def rQNP(mLGw, OCOs): fktj = str(mLGw) MqX6 = str(OCOs) if '0' in fktj and '0' in MqX6: return False return fktj[0] in MqX6 or fktj[1] in MqX6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y_ql(mLGw):\n hlel = False\n BHGE = [int(YRbF) for YRbF in str(mLGw)]\n for YRbF, rOzm in enumerate(BHGE[:-2]):\n if YRbF == 0:\n if rOzm == BHGE[YRbF + 1] and rOzm != BHGE[YRbF + 2]:\n hlel = True\n else:\n if rOzm != BHGE[YRbF - 1] and rOzm == BHGE[...
[ "0.66573215", "0.6440557", "0.63306004", "0.6274526", "0.6208678", "0.6078219", "0.60541683", "0.5835755", "0.5834841", "0.57886094", "0.57733285", "0.57666516", "0.5715078", "0.5679442", "0.56535006", "0.56464976", "0.5630134", "0.5628537", "0.562554", "0.5621497", "0.560313...
0.86455107
0
For two 2digit numbers num and den sharing a nonzero digit, determines whether these digits can cancel and maintain the value of num/den
def RBTN(mLGw, OCOs): fktj = str(mLGw) MqX6 = str(OCOs) if fktj[0] == MqX6[0] and MqX6[1] != '0': return mLGw / OCOs == int(fktj[1]) / int(MqX6[1]) elif fktj[0] == MqX6[1] and MqX6[0] != '0': return mLGw / OCOs == int(fktj[1]) / int(MqX6[0]) elif fktj[1] == MqX6[0] and MqX6[1] != '0'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQNP(mLGw, OCOs):\n fktj = str(mLGw)\n MqX6 = str(OCOs)\n if '0' in fktj and '0' in MqX6:\n return False\n return fktj[0] in MqX6 or fktj[1] in MqX6", "def L4JC(mLGw):\n hlel = True\n if not y_ql(mLGw):\n hlel = False\n if not FFRG(mLGw):\n hlel = False\n return h...
[ "0.7365665", "0.6274122", "0.5855416", "0.5721313", "0.5691259", "0.5678599", "0.5591612", "0.5562553", "0.5546962", "0.55303293", "0.5479697", "0.54369766", "0.5415545", "0.5414511", "0.53287137", "0.5327776", "0.5327163", "0.53035915", "0.5295303", "0.5291806", "0.52812845"...
0.80766606
0
Set the selected pin to the specified value.
async def analog_write(YKHO, yQ5t, BWXx): if WNYG.ANALOG_MESSAGE + yQ5t < 240: oUZx = [WNYG.ANALOG_MESSAGE + yQ5t, BWXx & 127, BWXx >> 7 & 127] await YKHO._send_command(oUZx) else: await YKHO.extended_analog(yQ5t, BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHNa(YKHO, BWXx):\n YKHO.Bus.Write_uInt8(YKHO.Address, 80 + YKHO.Pin, BWXx)", "def jqYG(YKHO, yQ5t='D13', BWXx='0'):\n YKHO.bridge.put(str(yQ5t), str(BWXx))", "def mokr(YKHO, se2i):\n YKHO['input'].setValue(se2i)", "def UDRf(YKHO, yQ5t):\n if yQ5t not in range(0, 14):\n raise Exception...
[ "0.7193859", "0.70859087", "0.7048325", "0.6868551", "0.68374014", "0.66054875", "0.6522551", "0.64153075", "0.6409337", "0.6404513", "0.6392403", "0.63905966", "0.63905966", "0.63905966", "0.63816094", "0.63649386", "0.6356947", "0.6335871", "0.631347", "0.63113594", "0.6289...
0.0
-1
Number of nodes in the tree.
def B9LN(Z3w0): return 2 ** (Z3w0 + 1) - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO):\n return YKHO.__tree.node_count", "def tIln(YKHO):\n Ylbp = 0\n for exwG in YKHO.iternodes():\n Ylbp += 1\n return Ylbp", "def OtzW(YKHO):\n return int(YKHO._data['number_of_nodes'])", "def kRap(YKHO):\n return YKHO._root.count()", "def AHQ7(YKHO) -> int:\n retur...
[ "0.87771", "0.876103", "0.87113464", "0.8688446", "0.8679165", "0.8642875", "0.85500014", "0.85063654", "0.8487128", "0.8469054", "0.84642124", "0.84633803", "0.8463188", "0.84412813", "0.84390837", "0.84262526", "0.8424474", "0.8424474", "0.83696264", "0.8285416", "0.8208172...
0.80256987
29
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') print(Bcwd) QrM1.imshow(Bcwd, interp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.81920755", "0.8093736", "0.8028212", "0.8017333", "0.79923165", "0.7989431", "0.79789335", "0.7974398", "0.795948", "0.79555666", "0.7935652", "0.7932704", "0.7932632", "0.7929465", "0.7924336", "0.7922666", "0.79221356", "0.7921299", "0.79209703", "0.7920307", "0.7916008"...
0.7898432
27
Gets list of supported targets
def x6A0(): return [kzSG('linux', 'x64', 'debian10', 'cmake', presubmit=True), kzSG('linux', 'x64', 'debian10', 'cmake_as_submodule', presubmit=True), kzSG('linux', 'x64', 'debian10', 'cmake_as_externalproject', presubmit=True), kzSG('linux', 'x64', 'debian10', 'cmake_fetchcontent', presubmit=True), kzSG('linux', '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x6A0(YKHO):\n return YKHO.host_settings.targets", "def WELE(YKHO):\n return YKHO._targets", "def x6A0(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['PlanTargetsArgs']]]]:\n return qe4Y.get(YKHO, 'targets')", "def wCwx(YKHO):\n return []", "def MB6m(YKHO):\n return YKHO._combined_all_versioned...
[ "0.72934294", "0.7170951", "0.70300204", "0.69690996", "0.68751216", "0.66563004", "0.6650485", "0.66132474", "0.6546181", "0.65401113", "0.6532755", "0.65121025", "0.6491082", "0.64473706", "0.64282554", "0.6410013", "0.63991743", "0.63772464", "0.6374726", "0.63458115", "0....
0.57538307
58
Return whether GridPegSoltairePuzzle self is equivalent to other.
def xa14(YKHO, Elif): return type(Elif) == type(YKHO) and YKHO._marker == Elif._marker and (YKHO._marker_set == Elif._marker_set)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n for YRbF in range(len(YKHO.puzzle)):\n for r845 in range(len(YKHO.puzzle[0])):\n if YKHO.puzzle[YRbF][r845] != Elif.puzzle[YRbF][r845]:\n return False\n return True", "def xa14(YKHO, Elif):\n return oyIN.all(YKHO.grid == Elif.grid) and oyIN.all(YK...
[ "0.77467674", "0.72473675", "0.7091989", "0.7090356", "0.7059059", "0.7032807", "0.7032807", "0.70283085", "0.70041233", "0.695015", "0.6942698", "0.6874389", "0.68624955", "0.6795316", "0.67761964", "0.677543", "0.676424", "0.676424", "0.676424", "0.6762798", "0.6761212", ...
0.0
-1
Return True if the current Puzzle configuration is solved, False otherwise.
def Yprr(YKHO): _5yy = YKHO._marker UHFx = 0 for rdlD in _5yy: for mrj1 in rdlD: if mrj1 == '*': UHFx += 1 if UHFx == 1: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JjqC(YKHO) -> bool:\n if YKHO in [YKHO.SATISFIED, YKHO.ALL_SOLUTIONS, YKHO.OPTIMAL_SOLUTION]:\n return True\n return False", "def JjqC(YKHO) -> bool:\n pass", "def B24F(YKHO):\n return len(YKHO._path) == YKHO._N", "def BIAE(YKHO) -> bool:\n return YKHO._solution.info.status == 'solv...
[ "0.8056841", "0.7820166", "0.7622578", "0.74919087", "0.72833914", "0.7133834", "0.7041643", "0.7030809", "0.69712925", "0.69409835", "0.69181734", "0.6907065", "0.68737966", "0.6844877", "0.6832382", "0.6808089", "0.6780048", "0.6780048", "0.6780048", "0.6772169", "0.6755689...
0.577148
77
An index generated by pd.date_range has the expected spacing.
def SsvC(WXkz): U8GB(ITS7.spacing(WXkz, WXkz.freq), rLdf.Series(True, index=WXkz))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def La02(YKHO):\n QTg7 = 'MS'\n d6pt = rLdf.date_range(start='2000-1-1', freq='B', periods=1000)\n GPIy = uaPq.TimestampLocator(Fhdz, freq=QTg7)\n QOe9 = GPIy._process(0, 900)\n NadD = d6pt[QOe9]\n assert oyIN.all(NadD.day < 5)\n QTg7 = 'M'\n d6pt = rLdf.date_range(start='2000-1-1', freq='B...
[ "0.594955", "0.57676065", "0.57454824", "0.56609684", "0.5629476", "0.5626083", "0.55236256", "0.5503637", "0.5435363", "0.54065204", "0.5398519", "0.5369331", "0.5366041", "0.5346253", "0.5321032", "0.5305558", "0.5295049", "0.5264819", "0.5261607", "0.526003", "0.52450097",...
0.66547287
0
The timestamp following a missing timestamp will be marked False.
def kBYV(WXkz): U8GB(ITS7.spacing(WXkz[[0, 2, 3]], WXkz.freq), rLdf.Series([True, False, True], index=WXkz[[0, 2, 3]]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n3NA(YKHO):\n return YKHO.data_type() & 256 == 256 and YKHO.raw_data_length() >= 8", "def L3lV(YKHO, E3oo):\n if E3oo is None:\n return True\n if not isinstance(E3oo, float):\n return False\n if E3oo > JNNN.system_to_ntp_time(ITS7.time() + 86400 * 365):\n return False\n el...
[ "0.7021854", "0.66847306", "0.6541325", "0.6368851", "0.6344318", "0.63075995", "0.6265858", "0.62603235", "0.6252339", "0.6240467", "0.61980355", "0.6196868", "0.6191898", "0.6170375", "0.6160861", "0.6144225", "0.61175257", "0.6069309", "0.603114", "0.60243654", "0.6023172"...
0.6139558
16
Every day shifted 1 hour later yields a series with shift of 60 for each day.
def nhKP(dGo0): Dooq = gYxV(dGo0, 60, start='2020-01-01', end='2020-02-29') S9YZ = rLdf.Series(False, index=dGo0.index) S9YZ['2020-01-01':'2020-02-29'] = True twlX, IHv8 = ITS7.shifts_ruptures(Dooq, dGo0) U8GB(twlX, S9YZ, check_names=False) U8GB(IHv8, rLdf.Series(60, index=Dooq.index, dtype='int...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f1nr(YKHO):\n return YKHO._shifted_time % (24 * 3600)", "def UnZ2(dy_H):\n g0fn = [(dy_H.index[or8S] - dy_H.index[0]).days for or8S in range(len(dy_H.index))]\n return rLdf.Series(data=dy_H.values, index=g0fn)", "def Fhd_(YKHO, ycBG):\n ycBG = ycBG.dropna()\n qjaP = ycBG.index.max()\n FxR...
[ "0.57503337", "0.56835794", "0.56729597", "0.56554955", "0.5636705", "0.5479708", "0.53868276", "0.5313823", "0.53083855", "0.52954924", "0.5258472", "0.52422124", "0.5221235", "0.51568735", "0.5085136", "0.5058662", "0.5041355", "0.5035909", "0.50331247", "0.5031881", "0.498...
0.49100053
28
Check if the ROUTE distance between two points is bigger than "distance"
def ICh8(KwKv, YBrO, Ayfi): global world bGrB, PsCT = Afcp(EmUK, [KwKv.location, YBrO.location]) return Ayfi < abqR(PsCT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqH(YKHO, igSk, GgQG, TGuP, tk0B, Ayfi=0.5):\n Ayfi = jLKC.distance.distance((igSk, GgQG), (TGuP, tk0B)).km < Ayfi\n return Ayfi", "def V1Te(O46v, Pwdg):\n return epAf.sqrt((O46v[0] - Pwdg[0]) ** 2 + (O46v[1] - Pwdg[1]) ** 2 + (O46v[2] - Pwdg[2]) ** 2)", "def hiHO(YKHO, jzdc, Fg_i):\n KcZ6 = i...
[ "0.71559966", "0.7049637", "0.67982703", "0.6675229", "0.66263634", "0.6581571", "0.65747935", "0.6574042", "0.6527007", "0.6495636", "0.6478092", "0.6452156", "0.64212453", "0.64027286", "0.6394226", "0.63671064", "0.6354219", "0.63526696", "0.63488084", "0.6269557", "0.6264...
0.68502766
2
Check if the ROUTE distance between two points is bigger than "distance"
def zXAk(KwKv, YBrO, Ayfi): bGrB, BKPw = Afcp(EmUK, [KwKv.location, YBrO.location]) if abqR(BKPw) < Ayfi or abqR(BKPw) > 3 * Ayfi: print('Rejected because it is too small') return False PsCT = bHsk(BKPw) print(' Straight test ') if len(PsCT) > 3: print('Rejected because of si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqH(YKHO, igSk, GgQG, TGuP, tk0B, Ayfi=0.5):\n Ayfi = jLKC.distance.distance((igSk, GgQG), (TGuP, tk0B)).km < Ayfi\n return Ayfi", "def V1Te(O46v, Pwdg):\n return epAf.sqrt((O46v[0] - Pwdg[0]) ** 2 + (O46v[1] - Pwdg[1]) ** 2 + (O46v[2] - Pwdg[2]) ** 2)", "def ICh8(KwKv, YBrO, Ayfi):\n global w...
[ "0.7156624", "0.70515615", "0.685148", "0.67991465", "0.66268826", "0.6582166", "0.65753245", "0.65724915", "0.6525669", "0.6497752", "0.6476741", "0.6453214", "0.6422529", "0.64047444", "0.6396985", "0.6369356", "0.63562405", "0.6356098", "0.63490796", "0.62721014", "0.62680...
0.6675838
4
Check if the ROUTE distance between two points is bigger than "distance"
def NXJo(KwKv, YBrO, Ayfi): bGrB, BKPw = Afcp(EmUK, [KwKv.location, YBrO.location]) if abqR(BKPw) < Ayfi or abqR(BKPw) > 3 * Ayfi: print('Rejected because it is too small') return False PsCT = bHsk(BKPw) print(' One curve test ') if len(PsCT) != 1: print(' reject because of s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqH(YKHO, igSk, GgQG, TGuP, tk0B, Ayfi=0.5):\n Ayfi = jLKC.distance.distance((igSk, GgQG), (TGuP, tk0B)).km < Ayfi\n return Ayfi", "def V1Te(O46v, Pwdg):\n return epAf.sqrt((O46v[0] - Pwdg[0]) ** 2 + (O46v[1] - Pwdg[1]) ** 2 + (O46v[2] - Pwdg[2]) ** 2)", "def ICh8(KwKv, YBrO, Ayfi):\n global w...
[ "0.7155734", "0.7050317", "0.68512577", "0.67986465", "0.66771615", "0.66252226", "0.65809566", "0.657341", "0.6526702", "0.64965945", "0.6478163", "0.645426", "0.6421344", "0.6403816", "0.6395753", "0.63677984", "0.6354648", "0.6354611", "0.6347117", "0.62711185", "0.6266364...
0.6576399
7
Test error in registration of user e.g user already exists
def tzUl(YKHO): CBIr = {'username': 'chris', 'email': 'mainachris@gmail.com', 'password': 'password123', 'confirm-password': 'password123'} Ylbp = YKHO.app.post('/register', data=CBIr) YKHO.assertEqual(Ylbp.status_code, 200) YKHO.assertIn('User already exists', str(Ylbp.data))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yX6T(YKHO):\n YKHO.register_user()\n Aofo = YKHO.client().post(G5z9.registration, data=YKHO.user)\n p2I7 = qQXR.loads(Aofo.data.decode())\n YKHO.assertEqual(Aofo.status_code, 409)\n YKHO.assertEqual(p2I7['message'], 'user already exists')", "def xHBd(YKHO):\n mv1M.objects.create_user(YKHO.d...
[ "0.83140033", "0.82111377", "0.7915327", "0.78639746", "0.78182834", "0.7794197", "0.77612704", "0.76888245", "0.76729584", "0.7583401", "0.7566561", "0.7556901", "0.7513701", "0.74555695", "0.74524283", "0.74242926", "0.73865944", "0.7369721", "0.73225236", "0.7264133", "0.7...
0.76722425
9
Test is shoppingitems page is accessible
def Qgh9(YKHO): YKHO.app.post('/register', data=YKHO.user_reg_details) YKHO.app.post('/login', data=YKHO.user_login_details) Ylbp = YKHO.app.get('/shoppingitems/Easter') YKHO.assertEqual(Ylbp.status_code, 200) YKHO.assertIn('You can now add your items', str(Ylbp.data))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ti_o(YKHO):\n YKHO.app.post('/register', data=YKHO.user_reg_details)\n YKHO.app.post('/login', data=YKHO.user_login_details)\n Ylbp = YKHO.app.get('/shoppinglist')\n YKHO.assertEqual(Ylbp.status_code, 200)\n YKHO.assertIn('Shopping List', str(Ylbp.data))", "def R5u1(YKHO):\n BDwY = YKHO.cli...
[ "0.7563833", "0.70784", "0.6995761", "0.6849791", "0.6800137", "0.6797828", "0.67814416", "0.6730364", "0.6657221", "0.663558", "0.6627246", "0.6626104", "0.6626104", "0.66007507", "0.6593794", "0.6593091", "0.6576001", "0.655483", "0.6417026", "0.63924617", "0.6383639", "0...
0.77414215
0
Test is shoppingitems creation with special characters raises an error
def k_py(YKHO): YKHO.app.post('/register', data=YKHO.user_reg_details) YKHO.app.post('/login', data=YKHO.user_login_details) YKHO.shopping_class_obj.create_list('Easter', 'maina@gmail.com') Ylbp = YKHO.app.post('/shoppingitems/Easter', data={'item-name': 'Bread-'}) YKHO.assertEqual(Ylbp.status_code,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def twRz(YKHO):\n Ylbp = YKHO.app.post('/shoppinglist', data={'name': 'Easter!'})\n YKHO.assertEqual(Ylbp.status_code, 200)\n geh0 = YKHO.shopping_class_obj.create_list('Easter!', 'maina@gmail.com')\n YKHO.assertIn('No special characters', geh0)", "def w3UW(YKHO):\n CBIr = 'chairman'\n tO9_ = Y...
[ "0.75265205", "0.74732584", "0.69962466", "0.69336724", "0.685219", "0.67232794", "0.6677641", "0.65856296", "0.6506702", "0.64734185", "0.64224136", "0.63782465", "0.6328122", "0.6280224", "0.62284166", "0.62242836", "0.6160709", "0.6154644", "0.6150757", "0.61482954", "0.61...
0.785362
0
Add an edge to a graph or subgraph
def rz7z(pNZh, EiWo, rdpC, UXqs='[0%]', _Cnz='solid, bold', qfpW='black', oVM8='true'): D70y = ndC_(EiWo, rdpC, label=UXqs, style=_Cnz, color=qfpW, constraint='true') pNZh.add_edge(D70y) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, D70y):\n YKHO[D70y[0]][D70y[1]] = D70y\n YKHO[D70y[1]][D70y[0]] = D70y", "def rz7z(YKHO, D70y):\n zZcM = D70y.get_source()\n e1vZ = D70y.get_destination()\n if not (zZcM in YKHO.edges and e1vZ in YKHO.edges):\n raise ValueError('Node not in graph')\n YKHO.edges[zZcM].appen...
[ "0.8393084", "0.82283896", "0.8201113", "0.8199258", "0.81298053", "0.812428", "0.81159806", "0.8096995", "0.80484855", "0.8039142", "0.802469", "0.7985509", "0.79755217", "0.7939436", "0.793937", "0.790578", "0.7882143", "0.7845602", "0.782705", "0.78174055", "0.7800455", ...
0.0
-1
Get the bb of a node_name
def UHM2(AwDt): return int(ZbWC.search('\\d+', ZbWC.search('block_\\d+', AwDt).group()).group())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AGWm(YKHO):\n return YKHO.__bb", "def AGWm(YKHO):\n return YKHO.__bb", "def UHM2(YKHO, uDlE, N9D1=False):\n Nqlg = YKHO.mfp.get_bb(uDlE)\n return Nqlg", "def DgqP(AwDt, edvT):\n dBKB = int(ZbWC.search('\\\\d+', ZbWC.search('block_\\\\d+', AwDt).group()).group())\n if edvT < dBKB:\n ...
[ "0.66499287", "0.66499287", "0.6578319", "0.581693", "0.581363", "0.5779847", "0.55945545", "0.5552834", "0.5506352", "0.55034417", "0.54981905", "0.5404942", "0.5396745", "0.5337385", "0.5336068", "0.5300939", "0.52775645", "0.5273038", "0.5228449", "0.521782", "0.521583", ...
0.77513236
0
Generate a polar tth corr map directly for all panels
def J4YC(Ctzq, RHJb, YKiD, ONRZ, J18w, mBLI, lKl5=60): oMnB = list(YKiD.detectors.values()) return w50C(oMnB, ONRZ, Ctzq, RHJb, J18w, mBLI, lKl5) - Ctzq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bLZ2(YKHO, Gdzo):\n YKHO.property_existence(Gdzo)\n LZpg, aNZO = QrM1.subplots()\n bSmD = YKHO.df[Gdzo].corr()\n uuEx.heatmap(bSmD, mask=oyIN.zeros_like(bSmD, dtype=oyIN.bool), cmap=uuEx.diverging_palette(220, 10, as_cmap=True), annot=True, ax=aNZO)\n LZpg.tight_layout()\n QrM1.show()", "de...
[ "0.6007513", "0.5876065", "0.5769552", "0.57296973", "0.57121176", "0.56763726", "0.5667984", "0.564799", "0.55785215", "0.55728304", "0.55616057", "0.5536332", "0.55219084", "0.54839826", "0.54424584", "0.54251313", "0.5423645", "0.54188794", "0.54133356", "0.5410115", "0.54...
0.62137616
0
Creates a course with 3 orphan modules, one of which has a child that's also in the course tree.
def n48v(YKHO, UGzO): GQfX = W10k.create(default_store=UGzO) PE7c = YKHO.store.create_child(YKHO.user.id, GQfX.location, 'chapter', 'Chapter1') YKHO.store.publish(PE7c.location, YKHO.user.id) glFP = YKHO.store.create_child(YKHO.user.id, GQfX.location, 'chapter', 'Chapter2') YKHO.store.publish(glFP.l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qS7I(YKHO):\n super(p_JK, YKHO)._create_course()\n YKHO._create_item('chapter', 'Chapter1', {}, {'display_name': 'Chapter 1'}, 'course', 'runid')\n YKHO._create_item('chapter', 'Chapter2', {}, {'display_name': 'Chapter 2'}, 'course', 'runid')\n YKHO._create_item('chapter', 'OrphanChapter', {}, {'di...
[ "0.68607956", "0.6608762", "0.6544574", "0.64357287", "0.6068295", "0.6061504", "0.5966545", "0.5892435", "0.5871874", "0.5817131", "0.57982886", "0.5791605", "0.5782526", "0.5780918", "0.5668452", "0.56496084", "0.55987984", "0.55903774", "0.55850106", "0.5564612", "0.555590...
0.6869201
0
Asserts that we have the expected count of orphans for a given course_key
def McKl(YKHO, VXBI, FGW3): YKHO.assertEqual(len(YKHO.store.get_orphans(VXBI)), FGW3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ds8d(YKHO):\n L8sf = YKHO.split_mongo.get_orphans(YKHO.split_course_key)\n YKHO.assertEqual(len(L8sf), 3, 'Wrong # {}'.format(L8sf))\n Rci7 = YKHO.split_course_key.make_usage_key('chapter', 'OrphanChapter')\n YKHO.assertIn(Rci7, L8sf)\n Rci7 = YKHO.split_course_key.make_usage_key('vertical', 'Or...
[ "0.6290156", "0.608903", "0.5951875", "0.554769", "0.554297", "0.5534803", "0.5441433", "0.54222894", "0.53685665", "0.5353749", "0.5353749", "0.5326985", "0.52949494", "0.5293539", "0.52470016", "0.52079386", "0.5205678", "0.51956", "0.51882374", "0.51851887", "0.5149998", ...
0.8105335
0
Test that auth restricts get and delete appropriately
def Z82C(YKHO, UGzO): GQfX = YKHO.create_course_with_orphans(UGzO) CkFl = mRIV('orphan_handler', GQfX.id) BLaY, b5K5 = YKHO.create_non_staff_authed_user_client() BTFJ.enroll(b5K5, GQfX.id) geh0 = BLaY.get(CkFl) YKHO.assertEqual(geh0.status_code, 403) geh0 = BLaY.delete(CkFl) YKHO.assertE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yd1a(YKHO):\n bD7m = gxEw('edit-list')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(403, geh0.status_code)\n YKHO.assertEqual('Forbidden', geh0.status_text)\n YKHO.assertTrue('credentials were not provided.' in geh0.data.get('detail'))", "def _4cr(YKHO):\n CBIr = YKHO.custodian_1_user\...
[ "0.75319856", "0.7424455", "0.73408103", "0.7208054", "0.7112452", "0.70674604", "0.70493424", "0.7007222", "0.6995473", "0.6993244", "0.69699675", "0.69343144", "0.6933057", "0.69326437", "0.6920444", "0.6877365", "0.687599", "0.6850054", "0.68386906", "0.6830981", "0.682741...
0.0
-1
Returns the name of this format model.
def Q0HP(YKHO) -> QMSQ: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO) -> str:\n return YKHO._name(YKHO.model).decode('utf-8')", "def mWFP(YKHO) -> str:\n return YKHO._model.name", "def Q0HP(YKHO):\n return _VfD.Model_getName(YKHO)", "def Q0HP(YKHO):\n return _VfD.ModelCreator_getName(YKHO)", "def ZGE9(YKHO) -> str:\n return YKHO._model_name", ...
[ "0.83283556", "0.82092303", "0.8112546", "0.8056994", "0.7982692", "0.7910697", "0.7873992", "0.7844478", "0.782266", "0.7734807", "0.75381947", "0.752336", "0.7502532", "0.7502187", "0.74671507", "0.7458952", "0.7458952", "0.7458952", "0.7458153", "0.74411404", "0.74411404",...
0.0
-1
Returns the number of rows in the model.
def SWGE(YKHO) -> int: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _1Ox(YKHO):\n return YKHO._num_rows", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def NwL4(YKHO):\n return len(YKHO.rows)", "def DR2N(YKHO):\n return YKHO.__row_count", "def NwL4(YKHO):\n return len(YKHO.rows)", "def SWGE(YK...
[ "0.85382944", "0.84325254", "0.84325254", "0.83518374", "0.8345603", "0.8314205", "0.82892334", "0.8265968", "0.8252321", "0.82438457", "0.8191325", "0.81005234", "0.8068524", "0.8025643", "0.802367", "0.7993545", "0.78939414", "0.78501284", "0.78151244", "0.77863514", "0.773...
0.84989536
1
Returns a list of unused valid fields for this model a list of unused valid fields for this model
def jTHW(YKHO) -> x1iM[RnTg.app.util.viewer.field.FieldFactory]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zjCg(YKHO):\n return [eHNT for eHNT in YKHO.__dict__ if not YKHO.__dict__[eHNT]]", "def sidz(YKHO):\n RelB = YKHO.get_empty_fields()\n return [eHNT for eHNT in RelB if eHNT in YKHO.REQUIRED_FIELDS]", "def VZ4l(YKHO):\n NSNj = set()\n for Jyyj in YKHO._meta.fields:\n if not Jyyj.primar...
[ "0.7349878", "0.71116936", "0.6933336", "0.6869725", "0.65557534", "0.65378433", "0.64126915", "0.6377505", "0.63303965", "0.63166696", "0.6255121", "0.62054867", "0.6173498", "0.6118625", "0.6111624", "0.6110761", "0.6106005", "0.60930705", "0.60926163", "0.6092295", "0.6057...
0.6034354
22
Returns the width of this model
def xiCJ(YKHO) -> int: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V8C_(YKHO):\n return YKHO.width", "def V8C_(YKHO):\n return YKHO.width", "def TVTK(Emd4):\n return Emd4._width", "def TVTK(YKHO):\n return YKHO.__width", "def TVTK(YKHO):\n return YKHO.__width", "def TVTK(YKHO):\n return YKHO.__width", "def TVTK(YKHO):\n return YKHO.__width", ...
[ "0.85976875", "0.8570635", "0.8530061", "0.8508681", "0.8508681", "0.8508681", "0.8508681", "0.8508681", "0.8508681", "0.8508681", "0.8508681", "0.8508681", "0.8508681", "0.8508681", "0.8508681", "0.8502479", "0.8459751", "0.84591776", "0.84591776", "0.84591776", "0.8457638",...
0.7756753
98
Sets the base id for this model. Each row in a model gets an id which must be unique across all models. id the base id for this format.
def JnhH(YKHO, id: int) -> None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\n YKHO.id = hbFX", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def ekm0(YKHO, id):\n raise NotImplementedError('mu...
[ "0.6845537", "0.68056786", "0.67752975", "0.6616676", "0.6573813", "0.655814", "0.6558015", "0.6530799", "0.6508139", "0.6508139", "0.6508139", "0.6508139", "0.6508139", "0.64869297", "0.64869297", "0.64869297", "0.6480976", "0.6470111", "0.6470111", "0.6470111", "0.6470111",...
0.7768307
0
Initializes the "head" of the LinkedList.
def FIMM(YKHO): YKHO.head = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, sdCG=None):\n YKHO.head = sdCG", "def FIMM(YKHO):\n try:\n YKHO.head = None\n except Exception as error:\n print(f'There is error in __init__ of LinkedList, the error {P1dF}')", "def FIMM(YKHO, sdCG=None):\n YKHO.head = sdCG", "def FIMM(YKHO, sdCG):\n YKHO.head = s...
[ "0.7965818", "0.790706", "0.787146", "0.77850586", "0.77850586", "0.77850586", "0.77850586", "0.77311087", "0.76762205", "0.76762205", "0.76762205", "0.76762205", "0.76762205", "0.76762205", "0.76762205", "0.76762205", "0.76762205", "0.76762205", "0.76762205", "0.76762205", "...
0.77008694
10
Inserts at the start of the LinkedList.
def QZi3(YKHO, nPrm): if YKHO.head is None: YKHO.head = Msxl(nPrm) else: ycBG = YKHO.head YKHO.head = Msxl(nPrm) YKHO.head.next = ycBG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Do8g(YKHO, tTpl):\n YKHO._start = YKHO._Node(tTpl, None, None)\n YKHO._start._prev = YKHO._start\n YKHO._start._next = YKHO._start\n YKHO._size += 1", "def mOHz(YKHO, ZfUD):\n if YKHO.is_empty():\n YKHO._first = ZfUD\n YKHO._rest = hD6b([None])\n else:\n S06t = hD6b([YK...
[ "0.7641221", "0.7611075", "0.74270654", "0.7361757", "0.72824967", "0.72736365", "0.72346425", "0.7151362", "0.7131744", "0.7113231", "0.70936376", "0.70571244", "0.6987067", "0.69847274", "0.69678026", "0.69668454", "0.69642395", "0.69482046", "0.69171953", "0.6913917", "0.6...
0.81024736
0
Inserts at the end of the LinkedList.
def Ze1L(YKHO, nPrm): if YKHO.head is None: YKHO.head = Msxl(nPrm) else: ycBG = YKHO.head while ycBG.next is not None: ycBG = ycBG.next ycBG.next = Msxl(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qJs5(YKHO, XP5J, tTpl):\n if XP5J == YKHO.tail:\n tTpl.prev = XP5J\n XP5J.next = tTpl\n YKHO.tail = tTpl\n else:\n tTpl.next = XP5J.next\n tTpl.prev = XP5J\n XP5J.next.prev = tTpl\n XP5J.next = tTpl\n YKHO.size += 1", "def WKm1(YKHO, tTpl):\n YKHO....
[ "0.7420986", "0.72702175", "0.71244717", "0.7027539", "0.6993729", "0.69688106", "0.69421405", "0.6920485", "0.6872743", "0.6851306", "0.6816791", "0.67921424", "0.6716298", "0.66644937", "0.66349274", "0.6625815", "0.66023135", "0.6585094", "0.65703344", "0.65688545", "0.652...
0.7885683
0
Formatted string representation of the LinkedList.
def zAg0(YKHO): Aofo = '' ycBG = YKHO.head while ycBG is not None: Aofo += str(ycBG.data) + ' -> ' ycBG = ycBG.next return Aofo[0:-4]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return 'LinkedList([{}],{}/{})'.format(YKHO.cur_node, YKHO.cur_pos, YKHO.length)", "def zAg0(YKHO):\n gEsp = ''\n RvYZ = YKHO.head\n while RvYZ:\n gEsp = gEsp + str(RvYZ.count) + ' ' + str(RvYZ.data) + '\\n'\n RvYZ = RvYZ.next\n return gEsp", "def wHJl(YKHO):\n ...
[ "0.78330487", "0.7736664", "0.7709272", "0.7617314", "0.7617314", "0.75514346", "0.75399464", "0.7514752", "0.7483276", "0.74713516", "0.74674237", "0.74573004", "0.74351996", "0.7422269", "0.73398143", "0.7318582", "0.7285701", "0.7266567", "0.7252506", "0.72502023", "0.7218...
0.7222265
20
Gets the id of this CreateCcRuleResponse. Rule ID.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def La_l(YKHO) -> str:\n return qe4Y.get(YKHO, 'rule_id')", "def mLJR(YKHO):\n return _VfD.Rule_getId(YKHO)", "def ULye(YKHO):\n from .osid_errors import IllegalState\n raise IllegalState()", "def LEfj(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_id')", "def LEfj(YKHO) -> str:\n ret...
[ "0.7270283", "0.7106906", "0.6510583", "0.6458946", "0.6458946", "0.6458946", "0.6458946", "0.6437092", "0.5946193", "0.5946193", "0.59140694", "0.59140694", "0.58002925", "0.575879", "0.575879", "0.5636206", "0.56116116", "0.56003135", "0.5576802", "0.5433717", "0.5433717", ...
0.0
-1
Sets the id of this CreateCcRuleResponse. Rule ID.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def La_l(YKHO, La_l):\n YKHO._rule_id = La_l", "def La_l(YKHO, La_l):\n if YKHO.local_vars_configuration.client_side_validation and La_l is None:\n raise ValueError('Invalid value for `rule_id`, must not be `None`')\n YKHO._rule_id = La_l", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V...
[ "0.6763874", "0.65677536", "0.57124186", "0.5681829", "0.56382966", "0.56165016", "0.5594762", "0.55003273", "0.55003273", "0.55003273", "0.55003273", "0.55003273", "0.55003273", "0.55003273", "0.55003273", "0.55003273", "0.55003273", "0.55003273", "0.55003273", "0.55003273", ...
0.0
-1
Gets the policyid of this CreateCcRuleResponse. Policy ID.
def CI_C(YKHO): return YKHO._policyid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ulWc(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'policy_id')", "def ulWc(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'policy_id')", "def ulWc(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'policy_id')", "def ulWc(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO,...
[ "0.71869653", "0.70272726", "0.66735554", "0.65377337", "0.6409638", "0.61068887", "0.58747417", "0.5775966", "0.5775966", "0.57558006", "0.5664476", "0.5654184", "0.5654184", "0.5654184", "0.56081605", "0.5586304", "0.55531263", "0.55446535", "0.5529159", "0.55233705", "0.55...
0.7301752
0
Sets the policyid of this CreateCcRuleResponse. Policy ID.
def CI_C(YKHO, CI_C): YKHO._policyid = CI_C
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ulWc(YKHO, ulWc):\n YKHO._policy_id = ulWc", "def ulWc(YKHO, ulWc):\n YKHO._policy_id = ulWc", "def La_l(YKHO, La_l):\n if YKHO.local_vars_configuration.client_side_validation and La_l is None:\n raise ValueError('Invalid value for `rule_id`, must not be `None`')\n YKHO._rule_id = La_l",...
[ "0.68123084", "0.68123084", "0.54625875", "0.5370309", "0.52680314", "0.5140868", "0.50436664", "0.49458042", "0.49458042", "0.47753757", "0.47435704", "0.46656474", "0.4633625", "0.46130386", "0.45901033", "0.45841998", "0.4564423", "0.45584872", "0.45259494", "0.45065802", ...
0.6867485
0
Sets the action of this CreateCcRuleResponse.
def XeOP(YKHO, XeOP): YKHO._action = XeOP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FGnS(YKHO, XeOP):\n YKHO.action = XeOP\n return YKHO", "def Ddsp(YKHO, XeOP):\n YKHO._action = XeOP\n return YKHO", "def XeOP(YKHO, XeOP):\n BbPm = ['APPLY', 'PRECHECK']\n if XeOP not in BbPm:\n raise ValueError('Invalid value for `action`, must be one of {0}'.format(BbPm))\n YK...
[ "0.5740242", "0.55543965", "0.53980976", "0.52404845", "0.52404845", "0.5120677", "0.5100687", "0.5100687", "0.5100687", "0.5100687", "0.5100687", "0.5100687", "0.5069118", "0.50683737", "0.5046312", "0.504063", "0.49563912", "0.4946187", "0.47646853", "0.4764047", "0.4764047...
0.50210416
16
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, GoRl): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.84560555", "0.83913696", "0.8143685", "0.81403786", "0.8131871", "0.8093231", "0.80915105", "0.80915105", "0.80915105", "0.8084564", "0.8084564", "0.8075547", "0.8075547", "0.8065006" ]
0.0
-1
Plot the grid lines.
def tFHf(YKHO, **B2fa): if 'ax' in B2fa: aNZO = B2fa.pop('ax') else: aNZO = YKHO.ax fvDH = YKHO.get_grid_line_collection(**B2fa) if fvDH is not None: aNZO.add_collection(fvDH) aNZO.set_xlim(YKHO.extent[0], YKHO.extent[1]) aNZO.set_ylim(YKHO.extent[2], YKHO.extent[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RvHf(YKHO):\n YKHO.plot(3)", "def tlUU(QrM1):\n nJ9F, o4D3, ajwV, rNcn = (0, 3057, 6508, 9860)\n nxyw, si3g, skBL, Sb1k, INzm, J60W, FGqr, YHIa, HEFH = (0, 1535, 2041, 2547, 3053, 3559, 4257, 5303, 6978)\n Cwt5, ZSG5 = (0.3, 0.5)\n QrM1.plot((nJ9F, nJ9F), (nxyw, HEFH), 'black', alpha=Cwt5, lin...
[ "0.77306366", "0.7440607", "0.71641326", "0.71400976", "0.70725334", "0.7071036", "0.706398", "0.70392907", "0.70115954", "0.69848794", "0.69813", "0.69724023", "0.6855517", "0.68539494", "0.67763984", "0.67680395", "0.6744388", "0.67417234", "0.6659664", "0.6651281", "0.6644...
0.6760518
16
This function reconstructs a Plan object given its attributes in the form of a Protobuf message
def lZDS(i4ai: AbstractWorker, KZ83: PlanPB) -> 'Plan': hbFX = BhJz.serde.protobuf.proto.get_protobuf_id(KZ83.id) LmAn = BhJz.serde.protobuf.serde._unbufferize(i4ai, KZ83.role) mWFP = KZ83.name dJ1p = set(KZ83.tags) if KZ83.tags else None JBZA = KZ83.description if KZ83.description else None HiO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LzGK(i4ai: AbstractWorker, qUyJ: 'Plan') -> IEci:\n if not qUyJ.is_built:\n raise RuntimeError('A Plan needs to be built before being serialized.')\n KZ83 = IEci()\n BhJz.serde.protobuf.proto.set_protobuf_id(KZ83.id, qUyJ.id)\n KZ83.role.CopyFrom(BhJz.serde.protobuf.serde._bufferize(i4ai, qU...
[ "0.63206017", "0.61841536", "0.5835459", "0.5790261", "0.569005", "0.55401856", "0.5442663", "0.54380345", "0.54332626", "0.5409316", "0.540098", "0.5369381", "0.53568256", "0.5352154", "0.534639", "0.5332706", "0.5300507", "0.5285836", "0.5265404", "0.5259517", "0.52550447",...
0.6413197
0
str, programm release date
def wjGx(YKHO, _c1T): YKHO.date = _c1T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oQc2():\n IznC = Hy7s.path.join('doc', 'changelog.txt')\n ClkZ = 'unknown'\n with open(IznC) as Gcbu:\n zFiD = Gcbu.readline()\n ohcp = DQtG.search(zFiD)\n if ohcp:\n ClkZ = ohcp.groups(1)\n return ClkZ", "def ClkZ(YKHO):\n for ZfUD in YKHO.proto.releaseInfo.ite...
[ "0.7408091", "0.7198261", "0.7160273", "0.6860224", "0.6607413", "0.65098083", "0.6507584", "0.6457579", "0.64545375", "0.6396257", "0.6379055", "0.6310433", "0.6278051", "0.62684923", "0.6254182", "0.6254182", "0.6232508", "0.62040883", "0.6202938", "0.62020254", "0.61583054...
0.0
-1
str, programm release date
def slWZ(YKHO): return YKHO.date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oQc2():\n IznC = Hy7s.path.join('doc', 'changelog.txt')\n ClkZ = 'unknown'\n with open(IznC) as Gcbu:\n zFiD = Gcbu.readline()\n ohcp = DQtG.search(zFiD)\n if ohcp:\n ClkZ = ohcp.groups(1)\n return ClkZ", "def ClkZ(YKHO):\n for ZfUD in YKHO.proto.releaseInfo.ite...
[ "0.74083066", "0.7198372", "0.7159767", "0.68597376", "0.66077125", "0.6509285", "0.6507849", "0.64564747", "0.6454136", "0.6396293", "0.63795567", "0.6310078", "0.6277594", "0.6267627", "0.6254642", "0.6254642", "0.62316066", "0.6203986", "0.62028855", "0.620112", "0.6158232...
0.0
-1
list of str, fk filenames
def jnFh(YKHO, _PsJ): YKHO.fnames = _PsJ[:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iumf(YKHO):\n pass", "def oQCG(YKHO, o3Uj=False):\n if o3Uj is False:\n ehBT = []\n for ei4T in YKHO.bucket.objects.filter(Prefix=YKHO.training_data_dir):\n Ux0P = str(ei4T.key).split('/')[-1]\n if Ux0P != '':\n ehBT.append(Ux0P)\n return ehBT\n...
[ "0.67755556", "0.6628222", "0.6548546", "0.64015895", "0.6263758", "0.61676055", "0.61512816", "0.61504734", "0.6148894", "0.6131899", "0.61317396", "0.6121811", "0.61206263", "0.6073157", "0.6062771", "0.60525453", "0.60513395", "0.60458434", "0.60267854", "0.60214454", "0.6...
0.0
-1
list of str, fk filenames
def Bx3W(YKHO): return YKHO.fnames[:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iumf(YKHO):\n pass", "def oQCG(YKHO, o3Uj=False):\n if o3Uj is False:\n ehBT = []\n for ei4T in YKHO.bucket.objects.filter(Prefix=YKHO.training_data_dir):\n Ux0P = str(ei4T.key).split('/')[-1]\n if Ux0P != '':\n ehBT.append(Ux0P)\n return ehBT\n...
[ "0.6774875", "0.6627188", "0.65489256", "0.63998985", "0.626276", "0.6166085", "0.6150616", "0.61502004", "0.61491835", "0.613219", "0.6131962", "0.6120628", "0.6119466", "0.6073022", "0.60615385", "0.605201", "0.605102", "0.6045804", "0.6026361", "0.602079", "0.6012861", "...
0.0
-1
Asserts that a check of the given lines with the given local bear either yields or does not yield any results.
def AvpI(YKHO, Sv_C, Nqlg, Ux0P=None, deVW=True, vnTt=True, znXv=True, S3ND={}): assert isinstance(YKHO, DuvM.TestCase) YKHO.assertIsInstance(Sv_C, I9VY, msg='The given bear is not a local bear.') YKHO.assertIsInstance(Nqlg, (list, tuple), msg='The given lines are not a list.') with yCj0(Nqlg, Ux0P, for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v5Ez(YKHO, Nqlg: Sequence[str], cToP: NeedLines, Igq8: bool=True) -> None:\n if Igq8:\n Nqlg = [LUq1.common.compact_spaces(WKvO) for WKvO in Nqlg]\n hnQL = cToP\n cToP = []\n for zFiD in hnQL:\n if isinstance(zFiD, tuple):\n cToP.append((LUq1.common.comp...
[ "0.6415525", "0.6258591", "0.6175178", "0.606589", "0.60321593", "0.5958627", "0.5910324", "0.5549529", "0.5541374", "0.5513141", "0.5494467", "0.54903716", "0.5461839", "0.53709966", "0.53559434", "0.5304975", "0.52981645", "0.529743", "0.5291794", "0.5274744", "0.5261919", ...
0.67332256
0
The object returns itself because it is implementing a __next__ method and does not need any additional state for iteration.
def Vs4Q(YKHO): return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n return YKHO.next()", "def UDAb(YKHO):\n return YKHO.next()", "def UDAb(YKHO):\n return YKHO.next()", "def UDAb(YKHO):\n return YKHO.next()", "def Vs4Q(YKHO):\n return YKHO._next()", "def Vs4Q(YKHO):\n return YKHO._next()", "def Vs4Q(YKHO):\n return YKHO._next()", ...
[ "0.88203764", "0.8761689", "0.8761689", "0.8761689", "0.87397534", "0.87397534", "0.87397534", "0.8671067", "0.8639678", "0.8631748", "0.8509479", "0.8500059", "0.84445626", "0.84445626", "0.84445626", "0.84445626", "0.84445626", "0.84445626", "0.84445626", "0.84134924", "0.8...
0.8154327
43
Does `filename` appear to be an image file?
def TfuZ(Ux0P): t5cv = ['.jpg', '.jpeg', '.png', '.gif'] YBcr = Hy7s.path.splitext(Ux0P)[1].lower() return YBcr in t5cv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TfuZ(Ux0P):\n return DVFM(Ux0P, UcD8)", "def ETKF(Ux0P: str) -> str:\n Fst3 = Ux0P.rsplit('.', 1)[-1].lower()\n assert Fst3 in l8Tj, f'Invalid image: {Ux0P}. Allowed extensions: {l8Tj}'\n return Fst3", "def JaJl(Ux0P):\n return '.jpg' in Ux0P", "def TfuZ(Ux0P):\n return any([Ux0P.endswi...
[ "0.79731274", "0.7787988", "0.7554723", "0.7551654", "0.7491204", "0.7436177", "0.73284477", "0.7307106", "0.7300574", "0.7212581", "0.71505696", "0.7064782", "0.7023415", "0.69625264", "0.6875895", "0.6828818", "0.6813273", "0.6765537", "0.66755134", "0.65713376", "0.6497355...
0.77121425
2
Function will replace spaces in a string with '%20'. Assumes that the string has sufficient space at the end to hold the extra characters Runs in O(n) time since we just iterate throught the string.
def We_H(cWgI: list or str, TK9Z: int) -> list: if type(cWgI) is str: cWgI = list(cWgI) g5RM = AgvD(cWgI, TK9Z) * 2 + TK9Z - 1 if g5RM < len(cWgI) - 1: cWgI = cWgI[:g5RM + 1] gj0S = TK9Z - 1 while gj0S != g5RM: if cWgI[gj0S] != ' ': cWgI[g5RM] = cWgI[gj0S] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cbwL(KCHu):\n return ''.join(('%20' if Z9rn == ' ' else Z9rn for Z9rn in KCHu.strip()))", "def jFgN(U1OF):\n while U1OF.find(' ') != -1:\n U1OF = U1OF.replace(' ', '%20')\n return U1OF", "def yKK1(l5Ny, u54L):\n return l5Ny.rstrip().replace(' ', '%20')", "def PRAt(yzQ0, u54L):\n gLi...
[ "0.6961475", "0.6925711", "0.67736304", "0.65099347", "0.6290201", "0.59334224", "0.58078074", "0.5657619", "0.5639636", "0.55906504", "0.5579616", "0.5522704", "0.54756975", "0.5459403", "0.54427254", "0.54386735", "0.5425617", "0.53992987", "0.5357473", "0.5351122", "0.5350...
0.51240116
34
Gets the artist for the specific song instance
def h5p_(YKHO) -> str: return YKHO._artist
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FUq5(YKHO):\n return YKHO._artist", "def FUq5(YKHO) -> h8nf[str]:\n return YKHO.artist", "def h5p_(YKHO, vexM, B2Dn=None):\n return YKHO.get('artist', vexM, B2Dn)", "def Jghd(YKHO):\n cO07 = V7sY.query(V7sY.artist).distinct().filter(V7sY.album == YKHO.name).filter(V7sY.year == YKHO.year).all(...
[ "0.7880977", "0.7503582", "0.7362446", "0.7290549", "0.72895736", "0.72466034", "0.72391135", "0.71693665", "0.707334", "0.70518917", "0.70236444", "0.698136", "0.6962645", "0.69252944", "0.6911314", "0.6911314", "0.68798584", "0.6842157", "0.6547474", "0.6468637", "0.6422587...
0.7123093
8