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 the time left on the timer
def y2F0(YKHO): return YKHO.__duration - YKHO.getTimeElapsed()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TK8C(YKHO):\n return YKHO.timeout - YKHO.current_milli_time()", "def KAVc(YKHO):\n return YKHO.round_timeout - YKHO.current_milli_time()", "def TK8C(YKHO):\n if YKHO._timestamp is None:\n return 0\n else:\n TK8C = YKHO.timeout - (ITS7.time() - YKHO._timestamp)\n return TK8C...
[ "0.87213963", "0.82389385", "0.81532496", "0.8148799", "0.7983368", "0.7840608", "0.783673", "0.78082913", "0.7789018", "0.7747283", "0.7567105", "0.7560687", "0.75465465", "0.75369567", "0.75342077", "0.7501266", "0.74653137", "0.74572575", "0.74259275", "0.73990095", "0.739...
0.73027086
27
Get this character's name.
def W0tD(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qjWR(YKHO) -> str:\n return YKHO.data['verify']['CharacterName']", "def W0tD(YKHO):\n return WaO6.get_nickname(YKHO.get_db_id())", "def wGWt(YKHO):\n if not YKHO._current_char.isalpha():\n raise ValueError('_get_name() encounters _current_char which ' + 'is not a letter.')\n mWFP = YKHO....
[ "0.83453476", "0.8300758", "0.8070807", "0.7807115", "0.78043205", "0.78043205", "0.78043205", "0.78043205", "0.78043205", "0.77920634", "0.77920634", "0.77920634", "0.77920634", "0.77920634", "0.77920634", "0.7768034", "0.775412", "0.7743937", "0.77358395", "0.7709225", "0.7...
0.7684724
24
Verify that we can post new comments
def AWhd(YKHO): x0hE = iJSR() xGqu = {'username': 'test-user', 'text': 'test text', 'content_url': 'test-url', 'ip': '1.160.10.241'} Bv0m = {'username': 'test-user', 'text': 'test text', 'id': 2, 'content_url': 'test-url'} geh0 = x0hE.post('/comment-api', xGqu, format='json') YKHO.assertEqual(geh0.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPjI(YKHO):\n geh0 = YKHO.client.post('/api/comments/', YKHO.test_comment)\n YKHO.assertEqual(len(geh0.data), 5)\n YKHO.assertEqual(geh0.status_code, 201)\n YKHO.assertEqual(geh0.data['comment'], 'This check bounced you looney!')", "def GmCT(YKHO):\n Tj1O = [{'movie_id': 1, 'comment_body': \"T...
[ "0.7428463", "0.73532426", "0.7308667", "0.7166545", "0.71223843", "0.7060061", "0.703766", "0.70241356", "0.69942385", "0.6993429", "0.69864774", "0.69864774", "0.6973961", "0.69284", "0.68951523", "0.686878", "0.6849449", "0.6800197", "0.677052", "0.6768655", "0.67610353", ...
0.6254277
78
Save the dictionary of dev/user doc into json file if the file_name is empty then use the input file's name
def xkzz(YKHO, gIsw): if gIsw is None: gIsw = f'{YKHO.file_name}.json' nPrm = YKHO.get_user_doc_in_json() with open(gIsw, 'w') as _RR0: qQXR.dump(nPrm, _RR0, indent=4, sort_keys=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXEK(flIk):\n Ux0P = flIk['First Name'] + ' ' + flIk['Last Name'] + '.json'\n PcZo = open(Ux0P, 'w')\n qQXR.dump(flIk, PcZo)\n PcZo.close()", "def SUCt(nPrm: dict, mWFP: str):\n with open(f'assets/data/{mWFP}.json', 'w', encoding='utf-8') as eHNT:\n qQXR.dump(nPrm, eHNT, ensure_ascii=Fa...
[ "0.68371785", "0.682926", "0.6807816", "0.6739614", "0.6665996", "0.65790504", "0.6565744", "0.6517469", "0.6510163", "0.6499173", "0.64673793", "0.64456683", "0.64195", "0.6388103", "0.63696927", "0.63674796", "0.6311307", "0.6285057", "0.62791544", "0.62636626", "0.6260292"...
0.76663786
0
Returns the Iterator object
def Vs4Q(YKHO): return JZox(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sjsj(YKHO):\n return None", "def Vs4Q(YKHO):\n return YKHO.get_iterator()", "def oHE7(YKHO) -> bDy6[ut5U]:\n ...", "def Vs4Q(YKHO):\n return YKHO.Iterator(YKHO)", "def Vs4Q(YKHO) -> bDy6[ImMB]:\n return YKHO", "def Vs4Q(YKHO):\n pass", "def bDy6():\n return ED7W.Iterator()", ...
[ "0.8313537", "0.8240928", "0.80891436", "0.7930682", "0.78541523", "0.7738614", "0.77286017", "0.77286017", "0.77286017", "0.75581115", "0.7529662", "0.7524617", "0.7504541", "0.7482114", "0.7482114", "0.7482114", "0.7482114", "0.7482114", "0.7482114", "0.7482114", "0.7482114...
0.0
-1
Sets the liquid_bulk_modulus of this Cavitation.
def ahjB(YKHO, ahjB): YKHO._liquid_bulk_modulus = ahjB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hxj6(YKHO, hxj6):\n if YKHO.local_vars_configuration.client_side_validation and hxj6 is not None and (hxj6 < 0):\n raise ValueError('Invalid value for `liquid_bulk_modulus_coefficient`, must be a value greater than or equal to `0`')\n YKHO._liquid_bulk_modulus_coefficient = hxj6", "def GNYL(YKHO...
[ "0.7565276", "0.5994325", "0.5899757", "0.57098085", "0.5449993", "0.52275085", "0.51593363", "0.5108263", "0.5094357", "0.50908756", "0.507648", "0.48176038", "0.48176038", "0.48012912", "0.48012912", "0.47827166", "0.47817162", "0.47522402", "0.46624705", "0.46045586", "0.4...
0.90985245
0
Sets the liquid_reference_pressure of this Cavitation.
def oqmU(YKHO, oqmU): YKHO._liquid_reference_pressure = oqmU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CJ2p(YKHO, CJ2p):\n YKHO._pressure = CJ2p", "def CJ2p(YKHO, CJ2p):\n YKHO._pressure = CJ2p", "def JsW9(YKHO, XP5J):\n return bMU8.mix_setPressure(YKHO.__mixid, XP5J)", "def AvfV(YKHO, AvfV):\n YKHO._liquid_temperature = AvfV", "def iir4(YKHO, BWXx):\n for JmFt in YKHO.liqDraws.values() +...
[ "0.67700106", "0.67599505", "0.6321072", "0.625864", "0.5754768", "0.57395625", "0.56633055", "0.56134063", "0.5580497", "0.55070215", "0.545322", "0.54413044", "0.54018235", "0.5282069", "0.5251022", "0.5251022", "0.5251022", "0.5251022", "0.52342254", "0.51868856", "0.51868...
0.9116625
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, scUz): 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.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Overridden so that a 404 to nonexisting artist, album or song redirects to the artist list, album list or song list views instead of serving a 404 error.
def m7kB(QePW, qm1k='404.html'): if ZbWC.match('/library/artist/\\d+/', QePW.path): return vKnz(gxEw('artist_list')) if ZbWC.match('/library/album/\\d+/', QePW.path): return vKnz(gxEw('album_list')) if ZbWC.match('/library/song/\\d+/', QePW.path): return vKnz(gxEw('song_list')) i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mZnU():\n return oGir(RA4y, '<h1>404 Error : Some crap went down, so just <a href=\"/\">HEAD HOME</a>.</h1>', [])", "def EDag(QePW, *qIxc, **B2fa):\n return igJ6('Not Found.', status=404)", "def YYap(YKHO):\n return x7XB.missing(GSRe.render('404.html', {'path': YKHO._path}))", "def E06B(tTpl):\n...
[ "0.65408194", "0.6444228", "0.63553786", "0.63338774", "0.63152754", "0.6286872", "0.6282975", "0.62788296", "0.6241773", "0.623427", "0.62166333", "0.6198295", "0.6197696", "0.61869866", "0.61828226", "0.617338", "0.617338", "0.617338", "0.617338", "0.617338", "0.617338", ...
0.68254983
0
Checks if the payload has the required permission.
def d0C1(Uvf2, pB3N): w0rQ = pB3N.get('permissions') if w0rQ is None: raise yHM3({'code': 'invalid_claims', 'description': 'Permissions not included in JWT.'}, 400) if Uvf2 not in w0rQ: raise yHM3({'code': 'unauthorized', 'description': 'Operation not permitted.'}, 401) return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjN5(YKHO):\n pass", "def d0C1(Uvf2, pB3N):\n if Uvf2:\n if 'permissions' not in pB3N:\n raise yHM3('permissions not in payload', 401)\n if Uvf2 not in pB3N['permissions']:\n raise yHM3('permission not found', 403)\n return True", "def qHTF(YKHO):\n pass", ...
[ "0.78640366", "0.77190465", "0.7717221", "0.75105053", "0.74664116", "0.7442578", "0.73812276", "0.7361793", "0.72242755", "0.72237283", "0.7217563", "0.7156252", "0.7156252", "0.71478635", "0.71170974", "0.71170974", "0.71170974", "0.71170974", "0.71170974", "0.70930856", "0...
0.73390126
8
Verify and decode JWT token. The given token should be an Auth0 token with key id (kid).
def VyQc(eOtH): iEWR = jLnE.urlopen(f'https://{o2TV}/.well-known/jwks.json') CsQo = qQXR.loads(iEWR.read()) YAyS = DvJO.get_unverified_header(eOtH) VUMo = {} if 'kid' not in YAyS: raise yHM3({'code': 'invalid_header', 'description': 'Authorization malformed.'}, 401) Y9Xw = YAyS['kid'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xuVH(YKHO, eOtH):\n OPDH = DvJO.JWT(key=YKHO.jwk_keyset, jwt=eOtH)\n IIKu = qQXR.loads(OPDH.claims)\n YKHO.__verify_claim__(IIKu)\n return IIKu", "def V5V3(eOtH):\n return DvJO.decode(eOtH, L_5q, issuer=Bvtv, algorithms=[Y04C])", "def VyQc(eOtH):\n RKD7.debug(f'token: {eOtH}')\n if not...
[ "0.81256145", "0.804953", "0.800504", "0.79797566", "0.76661146", "0.761704", "0.761704", "0.7523705", "0.744886", "0.7442167", "0.7370193", "0.73684454", "0.729174", "0.72807616", "0.72799855", "0.72732025", "0.7263863", "0.72225344", "0.72106266", "0.7192933", "0.7165224", ...
0.8128288
0
Creates a SD_Wave object from data points contained in an array. This waveform object is stored in the PC RAM, not in the onboard RAM.
def p0aQ(bEZ4: int, BFeN: List[float], ghxv: Optional[List[float]]=None) -> QlFv: qJa9 = Or3e.SD_Wave() Aofo = qJa9.newFromArrayDouble(bEZ4, BFeN, ghxv) Jlbm(Aofo) return qJa9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IPB2(mWFP):\n pass", "def fn4v(YKHO):\n yzQ0 = oyIN.arange(*YKHO.sprange)\n eHNT = oyIN.zeros(yzQ0.shape)\n eHNT[slice(*YKHO.spnonzero - yzQ0[0])] += 1.0\n YKHO.sp = iuxB(wave=yzQ0, flux=eHNT)\n yzQ0 = oyIN.arange(*YKHO.bprange)\n a1PO = oyIN.zeros(yzQ0.shape)\n a1PO[slice(*YKHO.bpnon...
[ "0.58406675", "0.5800754", "0.57530916", "0.57364804", "0.57364804", "0.5732271", "0.5732271", "0.5518896", "0.54809505", "0.53885984", "0.53704536", "0.53598565", "0.5330661", "0.5329009", "0.53148097", "0.53144926", "0.53128695", "0.52678806", "0.5259816", "0.52359885", "0....
0.5036649
60
Creates a SD_Wave object from data points contained in an array. This waveform object is stored in the PC RAM, not in the onboard RAM.
def xdKk(bEZ4: int, BFeN: List[int], ghxv: Optional[List[int]]=None) -> QlFv: qJa9 = Or3e.SD_Wave() Aofo = qJa9.newFromArrayInteger(bEZ4, BFeN, ghxv) Jlbm(Aofo) return qJa9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IPB2(mWFP):\n pass", "def fn4v(YKHO):\n yzQ0 = oyIN.arange(*YKHO.sprange)\n eHNT = oyIN.zeros(yzQ0.shape)\n eHNT[slice(*YKHO.spnonzero - yzQ0[0])] += 1.0\n YKHO.sp = iuxB(wave=yzQ0, flux=eHNT)\n yzQ0 = oyIN.arange(*YKHO.bprange)\n a1PO = oyIN.zeros(yzQ0.shape)\n a1PO[slice(*YKHO.bpnon...
[ "0.584192", "0.5801657", "0.5755087", "0.5736122", "0.5736122", "0.57319564", "0.57319564", "0.55192655", "0.5481631", "0.53874195", "0.53667897", "0.5360231", "0.5332171", "0.53291386", "0.53159064", "0.53147495", "0.53126615", "0.5266603", "0.52601254", "0.52349424", "0.521...
0.0
-1
Reads a list of 32bit values from the specified FPGA memory.
def GqDo(YKHO, Ebhu: str, vgXP: int, Zgof: int, XPPW: bool=False) -> x1iM[int]: with YKHO._lock: lQ3t = Jlbm(YKHO.awg.FPGAgetSandBoxRegister(Ebhu), Ebhu) nPrm = Jlbm(lQ3t.readRegisterBuffer(vgXP, Zgof, Or3e.SD_AddressingMode.FIXED if XPPW else Or3e.SD_AddressingMode.AUTOINCREMENT, Or3e.SD_AccessMode...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x2TO(YKHO, UTX6):\n raise NotImplementedError", "def KmFC(YKHO, rRzo):\n return YKHO.readMemory(rRzo, 32)", "def vlQU(pdca):\n JRYC = oyIN.dtype(oyIN.uint32).newbyteorder('>')\n return oyIN.frombuffer(pdca.read(4), dtype=JRYC)[0]", "def lK0A(YKHO, UTX6, quRO):\n Aofo = (ExMO.LONG * quRO)()...
[ "0.66903895", "0.62020236", "0.5940184", "0.59398335", "0.5909493", "0.58221126", "0.5811513", "0.57707447", "0.57615864", "0.5708359", "0.5636396", "0.56292176", "0.55978054", "0.5580956", "0.5579417", "0.5579053", "0.55673355", "0.5538428", "0.5535681", "0.55347407", "0.552...
0.0
-1
Inputs for self.embeddings in TextModel(). Batch_input must be numpy padded
def nfTG(Cptt): Ep8u, Snhg = Cptt.shape gQVb = [Snhg * YRbF for YRbF in range(Ep8u)] return (Cptt.flatten(), gQVb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def twi8(YKHO, g4y1, Y9ns=False):\n Pha6, R6Bz = g4y1\n GhuM = ZylS.shape(Pha6)\n q4aw = GhuM[1]\n h6bD = ZylS.range(1, q4aw + 1, dtype=ZylS.int32)[ZylS.newaxis, :]\n ThNW = ZylS.gather(YKHO.charactor_embeddings, Pha6)\n lrJW = YKHO.position_embeddings(h6bD)\n KTQ3 = ThNW + ZylS.cast(lrJW, ThN...
[ "0.694859", "0.6866654", "0.6738521", "0.66498595", "0.659075", "0.65271145", "0.64463", "0.6440896", "0.64051586", "0.6404556", "0.6401567", "0.63930297", "0.63787806", "0.63746184", "0.6359592", "0.63314766", "0.63276744", "0.63194454", "0.6318793", "0.6285298", "0.62668264...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, JEq5): tspZ = uwaB.LR * 0.95 ** (JEq5 // uwaB.LR_DECAY_EVERY) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ return K0do
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, JEq5): tspZ = uwaB.LR * 0.95 ** (JEq5 // uwaB.LR_DECAY_EVERY) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ return K0do
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.0
-1
Sample reprojected trajectories of the discrete dynamical system x_{j+1} = f(x_{j}, u_{j}), x_{0} = x0.
def lYL9(eHNT, zwDY, nJ9F, DOvZ, KkY2=None): exwG, Mkmy = zwDY.shape if nJ9F.shape != (exwG,): raise ValueError('basis Vr and initial condition x0 not aligned') WFpy = oyIN.empty((Mkmy, DOvZ)) WFpy[:, 0] = zwDY.T @ nJ9F if KkY2 is None: for r845 in range(DOvZ - 1): WFpy[:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XiF4(YKHO, P6bq, nJ9F):\n Kt_s = P6bq.shape[0]\n WKvO = oyIN.zeros([Kt_s + 1, YKHO.state_dim])\n WKvO[0] = nJ9F\n qAtj = [1, 1, 1, 0.5, 0.5]\n KCHu = 0.5\n Csk6 = 0.3\n for a1PO in range(Kt_s):\n ZKRI = min(0.8 * (qAtj[1] - WKvO[a1PO, 1]), YKHO.road_saturation, 0.5 * WKvO[a1PO, 0])\...
[ "0.6104837", "0.5762086", "0.5735839", "0.5711081", "0.5710386", "0.5681652", "0.5678152", "0.5624563", "0.56213814", "0.5603135", "0.56019276", "0.55893207", "0.55626154", "0.55140483", "0.55117446", "0.54979366", "0.5489412", "0.5476771", "0.5476577", "0.54563224", "0.54403...
0.5505572
15
The argument parser for the command line interface.
def EpPs(): wvEv = j1Jz.ArgumentParser(formatter_class=j1Jz.RawDescriptionHelpFormatter, description='This is a script to demonstrate the list_files() function in this file.\n\n' + oX9Q('list-files.py', 'txt')) wvEv.add_argument('input_files', help='Examples for this arguments are: ' + oX9Q(inline=True), nargs=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ioG2():\n import argparse\n return argparse.ArgumentParser(description='Setting up binary search in neural nets project', formatter_class=argparse.ArgumentDefaultsHelpFormatter, allow_abbrev=False)", "def NcK2():\n wvEv = j1Jz.ArgumentParser(description='Parses input args')\n wvEv.add_argument('i...
[ "0.78705436", "0.77798486", "0.7778918", "0.77652216", "0.76245654", "0.76245654", "0.7613899", "0.75964624", "0.75704294", "0.75574124", "0.7554691", "0.7548775", "0.7540757", "0.75302917", "0.7506234", "0.7491634", "0.7480727", "0.7477213", "0.7464071", "0.7459886", "0.7448...
0.0
-1
Return the average of the x_i
def O5mg(WKvO): sum = 0 exwG = len(WKvO) - 1 for kidU in WKvO: if kidU != WKvO[0]: sum = float(sum) + float(kidU) return sum / exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pyoE(YKHO, WKvO):\n JBMS = oyIN.mean(WKvO, axis=0)\n return JBMS", "def JBMS(WKvO):\n return sum(WKvO) / len(WKvO)", "def tW3I(YKHO, kf56):\n nG5O = 0\n for WKvO in kf56:\n nG5O += WKvO\n nG5O = nG5O / len(kf56)\n return nG5O", "def JBMS(WKvO):\n return float(sum(WKvO) / le...
[ "0.7350737", "0.73181117", "0.7303619", "0.7303087", "0.7190344", "0.71305156", "0.7130033", "0.70306695", "0.70279676", "0.7016365", "0.7000868", "0.69975406", "0.69696593", "0.69677234", "0.69286114", "0.69275856", "0.691341", "0.68930763", "0.6890104", "0.6884135", "0.6856...
0.7057051
7
Add a video card to the config spec
def qckp(SvJk, C8yv=None, co1L=None, IwVp=-1, _s3E=None): C8yv = _Puf(C8yv) f6W2 = None for begE in C8yv.GetDefaultDevice(): if isinstance(begE, MoXe.Vm.Device.VirtualVideoCard): f6W2 = begE break if f6W2 == None: raise Exception('No VideoCard found in ConfigOptio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bNpa(YKHO, f6W2, C8Km):\n YKHO.videos.append((f6W2, C8Km))", "def lACn(Emd4, dxhl, aM_I=''):\n raise NotImplementedError(dxhl)", "def XVpk(GPtr, pmON):\n _Fei = DZ7t.join(GPtr, 'config.yaml')\n rCAY.add_new_videos(_Fei, [pmON])\n Rci7 = DZ7t.join('videos', pmON[pmON.rfind('/') + 1:])\n QO...
[ "0.6237321", "0.5935561", "0.5897123", "0.5768645", "0.5768644", "0.57593197", "0.5748102", "0.5731948", "0.5725072", "0.57213444", "0.57156897", "0.57156897", "0.57156897", "0.57156897", "0.57156897", "0.57156897", "0.57156897", "0.57156897", "0.57156897", "0.57156897", "0.5...
0.7352922
0
resets the Force vector
def gsQh(YKHO): YKHO.force.x = 0 YKHO.force.y = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qnWU(YKHO):\n YKHO.f_net = TDh_(0, 0, 0)", "def Qcyv(YKHO):\n YKHO.total_force = oyIN.zeros(3)\n YKHO.total_torque = oyIN.zeros(3)", "def _apF(YKHO):\n for AU8u in YKHO.movable_points:\n AU8u.f = oyIN.array([0.0, 0.0])", "def Yfus(YKHO):\n YKHO.__vel.vx = 0.0\n YKHO.__vel.vy = 0....
[ "0.8717292", "0.762012", "0.737782", "0.71811795", "0.710706", "0.7100174", "0.7076618", "0.7008843", "0.69727665", "0.6943559", "0.6941027", "0.68923604", "0.68675303", "0.6853636", "0.6847629", "0.6830888", "0.6819464", "0.6746104", "0.67035055", "0.67035055", "0.67017215",...
0.7803652
1
updates rigid body components
def QdZT(YKHO, JRYC): YKHO.accelaration.x = (YKHO.force.x + YKHO.friction.y) / YKHO.mass YKHO.accelaration.y = (YKHO.force.y + YKHO.gravity.y) / YKHO.mass YKHO.velocity = YKHO.accelaration * JRYC YKHO.position = YKHO.velocity * JRYC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO):\n YKHO.velocity += oyIN.dot(YKHO.force, YKHO.velocityFactor)\n YKHO.position += oyIN.dot(YKHO.velocity, YKHO.delta_t)\n YKHO.force = oyIN.zeros(3, dtype=oyIN.longdouble)", "def QdZT(YKHO):\n YKHO.pos[0] += YKHO.vel[0]\n YKHO.pos[1] += YKHO.vel[1]\n YKHO.pos[0] %= Wl2e\n YKHO....
[ "0.674695", "0.6742377", "0.66322327", "0.6584364", "0.6433437", "0.64180934", "0.64126974", "0.6403504", "0.638779", "0.6386456", "0.6371093", "0.62907046", "0.62595993", "0.62482715", "0.6230577", "0.622581", "0.62071025", "0.620125", "0.6199674", "0.6197056", "0.61845976",...
0.61928344
20
Load the pretrained ResNet152 and replace top fc layer.
def FIMM(YKHO, Agjb, mL4f=True): super(KmzZ, YKHO).__init__() print('pretrained is ' + str(mL4f)) Zxma = s3br('VGG16') KZ52 = list(Zxma.children())[:-1] YKHO.net = U78l.Sequential(*KZ52) YKHO.linear = U78l.Linear(Zxma.fc.in_features, Agjb) YKHO.bn = U78l.BatchNorm1d(Agjb, momentum=0.01) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(gXLj(FYrf.resnet152(pretrained=True)))\n return C3ST", "def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], c2s7, **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.loa...
[ "0.7163177", "0.6956914", "0.6879785", "0.68588334", "0.68036246", "0.68036246", "0.67950636", "0.6781928", "0.6761779", "0.6757072", "0.67471343", "0.67471343", "0.67471343", "0.67471343", "0.67471343", "0.67471343", "0.67471343", "0.67471343", "0.67471343", "0.67471343", "0...
0.0
-1
Method to check if data exists in a given table that has a certain value for a given field name.
def PrtT(YKHO, GTA_, K_Sa, BWXx): vtfo = False if BWXx is None: z4rv = 'NULL' else: z4rv = "'" + BWXx + "'" Frwu = YKHO.tbl_mgr.query('select ' + YKHO.tbl_mgr.get_column_name(K_Sa) + ' from ' + GTA_ + ' where ' + YKHO.tbl_mgr.get_column_name(K_Sa) + ' = ' + z4rv + ' limit 1') if Frwu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1hv(tyNF, Jyyj):\n xN6E = [eHNT.name for eHNT in ZO_c.ListFields(tyNF)]\n return True if Jyyj in xN6E else False", "def e1hv(tyNF, Jyyj):\n xN6E = [eHNT.name for eHNT in ZO_c.ListFields(tyNF)]\n return True if Jyyj in xN6E else False", "def rZE0(YKHO, GTA_: str, iVRZ: str, BWXx: str) -> bool:\...
[ "0.7645801", "0.7645801", "0.7188613", "0.7169162", "0.69466573", "0.69173443", "0.69053805", "0.6723588", "0.6696419", "0.6680849", "0.66658324", "0.6555482", "0.6495887", "0.6467019", "0.64517367", "0.6425008", "0.63754946", "0.6366665", "0.6354211", "0.634389", "0.6281736"...
0.8294255
0
Returns the radial derivative of the mean motion at semimajor axis a. Identical to domega_da(a).
def GMPA(YKHO, jzdc): return YKHO.domega_da(jzdc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sfcf(YKHO, jzdc):\n pHXX = jzdc * jzdc\n GQ2a = YKHO.gm / (pHXX * pHXX) * (-3.0 + DiEk._jseries(YKHO.domega_jn, YKHO.r2 / pHXX))\n return GQ2a / (2.0 * YKHO.omega(jzdc))", "def WoVi(YKHO, jzdc):\n pHXX = jzdc * jzdc\n YAyq = YKHO.gm / (pHXX * pHXX) * (-3.0 + DiEk._jseries(YKHO.dnu_jn, YKHO.r2 ...
[ "0.7032421", "0.6736839", "0.66522205", "0.63918394", "0.6224833", "0.61075866", "0.6076701", "0.60538846", "0.6048075", "0.5987356", "0.5985312", "0.59608954", "0.59497917", "0.5922957", "0.5919189", "0.5876176", "0.5863842", "0.5849468", "0.5848409", "0.57750946", "0.575487...
0.68417114
1
Adjust the sizing of the plot's axes.
def nzep(MPlV: Axes, Oef9: float) -> None: MPlV.set_xlim(0, f01J) MPlV.set_ylim(-1.05, 1.05) MPlV.set_title('Synchronization of sine functions') MPlV.set_xlabel('X Values') MPlV.set_ylabel('Y Values') MPlV.text(f01J - epAf.pi * 2, 0.9, f'Coupling: K={Oef9}') bULR = uV11(denominator=1) Fy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WFvY(TVTK=None, H2v2=None, aNZO=None):\n if TVTK is None:\n TVTK = 2.625\n if H2v2 is None:\n ZlbZ = (oyIN.sqrt(5) - 1.0) / 2.0\n H2v2 = TVTK * ZlbZ\n if aNZO is None:\n aNZO = QrM1.gca()\n vC9B = aNZO.figure.subplotpars.left\n Mkmy = aNZO.figure.subplotpars.right\n ...
[ "0.7505854", "0.7380654", "0.71670055", "0.70428723", "0.7017621", "0.69633186", "0.68712056", "0.68338776", "0.6811982", "0.67916244", "0.6788414", "0.6757461", "0.675057", "0.6744724", "0.66910017", "0.66840917", "0.6669555", "0.66651416", "0.6632757", "0.6627047", "0.66171...
0.0
-1
Redraw all artists on the plot.
def JxuQ(f4IJ: float, bK54: List[float], Nqlg: List[FuncLine], HzRY: List[FuncLine], Oef9: float) -> x1iM[uu64]: bK54.append(f4IJ) for YRbF, zFiD in enumerate(Nqlg): zFiD['phase'] = zFiD['phase'] + Oef9 * Q7df(YRbF, Nqlg) zFiD['data'].append(epAf.sin(zFiD['coefficient'] * f4IJ + zFiD['phase'])) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HGTG(YKHO):\n pass", "def HGTG(YKHO):\n pass", "def nTYD(YKHO):\n LZpg = YKHO.canvas.figure\n for jzdc in YKHO._artists:\n LZpg.draw_artist(jzdc)", "def gCKv(YKHO):\n for ehDb in YKHO:\n ehDb.redraw()", "def d7OQ(YKHO):\n YKHO.actors.redraw()\n YKHO.highlights.redraw(...
[ "0.7495171", "0.74186623", "0.73275614", "0.72988623", "0.7220327", "0.7167895", "0.6893412", "0.6880731", "0.6859944", "0.67789495", "0.6764438", "0.6764438", "0.6764438", "0.6742912", "0.6679788", "0.6669532", "0.6669532", "0.6611031", "0.66052693", "0.6573103", "0.6568395"...
0.0
-1
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0) Ylbp.append(R2Dg.mul_(100....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003211", "0.79748034", "0.79735845", "0.7941222", "0.78642285", "0.7803938", "0.7707779", "0.7621563", "0.7593218", "0.75612706", "0.752028", "0.7430132", "0.74122673", "0.7375894", "0.7374447", "0.7321427", "0.7254542", "0.7236769", "0.72279894", "0.7204469", "0.7137302"...
0.0
-1
Compares two paths. This will ignore the case on systems where it is not relevant.
def JWbp(YKHO, Elif): try: Elif = YKHO._to_backend(Elif) except TypeError: return NotImplemented else: return YKHO._normcase(YKHO.path) < YKHO._normcase(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZpEF(R7cN, RDvD):\n return 0", "def ZpEF(daXS: 'char const *', AUB0: 'char const *') -> 'int':\n return OtUK.svn_path_compare_paths(daXS, AUB0)", "def eKGA(daXS, AUB0):\n daXS = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.path.normpath(daXS)))\n AUB0 = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.pa...
[ "0.79484904", "0.742935", "0.73771966", "0.7197199", "0.7099329", "0.69167376", "0.68632686", "0.68527895", "0.67955136", "0.6782709", "0.6684331", "0.66610193", "0.6614533", "0.652627", "0.6445465", "0.63690317", "0.63635564", "0.62995315", "0.6278106", "0.62686235", "0.6238...
0.6125636
29
Compares two paths. This will ignore the case on systems where it is not relevant.
def TPjt(YKHO, Elif): try: Elif = YKHO._to_backend(Elif) except TypeError: return NotImplemented else: return YKHO._normcase(YKHO.path) <= YKHO._normcase(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZpEF(R7cN, RDvD):\n return 0", "def ZpEF(daXS: 'char const *', AUB0: 'char const *') -> 'int':\n return OtUK.svn_path_compare_paths(daXS, AUB0)", "def eKGA(daXS, AUB0):\n daXS = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.path.normpath(daXS)))\n AUB0 = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.pa...
[ "0.79484904", "0.742935", "0.73771966", "0.7197199", "0.7099329", "0.69167376", "0.68632686", "0.68527895", "0.67955136", "0.6782709", "0.6684331", "0.66610193", "0.6614533", "0.652627", "0.6445465", "0.63690317", "0.63635564", "0.62995315", "0.6278106", "0.62686235", "0.6238...
0.6065125
37
Compares two paths. This will ignore the case on systems where it is not relevant.
def jmxi(YKHO, Elif): try: Elif = YKHO._to_backend(Elif) except TypeError: return NotImplemented else: return YKHO._normcase(YKHO.path) > YKHO._normcase(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZpEF(R7cN, RDvD):\n return 0", "def ZpEF(daXS: 'char const *', AUB0: 'char const *') -> 'int':\n return OtUK.svn_path_compare_paths(daXS, AUB0)", "def eKGA(daXS, AUB0):\n daXS = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.path.normpath(daXS)))\n AUB0 = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.pa...
[ "0.79484904", "0.742935", "0.73771966", "0.7197199", "0.7099329", "0.69167376", "0.68632686", "0.68527895", "0.67955136", "0.6782709", "0.6684331", "0.66610193", "0.6614533", "0.652627", "0.6445465", "0.63690317", "0.63635564", "0.62995315", "0.6278106", "0.62686235", "0.6238...
0.0
-1
Compares two paths. This will ignore the case on systems where it is not relevant.
def Zcf_(YKHO, Elif): try: Elif = YKHO._to_backend(Elif) except TypeError: return NotImplemented else: return YKHO._normcase(YKHO.path) >= YKHO._normcase(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZpEF(R7cN, RDvD):\n return 0", "def ZpEF(daXS: 'char const *', AUB0: 'char const *') -> 'int':\n return OtUK.svn_path_compare_paths(daXS, AUB0)", "def eKGA(daXS, AUB0):\n daXS = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.path.normpath(daXS)))\n AUB0 = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.pa...
[ "0.79490185", "0.74300164", "0.73789316", "0.7198745", "0.70999724", "0.6916313", "0.68649364", "0.68536395", "0.6795802", "0.6782369", "0.6686616", "0.666223", "0.6614767", "0.6525342", "0.64474297", "0.63696814", "0.6361354", "0.6300078", "0.6277785", "0.62683785", "0.62402...
0.60177296
41
Splits this path into a pair (drive, location). Note that, because all paths are normalized, a root of ``'.'`` will be returned for relative paths.
def WpxP(YKHO): if not Lpna and hasattr(YKHO._lib, 'splitunc'): tk5Y, wOmD = YKHO._lib.splitunc(YKHO.path) if tk5Y: if wOmD.startswith(YKHO._sep): tk5Y += YKHO._sep wOmD = wOmD[1:] return (YKHO.__class__(tk5Y), YKHO.__class__(wOmD)) tk5Y, w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aDPy(YKHO):\n RSBG, J3uN = Hy7s.path.splitdrive(YKHO)\n return (GkAb(RSBG), J3uN)", "def aDPy(YKHO):\n RSBG, wvau = Hy7s.path.splitdrive(YKHO)\n return (YKHO.__class__(RSBG), wvau)", "def lpha(YKHO):\n TLI7, aPr_ = Hy7s.path.split(YKHO)\n return (GkAb(TLI7), GkAb(aPr_))", "def _wv_(YKHO...
[ "0.7789088", "0.731188", "0.7041277", "0.6818355", "0.6780258", "0.66588247", "0.6627888", "0.64985436", "0.64874184", "0.6464871", "0.6401735", "0.63463724", "0.6325519", "0.6322518", "0.62975794", "0.62952197", "0.62878424", "0.6234221", "0.61993307", "0.617397", "0.6156887...
0.6974367
3
Splits this path into its components. The first component will be the root if this path is relative, then each component leading to the filename.
def AdfU(YKHO): return [YKHO.__class__(XP5J) for XP5J in YKHO._components()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(YKHO):\n TLI7, aPr_ = Hy7s.path.split(YKHO)\n return (GkAb(TLI7), GkAb(aPr_))", "def zFJQ(YKHO, pmON):\n AdfU = []\n while True:\n sdCG, J3uN = Hy7s.path.split(pmON)\n if J3uN == '':\n AdfU.append(sdCG)\n break\n AdfU.append(J3uN)\n pmON = sd...
[ "0.74578935", "0.7411973", "0.7211749", "0.71896935", "0.7188941", "0.7172012", "0.7154402", "0.71471137", "0.7123761", "0.70774686", "0.7071519", "0.70700514", "0.7061646", "0.6972666", "0.6955917", "0.69221866", "0.6905205", "0.6905205", "0.68586236", "0.68364555", "0.68322...
0.0
-1
Indicates if the `prefix` is a parent of this path.
def YtHa(YKHO, y0cW): vU5P = YKHO.norm_case()._components() NGCO = YKHO.__class__(y0cW).norm_case()._components() return len(vU5P) >= len(NGCO) and vU5P[:len(NGCO)] == NGCO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kgXq(YKHO):\n for pG0V in YKHO._segments:\n if str(pG0V) == '..':\n return True\n return False", "def yeTp(YKHO) -> bool:\n return YKHO.path_type == 'prefix'", "def kgXq(pmON):\n return Hy7s.path.basename(pmON) != ''", "def jEzn(YKHO, y0cW):\n return any((XP5J == y0cW for...
[ "0.71855956", "0.71662134", "0.7023602", "0.69938445", "0.6676066", "0.6654708", "0.66409916", "0.65924776", "0.65829116", "0.6552603", "0.65231824", "0.65191424", "0.6518791", "0.6514737", "0.64912564", "0.6484921", "0.6483342", "0.6479089", "0.64751416", "0.64639395", "0.64...
0.0
-1
Context manager that changes to this directory then changes back.
def OSgP(YKHO): zr6D = YKHO.cwd() YKHO.chdir() try: yield finally: zr6D.chdir()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U4F2(YKHO, n0X3, B2fy, wVCK):\n ee4p = YKHO._dir_stack.pop()\n Hy7s.chdir(ee4p)", "def U4F2(YKHO, vEqo, t41g, Tobl):\n Hy7s.chdir(YKHO.oldfolder)", "def DMw_(YKHO):\n YKHO._dir_stack.append(Hy7s.getcwd())\n Hy7s.chdir(YKHO._location)", "def DMw_(YKHO):\n YKHO._original_directory = Hy7s....
[ "0.73045397", "0.7214809", "0.71273535", "0.7066039", "0.6901312", "0.685212", "0.67811066", "0.6658915", "0.6648674", "0.6540115", "0.6502841", "0.64888465", "0.6482894", "0.6474732", "0.64341867", "0.6406532", "0.63080823", "0.6272035", "0.6239139", "0.6219094", "0.61836267...
0.6580121
9
Builds a relative version of this path from the current directory. This is the same as ``Path.cwd().rel_path_to(thispath)``.
def Qth0(YKHO): return YKHO.cwd().rel_path_to(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PsRC(YKHO):\n sWmO = YKHO.__class__(Hy7s.getcwd())\n return sWmO.relpathto(YKHO)", "def NE63(YKHO):\n return GkAb(Hy7s.path.relpath(YKHO.get_absolute()))", "def t_yv(YKHO):\n qaEx = YKHO.absolute_path()\n qaEx = Hy7s.path.relpath(qaEx, U34r.CWD)\n return qaEx", "def t_yv(YKHO, pmON):\n ...
[ "0.7229177", "0.7163638", "0.698515", "0.69665635", "0.692058", "0.6862613", "0.68006444", "0.6799303", "0.679054", "0.6714826", "0.67056644", "0.66896904", "0.668073", "0.66326934", "0.6623328", "0.6610014", "0.6607348", "0.6601318", "0.6600534", "0.65546197", "0.65131235", ...
0.7517185
0
True if the file exists, except for broken symlinks where it's False.
def vtfo(YKHO): return YKHO._lib.exists(YKHO.path)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vtfo(YKHO):\n return Hy7s.path.lexists(YKHO.path)", "def poxP(YKHO):\n return True", "def hZSK(YKHO, Ux0P):\n if Hy7s.path.isfile(Ux0P):\n return True\n else:\n return False", "def cw5c(qaEx: pathlib.Path) -> bool:\n try:\n return qaEx.exists()\n except OSError:\n ...
[ "0.80942565", "0.805937", "0.80293274", "0.7953684", "0.7945311", "0.79313296", "0.78897095", "0.78878343", "0.78648466", "0.7818067", "0.78177613", "0.7801765", "0.7798896", "0.77869576", "0.7785843", "0.7783885", "0.7774536", "0.77654046", "0.773732", "0.7735415", "0.773298...
0.0
-1
True if the file exists, even if it's a broken symbolic link.
def IP1H(YKHO): return YKHO._lib.lexists(YKHO.path)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WbPw(Ux0P):\n return Hy7s.path.isfile(Ux0P) or Hy7s.path.islink(Ux0P)", "def vtfo(YKHO):\n return YKHO.islink() or vtfo(YKHO._path)", "def poxP(YKHO):\n return True", "def vtfo(YKHO):\n return Hy7s.path.lexists(YKHO.path)", "def hZSK(YKHO, Ux0P):\n if Hy7s.path.isfile(Ux0P):\n ret...
[ "0.8091712", "0.78973925", "0.7777293", "0.777152", "0.77378994", "0.77076423", "0.76900035", "0.7672408", "0.76269835", "0.75928533", "0.75836116", "0.75771105", "0.75748634", "0.7568778", "0.75625837", "0.7555235", "0.755423", "0.75332123", "0.75250137", "0.75187284", "0.75...
0.0
-1
Inits Movie Class with title, poster_url and trailer_url
def FIMM(YKHO, EiNU, emD2, rDEk): YKHO.title = EiNU YKHO.poster_image_url = emD2 YKHO.trailer_youtube_url = rDEk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, EiNU, pTZR, GXjR, RUE3):\n YKHO.title = EiNU\n YKHO.storyline = pTZR\n YKHO.poster_image_url = GXjR\n YKHO.trailer_youtube_url = RUE3", "def FIMM(YKHO, EiNU, pTZR, t8pF, lrH9):\n YKHO.title = EiNU\n YKHO.storyline = pTZR\n YKHO.poster_image_url = t8pF\n YKHO.trailer_youtube...
[ "0.8634725", "0.85920703", "0.8567614", "0.8567614", "0.8567614", "0.85657215", "0.85657215", "0.85657215", "0.85657215", "0.85657215", "0.85657215", "0.85657215", "0.8552106", "0.8549372", "0.8549372", "0.8549372", "0.8543026", "0.8543026", "0.8543026", "0.8538548", "0.85337...
0.86019653
1
Generate a TTtensor of the given shape with N(mean, stddev^2) cores.
def a_SA(ROpF, VIFm=2, JBMS=0.0, z2bo=1.0, yDqo=ZylS.float32, mWFP='t3f_tensor_with_random_cores'): ROpF = oyIN.array(ROpF) VIFm = oyIN.array(VIFm) sh87(is_tensor=True, shape=ROpF, tt_rank=VIFm) P9o9 = ROpF.size if VIFm.size == 1: VIFm = VIFm * oyIN.ones(P9o9 - 1, dtype=oyIN.int) VIF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzVw(ROpF, VIFm=2, JBMS=0.0, z2bo=1.0, yDqo=ZylS.float32, mWFP='t3f_random_tensor'):\n ROpF = oyIN.array(ROpF)\n VIFm = oyIN.array(VIFm)\n sh87(is_tensor=True, shape=ROpF, tt_rank=VIFm)\n P9o9 = ROpF.size\n if VIFm.size == 1:\n VIFm = VIFm * oyIN.ones(P9o9 - 1, dtype=oyIN.int)\n VI...
[ "0.67938197", "0.6419259", "0.63612354", "0.62973726", "0.62314755", "0.60865986", "0.6034945", "0.5979515", "0.59017533", "0.5892669", "0.5864531", "0.5807725", "0.577369", "0.56571364", "0.56041104", "0.55857277", "0.5560307", "0.55359083", "0.5535544", "0.5519415", "0.5491...
0.65137184
1
Generate a random TTtensor of the given shape with given mean and stddev. Entries of the generated tensor (in the full format) will be iid and satisfy E[x_{i1i2..id}] = mean, Var[x_{i1i2..id}] = stddev^2, but the distribution is in fact not Gaussian (but is close for large tensors). In the current implementation only m...
def FzVw(ROpF, VIFm=2, JBMS=0.0, z2bo=1.0, yDqo=ZylS.float32, mWFP='t3f_random_tensor'): ROpF = oyIN.array(ROpF) VIFm = oyIN.array(VIFm) sh87(is_tensor=True, shape=ROpF, tt_rank=VIFm) P9o9 = ROpF.size if VIFm.size == 1: VIFm = VIFm * oyIN.ones(P9o9 - 1, dtype=oyIN.int) VIFm = oyIN.in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XWCV(ROpF, VIFm=2, Ep8u=1, JBMS=0.0, z2bo=1.0, yDqo=ZylS.float32, mWFP='t3f_random_tensor_batch'):\n ROpF = oyIN.array(ROpF)\n VIFm = oyIN.array(VIFm)\n sh87(is_tensor=True, shape=ROpF, tt_rank=VIFm, batch_size=Ep8u)\n P9o9 = ROpF.size\n if VIFm.size == 1:\n VIFm = VIFm * oyIN.ones(P9o9 -...
[ "0.8078983", "0.7938579", "0.74894714", "0.7030264", "0.66521955", "0.66336185", "0.65653294", "0.63720167", "0.6239983", "0.6182949", "0.6158042", "0.6037986", "0.6004813", "0.5979822", "0.5979246", "0.59627247", "0.59475946", "0.587272", "0.581256", "0.5808284", "0.5808078"...
0.87006843
0
Generate a batch of TTtensors with given shape, mean and stddev. Entries of the generated tensors (in the full format) will be iid and satisfy E[x_{i1i2..id}] = mean, Var[x_{i1i2..id}] = stddev^2, but the distribution is in fact not Gaussian (but is close for large tensors). In the current implementation only mean 0 is...
def XWCV(ROpF, VIFm=2, Ep8u=1, JBMS=0.0, z2bo=1.0, yDqo=ZylS.float32, mWFP='t3f_random_tensor_batch'): ROpF = oyIN.array(ROpF) VIFm = oyIN.array(VIFm) sh87(is_tensor=True, shape=ROpF, tt_rank=VIFm, batch_size=Ep8u) P9o9 = ROpF.size if VIFm.size == 1: VIFm = VIFm * oyIN.ones(P9o9 - 1, dtype=o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ccca(ROpF, VIFm=2, Ep8u=1, JBMS=0.0, z2bo=1.0, yDqo=ZylS.float32, mWFP='t3f_random_matrix_batch'):\n ROpF = list(ROpF)\n if ROpF[0] is None:\n ROpF[0] = oyIN.ones(len(ROpF[1]), dtype=int)\n if ROpF[1] is None:\n ROpF[1] = oyIN.ones(len(ROpF[0]), dtype=int)\n ROpF = oyIN.array(ROpF)\n ...
[ "0.78922063", "0.75876033", "0.7393434", "0.72201914", "0.71122533", "0.66251206", "0.64863837", "0.6022799", "0.58923626", "0.5867653", "0.5754861", "0.5741262", "0.57386726", "0.572269", "0.568806", "0.56290096", "0.5619441", "0.5611707", "0.5605799", "0.5592981", "0.558108...
0.8503957
0
Generate a random TTmatrix of the given shape with given mean and stddev. Entries of the generated matrix (in the full format) will be iid and satisfy E[x_{i1i2..id}] = mean, Var[x_{i1i2..id}] = stddev^2, but the distribution is in fact not Gaussian. In the current implementation only mean 0 is supported. To get a rand...
def PB7L(ROpF, VIFm=2, JBMS=0.0, z2bo=1.0, yDqo=ZylS.float32, mWFP='t3f_random_matrix'): ROpF = list(ROpF) if ROpF[0] is None: ROpF[0] = oyIN.ones(len(ROpF[1]), dtype=int) if ROpF[1] is None: ROpF[1] = oyIN.ones(len(ROpF[0]), dtype=int) ROpF = oyIN.array(ROpF) VIFm = oyIN.array(VIFm)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ccca(ROpF, VIFm=2, Ep8u=1, JBMS=0.0, z2bo=1.0, yDqo=ZylS.float32, mWFP='t3f_random_matrix_batch'):\n ROpF = list(ROpF)\n if ROpF[0] is None:\n ROpF[0] = oyIN.ones(len(ROpF[1]), dtype=int)\n if ROpF[1] is None:\n ROpF[1] = oyIN.ones(len(ROpF[0]), dtype=int)\n ROpF = oyIN.array(ROpF)\n ...
[ "0.8148384", "0.7565586", "0.72102135", "0.7181346", "0.71488273", "0.69105846", "0.6331038", "0.62656504", "0.6167215", "0.6049627", "0.60232085", "0.59748286", "0.5964433", "0.5946531", "0.5925312", "0.58466893", "0.5794471", "0.5778962", "0.5761014", "0.574577", "0.5739075...
0.8625569
0
Generate a batch of TTmatrices with given shape, mean and stddev. Entries of the generated matrices (in the full format) will be iid and satisfy E[x_{i1i2..id}] = mean, Var[x_{i1i2..id}] = stddev^2, but the distribution is in fact not Gaussian. In the current implementation only mean 0 is supported. To get a random_mat...
def Ccca(ROpF, VIFm=2, Ep8u=1, JBMS=0.0, z2bo=1.0, yDqo=ZylS.float32, mWFP='t3f_random_matrix_batch'): ROpF = list(ROpF) if ROpF[0] is None: ROpF[0] = oyIN.ones(len(ROpF[1]), dtype=int) if ROpF[1] is None: ROpF[1] = oyIN.ones(len(ROpF[0]), dtype=int) ROpF = oyIN.array(ROpF) VIFm = oy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XWCV(ROpF, VIFm=2, Ep8u=1, JBMS=0.0, z2bo=1.0, yDqo=ZylS.float32, mWFP='t3f_random_tensor_batch'):\n ROpF = oyIN.array(ROpF)\n VIFm = oyIN.array(VIFm)\n sh87(is_tensor=True, shape=ROpF, tt_rank=VIFm, batch_size=Ep8u)\n P9o9 = ROpF.size\n if VIFm.size == 1:\n VIFm = VIFm * oyIN.ones(P9o9 -...
[ "0.77697116", "0.77218", "0.7632787", "0.6999554", "0.6950164", "0.67163414", "0.63366205", "0.6022197", "0.5846774", "0.5570724", "0.5530686", "0.5521144", "0.5504777", "0.55046713", "0.54768044", "0.5455484", "0.542875", "0.5415906", "0.5387084", "0.53868735", "0.5350795", ...
0.84493154
0
Constructs a random TT matrix with entrywise variance 1.0 / n_in
def Zjt8(ROpF, VIFm=2, yDqo=ZylS.float32, mWFP='t3f_lecun_initializer'): ROpF = list(ROpF) if ROpF[0] is None: ROpF[0] = oyIN.ones(len(ROpF[1]), dtype=int) if ROpF[1] is None: ROpF[1] = oyIN.ones(len(ROpF[0]), dtype=int) ROpF = oyIN.array(ROpF) VIFm = oyIN.array(VIFm) sh87(is_ten...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vr1C(YKHO, ROaS, Lm6x, WTkW):\n yzQ0 = []\n for YRbF in range(len(WTkW)):\n yzQ0.append(wgVh.randn(ROaS, Lm6x) / WTkW[YRbF])\n return yzQ0", "def z8PX(exwG):\n tjUW = U7YL.random.normal(0, 1, size=(exwG, exwG))\n return tjUW", "def ZGHb(exwG):\n tjUW = U7YL.random.uniform(0.0, 1.0,...
[ "0.6403535", "0.6368717", "0.63265187", "0.6302514", "0.6250257", "0.61739314", "0.61671054", "0.6139463", "0.6138052", "0.6135162", "0.6113918", "0.6079783", "0.6072429", "0.6070334", "0.6038121", "0.6036272", "0.60336196", "0.60308164", "0.6023277", "0.60149807", "0.6014980...
0.0
-1
Flip classes according to transition probability matrix T. It expects a number between 0 and the number of classes 1.
def pvOc(LVAh, V6IE, t3eI=0): assert V6IE.shape[0] == V6IE.shape[1] assert oyIN.max(LVAh) < V6IE.shape[0] t_0o(V6IE.sum(axis=1), oyIN.ones(V6IE.shape[1])) assert (V6IE >= 0.0).all() r8hN = LVAh.shape[0] eLqP = LVAh.copy() kc58 = oyIN.random.RandomState(t3eI) for or8S in oyIN.arange(r8hN)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pvOc(LVAh, Kt_s, t3eI=0):\n LVAh = oyIN.asarray(LVAh)\n assert Kt_s.shape[0] == Kt_s.shape[1]\n assert oyIN.max(LVAh) < Kt_s.shape[0]\n t_0o(Kt_s.sum(axis=1), oyIN.ones(Kt_s.shape[1]))\n assert (Kt_s >= 0.0).all()\n r8hN = LVAh.shape[0]\n eLqP = LVAh.copy()\n kc58 = oyIN.random.RandomSt...
[ "0.61974806", "0.60317326", "0.5887813", "0.5760927", "0.57220525", "0.5708355", "0.5564933", "0.5531621", "0.5513146", "0.5504261", "0.5503704", "0.54209924", "0.5393901", "0.5383336", "0.53554094", "0.5342989", "0.53299206", "0.53049064", "0.53039664", "0.52978367", "0.5294...
0.5358545
14
Compute average precision (AP) for each class.
def S7K1(WPxI, v7iA, cOHK, PKpG=0.5, _AYS=False): with open(cOHK) as eHNT: lE0q = [] oUSw = [] cCrA = [] for zFiD in eHNT: a1PO = zFiD.rstrip().split(' ') lE0q.append(a1PO[0]) cCrA.append(float(a1PO[1])) FlUN = ht2j.tensor([float(Ty9i) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W2wS(vnaa):\n return eQSh.mean([Ylbp.precision() for Ylbp in vnaa])", "def OVXC(aTLP, Crrw):\n Nc2M = len(Crrw[0])\n VhGq = oyIN.zeros(Nc2M)\n for YRbF in range(len(VhGq)):\n eQV1, WjVF = (aTLP[:, YRbF], Crrw[:, YRbF])\n HRJ_ = int(oyIN.sum([1 for YRbF in range(len(WjVF)) if WjVF[YR...
[ "0.7505862", "0.7343115", "0.7338047", "0.7292287", "0.7264639", "0.71450007", "0.71407115", "0.71379405", "0.71346164", "0.71156704", "0.70693755", "0.7045447", "0.70329994", "0.70299107", "0.70299107", "0.70299107", "0.70299107", "0.70299107", "0.70299107", "0.7020853", "0....
0.0
-1
Compute mAP under PASCAL VOC2007 rule.
def zpVS(rhd_, AOzf): VqfF = 0.0 for a1PO in oyIN.arange(0.0, 1.1, 0.1): if oyIN.sum(AOzf >= a1PO) == 0: XP5J = 0 else: XP5J = oyIN.max(rhd_[AOzf >= a1PO]) VqfF += XP5J / 11.0 return VqfF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I5kN(ETu_, eRdl, dsDH=False):\n if dsDH:\n VqfF = 0.0\n for a1PO in oyIN.arange(0.0, 1.1, 0.1):\n if oyIN.sum(ETu_ >= a1PO) == 0:\n XP5J = 0\n else:\n XP5J = oyIN.max(eRdl[ETu_ >= a1PO])\n VqfF = VqfF + XP5J / 11.0\n else:\n ...
[ "0.7247597", "0.71314263", "0.7083833", "0.7036518", "0.7033691", "0.7019422", "0.7019422", "0.7019422", "0.7019422", "0.7012533", "0.7012533", "0.7012533", "0.69518065", "0.69227064", "0.6897341", "0.67467177", "0.6555996", "0.65411115", "0.6448439", "0.6423805", "0.63860816...
0.58558
58
Retrieve a dictionary of all the initial savers for the models.
def esJz(QjBU): dDca = {} if vPBo.maskgan_ckpt: iltq = [Ty9i for Ty9i in ZylS.trainable_variables() if Ty9i.op.name.startswith('gen')] IOOC = ZylS.train.Saver(var_list=iltq) dDca['init_saver'] = IOOC if vPBo.discriminator_model == 'seq2seq_vd': o1NH = KJ57.dis_seq2seq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DH8G(QjBU):\n if vPBo.maskgan_ckpt:\n V6M8 = [Ty9i for Ty9i in ZylS.trainable_variables()]\n dDca = ZylS.train.Saver(var_list=V6M8)\n return dDca\n else:\n assert 'No maskgan checkpoint to load!!!'", "def AAfK(YKHO):\n return {'.xtc': YKHO.save_xtc, '.trr': YKHO.save_trr,...
[ "0.6868118", "0.65584165", "0.6320464", "0.61417925", "0.6063404", "0.60463274", "0.60164714", "0.600357", "0.5947828", "0.59167254", "0.59100187", "0.5837331", "0.5795693", "0.57697475", "0.5735959", "0.5723725", "0.5707824", "0.5704106", "0.5698971", "0.56980264", "0.567726...
0.64227974
2
Retrieve a dictionary of all the initial savers for the models.
def DH8G(QjBU): if vPBo.maskgan_ckpt: V6M8 = [Ty9i for Ty9i in ZylS.trainable_variables()] dDca = ZylS.train.Saver(var_list=V6M8) return dDca else: assert 'No maskgan checkpoint to load!!!'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AAfK(YKHO):\n return {'.xtc': YKHO.save_xtc, '.trr': YKHO.save_trr, '.pdb': YKHO.save_pdb, '.pdb.gz': YKHO.save_pdb, '.dcd': YKHO.save_dcd, '.h5': YKHO.save_hdf5, '.binpos': YKHO.save_binpos, '.nc': YKHO.save_netcdf, '.netcdf': YKHO.save_netcdf, '.ncrst': YKHO.save_netcdfrst, '.crd': YKHO.save_mdcrd, '.mdcr...
[ "0.65565896", "0.64227015", "0.63215894", "0.61414653", "0.6062465", "0.6046908", "0.6016245", "0.6004036", "0.59487027", "0.59167683", "0.5910666", "0.58366936", "0.57966936", "0.5769981", "0.57352376", "0.57257605", "0.57081103", "0.5704623", "0.56985444", "0.56980807", "0....
0.6868026
0
Create PVC from snapshot
def XaXE(GuRx, XQz8, _63S, zNig, pyTK, EkTk=None, KWQr=uwaB.CSI_RBD_PVC_RESTORE_YAML, ZAeg=uwaB.ACCESS_MODE_RWO): Wc5S = w7Gw.load_yaml(KWQr) Wc5S['metadata']['name'] = pyTK Wc5S['metadata']['namespace'] = _63S Wc5S['spec']['storageClassName'] = GuRx Wc5S['spec']['resources']['requests']['storage'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nRpd(YKHO, Rwel):\n nPrm, EqUz, C3ST = YKHO._do_clone_volume(Rwel['volume_id'], Rwel['project_id'], Rwel)", "def Sa8m(pyTK, q3cr, XQz8, _63S, GuRx=None, sJDd=False):\n VBT9 = DpZH.get_semantic_ocp_version_from_config()\n nzX8 = w7Gw.load_yaml(q3cr)\n if VBT9 < DpZH.VERSION_4_9:\n nzX8['api...
[ "0.69780195", "0.6711086", "0.6636476", "0.6615324", "0.6604853", "0.65673053", "0.6566907", "0.65271896", "0.6499714", "0.6453258", "0.64513266", "0.63828605", "0.6378931", "0.6351946", "0.63442093", "0.6302966", "0.6287694", "0.62670994", "0.6227124", "0.6207951", "0.618447...
0.62569344
18
Computes the delta function (Roma et al., 1999). Arguments r distance between Eulerian point and Lagrangian point.
def GzWn(Mkmy): Mkmy = abs(Mkmy) if 0.0 <= Mkmy < 1.0: return 0.125 * (3 - 2 * Mkmy + PZyS(1 + 4 * Mkmy - 4 * Mkmy ** 2)) elif 1.0 <= Mkmy < 2.0: return 0.125 * (5 - 2 * Mkmy - PZyS(-7 + 12 * Mkmy - 4 * Mkmy ** 2)) else: return 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def elW3(YKHO, Mkmy):\n Dyub = YKHO.ES_theta ** 2\n EmyI = YKHO.ES_l\n IxvY = Mkmy ** 2\n STUU = YKHO.ES_l ** 3\n return Dyub * (IxvY / STUU) * VEDo.exp(-0.5 * IxvY / EmyI ** 2) * EmyI", "def ZnE8(YKHO, Mkmy: int) -> float:\n return YKHO.F_r(Mkmy) - YKHO.F_r(Mkmy - 1)", "def pImw(YKHO, Mkmy):...
[ "0.6902221", "0.6837873", "0.6706688", "0.66380703", "0.6502954", "0.6405457", "0.63546157", "0.63533497", "0.62191737", "0.6217156", "0.62107587", "0.6193587", "0.6186958", "0.61222297", "0.61190414", "0.6111147", "0.61070764", "0.6095291", "0.6075692", "0.6069944", "0.60685...
0.6419229
5
Spreads the Lagrangian force onto the Eulerian mesh grid. Arguments fk Lagrangian force. body Body object containing info about the immersed body. Returns f component of the Eulerian force field.
def IZxK(VQaI, TBsA): eHNT = oyIN.zeros(cPU3.Nx * cPU3.Ny, dtype=float) for AAbN, WKvO, LVAh, Ni44 in zip(TBsA.neighbor, TBsA.x, TBsA.y, VQaI): MKlR = cPU3.x[AAbN % cPU3.Nx + 1] - cPU3.x[AAbN % cPU3.Nx] for YRbF in range(-2, 3): for r845 in range(-2, 3): pdhd = AAbN %...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hy1R(YKHO, TBsA):\n pImw = YKHO.position - TBsA.position\n s0Ch = YKHO.forceFactor * TBsA.mass / (pImw[0] ** 2 + pImw[1] ** 2 + pImw[2] ** 2) ** 1.5\n YKHO.force -= oyIN.dot(pImw, s0Ch)", "def A9c0(YKHO, TBsA):\n pImw = YKHO.pos - TBsA.pos\n U8BI = YKHO.FORCE_FACTOR * TBsA.mass / (pImw[0] ** 2...
[ "0.615095", "0.60692686", "0.583603", "0.5617748", "0.56012714", "0.559129", "0.55367774", "0.54733527", "0.54573876", "0.5435328", "0.54277694", "0.54084224", "0.5327291", "0.53126246", "0.5305431", "0.53037155", "0.5292219", "0.51957136", "0.515044", "0.51284665", "0.509593...
0.6242482
0
The current Scheduler state. ========== =============== IDLE Has never been started EXECUTING Currently running STOPPED Has previously been running, but not running now. ========== ===============
def QTBn(YKHO): if YKHO._stop: return _8Ct.States.STOPPED elif YKHO._continue > 0: return _8Ct.States.EXECUTING else: return _8Ct.States.IDLE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lEWq(YKHO):\n if YKHO.event == 'e_stop':\n YKHO.event = None\n YKHO.twist = None\n YKHO.event_out.publish('e_stopped')\n return 'INIT'\n else:\n fqEX = YKHO.limit_twist()\n if fqEX:\n YKHO.limited_twist.publish(fqEX)\n YKHO.event_out.publish...
[ "0.75337267", "0.7328782", "0.7167912", "0.7100347", "0.7032287", "0.6974133", "0.6926788", "0.69191766", "0.6876466", "0.6823186", "0.68019253", "0.6756235", "0.6756235", "0.6756235", "0.6756235", "0.6756235", "0.6756235", "0.6756235", "0.6756235", "0.6756235", "0.6756235", ...
0.851232
0
Get permissions for the current user
def d9u3(YKHO, xUwc): uJjO, TETX = YKHO.get_user_identity() return YKHO.get_user_permissions(xUwc, uJjO, TETX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OXs6(YKHO, YEnM=None):\n return isba(YKHO, YEnM, 'user')", "def d9u3(YKHO):\n eZK6 = YKHO._core.get_permission_manager()\n return eZK6.get_permissions_for_user(YKHO)", "def Vjhv(YKHO, CBIr):\n with YKHO._rl:\n return YKHO._e.get_permissions_for_user(CBIr)", "def OXs6(YKHO, XnWo, YEnM=N...
[ "0.7875834", "0.7627907", "0.7516857", "0.736668", "0.73446333", "0.7302363", "0.72892207", "0.7261142", "0.72219664", "0.716205", "0.71084505", "0.7105212", "0.71046567", "0.71000636", "0.70762426", "0.70690376", "0.704487", "0.7036242", "0.70339787", "0.7005657", "0.7005657...
0.66929793
74
Check that the requested form action is authorized for the current user.
def j9oz(YKHO, XeOP, het7, wYI_): U1SB = {'view': 'VIEW', 'list': 'VIEW', 'search': 'VIEW', 'new': 'CREATE', 'copy': 'CREATE', 'edit': 'UPDATE', 'delete': 'DELETE', 'config': 'CONFIG', 'admin': 'ADMIN'} if XeOP in wYI_: Q801 = wYI_[XeOP] elif XeOP in U1SB: Q801 = U1SB[XeOP] else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dB_d(QePW):\n return not gCuF.REQUIRE_LOGIN or QePW.user.is_authenticated()", "def PVSl():\n return CmGq.User().IsAllowed('Regenerate Confirmation', 'Operation')", "def d9xO(YKHO, XeOP):\n return XeOP in YKHO.claims", "def qHTF(YKHO, CBIr, XeOP, _sei):\n return CBIr.is_authenticated", "def ...
[ "0.73857164", "0.6840201", "0.6768799", "0.6726257", "0.6711004", "0.6671014", "0.6579313", "0.6536098", "0.65301466", "0.6524586", "0.6511143", "0.65046084", "0.6496775", "0.6476956", "0.6424044", "0.6410487", "0.6407793", "0.64072096", "0.6402825", "0.639354", "0.6370438", ...
0.6556132
7
Read data file and build up a pandas data frame
def EPt3(YKHO): nPrm = [] for rdlD in YKHO.grep_iterator(YKHO.data_row_regex): nPrm.append(YKHO.data_formatter(rdlD)) jQ3Z = rLdf.DataFrame(nPrm, columns=YKHO.header, dtype=YKHO.dtype) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kWwb() -> rLdf.DataFrame:\n KAfx = iSBZ\n return rLdf.read_csv(KAfx, delimiter=',')", "def fIqG(Ux0P):\n nPrm = rLdf.read_csv(Ux0P)\n return nPrm", "def bOBl(Ux0P):\n nPrm = rLdf.read_csv(Ux0P)\n return nPrm", "def ffYS(nW2s):\n jQ3Z = rLdf.read_csv(nW2s, header=[0, 1])\n return j...
[ "0.7859272", "0.7752826", "0.7618564", "0.75939536", "0.7506753", "0.7412915", "0.7406585", "0.7379166", "0.7332969", "0.7308705", "0.730108", "0.72550625", "0.71979296", "0.71667534", "0.7139035", "0.7134299", "0.7125282", "0.70865303", "0.7081444", "0.7075482", "0.70639664"...
0.0
-1
Returns an observable sequence that is the result of invoking the mapper on a connectable observable sequence that shares a single subscription to the underlying sequence replaying notifications subject to a maximum time length for the replay buffer. This operator is a specialization of Multicast using a ReplaySubject.
def nPXp(YAg3: Optional[Mapper[Observable[_TSource], Observable[_TResult]]]=None, klGB: Optional[int]=None, KnxT: Optional[typing.RelativeTime]=None, IesV: Optional[abc.SchedulerBase]=None) -> YrBT[[cBwQ[LSeX]], uLKX[cBwQ[uA_v], wuKS[LSeX]]]: if YAg3: def b8DQ(IesV: Optional[abc.SchedulerBase]=None) -> xm0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FmUx(U4ZT: Optional[abc.SubjectBase[_T]]=None, *, b8DQ: Optional[Callable[[Optional[abc.SchedulerBase]], abc.SubjectBase[_T]]]=None, YAg3: Optional[Callable[[Observable[_T]], Observable[_T2]]]=None) -> YrBT[[cBwQ[sb5H]], uLKX[cBwQ[cP0J], wuKS[sb5H]]]:\n from ._multicast import multicast_\n return multica...
[ "0.6632962", "0.6315342", "0.582499", "0.5525522", "0.5525457", "0.54374224", "0.53186184", "0.5217389", "0.5178723", "0.51775986", "0.5120656", "0.51120293", "0.5104374", "0.50645596", "0.5026321", "0.49760774", "0.4917957", "0.49154392", "0.4900238", "0.4892738", "0.4891136...
0.7173611
0
Get an relative delta result (score / ref).
def d6kF(YKHO, Jyyj): Aofo = [] tk5Y = YKHO.records[0] for AIu6 in YKHO.records[1:]: Aofo.append(getattr(AIu6, Jyyj) / getattr(tk5Y, Jyyj)) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k7qv(dIVP, QxQ6):\n return oyIN.abs(dIVP - QxQ6) / oyIN.maximum(oyIN.finfo(dtype=oyIN.float64).eps, max(oyIN.abs(dIVP), oyIN.abs(QxQ6)))", "def DHMt(YKHO) -> float:\n pass", "def xmsr(YKHO, bf9h):\n return abs(bf9h - YKHO.result) / bf9h", "def YonT(Hkam, xfrN):\n return float((xfrN - Hkam) / ...
[ "0.6875099", "0.64161634", "0.64132", "0.6301593", "0.62586355", "0.62346244", "0.6226945", "0.61885375", "0.6187362", "0.6177551", "0.61513174", "0.61427474", "0.6130246", "0.6123656", "0.61019194", "0.60760105", "0.6072039", "0.6067724", "0.6059054", "0.6056768", "0.6051301...
0.6203258
7
Initialise the temperature data container for a sensor. This constructor initalises the data container for a humidity sensor, creating the parameter tree and associating it with a particular sensor on the PSCU.
def FIMM(YKHO, MEKO, M3zt): YKHO.pscu = MEKO YKHO.sensor_idx = M3zt YKHO.param_tree = uart({'humidity': (YKHO.get_humidity, None), 'humidity_volts': (YKHO.get_humidity_volts, None), 'setpoint': (YKHO.get_set_point, None), 'setpoint_volts': (YKHO.get_set_point_volts, None), 'tripped': (YKHO.get_tripped, None...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, ovGo=None, CJ2p=None):\n YKHO.temperature = ovGo\n YKHO.pressure = CJ2p\n return", "def YV9F(YKHO, ovGo):\n YKHO.temperature = ovGo", "def uIcm(YKHO, xN0p, nPrm, ppPa=None):\n YKHO._logger.debug('Initializing distribute.soil_temp')\n YKHO.date_time = ppPa\n YKHO.soil_temp = ...
[ "0.6820427", "0.67655754", "0.6749877", "0.659511", "0.6510279", "0.6397437", "0.6394754", "0.6382686", "0.6314958", "0.6304787", "0.6271135", "0.62588376", "0.6219023", "0.6188445", "0.618776", "0.613283", "0.6120249", "0.60279715", "0.60193545", "0.5962419", "0.5960133", ...
0.64365715
5
Get the disabled status of the humidity sensor. This method returns the disabled status of the humidity sensor, i.e. if it has been disabled from the overall interlock state by a jumper connection.
def qhUu(YKHO): return YKHO.pscu.get_humidity_disabled(YKHO.sensor_idx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HLhe(YKHO):\n return YKHO.exec_action('get_sensor_humidity_status')", "def cNBO(YKHO):\n return YKHO.disabled", "def qhUu():\n return RheX('false')", "def lbi2(YKHO):\n return YKHO.device_disabled", "def lbi2(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, 'disabled')", "def QTBn(Y...
[ "0.7373278", "0.7115555", "0.6935706", "0.6829984", "0.6773192", "0.6701347", "0.6674146", "0.6674146", "0.6674146", "0.66113174", "0.6550782", "0.6540705", "0.6533925", "0.64884263", "0.64697", "0.6428609", "0.6428609", "0.6417254", "0.641348", "0.641348", "0.6393013", "0....
0.86923975
0
Get the name of the humidity sensor. This method returns the descriptive name of the humidity sensor.
def W0tD(YKHO): return YKHO.pscu.get_humidity_name(YKHO.sensor_idx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return '{} {}'.format(Kb4M.climate_status[YKHO._id].location, 'Humidity')", "def HgDy(YKHO):\n return YKHO.get('sensorname')", "def mWFP(YKHO):\n return YKHO.__data__.get('sensorName')", "def mWFP(YKHO):\n return '{} {}'.format(Kb4M.temperature_status[YKHO._id]['label'], 'Temper...
[ "0.80223894", "0.7618638", "0.7596143", "0.7432092", "0.7411152", "0.735869", "0.7283989", "0.72401065", "0.72253376", "0.71988994", "0.68917227", "0.6874541", "0.68703884", "0.6860533", "0.6855858", "0.6832695", "0.6799462", "0.6758717", "0.67216086", "0.6721306", "0.6690704...
0.877523
0
Creates or appends a list representing a route of cells from first to last Takes a list of cells as input
def jDmx(YKHO, PsCT): if YKHO.valid: return False if any((not VmPb.valid for VmPb in PsCT)): raise E6pm() YKHO._cells = jth9.copy(PsCT) YKHO.valid = True return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vu3n(VmPb):\n return [H2v5(VmPb, vgXP) for vgXP in (ckxV, EGw7, pY1r, Ny9c)]", "def TGsF(YKHO):\n HN6s, co3n = YKHO.cell_grid_shape\n orBZ = Latg.interior_nodes(YKHO.cell_grid_shape)\n gDrw = YKHO.cells_at_corners_of_grid\n N3jJ = YKHO.cell_at_node[YKHO.nodes[-2, :]][2:-2]\n DL2U = YKHO.cel...
[ "0.65067166", "0.6439432", "0.6185007", "0.60703", "0.60471535", "0.59802896", "0.5970408", "0.59690034", "0.5964663", "0.5963244", "0.5963186", "0.5938353", "0.59351146", "0.592134", "0.5906743", "0.5855642", "0.5800506", "0.5800393", "0.5784057", "0.5770858", "0.57501876", ...
0.0
-1
Create a new BananaEnv pointing at the compiled Unity environment.
def FIMM(YKHO, XcGs): mdek = XcGs[XqWn] dt0H = XcGs[bxJA] YKHO._env = UxTG(file_name=mdek) YKHO._brain_name = YKHO._env.brain_names[0] YKHO._brain = YKHO._env.brains[YKHO._brain_name] YKHO._train_mode = dt0H ODP9 = oyIN.tile(oyIN.array([oyIN.finfo(oyIN.float32).max]), [37]) YKHO.observat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BTu3():\n HwRy.path.append('/home/frcvision1/Final/My_Environments/Carla_new/')\n from env3 import CarlaEnv\n sEAN = CarlaEnv()\n sEAN = GUx4([lambda: sEAN])\n return sEAN", "def s43l(NBo_, L5CR, NeMc):\n from gym_game.envs import AgentEnv\n return AgentEnv(NBo_, L5CR, NeMc)", "def HmI...
[ "0.67195475", "0.64697", "0.6350515", "0.63089496", "0.6225102", "0.6147601", "0.6123613", "0.6070675", "0.6066663", "0.60510373", "0.6007701", "0.59640557", "0.59492874", "0.59107494", "0.589479", "0.5893287", "0.5892612", "0.5890303", "0.5887099", "0.58834505", "0.5877933",...
0.56878155
31
Adds a card to the deck.
def lACn(YKHO, dxhl): YKHO.cards.append(dxhl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lACn(YKHO, dxhl: Card) -> None:\n YKHO._deck.append(dxhl)", "def lACn(YKHO, dxhl):\n YKHO._cards.append(dxhl)", "def lACn(YKHO, dxhl):\n YKHO.cards.append(dxhl)", "def lACn(YKHO, dxhl):\n YKHO.cards.append(dxhl)", "def lACn(YKHO, dxhl):\n YKHO.cards.append(dxhl)", "def lACn(YKHO, dxhl)...
[ "0.89655733", "0.8833488", "0.88291276", "0.88291276", "0.88291276", "0.88291276", "0.88291276", "0.88291276", "0.88291276", "0.88291276", "0.88291276", "0.88291276", "0.8803098", "0.8790166", "0.8789617", "0.87784576", "0.87784463", "0.87784463", "0.8761979", "0.8752284", "0...
0.879677
13
Returns True if the hand has a flush, False otherwise. Note that this works correctly for hands with more than 5 cards.
def onGx(YKHO): nPHp = {} for dxhl in YKHO.cards: nPHp[dxhl.suit] = nPHp.get(dxhl.suit, 0) + 1 for wEf2 in nPHp.values(): if wEf2 >= 5: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PN3e(RZ8t):\n return len(set((iCfd for fdMZ, iCfd in RZ8t))) == 1", "def PN3e(RZ8t):\n SOXX = [dxhl.suit for dxhl in RZ8t]\n if len(set(SOXX)) == 1:\n return True\n else:\n return False", "def PN3e(nv2B):\n for iCfd, lq8E in nv2B.suit_counts.items():\n if lq8E == 5:\n ...
[ "0.857082", "0.85704917", "0.84585637", "0.8245871", "0.8216963", "0.82082224", "0.81183505", "0.80568385", "0.80568385", "0.80568385", "0.80568385", "0.80568385", "0.80568385", "0.79791147", "0.79144347", "0.7878293", "0.7815521", "0.7815033", "0.777312", "0.77381134", "0.77...
0.82013786
6
When using the 'client' fixture in test cases, we'll get full database
def x0hE(): with NxUR(P4t4) as x0hE: yield x0hE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def udfG():\n slEl, P4t4.config['DATABASE'] = gbPf.mkstemp()\n P4t4.config['TESTING'] = True\n with P4t4.test_client() as Etw5:\n with P4t4.app_context():\n JawI()\n print('yield the client')\n yield Etw5\n Hy7s.close(slEl)\n Hy7s.unlink(P4t4.config['DATABASE'])", "...
[ "0.72104853", "0.7188652", "0.7026909", "0.7023193", "0.69918805", "0.69739085", "0.6889908", "0.68818873", "0.6874391", "0.6862625", "0.680993", "0.67758125", "0.6766389", "0.67657834", "0.6761558", "0.6758884", "0.6757119", "0.6732448", "0.6724407", "0.671278", "0.671278", ...
0.0
-1
Serialize json object and save to a file
def PjZe(YKHO, nPrm): with open(YKHO.filename, 'wb') as eHNT: eHNT.write(qQXR.dumps(nPrm, indent=4, separators=(',', ': ')))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ncJT(object, nUeQ):\n with open(nUeQ, 'wb') as hlel:\n qQXR.dump(object, hlel)", "def ncJT(IznC, YEnM):\n with open(IznC, 'w') as eHNT:\n eHNT.write(qQXR.dumps(YEnM))", "def M8gv(YEnM, Ux0P):\n with open(Ux0P, 'w') as nUeQ:\n qQXR.dump(YEnM, nUeQ, cls=uXd0)", "def QN9E(gIsw,...
[ "0.8603978", "0.82830244", "0.8278326", "0.81734073", "0.8160569", "0.8160569", "0.81491894", "0.81392044", "0.8139004", "0.81193095", "0.81104857", "0.8104806", "0.8104382", "0.80994105", "0.8097267", "0.8091938", "0.808947", "0.8089263", "0.8087177", "0.8082632", "0.8080753...
0.0
-1
Softthresholding of scalar x at level u.
def WH7K(WKvO, P6bq): if WKvO > P6bq: return WKvO - P6bq elif WKvO < -P6bq: return WKvO + P6bq else: return 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AA31(qw7D, BWXx):\n BgLj(qw7D, BWXx)\n qw7D -= oyIN.sign(qw7D) * BWXx", "def AuW2(WKvO, Cwt5, oZuG):\n return oLG2.sign(WKvO) * oLG2.maximum(oLG2.abs(WKvO) - Cwt5 * oZuG, 0.0)", "def nrOS(YKHO, WKvO):\n uGPC = YKHO.s3(ht2j.as_tensor(WKvO).unsqueeze(0))[:, 1] < YKHO.threshold\n if uGPC[0]:\n ...
[ "0.6990928", "0.6787258", "0.6748638", "0.6657062", "0.6596803", "0.6438074", "0.6417149", "0.6396723", "0.6308252", "0.62918", "0.6273169", "0.62721616", "0.62383914", "0.6191493", "0.61503893", "0.6142401", "0.6142222", "0.6112302", "0.61017394", "0.60990304", "0.60989016",...
0.0
-1
Return current value of the widget.
def BWXx(YKHO) -> Kt_s: return mXqI.value.fget(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n return YKHO.widget.get_value()", "def Zmkp(YKHO):\n return YKHO.current_value", "def z8Af(YKHO):\n raise Exception('getWidgetValue not implimented: ' + YKHO.__name)", "def Zmkp(YKHO) -> str:\n return YKHO.get().text", "def BWXx(YKHO):\n return int(YKHO._widget.text())", "...
[ "0.8940186", "0.8254655", "0.8052954", "0.7829204", "0.7785129", "0.7680898", "0.76272106", "0.7606664", "0.7600822", "0.7600111", "0.75721616", "0.7557371", "0.75561124", "0.7527107", "0.7493139", "0.74899477", "0.74739355", "0.74739355", "0.74739355", "0.74739355", "0.74739...
0.7701818
5
Reset choices to the default state. If self._default_choices is a callable, this may NOT be the exact same set of choices as when the widget was instantiated, if the callable relies on external state.
def m9AX(YKHO, *bGrB: Any) -> None: YKHO.choices = YKHO._default_choices
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WcMc(YKHO):\n YKHO.choices_widget.clearSelection()\n YKHO.selection = []", "def xtvh(YKHO, *qIxc, **B2fa):\n for Ty9i in YKHO._settings.values():\n Ty9i.entry.selection_clear()", "def SiRx(YKHO):\n if YKHO.resetable:\n for YRbF in range(len(YKHO)):\n YKHO[YRbF] = YKHO.d...
[ "0.63410455", "0.6278137", "0.6253176", "0.61062807", "0.6022609", "0.59811455", "0.59398663", "0.5893302", "0.58389586", "0.58203065", "0.5787047", "0.5782867", "0.57821333", "0.57546616", "0.5736358", "0.56800634", "0.56452787", "0.56232786", "0.56010795", "0.5589941", "0.5...
0.84021026
0
Iterate the book volumes (and the ensemble of agents) a step forward in time.
def X73w(YKHO): YKHO.ae.iterate(YKHO.market_state_info) YKHO.time += YKHO.ae.tau YKHO.bids += oyIN.sum(YKHO.ae.bids, axis=1) YKHO.asks += oyIN.sum(YKHO.ae.asks, axis=1) JvL2, XKHL = (oyIN.nonzero(YKHO.asks), oyIN.nonzero(YKHO.bids)) if len(JvL2[0]) > 0: Caqx = YKHO.market_state_info['ask...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X73w(c39l, ut5U):\n qU6I = []\n for YWSi in c39l:\n o4sw = wHLO(ut5U, [YWSi.m, YWSi.n])\n if [YWSi.m, YWSi.n] != YWSi.end:\n zWK_, t_99, Mkmy, f9TP = YWSi.move_agent(o4sw)\n YWSi.steps += 1\n YWSi.reward += Mkmy\n tTpl = (o4sw, t_99, Mkmy, zWK_, f...
[ "0.6142502", "0.5943242", "0.5925086", "0.59240717", "0.587092", "0.5868932", "0.5862481", "0.5841662", "0.5808053", "0.57804567", "0.573358", "0.56878376", "0.5669789", "0.56623983", "0.5627826", "0.56143975", "0.5582417", "0.55737853", "0.55247766", "0.55095667", "0.5473253...
0.687379
0
Drawing and rendering the screen
def JmFt(ufJO, Cs6h): ufJO.fill(eJVO) tlUU(ufJO) ' Drawing the numbers ' for YRbF in range(len(Cs6h)): for r845 in range(len(Cs6h[0])): l5Ny = tu3G.render(str(Cs6h[YRbF][r845].number), 1, Cs6h[YRbF][r845].color) WKvO = YRbF * xXY0 LVAh = r845 * xXY0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO, Vjhr):\n pass", "def JmFt(YKHO, Vjhr):\n pass", "def JmFt(YKHO, Vjhr):\n pass", "def JmFt(YKHO, Vjhr):\n return", "def JmFt(YKHO, Vjhr):\n pass", "def JmFt(YKHO):\n YKHO.screen.blit(YKHO.image, YKHO.rect)", "def _1tc(YKHO):\n YKHO.window.fill((0, 0, 0))\n YKHO.__d...
[ "0.84972674", "0.84972674", "0.842645", "0.8365793", "0.83290344", "0.8167498", "0.81626743", "0.81538874", "0.8139731", "0.8128976", "0.8113774", "0.8068078", "0.8058557", "0.80012214", "0.7991268", "0.7986456", "0.7960054", "0.7959655", "0.795601", "0.7904523", "0.7904523",...
0.0
-1
A decorator for basic operations that casts the arguments to signed (two's complement) integers and casts the single returned value back to unsigned.
def i1fZ(FYKK): @j6Nn @zaGL(FYKK) def Qy2u(YKHO, QTBn, IW3h, uSpC): Fg_i = ix47(IW3h) jzdc = ix47(uSpC) BWXx = caGz(FYKK(YKHO, QTBn, Fg_i, jzdc)) oUcR, Aofo = divmod(BWXx, YKHO.cells) return (BWXx, oUcR) return Qy2u
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xtFa(FGW3: Union[int, float]) -> uLKX[int, float]:\n return -FGW3", "def jhTX(YKHO, *qIxc):\n return J8uC.SBValue_GetValueAsUnsigned(YKHO, *qIxc)", "def RlsV(BWXx):\n BWXx = BWXx & 4294967295\n return BWXx", "def PW32(YKHO):\n return YKHO & YKHO.mask", "def G2Tp(BWXx):\n BWXx = BWXx &...
[ "0.6707788", "0.6590448", "0.63910925", "0.62539214", "0.61263734", "0.6020059", "0.60059625", "0.59979403", "0.59154594", "0.5889716", "0.5886113", "0.58753383", "0.5852585", "0.58358824", "0.583001", "0.5778199", "0.5763907", "0.5760126", "0.5755944", "0.57483846", "0.57382...
0.6298689
3
Note that Conv1d expects (batch, in_channels, in_length). We assume that seq ~ (len(seq), batch, in_channels), so we'll reshape it first.
def KVH6(YKHO, Q6uT): DTWt = Q6uT.permute(1, 2, 0) sh3V = YKHO.conv1d(DTWt).permute(2, 0, 1) return sh3V[0:len(Q6uT)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j2cC(DYuh, tYiq, tpio=3):\n return yKKE(tpio)(DYuh, tYiq, kernel_size=1)", "def j2cC(DYuh, tYiq, tpio=3):\n return yKKE(tpio)(DYuh, tYiq, kernel_size=1)", "def j2cC(PhLZ, uK2T, _0fC=1):\n return U78l.Conv1d(PhLZ, uK2T, kernel_size=1, stride=_0fC, bias=True)", "def FIMM(YKHO, DYuh, tYiq, Ot1W=3, ...
[ "0.70543444", "0.70543444", "0.69938874", "0.6856019", "0.68021524", "0.66520834", "0.65600544", "0.6439989", "0.643376", "0.6433015", "0.64269406", "0.64142567", "0.63931304", "0.62852067", "0.619976", "0.6180185", "0.6175662", "0.61582744", "0.61453", "0.6119562", "0.611886...
0.6760274
5
Construct a new attentional convolutional decoder.
def FIMM(YKHO, svPB, q4ee, fhcK, sR24, Ep8u, gNly, CkYf=False, ds3w=mdxL): super(DbaK, YKHO).__init__() YKHO.num_labels = svPB YKHO.embed_dim = q4ee YKHO.layers = fhcK YKHO.encoding_dim = sR24 YKHO.batch_size = Ep8u YKHO.max_time = gNly YKHO.norm = CkYf YKHO.use_cuda = ds3w YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, E1ho, g8iQ, PXqS, eTUM, kZSH, I5R6, _Ycl, SOyF, FnKq, hr1G, sMyr, LT6S=True, uamv='Bernoulli', BTF7=False, mWFP='convolutional_decoder'):\n super(DvCh, YKHO).__init__(dropout=hr1G, keep_prob=sMyr, is_training=LT6S, swap_out_mlp_relu_for_elu=BTF7, name=mWFP)\n YKHO.latent_dim = E1ho\n YKHO.m...
[ "0.6974965", "0.66241324", "0.6569252", "0.65104014", "0.65050423", "0.6460835", "0.644269", "0.6366519", "0.6321428", "0.6313249", "0.63052684", "0.62860644", "0.628499", "0.628432", "0.6277831", "0.62058276", "0.6195846", "0.6175143", "0.61616623", "0.6147636", "0.6145912",...
0.5780915
90
Construct a new causal ResConvBlock.
def FIMM(YKHO, Ep8u, DYuh, tYiq, sfVD, _0fC=1, ds3w=mdxL): super(d00s, YKHO).__init__() if _0fC != 1: raise Exception('[NANOSEQ] ERR: strides =/= 1 are not supported.') YKHO.batch_size = Ep8u YKHO.in_channels = DYuh YKHO.out_channels = tYiq YKHO.kwidth = sfVD YKHO.stride = _0fC Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, tpio, eFZt, ykhl, OC7S, e5sz, smQW=False):\n super(BB3m, YKHO).__init__()\n YKHO.conv_block = YKHO.build_conv_block(tpio, eFZt, ykhl, OC7S, e5sz, smQW)", "def FIMM(YKHO, tpio, eFZt, ykhl, OC7S, e5sz):\n super(BB3m, YKHO).__init__()\n YKHO.conv_block = YKHO.build_conv_block(tpio, eFZt, ...
[ "0.6412286", "0.6239832", "0.618513", "0.6177203", "0.6177203", "0.6177203", "0.6177203", "0.6177203", "0.6177203", "0.6167371", "0.61294997", "0.59970725", "0.59712046", "0.5914746", "0.58949846", "0.58815706", "0.585161", "0.58134353", "0.5772441", "0.5757331", "0.57273024"...
0.6524389
0
Forward pass through conv block. Reshape first to (batch, in_depth, seq).
def KVH6(YKHO, g4sM): S5q4 = YKHO.conv1d_glu(g4sM) m7XJ = YKHO.conv1d_id(g4sM) R0MG = YKHO.glu(S5q4, m7XJ) HA9B = YKHO.residual_proj(g4sM.view(-1, YKHO.in_channels)).view(len(g4sM), YKHO.batch_size, YKHO.out_channels) return ht2j.add(R0MG, HA9B)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, input):\n hlel = YKHO.conv(input)\n return hlel", "def KVH6(YKHO, VXjJ):\n WKvO = YKHO.conv1(VXjJ)\n WKvO = vuvg.relu(WKvO)\n WKvO = YKHO.batchNorm1(WKvO)\n WKvO = YKHO.conv2(WKvO)\n WKvO = vuvg.relu(WKvO)\n WKvO = YKHO.batchNorm2(WKvO)\n WKvO = YKHO.conv3(WKvO)\n WKv...
[ "0.7006416", "0.6715949", "0.6622712", "0.66211903", "0.66111714", "0.6571338", "0.64316154", "0.64157295", "0.6396735", "0.6351868", "0.63113886", "0.6297535", "0.62970877", "0.62937886", "0.628737", "0.6284581", "0.6280416", "0.6278711", "0.6252165", "0.62422013", "0.622056...
0.0
-1
Forward pass through conv block. Reshape first to (batch, in_depth, seq).
def KVH6(YKHO, g4sM): Hmxy = hPfV(g4sM, YKHO.padding, axis=0, use_cuda=YKHO.use_cuda) Gz1P = ht2j.transpose(ht2j.transpose(Hmxy, 0, 1), 1, 2).contiguous() S5q4 = YKHO.conv1d_glu(Gz1P) m7XJ = YKHO.conv1d_id(Gz1P) Lfdf = ht2j.transpose(ht2j.transpose(S5q4, 1, 2), 0, 1).contiguous() xyAg = ht2j.tra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, input):\n hlel = YKHO.conv(input)\n return hlel", "def KVH6(YKHO, VXjJ):\n WKvO = YKHO.conv1(VXjJ)\n WKvO = vuvg.relu(WKvO)\n WKvO = YKHO.batchNorm1(WKvO)\n WKvO = YKHO.conv2(WKvO)\n WKvO = vuvg.relu(WKvO)\n WKvO = YKHO.batchNorm2(WKvO)\n WKvO = YKHO.conv3(WKvO)\n WKv...
[ "0.7005612", "0.67166126", "0.662234", "0.66219777", "0.66117305", "0.6571604", "0.64324945", "0.64152473", "0.639668", "0.6351534", "0.631085", "0.62979484", "0.6297894", "0.6293503", "0.6286497", "0.62832946", "0.62796503", "0.62792766", "0.6251011", "0.6242031", "0.6220906...
0.0
-1
Normalize a 3D tensor across a sequencedimension.
def FLpf(HClJ, jDK_=1, SGf8=1e-08): yGTL = ht2j.mean(HClJ, jDK_) WTkW = ht2j.std(HClJ, jDK_) WTkW = ht2j.max(WTkW, SGf8 * ht2j.ones(WTkW.size())) WWWQ = ht2j.stack([yGTL] * HClJ.size(jDK_), jDK_) KBNA = ht2j.stack([WTkW] * HClJ.size(jDK_), jDK_) return (HClJ - WWWQ) / KBNA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def va2x(Wc9F):\n tjUW, Oa10 = (Wc9F.shape[0], Wc9F.shape[1])\n CkYf = Wc9F.reshape(tjUW, Oa10, -1).sum(dim=-1, keepdim=True)\n return Wc9F.reshape(tjUW, Oa10, -1).div(CkYf).reshape(Wc9F.shape)", "def w5bT(ezWE):\n Aofo = (ezWE - oyIN.amin(ezWE, axis=(0, 1))) / (oyIN.amax(ezWE, axis=(0, 1)) - oyIN.am...
[ "0.7637859", "0.6807759", "0.679416", "0.67512995", "0.6684406", "0.6653951", "0.6652531", "0.66450363", "0.66189444", "0.66073674", "0.65860564", "0.6554361", "0.65489227", "0.65441567", "0.65232366", "0.6447221", "0.6419063", "0.64115894", "0.63972926", "0.6394295", "0.6389...
0.0
-1
Gets the proper formatting for an action the service, plus colon, plus action name.
def a13g(zVa7, PQh7): XeOP = zVa7 + ':' + PQh7 return XeOP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LGBZ(YKHO, XeOP):\n raise NotImplementedError", "def UMnF(Emd4, XeOP):\n XeOP = Emd4.ACTIONS.get(XeOP, XeOP)\n return XeOP.strip().lower()", "def zLE8(YKHO, XeOP):\n if 'id' in XeOP:\n return ''\n elif XeOP['actionType'] == 'EmailAction':\n return ''\n elif XeOP['actionType'...
[ "0.7696631", "0.6791802", "0.6589699", "0.65722287", "0.63474846", "0.6268105", "0.624707", "0.6218913", "0.6190129", "0.6081956", "0.6072428", "0.60488284", "0.60375905", "0.6024801", "0.6015886", "0.6015886", "0.6015886", "0.6015886", "0.6015886", "0.6015886", "0.60017127",...
0.71080667
1
calculate the gaussian kernel similarity of the given distance matrix.
def VU7a(EcVT, WTkW): return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vMRd(Ayfi, WTkW):\n tP_m = oyIN.exp(-oyIN.square(Ayfi) / oyIN.square(WTkW))\n del Ayfi, WTkW\n return tP_m", "def xD9L(lCHq: List[float], ANJu: List[float]) -> float:\n return -oyIN.exp(-0.5 * usGr(lCHq, ANJu) ** 2)", "def Ix2y(mSn1, IP77, WTkW=1):\n TaUL = AifU(mSn1.T, IP77.T, squared=True)...
[ "0.82358557", "0.7301173", "0.71843207", "0.69396895", "0.66427356", "0.66175723", "0.6504787", "0.6476133", "0.6454154", "0.64483404", "0.6403019", "0.639761", "0.63643116", "0.6354511", "0.63511354", "0.6346626", "0.63406104", "0.62017506", "0.61789435", "0.61386883", "0.61...
0.57592577
54
Returns a random nonadmin user without the SpellBot Admin role
def zyf4(): Q3Ge = lambda mS46: mS46 != ePsc and YmpG not in mS46.roles return tuKI.choice(list(filter(Q3Ge, uNwI)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zyf4():\n Q3Ge = lambda mS46: mS46 != ePsc and YmpG not in mS46.roles\n return tuKI.choice(list(filter(Q3Ge, TD01)))", "def fFBN():\n return tuKI.choice(list(filter(lambda mS46: mS46 != ePsc, uNwI)))", "def JAj9():\n Q3Ge = lambda mS46: mS46 != ePsc and YmpG in mS46.roles\n return tuKI.choic...
[ "0.78223675", "0.7396902", "0.73752326", "0.73189723", "0.7182008", "0.67476606", "0.65776044", "0.651775", "0.6346375", "0.63043576", "0.62893635", "0.6265661", "0.61082387", "0.6061539", "0.60094583", "0.5959653", "0.5952324", "0.59313774", "0.5909928", "0.5903166", "0.5889...
0.7678212
1
Will convert list of tuples in tuple to dict.
def jC4E(um5V): return {H5ew: BWXx for BWXx, H5ew in um5V}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uspY(SqIz):\n fK8P = {}\n SqIz = [WKvO for WKvO in SqIz if len(WKvO) == 2]\n for cntZ, CsFy in SqIz:\n fK8P[cntZ] = CsFy\n return fK8P", "def wfn6(*SqIz):\n dixj = {}\n if SqIz is not None:\n for YRbF in range(0, len(SqIz)):\n H5ew, BWXx = SqIz[YRbF]\n if...
[ "0.7697577", "0.7591426", "0.72448176", "0.7089381", "0.7053809", "0.7014613", "0.6734897", "0.6706313", "0.6699284", "0.66037136", "0.65714735", "0.6560713", "0.6497117", "0.64676636", "0.62995285", "0.62434703", "0.6220842", "0.6195077", "0.6193028", "0.6188194", "0.617155"...
0.6293669
15
Computes the total momentum of all physics objects.
def CWYk() -> (float, float): RsfQ = 0 suhQ = 0 for YEnM in aPf_: RsfQ += YEnM.mass * YEnM.velocity_x suhQ += YEnM.mass * YEnM.velocity_y return (RsfQ, suhQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vQ9d(YKHO) -> oyIN.ndarray:\n return sum([XP5J.velocity * XP5J.mass for XP5J in YKHO.particles])", "def JQ8v(YKHO):\n XP5J = 0.0\n for or8S in range(0, oyIN.shape(YKHO.vel)[0]):\n XP5J += YKHO.mass * abs(YKHO.weights[or8S]) * YKHO.vel[or8S]\n return XP5J", "def zGzh(YKHO):\n yvY1 = YK...
[ "0.6908305", "0.6702995", "0.6683537", "0.63374597", "0.6285721", "0.6214478", "0.6189848", "0.6166126", "0.61574435", "0.61393607", "0.61344886", "0.61113113", "0.609602", "0.60955805", "0.59798765", "0.59758264", "0.59465337", "0.58861125", "0.58700967", "0.58292043", "0.57...
0.62861735
4
Transforms a list of GOSnapshotSummary objects into a pandas DataFrame.
def xpSY(WJlW): jQ3Z = rLdf.DataFrame() for XP5J in SrH7.dfprops: jQ3Z[XP5J] = [getattr(KCHu, XP5J) for KCHu in WJlW] return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QxIo(QxIo):\n return rLdf.DataFrame.from_dict(QxIo, orient='index')", "def ECpX(OtVm):\n jQ3Z = rLdf.DataFrame(OtVm)\n jQ3Z.drop(labels='_links', axis=1, inplace=True)\n NSNj = ['merge_fields', 'interests', 'location', 'stats']\n K2kF = [jQ3Z]\n for vXX7 in NSNj:\n if vXX7 in jQ3Z.co...
[ "0.6225956", "0.6133755", "0.6118058", "0.6067526", "0.60038036", "0.5994258", "0.5977686", "0.5939243", "0.5886076", "0.5804078", "0.57863456", "0.5786255", "0.57816225", "0.5773244", "0.5761779", "0.57490754", "0.5679511", "0.5676583", "0.5674729", "0.5670782", "0.566906", ...
0.80340785
0
Generate a digest for the salted hash of a password.
def Hkbt(jTXt): return CwzH.generate_password_hash(jTXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xPb7(jTXt, NTfD):\n lpha = len(NTfD) / 2\n jTXt = NTfD[:lpha] + jTXt + NTfD[lpha:]\n jTXt = fY9n(xORj(jTXt).digest()).strip()\n return jTXt", "def dNn3(jTXt):\n ALPn = jTXt.encode('utf-8')\n return B8ni.hashpw(ALPn, B8ni.gensalt(rounds=12))", "def vhgk(YKHO, jTXt, NTfD=None):\n if NTfD...
[ "0.77495086", "0.75979346", "0.757373", "0.755936", "0.73783547", "0.73559225", "0.7355777", "0.7331569", "0.7276539", "0.72554255", "0.72554255", "0.7247561", "0.7245479", "0.7245479", "0.7245349", "0.7240212", "0.7239001", "0.72300905", "0.7202576", "0.7202358", "0.7201023"...
0.7588106
2
Sets User.password to a salted hash.
def PnS7(YKHO, jTXt): YKHO.password = mv1M.getDigest(jTXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G3s8(YKHO, jTXt, NTfD=None):\n YKHO._hashed_password = qzFd(jTXt, NTfD)", "def S53_(YKHO, NTfD):\n YKHO._password_salt = NTfD", "def S53_(YKHO, NTfD: str) -> None:\n YKHO._values['salt'] = str(NTfD)", "def G3s8(YKHO, jTXt):\n YKHO.password = N7bY.hash(jTXt)", "def G3s8(YKHO, jTXt):\n YKH...
[ "0.8360698", "0.82869565", "0.80697155", "0.76411784", "0.76411784", "0.7632863", "0.7597134", "0.7597134", "0.75850356", "0.75280607", "0.7520402", "0.7484475", "0.7484475", "0.7484475", "0.7484475", "0.7484475", "0.7484475", "0.7484475", "0.7484475", "0.74771446", "0.747130...
0.7299016
35
Creates a dictionary representation of this object. This method converts an object to a dictionary that represents the format that the model should be in when passed into an API Request. Because of this, the generated dictionary may have different property names to that of the model itself.
def ZlLc(YKHO): wch3 = {'cart_id': 'cart_id', 'cart_name': 'cart_name', 'cart_items': 'cart_items', 'created_at': 'created_at', 'updated_at': 'updated_at'} RI88 = dict() return fPb2.resolve_names(YKHO, wch3, RI88)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO) -> cuzp:\n tbx9 = {}\n if hasattr(YKHO, 'model_id') and getattr(YKHO, 'model_id') is not None:\n tbx9['model_id'] = getattr(YKHO, 'model_id')\n if hasattr(YKHO, 'name') and YKHO.name is not None:\n tbx9['name'] = YKHO.name\n if hasattr(YKHO, 'description') and YKHO.descript...
[ "0.7740447", "0.7733294", "0.76944697", "0.7577692", "0.7555014", "0.7505961", "0.7503133", "0.7452769", "0.74324214", "0.74269855", "0.74083346", "0.74057573", "0.7405309", "0.73888385", "0.73716533", "0.73538244", "0.73478067", "0.7337118", "0.7336687", "0.7334565", "0.7329...
0.0
-1
Read a utf8 encoded text file and return its contents.
def Nwr9(Ux0P): with T_Uj.open(Ux0P, 'r', 'utf8') as eHNT: return eHNT.read()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKHU(Ux0P):\n with T_Uj.open(Ux0P, encoding='utf-8') as gY90:\n hGN5 = gY90.read()\n return hGN5", "def Ueki(YKHO):\n tZ2K = 'utf-8'\n l5Ny = ''\n try:\n with T_Uj.open(YKHO.file_name, 'r', tZ2K) as nUeQ:\n l5Ny = nUeQ.read()\n except (IOError, UnicodeError):\n ...
[ "0.8451615", "0.78848135", "0.7871024", "0.7865117", "0.772751", "0.76219267", "0.76059806", "0.75788647", "0.7569844", "0.7567953", "0.75668484", "0.75148344", "0.7512871", "0.74599564", "0.7449708", "0.74263215", "0.7401792", "0.7401792", "0.73696256", "0.7346713", "0.72984...
0.7695825
6
Create data (i.e. input) directory
def tw0q(qIxc, JlcV, fytP, xkzz=False, _73Q=['1435467', '2309595', '11618103'], sdA6=['LC', 'PS'], JZXy='https://raw.githubusercontent.com/ashleychontos/pySYD/master/dev/'): if not Hy7s.path.exists(qIxc.inpdir): Hy7s.mkdir(qIxc.inpdir) fytP += ' - created data directory at %s \n' % qIxc.inpdir f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y2Bp(pmON):\n if not Hy7s.path.isdir(pmON):\n Hy7s.makedirs(pmON)", "def Bytw() -> None:\n if not Hy7s.path.exists('data/'):\n Hy7s.mkdir('./data')\n if not Hy7s.path.exists('data/save'):\n Hy7s.mkdir('./data/save')\n if not Hy7s.path.exists('data/critics'):\n Hy7s.mkd...
[ "0.7684529", "0.76844215", "0.7665881", "0.74956995", "0.73801666", "0.73613614", "0.73465043", "0.7338544", "0.73299235", "0.73299235", "0.7075299", "0.7051222", "0.7033354", "0.7018545", "0.70144314", "0.70046973", "0.6998611", "0.6954133", "0.689811", "0.68770057", "0.6830...
0.0
-1
Get parent path. If parent_path exists, then get the absolute parent path of parent_path If parent_path is None, then get current absolute path of the file
def e1wP(YKHO, **B2fa): gx8i = str(B2fa.get('parent_path')).strip() if B2fa.get('parent_path') else None if gx8i is None: YKHO.parent_path = Hy7s.path.dirname(Hy7s.path.abspath(xAKo)) elif Hy7s.path.isabs(gx8i): YKHO.parent_path = gx8i else: zOGz = Hy7s.path.dirname(Hy7s.path.abs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slOJ(YKHO):\n return GkAb(Hy7s.path.split(YKHO.get_absolute())[0])", "def NmVZ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'parent_path')", "def NmVZ(YKHO):\n if nwFT not in YKHO.__props:\n return None\n pmON = YKHO.__props[cCRt]\n assert pmON[-1] == '/'\n return pmON", "def Xn8b...
[ "0.8190673", "0.80510634", "0.789903", "0.78521866", "0.7655006", "0.75498015", "0.7532091", "0.7454021", "0.74088037", "0.7405112", "0.7359042", "0.73462284", "0.73162776", "0.7236047", "0.7227183", "0.7208585", "0.71231914", "0.7088339", "0.70402896", "0.70189166", "0.70118...
0.76388097
5
compute the overlaps between a set of boxes b1 and 1 box b2
def XwD2(kYGz, ftz7): BQGg = oyIN.maximum(kYGz[:, 0], ftz7[:, 0]) bYzl = oyIN.minimum(kYGz[:, 2] + 1, ftz7[:, 2] + 1) TVTK = oyIN.maximum(0, bYzl - BQGg) h3cg = oyIN.maximum(kYGz[:, 1], ftz7[:, 1]) Z3uP = oyIN.minimum(kYGz[:, 3] + 1, ftz7[:, 3] + 1) H2v2 = oyIN.maximum(0, Z3uP - h3cg) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I7Mo(wGB6, QFOH):\n tspZ = ht2j.clamp_min(ht2j.min(wGB6[..., [2]], QFOH[..., [2]]) - ht2j.max(wGB6[..., [0]], QFOH[..., [0]]), 0)\n V2zj = ht2j.clamp_min(ht2j.min(wGB6[..., [3]], QFOH[..., [3]]) - ht2j.max(wGB6[..., [1]], QFOH[..., [1]]), 0)\n C7_8 = tspZ * V2zj\n b65I = (wGB6[..., [2]] - wGB6[...,...
[ "0.8084343", "0.80787414", "0.80505514", "0.79887867", "0.7920727", "0.7920727", "0.7920727", "0.7920727", "0.7920727", "0.7920727", "0.7920727", "0.7920727", "0.79155743", "0.77247417", "0.7665486", "0.7665486", "0.7589588", "0.75568295", "0.7511616", "0.74363905", "0.743406...
0.6932966
48
compute the IoU between a set of boxes b1 and 1 box b2
def vVR4(kYGz, ftz7): if kYGz.ndim == 1: kYGz = kYGz[None, :] if ftz7.ndim == 1: ftz7 = ftz7[None, :] assert ftz7.shape[0] == 1 z1Rg = XwD2(kYGz, ftz7) return z1Rg / (lWp3(kYGz) + lWp3(ftz7) - z1Rg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ySfS(YKHO, knvf, IkxF):\n rn1I = knvf[2]\n De7X = knvf[3]\n mIwi = IkxF[2]\n GD1K = IkxF[3]\n Z9pq = rn1I * De7X\n d_Zw = mIwi * GD1K\n RsfQ = min(knvf[0] - rn1I / 2.0, IkxF[0] - mIwi / 2.0)\n DIq2 = max(knvf[0] + rn1I / 2.0, IkxF[0] + mIwi / 2.0)\n B5ql = DIq2 - RsfQ\n suhQ = min...
[ "0.84692156", "0.8375623", "0.83750606", "0.8316647", "0.83139", "0.82808715", "0.8266534", "0.82616776", "0.8245939", "0.82228947", "0.82099277", "0.8194143", "0.81920975", "0.8182032", "0.81521654", "0.809709", "0.8094763", "0.80823004", "0.80698", "0.80644083", "0.80644083...
0.0
-1
compute the IoU between two tracks with same temporal extent
def YEqQ(kYGz, ftz7): assert kYGz.shape[0] == ftz7.shape[0], NI4b.set_trace() assert oyIN.all(kYGz[:, 0] == ftz7[:, 0]), NI4b.set_trace() z1Rg = XwD2(kYGz[:, 1:5], ftz7[:, 1:5]) return oyIN.mean(z1Rg / (lWp3(kYGz[:, 1:5]) + lWp3(ftz7[:, 1:5]) - z1Rg))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8gd(j93S, Nqp_):\n o4D3, si3g, ajwV, skBL = j93S\n rNcn, Sb1k, SzKB, INzm = Nqp_\n i8nr = abs(ajwV - o4D3) * abs(skBL - si3g)\n vo6s = abs(SzKB - rNcn) * abs(INzm - Sb1k)\n PuvM = max(0, min(max(o4D3, ajwV), max(rNcn, SzKB)) - max(min(o4D3, ajwV), min(rNcn, SzKB)))\n hYjx = max(0, min(max(si...
[ "0.6464554", "0.63754", "0.6357184", "0.6342384", "0.6335401", "0.62941426", "0.6286856", "0.62251216", "0.6197935", "0.619486", "0.6189122", "0.61774844", "0.61629826", "0.6093306", "0.608685", "0.6064327", "0.6062548", "0.60590994", "0.6059022", "0.6043012", "0.60350925", ...
0.0
-1
Tests the favorite departments list view.
def sEtG(YKHO): H91Q = Jg87.objects.create(name='Fire Department 1') fDd_ = Jg87.objects.create(name='Fire Department 2') I6lk = Jg87.objects.create(name='Fire Department 3') CBIr = mv1M.objects.get(username='admin') r_bd.objects.create(CBIr, H91Q) r_bd.objects.create(CBIr, fDd_) vpNv = r_bd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xTLV(YKHO):\n Gcbu = Jg87.objects.create(name='Adak Volunteer Fire Department', population=None)\n Z9rn = i9zE()\n Z9rn.login(**{'username': 'admin', 'password': 'admin'})\n geh0 = Z9rn.get('/departments?name=adak&state=&region=&fdid=&sortBy=&limit=')\n YKHO.assertTrue(Gcbu in geh0.context['obje...
[ "0.7162733", "0.7127162", "0.6851982", "0.6818578", "0.6778387", "0.66713446", "0.62387025", "0.6179326", "0.6174431", "0.61734074", "0.6171396", "0.61379147", "0.6129812", "0.61255425", "0.60910684", "0.6081058", "0.60173845", "0.60125315", "0.5994373", "0.5971731", "0.59549...
0.8446998
0
Tests updating the capability through the API.
def RLkK(YKHO): vFzy = q3LJ.objects.create(firestation=YKHO.fire_station, personnel=4, apparatus='Boat') bD7m = '{0}{1}/?format=json'.format(gxEw('api_dispatch_list', args=[YKHO.current_api_version, 'staffing']), vFzy.id) Z9rn = i9zE() Z9rn.login(**{'username': 'admin', 'password': 'admin'}) NArs = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def keWz(YKHO):\n pass", "def Lx2J(YKHO):\n pass", "def IsIF(YKHO, qIxc):\n pass", "async def test_capability_attrs(ajET: HomeAssistant) -> None:\n with Po4F.object(LEXu.Entity, 'available', cqv0(return_value=False)), Po4F.object(LEXu.Entity, 'capability_attributes', cqv0(return_value={'always': ...
[ "0.6965468", "0.6629109", "0.652601", "0.651645", "0.65085506", "0.6422937", "0.6422937", "0.6415953", "0.6363001", "0.6345249", "0.62791735", "0.62574357", "0.6237353", "0.6234995", "0.62002504", "0.6196422", "0.6140518", "0.6130858", "0.6117433", "0.60902315", "0.6081405", ...
0.79762524
0