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
Will return all known targets (aps and stations) that match supplied opts. More option add cumulative more targets and will not filter for less. The tool should filter the result as needed. opts.keys() = set(['bssid', 'station_mac', 'wifi_channel', 'ssid'])
def x6A0(YKHO, VKhi): eTFO = VKhi.get('station_mac', False) if eTFO: U5bT['stations'] |= set([p34B for p34B in YKHO.stations() if p34B.mac == eTFO]) for p34B in U5bT['stations']: U5bT['aps'].add(p34B.ap) U5bT = {'aps': set([]), 'stations': set([])} gLNQ = VKhi.get('bssid', Fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lesk(YKHO):\n VKhi = {'generic': ('user', 'pass', 'ulists', 'plists', 'shodan_key', 'censys_id', 'censys_sec', 'ipapi_key', 'proxy', 'proxy_user', 'proxy_pass', 'searchstr', 'resp_size'), 'net': ('shost', 'sport', 'smac', 'dhost', 'dport', 'dmac', 'rhost', 'rport', 'rmac', 'ndev', 'nmap'), 'social': ('linke...
[ "0.56475025", "0.561588", "0.54937685", "0.5388217", "0.5367067", "0.53542554", "0.532187", "0.53132635", "0.5291264", "0.5250291", "0.5250223", "0.5194176", "0.51435673", "0.5136728", "0.51227224", "0.51227224", "0.5111436", "0.5091255", "0.5082972", "0.5057119", "0.4981577"...
0.74937755
0
Creates and saves a User with the given email and password.
def lYUQ(YKHO, D3lj, jTXt): if not D3lj: raise ValueError('Users must have an email address') if not jTXt: raise ValueError('Users must have an password') CBIr = YKHO.model(email=YKHO.normalize_email(D3lj)) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ...
[ "0.87185115", "0.8469668", "0.84608346", "0.84508723", "0.8425465", "0.8420757", "0.84195983", "0.8414919", "0.8408961", "0.840773", "0.840773", "0.83996046", "0.83989877", "0.83894813", "0.8388478", "0.8388478", "0.8388478", "0.8388478", "0.8388478", "0.8388478", "0.8388478"...
0.0
-1
Creates and saves a superuser with the given email and password.
def Zp54(YKHO, D3lj, jTXt): CBIr = YKHO.create_user(email=D3lj, password=jTXt) CBIr.is_admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)", "def Zp54(YKHO, D3lj, jTXt, **wdCM):\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(D3lj, password=jTXt, **wdCM)\n CBIr.is_superuser = True\n CBIr.is_...
[ "0.8555722", "0.83575016", "0.83508795", "0.830083", "0.8291109", "0.82742244", "0.82727426", "0.8251127", "0.82483673", "0.82372046", "0.82254887", "0.8222463", "0.8222279", "0.8215102", "0.82104456", "0.82021487", "0.8192061", "0.8187187", "0.81800467", "0.81787187", "0.817...
0.80891716
86
u""" The function ``repr(dt)`` (or ```dt```) answers the string representation of the date, typically identical to ``dt.date + ' ' + dt.time``.
def wHJl(YKHO): return YKHO.date + ' ' + YKHO.time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oKfy(JRYC: datetime) -> str:\n return str(JRYC)", "def ujWr(JRYC, FMLJ=KX_B['with_timezone']):\n return JRYC.strftime(FMLJ)", "def wHJl(YKHO):\n return 'Date(%d, %d, %d)' % (YKHO.year, YKHO.month, YKHO.day)", "def wHJl(YKHO):\n if YKHO.date < 0:\n return '%05d/%02d/%02d' % YKHO.toTuple...
[ "0.69094616", "0.68690324", "0.68050784", "0.67466784", "0.6746561", "0.6745663", "0.6745663", "0.6645945", "0.6585512", "0.65569264", "0.65398526", "0.652085", "0.6480056", "0.644994", "0.6446213", "0.6440913", "0.6437449", "0.6432191", "0.64103323", "0.63842463", "0.6361533...
0.7231766
0
u""" Always answer ``True`` indicating that a ``DateTime`` instance can never be zero.
def ebnO(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mH81(JRYC):\n if JRYC is None:\n return True\n if JRYC.tzinfo is None:\n return True\n else:\n return False", "def jOLa(Emd4, _c1T):\n if type(_c1T) is not qcWV:\n return False\n else:\n return True", "def Emk3(YKHO) -> bool:\n return YKHO.__changed_date...
[ "0.7115096", "0.69744444", "0.69348115", "0.69251204", "0.6856928", "0.6799518", "0.6778441", "0.6762985", "0.6747976", "0.6683437", "0.6683437", "0.66529405", "0.6630353", "0.658879", "0.65678453", "0.6559208", "0.65108955", "0.6502", "0.6492224", "0.64758617", "0.64447147",...
0.62440115
43
u""" The ``dt.date`` answers a formatted string ``20081023`` of the date. This is exactly what SQL needs as datestring definition.
def dcJF(YKHO): return '%04d-%02d-%02d' % (YKHO.year, YKHO.month, YKHO.day)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6Tk(_c1T) -> str:\n return _c1T.strftime('%d%m%y')", "def dcJF(_c1T):\n if _c1T is None:\n return None\n return '%s, %02d %s %04d %02d:%02d:%02d GMT' % (['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'][_c1T.weekday()], _c1T.day, ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep'...
[ "0.68320334", "0.67030424", "0.66211855", "0.65371186", "0.64679503", "0.6434952", "0.6393287", "0.63572395", "0.6349434", "0.63294953", "0.6325006", "0.6324263", "0.6262678", "0.6251192", "0.62458074", "0.6239297", "0.62270325", "0.62268573", "0.6219417", "0.6200992", "0.619...
0.5892442
52
Returns current age in days
def N_N1(YKHO): if YKHO._birthday == None: raise ValueError return (qcWV.date.today() - YKHO._birthday).days
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lUqL(YKHO):\n if YKHO.birthday == None:\n raise ValueError\n return (qcWV.date.today() - YKHO.birthday).days", "def lUqL(YKHO):\n if YKHO.birthday == None:\n raise ValueError\n return (qcWV.date.today() - YKHO.birthday).days", "def ZJe_(YKHO):\n wzkt = qcWV.today()\n Kb0M = ...
[ "0.8419972", "0.8419972", "0.8355802", "0.8349687", "0.8302809", "0.83015555", "0.8266976", "0.82170933", "0.81377816", "0.811833", "0.81173444", "0.8068408", "0.8003591", "0.79935575", "0.79390776", "0.7885815", "0.7879249", "0.7801464", "0.77651036", "0.7695906", "0.7660261...
0.8286248
6
Assume other is of class Person() Return True if self preceded other in alphabetical order and False otherwise. Comparison is based on lastnames, but if these are the same full names are compared
def JWbp(YKHO, Elif): if YKHO._last_name == Elif._last_name: return YKHO._name < Elif._name return YKHO._last_name < Elif._last_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JWbp(YKHO, Elif):\n if YKHO._last_name == Elif._last_name:\n return YKHO._name < Elif._name\n return YKHO._last_name < Elif._last_name", "def JWbp(YKHO, Elif):\n return YKHO.lastname[1] < Elif.lastname[1]\n if YKHO.lastname == Elif.lastname:\n return YKHO.name < Elif.name\n else:...
[ "0.73195004", "0.7205056", "0.7091525", "0.7091525", "0.6965306", "0.69586486", "0.68348837", "0.6818173", "0.68083936", "0.6698361", "0.6615951", "0.6568099", "0.64724016", "0.6467421", "0.645347", "0.6431407", "0.64047843", "0.6351573", "0.62780076", "0.62780076", "0.623551...
0.73078895
1
Find all files beneath path with file name suffix. Note that a path may contain further subdirectories and those subdirectories may also contain further subdirectories. There are no limit to the depth of the subdirectories can be.
def A99F(YKHO, ZI14, pmON): YKHO.path_list = [] return YKHO.find_files_fast(pmON, ZI14, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A99F(ZI14, pmON):\n Zg0d = gzes(Odyn, pmON)\n if vtfo(Zg0d) == False:\n return []\n MXwC = []\n\n def uaUC(acAb):\n if EFYe(acAb) == True:\n if acAb.endswith(ZI14) == True:\n MXwC.append(PsRC(acAb, Odyn))\n else:\n for S3Wb in U9eF(acAb):\n ...
[ "0.8309775", "0.8206897", "0.81929564", "0.818203", "0.8149635", "0.8135414", "0.8129038", "0.81283027", "0.81266385", "0.808661", "0.8059262", "0.8047437", "0.80332804", "0.8027892", "0.79921037", "0.7989809", "0.798786", "0.7975868", "0.7899762", "0.78229773", "0.7784671", ...
0.7922323
18
Returns the current project directory.
def bfXF(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TdjZ():\n return WVPr", "def EL0N():\n return Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)))", "def TdjZ(YKHO):\n return Hy7s.path.split(Hy7s.path.abspath(YKHO.filename))[0]", "def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)", "def fJd3(YKHO):\n return YKHO._project_direc...
[ "0.86193246", "0.83803684", "0.8353744", "0.83198833", "0.82803446", "0.82653755", "0.8159279", "0.8125447", "0.8068059", "0.80475426", "0.80085146", "0.80085146", "0.8003245", "0.8002927", "0.7999086", "0.7994224", "0.7982035", "0.7946526", "0.79343045", "0.79262733", "0.789...
0.87994
0
Method used to retrieve the current start time. Be sure to compensate for number of ticks per frame!
def lAAs(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSV8(YKHO):\n return YKHO._clock.start", "def jSV8(YKHO):\n return YKHO._clock.start", "def SWox(YKHO) -> h8nf[float]:\n return YKHO._frames[0].timestamp if YKHO._frames else None", "def SWox(YKHO):\n return YKHO.time_list[0]", "def SWox(YKHO) -> ITS7:\n return YKHO._starttime", "def S...
[ "0.8169146", "0.8169146", "0.7854394", "0.78327304", "0.7799086", "0.77983475", "0.77779406", "0.7777855", "0.7736141", "0.77013284", "0.76981056", "0.76981056", "0.7685314", "0.76746666", "0.76746666", "0.7674643", "0.7642967", "0.7634473", "0.7607221", "0.7607221", "0.75564...
0.6953102
99
Returns the upaxis that the scene is set to.
def UXaX(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXaX(YKHO):\n return ccKF.upAxis(q=True, axis=True)", "def vP2v(YKHO) -> SoA4:\n return YKHO.orientation.up", "def W0ri(YKHO):\n return YKHO._up.get_y()", "def W0ri(YKHO):\n return YKHO._up.get_y()", "def W0ri(YKHO):\n pass", "def WcM3(YKHO):\n return YKHO._up.get_x()", "def WcM3(...
[ "0.8358353", "0.713085", "0.7092028", "0.7092028", "0.70277584", "0.7023453", "0.7023453", "0.69114995", "0.68463504", "0.6478253", "0.6393684", "0.6291596", "0.6291596", "0.6284903", "0.62150264", "0.62150264", "0.6203963", "0.6203963", "0.6164851", "0.61309284", "0.6119392"...
0.8105164
1
Add a new song to the collection of albums This method will add the song to an album in the collection, A new album will be created in the collection if it doesnt already exist
def pVNq(YKHO, mWFP, lO87, leAC): vIf6 = hQ_L(mWFP, YKHO.albums) if vIf6 is None: print(mWFP + ' not found') vIf6 = ZGCE(mWFP, lO87, YKHO.name) else: print('Found album ' + mWFP) vIf6.add_song(leAC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yWHF(YKHO, wphz):\n if wphz['id'] in YKHO.albums:\n pass\n else:\n YKHO.albums[wphz['id']] = wphz\n YKHO.cursor.execute('\\n INSERT INTO ALBUM (id, artist_id, title, genre, release_year)\\n VALUES (\"{}\", \"{}\", \"{}\", \"{}\", \"{}\");\\n ...
[ "0.8102613", "0.78305864", "0.78305864", "0.7789034", "0.7613476", "0.7598222", "0.73428565", "0.7301763", "0.72795844", "0.7273859", "0.7111533", "0.7098405", "0.7045556", "0.69748944", "0.68942857", "0.6846427", "0.68005836", "0.6723998", "0.6716227", "0.6625281", "0.657527...
0.72655606
10
Apply transforms, and predict_proba of the final estimator
def KR85(YKHO, EcVT): d9C6, bGrB, bGrB = YKHO._transform(EcVT) return YKHO._final_estimator.predict_proba(d9C6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lmLI(YKHO, bySB, LVAh):\n C0mc = None\n if YKHO.estimator.predict_uses_y:\n C0mc = LVAh\n return YKHO.estimator.predict_proba(bySB, y=C0mc)", "def KR85(YKHO, nPrm):\n return super().predict_proba(nPrm[YKHO.feature_names])", "def KR85(YKHO, Dmme):\n if not 'model' in YKHO.__dict__.keys...
[ "0.6607641", "0.6573185", "0.6567922", "0.6554243", "0.65422535", "0.64894533", "0.64389324", "0.6402379", "0.6393112", "0.63759863", "0.6355281", "0.6352954", "0.6351044", "0.6336092", "0.63353", "0.632197", "0.6310876", "0.6310876", "0.6310876", "0.6310876", "0.6310876", ...
0.6390786
9
Check to make sure temperature is greater then zero
def giYD(**B2fa): BAp1 = B2fa['task_instance'] ovGo = BAp1.xcom_pull(task_ids='load_temperature', key='temperature') if ovGo <= 0: raise ValueError('Temperature is less then or equal to zero')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NqRg(YKHO):\n pass", "def QOe9(begE):\n Aofo = begE.measure_temperature()\n assert type(Aofo) is float\n assert 0.0 <= Aofo <= 50.0", "def wZko(YKHO):\n if YKHO.sbitype == 'Lindblad_Form' or YKHO.sbitype == 'Vibrational_Lindblad_Form':\n return False\n else:\n try:\n ...
[ "0.80571485", "0.733683", "0.71534425", "0.7135765", "0.71055967", "0.70370334", "0.69742614", "0.691125", "0.69072694", "0.6834202", "0.6771964", "0.6764128", "0.6760644", "0.67444426", "0.6735799", "0.67212754", "0.67156774", "0.67030233", "0.6685676", "0.6644008", "0.66245...
0.73941976
1
Create a Pitch instance based on its MIDIpitch
def FIMM(YKHO, W6je): YKHO.midi_pitch = W6je YKHO._fix()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DkxQ(YKHO):\n return z_wV(YKHO.midi_pitch % 12)", "def H2HG(YKHO):\n return rdsS(YKHO)", "def nLZM(YKHO):\n YKHO.assertTrue(isinstance(YKHO.new_pitch, rdsS))", "def S0B3():\n H2HG = rdsS(inning=1, inning_half='T', des='Ball', result_type='B', gameday_sv_id='140404_191151', x=92.7, y=181.33, s...
[ "0.60388756", "0.59623915", "0.5566367", "0.55208176", "0.5510694", "0.53716975", "0.51987237", "0.51802427", "0.5172725", "0.5134685", "0.5130025", "0.51264226", "0.5106312", "0.51012844", "0.5089998", "0.5044052", "0.5029171", "0.50208473", "0.4974777", "0.49672523", "0.495...
0.5196538
7
Destroy the data source and source manager objects.
def jWLk(YKHO): if YKHO.SD: YKHO.SD.destroy() if YKHO.SM: YKHO.SM.destroy() YKHO.SD, YKHO.SM = (None, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VSBG(YKHO, QpfX, m5Tx):\n YKHO._manager.data_source_destroy(QpfX, vDgp(m5Tx))", "def xSHO(YKHO):\n YKHO.db = None\n YKHO.gen_cursor = None\n YKHO.map = None\n YKHO.fmap = None\n YKHO.smap = None\n YKHO.clear_local_cache()", "def fFx9(YKHO):\n if YKHO.owner and YKHO._ptr is not None:...
[ "0.7834499", "0.7182098", "0.6994427", "0.6840863", "0.6817327", "0.6754264", "0.6719486", "0.6695754", "0.66685486", "0.6651771", "0.6630325", "0.6604572", "0.65919065", "0.65919065", "0.65919065", "0.65919065", "0.65919065", "0.65919065", "0.65919065", "0.65308654", "0.6521...
0.0
-1
r"""Extracts crops from the input image tensor and resizes them. Extracts crops from the input image tensor and resizes them using bilinear sampling or nearest neighbor sampling (possibly with aspect ratio change) to a common output size specified by `crop_size`. This is more general than the `crop_to_bounding_box` op ...
def qMYr(LNo8, oUSw, wDh8, HLKd, NKcE='bilinear', C22E=0, mWFP=None): GSuR = aVzM._context or aVzM.context() W0pX = GSuR._thread_local_data if W0pX.is_eager: try: rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'CropAndResize', mWFP, W0pX.op_callbacks, LNo8, oU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qMYr(LNo8, oUSw, wDh8, HLKd, TeHS=True):\n assert isinstance(HLKd, int), HLKd\n if TeHS:\n LNo8 = ZylS.pad(LNo8, [[0, 0], [1, 1], [1, 1], [0, 0]], mode='SYMMETRIC')\n oUSw = oUSw + 1\n\n def WsPD(oUSw, lNai, Hixk):\n \"\"\"\n The way tf.image.crop_and_resize works (with normali...
[ "0.7682354", "0.7621454", "0.697609", "0.68627554", "0.6801881", "0.6792283", "0.6792283", "0.66019404", "0.65793145", "0.65638787", "0.6563405", "0.6510715", "0.64962864", "0.6459777", "0.6440401", "0.64378834", "0.64378834", "0.6381234", "0.63558304", "0.6353903", "0.632992...
0.72596306
2
r"""Decode the first frame of a BMPencoded image to a uint8 tensor. The attr `channels` indicates the desired number of color channels for the decoded image.
def yFwX(kGys, xMux=0, mWFP=None): GSuR = aVzM._context or aVzM.context() W0pX = GSuR._thread_local_data if W0pX.is_eager: try: rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'DecodeBmp', mWFP, W0pX.op_callbacks, kGys, 'channels', xMux) return rTzL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GKJL(YKHO, EKhh):\n if len(EKhh) == 0:\n f4IJ = None\n else:\n assert len(EKhh) == YKHO.frame_size\n if YKHO.pix_fmt == 'bgr24':\n f4IJ = oyIN.frombuffer(EKhh, oyIN.uint8).reshape([YKHO.height, YKHO.width, 3])\n elif YKHO.pix_fmt == 'yuv420p':\n f4IJ = B0gN.YUVtoBGR(EKhh...
[ "0.5865432", "0.5621892", "0.56131536", "0.56016284", "0.5584887", "0.5578218", "0.55129683", "0.5489394", "0.54820424", "0.5464032", "0.5403186", "0.5347682", "0.5340436", "0.5326135", "0.5323918", "0.5310126", "0.52980596", "0.5292804", "0.52776855", "0.52681017", "0.525338...
0.57295567
1
r"""Draw bounding boxes on a batch of images. Outputs a copy of `images` but draws on top of the pixels zero or more bounding boxes specified by the locations in `boxes`. The coordinates of the each bounding box in `boxes` are encoded as `[y_min, x_min, y_max, x_max]`. The bounding box coordinates are floats in `[0.0, ...
def sGG5(Yw_3, oUSw, mWFP=None): GSuR = aVzM._context or aVzM.context() W0pX = GSuR._thread_local_data if W0pX.is_eager: try: rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'DrawBoundingBoxes', mWFP, W0pX.op_callbacks, Yw_3, oUSw) return rTzL ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sGG5(Yw_3, vXI6):\n Ep8u = Yw_3.get_shape().as_list()[0]\n Hy2l = []\n assert isinstance(vXI6, list)\n for edvT in vXI6:\n assert Ep8u is edvT.get_shape().as_list()[0]\n WKvO, LVAh, yzQ0, MKlR = ZylS.split(edvT, 4, 1)\n wBZN = ZylS.clip_by_value(WKvO, 0.0, 1.0)\n KDmU = ...
[ "0.7294674", "0.6971139", "0.6962434", "0.6916199", "0.6886268", "0.6749771", "0.667784", "0.6676285", "0.66251", "0.6614129", "0.6523696", "0.6461275", "0.64604837", "0.64230067", "0.6411758", "0.64106375", "0.6387576", "0.6386675", "0.63850874", "0.63789773", "0.6340137", ...
0.7513706
0
r"""Draw bounding boxes on a batch of images. Outputs a copy of `images` but draws on top of the pixels zero or more bounding boxes specified by the locations in `boxes`. The coordinates of the each bounding box in `boxes` are encoded as `[y_min, x_min, y_max, x_max]`. The bounding box coordinates are floats in `[0.0, ...
def XBlO(Yw_3, oUSw, Jw9H, mWFP=None): GSuR = aVzM._context or aVzM.context() W0pX = GSuR._thread_local_data if W0pX.is_eager: try: rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'DrawBoundingBoxesV2', mWFP, W0pX.op_callbacks, Yw_3, oUSw, Jw9H) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sGG5(Yw_3, oUSw, mWFP=None):\n GSuR = aVzM._context or aVzM.context()\n W0pX = GSuR._thread_local_data\n if W0pX.is_eager:\n try:\n rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'DrawBoundingBoxes', mWFP, W0pX.op_callbacks, Yw_3, oUSw)\n return...
[ "0.75122166", "0.72968316", "0.6964796", "0.6958521", "0.6911266", "0.68920296", "0.6747518", "0.6683137", "0.66815287", "0.6632741", "0.66227293", "0.64652735", "0.64505935", "0.64329696", "0.6412124", "0.6399083", "0.63959587", "0.63930804", "0.6382536", "0.6377893", "0.634...
0.6525575
11
r"""PNGencode an image. `image` is a 3D uint8 or uint16 Tensor of shape `[height, width, channels]`
def JML7(LNo8, Rrsh=-1, mWFP=None): GSuR = aVzM._context or aVzM.context() W0pX = GSuR._thread_local_data if W0pX.is_eager: try: rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'EncodePng', mWFP, W0pX.op_callbacks, LNo8, 'compression', Rrsh) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DKkL(Ux0P, LNo8):\n LNo8 = HOkN(LNo8)\n vIwR = ZylS.image.encode_png(LNo8)\n return ZylS.write_file(Ux0P, vIwR)", "def DKkL(Ux0P, LNo8):\n LNo8 = HOkN(LNo8)\n vIwR = ZylS.image.encode_png(LNo8)\n return ZylS.write_file(Ux0P, vIwR)", "def DKkL(Ux0P, LNo8):\n LNo8 = HOkN(LNo8)\n vIwR ...
[ "0.728875", "0.728875", "0.7263155", "0.7263155", "0.6807966", "0.66858876", "0.6673783", "0.65581185", "0.6528369", "0.64113015", "0.6353192", "0.6333241", "0.62834156", "0.6271495", "0.6218522", "0.6215274", "0.6171699", "0.6163941", "0.6070478", "0.60342354", "0.5979291", ...
0.63102597
12
r"""Randomly crop `image`. `size` is a 1D int64 tensor with 2 elements representing the crop height and width. The values must be non negative. This Op picks a random location in `image` and crops a `height` by `width` rectangle from that location. The random location is picked so the cropped area will fit inside the o...
def QajG(LNo8, zNig, yokr=0, VO4B=0, mWFP=None): GSuR = aVzM._context or aVzM.context() W0pX = GSuR._thread_local_data if W0pX.is_eager: try: rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'RandomCrop', mWFP, W0pX.op_callbacks, LNo8, zNig, 'seed', yokr, 'seed2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TM7i(LNo8, N0ky):\n cviu = ZylS.constant([0.0, 0.0, 1.0, 1.0], dtype=ZylS.float32, shape=[1, 1, 4])\n LNo8 = c1vF(LNo8, cviu, min_object_covered=0.1, aspect_ratio_range=(3.0 / 4, 4.0 / 3.0), area_range=(0.08, 1.0), max_attempts=100, scope=None)\n return ZylS.image.resize_bicubic([LNo8], [N0ky, N0ky])[...
[ "0.76181024", "0.75788355", "0.7246541", "0.7224738", "0.72227055", "0.71571565", "0.7045681", "0.69085836", "0.6876909", "0.6865573", "0.68636143", "0.68537354", "0.6845807", "0.6791678", "0.67900443", "0.6784559", "0.6775672", "0.6761479", "0.6757922", "0.66826063", "0.6636...
0.70682913
6
r"""Resize `images` to `size` using area interpolation. Input images can be of different types but output images are always float. The range of pixel values for the output image might be slightly different from the range for the input image because of limited numerical precision. To guarantee an output range, for examp...
def oxdu(Yw_3, zNig, v8sN=False, mWFP=None): GSuR = aVzM._context or aVzM.context() W0pX = GSuR._thread_local_data if W0pX.is_eager: try: rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'ResizeArea', mWFP, W0pX.op_callbacks, Yw_3, zNig, 'align_corners', v8sN) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UwWG(VXjJ, zNig):\n return ZylS.to_int64(ZylS.image.resize_images(VXjJ, [zNig, zNig], ZylS.image.ResizeMethod.AREA))", "def CKWI(Yw_3, zNig, iaaf=ZylS.float32):\n Yw_3 = ZylS.image.resize_bilinear(Yw_3, zNig, align_corners=True)\n return ZylS.cast(Yw_3, dtype=iaaf)", "def OWxv(kOaU, Yw_3, zNig, **...
[ "0.6895747", "0.6658084", "0.60863656", "0.5880698", "0.5826861", "0.5792886", "0.5767166", "0.55384773", "0.5537351", "0.5534228", "0.5523021", "0.5481283", "0.5472409", "0.5396812", "0.53802186", "0.53646666", "0.5345379", "0.5342552", "0.53114665", "0.53017807", "0.5274166...
0.7133273
0
r"""Resize `images` to `size` using bilinear interpolation. Input images can be of different types but output images are always float.
def CKWI(Yw_3, zNig, v8sN=False, JUuH=False, mWFP=None): GSuR = aVzM._context or aVzM.context() W0pX = GSuR._thread_local_data if W0pX.is_eager: try: rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'ResizeBilinear', mWFP, W0pX.op_callbacks, Yw_3, zNig, 'align_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CKWI(Yw_3, zNig, iaaf=ZylS.float32):\n Yw_3 = ZylS.image.resize_bilinear(Yw_3, zNig, align_corners=True)\n return ZylS.cast(Yw_3, dtype=iaaf)", "def H2yr(Yw_3, zNig, min, max, v8sN=False, JUuH=False, mWFP=None):\n GSuR = aVzM._context or aVzM.context()\n W0pX = GSuR._thread_local_data\n if W0p...
[ "0.8292665", "0.7109571", "0.7073187", "0.67875224", "0.67508477", "0.66666347", "0.6649887", "0.66493076", "0.6571461", "0.6556776", "0.65431035", "0.6539155", "0.6502188", "0.6500317", "0.64505506", "0.64428324", "0.6424379", "0.6415704", "0.64106154", "0.64012724", "0.6377...
0.7475897
1
r"""Resize `images` to `size` using nearest neighbor interpolation.
def C944(Yw_3, zNig, v8sN=False, JUuH=False, mWFP=None): GSuR = aVzM._context or aVzM.context() W0pX = GSuR._thread_local_data if W0pX.is_eager: try: rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'ResizeNearestNeighbor', mWFP, W0pX.op_callbacks, Yw_3, zNig, '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CKWI(Yw_3, zNig, iaaf=ZylS.float32):\n Yw_3 = ZylS.image.resize_bilinear(Yw_3, zNig, align_corners=True)\n return ZylS.cast(Yw_3, dtype=iaaf)", "def CKWI(Yw_3, zNig, v8sN=False, JUuH=False, mWFP=None):\n GSuR = aVzM._context or aVzM.context()\n W0pX = GSuR._thread_local_data\n if W0pX.is_eager...
[ "0.70968544", "0.67684853", "0.6605843", "0.6526096", "0.6518181", "0.63847595", "0.6297166", "0.62620485", "0.6241102", "0.61941385", "0.61708426", "0.6163503", "0.6086005", "0.6085885", "0.6075792", "0.6065264", "0.6042615", "0.6037725", "0.599302", "0.59876704", "0.5979277...
0.7167627
0
r"""Generate a single randomly distorted bounding box for an image. Bounding box annotations are often supplied in addition to groundtruth labels in image recognition or object localization tasks. A common technique for training such a system is to randomly distort an image while preserving its content, i.e. data augme...
def cZDP(N0ky, NncF, yokr=0, VO4B=0, IKNg=0.1, sTOE=[0.75, 1.33], W1Nq=[0.05, 1], Cpim=100, d_hR=False, mWFP=None): GSuR = aVzM._context or aVzM.context() W0pX = GSuR._thread_local_data if W0pX.is_eager: try: rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'Sam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xHmz(LNo8, Crrw, c8oy, IKNg=0.3, sTOE=(0.9, 1.1), W1Nq=(0.1, 1.0), Cpim=200, Ltpr=True, rrBf=None):\n with ZylS.name_scope(rrBf, 'distorted_bounding_box_crop', [LNo8, c8oy]):\n UQFB, g9dT, aG3Z = ZylS.image.sample_distorted_bounding_box(ZylS.shape(LNo8), bounding_boxes=ZylS.expand_dims(c8oy, 0), min_...
[ "0.70120645", "0.70120645", "0.6907661", "0.67058814", "0.66893744", "0.6689292", "0.6592233", "0.6592233", "0.655707", "0.6484298", "0.6321594", "0.61374176", "0.6051827", "0.6040377", "0.58552986", "0.584449", "0.5839001", "0.5838391", "0.58382446", "0.5761048", "0.57465684...
0.7269759
0
r"""Generate a single randomly distorted bounding box for an image. Bounding box annotations are often supplied in addition to groundtruth labels in image recognition or object localization tasks. A common technique for training such a system is to randomly distort an image while preserving its content, i.e. data augme...
def zyTm(N0ky, NncF, IKNg, yokr=0, VO4B=0, sTOE=[0.75, 1.33], W1Nq=[0.05, 1], Cpim=100, d_hR=False, mWFP=None): GSuR = aVzM._context or aVzM.context() W0pX = GSuR._thread_local_data if W0pX.is_eager: try: rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_name, 'SampleD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cZDP(N0ky, NncF, yokr=0, VO4B=0, IKNg=0.1, sTOE=[0.75, 1.33], W1Nq=[0.05, 1], Cpim=100, d_hR=False, mWFP=None):\n GSuR = aVzM._context or aVzM.context()\n W0pX = GSuR._thread_local_data\n if W0pX.is_eager:\n try:\n rTzL = gHaJ.TFE_Py_FastPathExecute(GSuR._context_handle, W0pX.device_...
[ "0.72719365", "0.7012813", "0.7012813", "0.67078036", "0.66893137", "0.66892993", "0.6592417", "0.6592417", "0.6558802", "0.64862293", "0.6321058", "0.6139816", "0.60552216", "0.60411304", "0.58566684", "0.5847435", "0.5839284", "0.5838844", "0.5838364", "0.576251", "0.574544...
0.69092715
3
Return a custom 404 error.
def m7kB(tTpl): return ('Sorry, Nothing at this URL.', 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf(P1dF):\n return '404'", "def mZnU():\n return oGir(RA4y, '<h1>404 Error : Some crap went down, so just <a href=\"/\">HEAD HOME</a>.</h1>', [])", "def eJkH(XObx):\n return dict(err=XObx)", "def o3cf(P1dF):\n return G3KB('Not Found', 404)", "def RQdI(P1dF):\n return 'Sorry, Nothing at...
[ "0.8263737", "0.79933435", "0.79192984", "0.78825426", "0.7845269", "0.78424567", "0.7818006", "0.7818006", "0.7818006", "0.7816168", "0.78139937", "0.78001934", "0.77720594", "0.77618265", "0.7702134", "0.76248384", "0.7620647", "0.76148254", "0.75642604", "0.75578934", "0.7...
0.72552013
79
Return a custom 500 error.
def m7kB(tTpl): return ('Sorry, unexpected error: {}'.format(tTpl), 500)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C89g(tTpl):\n return (TvZl('500.html'), 500)", "def e_kA(tTpl):\n return ('Sorry, unexpected error: {}'.format(tTpl), 500)", "def r1yd(tTpl):\n return (TvZl('500.html'), 500)", "def e_kA(tTpl):\n return ('Sorry, unexpected error: {}'.format(tTpl), 500)", "def e_kA(tTpl):\n return ('Sorry...
[ "0.77419347", "0.77353114", "0.7727835", "0.7710948", "0.7710948", "0.7710948", "0.7710948", "0.7710948", "0.7710948", "0.7710948", "0.7710948", "0.7710948", "0.7710948", "0.76502776", "0.76437634", "0.7625618", "0.7604917", "0.7602182", "0.7597321", "0.75885934", "0.7562816"...
0.6971517
72
Returns the number of items in the queue.
def szAg(YKHO): return YKHO._qsize
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cPAc(YKHO):\n return len(YKHO.queue)", "def jBJp(YKHO) -> int:\n return len(YKHO.__queue)", "def yAGA(YKHO) -> int:\n return qe4Y.get(YKHO, 'queue_count')", "def zNig(YKHO):\n return len(YKHO.queue)", "def len(YKHO):\n with YKHO._lock:\n return len(YKHO.queue)", "def zNig(YKHO):...
[ "0.8412305", "0.84052855", "0.8359757", "0.828659", "0.8257502", "0.8247508", "0.824552", "0.8242556", "0.82354856", "0.8232903", "0.8184503", "0.8171416", "0.81636024", "0.81577563", "0.8125307", "0.8115171", "0.8099935", "0.8099497", "0.8084344", "0.8072951", "0.8020604", ...
0.0
-1
Adds the given item to the queue.
def jvNa(YKHO, ZfUD, Ey19): assert Ey19 >= 0 and Ey19 < len(YKHO._qlevels), 'Invalid priority level.' YKHO._qlevels[Ey19].enqueue(ZfUD) YKHO._qsize += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, ZfUD):\n YKHO.queue.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO._queue.append(ZfUD)", "def H2v5(YKHO, ZfUD):\n if YKHO._unique:\n H5ew = YKHO._key(ZfUD) if YKHO._key else ZfUD\n if H5ew in YKHO._seen:\n return\n YKHO._seen.add(H5ew)\n YKHO._work.appen...
[ "0.869336", "0.8657702", "0.8600554", "0.8366988", "0.8347139", "0.8347139", "0.8343992", "0.83053625", "0.8289553", "0.8271489", "0.8222586", "0.8203687", "0.81642187", "0.8140249", "0.812821", "0.8101405", "0.8101405", "0.8101405", "0.8101405", "0.8101405", "0.8100972", "...
0.0
-1
Removes and returns the next item in the queue.
def he0F(YKHO): assert not YKHO.is_empty(), 'Cannot dequeue from an empty queue.' D_4q = YKHO.find_top_priority_queue() YKHO._qsize -= 1 return YKHO._qlevels[D_4q].dequeue()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN(YKHO):\n lMD3 = YKHO.queue[0]\n del YKHO.queue[0]\n YKHO.index -= 1\n return lMD3", "def next(YKHO) -> any:\n if YKHO.queue:\n return YKHO.queue.pop(0)", "def he0F(YKHO):\n assert YKHO.__count != 0, 'Error: Queue is empty'\n ZfUD = YKHO.__items[YKHO.__head]\n YKHO.__item...
[ "0.8123105", "0.808981", "0.8071586", "0.80387014", "0.79801375", "0.79634666", "0.7955335", "0.7888286", "0.7848952", "0.78222704", "0.78094923", "0.78042126", "0.7797998", "0.77884185", "0.7784885", "0.7768452", "0.7711761", "0.770649", "0.7696518", "0.7675087", "0.76610655...
0.0
-1
Rotates the point pt by the specified amount around the origin
def OdyY(Xf84, XyWv): yVJ2 = oyIN.array([[Xf84.x], [Xf84.y]]) ZN4u = oyIN.array([[epAf.cos(XyWv), -epAf.sin(XyWv)], [epAf.sin(XyWv), epAf.cos(XyWv)]]) rk8E = ZN4u.dot(yVJ2) return PvyL(rk8E[0][0], rk8E[1][0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N0Pp(AU8u, hLRM, xYmT, a1PO):\n Y_1E = xYmT * a1PO\n return tEIf(AU8u, Y_1E, hLRM)", "def N0Pp(YKHO, YylR=mM0K, AU8u=[0, 0]):\n KCHu = lNLu(YKHO.x, YKHO.y)\n Ty9i = lNLu(YKHO.x - AU8u[0], YKHO.y - AU8u[1])\n gAeH, RyuO = KCHu.polar()\n imdf, b4lR = Ty9i.polar()\n YKHO.x = KCHu.x + imdf *...
[ "0.739797", "0.73700076", "0.73515093", "0.73059446", "0.73013765", "0.7294136", "0.72418845", "0.71994793", "0.71869636", "0.7186612", "0.7174355", "0.7167864", "0.7148563", "0.71392727", "0.7134676", "0.7123323", "0.71120435", "0.71118754", "0.7082833", "0.7043189", "0.7040...
0.63642454
98
constructor for IAMAdminClient class
def FIMM(YKHO, MAkG): YKHO.profile_settings = sl8Z() YKHO._load_settings(MAkG) YKHO.iamadmin_client_pool = BfDw.initialize_iamadmin_client_pool(YKHO.profile_settings.PROFILE_SERVICE_HOST, YKHO.profile_settings.PROFILE_SERVICE_PORT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, x0hE):\n YKHO.client = x0hE", "def FIMM(YKHO, x0hE):\n YKHO.client = x0hE", "def FIMM(YKHO, x0hE):\n YKHO.client = x0hE", "def FIMM(YKHO, x0hE):\n YKHO.client = x0hE", "def FIMM(YKHO, x0hE):\n YKHO.client = x0hE", "def FIMM(YKHO, x0hE):\n YKHO.client = x0hE", "def FIMM(...
[ "0.7362287", "0.7362287", "0.7362287", "0.7362287", "0.7362287", "0.7362287", "0.7362287", "0.7362287", "0.7362287", "0.7362287", "0.7291493", "0.72866374", "0.72291636", "0.72291636", "0.72291636", "0.7199395", "0.7199395", "0.71618", "0.7072879", "0.7064352", "0.706057", ...
0.0
-1
Initiate the class by specifying a base scikitlearn object and the parameters to use for each dataset.
def FIMM(YKHO, MB_u, **It3R): YKHO.base_function = MB_u YKHO.t_objects = None YKHO.params = It3R
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, GPtr, __n6):\n super().__init__(GPtr, __n6)\n return", "def FIMM(YKHO, lW3f, __n6, IkbX):\n YKHO._load_params = IkbX\n YKHO._dataset = __n6\n super(Horf, YKHO).__init__(lW3f, __n6)", "def FIMM(YKHO, lW3f, __n6, IkbX):\n YKHO._load_params = IkbX\n YKHO._dataset = __n6\n su...
[ "0.67792875", "0.67585623", "0.6665289", "0.66651803", "0.6656038", "0.6638662", "0.65437657", "0.65233487", "0.6519283", "0.6518364", "0.6515833", "0.64998007", "0.64798605", "0.6452334", "0.6452334", "0.6452236", "0.6449898", "0.6419758", "0.6399034", "0.63881266", "0.63804...
0.0
-1
Applies embedding based on inputs tensor.
def twi8(YKHO, g4y1, Y9ns=False): Pha6, R6Bz = g4y1 GhuM = ZylS.shape(Pha6) q4aw = GhuM[1] h6bD = ZylS.range(1, q4aw + 1, dtype=ZylS.int32)[ZylS.newaxis, :] ThNW = ZylS.gather(YKHO.charactor_embeddings, Pha6) lrJW = YKHO.position_embeddings(h6bD) KTQ3 = ThNW + ZylS.cast(lrJW, ThNW.dtype) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOv4(YKHO, g4y1):\n ZHfW = ZylS.to_float(ZylS.not_equal(g4y1, YKHO.pad_id))\n KTQ3 = ZylS.gather(YKHO.shared_weights, g4y1)\n KTQ3 *= ZylS.expand_dims(ZHfW, -1)\n KTQ3 *= YKHO.hidden_size ** 0.5\n return KTQ3", "def KVH6(YKHO, g4y1: Tensor):\n K_dq, tsWk = g4y1.size()\n NDdP = YKHO.paddi...
[ "0.75406903", "0.7523654", "0.7290858", "0.72703266", "0.7154394", "0.7026949", "0.7019591", "0.6932013", "0.68576896", "0.6849158", "0.68161017", "0.6808418", "0.6798893", "0.6775192", "0.6751971", "0.6733999", "0.66816473", "0.66637623", "0.6615042", "0.65919656", "0.655011...
0.7349545
2
Creates and saves a User with the given email, date of birth and password.
def lYUQ(YKHO, D3lj, qQNS, jTXt=None): if not D3lj: raise ValueError('Users must have an email address') CBIr = YKHO.model(email=YKHO.normalize_email(D3lj), display_name=qQNS) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def xWi2(YKHO, D3lj, c9ua, zp3f, jTXt, **wdCM):\n D3lj = YKHO.normalize_em...
[ "0.8398513", "0.8242539", "0.8222285", "0.8134031", "0.8112516", "0.8107438", "0.8089521", "0.80854213", "0.8078641", "0.8076671", "0.8072227", "0.806547", "0.80622184", "0.8059587", "0.8059416", "0.805927", "0.8057694", "0.8056086", "0.8049341", "0.8048753", "0.80471236", ...
0.0
-1
Creates and saves a superuser with the given email, date of birth and password.
def Zp54(YKHO, D3lj, qQNS, jTXt): CBIr = YKHO.create_user(D3lj, display_name=qQNS, password=jTXt) CBIr.is_admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(NtEF, D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save()\n return CBIr", "def Zp54(YKHO, D3lj, jTXt, **w...
[ "0.8167472", "0.81640285", "0.81592697", "0.8157564", "0.8150033", "0.81326395", "0.8128544", "0.8117672", "0.8079317", "0.80776244", "0.80751634", "0.80751634", "0.8075041", "0.8041116", "0.803153", "0.8018429", "0.80023706", "0.7999097", "0.79896784", "0.7988545", "0.798726...
0.0
-1
Choose a uniform random point within boundary.
def AU8u(YKHO): from numpy import random YBcr = YKHO.geom.extent FDPT = random.uniform(low=YBcr[0], high=YBcr[2]) QnmL = random.uniform(low=YBcr[1], high=YBcr[3]) jkx2 = PvyL(x=FDPT, y=QnmL, srid=YKHO.geom.srid) if YKHO.geom.intersects(jkx2): return jkx2 else: return YKHO.poi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qRtf(YKHO, cDK5=1, mmRm=1.0):\n return YKHO.random_uniform(cDK5)", "def qRtf():\n return (ajWY(0, 4), 2)", "def hA27():\n Mkmy = epAf.pow(tuKI.random(), 1.0 / 3.0)\n return fkgU(Mkmy)", "def qRtf(YKHO, cDK5=1, mmRm=1.0):\n zNig = YKHO.shape\n if cDK5 != 1:\n zNig = (cDK5,) + YKHO...
[ "0.761183", "0.7357486", "0.7299194", "0.72213745", "0.7150479", "0.7142039", "0.70942366", "0.70542306", "0.7011089", "0.70000565", "0.6995111", "0.69790953", "0.6946095", "0.69450957", "0.69369763", "0.69149595", "0.686921", "0.6862614", "0.6862614", "0.6862614", "0.6827843...
0.63214135
79
Checks the class documentation
def G9gr(YKHO): YKHO.assertGreater(len(KcDH.__doc__), 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X6Ca(YKHO):\n YKHO.assertTrue(len(i_Aq.__doc__) > 0)", "def rn3E(YKHO):\n YKHO.assertTrue(len(HvY3.__doc__) != 0)", "def rn3E(YKHO):\n YKHO.assertTrue(len(i_Aq.__doc__) > 0)", "def rn3E(YKHO):\n YKHO.assertTrue(len(x7Ls.__doc__) > 0)", "def fsBR(YKHO):\n YKHO.assertTrue(len(i_Aq.__doc__)...
[ "0.82016826", "0.81962657", "0.81228817", "0.8110575", "0.80382264", "0.7968378", "0.7954575", "0.79284483", "0.79284483", "0.79284483", "0.7734808", "0.76603633", "0.7533378", "0.7432519", "0.7430892", "0.7418232", "0.739354", "0.73758125", "0.73647004", "0.73548615", "0.735...
0.7386149
17
Split a pathname into components (the opposite of os.path.join) in a platformneutral way.
def c6pt(pmON, Aofo=None): if Aofo is None: Aofo = [] sdCG, J3uN = Hy7s.path.split(pmON) if sdCG == '': return [J3uN] + Aofo if sdCG == pmON: return Aofo return c6pt(sdCG, [J3uN] + Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(YKHO, pmON):\n raise NotImplementedError", "def eQ8x(pmON):\n return Hy7s.path.split(pmON)", "def KkWy(pmON):\n return Hy7s.path.normpath(pmON).strip('/').split('/')", "def eQ8x(pmON):\n return pmON.lstrip(Hy7s.sep).rstrip(Hy7s.sep).split(Hy7s.sep)", "def KkWy(pmON):\n pmON = Hy7s.p...
[ "0.73194486", "0.7280547", "0.7228261", "0.72041714", "0.7160185", "0.7153821", "0.7047913", "0.7041898", "0.696977", "0.69600254", "0.691248", "0.6911932", "0.6885217", "0.6875903", "0.6852911", "0.6852911", "0.6817326", "0.6782533", "0.6762041", "0.6736175", "0.6715479", ...
0.61364883
63
Setting the password... and remembering it for subsequent access
async def secure(YKHO, CBIr, KaGP): await V7ok.sleep(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h", "def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h", "def G3s8(YKHO, jTXt):\n D2Lq(jTXt)", "def m_qJ(YKHO, jTXt):\n YKHO._password = jTXt", "def G3s8(YKHO, jTXt):\n D2Lq(jTXt)", "def m_qJ(YKHO, jTXt):\n YKHO._password = YKHO.__encrypt_password(jTXt)", "...
[ "0.85173416", "0.83885664", "0.83092356", "0.81813747", "0.81212234", "0.8010332", "0.7969986", "0.7954605", "0.7880778", "0.78562135", "0.78423", "0.7840578", "0.7829331", "0.780893", "0.78015083", "0.77836585", "0.77749413", "0.7766018", "0.77460176", "0.77460176", "0.77094...
0.0
-1
Standardize data by subtracting out the mean and dividing by standard deviation calculated during fitting.
def SZFh(YKHO, __n6, ztt8=False): EcVT = __n6.X Nk6w = (EcVT - YKHO._mean) / oyIN.sqrt(YKHO._var) if ztt8: __n6.X = Nk6w return __n6 else: from . import Dataset return Dataset(Nk6w, jth9(__n6.y), jth9(__n6._xnames), jth9(__n6._yname))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hWT_(nPrm: DataFrame):\n B9EC = nPrm.iloc[:, :-1].mean()\n NdnM = nPrm.iloc[:, :-1].std()\n for d6pt in B9EC.index:\n nPrm[d6pt] = nPrm[d6pt].apply(lambda WKvO: (WKvO - B9EC[d6pt]) / NdnM[d6pt])\n return nPrm", "def hWT_(ZRAy, rYrh):\n M1Jx = oyIN.std(ZRAy, 0, keepdims=True)\n M1Jx[M...
[ "0.78996557", "0.78764194", "0.7851657", "0.7843569", "0.77901137", "0.7786879", "0.77642894", "0.77489173", "0.77065665", "0.7673243", "0.7603509", "0.7586629", "0.75728035", "0.755626", "0.7543332", "0.75344294", "0.7529302", "0.7503753", "0.75037193", "0.74868983", "0.7453...
0.0
-1
Add the inventory from arr2 to arr1. If an item exists in both arr1 and arr2, then the quantity of the item is updated in arr1. If an item exists in only arr2, then the item is added to arr1. If an item only exists in arr1, then that item remains unaffected.
def z34O(i3LB, fQvb): zJe8 = fQvb if len(zJe8) > len(i3LB): ycBG = i3LB i3LB = zJe8 zJe8 = ycBG zJe8 = zJe8.copy() for SjLr in i3LB: Sgcx = SjLr[0] mWFP = SjLr[1] try: YRbF = [WKvO[1] for WKvO in zJe8].index(mWFP) except ValueError: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chk0(i3LB, fQvb):\n for tTpl in fQvb:\n if not tTpl in i3LB:\n i3LB.append(tTpl)\n return i3LB", "def FOdN(YKHO, Elif):\n assert len(YKHO.items & Elif.items) == 0, 'Adding knapsacks with common items is not allowed'\n Aofo = YKHO.copy()\n for ZfUD in Elif:\n Aofo.add(Z...
[ "0.6371779", "0.63509005", "0.61168355", "0.6109437", "0.6063087", "0.6014544", "0.59305835", "0.5879415", "0.5869392", "0.58531713", "0.58397526", "0.5830258", "0.5822834", "0.5789764", "0.57400215", "0.5717757", "0.57169616", "0.57163", "0.5709244", "0.5697284", "0.5694759"...
0.8313312
0
Calculate portfolio variance (standard deviation).
def OuuK(YKHO, _mSQ, rPq8, gbZI): return YKHO.portfolio_performance(_mSQ, rPq8, gbZI)[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M5jT(_mSQ):\n return WYPg(_mSQ, KMJb)[1] ** 2", "def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL", "def I8JS(YKHO, kepv=None, KhBf=None):\n gbZI = YKHO.covariance_matrix(kepv, KhBf)\n OuuK = oyIN.matmul(oyIN.matmul(YKHO.weights.T, gbZI.to_numpy()), YKHO.weights...
[ "0.74921995", "0.7472962", "0.7461245", "0.74478555", "0.73416", "0.7331478", "0.73242825", "0.72425896", "0.7167224", "0.70822275", "0.7068372", "0.70514977", "0.70513177", "0.70457345", "0.70424384", "0.7030304", "0.70228165", "0.7018723", "0.7016926", "0.70127857", "0.7011...
0.7454663
3
Get queue occupancy for flow with matching port number.
def Sz13(YKHO, ftWC): _PT5 = ftWC.df_queue _PT5 = _PT5[_PT5.dropped == 0][hex(YKHO.flow.client_port)] _PT5 = _PT5[_PT5[_PT5 != 0].index[0]:_PT5[_PT5 != 0].index[-1]] _PT5.name = YKHO.flow.ccalg _PT5 = _PT5[~_PT5.index.duplicated(keep='last')] return _PT5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u5Vl(mWFP='default'):\n PeST = None\n UzPC = lxP0(mWFP)\n hhSU = UzPC.connection_pool.connection_kwargs\n for YRbF in range(0, 100):\n vexM = IO4t(YRbF)\n if vexM.name == mWFP and vexM.connection.connection_pool.connection_kwargs == hhSU:\n PeST = YRbF\n break\n ...
[ "0.6000567", "0.5929662", "0.5691405", "0.5676601", "0.56373847", "0.5611733", "0.5586391", "0.5586391", "0.5586391", "0.5586391", "0.5586391", "0.5586391", "0.5586391", "0.5586391", "0.5586391", "0.5586391", "0.5586391", "0.5586391", "0.5586391", "0.5586391", "0.5586391", ...
0.7242771
0
Create mock response object with parameters.
def FIMM(YKHO, zgjV, JBvl): YKHO.json_data = zgjV YKHO.status_code = JBvl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MXTQ():\n\n class ResponseMock:\n\n def FIMM(YKHO, JBvl, lo9Y):\n YKHO.status_code = JBvl\n YKHO.reason = lo9Y\n return howL", "def C9X5() -> lzH7:\n return lzH7", "def QBzT(l5Ny, *qIxc, **B2fa):\n cpvk = CFMy(name='response')\n cpvk.text = l5Ny\n if 'json' in...
[ "0.804967", "0.765932", "0.7435767", "0.73284084", "0.7323001", "0.7291676", "0.7149606", "0.7091467", "0.7087362", "0.6983406", "0.6966138", "0.6958834", "0.694881", "0.6932772", "0.6907972", "0.6895349", "0.68904895", "0.6854559", "0.68511957", "0.6823081", "0.67693424", ...
0.0
-1
The `id` attribute of the `` element.
def Gwav(YKHO): return YKHO.__v_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO, U6D_):\n return str(U6D_.attrib.get('id'))", "def id(YKHO):\n return YKHO.etree_element.get('id')", "def id(YKHO):\n return YKHO.tag.attrib['id']", "def id(YKHO):\n return YKHO.tag.attrib.get('id')", "def k5Ri(YKHO, o8Kj):\n return o8Kj['id']", "def id(YKHO):\n return YKH...
[ "0.886533", "0.87638193", "0.86223423", "0.8541418", "0.8534165", "0.8529881", "0.84621847", "0.8426072", "0.82104903", "0.79768646", "0.78181154", "0.780789", "0.7779716", "0.7779716", "0.7779716", "0.7779716", "0.77695704", "0.7755535", "0.7733373", "0.77044404", "0.7687356...
0.0
-1
The `version` attribute of the `` element.
def HIJ7(YKHO): return YKHO.__v_version
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DpZH(YKHO):\n return YKHO.xmltree.get('version')", "def DpZH(YKHO):\n return tuple(YKHO._root.get_attr('version'))", "def g83q(YKHO):\n return YKHO.xml.attrib.get('ver', None)", "def bOux(YKHO):\n return YKHO._get_value('VERSION')", "def DpZH(YKHO):\n return YKHO.data['Version']", "def...
[ "0.83480084", "0.82439584", "0.8190792", "0.79246247", "0.7880825", "0.7871887", "0.7864487", "0.78420323", "0.7829876", "0.7829876", "0.7829876", "0.7821442", "0.7821442", "0.77816343", "0.7776341", "0.77692074", "0.7765971", "0.776217", "0.77385664", "0.77329135", "0.773291...
0.7522645
84
A dictionary containing the fragment identifiers referenced by `` elements in this Media Overlay Document. Each key is the path to the Content Document, and the corresponding value is a list of fragment indentifiers in that Content Document.
def zASW(YKHO): try: Xc7K = YKHO._referenced_fragment_identifiers(YKHO.body.children, []) qDyV = {} for hOYR in Xc7K: Op6c = qQQh.util.split_reference(hOYR) if 'base' in Op6c and 'fragment' in Op6c: P8oC = Op6c['base'] vBtp = Op6c['frag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZzQ(YKHO):\n if YKHO._ondisk_info:\n kKFw = YKHO._ondisk_info['frag_sets']\n return dict([(i8WE, [U34r['frag_index'] for U34r in PnCJ]) for i8WE, PnCJ in kKFw.items()])", "def bA3f(YKHO):\n try:\n return YKHO._referenced_fragment_identifiers(YKHO.body.children, [])\n except:\n ...
[ "0.6896851", "0.62403333", "0.60058564", "0.59780425", "0.56760246", "0.556918", "0.55537754", "0.5552697", "0.54969853", "0.54089904", "0.5391456", "0.53807294", "0.5358065", "0.52842635", "0.5278499", "0.5267592", "0.5267592", "0.5249346", "0.5233718", "0.522377", "0.517418...
0.68730956
1
Return deg_k degrees Kelvin in degrees Fahrenheit.
def ZZL_(f21v): return (f21v - 273.15) * 9.0 / 5.0 + 32
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PoOI(YKHO) -> float:\n return YKHO.Kf", "def yizX(YKHO):\n return YKHO.instrument.kelvin()", "def ySoc(f21v):\n return f21v - 273.15", "def yizX(YKHO):\n if YKHO.configuration is None:\n return oyIN.nan * rYO3.Unit('Kelvin')\n elif YKHO.configuration.has_option('kelvin'):\n r...
[ "0.72974265", "0.72562957", "0.7245741", "0.71994126", "0.7132734", "0.7119028", "0.71148306", "0.7095797", "0.6957764", "0.68624717", "0.6818542", "0.68071616", "0.67834425", "0.67828256", "0.677461", "0.6774138", "0.67525333", "0.6749535", "0.67494965", "0.6747315", "0.6701...
0.6865488
9
Test the unfold node property operation, where the prefix of the predicate is added explicitly.
def IzXs(): Oa1e = VA2z()[1] qPQo(Oa1e, 'same_as', prefix='biolink') assert 'same_as' not in Oa1e.nodes()['HGNC:12345'] assert Oa1e.has_edge('HGNC:12345', 'UniProtKB:54321') tTpl = list(dict(Oa1e.get_edge('HGNC:12345', 'UniProtKB:54321')).values())[0] assert 'subject' in tTpl and tTpl['subject']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qe6L():\n Oa1e = VA2z()[1]\n qPQo(Oa1e, 'same_as')\n assert 'same_as' not in Oa1e.nodes()['HGNC:12345']\n assert Oa1e.has_edge('HGNC:12345', 'UniProtKB:54321')\n tTpl = list(dict(Oa1e.get_edge('HGNC:12345', 'UniProtKB:54321')).values())[0]\n assert 'subject' in tTpl and tTpl['subject'] == 'HG...
[ "0.6791432", "0.65013766", "0.6256721", "0.57192314", "0.55255985", "0.5339178", "0.53160805", "0.52625555", "0.5164368", "0.50465393", "0.50154054", "0.49718437", "0.4970589", "0.4931535", "0.49135852", "0.49118447", "0.48960325", "0.48787493", "0.48787493", "0.487338", "0.4...
0.68543863
0
Method that tests unsucceeded `create` method of Event class object.
def q6Qi(YKHO): dZPi = r2Kd.objects.get(id=101) qsJ6 = Wqvn.objects.get(id=101) B9zM = QRWf.create(team=dZPi, owner=qsJ6) YKHO.assertIsNone(B9zM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AUm9(YKHO):\n tTpl = YKHO.create_event()\n YKHO.assertTrue(isinstance(tTpl, QRWf))", "def M930(YKHO):\n dZPi = r2Kd.objects.get(id=101)\n qsJ6 = Wqvn.objects.get(id=101)\n B9zM = QRWf.create(team=dZPi, owner=qsJ6, name='test event name')\n YKHO.assertIsInstance(B9zM, QRWf)", "def _qxG(YKH...
[ "0.77058387", "0.74696684", "0.7403776", "0.71314317", "0.70364", "0.67443216", "0.67059326", "0.6656862", "0.6645207", "0.66321224", "0.6583286", "0.65366405", "0.6527911", "0.64476126", "0.64209783", "0.6418602", "0.6382979", "0.6379326", "0.6375055", "0.6352179", "0.634213...
0.76288843
1
Method that tests `update` method of certain Event instance. Test for updating only a few attributes.
def wIPv(YKHO): with TMAJ.patch('event.models.cache') as uNoy: uNoy.__contains__.return_value = True avHX = QRWf.objects.get(id=101) avHX.update(name='box', description='updated description') UEiw = QRWf.objects.get(id=101) YKHO.assertEqual(avHX, UEiw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H1QZ(YKHO):\n avHX = QRWf.objects.get(id=101)\n PXKw = Wqvn.objects.create(id=201, email='exp@gmail.com', password='123')\n avHX.update(owner=PXKw, name='tennis', description='very fun game', start_at=qcWV.datetime(2017, 4, 11, 6, 23, 11), duration=qcWV.timedelta(seconds=11000), longitude=-61.523438, ...
[ "0.79304755", "0.7738272", "0.75956714", "0.75956714", "0.755943", "0.73809516", "0.7253757", "0.71621406", "0.7156289", "0.7096848", "0.70271444", "0.70140374", "0.69970393", "0.69892466", "0.69809663", "0.69775313", "0.6943134", "0.6873945", "0.6866538", "0.6859596", "0.678...
0.715974
8
Method that tests `update` method of certain Event instance. Test for updating all attributes.
def H1QZ(YKHO): avHX = QRWf.objects.get(id=101) PXKw = Wqvn.objects.create(id=201, email='exp@gmail.com', password='123') avHX.update(owner=PXKw, name='tennis', description='very fun game', start_at=qcWV.datetime(2017, 4, 11, 6, 23, 11), duration=qcWV.timedelta(seconds=11000), longitude=-61.523438, latitude...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TfB7(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO, qIxc):\n pass", "def PJXl(YKHO):\n ehEq = bMcB()\n ehEq.max_price = 99.99\n ehEq.__dict__.__delitem__('_state')\n nPrm = PjZe(ehEq.__dict__, default=erUo)\n Ylbp = YKHO.client.put(gxEw('e...
[ "0.7704965", "0.7637284", "0.7637284", "0.7543351", "0.7293775", "0.7292598", "0.7228574", "0.7191563", "0.7120315", "0.7066752", "0.70043916", "0.7000567", "0.6998972", "0.6967904", "0.6931532", "0.6924686", "0.6917406", "0.686075", "0.6837708", "0.68341106", "0.68140906", ...
0.79400104
0
Returns a pointer to the underlying C MPI object
def TLCF(W2ec): return VEDo.uintp(ptrL._addressof(W2ec))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZ1r():\n try:\n PQrP.find_module('mpi4py')\n from mpi4py import MPI\n return MPI.COMM_WORLD\n except ImportError:\n\n class FakeCOMM:\n\n def FIMM(YKHO):\n YKHO.size = 1\n YKHO.rank = 0\n\n def LUDe(YKHO, vGaq):\n ...
[ "0.69792044", "0.6592695", "0.6475706", "0.6324587", "0.6129946", "0.6128652", "0.6038253", "0.5985167", "0.58833945", "0.5615767", "0.56004256", "0.54028445", "0.5397893", "0.5397893", "0.5392476", "0.53742796", "0.5304939", "0.5288058", "0.52368873", "0.5234329", "0.5230955...
0.6752393
1
Returns the pointer to the MPI dtype of the input numpy dtype
def wMyN(yDqo): IERB = VEDo.dtype(yDqo).name if IERB not in PUJ3: raise RuntimeError('Unknown MPI type for dtype {}'.format(IERB)) XJrz = getattr(ptrL, PUJ3[IERB]) return QVI_(XJrz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xL0j(yDqo):\n if SYqC:\n try:\n return Gm6g.__TypeDict__[yDqo.char]\n except AttributeError:\n return Gm6g._typedict[yDqo.char]\n except KeyError:\n return None\n except:\n return None\n else:\n return None", "def CGll(yDqo)...
[ "0.7237002", "0.6997669", "0.6975669", "0.68063563", "0.67942286", "0.6752405", "0.6740611", "0.67368615", "0.66453195", "0.6622135", "0.65491486", "0.6520144", "0.65031594", "0.6491378", "0.64807665", "0.64807665", "0.64807665", "0.64807665", "0.64807665", "0.6463959", "0.64...
0.74582386
0
Return the number of output features for `m`. same as fastai.vision.learner.num_features_model passes model_size a len 3 tuple of sz
def IEOU(r8hN): Rv0k, c8xg = (32, DYuh(r8hN)) while True: return XPPJ(r8hN, (Rv0k, Rv0k, Rv0k))[-1][1] try: return XPPJ(r8hN, (Rv0k, Rv0k, Rv0k))[-1][1] except Exception as e: Rv0k *= 2 print(Rv0k) if Rv0k > 2048: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOJz(YKHO):\n return YKHO.components_.shape[0]", "def wGAj(C3ST):\n if hasattr(C3ST.classifier, 'hidden_layers'):\n zNig = C3ST.classifier.hidden_layers[0].in_features\n return zNig\n else:\n ExiU = [WKvO[1] for WKvO in C3ST.classifier.named_children()][0]\n zNig = ExiU.i...
[ "0.68445176", "0.67904913", "0.6693073", "0.6649951", "0.6623403", "0.6580461", "0.65716577", "0.65559745", "0.6468198", "0.6468198", "0.64678746", "0.64541024", "0.64471984", "0.64317733", "0.64218813", "0.6421125", "0.6418444", "0.6406054", "0.6406054", "0.63935274", "0.636...
0.83056796
0
Compute the total friction force in "world coordinates".
def SNAl(CYJB): xPki = [0, 0, 0] for YRbF, y5bX in enumerate(CYJB): xPki[0] += y5bX[11][0] * y5bX[10] + y5bX[13][0] * y5bX[12] xPki[1] += y5bX[11][1] * y5bX[10] + y5bX[13][1] * y5bX[12] xPki[2] += y5bX[11][2] * y5bX[10] + y5bX[13][2] * y5bX[12] return xPki
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGzh(YKHO):\n yvY1 = YKHO.G\n BZ33 = YKHO.particles\n QTBn = YKHO.state\n LtyS = [[0, 0]] * len(BZ33)\n for YRbF in range(len(BZ33)):\n for r845 in range(len(BZ33)):\n if r845 == YRbF:\n continue\n LtyS[YRbF] += YKHO.get_atraction_force(BZ33[YRbF], BZ3...
[ "0.7117634", "0.7003934", "0.68548924", "0.68430716", "0.66617006", "0.66311175", "0.6624869", "0.6624869", "0.6564171", "0.6545211", "0.6500279", "0.6486443", "0.6482032", "0.64757097", "0.64641494", "0.6437739", "0.6437689", "0.6416242", "0.6348464", "0.63394594", "0.633734...
0.6559442
9
Remove NaN values and set to 0 useless pixels.
def sjDK(HLiY, G_pu=1.1): HLiY = oyIN.nan_to_num(HLiY) HLiY = oyIN.where(HLiY < G_pu, HLiY, oyIN.zeros(shape=HLiY.shape)) HLiY[400:] = 0.0 return HLiY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XEBk(YKHO):\n KCHu = '::: removing NaNs from %s :::' % YKHO.name\n whWJ(KCHu, YKHO.color)\n YKHO.x = YKHO.x[YKHO.good_x]\n YKHO.y = YKHO.y[YKHO.good_y]\n YKHO.x_min = YKHO.x.min()\n YKHO.x_max = YKHO.x.max()\n YKHO.y_min = YKHO.y.min()\n YKHO.y_max = YKHO.y.max()\n YKHO.nx = len(YKHO...
[ "0.7517103", "0.7505596", "0.746531", "0.7104125", "0.70758384", "0.687528", "0.6777157", "0.67749286", "0.6753087", "0.6689935", "0.6611349", "0.6573402", "0.65717715", "0.6542613", "0.6481529", "0.64688104", "0.6462446", "0.64542115", "0.64372957", "0.63966495", "0.6393454"...
0.0
-1
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None fd0Q = cmPJ.get('isRemovalStuck') LuaO = cmPJ.get('progressPercentage') ZErV = cmPJ.get('removalProgress') bSEa = cmPJ.get('serviceName') jAEe = cmPJ.get('timeRemaining') return Emd4(fd0Q, LuaO, ZErV, bSEa, jAEe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83711994", "0.8334289", "0.8214526", "0.8168158", "0.8168158", "0.8147306", "0.8051307", "0.802901", "0.80125165", "0.79786205", "0.7920574", "0.79173696", "0.7916579", "0.79120845", "0.79055357", "0.789913", "0.78954095", "0.7884692", "0.78750896", "0.7853024", "0.7853024...
0.0
-1
Get the batch randomly from the buffer
def IWA_(YKHO, mtkn=True): TTbd = None if tuKI.random() < mtkn: YKHO.p_indices.extend((oyIN.arange(len(YKHO.buffer) - len(YKHO.p_indices)) + 1) * yIP2 + YKHO.p_indices[-1]) TTbd = YKHO.p_indices / oyIN.sum(YKHO.p_indices) CZs6 = oyIN.random.choice(len(YKHO.buffer), size=min(YKHO.batch_size, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MMq1(YKHO):\n or8S = oyIN.random.permutation(range(0, len(YKHO.strokes)))[0:YKHO.batch_size]\n return YKHO._get_batch_from_indices(or8S)", "def IWA_(YKHO, exwG):\n DNs0 = tuKI.sample(Ni9Y(YKHO.cur_size), exwG)\n return ([YKHO.buffer[or8S] for or8S in DNs0], None)", "def mvm2(YKHO, Ep8u=100):\n ...
[ "0.78056204", "0.76962936", "0.76671267", "0.7537884", "0.746623", "0.741922", "0.7293471", "0.7293471", "0.71614665", "0.7159332", "0.71540886", "0.71131796", "0.70401925", "0.6994408", "0.698725", "0.6981035", "0.6981035", "0.6967095", "0.6856703", "0.68425673", "0.68417823...
0.68782246
18
Used to test the response when the list doesn't have messages using lpop command
def ng7T(YKHO): YKHO.content.incoming_queue_times = 1 YKHO.assertEqual(f'No messages to delete from meli list', uiCb(YKHO.redis, Ix_b, YKHO.content))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RSJG(YKHO):\n DboB = [None, None, None]\n YKHO.assertEqual(f'No messages to delete from meli list', PtZ8(YKHO.content, DboB))", "def H8WF(YKHO):\n DboB = [b'test_1', b'test_2', b'test_3']\n YKHO.assertEqual(f'The following message(s) was(were) were removed from meli list: test_1, test_2, test_3',...
[ "0.74650455", "0.72954714", "0.7290206", "0.72610396", "0.6992153", "0.6494635", "0.64444876", "0.6430661", "0.6427518", "0.63407403", "0.6316606", "0.6214735", "0.6145976", "0.6119422", "0.61008143", "0.6088532", "0.60323685", "0.60184205", "0.5942251", "0.59199697", "0.5882...
0.6646281
5
Used to test geting messages when the list is empty
def MtHg(YKHO): YKHO.content.incoming_queue_start = 0 YKHO.content.incoming_queue_end = -1 YKHO.assertEqual(f'No messages to show from meli list', YpHn(YKHO.redis, hxz2, YKHO.content))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RSJG(YKHO):\n DboB = [None, None, None]\n YKHO.assertEqual(f'No messages to delete from meli list', PtZ8(YKHO.content, DboB))", "def v2dp(YKHO):\n S0S4 = (yield YKHO.backend.batch_start())\n tO9_ = YKHO.msg_helper.make_outbound('hello')\n yield YKHO.backend.add_outbound_message(tO9_, batch_ids...
[ "0.7426818", "0.7331254", "0.72855633", "0.7282261", "0.72530246", "0.7220474", "0.7097796", "0.70836663", "0.7053121", "0.70447135", "0.6995317", "0.6923998", "0.67649204", "0.6752848", "0.67410636", "0.6736081", "0.6713577", "0.67101467", "0.6690608", "0.6666835", "0.666577...
0.7777376
0
Initialize the ship and set its starting position.
def FIMM(YKHO, Vjhr, tJm0): super(riCe, YKHO).__init__() YKHO.screen = Vjhr YKHO.screen_rect = Vjhr.get_rect() YKHO.ai_settings = tJm0 YKHO.images = [] YKHO.destroy_images = [] YKHO.load_ship() YKHO.load_destroy_animation() YKHO.image = YKHO.images[0] YKHO.rect = YKHO.image.get_r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, YqMg, Vjhr):\n YKHO.screen = Vjhr\n YKHO.setting = YqMg\n YKHO.image = a9eO.image.load(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), '..', 'images', 'ship.png'))\n YKHO.rect = YKHO.image.get_rect()\n YKHO.screen_rect = Vjhr.get_rect()\n YKHO.rect.centerx = YKHO.screen...
[ "0.70874274", "0.70435274", "0.7010543", "0.6998576", "0.6994357", "0.6945604", "0.6940863", "0.6873152", "0.6863655", "0.684175", "0.6829651", "0.6805538", "0.6793473", "0.6751288", "0.675022", "0.6741371", "0.6721009", "0.67179126", "0.6711942", "0.6711268", "0.669612", "...
0.69190407
7
Test simple template is rendered and updated.
async def test_render_template_renders_template(RUgX, YRWl, HiFO): RUgX.states.async_set('light.test', 'on') await YRWl.send_json({'id': 5, 'type': 'render_template', 'template': "State is: {{ states('light.test') }}"}) tO9_ = await YRWl.receive_json() assert tO9_['id'] == 5 assert tO9_['type'] == P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Up0Y(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertTemplateUsed(geh0, 'authentication/email_update.html')", "def QOe9(rPXJ):\n return TvZl(rPXJ + '.html')", "def dRey(YKHO):\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/update_view.html')\n YKHO.assertTemplateUsed(YKHO.response, ...
[ "0.74494743", "0.74337107", "0.740769", "0.73545873", "0.7200586", "0.7117997", "0.7115518", "0.7109257", "0.7094897", "0.7060674", "0.70348555", "0.70304495", "0.7019705", "0.7010446", "0.6986295", "0.6984638", "0.69796187", "0.6977445", "0.6973957", "0.6963465", "0.69604623...
0.6835271
35
Test that updates to specified entity ids cause a template rerender.
async def test_render_template_with_manual_entity_ids(RUgX, YRWl, HiFO): RUgX.states.async_set('light.test', 'on') RUgX.states.async_set('light.test2', 'on') await YRWl.send_json({'id': 5, 'type': 'render_template', 'template': "State is: {{ states('light.test') }}", 'entity_ids': ['light.test2']}) tO9_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oZWf(YKHO):\n pass", "def jc3s(YKHO):\n pass", "def TfB7(YKHO):\n pass", "def xL7q(YKHO):\n pass", "def L_bm(YKHO):\n nPrm = {'text': 'foobar'}\n QePW = i_PC.patch('/1', nPrm, format='json')\n with YKHO.assertNumQueries(2):\n geh0 = YKHO.view(QePW, pk=1).render()\n YKHO.a...
[ "0.60272574", "0.60160047", "0.6004498", "0.60028964", "0.599067", "0.59814036", "0.5958904", "0.59492224", "0.5893397", "0.58856416", "0.5856059", "0.58441675", "0.5824917", "0.5820661", "0.58028316", "0.57987845", "0.57860136", "0.57819146", "0.5775989", "0.57680845", "0.57...
0.66447175
0
Initialize Game, CSC and HighScore objects
def FIMM(YKHO): YKHO.running = True YKHO.playing = True YKHO.menu_show = True YKHO.CSC = _NU7() YKHO.HighScore = jaz6()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.game = _apf()\n YKHO.game.set_game_status(True)\n YKHO.dice = nuMY()\n YKHO.player1 = mVZ4(str, bool)\n YKHO.player2 = mVZ4(str, bool)\n YKHO.computer_player = mVZ4(str, bool)\n YKHO.highscore = xKVI(YKHO.player1, YKHO.player2)", "def FIMM(YKHO):\n YKHO.user_data = ...
[ "0.6916079", "0.6880687", "0.6716132", "0.6663311", "0.6481309", "0.6430254", "0.64232844", "0.6415585", "0.63992363", "0.6395735", "0.63593566", "0.63372535", "0.633516", "0.63340086", "0.6311326", "0.63098437", "0.6301713", "0.6294397", "0.6281226", "0.6246914", "0.6222644"...
0.75882155
0
Gets the course code of the course that owns the current domain, using
def GYO9(zrIJ=None): if AxXv('ENV') != 'prod': return 'cs61a' if not zrIJ: zrIJ = vK05() if 'pr' in zrIJ: cgsX[zrIJ] = 'cs61a' if zrIJ not in cgsX: cgsX[zrIJ] = Jpbe.get_course(domain=zrIJ) return cgsX[zrIJ]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nYFg(YKHO):\n return YKHO._course_code", "def nYFg(YKHO):\n return YKHO.__course_code", "def yVv5(YKHO):\n return YKHO._cidstr", "def HoTI(YKHO, tvqc):\n S7Jr = None\n if tvqc['event_source'] == 'server':\n if tvqc['event_type'] == '/accounts/login':\n KCHu = tvqc['event'...
[ "0.79185915", "0.7865304", "0.73819524", "0.6557923", "0.6470598", "0.6451819", "0.6410436", "0.63491154", "0.6340339", "0.6056227", "0.6056227", "0.6052794", "0.5971493", "0.59610873", "0.5956429", "0.5883142", "0.5869797", "0.5858237", "0.58512557", "0.5793694", "0.5793694"...
0.79739785
0
Gets the domain that this request is being made on.
def vK05(): return QePW.headers.get('X-Forwarded-For-Host') or QePW.headers['HOST']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vK05(YKHO):\n return YKHO.m_domain", "def zrIJ(YKHO):\n return YKHO._domain", "def zrIJ(YKHO):\n return YKHO._domain", "def zrIJ(YKHO):\n return YKHO._domain", "def zrIJ(YKHO):\n return YKHO._domain", "def zrIJ(YKHO):\n return YKHO._domain", "def zrIJ(YKHO):\n return YKHO._doma...
[ "0.84298486", "0.83714235", "0.83714235", "0.8328323", "0.8328323", "0.8328323", "0.8328323", "0.8328323", "0.8328323", "0.8328323", "0.8328323", "0.8328323", "0.8328323", "0.8328323", "0.8328323", "0.8328323", "0.8325128", "0.8325128", "0.8275933", "0.8266048", "0.82517284",...
0.7588405
50
Returns whether or not an email address belongs to an admin
def _Kb1(D3lj, GQfX=None): if AxXv('ENV') != 'prod': return True if not GQfX: GQfX = GYO9() return Jpbe.is_admin(email=D3lj, course=GQfX, force_course=GQfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4un(D3lj=None):\n if D3lj:\n ZrNc = Nc2H.objects(email=D3lj).first()\n if ZrNc and ZrNc.group == 'admin':\n return True\n else:\n dp9S = Nc2H.objects(group='admin').first()\n if dp9S:\n print('Admins already exist!')\n retu...
[ "0.7897863", "0.7619061", "0.7458976", "0.7458976", "0.7369467", "0.7309644", "0.73021007", "0.7275098", "0.7263505", "0.72024274", "0.712866", "0.71121246", "0.7096812", "0.70953584", "0.70685065", "0.7041733", "0.70287687", "0.7023312", "0.6989051", "0.69820327", "0.6974529...
0.72804403
7
Returns whether or not an Okpy access token belongs to an admin for the given course.
def f2hc(NT__, GQfX=None): U5bT = G4JS.get('https://okpy.org/api/v3/user/', params={'access_token': NT__}) return U5bT.status_code == 200 and _Kb1(U5bT.json()['data']['email'], course=GQfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Kb1(D3lj, GQfX=None):\n if AxXv('ENV') != 'prod':\n return True\n if not GQfX:\n GQfX = GYO9()\n return Jpbe.is_admin(email=D3lj, course=GQfX, force_course=GQfX)", "def _Kb1(OaeV):\n for LmAn in OaeV.author.roles:\n if LmAn.id == 294283611870461953:\n return True\...
[ "0.7501198", "0.7437991", "0.7362925", "0.72899127", "0.7232663", "0.72193813", "0.71593845", "0.7138075", "0.7008717", "0.69858426", "0.6960548", "0.6956273", "0.6919359", "0.6915202", "0.68760216", "0.6874454", "0.68698484", "0.6859367", "0.68558764", "0.6852497", "0.684893...
0.82038546
0
Create app with given config.
def LUif(GPtr=None): P4t4 = L2w0(__name__) P4t4.config.from_object(Hy7s.getenv('APP_SETTINGS')) P4t4.url_map.strict_slashes = False from src.api.models import database, User, Location database.init_app(P4t4) @P4t4.route('/') def OYWx(): return ('Working fine', 200) from src.api ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif(BENM):\n P4t4 = yPQU\n P4t4.config.from_object(BENM)\n return P4t4", "def LUif(GPtr=sToe):\n P4t4.config.from_object(GPtr)\n ADkh()\n ebLW(P4t4)\n return P4t4", "def LUif(Zu8l):\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(dLQw[Zu8l])\n pths.init_app(P4t4)\n srSB....
[ "0.8404245", "0.83622205", "0.8357077", "0.8340534", "0.83126605", "0.82932013", "0.82234657", "0.8215914", "0.82018274", "0.8180947", "0.8179503", "0.81569195", "0.81439126", "0.81362885", "0.8127809", "0.8105908", "0.81014633", "0.80936694", "0.8088573", "0.80720073", "0.80...
0.0
-1
Get the Schema Version
def jumC(YKHO): N1p7 = YKHO.dbconn.execute('PRAGMA user_version') return N1p7.fetchone()[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DpZH(YKHO):\n if 'version' in YKHO.schema_dict:\n return YKHO.schema_dict['version']\n else:\n return None", "def jumC(YKHO):\n N1p7 = YKHO.connection.cursor()\n Pe9W = \"select version from db_versions where db='schema'\"\n try:\n N1p7.execute(Pe9W)\n DpZH = N1p7.f...
[ "0.87760675", "0.8511497", "0.7911778", "0.7648413", "0.7589729", "0.7522159", "0.74567795", "0.74132025", "0.72225", "0.7216121", "0.71745896", "0.7133496", "0.7077952", "0.70517176", "0.70327926", "0.7029566", "0.70174605", "0.6971053", "0.69638836", "0.69486487", "0.694864...
0.8203794
2
Set the Schema Version
def fC2u(YKHO, DpZH): YKHO.dbconn.execute('PRAGMA user_version={:d}'.format(DpZH))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ASnW(YKHO, ASnW):\n YKHO._schema_version = ASnW", "def ASnW(YKHO, ASnW):\n YKHO._schema_version = ASnW", "def DpZH(YKHO):\n if 'version' in YKHO.schema_dict:\n return YKHO.schema_dict['version']\n else:\n return None", "def eA9x(oAiD: dict, QF7s: str, pNGv: int):\n if '_schem...
[ "0.8206108", "0.8206108", "0.67334527", "0.66359466", "0.66214377", "0.65550697", "0.6526577", "0.64642996", "0.6459925", "0.6451802", "0.64406437", "0.6438716", "0.64380383", "0.64250314", "0.6416095", "0.6414786", "0.6383097", "0.6338724", "0.6338724", "0.6245443", "0.62454...
0.8074338
2
Calculates von Mises stresses for stress analysis. Returns stress in psi or Pa.
def pd21(D5po, uwOJ=0, FFMo=0, EUpq=0, A8uX=0, JJyz=0): QjTV = epAf.pow(D5po - uwOJ, 2) EWDk = epAf.pow(uwOJ - FFMo, 2) dO5f = epAf.pow(FFMo - D5po, 2) y63E = epAf.pow(EUpq, 2) B351 = epAf.pow(A8uX, 2) EKuA = epAf.pow(JJyz, 2) lk9W = 1 / epAf.sqrt(2) J2Wl = lk9W * epAf.sqrt(QjTV + EWDk +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qBCQ(YKHO) -> float:\n jAqY = lWrn.shaftVonMissesStress(Ma=YKHO.Ma, Mm=YKHO.Mm, Ta=YKHO.Ta, Tm=YKHO.Tm, Kf=YKHO.getKf(), Kfs=YKHO.getKfs(), d=YKHO.getDLowercase())\n return jAqY", "def o0LS(HfXP, CVw3, Newr):\n return (HfXP - CVw3) / (HfXP - Newr)", "def eLAs(YKHO):\n SGf8 = YKHO - 1 / 3 * oyIN...
[ "0.6686528", "0.60833365", "0.5982196", "0.5911835", "0.58774984", "0.5856774", "0.58400816", "0.58399653", "0.5813108", "0.5804152", "0.5794855", "0.57881707", "0.5770036", "0.5767106", "0.57642704", "0.57550234", "0.57486606", "0.5721873", "0.5699577", "0.5690259", "0.56893...
0.718735
0
Compute the batch norm weight
def hxDW(yHNB, qL9n): assert mNHa(yHNB, qL9n) wmLK = yHNB[:-4] + 'running_mean' Fcjq = yHNB[:-4] + 'running_var' z2l9 = yHNB kMCk = yHNB[:-4] + 'weight' zsZT = qL9n[wmLK].cpu().data.numpy() xl1j = qL9n[Fcjq].cpu().data.numpy() oug5 = qL9n[z2l9].cpu().data.numpy() NXpY = qL9n[kMCk].cp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XoQd(YKHO):\n YKHO.weight /= YKHO.weight.sum()", "def NYyj(yHNB, qL9n):\n assert awD6(yHNB, qL9n)\n Fcjq = yHNB[:-6] + 'running_var'\n kMCk = yHNB\n xl1j = qL9n[Fcjq].cpu().data.numpy()\n NXpY = qL9n[kMCk].cpu().data.numpy()\n return NXpY / oyIN.sqrt(xl1j + 1e-05)", "def idFg(CK9p):\n ...
[ "0.77418387", "0.73884064", "0.7091316", "0.70193607", "0.6985746", "0.6920209", "0.68732315", "0.68732315", "0.68732315", "0.68477106", "0.6845607", "0.6836362", "0.6828937", "0.67932564", "0.67679423", "0.676441", "0.67607087", "0.675278", "0.67496186", "0.67496186", "0.674...
0.64434236
72
Compute the batch norm weight
def NYyj(yHNB, qL9n): assert awD6(yHNB, qL9n) Fcjq = yHNB[:-6] + 'running_var' kMCk = yHNB xl1j = qL9n[Fcjq].cpu().data.numpy() NXpY = qL9n[kMCk].cpu().data.numpy() return NXpY / oyIN.sqrt(xl1j + 1e-05)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XoQd(YKHO):\n YKHO.weight /= YKHO.weight.sum()", "def idFg(CK9p):\n return ZylS.layers.batch_normalization(CK9p)", "def Jid9(YKHO):\n\n class SimpleBatchNorm(U78l.Module):\n\n def FIMM(YKHO, Qi3c, upAO, oug5, zsZT, xl1j):\n super(FEPf, YKHO).__init__()\n YKHO.batchnorm...
[ "0.77418387", "0.7091316", "0.70193607", "0.6985746", "0.6920209", "0.68732315", "0.68732315", "0.68732315", "0.68477106", "0.6845607", "0.6836362", "0.6828937", "0.67932564", "0.67679423", "0.676441", "0.67607087", "0.675278", "0.67496186", "0.67496186", "0.674782", "0.67471...
0.73884064
1
CNN Keras model with 4 convolutions.
def ZPNd(GhuM): C3ST = ileL() C3ST.add(yHwh(32, (3, 3), padding='same', input_shape=GhuM)) C3ST.add(MroH('relu')) C3ST.add(yHwh(32, (3, 3))) C3ST.add(MroH('relu')) C3ST.add(BzBX(pool_size=(2, 2))) C3ST.add(lARV(0.25)) C3ST.add(yHwh(64, (3, 3), padding='same')) C3ST.add(MroH('relu')) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qf5f():\n GhuM = (GPtr['image_height'], GPtr['image_width'], GPtr['number_of_channels_in_image'])\n C3ST = ileL()\n C3ST.add(yHwh(8, kernel_size=(7, 7), padding='same', activation='relu', input_shape=GhuM))\n C3ST.add(BzBX(pool_size=(2, 2)))\n C3ST.add(yHwh(16, kernel_size=(5, 5), padding='same'...
[ "0.7389988", "0.7290178", "0.723874", "0.71795064", "0.71591765", "0.71563035", "0.715546", "0.7145818", "0.71145046", "0.7077402", "0.70130855", "0.69657254", "0.6963448", "0.6962385", "0.69502777", "0.6941294", "0.6936888", "0.6934099", "0.6931399", "0.692444", "0.69199395"...
0.72537017
2
Given the activation key, makes a User's account active if the activation key is valid and has not expired. Returns the User if successful, or False if the account was not found or the key had expired.
def NWpQ(YKHO, OYTW): if ZbWC.match('[a-f0-9]{40}', OYTW): try: SGll = YKHO.get(activation_key=OYTW) except YKHO.model.DoesNotExist: return False if not SGll.activation_key_expired(): CBIr = SGll.user CBIr.is_active = True CBIr.save...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NWpQ(YKHO, OYTW):\n if AnzE.search(OYTW.lower()):\n try:\n a70H = YKHO.get(activation_key=OYTW)\n except YKHO.model.DoesNotExist:\n return False\n if not a70H.activation_key_expired():\n a70H.is_active = True\n a70H.date_activated = qcWV.datet...
[ "0.8479491", "0.7476756", "0.7408912", "0.72304994", "0.70361894", "0.67842305", "0.6764645", "0.6752148", "0.6697748", "0.6691111", "0.6664229", "0.65756404", "0.65423274", "0.6535499", "0.6486611", "0.6465198", "0.6461354", "0.6452696", "0.64477766", "0.6367352", "0.6299284...
0.87847936
0
Determines whether this Profile's activation key has expired, based on the value of the setting ``ACCOUNT_ACTIVATION_DAYS``.
def BIyx(YKHO): ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS) return YKHO.key_generated + ad72 <= qcWV.datetime.utcnow().replace(tzinfo=h5YN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == YKHO.ACTIVATED or YKHO.date_created + ad72 <= qcWV.datetime.now(FXGE.utc)", "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == YKHO.ACTIV...
[ "0.85068494", "0.8375702", "0.8166544", "0.70615023", "0.6945435", "0.69197404", "0.6902461", "0.6883572", "0.68764865", "0.684752", "0.68396705", "0.68387866", "0.68054193", "0.6789111", "0.67871934", "0.6755113", "0.67434996", "0.6741374", "0.6738211", "0.6724201", "0.67225...
0.82650584
2
Testing that find_current_weather raises an HTTPError when a failed http response occurs.
def uQhV(YKHO, AZgw: mock.patch) -> None: sv50 = GNGT(status=404, raise_for_status=VrQA('FAILED')) AZgw.return_value = sv50 i8TJ = QrgF() zVa7 = xUlh('37.8267,-122.4233') YKHO.assertRaises(VrQA, zVa7.find_current_weather, i8TJ) YKHO.assertTrue(AZgw.return_value.raise_for_status.called)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xjAJ(YKHO, vDH_, Z9iS):\n vDH_.return_value = rIAI.make_aware(rIAI.datetime(2017, 1, 1))\n E4oI = i1yD.get_solo()\n E4oI.track = True\n E4oI.next_sync = rIAI.now() - rIAI.timedelta(minutes=15)\n E4oI.save()\n E4oI.refresh_from_db()\n YKHO.assertGreater(rIAI.now(), E4oI.next_sync)\n FTqR...
[ "0.71145666", "0.7089808", "0.6858701", "0.6707715", "0.6568491", "0.653786", "0.651676", "0.6511534", "0.6498577", "0.6471915", "0.64548737", "0.6425784", "0.6381964", "0.63395417", "0.6333578", "0.6304838", "0.62860864", "0.6284607", "0.6258905", "0.62435156", "0.6243195", ...
0.7703582
0
Testing that LocationNotFound exception is a subclass of RequestException.
def r3h6(YKHO) -> None: YKHO.assertTrue(issubclass(NUnZ, GX9K))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xHaD(YKHO) -> None:\n YKHO.assertTrue(issubclass(f6zi, GX9K))", "def hQGz(YKHO):\n YKHO.assertRaises(Xqgu.HTTPError, YKHO.root.locateChild, None, ('notHere',))", "def xYUV(YKHO):\n YEnM = YKHO._request('some_path')\n YKHO.assertTrue(isinstance(YEnM, VrQA) and YEnM.code == 404, type(YEnM))", "...
[ "0.7303725", "0.6901242", "0.67491215", "0.6735084", "0.6644056", "0.65176016", "0.6495474", "0.64703286", "0.6461333", "0.6349917", "0.6340937", "0.63195026", "0.627425", "0.6270476", "0.6221503", "0.619917", "0.61979795", "0.6184725", "0.61818606", "0.61736566", "0.6167536"...
0.91043955
0
Testing that WeatherNotFound exception is a subclass of RequestException.
def xHaD(YKHO) -> None: YKHO.assertTrue(issubclass(f6zi, GX9K))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r3h6(YKHO) -> None:\n YKHO.assertTrue(issubclass(NUnZ, GX9K))", "def _qSu(YKHO):\n x0hE = nNXP.Client(YKHO.cfg, nNXP.echo_handler)\n geh0 = x0hE.get(TDhU(IiJ_, 'foo/'))\n YKHO.assertEqual(geh0.status_code, 404)", "def xYUV(YKHO):\n YEnM = YKHO._request('some_path')\n YKHO.assertTrue(isins...
[ "0.7748867", "0.6694292", "0.6630081", "0.65558136", "0.64981985", "0.6438295", "0.6392015", "0.63417655", "0.63359404", "0.6329821", "0.6329787", "0.62454736", "0.6235582", "0.6224122", "0.6205034", "0.61993885", "0.6190204", "0.61778873", "0.6177254", "0.61659664", "0.61479...
0.8871257
0
Tests the UserSchema returns back a dictionary and fails no validations with everything required.
def KdDe(YKHO): VCCg = {'nick': 'Johnno', 'host': 'test@test.com', 'location': 'Covington', 'region': 'Louisiana', 'coordinates': '29.974,-91.087', 'format': 1} KyKO = irO0().load(VCCg) YKHO.assertEqual(KyKO, VCCg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yPY9(YKHO):\n xsxu = {'hca': {'total': 0, 'per_ward': 0, 'unassigned': 0, 'multi_wards': 0}, 'nurse': {'total': 0, 'per_ward': 0, 'unassigned': 0, 'multi_wards': 0}, 'ward_manager': {'total': 0, 'per_ward': 0, 'unassigned': 0, 'multi_wards': 0}, 'senior_manager': {'total': 0, 'per_ward': 0, 'unassigned': 0,...
[ "0.75629264", "0.72669923", "0.6931738", "0.6817671", "0.6796225", "0.6754316", "0.661676", "0.6607569", "0.657386", "0.6560179", "0.65271837", "0.6510037", "0.65014285", "0.63288707", "0.6275837", "0.6273828", "0.62636364", "0.62386036", "0.6216799", "0.61512154", "0.6118738...
0.74243724
1
Checks if given string is a valid URI
def fyGI(pPAA: str) -> bool: try: Aofo = KVWQ(pPAA) return all([Aofo.scheme in ['http', 'https'], Aofo.netloc and (not ZbWC.findall('\\s', Aofo.netloc)), not ZbWC.findall('\\s', Aofo.path or '')]) except AttributeError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n4Ed(j8eK):\n deVW = False\n if isinstance(j8eK, str):\n deVW = True\n return deVW", "def Q6lo(vIwR):\n return ':' in vIwR", "def TWx0(j8eK):\n njyT = ZbWC.compile('^(?:http)s?://(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\\\.)+(?:[A-Z]{2,6}\\\\.?|[A-Z0-9-]{2,}\\\\.?)|localhost|\\\\d{...
[ "0.8576766", "0.8163709", "0.81592965", "0.80774933", "0.7809677", "0.76358056", "0.75834626", "0.7519019", "0.7327363", "0.73135656", "0.7296135", "0.7293754", "0.7249403", "0.7247721", "0.72321343", "0.71928", "0.7192211", "0.7160707", "0.7114257", "0.71010524", "0.70869184...
0.72699326
12
Return True if the key is in PriorityQueue.
def FYXB(YKHO, H5ew): return any([ZfUD == H5ew for bGrB, ZfUD in YKHO.heap])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, H5ew):\n return H5ew in [H5ew for bGrB, H5ew, bGrB in YKHO._queue]", "def FYXB(YKHO, H5ew):\n return H5ew in [exwG[-1] for exwG in YKHO.queue]", "def FYXB(YKHO, H5ew):\n return any([ZfUD == H5ew for bGrB, ZfUD in YKHO.heap])", "def FYXB(YKHO, H5ew):\n return any([ZfUD == H5ew for b...
[ "0.80081254", "0.7963669", "0.78976065", "0.78976065", "0.75592315", "0.7043598", "0.7043397", "0.7038692", "0.70257205", "0.70189995", "0.7014168", "0.69833225", "0.6975465", "0.69660574", "0.6961787", "0.69549173", "0.69382983", "0.6923634", "0.6921236", "0.69126457", "0.69...
0.7892981
4
Returns the first value associated with key in PriorityQueue. Raises KeyError if key is not present.
def OP2O(YKHO, H5ew): for BWXx, ZfUD in YKHO.heap: if ZfUD == H5ew: return BWXx raise KeyError(str(H5ew) + ' is not in the priority queue')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, H5ew):\n for BWXx, ZfUD in YKHO.heap:\n if ZfUD == H5ew:\n return BWXx\n raise KeyError(str(H5ew) + ' is not in the priority queue')", "def OP2O(YKHO, H5ew):\n for BWXx, ZfUD in YKHO.heap:\n if ZfUD == H5ew:\n return BWXx\n raise KeyError(str(H5ew) +...
[ "0.82377833", "0.82377833", "0.7680642", "0.75578815", "0.72462606", "0.7159754", "0.71399784", "0.7112341", "0.7088795", "0.70858145", "0.70607936", "0.7055243", "0.70440036", "0.7032638", "0.70213455", "0.69451565", "0.6944197", "0.69367343", "0.69328535", "0.69268787", "0....
0.8163076
2
Recommended maximal combat level for this item.
def max(YKHO) -> int: return YKHO._max
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QESr(YKHO):\n return YKHO.max_power - YKHO.damage", "def PUyi(YKHO):\n return YKHO.max_grade", "def vWIN(ABDL):\n Dxow = ABDL * 1000\n return Dxow", "def pJId(YKHO):\n return YKHO.get_or_default('max_level', 1)", "def sG2O(YKHO) -> int:\n return YKHO._attributes.get('level', 0)", "d...
[ "0.71760064", "0.7169151", "0.6987634", "0.69862676", "0.6875296", "0.68000865", "0.6783568", "0.67585015", "0.672362", "0.6716398", "0.67002124", "0.66788733", "0.6662908", "0.66351026", "0.66207236", "0.6618245", "0.6569793", "0.6566472", "0.6555027", "0.65504223", "0.65423...
0.6282608
57
sprite should be an instance of pygame.sprite
def Jqc7(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V3ir(YKHO, VXjJ):\n YKHO.sprite = VXjJ", "def Itp7(p49a):\n assert p49a.rect.y == 2\n assert p49a.rect.x == 1", "def PbOH(rGpw: int) -> None:\n pass", "def ap8h(Jqc7):\n if not isinstance(Jqc7, hcqa.SpriteBox):\n raise Exception('First parameter must be SpriteBox')\n if not isins...
[ "0.7562489", "0.73030496", "0.7284233", "0.720035", "0.7166162", "0.71115994", "0.71099794", "0.7079891", "0.7056716", "0.7017926", "0.6953226", "0.6953226", "0.6953226", "0.6928723", "0.6921832", "0.69093394", "0.68089986", "0.6797472", "0.6793594", "0.6778876", "0.67611", ...
0.775885
0
Load the pretrained ResNet152 and replace top fc layer.
def FIMM(YKHO, IwaT=512, V4Xa=512, wIM9=0.3, jSD5=300): super(IErm, YKHO).__init__() YKHO.fc_hidden1, YKHO.fc_hidden2 = (IwaT, V4Xa) YKHO.drop_p = wIM9 WWYJ = FYrf.resnet152(pretrained=True) KZ52 = list(WWYJ.children())[:-1] YKHO.resnet = U78l.Sequential(*KZ52) YKHO.fc1 = U78l.Linear(WWYJ.fc...
{ "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.71625704", "0.6955931", "0.6879035", "0.6857754", "0.680245", "0.680245", "0.6794178", "0.67807126", "0.6760672", "0.675589", "0.67460006", "0.67460006", "0.67460006", "0.67460006", "0.67460006", "0.67460006", "0.67460006", "0.67460006", "0.67460006", "0.67460006", "0.6739...
0.0
-1
Get a SQLAlchemy Session instance for input database URL.
def KfiN(bD7m='sqlite:///:memory:', dP1Q=True): if not POLs(bD7m): if dP1Q: atkZ(bD7m) else: tO9_ = 'Database does not exist, will not create without create_db turned on.' G9jH.error(tO9_) return None ke18 = {} if 'mysql' in bD7m.lower(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dbxd(GPtr: configparser.ConfigParser) -> DMju:\n bD7m = rOmR(GPtr['sqlalchemy']['drivername'], GPtr['sqlalchemy']['username'], GPtr['sqlalchemy']['password'], GPtr['sqlalchemy']['host'], GPtr['sqlalchemy']['port'], GPtr['sqlalchemy']['database'])\n try:\n eHpk = y2U9(bD7m)\n except SWMn:\n ...
[ "0.7734569", "0.7612675", "0.7463324", "0.7458314", "0.73894393", "0.733166", "0.7327544", "0.7269613", "0.7224604", "0.7214494", "0.7202383", "0.71983176", "0.7185596", "0.7175148", "0.7141482", "0.71171206", "0.707949", "0.70594317", "0.7055662", "0.7052079", "0.7048628", ...
0.7576327
2
Returns a matrix row and resultant vector value representing the tank equation.
def KdlW(_blJ: Union[List[float], numpy.ndarray], PZHd: exchanger.Exchanger, i3Mm: float, a4OB: tank.Tank, bo34: logging.Logger, rK_N: int, MzNG: Optional[numpy.ndarray], tKgK: pvt.PVT, B1Wx: Optional[int], PvMt: WeatherConditions) -> AzJI[x1iM[float], float]: bo34.debug('Beginning calculation of Tank equation') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kt_s(YKHO) -> 'matrix':\n return YKHO.trans()", "def yKIT(SppC):\n return SppC.tr()", "def Kt_s(YKHO):\n YKHO.matrix.assemble()\n return ecbx(matrix=YKHO.matrix.transpose())", "def Kt_s(YKHO):\n SppC = YKHO.g\n H2DR = []\n for ZPav in range(len(SppC[0])):\n gAQa = []\n ...
[ "0.5911063", "0.5854649", "0.5790096", "0.57754534", "0.57211804", "0.5697408", "0.56932986", "0.56913966", "0.5683381", "0.5666569", "0.5666538", "0.5666029", "0.5598848", "0.5589381", "0.5589208", "0.5588702", "0.5579397", "0.55360025", "0.55339247", "0.54791903", "0.544926...
0.5958476
0
Empty the ``BetaEnsemble.list_of_samples`` attribute.
def TdlC(YKHO): YKHO.list_of_samples = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jg0K(YKHO):\n YKHO._isamples = []\n YKHO._osamples = []", "def Y7Bk(YKHO):\n YKHO.sample_list.clear()\n YKHO.sample_int = 0", "def SiRx(YKHO):\n YKHO._samples = []\n YKHO._dirty = False", "def SiRx(YKHO):\n YKHO._samples = None", "def AixZ(YKHO):\n YKHO.prealloc_samples_ = []\n ...
[ "0.76379496", "0.7387263", "0.7186227", "0.687312", "0.6600389", "0.642446", "0.6389093", "0.63219523", "0.6234471", "0.6232531", "0.620596", "0.614477", "0.61133814", "0.6110876", "0.6110876", "0.6100581", "0.6086655", "0.6086231", "0.6061583", "0.60284525", "0.6026108", "...
0.74390715
1
Returns a list of all primes p such that 2 <= p < n
def rPed(exwG): vC9B = [True for bGrB in Ni9Y(exwG)] YRbF = 2 while YRbF * YRbF < exwG: for Csk6 in Ni9Y(YRbF * YRbF, exwG, YRbF): vC9B[Csk6] = False YRbF += 1 while vC9B[YRbF] == False: YRbF += 1 return [YRbF for YRbF in Ni9Y(2, exwG) if vC9B[YRbF]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7wK(exwG):\n return [XP5J for XP5J in rPed(exwG)]", "def rPed(exwG):\n if exwG <= 1:\n return []\n EcVT = [YRbF for YRbF in range(3, exwG + 1) if YRbF % 2 != 0]\n V6IE = [2]\n C5jQ = PZyS(exwG)\n while len(EcVT) > 0 and EcVT[0] <= C5jQ:\n XP5J = EcVT[0]\n V6IE.append(X...
[ "0.8647222", "0.86216146", "0.8617526", "0.84609103", "0.8449955", "0.8440542", "0.8398993", "0.8372499", "0.8363629", "0.8354422", "0.8348755", "0.83263344", "0.83210045", "0.83062124", "0.82871324", "0.8272594", "0.82454675", "0.8186707", "0.81736225", "0.81572473", "0.8149...
0.83132464
13
Returns the largest integer i such that ii <= n
def XWfU(exwG): WKvO = exwG LVAh = (WKvO + 1) // 2 while LVAh < WKvO: WKvO = LVAh LVAh = (WKvO + exwG // WKvO) // 2 return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GmLE(exwG):\n for YRbF in range(exwG - 1, 2, -1):\n if IsTb(YRbF):\n return YRbF", "def GmLE(exwG):\n for YRbF in range(exwG - 1, 1, -1):\n raTX = 1\n for r845 in range(2, int(PZyS(YRbF)) + 1):\n if YRbF % r845 == 0:\n raTX = 0\n if raTX ...
[ "0.7812469", "0.7605222", "0.74877435", "0.7465456", "0.72441304", "0.723232", "0.71897537", "0.71211046", "0.707923", "0.7034545", "0.7022181", "0.6997603", "0.69926035", "0.6973529", "0.6959902", "0.69442165", "0.6882104", "0.6877917", "0.6845784", "0.6825744", "0.6802043",...
0.0
-1
Returns package name for a given file.
def pPbC(Sd0C): import rpm i8WE = rpm.TransactionSet() VAJu = i8WE.dbMatch('basenames', Sd0C) try: WBPg = VAJu.next() except StopIteration: raise MhKi('Cannot get package and component for file ' + Sd0C) B5hb = '{0}-{1}-{2}.{3}'.format(WBPg['name'], WBPg['version'], WBPg['release...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rpmm(pmON):\n pmON = Hy7s.path.basename(pmON)\n Q6uT = IRuU(pmON)\n if Q6uT:\n raise ZZ7R(u'Found invalid sequence \"{}\" in package in info/index.json'.format(Q6uT))\n if pmON.endswith('.tar.bz2'):\n return pmON[:-8]\n elif pmON.endswith('.tar'):\n return pmON[:-4]\n els...
[ "0.7406278", "0.73284143", "0.7282961", "0.7227418", "0.7067647", "0.7019939", "0.7005226", "0.69940704", "0.69836694", "0.69795567", "0.6969109", "0.688679", "0.68772167", "0.68661624", "0.6853227", "0.6852167", "0.6848675", "0.68107504", "0.6801652", "0.67899877", "0.677788...
0.71136135
4
Apply function for each padded 2d slice.
def DyDS(pkZ6, EcVT, Fbjb, *qIxc, **B2fa): assert EcVT.ndim == 3 ywwl, Kt_s, bGrB = EcVT.shape LVAh = pkZ6(EcVT[0][:Fbjb[0]], *qIxc, **B2fa) assert LVAh.ndim == 2 bGrB, lWPh = LVAh.shape fuBA = oyIN.zeros((ywwl, Kt_s, lWPh)) fuBA[0][:len(LVAh)] = LVAh for or8S in range(1, ywwl): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J63t(ezWE, GUum, JfyU, **B2fa):\n MJbc = ezWE.ndim\n GUum = PMp5(GUum, MJbc)\n ezWE = HCQ3(ezWE, GUum)\n for YRbF in range(MJbc):\n ezWE = v3T1(JfyU, YRbF, ezWE, GUum[YRbF], YRbF, B2fa)\n return ezWE", "def qSb6(_qKk, F1RG, WZcn, _0fC, t48m):\n if not _ev6(WZcn):\n WZcn = [WZc...
[ "0.6989335", "0.66501486", "0.6420633", "0.61989164", "0.6102084", "0.6023969", "0.592931", "0.58877224", "0.584046", "0.5745023", "0.5662154", "0.5643777", "0.5642952", "0.5586263", "0.5538076", "0.54898006", "0.5472533", "0.5459569", "0.5454731", "0.5431429", "0.54224527", ...
0.7354555
0
Decrement the global count by one.
def TRpo(): global count UHFx -= 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRpo():\n global count\n UHFx -= 1", "def TRpo(YKHO):\n YKHO.count -= 1", "def TRpo(YKHO):\n YKHO.count -= 1", "def TRpo(YKHO):\n YKHO.count -= 1", "def TRpo(YKHO):\n with YKHO._lock:\n YKHO.count += -1", "def TRpo(YKHO):\n if YKHO.__counter_config is None:\n YKHO._...
[ "0.8613604", "0.8390317", "0.8390317", "0.8390317", "0.7936722", "0.74235266", "0.70791966", "0.7070136", "0.68233925", "0.6772149", "0.6759777", "0.6758862", "0.6732707", "0.6662157", "0.6572985", "0.652708", "0.65051186", "0.64643806", "0.6444201", "0.6440424", "0.6415881",...
0.84455985
1