query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Return combined image from a grid of identicallysized images. images is a 2d list of Image objects. The images should be already sorted/arranged when provided to this function.
def q4jY(Yw_3: list) -> hnIv: nW6T = Yw_3[0][0].width GdnS = Yw_3[0][0].height AB01 = (nW6T * len(Yw_3[0]), GdnS * len(Yw_3)) g54I = hnIv.new('RGB', AB01) for lDJc, rdlD in enumerate(Yw_3): for LrJ9, LNo8 in enumerate(rdlD): Rci7 = (LrJ9 * nW6T, lDJc * GdnS) g54I.past...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q4jY(YKHO, Yw_3):\n OcHH = YKHO.smallwidth * u905\n tE9m = YKHO.smallheight * int(epAf.ceil(len(Yw_3) / float(u905)))\n YKHO.combined = jbYn.CreateImage((OcHH, tE9m), jbYn.IPL_DEPTH_8U, 3)\n o9av = jbYn.InitFont(jbYn.CV_FONT_HERSHEY_SIMPLEX, 0.3, 0.3)\n for YRbF, (LNo8, mWFP) in enumerate(Yw_3):...
[ "0.6865381", "0.6717655", "0.66888106", "0.6687235", "0.6591527", "0.6562839", "0.6547032", "0.65072024", "0.6473973", "0.6473638", "0.641171", "0.64044696", "0.6384683", "0.632431", "0.62956625", "0.6291608", "0.6274095", "0.623594", "0.6214906", "0.61945647", "0.617822", ...
0.74487853
0
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses.
def kblH(YKHO, *qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_(YKHO):\n print('Subclass and over-ride this method.')", "def FIMM(YKHO):\n super().__init__(None)", "def FIMM(YKHO):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2...
[ "0.797997", "0.7120216", "0.7114441", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0.7092132", "0...
0.0
-1
Keeps Highest x in string
async def keepHighest(fF1T: list, VTwl: int): return sorted(fF1T)[-VTwl:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vxzq(jzdc):\n s__V = sorted(jzdc, key=Ls2A(SymK), reverse=True)\n return ''.join(s__V)", "def k10y(YKHO, WKvO):\n return FYtx(YKHO.get_bigrams()).most_common(WKvO)", "def dRwi(nPrm):\n O_7m = sorted(nPrm, reverse=True)\n return ''.join(O_7m)", "def qwp8(hAZr):\n NiVA = str()\n wyDD =...
[ "0.6520244", "0.641432", "0.6357789", "0.6345587", "0.63013965", "0.6271477", "0.6218947", "0.6218157", "0.620896", "0.61999226", "0.61687326", "0.6150659", "0.6121779", "0.61197233", "0.6050291", "0.6050291", "0.6050291", "0.6025413", "0.6021111", "0.59733427", "0.5928186", ...
0.5513541
83
Drops Lowest x from string
async def dropLowest(fF1T: list, AG4s: int): return sorted(fF1T)[AG4s:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TP4s(BWXx, zHCd):\n _qu0 = BWXx.find(zHCd)\n if _qu0 >= 0:\n return BWXx[:_qu0]\n else:\n return BWXx", "def aXAT(KCHu, WKvO):\n if len(KCHu) < WKvO:\n return KCHu\n else:\n return KCHu[-WKvO:]", "def Cs4T(BWXx, d7pR):\n return BWXx.split(d7pR)[0]", "def LMg6...
[ "0.6261159", "0.60754514", "0.6063144", "0.6059412", "0.60238355", "0.596348", "0.5957277", "0.59092456", "0.5748223", "0.56853855", "0.5667448", "0.56451076", "0.5633893", "0.55993575", "0.5582921", "0.5555889", "0.5545537", "0.5545537", "0.55328786", "0.5531354", "0.5526971...
0.5257828
59
Swap the value and return
def b3SJ(YKHO, BWXx): if len(YKHO.dataframe): ulrI = YKHO.dataframe['from'].str.lower() == BWXx.lower() kUBT = YKHO.dataframe.loc[ulrI, 'to'] if len(kUBT): LXG0 = kUBT.values[0] YKHO.logger.info('Overriden:{}'.format(LXG0)) return LXG0 return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b3SJ(YKHO, Qj8D):\n YKHO.__lock.acquire()\n GJB6 = YKHO.__value\n YKHO.__value = Qj8D\n YKHO.__condition.notify_all()\n YKHO.__lock.release()\n return GJB6", "def b3SJ(jzdc, Fg_i):\n jbXL = jzdc\n jzdc = Fg_i\n Fg_i = jbXL\n return (jzdc, Fg_i)", "def zh_p(YKHO, Zohj):\n pa...
[ "0.7265786", "0.71739", "0.708047", "0.7070096", "0.6953286", "0.6858006", "0.6782863", "0.6776658", "0.67204124", "0.6716168", "0.6699698", "0.66894704", "0.6684739", "0.66590834", "0.66564053", "0.664768", "0.6617846", "0.6560379", "0.654715", "0.6540561", "0.6519951", "0...
0.0
-1
Return the LIMS id; obtained from the URI.
def id(YKHO): SQ3m = NoPH(YKHO.uri) return SQ3m.path.split('/')[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO) -> str:\n return YKHO.uri.split('#')[1]", "def sT_0(j8eK):\n return j8eK.split(':')[-1]", "def UVlm(j8eK):\n b_VF = j8eK.split('/')\n id = b_VF[len(b_VF) - 1].lower()\n if id == '':\n id = b_VF[len(b_VF) - 2].lower()\n if not iMyf(id):\n raise Exception('not a valid...
[ "0.7327611", "0.7311165", "0.72196454", "0.715424", "0.7062237", "0.68551344", "0.68551344", "0.68305403", "0.6743657", "0.67208564", "0.6504368", "0.6496457", "0.64476895", "0.6425601", "0.6416136", "0.6397236", "0.63966537", "0.63760495", "0.6291241", "0.628521", "0.6265756...
0.72688574
2
The container where the artifact is located, or None
def zGKt(YKHO): try: return YKHO.location[0] except: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGKt(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'container')", "def zGKt(YKHO) -> h8nf[qe4Y.Input['ResourceDeploymentScriptPowerShellContainerArgs']]:\n return qe4Y.get(YKHO, 'container')", "def zGKt(YKHO) -> h8nf[qe4Y.Input['ResourceDeploymentScriptPowerShellContainerArgs']]:\n return qe4Y.get(Y...
[ "0.7615458", "0.714041", "0.714041", "0.7067594", "0.7067594", "0.7061416", "0.70425767", "0.6897167", "0.6784244", "0.67492753", "0.6731841", "0.6723957", "0.6723957", "0.6719012", "0.6719012", "0.6719012", "0.6637875", "0.6539388", "0.65290225", "0.6493", "0.6486518", "0....
0.7582842
1
Create a new placement for a new step. This method also modifies the selected containers with the provided output container. It is meant to be used with a newly created step that does not have a placement yet.
def UR8Y(YKHO, y2xx, xj7v): YKHO.placements = YGtt(YKHO.lims, uri=YKHO.uri + '/placements') YKHO.placements.selected_containers = y2xx YKHO.placements.placement_list = xj7v YKHO.placements.root = YKHO.placements.post()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V56H(KOXx=None, j9fW=None, azoT=None):\n pass", "def qHvV(YKHO, _WNW=W10W):\n QAE8 = YKHO.lims.container_types.get_by_name(_WNW)\n if not QAE8:\n raise Exception(\"Container type '%s' can not be found. Please check your configuration.\" % _WNW)\n if not QAE8.is_tube:\n raise Excepti...
[ "0.5945805", "0.58903164", "0.54815716", "0.5380378", "0.531898", "0.5288884", "0.5218845", "0.5209184", "0.5208363", "0.5153008", "0.51253825", "0.51113033", "0.5091123", "0.50733876", "0.5001335", "0.49629155", "0.49314094", "0.49200365", "0.49136913", "0.4911779", "0.49022...
0.6855319
0
Flattens cubic coordinates or 2d skew coordinates into 2d orthogonal coordinates on the complex plane. >>> x = np.arange(5) >>> coords = np.vstack((x,np.zeros(5),x)).T
def QQzU(jNOo): WKvO = jNOo[..., 0] + jNOo[..., 1] / 2 LVAh = jNOo[..., 1] * oyIN.sqrt(3) / 2 return oyIN.stack([WKvO, LVAh], axis=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CriV(WKvO):\n exwG, Z9rn, MKlR, yzQ0 = WKvO.shape\n return WKvO.reshape((exwG * Z9rn, 1, MKlR, yzQ0), order='C')", "def cmlA(LTIa):\n P6bq = LTIa[:, 0]\n Ty9i = LTIa[:, 1]\n yzQ0 = LTIa[:, 2]\n hLRM = (1 / 2, 3 ** 0.5 / 6, 0)\n Jw7X = -P6bq / 2 + Ty9i / 2\n eUWA = -(3 ** 0.5 / 6) * P6...
[ "0.6008519", "0.58279043", "0.5825773", "0.57903665", "0.5747501", "0.5723826", "0.5707939", "0.56467795", "0.5636373", "0.56245047", "0.5597949", "0.5594695", "0.55529153", "0.5536777", "0.5516224", "0.54944277", "0.54830843", "0.54817796", "0.54776394", "0.5468557", "0.5443...
0.58804697
1
Initialization for quad tiling
def Z2ms(YKHO): YKHO.default_proj = lambda WKvO: WKvO[..., :2] return oyIN.array([[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0]], dtype=int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, DNhg, zNig, _Brj):\n YKHO._root = o8d_(DNhg, zNig, _Brj, None)", "def _2_z(YKHO, *float, **B2fa):\n ...", "def FIMM(YKHO, DNhg, zNig, _Brj, _AKB=None):\n YKHO._left_bottom = DNhg\n YKHO._size = zNig\n YKHO._halve_size = zNig / 2\n YKHO._max_boddies = _Brj\n YKHO._leaf = True...
[ "0.6692249", "0.6403961", "0.627584", "0.6103212", "0.6093441", "0.60920686", "0.60277677", "0.5996649", "0.596821", "0.59520906", "0.59497726", "0.593866", "0.59302497", "0.58840156", "0.5875101", "0.58504224", "0.5841583", "0.58362263", "0.5824922", "0.5816533", "0.57399505...
0.0
-1
A student should not be able to delete a classroom.
def Uvp8(YKHO): JRtB = gsGC() pdWF = Jl3c(playlist=JRtB.playlist, permissions__can_update=True) geh0 = YKHO.client.delete(f'/api/classrooms/{JRtB.id}/', HTTP_AUTHORIZATION=f'Bearer {pdWF}') YKHO.assertEqual(geh0.status_code, 403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lyy4(YKHO):\n JRtB = gsGC()\n pdWF = vu4X(playlist=JRtB.playlist)\n geh0 = YKHO.client.delete(f'/api/classrooms/{JRtB.id}/', HTTP_AUTHORIZATION=f'Bearer {pdWF}')\n YKHO.assertEqual(geh0.status_code, 403)", "def WMsv(YKHO):\n bD7m = gxEw('institute-course-students-detail', args=['IC', 42, '1000...
[ "0.7223789", "0.7014946", "0.6606013", "0.65460575", "0.6510002", "0.65066326", "0.63820773", "0.6375266", "0.6364041", "0.6335742", "0.6325459", "0.6291149", "0.6288313", "0.6238549", "0.62261176", "0.6225331", "0.61944103", "0.6171787", "0.6169758", "0.61644477", "0.6105537...
0.76924264
0
An instructor without playlist token should not be able to delete a classroom.
def Lyy4(YKHO): JRtB = gsGC() pdWF = vu4X(playlist=JRtB.playlist) geh0 = YKHO.client.delete(f'/api/classrooms/{JRtB.id}/', HTTP_AUTHORIZATION=f'Bearer {pdWF}') YKHO.assertEqual(geh0.status_code, 403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w9f_(YKHO):\n DKxf = LdX7(role=YzoW)\n JRtB = gsGC(playlist=DKxf.playlist)\n pdWF = hHdm(user=DKxf.user)\n YKHO.assertEqual(xS7U.objects.count(), 1)\n geh0 = YKHO.client.delete(f'/api/classrooms/{JRtB.id}/', {'playlist': str(DKxf.playlist.id)}, HTTP_AUTHORIZATION=f'Bearer {pdWF}', content_type='...
[ "0.7371902", "0.71902215", "0.6752028", "0.67062056", "0.6544071", "0.6456977", "0.6452843", "0.6396384", "0.6346344", "0.6330725", "0.63188773", "0.6232649", "0.6224711", "0.62160033", "0.62067324", "0.62049896", "0.61779", "0.6141878", "0.6105112", "0.6093499", "0.60832", ...
0.8236405
0
Validate email. If invalid, return a string error message.
def cxgF(YKHO, zb3C, D3lj, p9bx): try: O0B5.objects.db_manager(p9bx).get(client=zb3C, email=D3lj) except O0B5.DoesNotExist: pass else: return 'Error: That email is already taken.' if not D3lj: return 'Email cannot be blank.' try: YKHO.email_field.clean(D3lj, N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzCw(YKHO, D3lj: str) -> str:\n oerr = x0PB('EMAIL_VALIDATOR_ARGS') or {}\n deVW = qgkF.validate_email(D3lj, **oerr)\n return deVW.email", "def Bt7w(D3lj):\n P1dF = None\n if not D3lj:\n P1dF = 'Email cant be left blank'\n elif not ZbWC.search('[^@]+@[^@]+\\\\.[^@]+', D3lj):\n ...
[ "0.80695075", "0.78555197", "0.7778547", "0.74475455", "0.7436834", "0.74006706", "0.73796177", "0.7360004", "0.73407644", "0.73250866", "0.73244435", "0.7291361", "0.7285113", "0.7285113", "0.72831273", "0.7277182", "0.7192101", "0.71837884", "0.7175052", "0.71739304", "0.71...
0.76544946
3
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, S7Az): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Determines whether this list is empty or not.
def FBfn(YKHO): return YKHO._encode_invoke(hgQq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return YKHO._list == []", "def FBfn(YKHO):\n return YKHO.list.is_empty()", "def FBfn(YKHO):\n return YKHO.list.is_empty()", "def FBfn(YKHO):\n return YKHO.list.is_empty()", "def FBfn(YKHO):\n return len(YKHO.list) == 0", "def FBfn(YKHO):\n return len(YKHO.list) == 0", ...
[ "0.9146922", "0.9140477", "0.9140477", "0.91140103", "0.9112398", "0.9112398", "0.9112398", "0.9076452", "0.90665805", "0.90381926", "0.89165354", "0.8915739", "0.8904589", "0.8879859", "0.8873772", "0.8862724", "0.8859982", "0.88544863", "0.8844913", "0.88394517", "0.8836218...
0.0
-1
Returns the number of elements in this list.
def zNig(YKHO): return YKHO._encode_invoke(_nIw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfF0(YKHO):\n u54L = 0\n for F6AI in YKHO.tl:\n u54L += 1\n return u54L", "def zNig(YKHO):\n vIOz = len(YKHO._list)\n return vIOz", "def szAg(YKHO) -> int:\n zNig = 0\n for Csk6 in YKHO._list:\n zNig += len(Csk6)\n return zNig", "def zNig(YKHO):\n return len(YKHO....
[ "0.8499324", "0.83862334", "0.8324025", "0.83011305", "0.8240415", "0.82258844", "0.8206517", "0.81913096", "0.81913096", "0.81913096", "0.8187793", "0.8185029", "0.81422037", "0.8138327", "0.81157196", "0.81056845", "0.8090484", "0.8056463", "0.80305517", "0.80243295", "0.80...
0.0
-1
One large rectangle for the entire grid border, with all the cells inside
def Gxha(YKHO, uZx2=None): Hzcr() Wmuh(3) Cj1R(0) if uZx2: print(uZx2) LGJQ(*uZx2) else: SrxZ() mawX(YKHO.grid_nw_x, YKHO.grid_nw_y, YKHO.width, YKHO.height) nsIg()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lm0U(g_NO):\n usx6 = 28\n WfCS = 49\n MuIv = 20\n MVIL = 10\n for jzdc in range(usx6):\n nxyw = jzdc * MuIv + MVIL\n si3g = jzdc * MuIv + MVIL + MuIv\n for Fg_i in range(WfCS):\n nJ9F = Fg_i * MuIv + MVIL\n o4D3 = Fg_i * MuIv + MVIL + MuIv\n ...
[ "0.73015976", "0.7055917", "0.6964069", "0.695151", "0.6925871", "0.6845317", "0.6802987", "0.6769292", "0.67595977", "0.6734791", "0.6731087", "0.6689001", "0.66865635", "0.6655891", "0.6637352", "0.6634863", "0.6621974", "0.6619608", "0.6596386", "0.659227", "0.65883565", ...
0.6355942
50
Close the connection of the module. Must include ``module.disconnect()`` at the end of the code so that module can close connection properly.
def f06n(YKHO): YKHO.send(YKHO.p2m.set_type(0).set_command(16).set_data([]).encode()) ITS7.sleep(1) if YKHO.debug: print('[*] Disconnecting...') YKHO.__stop_thread = True ITS7.sleep(1) YKHO.ser.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n o6LD(YKHO.dev_id)\n wNOv(YKHO.dev_id)", "def DDI8(YKHO):\n YKHO._conn.disconnect()", "def DDI8(YKHO):\n YKHO._conn.disconnect()", "def DDI8(YKHO):\n YKHO._connection.disconnect()\n YKHO._connected = False", "def DDI8(YKHO) -> None:\n if YKHO.conn:\n RKD7.debug(...
[ "0.7542526", "0.7433105", "0.7433105", "0.73677564", "0.73254395", "0.7318203", "0.72897214", "0.72793597", "0.72756886", "0.7264786", "0.7244947", "0.720589", "0.72007143", "0.7179575", "0.7156973", "0.71483743", "0.7142043", "0.7139051", "0.7139051", "0.7138649", "0.7123328...
0.0
-1
Get ID of the connected module.
def unpH(YKHO): oUZx, id = YKHO._manual_send_receive(YKHO.p2m.set_type(0).set_command(129).set_data([]).encode(), YKHO.id_len + 6) return id[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EQ4g(YKHO) -> str:\n return f'{YKHO.module_name}:{YKHO.chassis_number()}-{YKHO.slot_number()}'", "def KWhP(YKHO):\n return YKHO.__connectedmodule", "def kPh3(YKHO):\n raise NotImplementedError", "def yR_P(YKHO):\n return YKHO._detid[0]", "def unpH(YKHO):\n return YKHO.server.get_id()", ...
[ "0.7245473", "0.7177425", "0.70156115", "0.6953186", "0.6843656", "0.6807302", "0.67814684", "0.6709964", "0.6604247", "0.659785", "0.6546182", "0.6546182", "0.65108865", "0.6502037", "0.6500705", "0.6472419", "0.64579064", "0.64408326", "0.6439354", "0.6439354", "0.6439354",...
0.6620407
8
Remove from every data point the average for the corresponding row
def kkpA(YKHO): YKHO.dataMatrix = sciX(YKHO.dataMatrix, 'csr') cG_H = oyIN.diff(YKHO.dataMatrix.indptr) pdfy = cG_H > 0 Y2OV = oyIN.asarray(YKHO.dataMatrix.sum(axis=1)).ravel() Nkua = oyIN.zeros_like(Y2OV) Nkua[pdfy] = Y2OV[pdfy] / cG_H[pdfy] NUEI = 0 QZHG = 0 L4h2 = 1000 while Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KTkq(nPrm):\n EcVT = oyIN.array(nPrm)\n ZHfW = EcVT != EcVT\n for fvDH in range(EcVT.shape[1]):\n EcVT[ZHfW[:, fvDH], fvDH] = oyIN.mean(EcVT[~ZHfW[:, fvDH], fvDH])\n return EcVT", "def PSaa(YKHO, XLMv=-1, PJWX=-1):\n if PJWX == -1:\n PJWX = YKHO.verbose\n S8vG = oyIN.mean(YKHO...
[ "0.66661483", "0.66547567", "0.6583067", "0.657509", "0.6485383", "0.6476048", "0.64702964", "0.63586795", "0.6266739", "0.6247121", "0.6244633", "0.62271297", "0.6223638", "0.6215707", "0.6215707", "0.61947155", "0.61823356", "0.6176868", "0.61244625", "0.6122209", "0.611154...
0.0
-1
Remove from every data point the average for the corresponding column
def cXEz(YKHO): YKHO.dataMatrix = sciX(YKHO.dataMatrix, 'csc') db4o = oyIN.diff(YKHO.dataMatrix.indptr) j3ol = db4o > 0 DUmT = oyIN.asarray(YKHO.dataMatrix.sum(axis=0)).ravel() O4hT = oyIN.zeros_like(DUmT) O4hT[j3ol] = DUmT[j3ol] / db4o[j3ol] xJw5 = 0 KTXm = 0 L4h2 = 1000 while K...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KTkq(nPrm):\n EcVT = oyIN.array(nPrm)\n ZHfW = EcVT != EcVT\n for fvDH in range(EcVT.shape[1]):\n EcVT[ZHfW[:, fvDH], fvDH] = oyIN.mean(EcVT[~ZHfW[:, fvDH], fvDH])\n return EcVT", "def ilNo(YKHO, AAHb):\n WfCS = YKHO.get_column(AAHb, False)\n S8vG = sum(WfCS) / len(WfCS)\n d6pt = ...
[ "0.6813195", "0.6745223", "0.6643336", "0.6636565", "0.66058373", "0.6598245", "0.65525216", "0.65233815", "0.64614844", "0.6457025", "0.6419396", "0.63819855", "0.63211584", "0.63157046", "0.622548", "0.62036294", "0.61713564", "0.61454535", "0.6123467", "0.6094026", "0.6089...
0.0
-1
Generates a name file using the first and last day from the dataset It is assumed that ldays is the list of training days from the configuration file
def Qpw0(VLAd): XP5J = [] for lO87, x0eS, jhxW, cePr in VLAd: XP5J.extend(MlC3(lO87, x0eS, jhxW, cePr)) return XP5J[0] + '-' + XP5J[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pcWg():\n JRYC = qcWV.now()\n yKcO = JRYC - fCoM(days=JRYC.weekday())\n Os4s = yKcO + fCoM(days=6)\n return _R20.FILENAME_MASK.format(yKcO.strftime('%Y%m%d'), Os4s.strftime('%Y%m%d'))", "def yFjF(mWFP: str, JRYC: int=15) -> str:\n k5si = '' if JRYC == 15 else f'_dt_{JRYC}'\n return Hy7s.pat...
[ "0.7145343", "0.6598043", "0.6506413", "0.64975137", "0.6481613", "0.64067256", "0.6387295", "0.63692164", "0.6365157", "0.628002", "0.6187241", "0.6171245", "0.6153959", "0.6153948", "0.6134024", "0.61105704", "0.6060704", "0.60531354", "0.6029488", "0.59470654", "0.5945382"...
0.7443094
0
Return the rotation angle of the image. Defined such that a rotation angle of zero aligns north along the positive Y axis, and a positive rotation angle rotates north away from the Y axis, in the sense of a rotation from north to east. Note that the rotation angle is defined in a flat mapprojection of the sky. It is wh...
def sQTi(o1Kh, PXGI=P6bq.deg): YPaw = _MKm(o1Kh) NCY5 = oyIN.linalg.det(o1Kh) GsVy = oyIN.arctan2(-o1Kh[0, 1] * YPaw[1] / NCY5, o1Kh[0, 0] * YPaw[0] / NCY5) return (GsVy * P6bq.rad).to(PXGI).value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XgNq(YKHO, LNo8):\n return YKHO.path.get_rotation_angle(YKHO, LNo8)", "def W1aZ(DWhD):\n D70y = DWhD[2] - DWhD[1]\n return vwZf(D70y[1], D70y[0])", "def XgNq(YKHO):\n bzrK, wzxx = YKHO.__get_cos_and_sin(YKHO.arm_angle)\n SwgA, BZmm = YKHO.__get_cos_and_sin(YKHO.hand_angle)\n WKvO = YKHO.a...
[ "0.76758933", "0.7013769", "0.6897841", "0.6819254", "0.68042594", "0.67559266", "0.67104846", "0.6706308", "0.6696678", "0.6696601", "0.66605604", "0.6639583", "0.6605238", "0.66050684", "0.6596942", "0.6595637", "0.6555015", "0.6529109", "0.65094423", "0.649865", "0.6488870...
0.68076444
4
Return the angular increments of pixels along the Y and X axes of an image array whose coordinates are described by a specified FITS CD matrix. In MPDAF, images are a regular grid of square pixels on a flat projection of the celestial sphere. This function returns the angular width and height of these pixels on the sky...
def _MKm(o1Kh): Jw7X = oyIN.sqrt(o1Kh[0, 0] ** 2 + o1Kh[1, 0] ** 2) eUWA = oyIN.sqrt(o1Kh[0, 1] ** 2 + o1Kh[1, 1] ** 2) NCY5 = oyIN.linalg.det(o1Kh) GsVy = oyIN.arctan2(-o1Kh[0, 1] / NCY5, o1Kh[0, 0] / NCY5) bMLW = oyIN.arctan2(o1Kh[1, 1] / NCY5, -o1Kh[1, 0] / NCY5) from astropy.coordinates impo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xgrR(YKHO, LNo8):\n x5TW = LNo8.altitude * epAf.tan(epAf.radians(LNo8.roll))\n tSP_ = xGh_(x5TW)\n hdoh = YKHO.pixels_per_foot\n gEpS = hdoh * tSP_\n return gEpS", "def ZneW(TNG6):\n B5M9 = TNG6.data_element('PixelSpacing').value\n return [float(B5M9[0]), float(B5M9[1])]", "def Yp9u(YK...
[ "0.5815494", "0.56753224", "0.56326807", "0.56178594", "0.5600993", "0.5523827", "0.55049837", "0.5451874", "0.54512453", "0.5424324", "0.5402685", "0.5377919", "0.53679556", "0.5364924", "0.53608835", "0.53523123", "0.5332938", "0.5317944", "0.53160894", "0.5300588", "0.5296...
0.6704815
0
Return a copy of a WCS object.
def jth9(YKHO): yvT9 = hjm5() yvT9.wcs = YKHO.wcs.deepcopy() return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d9kX(YKHO, *qIxc, **B2fa):\n return YKHO.__class__(YKHO.wcs.__deepcopy__(*qIxc, **B2fa))", "def jth9(YKHO):\n yvT9 = w4OU(shape=YKHO.shape, cunit=YKHO.unit)\n yvT9.wcs = YKHO.wcs.deepcopy()\n return yvT9", "def LZCK(YKHO):\n return jth9.deepcopy(YKHO._wcs)", "def jth9(YKHO):\n return U7...
[ "0.73213434", "0.6894249", "0.68442374", "0.6702369", "0.66921073", "0.66835016", "0.66108525", "0.6598864", "0.65788597", "0.6578243", "0.6559576", "0.6517764", "0.6517764", "0.6517764", "0.6517764", "0.6517764", "0.6517764", "0.65010107", "0.65010107", "0.6494907", "0.64883...
0.8621039
0
Return True if other and self have the same pixel sizes.
def Q4Ki(YKHO, Elif): if not isinstance(Elif, hjm5): return False e5OA = YKHO.get_step() Z4NR = Elif.get_step(unit=YKHO.unit) return oyIN.allclose(e5OA, Z4NR, atol=1e-07, rtol=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if YKHO is Elif:\n return True\n if not isinstance(Elif, DEza):\n return False\n return PXg2(YKHO.width, Elif.width) and PXg2(YKHO.height, Elif.height)", "def QKG2(YKHO, Elif):\n return YKHO.shape == Elif.shape", "def thHz(YKHO, Elif):\n if not super().is_eq...
[ "0.8439179", "0.8003387", "0.7934314", "0.79099303", "0.78819096", "0.78138584", "0.7700461", "0.7688291", "0.76073647", "0.76042783", "0.7580169", "0.7580169", "0.7544842", "0.751817", "0.7363085", "0.736065", "0.7352643", "0.735175", "0.7264943", "0.72107166", "0.7204202", ...
0.0
-1
Return the displacements on the sky that result from incrementing the array indexes of the image by one along the Y and X axes, respectively. In MPDAF, images are sampled on a regular grid of square pixels that represent a flat projection of the celestial sphere. The get_axis_increments() method returns the angular wid...
def f5Gg(YKHO, PXGI=None): o1Kh = YKHO.get_cd() vhid = _MKm(o1Kh) if PXGI is not None: vhid = (vhid * YKHO.unit).to(PXGI).value return vhid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _MKm(o1Kh):\n Jw7X = oyIN.sqrt(o1Kh[0, 0] ** 2 + o1Kh[1, 0] ** 2)\n eUWA = oyIN.sqrt(o1Kh[0, 1] ** 2 + o1Kh[1, 1] ** 2)\n NCY5 = oyIN.linalg.det(o1Kh)\n GsVy = oyIN.arctan2(-o1Kh[0, 1] / NCY5, o1Kh[0, 0] / NCY5)\n bMLW = oyIN.arctan2(o1Kh[1, 1] / NCY5, -o1Kh[1, 0] / NCY5)\n from astropy.coord...
[ "0.5980029", "0.5611707", "0.55313945", "0.54078573", "0.53810835", "0.53504664", "0.5348615", "0.53156793", "0.5277102", "0.5261019", "0.52455795", "0.52356404", "0.52174777", "0.5216871", "0.5206695", "0.51878077", "0.5187078", "0.5158073", "0.5145612", "0.5143326", "0.5116...
0.49900255
39
Return the rotation angle of the image. The angle is defined such that a rotation angle of zero aligns north along the positive Y axis, and a positive rotation angle rotates north away from the Y axis, in the sense of a rotation from north to east. Note that the rotation angle is defined in a flat mapprojection of the ...
def gavh(YKHO, PXGI=P6bq.deg): o1Kh = YKHO.get_cd() return sQTi(o1Kh, PXGI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XgNq(YKHO, LNo8):\n return YKHO.path.get_rotation_angle(YKHO, LNo8)", "def I4y7(YKHO):\n tdL7 = abs(YKHO.x)\n PVF6 = abs(YKHO.y)\n Xugt = YKHO.getPhase()\n return 0.5 * epAf.atan2(2.0 * tdL7 * PVF6 * epAf.cos(Xugt), tdL7 * tdL7 - PVF6 * PVF6)", "def XgNq(YKHO):\n bzrK, wzxx = YKHO.__get_c...
[ "0.81681144", "0.7435354", "0.7400551", "0.73852515", "0.73661786", "0.7298486", "0.72924525", "0.72637063", "0.72108704", "0.71981144", "0.7184225", "0.710327", "0.70723903", "0.7038817", "0.7023978", "0.69998217", "0.6998151", "0.6981248", "0.6960754", "0.6955992", "0.69556...
0.66666347
49
Return the value of the FITS CRPIX1 parameter. CRPIX1 contains the index of the reference position of the image along the Xaxis of the image. Beware that this is a FITS array index, which is 1 greater than the corresponding python array index. For example, a crpix value of 1 denotes a python array index of 0. The refer...
def GmiE(YKHO): return YKHO.wcs.wcs.crpix[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i87S(YKHO):\n return YKHO.wcs.wcs.crpix[0]", "def lMS8(YKHO, WKvO):\n YKHO.wcs.wcs.crpix[0] = WKvO\n YKHO.wcs.wcs.set()", "def mbRa(YKHO):\n return YKHO.wcs.wcs.crpix[1]", "def fvKi(YKHO):\n return YKHO.header['CRVAL1']", "def xAQR(YKHO, PXGI=None):\n if PXGI is None:\n return ...
[ "0.6362499", "0.6340732", "0.6329338", "0.6132654", "0.5757524", "0.5625704", "0.5557437", "0.54738784", "0.5252849", "0.52338606", "0.52338606", "0.51916564", "0.51858914", "0.51696366", "0.5158", "0.5126842", "0.5091943", "0.50844216", "0.5070148", "0.5068842", "0.50249696"...
0.73293245
0
Return the value of the FITS CRPIX2 parameter. CRPIX2 contains the index of the reference position of the image along the Yaxis of the image. Beware that this is a FITS array index, which is 1 greater than the corresponding python array index. For example, a crpix value of 1 denotes a python array index of 0. The refer...
def mbRa(YKHO): return YKHO.wcs.wcs.crpix[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GmiE(YKHO):\n return YKHO.wcs.wcs.crpix[0]", "def i87S(YKHO):\n return YKHO.wcs.wcs.crpix[0]", "def s9T1(YKHO):\n return YKHO.header['CRVAL2']", "def Agfn(YKHO, LVAh):\n YKHO.wcs.wcs.crpix[1] = LVAh\n YKHO.wcs.wcs.set()", "def VZeD(YKHO, PXGI=None):\n if PXGI is None:\n return ...
[ "0.639174", "0.6267727", "0.6242006", "0.6044003", "0.59410316", "0.5899313", "0.57144225", "0.57144225", "0.5579291", "0.557806", "0.5561012", "0.5561012", "0.5528431", "0.549737", "0.5397538", "0.53701824", "0.5310191", "0.527107", "0.5241404", "0.5240445", "0.5226759", "...
0.7297585
0
Return the value of the FITS CRVAL1 parameter. CRVAL1 contains the coordinate reference value of the first image axis (eg. rightascension).
def xAQR(YKHO, PXGI=None): if PXGI is None: return YKHO.wcs.wcs.crval[0] else: return (YKHO.wcs.wcs.crval[0] * YKHO.unit).to(PXGI).value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fvKi(YKHO):\n return YKHO.header['CRVAL1']", "def VZeD(YKHO, PXGI=None):\n if PXGI is None:\n return YKHO.wcs.wcs.crval[1]\n else:\n return (YKHO.wcs.wcs.crval[1] * YKHO.unit).to(PXGI).value", "def s9T1(YKHO):\n return YKHO.header['CRVAL2']", "def Xwyj(YKHO, WKvO, PXGI=None):\n ...
[ "0.75733477", "0.6408896", "0.638985", "0.63113123", "0.62759894", "0.62037385", "0.5763874", "0.5697664", "0.56220317", "0.5577601", "0.5474621", "0.5474621", "0.54510796", "0.5437478", "0.5394173", "0.53894496", "0.53845036", "0.53628236", "0.5346887", "0.5344397", "0.53363...
0.719584
1
Return the value of the FITS CRVAL2 parameter. CRVAL2 contains the coordinate reference value of the second image axis (eg. declination).
def VZeD(YKHO, PXGI=None): if PXGI is None: return YKHO.wcs.wcs.crval[1] else: return (YKHO.wcs.wcs.crval[1] * YKHO.unit).to(PXGI).value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s9T1(YKHO):\n return YKHO.header['CRVAL2']", "def fvKi(YKHO):\n return YKHO.header['CRVAL1']", "def mbRa(YKHO):\n return YKHO.wcs.wcs.crpix[1]", "def CYjz(YKHO) -> float:\n return YKHO._call_java('r2')", "def xAQR(YKHO, PXGI=None):\n if PXGI is None:\n return YKHO.wcs.wcs.crval[0]...
[ "0.769737", "0.6447676", "0.62185794", "0.6155608", "0.6105114", "0.6087925", "0.60276085", "0.59881335", "0.59402394", "0.5714199", "0.5690187", "0.56821835", "0.5669291", "0.5657135", "0.5633279", "0.5606292", "0.5598182", "0.55826217", "0.55375576", "0.5526726", "0.5526726...
0.72903436
1
Return the default angular unit used for sky coordinates. Returns
def PXGI(YKHO): if YKHO.wcs.wcs.cunit[0] != YKHO.wcs.wcs.cunit[1]: YKHO._logger.warning('different units on x- and y-axes') return YKHO.wcs.wcs.cunit[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oBCq(Emd4):\n return rYO3.Unit('degree')", "def CtSO(YKHO):\n return YKHO.attribute.DefaultUOM", "def _gcw(YKHO):\n return YKHO.imperial_base", "def VIEf(YKHO):\n bLm4 = YKHO.get_angles(radians=True)\n j3RY = 2 * oyIN.pi - sum(bLm4.values())\n return j3RY", "def b82i(YKHO):\n retur...
[ "0.6947917", "0.67701155", "0.65071505", "0.6411787", "0.63662076", "0.6260911", "0.6260911", "0.6260911", "0.6260911", "0.6246189", "0.6227757", "0.62129354", "0.62129354", "0.6195007", "0.61654806", "0.61407983", "0.6120383", "0.61091995", "0.60866404", "0.6083856", "0.6083...
0.5930121
86
Copie WaveCoord object in a new one and returns it.
def jth9(YKHO): yvT9 = w4OU(shape=YKHO.shape, cunit=YKHO.unit) yvT9.wcs = YKHO.wcs.deepcopy() return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return UrtQ(YKHO.data, YKHO.color, YKHO.axis)", "def FzJk(YKHO):\n return W1NS(YKHO.area, YKHO.num_wind, YKHO.position, YKHO.up_vector)", "def FzJk(YKHO):\n return YKHO.__class__(YKHO.x, YKHO.y)", "def jth9(YKHO):\n EoeU = GaJO(YKHO.pos, YKHO.team)\n return EoeU", "def jth9...
[ "0.63282603", "0.6202948", "0.5836016", "0.5799655", "0.5799651", "0.5793302", "0.5787454", "0.57587105", "0.573834", "0.573834", "0.5737549", "0.5717361", "0.5714287", "0.5689256", "0.56796557", "0.5675539", "0.56718767", "0.5668129", "0.5658734", "0.56448543", "0.56350374",...
0.7902759
0
CRVAL getter (value of the reference pixel on the wavelength axis).
def m_UN(YKHO, PXGI=None): if PXGI is None: return YKHO.wcs.wcs.crval[0] else: return (YKHO.wcs.wcs.crval[0] * YKHO.unit).to(PXGI).value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VZeD(YKHO, PXGI=None):\n if PXGI is None:\n return YKHO.wcs.wcs.crval[1]\n else:\n return (YKHO.wcs.wcs.crval[1] * YKHO.unit).to(PXGI).value", "def xAQR(YKHO, PXGI=None):\n if PXGI is None:\n return YKHO.wcs.wcs.crval[0]\n else:\n return (YKHO.wcs.wcs.crval[0] * YKHO.u...
[ "0.70865947", "0.68744755", "0.6711442", "0.6625594", "0.65486866", "0.64996654", "0.64945126", "0.64767915", "0.64763725", "0.6423774", "0.6419814", "0.6419523", "0.6343931", "0.63091445", "0.6287404", "0.6287404", "0.62782085", "0.6253134", "0.6253134", "0.6233829", "0.6202...
0.7336588
0
CRVAL getter (value of the reference pixel on the wavelength axis).
def dKX6(YKHO, WKvO, PXGI=None): if PXGI is None: YKHO.wcs.wcs.crval[0] = WKvO else: YKHO.wcs.wcs.crval[0] = (WKvO * PXGI).to(YKHO.unit).value YKHO.wcs.wcs.set()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m_UN(YKHO, PXGI=None):\n if PXGI is None:\n return YKHO.wcs.wcs.crval[0]\n else:\n return (YKHO.wcs.wcs.crval[0] * YKHO.unit).to(PXGI).value", "def VZeD(YKHO, PXGI=None):\n if PXGI is None:\n return YKHO.wcs.wcs.crval[1]\n else:\n return (YKHO.wcs.wcs.crval[1] * YKHO.u...
[ "0.7336588", "0.70865947", "0.68744755", "0.6711442", "0.6625594", "0.65486866", "0.64996654", "0.64945126", "0.64767915", "0.64763725", "0.6423774", "0.6419814", "0.6419523", "0.6343931", "0.63091445", "0.6287404", "0.6287404", "0.62782085", "0.6253134", "0.6253134", "0.6233...
0.5746037
80
The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
def TyOW(YKHO) -> h8nf[qe4Y.Input['ExportConfigDesiredState']]: return qe4Y.get(YKHO, 'desired_state')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lChj(YKHO):\n if YKHO._wave._shipExist():\n YKHO._state = Y9dW", "def QTBn(YKHO):\n if YKHO._sleep == True:\n return iKVK\n elif YKHO._meural_device['imageDuration'] == 0:\n return Y9dW\n return mocT", "def XIne(YKHO):\n return N5Kj(YKHO.transformation.pausedcode)", "d...
[ "0.68220407", "0.67444175", "0.6676005", "0.6655123", "0.65802544", "0.6536782", "0.6490897", "0.6485229", "0.64335734", "0.64335734", "0.6430354", "0.6318641", "0.6299862", "0.6266407", "0.62554777", "0.62554777", "0.624081", "0.6239757", "0.6226299", "0.6226299", "0.6226299...
0.6424151
11
The settings for a topic's message retention.
def FIMM(Ro_8, *, zwMj: Optional[pulumi.Input[str]]=None, pQ4c: Optional[pulumi.Input[str]]=None): if zwMj is not None: qe4Y.set(Ro_8, 'per_partition_bytes', zwMj) if pQ4c is not None: qe4Y.set(Ro_8, 'period', pQ4c)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oC4a(YKHO):\n return YKHO._message['retention']", "def oC4a(YKHO):\n return YKHO._message['retention']", "def UCOj(YKHO) -> h8nf[qe4Y.Input['DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettingsArgs']]:\n return qe4Y.get(YKHO, 'backup_retention_settings')", "def vNSM(YKHO) -> h8nf[q...
[ "0.6567249", "0.6567249", "0.6118846", "0.6023368", "0.6023368", "0.59285337", "0.58996433", "0.58707577", "0.5811851", "0.5811851", "0.5811851", "0.5811851", "0.5811851", "0.5811851", "0.5811851", "0.5811851", "0.58092654", "0.57535326", "0.57399726", "0.57089055", "0.570360...
0.0
-1
Gets the compute of this AddCloudRequestFeatures.
def GvK6(YKHO): return YKHO._compute
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GvK6(YKHO) -> clp4:\n return YKHO._compute", "def Za8f(YKHO):\n NvwP = YKHO.cm_config['service']\n Vkat = YKHO.cm_config['version']\n uC2a = YKHO.compute_scopes\n PtxM = YKHO._get_service(NvwP, Vkat, uC2a)\n return PtxM", "def kmxG(YKHO):\n return EhpD.discovery.build('compute', 'v1', ...
[ "0.70959437", "0.67530435", "0.6562183", "0.652882", "0.63539743", "0.6309589", "0.6307441", "0.6248443", "0.6115904", "0.6052005", "0.59886366", "0.57531804", "0.5733622", "0.57222295", "0.5716765", "0.5705058", "0.5677378", "0.5675303", "0.5655599", "0.5651447", "0.56381774...
0.70156074
1
Gets the dns of this AddCloudRequestFeatures.
def wAWK(YKHO): return YKHO._dns
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wAWK(YKHO) -> str:\n return qe4Y.get(YKHO, 'dns')", "def wAWK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'dns')", "def wAWK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'dns')", "def wAWK(YKHO) -> h8nf[qe4Y.Input['CacheDnsArgs']]:\n return qe4Y.get(YKHO, 'dns')", "de...
[ "0.728016", "0.7051621", "0.7051621", "0.6888629", "0.6888629", "0.6828479", "0.6730067", "0.6650232", "0.6550133", "0.6527138", "0.6527138", "0.65001684", "0.6495522", "0.6478832", "0.64742595", "0.64742595", "0.64742595", "0.64742595", "0.6447383", "0.64439714", "0.6442582"...
0.71729535
1
Sets the dns of this AddCloudRequestFeatures.
def wAWK(YKHO, wAWK): YKHO._dns = wAWK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ufxd(YKHO, D8Ke, zrIJ):\n Vlb9 = {'ip': D8Ke, 'domain': zrIJ}\n return YKHO.master.call('ips/set-custom-dns', Vlb9)", "def uOd9(YKHO, uOd9):\n YKHO._custom_dns = uOd9", "def O9FF(YKHO, O9FF):\n YKHO._dns_nameservers = O9FF", "def MsQC(YKHO, d1Tj=None, taO0=None, QuXg=None, SxXe=None, NiPw=Non...
[ "0.63546824", "0.6296763", "0.5883221", "0.58424157", "0.57391226", "0.5692377", "0.5677937", "0.56562763", "0.5559432", "0.5339482", "0.5339482", "0.5308642", "0.52868176", "0.52868176", "0.52783024", "0.52720237", "0.52720237", "0.5191379", "0.51465", "0.51414883", "0.51285...
0.7220742
0
Initialize the GANLoss class
def FIMM(YKHO, EcBf: str, WYz0: float=1.0, Af2d: float=0.0) -> None: super().__init__() YKHO.register_buffer('real_label', ht2j.tensor(WYz0)) YKHO.register_buffer('fake_label', ht2j.tensor(Af2d)) YKHO.gan_mode = EcBf YKHO.loss: h8nf[U78l.Module] = None if EcBf == 'lsgan': YKHO.loss = U78...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.loss = None\n YKHO.regularization = None\n YKHO.layers = []\n YKHO.reg_rate = 0", "def FIMM(YKHO, EcBf, WYz0=1.0, Af2d=0.0):\n super(LN76, YKHO).__init__()\n YKHO.gan_mode = EcBf\n if EcBf == 'lsgan':\n YKHO.loss = U78l.MSELoss()\n elif EcBf == 'vanilla':\n ...
[ "0.7318495", "0.7285168", "0.7205256", "0.7194814", "0.7194814", "0.7194814", "0.7194814", "0.7194814", "0.7194814", "0.7194814", "0.7194814", "0.7194814", "0.71934366", "0.7099979", "0.7043311", "0.69884396", "0.6963295", "0.6960474", "0.6954795", "0.695379", "0.68924344", ...
0.6494452
40
Calculate loss given Discriminator's output and ground truth labels.
def nrOS(YKHO, o3Uj: torch.Tensor, nbSS: bool) -> ht2j.Tensor: if YKHO.gan_mode in ['lsgan', 'vanilla'] and YKHO.loss is not None: zvoY = YKHO.get_target_tensor(o3Uj, nbSS) return YKHO.loss(o3Uj, zvoY) elif YKHO.gan_mode == 'wgangp': if nbSS: return -o3Uj.mean() else:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOC4(SZIZ, JQTb):\n CqbS = ZylS.keras.losses.BinaryCrossentropy(from_logits=True)\n qxD9 = CqbS(ZylS.ones_like(SZIZ), SZIZ)\n PMF5 = CqbS(ZylS.zeros_like(JQTb), JQTb)\n dxS6 = qxD9 + PMF5\n return dxS6", "def AOC4(Y8eF, aMgO):\n N77f = kT60(Y8eF, aMgO)\n Ok3P = -nMvt.log(0.5)\n return...
[ "0.75100666", "0.735951", "0.7302409", "0.7239078", "0.7235403", "0.71448153", "0.71314824", "0.71212614", "0.7087719", "0.7073749", "0.70678884", "0.7057943", "0.6991042", "0.6991042", "0.69691986", "0.69681", "0.6940646", "0.69393677", "0.6924265", "0.6879858", "0.68690413"...
0.0
-1
Returns if the stack is empty
def lsmZ(YKHO) -> bool: return len(YKHO.memory) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBf...
[ "0.9175051", "0.90995014", "0.90995014", "0.90995014", "0.90908563", "0.90908563", "0.90251666", "0.89671785", "0.89671785", "0.89484465", "0.8922659", "0.8870335", "0.8849374", "0.8849374", "0.88447154", "0.8813602", "0.87418854", "0.87195045", "0.8709565", "0.86938924", "0....
0.0
-1
Unit test Given raw response of the http request When there are or there are no errors Then show the exception content
def E7CC(St3z, hlel, AZgw): AZgw.patch.object(i9zE, '_get_access_token') x0hE = i9zE(server_url='https://api.crowdstrike.com/', username='user1', password='12345', use_ssl=False, proxy=False, reliability=KQ9L.B) try: AZgw.patch.object(x0hE._session, 'request', return_value=IokC(St3z)) bGrB, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gSrV(YKHO):\n\n def HeNO(QePW):\n YKHO.assertEqual(qQXR.loads(QePW.getWrittenData()), {'status': 'error', 'data': 'Internal server error.'})\n qmLP = YKHO.flushLoggedErrors()\n YKHO.assertEqual(qmLP[0].getErrorMessage(), 'OMG LOL WTF')\n return YKHO.api.test('/v1/exception').addCallb...
[ "0.7685844", "0.7507922", "0.73047465", "0.72496456", "0.7242118", "0.7212697", "0.71696764", "0.7085791", "0.7054142", "0.7051236", "0.7040658", "0.7036426", "0.70284355", "0.70135385", "0.69930357", "0.6963276", "0.69617224", "0.6958516", "0.69489866", "0.6937608", "0.69305...
0.6582981
81
Given existing access token saved in integration context that its time is not expired yet When trying to get the access token Then make sure the integration gets the token from context.
def iUvj(AZgw): AZgw.patch.object(Plm4, 'getIntegrationContextVersioned', return_value={'context': {'access_token': '123', 'token_initiate_time': '10000.941587', 'token_expiration_seconds': '7200'}}) AZgw.patch.object(ITS7, 'time', return_value=16999.941587) x0hE = i9zE(server_url='https://api.crowdstrike.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VgoY(YKHO):\n wzkt = qcWV.now()\n FENX = cbmw()\n NT__ = FENX.get('access_token')\n IO3b = FENX.get('time_issued')\n if NT__ and EHpZ(wzkt, IO3b) < d18a:\n return NT__\n NT__ = YKHO.get_token_request()\n FENX = {'access_token': NT__, 'time_issued': _uaQ(wzkt) / 1000}\n UK9y(FENX)...
[ "0.804874", "0.7608278", "0.7337975", "0.7331128", "0.71793973", "0.7131501", "0.70618105", "0.70549554", "0.70535064", "0.70535064", "0.6962927", "0.68973595", "0.6892365", "0.6848715", "0.6830728", "0.6826514", "0.680263", "0.6782023", "0.67796916", "0.6777228", "0.6747246"...
0.71601933
5
This test sharing an article with a valid token returns a 201CREATED and a success message
def Tmjs(YKHO): IHZF = YKHO.return_article_slug() Ylbp = YKHO.client.post('/api/articles/{}/share/facebook/'.format(IHZF)) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED, 'Response status should be 201 CREATED') YKHO.assertIn('facebook_link', qQXR.loads(Ylbp.content)['article'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PyhM(YKHO):\n YKHO.client.credentials(HTTP_AUTHORIZATION='Bearer {}'.format(YKHO.get_samantha_token()))\n geh0 = YKHO.client.post('/api/articles/', data=YKHO.article, format='json')\n return geh0.data", "def wf_r(YKHO):\n eOtH = YKHO.signup_user_one()\n YKHO.create_article(YKHO.create_article_...
[ "0.72826886", "0.71375203", "0.7074748", "0.70375556", "0.6986026", "0.6960806", "0.6795867", "0.6764298", "0.6743689", "0.6711509", "0.6706806", "0.6629974", "0.662847", "0.6608853", "0.6603094", "0.654256", "0.64921516", "0.6489021", "0.6483347", "0.64697677", "0.64539266",...
0.67272043
9
testcase checks for validation error raised when twitter access tokens are not provided
def Gj_z(YKHO): IHZF = YKHO.return_article_slug() YKHO.client.credentials(HTTP_AUTHORIZATION='Token ' + YKHO.get_samantha_token()) Ylbp = YKHO.client.post('/api/articles/{}/share/twitter/'.format(IHZF)) k_2k = YKHO.client.post('/api/articles/{}/share/email/'.format(IHZF)) YKHO.assertEqual(Ylbp.statu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s35C(YKHO):\n LU7C = 'wrong key'\n nNXP = YKHO.authenticate(IMGh, o5kg, LU7C, DXni)\n YEnM = kdXb()\n YEnM.api = nNXP\n YKHO.assertFalse(YEnM.verify_credentials())", "def GXJ7(YKHO):\n geh0 = YKHO.client.post('/api/v1/social/auth/twitter/', hmq6, format='json')\n YKHO.assertEqual(geh0.da...
[ "0.7871708", "0.77732706", "0.7272411", "0.7179612", "0.71157646", "0.7001792", "0.69972557", "0.688001", "0.68650675", "0.68022954", "0.67826754", "0.6741951", "0.6734199", "0.66910505", "0.66840005", "0.66655195", "0.6664229", "0.66361463", "0.6627837", "0.6626402", "0.6625...
0.744092
2
Builds a Gaussian kernel used to perform the LPF on an image.
def xsYF(LNo8, WTkW): print('[' + LNo8 + ']\tCalculating Gaussian kernel...') zNig = 8 * WTkW + 1 if not zNig % 2: zNig = zNig + 1 hgjH = zNig // 2 WZcn = oyIN.zeros((zNig, zNig)) for LVAh in range(zNig): for WKvO in range(zNig): yk4i = (LVAh - hgjH) ** 2 + (WKvO - hg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VU7a(EcVT, WTkW):\n return oyIN.exp(-EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(vC9B, WTkW=1):\n EcVT = oyIN.arange(vC9B + 1)\n return IAWS(EcVT)", "def VU7a(EcVT, WTkW):\n return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(vC9B=21, wEsz=1):\n aNZO = oyIN.arange(-vC9B // 2 +...
[ "0.6892856", "0.6817524", "0.677614", "0.6769461", "0.65464383", "0.6518719", "0.64844286", "0.6479474", "0.645896", "0.64321643", "0.6377577", "0.6357256", "0.63522005", "0.6315843", "0.6312509", "0.6305862", "0.6292507", "0.6260001", "0.6243142", "0.62403595", "0.6233963", ...
0.6036543
43
Asserts a value is equal to golden data, or update the golden data. Normally, this function reads a data file corresponding to the currentlyrunning test, and compares the contents with the given value. If the values don't match, it raises AssertionError. If the GOLDEN_MELD environment variable is set to a nonempty stri...
def Qo1U(YKHO, BWXx: str, ZI14: str='golden.txt') -> None: if Hy7s.environ.get('GOLDEN_MELD'): with open(YKHO.get_meld_path(ZI14), mode='w') as EcOm: EcOm.write(BWXx) else: CsFy = YKHO.get_data(ZI14) YKHO.assertEqual(BWXx, CsFy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bOfC(YKHO, S6jZ, jR87):\n sGFq = tq_1.stack()[1][3]\n s3KV = YKHO._ReadGoldenFile(jR87)\n if Hy7s.environ.get(yqQE):\n if s3KV != S6jZ:\n with open(YKHO._JoinGoldenPath(jR87), 'w') as eHNT:\n eHNT.write(S6jZ)\n return\n if s3KV is None:\n YKHO.fail('Go...
[ "0.64495254", "0.5895055", "0.5716883", "0.5575519", "0.55722195", "0.55673176", "0.5472839", "0.54466605", "0.5444013", "0.54334795", "0.5432768", "0.5432315", "0.54202545", "0.5371032", "0.5353235", "0.53511626", "0.5347923", "0.5327397", "0.53149813", "0.53111726", "0.5307...
0.7456116
0
Returns the sum of two sparse arrays, with fixed nse. If `mat` has nse `a`, and `other_mat` has nse `b`, the nse of the sum is `a+b` at most. To satisfy `jax`'s fixed shape desiderata, we impose a fixed `nse` on the result. This may cause unexpected behavior when the true `nse` of `a+b` is more than `nse`.
def KAlH(vb7U, kK1d, zNvR): Aofo = vb7U + kK1d Aofo = Aofo.sum_duplicates(nse=Aofo.nse) return XZDT(Aofo, k=zNvR, nse=zNvR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LGQL(YKHO):\n o4sw = B2Ja.prod(*(B2Ja.PauliX(YRbF) for YRbF in range(8))) + B2Ja.prod(*(B2Ja.PauliY(YRbF) for YRbF in range(8)))\n QTBn = oyIN.zeros(2)\n assert GM6P(B2Ja.expval(o4sw), QTBn) is BeMi", "def JuUv(YKHO, ZUdX, H_Yt):\n sum = 0\n for YRbF in range(ZUdX.shape[0]):\n for r845 ...
[ "0.56926763", "0.5625455", "0.5313763", "0.52935785", "0.52536666", "0.52460766", "0.51960266", "0.51549226", "0.50860155", "0.5076261", "0.5070343", "0.50479233", "0.50354904", "0.5031753", "0.5027665", "0.5025078", "0.49933067", "0.49823928", "0.49705723", "0.49612412", "0....
0.6976627
0
Returns a single element from a sparse matrix at a given index.
def cd8T(QZ8g, or8S): or8S = oLG2.where(or8S >= 0, or8S, oLG2.array(QZ8g.shape) - -or8S) nPrm, _0VL = (QZ8g.data, QZ8g.indices) ZHfW = oLG2.all(_0VL == or8S, axis=-1) return oLG2.vdot(ZHfW, nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, d6pt):\n WKvO, LVAh = d6pt\n return YKHO.matrix[LVAh][WKvO]", "def ccBJ(SppC, d6pt):\n Aofo = SppC\n for YRbF in d6pt:\n Aofo = Aofo[YRbF]\n return Aofo", "def OQ5O(d6pt: int) -> oyIN.ndarray:\n return oyIN.squeeze(oyIN.array(hHzj[d6pt].todense()), axis=0)", "def gfqr(...
[ "0.7389785", "0.70797163", "0.7077082", "0.69779676", "0.67866015", "0.6781255", "0.6702161", "0.6678141", "0.65722305", "0.65698576", "0.65698576", "0.6561664", "0.6544353", "0.6491639", "0.64682156", "0.6458645", "0.6448076", "0.64110357", "0.641078", "0.6407507", "0.638125...
0.0
-1
Returns ConfigParser instance of logger defaults
def C_09(): import ConfigParser wn1j = ConfigParser.RawConfigParser() wn1j.add_section('formatters') wn1j.set('formatters', 'keys', 'default') wn1j.add_section('formatter_default') wn1j.set('formatter_default', 'format', u'%(asctime)s %(levelname)s %(filename)11s:%(lineno)-3s %(message)s') w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k1iO(Fv2L=None):\n if not Fv2L:\n Fv2L = kwpV(interpolation=Wst3(), converters={'path': k2IV})\n else:\n assert isinstance(Fv2L, kwpV)\n return yZuO(Fv2L, m6le)", "def EpPs(YKHO):\n return YKHO.config_parser", "def d8Ew():\n Fv2L = kwpV(interpolation=Wst3(), converters={'path':...
[ "0.7184401", "0.685403", "0.6823514", "0.6707853", "0.6671369", "0.6509812", "0.64827156", "0.6407194", "0.63980484", "0.638414", "0.6370219", "0.63612926", "0.63535184", "0.6269664", "0.6260351", "0.6235437", "0.62057406", "0.6161766", "0.6137286", "0.6112237", "0.60972583",...
0.62744457
13
Gets a list of all Discourse categories and subcategories
def N3tc(YKHO): geh0 = (yield YKHO._api_client.getRequest('site.json')) raise rtVo.Return(geh0['categories'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQuW(YKHO):\n bD7m = TDhU(YKHO.url, 'categories')\n return i9zE._get(YKHO, url=bD7m)", "def LQuW(YKHO):\n return YKHO.categories.all()", "def LQuW(YKHO):\n return YKHO.categories.all()", "def zG33(YKHO):\n return YKHO.categoryList", "def LU07(Emd4):\n return LeZt", "def NMoC(YKHO):\...
[ "0.7589859", "0.75404143", "0.75404143", "0.7530907", "0.74437475", "0.74255264", "0.74179024", "0.7375067", "0.72954214", "0.7285887", "0.7276626", "0.7262473", "0.72597605", "0.7205015", "0.7143821", "0.71303767", "0.71094686", "0.71000934", "0.70946276", "0.7088107", "0.70...
0.74915934
4
Show form for adding a student.
def qs2E(): return TvZl('student_add_form.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SqCr():\n return TvZl('student_add.html')", "def Cdno():\n return TvZl('student_add.html')", "def ob_1():\n return TvZl('student_add.html')", "def nvzk():\n return TvZl('new_student.html')", "def nvzk():\n return TvZl('new_student.html')", "def ctKp():\n c9ua = QePW.form.get('firstn...
[ "0.8767162", "0.856022", "0.8106078", "0.80129546", "0.80129546", "0.79771686", "0.7938265", "0.7873599", "0.7869747", "0.7850974", "0.7536324", "0.74758995", "0.7412495", "0.7276059", "0.71946454", "0.7182021", "0.7148498", "0.70948946", "0.70722467", "0.70298", "0.6989806",...
0.85867727
1
Initialize an immutable shipment.
def FIMM(YKHO, upAO, yQHD, jyy7, qEGF, X8gn): YKHO.id = kQIA() YKHO.weight = upAO YKHO.origin_latitude = yQHD YKHO.origin_longitude = jyy7 YKHO.destination_latitude = qEGF YKHO.destination_longitude = X8gn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, WKvO, LVAh, XSoh, u54L):\n if XSoh not in riCe.DIRECTIONS:\n raise ValueError('Invalid ship direction: %s' % XSoh)\n u54L = int(u54L)\n if u54L < riCe.LENGTH_MIN or u54L > riCe.LENGTH_MAX:\n raise ValueError('Invalid ship length: %i' % u54L)\n YKHO.x = int(WKvO)\n YKHO.y...
[ "0.67846423", "0.6519954", "0.64357066", "0.6413369", "0.6392291", "0.62639105", "0.6216577", "0.6193069", "0.6186492", "0.6131577", "0.6111566", "0.606867", "0.60259223", "0.6024242", "0.5980341", "0.59506714", "0.5941424", "0.5920615", "0.5911635", "0.5895357", "0.5887292",...
0.0
-1
Sets the version of this Engines1.
def DpZH(YKHO, DpZH): YKHO._version = DpZH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R2V2(YKHO, DpZH):\n YKHO.version = DpZH", "def dPFR(YKHO, DpZH):\n YKHO.version = DpZH", "def R2V2(YKHO, DpZH):\n YKHO._version = DpZH", "def dPFR(YKHO, DpZH):\n YKHO._version = DpZH", "def dPFR(YKHO, DpZH):\n assert float(DpZH) in YKHO.supportedVersions, 'Version ' + str(DpZH) + ' is no...
[ "0.7737295", "0.77332956", "0.76063067", "0.75686073", "0.745642", "0.73156244", "0.72935754", "0.7272813", "0.7272813", "0.72571677", "0.7232051", "0.7232051", "0.7232051", "0.71894604", "0.71894604", "0.71894604", "0.71894604", "0.71894604", "0.71894604", "0.71894604", "0.7...
0.72635055
9
Sets the propellant_2 of this Engines1.
def a02_(YKHO, a02_): YKHO._propellant_2 = a02_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gt5z(YKHO, Gt5z):\n YKHO._propellant_1 = Gt5z", "def ePT4(YKHO, HpuQ):\n YKHO.endPoint = HpuQ\n YKHO.mainLine.setPoints(YKHO.startPoint, YKHO.endPoint)\n if YKHO.usetails:\n YKHO.updateTails()\n YKHO.prepareGeometryChange()", "def oBAZ(YKHO, oyg0):\n YKHO.player_2 = oyg0", "def O...
[ "0.766517", "0.5967274", "0.58308405", "0.57806647", "0.56288004", "0.5583098", "0.55768704", "0.5567923", "0.55422384", "0.5532149", "0.5505032", "0.5504321", "0.54854023", "0.54109", "0.5273738", "0.52267677", "0.5226642", "0.521734", "0.521544", "0.52089584", "0.5191567", ...
0.8651601
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, wviw): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Returns the cartesian product of A and B.
def KPxj(k0lF, tjUW): yv6U = [] for WKvO in k0lF: for LVAh in tjUW: yv6U.append((WKvO, LVAh)) return set(yv6U)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnaF(k0lF, tjUW):\n return [jzdc + Fg_i for jzdc in k0lF for Fg_i in tjUW]", "def wnaF(k0lF, tjUW):\n return [jzdc + Fg_i for jzdc in k0lF for Fg_i in tjUW]", "def wnaF(k0lF, tjUW):\n return [jzdc + Fg_i for jzdc in k0lF for Fg_i in tjUW]", "def tjFQ():\n k0lF = set(['a', 'b', 'c'])\n tjUW...
[ "0.7777275", "0.7777275", "0.7657446", "0.75051045", "0.73976105", "0.7014076", "0.6987232", "0.69628334", "0.68718296", "0.6810504", "0.681049", "0.6781499", "0.6781499", "0.67715186", "0.67702967", "0.67702967", "0.6752337", "0.67511547", "0.6749939", "0.67434543", "0.67434...
0.7569075
3
Get requirements from list.
def CmVM(G_PT: Path, ZqaC: bool=False) -> aMKA: fA3L = aMKA() for qv1X, P1dF in VnMZ(G_PT): if P1dF and (not ZqaC): raise P1dF fA3L.add(qv1X) return fA3L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gas1(fA3L):\n return [jfKu(Mkmy) for Mkmy in fA3L]", "def O1OY():\n return [zFiD.split()[0] for zFiD in open('requirements.txt', 'r').readlines() if not zFiD.startswith('#')]", "def O1OY():\n kbO9 = []\n with open('requirements.txt', 'r') as ytgA:\n zFiD = ytgA.readline()\n while ...
[ "0.7511562", "0.68646723", "0.6838436", "0.68007624", "0.6756611", "0.6728592", "0.6673648", "0.66416466", "0.6619757", "0.6580016", "0.6577293", "0.65473634", "0.6520925", "0.6507359", "0.6471728", "0.6464189", "0.645595", "0.64356726", "0.6428932", "0.64101297", "0.6389478"...
0.7012956
1
Iterates over nodes in each edge in the edge_dict, by edge_type. If the node has metadata available in the the node_data dictionary, then it is added to the knowledge graph.
def kVBy(YKHO, pNZh: Graph, Rnx0: Optional[Dict]) -> Q1Kq: print('\nAdding Non-Ontology Data Metadata to Knowledge Graph') if Rnx0: for _nJc in PRqg(Rnx0.keys()): DpB4 = Rnx0[_nJc]['data_type'] if DpB4.split('-')[0] == 'class' and DpB4.split('-')[1] == 'class': pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sH8X(YKHO, MPMM: Callable, cGce: Callable) -> None:\n abpi = Ubhx(YKHO.edge_dict, YKHO.res_dir)\n for _nJc in YKHO.edge_dict.keys():\n gl3h, QTIC = YKHO.edge_dict[_nJc]['data_type'].split('-')\n j8eK = YKHO.edge_dict[_nJc]['uri']\n l25F = jth9.deepcopy(YKHO.edge_dict[_nJc]['edge_list...
[ "0.6427592", "0.63175195", "0.6191316", "0.6008259", "0.58262736", "0.5739283", "0.5726339", "0.55707854", "0.5534581", "0.5530757", "0.5519522", "0.5505044", "0.5476554", "0.54618275", "0.5454628", "0.5454628", "0.53567547", "0.5341925", "0.5328029", "0.53242487", "0.5317746...
0.7018602
0
Add the trainingspecific arguments to the argparser instance.
def GiRe(wvEv: ArgumentParser) -> WDqQ: wvEv.add_argument('--deterministic', dest='deterministic', default=False, action='store_true') wvEv.add_argument('--resume', dest='resume', help='resumes training process from model', default=False, action='store_true') wvEv.add_argument('--load', dest='load', type=st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i1eN(wvEv: ArgumentParser):\n wvEv.add_argument('--data_path', type=str, required=True, help='Path to data CSV file')\n wvEv.add_argument('--vocab_path', type=str, help='Path to .vocab file if using jtnn')\n wvEv.add_argument('--features_only', action='store_true', default=False, help='Use only the ad...
[ "0.7987537", "0.7872231", "0.7782951", "0.77224624", "0.77140355", "0.7669207", "0.7663032", "0.76224124", "0.7614899", "0.75875556", "0.7585306", "0.75353706", "0.7533904", "0.7533904", "0.7525715", "0.7517347", "0.7512659", "0.74960065", "0.7445521", "0.7441305", "0.7408896...
0.74537235
18
Return current states of ego and ado agents in the scene. Since the current state is known for every ado the states are deterministic and unimodal. States are returned as vector including temporal dimension.
def wspz(YKHO) -> laHg.Tuple[ht2j.Tensor, ht2j.Tensor]: LTpS = ht2j.zeros((YKHO.num_ados, 5)) for FGFr, kavK in enumerate(YKHO.ados): LTpS[FGFr, :] = kavK.state_with_time dDio = YKHO.ego.state_with_time if YKHO.ego is not None else None if dDio is not None: assert _UtD.utility.shaping.ch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n KCHu = {'neighbours': YKHO.common_observation.agent_three_square, 'agent': tuple(YKHO.agent.position), 'blinky': tuple(YKHO.blinky.position), 'inky': tuple(YKHO.inky.position)}\n KCHu = []\n bdGm = YKHO.common_observation.agent_three_square.flatten()\n YWSi = oyIN.array(YKHO.agent.pos...
[ "0.681779", "0.67904025", "0.6771953", "0.6701379", "0.6701379", "0.6668121", "0.6668121", "0.6662036", "0.6620761", "0.6608932", "0.6608932", "0.6608932", "0.656502", "0.6520252", "0.6515715", "0.65111095", "0.6492622", "0.6476392", "0.645858", "0.6454985", "0.64533806", "...
0.74312186
0
Similar to __eq__() function, but not enforcing parameters of environment to be completely equivalent, merely enforcing the initial conditions to be equal, such as states of agents in scene. Hence, all prediction depending parameters, dont have to be equal.
def xerx(YKHO, Elif: 'GraphBasedEnvironment'): assert YKHO.dt == Elif.dt assert YKHO.num_ados == Elif.num_ados assert YKHO.ego.__eq__(Elif.ego, check_class=True) for kavK in YKHO.ados: Di0P = Elif.index_ado_id(ado_id=kavK.id) assert kavK.__eq__(Elif.ados[Di0P], check_class=False, check_h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cIT_(YKHO):\n pass", "def xa14(YKHO, Elif):\n g_Z3 = YKHO.type == Elif.type and YKHO.points == Elif.points and (YKHO.impWeights == Elif.impWeights).all()\n return g_Z3", "def xa14(YKHO, Elif):\n if not isinstance(Elif, cqAk):\n return False\n if not set(YKHO._parameters) == set(Elif._...
[ "0.6620042", "0.6572503", "0.6567789", "0.6558333", "0.6516861", "0.63846976", "0.63816375", "0.6356376", "0.6346838", "0.634175", "0.6339352", "0.6318322", "0.62996024", "0.62983984", "0.62980855", "0.62849766", "0.62705535", "0.62424326", "0.6240433", "0.62337697", "0.62219...
0.6228787
20
Return True if n is a node, False otherwise. Use the expression 'n in G'.
def FYXB(YKHO, exwG): return exwG in YKHO.graph
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ierk(YKHO, exwG):\n try:\n return exwG in YKHO._node\n except TypeError:\n return False", "def Ierk(YKHO, exwG, _9an=None, Os4s=None, yYKB=(True, True)):\n if exwG not in yvY1._node:\n return False\n if _9an is None and Os4s is None:\n return True\n _9an, Os4s = YKH...
[ "0.79234505", "0.73331654", "0.7162034", "0.70518583", "0.6885305", "0.68528926", "0.6837641", "0.68348056", "0.6822399", "0.6818873", "0.6796977", "0.6719783", "0.6718974", "0.6698643", "0.66753995", "0.6667522", "0.66544527", "0.6646619", "0.6634966", "0.66171956", "0.66145...
0.7664692
1
Remove the edge between u and v.
def iyca(YKHO, P6bq, Ty9i): YKHO.graph.remove_edge(P6bq, Ty9i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pJPr(P6bq, Ty9i):\n P6bq.remove_dart(Ty9i)\n Ty9i.remove_dart(P6bq)", "def RVXe(YKHO, Ty9i, P6bq):\n if P6bq in YKHO and Ty9i in YKHO:\n if P6bq in YKHO[Ty9i].neighbors:\n YKHO[Ty9i].neighbors.pop(P6bq)\n if Ty9i in YKHO[P6bq].neighbors:\n YKHO[P6bq].neighbors.pop...
[ "0.8771793", "0.830123", "0.8250663", "0.8061454", "0.7932091", "0.7927485", "0.78869903", "0.78296846", "0.78208584", "0.7776989", "0.76483345", "0.75969285", "0.7580166", "0.7495159", "0.7479592", "0.74658215", "0.7401818", "0.7387806", "0.7323834", "0.7288161", "0.7253062"...
0.86536473
1
Return a list of the nodes in the graph.
def Ziit(YKHO, nPrm=False): return YKHO.graph.nodes(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ziit(YKHO):\n return (exwG for exwG in YKHO.graph)", "def AyQV(YKHO):\n return list(YKHO.graph.keys())", "def aAQH(YKHO):\n return list(YKHO._graph_dict.keys())", "def Ziit(YKHO):\n return list(YKHO._graph.keys())", "def Ziit(YKHO):\n return YKHO.graph.nodes()", "def Ziit(YKHO):\n r...
[ "0.8850891", "0.8716017", "0.8713609", "0.8593657", "0.8493959", "0.8466277", "0.846045", "0.846045", "0.8435629", "0.8272557", "0.81855166", "0.81410825", "0.8139358", "0.8128105", "0.8093076", "0.8061057", "0.8029117", "0.80147856", "0.8010347", "0.800646", "0.79867876", ...
0.7878498
30
Return number of edges in a graph.
def fOCg(YKHO): return YKHO.graph.number_of_edges()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hSVo(pNZh):\n return rrLg.numEdges(pNZh)", "def vi4d(YKHO, pNZh: DirectedGraph):\n return pNZh.get_total_edges()", "def fOCg(yvY1):\n return yvY1.number_of_edges()", "def fOCg(YKHO):\n return YKHO._graph.number_of_edges()", "def fOCg(YKHO):\n return len(list(YKHO.graph.edges()))", "def...
[ "0.8937999", "0.8750315", "0.8669339", "0.83664244", "0.83205664", "0.82675874", "0.82589144", "0.82119906", "0.8197738", "0.81919944", "0.81809896", "0.8177545", "0.81381434", "0.81381434", "0.8113455", "0.8097135", "0.8097135", "0.80969256", "0.80945253", "0.80884343", "0.8...
0.8512661
3
Return a copy of the graph. Returns
def jth9(YKHO): yvY1 = Q1Kq() PwHs = YKHO.graph.copy() yvY1.add_edges_from(PwHs.edges(data=True)) return yvY1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j7TX(YKHO) -> ziRQ.Graph:\n return YKHO.__graph.copy()", "def g_yX(YKHO, pNZh):\n return jth9.deepcopy(pNZh)", "def jth9(YKHO):\n pNZh = Q1Kq(entities=YKHO.entities.copy(), triggers=YKHO.triggers.copy(), relations=YKHO.relations.copy(), roles=YKHO.roles.copy(), mentions=YKHO.mentions.copy())\n ...
[ "0.91374576", "0.88663566", "0.84209037", "0.83355176", "0.83208466", "0.8181198", "0.8060035", "0.79573804", "0.79257804", "0.7889129", "0.77399844", "0.7732183", "0.7730839", "0.7573668", "0.7502161", "0.7441903", "0.7390148", "0.7308592", "0.72710973", "0.71921176", "0.717...
0.8529958
2
Return a deep copy of the graph. Returns
def _qLf(YKHO): return _qLf(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j7TX(YKHO) -> ziRQ.Graph:\n return YKHO.__graph.copy()", "def g_yX(YKHO, pNZh):\n return jth9.deepcopy(pNZh)", "def jth9(YKHO):\n yvY1 = Q1Kq()\n PwHs = YKHO.graph.copy()\n yvY1.add_edges_from(PwHs.edges(data=True))\n return yvY1", "def jth9(YKHO):\n pNZh = Q1Kq(entities=YKHO.entitie...
[ "0.8876165", "0.88430977", "0.84499276", "0.84323376", "0.8354935", "0.8183386", "0.8160287", "0.8120814", "0.79867166", "0.78980374", "0.7889121", "0.7785982", "0.77835613", "0.7649641", "0.76225245", "0.7596854", "0.75185794", "0.7387102", "0.7373822", "0.7367453", "0.73439...
0.7246393
30
Returns the adjacency matrix of self.graph as a numpy matrix.
def GJzn(YKHO, **B2fa): return jHsn.to_numpy_matrix(YKHO.graph, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LLlG(YKHO):\n return LLlG(graph=YKHO)", "def AVje(YKHO):\n return jHsn.to_numpy_array(YKHO.G)", "def LLlG(YKHO):\n if YKHO._matrix is None:\n YKHO._generate_adjacency()\n return YKHO._matrix", "def I0pP(YKHO, *qIxc, **B2fa):\n return jHsn.convert_matrix.to_numpy_matrix(YKHO._graph, ...
[ "0.89469063", "0.88213485", "0.8563493", "0.8271786", "0.8190776", "0.81589866", "0.8107534", "0.7970471", "0.7952628", "0.7943232", "0.7908988", "0.7875956", "0.78361315", "0.78254104", "0.78254104", "0.7816282", "0.7744594", "0.77408504", "0.77155864", "0.76901835", "0.7574...
0.7539606
24
Returns the squared norm of the random vector.
def R104(YKHO): return YKHO.rv_norm_sqr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CkYf(YKHO):\n lRRB = 0\n for BWXx in YKHO._v:\n lRRB += BWXx ** 2\n return PZyS(lRRB)", "def ikiY(YKHO, iArr, shHt=None):\n R7Ie = YKHO.embedding_metric.squared_norm(iArr)\n return R7Ie", "def OzeR(WKvO):\n return PZyS(ikiY(WKvO))", "def CkYf(iArr):\n return oyIN.sqrt(oyIN.dot...
[ "0.78962576", "0.772756", "0.75809634", "0.74565953", "0.73609215", "0.7344664", "0.7334029", "0.7311667", "0.7294667", "0.7265323", "0.7249199", "0.71990997", "0.71720815", "0.71712226", "0.7151849", "0.7151223", "0.7147414", "0.71372724", "0.7135736", "0.71172094", "0.71148...
0.0
-1
Turns on/off Jacobian projection.
def krVk(YKHO, _jd9): YKHO.grad_proj = _jd9 YKHO.reset_rv()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_proje...
[ "0.67827433", "0.67827433", "0.6754594", "0.6008756", "0.58673805", "0.5826253", "0.5747275", "0.57012254", "0.5658517", "0.56102735", "0.5513306", "0.5488189", "0.548691", "0.54590064", "0.53569806", "0.5302713", "0.5297176", "0.5296064", "0.52876526", "0.5282181", "0.528125...
0.4961512
64
Returns the squared norm of the random vector.
def R104(YKHO): return YKHO.rv_norm_sqr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CkYf(YKHO):\n lRRB = 0\n for BWXx in YKHO._v:\n lRRB += BWXx ** 2\n return PZyS(lRRB)", "def ikiY(YKHO, iArr, shHt=None):\n R7Ie = YKHO.embedding_metric.squared_norm(iArr)\n return R7Ie", "def OzeR(WKvO):\n return PZyS(ikiY(WKvO))", "def CkYf(iArr):\n return oyIN.sqrt(oyIN.dot...
[ "0.78962576", "0.772756", "0.75809634", "0.74565953", "0.73609215", "0.7344664", "0.7334029", "0.7311667", "0.7294667", "0.7265323", "0.7249199", "0.71990997", "0.71720815", "0.71712226", "0.7151849", "0.7151223", "0.7147414", "0.71372724", "0.7135736", "0.71172094", "0.71148...
0.0
-1
Turns on/off Jacobian projection.
def krVk(YKHO, _jd9): YKHO.grad_proj = _jd9 YKHO.reset_rv()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_proje...
[ "0.67827433", "0.67827433", "0.6754594", "0.6008756", "0.58673805", "0.5826253", "0.5747275", "0.57012254", "0.5658517", "0.56102735", "0.5513306", "0.5488189", "0.548691", "0.54590064", "0.53569806", "0.5302713", "0.5297176", "0.5296064", "0.52876526", "0.5282181", "0.528125...
0.4961512
63
Returns the squared norm of the random vector.
def R104(YKHO): return YKHO.rv_norm_sqr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CkYf(YKHO):\n lRRB = 0\n for BWXx in YKHO._v:\n lRRB += BWXx ** 2\n return PZyS(lRRB)", "def ikiY(YKHO, iArr, shHt=None):\n R7Ie = YKHO.embedding_metric.squared_norm(iArr)\n return R7Ie", "def OzeR(WKvO):\n return PZyS(ikiY(WKvO))", "def CkYf(iArr):\n return oyIN.sqrt(oyIN.dot...
[ "0.78962576", "0.772756", "0.75809634", "0.74565953", "0.73609215", "0.7344664", "0.7334029", "0.7311667", "0.7294667", "0.7265323", "0.7249199", "0.71990997", "0.71720815", "0.71712226", "0.7151849", "0.7151223", "0.7147414", "0.71372724", "0.7135736", "0.71172094", "0.71148...
0.0
-1
Turns on/off Jacobian projection.
def krVk(YKHO, _jd9): YKHO.grad_proj = _jd9 YKHO.reset_rv()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_proje...
[ "0.67827433", "0.67827433", "0.6754594", "0.6008756", "0.58673805", "0.5826253", "0.5747275", "0.57012254", "0.5658517", "0.56102735", "0.5513306", "0.5488189", "0.548691", "0.54590064", "0.53569806", "0.5302713", "0.5297176", "0.5296064", "0.52876526", "0.5282181", "0.528125...
0.4961512
62
Turns on/off Jacobian projection.
def krVk(YKHO, _jd9): YKHO.grad_proj = _jd9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_proje...
[ "0.67827433", "0.67827433", "0.6754594", "0.6008756", "0.58673805", "0.5826253", "0.5747275", "0.57012254", "0.5658517", "0.56102735", "0.5513306", "0.5488189", "0.548691", "0.54590064", "0.53569806", "0.5302713", "0.5297176", "0.5296064", "0.52876526", "0.5282181", "0.528125...
0.5142153
37
Turns on/off Jacobian projection.
def krVk(YKHO, _jd9): YKHO.grad_proj = _jd9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_proje...
[ "0.67827433", "0.67827433", "0.6754594", "0.6008756", "0.58673805", "0.5826253", "0.5747275", "0.57012254", "0.5658517", "0.56102735", "0.5513306", "0.5488189", "0.548691", "0.54590064", "0.53569806", "0.5302713", "0.5297176", "0.5296064", "0.52876526", "0.5282181", "0.528125...
0.5142153
36
Turns on/off Jacobian projection.
def krVk(YKHO, _jd9): YKHO.grad_proj = _jd9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_proje...
[ "0.67827433", "0.67827433", "0.6754594", "0.6008756", "0.58673805", "0.5826253", "0.5747275", "0.57012254", "0.5658517", "0.56102735", "0.5513306", "0.5488189", "0.548691", "0.54590064", "0.53569806", "0.5302713", "0.5297176", "0.5296064", "0.52876526", "0.5282181", "0.528125...
0.5142153
34
Turns on/off Jacobian projection.
def krVk(YKHO, _jd9): YKHO.grad_proj = _jd9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_proje...
[ "0.67827433", "0.67827433", "0.6754594", "0.6008756", "0.58673805", "0.5826253", "0.5747275", "0.57012254", "0.5658517", "0.56102735", "0.5513306", "0.5488189", "0.548691", "0.54590064", "0.53569806", "0.5302713", "0.5297176", "0.5296064", "0.52876526", "0.5282181", "0.528125...
0.5142153
35
Turns on/off Jacobian projection.
def krVk(YKHO, _jd9): YKHO.grad_proj = _jd9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_projection = not YKHO.parallel_projection", "def bkPe(YKHO):\n if YKHO._panel is not None:\n YKHO.parallel_proje...
[ "0.67827433", "0.67827433", "0.6754594", "0.6008756", "0.58673805", "0.5826253", "0.5747275", "0.57012254", "0.5658517", "0.56102735", "0.5513306", "0.5488189", "0.548691", "0.54590064", "0.53569806", "0.5302713", "0.5297176", "0.5296064", "0.52876526", "0.5282181", "0.528125...
0.5142153
33
Retrieve a list of counties.
def jQzr(YKHO) -> list: return YKHO.counties
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(YKHO) -> list:\n nDeK = YKHO.read()\n if nDeK is None:\n nDeK = YKHO.retrieve()\n return nDeK", "def GKJL(YKHO):\n B2Dn = G4JS.get(rOmR)\n nDeK = YKHO.html2list(B2Dn.content)\n YKHO.save(nDeK)\n return nDeK", "def Sk5E(H5ew=''):\n if not H5ew:\n print('Please supp...
[ "0.7397501", "0.7049155", "0.6788169", "0.66347337", "0.6534404", "0.6058147", "0.6050494", "0.5887801", "0.58507913", "0.5850715", "0.5839816", "0.58389723", "0.5826432", "0.5782342", "0.5778419", "0.57342565", "0.5704753", "0.5702488", "0.56940144", "0.56882364", "0.5639102...
0.84794885
0
Close application from escape key.
def pYEe(YKHO, tvqc): if tvqc.key() == uaAZ.Key_Escape: YKHO.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n YKHO.root_window.keypad(False)\n ltHt()\n cU4Y()\n cvEp()", "def pYEe(YKHO, tTpl):\n if tTpl.key() == wDYU.Qt.Key_Escape:\n YKHO.close()", "def eFgP(YKHO, tvqc):\n HwRy.exit()", "def YuV4(YKHO):\n YKHO.close()", "def DDI8(YKHO):\n PcHS.nocbreak()\n YKHO.s...
[ "0.76446676", "0.74204445", "0.737152", "0.7109257", "0.692683", "0.68874866", "0.6886923", "0.6886923", "0.6886923", "0.6814182", "0.6809832", "0.6799381", "0.6793955", "0.6792879", "0.67901474", "0.67804533", "0.675396", "0.6730608", "0.67189145", "0.66905445", "0.6677784",...
0.73466665
3
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ == None: return None else: Gdqg = cmPJ.get('grant_type') zb3C = cmPJ.get('client_id') Cxz5 = cmPJ.get('client_secret') rrBf = cmPJ.get('scope') return Emd4(Gdqg, zb3C, Cxz5, rrBf)
{ "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.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
Draws the grid onto the given screen
def MG5I(YKHO): YKHO.screen.fill((255, 255, 255)) a9eO.draw.rect(YKHO.screen, YKHO.backCol, YKHO.background) for WKvO in YKHO.grid: a9eO.draw.rect(YKHO.screen, YKHO.lColor, WKvO) a9eO.draw.rect(YKHO.screen, YKHO.curCol, YKHO.cursor, YKHO.cw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tlUU(Vjhr, zNig):\n pass", "def JmFt(YKHO):\n YKHO.screen.fill(Z9rn.WHITE)\n for P2GO in range(YKHO.rows):\n for gDyN in range(YKHO.rows):\n VmPb = YKHO.grid.get_cell(P2GO, gDyN)\n VmPb.draw(YKHO.screen)\n if VmPb.is_path():\n VmPb.draw_path(YKH...
[ "0.8557437", "0.83137614", "0.8299578", "0.8124205", "0.8076295", "0.8073416", "0.7921886", "0.7896852", "0.78844947", "0.78211623", "0.7820143", "0.7819843", "0.7788983", "0.7759274", "0.77361923", "0.77197313", "0.7708773", "0.76724124", "0.7607245", "0.7590629", "0.75767",...
0.0
-1
Plot an image using a diverging color scheme with a colorbar. The call to plt.clf() reduces the overhead of calling this function many times.
def t7Mi(LNo8, VqRE): LNo8 = oyIN.array(LNo8) aNZO = QrM1.gca() Xn71 = aNZO.imshow(LNo8, cmap=Bcwd.get_cmap('BrBG')) QrM1.colorbar(Xn71) QrM1.savefig(VqRE) QrM1.clf()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mv7O(Xn71, iMGt='gray', wytA=(7, 8), BBLH=False, bjyK=True, GoGv='nearest'):\n from matplotlib import pyplot as QrM1\n from mpl_toolkits.axes_grid1 import make_axes_locatable\n LZpg = QrM1.figure(figsize=wytA)\n aNZO = LZpg.add_subplot(1, 1, 1)\n Zrdc = aNZO.imshow(Xn71, cmap=iMGt, interpolation...
[ "0.7269807", "0.70618176", "0.69724464", "0.6942744", "0.6859006", "0.68531746", "0.6832946", "0.6832946", "0.6791409", "0.6787658", "0.67528856", "0.671009", "0.6657359", "0.66243154", "0.6553867", "0.65294075", "0.6525931", "0.6513159", "0.6453296", "0.6448127", "0.64362556...
0.61972153
45
Inser M into N from j to i bits (inclusive)
def xBQY(ywwl, E3D9, r845, YRbF): QS7v = bklV(r845, YRbF) ZHfW = Va54(QS7v, YRbF) ywwl = ywwl & ZHfW E3D9 = E3D9 << YRbF print(bin(ywwl | E3D9)) return ywwl | E3D9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DIVg(ywwl, E3D9, YRbF, r845):\n d7Rd = XxJb(E3D9)\n lIfB = XxJb(ywwl)\n if d7Rd != r845 - YRbF + 1:\n raise IndexError('The length of M must be equal to j - i')\n ywwl = fuh0(ywwl, YRbF, r845)\n ywwl = ywwl | E3D9 << YRbF\n return ywwl", "def JPHp(YKHO, YRbF, WKvO):\n assert WKvO ...
[ "0.6743358", "0.6294015", "0.5722369", "0.56685454", "0.56315744", "0.5579806", "0.55605185", "0.5549378", "0.5538279", "0.55352765", "0.55203784", "0.5494451", "0.5448879", "0.54395527", "0.54356176", "0.5385008", "0.5374427", "0.5361569", "0.5357103", "0.53520894", "0.53433...
0.7839468
0
Mean squared error regression loss.
def hkHB(Y8eF, aMgO): return SDab(Y8eF, aMgO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EWWT(yvT9, _Il2):\n with ZylS.name_scope('mean_squared_error'):\n hkHB = ZylS.losses.mean_squared_error(_Il2, yvT9[:, :, :, :, 1])\n return hkHB", "def hkHB(N77f, AIKr):\n return ((N77f - AIKr) ** 2).mean()", "def xBoL(YKHO):\n if YKHO.params['loss'] == 'mse':\n if YKHO.data_type ...
[ "0.78561044", "0.7711661", "0.76193076", "0.75522566", "0.7539469", "0.73408264", "0.73198545", "0.7275739", "0.7253016", "0.7240495", "0.7230006", "0.72281045", "0.7228019", "0.72009695", "0.718503", "0.7180773", "0.7158568", "0.7155158", "0.713012", "0.71125627", "0.7104596...
0.6956594
42
Root Mean Square Error
def iAxY(Y8eF, aMgO): return oyIN.sqrt(SDab(Y8eF, aMgO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())", "def ewIN(LTIa):\n Qth0 = True\n if not Qth0:\n sum = 0\n for AU8u in LTIa.values():\n sum += pow(oyIN.abs(AU8u.get_pollution_value()) - oyIN.abs(AU8u.get_actual_pollution_value()), 2)\n iAxY = epAf.sqrt(sum ...
[ "0.83944285", "0.79054683", "0.77627724", "0.76217693", "0.76056856", "0.75826854", "0.7498672", "0.74337614", "0.7395462", "0.7395462", "0.73223907", "0.7305311", "0.72643656", "0.72603196", "0.72352815", "0.7208329", "0.7130869", "0.7124734", "0.7114926", "0.7090008", "0.70...
0.0
-1
Root Mean Squared Logarithm Error
def dUVe(Y8eF, aMgO): for YRbF in range(len(Y8eF)): if Y8eF[YRbF] < 0 or aMgO[YRbF] < 0: continue return oyIN.sqrt(zVvD(Y8eF, aMgO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())", "def _td_(YKHO) -> float:\n return YKHO._call_java('rootMeanSquaredError')", "def bkHJ(YKHO):\n [PnUn, Zar0] = [YKHO.input_means, YKHO.input_vars + ZylS.exp(YKHO.lvar_noise)]\n vGKb = ZylS.math.log(ZylS.cast(ZylS.shape(PnUn)[0], GPtr.f...
[ "0.7350635", "0.6965502", "0.69452196", "0.68613917", "0.686139", "0.6834994", "0.6813465", "0.67743576", "0.6733331", "0.6616717", "0.6616717", "0.66064864", "0.65960824", "0.6543501", "0.6521456", "0.6483833", "0.6462742", "0.64562154", "0.643215", "0.64287126", "0.63555694...
0.64581984
17
Root Mean Squared Logarithmic Error with negative values.
def A9Kx(Y8eF, aMgO): sum = 0.0 for WKvO in range(len(aMgO)): if aMgO[WKvO] < 0 or Y8eF[WKvO] < 0: continue XP5J = oyIN.log(aMgO[WKvO] + 1) Mkmy = oyIN.log(Y8eF[WKvO] + 1) sum = sum + (XP5J - Mkmy) ** 2 WTDX = (sum / len(aMgO)) ** 0.5 return WTDX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BXUh(BHCt, dmYe, XTcr) -> float:\n return -1 * ((oyIN.power(10, BHCt.predict(dmYe)) / oyIN.power(10, XTcr) - 1) ** 2).mean()", "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())", "def _td_(YKHO) -> float:\n return YKHO._call_java('rootMeanSquaredError')", "def dUVe(Y8eF, aMgO):\n ...
[ "0.73206294", "0.6699086", "0.6653864", "0.64926505", "0.64867383", "0.6469306", "0.6467178", "0.64569277", "0.6415854", "0.6353852", "0.63100564", "0.62868774", "0.62721765", "0.62550044", "0.6243109", "0.6241849", "0.6215477", "0.6209952", "0.6189643", "0.6186285", "0.61733...
0.631185
10
Normalized Root Mean Square Error.
def _TTN(Y8eF, aMgO): return iAxY(Y8eF, aMgO) / (Y8eF.max() - Y8eF.min())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())", "def _td_(YKHO) -> float:\n return YKHO._call_java('rootMeanSquaredError')", "def Wk1P(YKHO) -> oyIN.float:\n try:\n return SDab(YKHO.u_exact, YKHO.u_numerical)\n except ValueError:\n return oyIN.inf", "def OHCj(Y8eF, a...
[ "0.8254531", "0.79318213", "0.77501535", "0.7715056", "0.74284375", "0.7384122", "0.7365265", "0.7295063", "0.7246037", "0.7228721", "0.7227555", "0.7194333", "0.7183645", "0.71768945", "0.71596205", "0.7138751", "0.71256715", "0.7093562", "0.70872694", "0.7066544", "0.702861...
0.0
-1
Normalized Root Mean Squared Logarithmic Error.
def yfwv(Y8eF, aMgO): return dUVe(Y8eF, aMgO) / (Y8eF.max() - Y8eF.min())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())", "def _td_(YKHO) -> float:\n return YKHO._call_java('rootMeanSquaredError')", "def OHCj(Y8eF, aMgO):\n hkHB = SDab(Y8eF, aMgO)\n SRYB = oyIN.var(Y8eF)\n _TTN = oyIN.sqrt(hkHB / SRYB)\n return 1 - _TTN", "def MbRI(WKvO, JBMS, IR5...
[ "0.7027448", "0.69178075", "0.6809915", "0.6713083", "0.66973305", "0.6685998", "0.6641735", "0.6633833", "0.6509599", "0.645015", "0.6415918", "0.63904744", "0.63600624", "0.63429755", "0.63159865", "0.6306056", "0.6287928", "0.62813", "0.627768", "0.6260279", "0.6256788", ...
0.0
-1
Write json file from the riva_dict dictionary.
def gk4j(qaEx, b8w1): with open(qaEx, 'w') as _RR0: qQXR.dump(b8w1, _RR0, indent=4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uP8n(YKHO, mfEH, pMsk, IznC=None):\n if IznC != None:\n pMsk = Hy7s.path.join(pMsk, IznC)\n with open(pMsk, 'w') as eHNT:\n qQXR.dump(mfEH, eHNT)", "def mVVj(Ux0P, fK8P):\n with open(Ux0P, 'w', encoding='utf-8') as PiFR:\n PiFR.write(qQXR.dumps(fK8P))", "def U1ai(fGC9, FYKK):\...
[ "0.7214722", "0.712248", "0.7101123", "0.7014116", "0.6965508", "0.6961808", "0.69485164", "0.6946732", "0.69230497", "0.68724006", "0.6805377", "0.6791108", "0.6780189", "0.67535305", "0.67487204", "0.67283607", "0.6724831", "0.6705805", "0.66965675", "0.66861784", "0.668304...
0.8306174
0
A shortened version of the original function ctc_decoder_predictions_tensor(). Replaced decode_tokens_to_str() function with decode_tokens_to_str_with_ts().
def _IdI(YKHO, N6Z1: torch.Tensor, IGeg: torch.Tensor=None) -> x1iM[str]: eV_O, M_Ra = ([], []) RGLi = N6Z1.long().cpu() for QyVM in range(RGLi.shape[YKHO.batch_dim_index]): o3Uj = RGLi[QyVM].detach().numpy().tolist() if IGeg is not None: o3Uj = o3Uj[:IGeg[QyVM]] Zlm7, JZ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x8I_(YKHO, DGpI, sjgm):\n QOe9 = 69\n PV3c = ZylS.placeholder(ZylS.float32, [None, QOe9])\n Crrw = ZylS.placeholder(ZylS.float32, [None, 250])\n VmPb = ZylS.nn.rnn_cell.LSTMCell(YKHO.hidden_size, state_is_tuple=True)\n PnLk, iHgY = ZylS.nn.dynamic_rnn(VmPb, g4y1, dtype=ZylS.float32)\n PnLk = ...
[ "0.6238402", "0.6052137", "0.6039495", "0.58223194", "0.5793589", "0.57467306", "0.57322013", "0.5663611", "0.5656429", "0.5648759", "0.5636895", "0.563324", "0.56255853", "0.5622079", "0.559575", "0.557927", "0.55746883", "0.5572621", "0.5561458", "0.55560493", "0.55481774",...
0.6608581
0
Calculate Wordlevel Diarization Error Rate (WDER). WDER is calculated by counting the the wrongly diarized words and divided by the total number of words recognized by the ASR model.
def xRkA(YKHO, SKWC, vWhJ, OufC, RMu4): odLo = {} Ehkf, TnUX = (0, 0) for G1Hx, ITlv in enumerate(OufC): Crrw = RMu4[G1Hx] HNcl = yXZ2(ITlv) WYX6 = vWhJ[HNcl]['mapping'] IChv = SKWC[HNcl]['words'] or8S, UYES = (0, 0) Ponh = len(IChv) nPLe = [[float(WKv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ht0h(YKHO):\n RToW = YKHO.lm.get_model()\n YKHO.denominator_error_tables = {'one_letter': {'#': 0}, 'two_letters': {}}\n for u8Mh, UHFx in RToW.items():\n NMzd = u8Mh.split(' ')\n for GIN8 in NMzd:\n i2Qs = '#'\n YKHO.denominator_error_tables['one_letter'][i2Qs] += ...
[ "0.6016736", "0.5991122", "0.59826005", "0.5950145", "0.5796203", "0.57447374", "0.5720698", "0.56513715", "0.5622816", "0.56039983", "0.55987495", "0.5594076", "0.5591192", "0.5566489", "0.5538576", "0.54887146", "0.5488632", "0.54879755", "0.54844373", "0.5483108", "0.54710...
0.6697731
0