query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Return a new instance of the specified method.
def callable(YKHO, NKcE): if NKcE not in YKHO.all_methods: raise Q5dC(NKcE) try: mPQc = NKcE.split('.')[-1] if NKcE in YKHO.native_methods: GSwS = 'PLC.Methods.' + NKcE else: GSwS = YKHO.other_methods_map[NKcE] yR_P = __import__(GSwS, globals(), lo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gYhZ(*qIxc, **B2fa):\n H5ew = fAZW(*qIxc, **B2fa)\n if H5ew not in NKcE.cache:\n NKcE.cache[H5ew] = NKcE(*qIxc, **B2fa)\n return NKcE.cache[H5ew]", "def sF_3(YKHO, *d7pR, **_Wat):\n try:\n Ynoy.acquire()\n return m2Zb(YKHO, *d7pR, **_Wat)\n finally:\n Ynoy.release()...
[ "0.7451693", "0.68201995", "0.64889497", "0.64889497", "0.61384743", "0.59899044", "0.59899044", "0.59707767", "0.596249", "0.5905678", "0.58328", "0.582707", "0.582707", "0.582707", "0.582707", "0.582707", "0.582707", "0.5821479", "0.5782157", "0.57746065", "0.57746065", "...
0.61897504
4
Estimate the `magnitude' parameter beta from data points.
def Oqts(AOlJ, vZP7): assert AOlJ.ndim == 1 and AOlJ.shape == vZP7.shape exwG = AOlJ.size C0a5 = AOlJ.mean() dMYj = (vZP7 ** 2).sum() / ((AOlJ - C0a5) ** 2).sum() * (exwG - 1) / float(exwG) UqYS = PZyS(((AOlJ - C0a5) ** 2).sum() / (exwG - 1) * kLQb(-dMYj)) return UqYS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XTtZ(YKHO):\n return oyIN.matmul(YKHO.rotation_x, YKHO.beta_z)", "def UqYS(YKHO):\n ONmd = YKHO.eTheta()\n IckY = oyIN.cos(YKHO.omega())\n return YKHO.a1() / Z9rn.c * (1 - ONmd ** 2) ** 0.5 * IckY", "def I0L3(YKHO):\n return GIWE(YKHO.solution, YKHO.use_const)[1]", "def pwlT(YKHO):\n re...
[ "0.65688133", "0.642205", "0.6313718", "0.63035256", "0.6100482", "0.6047445", "0.60314447", "0.60250443", "0.59190375", "0.59039533", "0.59039533", "0.5852442", "0.5829021", "0.5821624", "0.5817636", "0.5790095", "0.57856953", "0.5782379", "0.57470626", "0.5745991", "0.57295...
0.59558654
8
A utility function used by calc_gamma, calculates the average ratio of real residual to the estimated residual, which is used to make decision in the bisection.
def CXCI(UqYS, KMvS, WKvO, AOlJ, vZP7, LVAh, W8Hb, y0IR): exwG = WKvO.size IUA4 = max(1, exwG / 5) WSoa = sorted(range(exwG), key=WKvO.__getitem__) QuUP = 0.0 for YRbF in range(0, exwG, IUA4): pan_ = WSoa[YRbF:YRbF + IUA4] P8oC = WSoa[:YRbF] + WSoa[YRbF + IUA4:] for r845 in p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UQOF(etQF):\n JBMS = oyIN.mean(etQF)\n jNjG = etQF[etQF > JBMS]\n fLHs = etQF[etQF < JBMS]\n WUCm = oyIN.mean(oyIN.square(jNjG - JBMS))\n SA32 = oyIN.mean(oyIN.square(fLHs - JBMS))\n dMYj = SA32 / WUCm\n return dMYj", "def nugo(UqYS, KMvS, WKvO, AOlJ, vZP7, LVAh, W8Hb, y0IR, WAwJ, oZXi, ...
[ "0.63875747", "0.6368717", "0.61393255", "0.6122178", "0.61193264", "0.606439", "0.6046174", "0.5893349", "0.580081", "0.5713853", "0.55815834", "0.5578031", "0.5545328", "0.55436975", "0.5543313", "0.554004", "0.5491286", "0.54871476", "0.54819727", "0.54710394", "0.546921",...
0.6469571
0
Return the boundary of an expansion order set.
def S_Uu(WAwJ): Csk6 = len(WAwJ[0]) oZXi = [] for tknT in WAwJ: for G1Hx in range(Csk6): Iw1X = tknT[:G1Hx] + (tknT[G1Hx] + 1,) + tknT[G1Hx + 1:] if Iw1X not in WAwJ and Iw1X not in oZXi: oZXi.append(Iw1X) Se4C = [] for tknT in oZXi: _gQ_ = () ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOMr(YRbF):\n Fg_i = YKHO.args[YRbF].boundary\n for r845, jzdc in enumerate(YKHO.args):\n if r845 != YRbF:\n Fg_i = Fg_i - jzdc.interior\n return Fg_i", "def zXil(YKHO):\n return YKHO.substrates.boundary", "def X7zS(YKHO):\n return YKHO._bboxes[0][0]", "def Mf88(YKHO):\n ...
[ "0.64485127", "0.60470307", "0.5662163", "0.5626022", "0.562263", "0.55916125", "0.5367826", "0.5320096", "0.5313554", "0.529304", "0.526566", "0.5234156", "0.5227843", "0.51969856", "0.5184476", "0.5165962", "0.5150535", "0.5123518", "0.51063526", "0.50904906", "0.50799584",...
0.6083883
1
A utility function used by calc_gamma, calculates the average ratio of real residual to the estimated residual, which is used to make decision in the bisection.
def nugo(UqYS, KMvS, WKvO, AOlJ, vZP7, LVAh, W8Hb, y0IR, WAwJ, oZXi, Se4C): exwG = WKvO.shape[0] IUA4 = max(1, exwG / 5) WSoa = sorted(range(exwG), key=lambda YRbF: tuple(WKvO[YRbF])) QuUP, DNax = (0.0, 0.0) for YRbF in range(0, exwG, IUA4): pan_ = WSoa[YRbF:YRbF + IUA4] P8oC = WSoa[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CXCI(UqYS, KMvS, WKvO, AOlJ, vZP7, LVAh, W8Hb, y0IR):\n exwG = WKvO.size\n IUA4 = max(1, exwG / 5)\n WSoa = sorted(range(exwG), key=WKvO.__getitem__)\n QuUP = 0.0\n for YRbF in range(0, exwG, IUA4):\n pan_ = WSoa[YRbF:YRbF + IUA4]\n P8oC = WSoa[:YRbF] + WSoa[YRbF + IUA4:]\n ...
[ "0.6469043", "0.6387396", "0.6139157", "0.6121806", "0.6120074", "0.60657007", "0.6045959", "0.5893522", "0.5800959", "0.57134116", "0.5582346", "0.5578301", "0.5544524", "0.5543816", "0.55428636", "0.5540894", "0.5490659", "0.54870886", "0.54824674", "0.5470967", "0.5469606"...
0.6368068
2
Computes the % of correctly ordered pairs
def vjyh(rPrw, yRej): Mkjq = rPrw Emiq = yRej gXXc = ht2j.gt(Mkjq, Emiq) return float(gXXc.sum()) / gXXc.size(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n_td(pjwG, aqWg):\n yKcO = 0\n wjRY = 0\n for YRbF in aqWg:\n if yKcO < pjwG:\n wjRY += YRbF\n yKcO += 1\n else:\n break\n return wjRY / oyIN.sum(aqWg)", "def RtJS(QTg7):\n xAfp = list(map(lambda WKvO: WKvO // 2, QTg7))\n G1ca = list(map(lambda...
[ "0.7133553", "0.6632147", "0.6395378", "0.6173139", "0.61660075", "0.6111901", "0.60757166", "0.6073128", "0.6056997", "0.6033734", "0.6018136", "0.60180837", "0.6015868", "0.60105246", "0.5985948", "0.5945146", "0.5944799", "0.5936104", "0.5917974", "0.59135574", "0.5884238"...
0.0
-1
Mainly for sklearn's classifiers. Since probabilities are needed to compute the ROC, the .predict_proba() function is used. However, this function returns both the probabilities to be False [0] and the probabilities to be True [1], thus the array is reshaped to only return the probabilities to be True.
def NZJA(M_NZ, EcVT): LVAh = M_NZ.predict_proba(EcVT) if oyIN.any(oyIN.array(M_NZ.n_classes_) < 2): LVAh = oyIN.array([r845 if YRbF > 1 else oyIN.concatenate((r845, oyIN.zeros([len(r845), 1])), axis=1) for YRbF, r845 in zip(M_NZ.n_classes_, LVAh)]) return oyIN.transpose(LVAh)[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KR85(YKHO, WKvO, **B2fa):\n B2fa = YKHO.filter_sk_params(ileL.predict_proba, B2fa)\n BFeB = YKHO.model.predict_proba(WKvO, **B2fa)\n if BFeB.shape[1] == 1:\n BFeB = oyIN.hstack([1 - BFeB, BFeB])\n return BFeB", "def KR85(YKHO, EcVT):\n return YKHO._apply_predict_method(EcVT, 'predict_pr...
[ "0.7622108", "0.75802547", "0.7386499", "0.7375487", "0.7361235", "0.7345964", "0.73405915", "0.73054945", "0.7303352", "0.7298513", "0.72737855", "0.7251661", "0.7235128", "0.72160715", "0.7174717", "0.71465904", "0.71311295", "0.7129355", "0.7096944", "0.70907897", "0.70828...
0.75003976
2
Calculate the coverage the proportion of data that has labels predicted.
def zcP2(YKHO, LVAh): vFZ1 = sum(oyIN.any(YKHO._round(LVAh), axis=1)) / len(LVAh) return vFZ1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vFZ1(Y8eF, aMgO):\n r8hN = ZylS.shape(aMgO)[1] - ZylS.constant(1, dtype=ZylS.int32)\n cDK5 = ZylS.cast(ZylS.shape(aMgO)[0], ZylS.float32)\n yQA0 = ZylS.reduce_sum(ZylS.where(ZylS.argmax(aMgO, axis=1, output_type=ZylS.int32) == r8hN, 1.0, 0.0))\n return ZylS.constant(1.0) - yQA0 / cDK5", "def FTWH...
[ "0.67390877", "0.6608518", "0.6575663", "0.65082085", "0.6373211", "0.63284093", "0.62952787", "0.6295077", "0.62665135", "0.6231143", "0.61568385", "0.61430395", "0.6131901", "0.6128283", "0.6109812", "0.60734516", "0.60718584", "0.60601395", "0.6022359", "0.6012619", "0.600...
0.6108809
15
Gets a 'default' Channel for the connection. Only one channel is created per AMQPConnection instance (note that this is not necessarily the same as one Channel per actual connection, but Channels are cheap anyway).
def YwkQ(YKHO): if not hasattr(YKHO, '_channel'): YKHO._channel = YKHO.new_channel() return YKHO._channel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EJ08(YKHO):\n if YKHO.channel is None or not YKHO.channel.is_open:\n if not YKHO.connection.is_open:\n YKHO.connection = _tLx.get_connection(YKHO.connection_name)\n YKHO.channel = YKHO.connection.channel()\n return YKHO.channel", "def YwkQ(YKHO):\n return DIz8({'id': YKHO.ch...
[ "0.7219447", "0.68459815", "0.64894015", "0.64713186", "0.6403123", "0.6205544", "0.6170735", "0.6151779", "0.61111003", "0.61078775", "0.60045123", "0.60045123", "0.5985535", "0.5985523", "0.5940445", "0.593904", "0.5935622", "0.59029096", "0.5878804", "0.5878804", "0.575974...
0.7095066
1
Pick a random location that isn't in a wall or target.
def YPhw(YKHO): while True: Xf84 = (tuKI.uniform(YKHO.worldbox.tl[0], YKHO.worldbox.br[0]), tuKI.uniform(YKHO.worldbox.tl[1], YKHO.worldbox.br[1])) if not YKHO.is_wall(Xf84) and (not YKHO.is_target(Xf84)): return Xf84
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPhw(YKHO):\n return tuKI.choice(YKHO.locations_list)", "def PHAT(YKHO):\n IA3S, dCLF, Cbv1, JRC0, LChT, hIsG = YKHO.get_max_and_min()\n if IA3S == float('-inf') and JRC0 == float('inf') and (dCLF == float('-inf')) and (LChT == float('inf')) and (Cbv1 == float('-inf')) and (hIsG == float('inf')):\n ...
[ "0.76451266", "0.6997501", "0.69907653", "0.69907653", "0.6788121", "0.67466176", "0.67274874", "0.66605395", "0.6597831", "0.6572638", "0.65710706", "0.64925486", "0.6464703", "0.6426935", "0.6392966", "0.6390391", "0.6375245", "0.6370135", "0.6358471", "0.62937176", "0.6195...
0.7952381
0
Return a list of boxes (used for interactive mode display).
def c8Yy(YKHO): oUSw = [(' ', YKHO.worldbox.tl, YKHO.worldbox.br)] oUSw += [('.', Fg_i.tl, Fg_i.br) for Fg_i in YKHO.wallboxes] oUSw += [('x', Fg_i.tl, Fg_i.br) for Fg_i in YKHO.targetboxes] f1Tw = 100 oUSw += [('a', (YKHO.i_state[0] - YKHO.dx * f1Tw, YKHO.i_state[1] - YKHO.dx * f1Tw), (YKHO.i_state...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c8Yy(YKHO) -> x1iM[rh6a]:\n return [rh6a.from_npbox(KQog) for KQog in YKHO.boxlist.get()]", "def c8Yy():\n oUSw = []\n gyaT = [256]\n ODNM = [WKvO for WKvO in range(0, 1280, 12)]\n mBzJ = [LVAh for LVAh in range(360, 720, 12)]\n for KAtR in gyaT:\n for NQ89 in ODNM:\n for ...
[ "0.7462611", "0.7340586", "0.73056316", "0.7095799", "0.68854046", "0.67790186", "0.67411995", "0.672064", "0.67003626", "0.66541666", "0.66409636", "0.6582219", "0.65562224", "0.6489382", "0.6479569", "0.63949287", "0.63466483", "0.6213459", "0.61513567", "0.61210495", "0.61...
0.7311949
2
Return the email address to satisfy FlaskLogin's requirements.
def unpH(YKHO): return YKHO.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')", "def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')", "def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')", "def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')", "def D3lj(YKHO) -> str:\n return ...
[ "0.74636996", "0.74636996", "0.74636996", "0.74636996", "0.744493", "0.744493", "0.744493", "0.7439936", "0.7439936", "0.7439936", "0.7439936", "0.7439936", "0.7439936", "0.7439936", "0.7421634", "0.72910833", "0.7233626", "0.7228416", "0.72064245", "0.7176058", "0.71472573",...
0.0
-1
Return True if the user is authenticated.
def rts1(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rts1(YKHO):\n return YKHO.user is not None and YKHO.state == yTCL.authenticated", "def rts1(YKHO):\n return bool(Vu5X())", "def rts1(YKHO) -> bool:\n return YKHO._authenticated", "def rts1(YKHO):\n return YKHO.authenticated", "def rts1(YKHO):\n return YKHO.authenticated", "def rts1(YKH...
[ "0.8739372", "0.87086535", "0.8613915", "0.8609252", "0.8580474", "0.8580474", "0.8580474", "0.8580474", "0.8580474", "0.8580474", "0.8580474", "0.8580474", "0.8580474", "0.8580474", "0.8580474", "0.8580474", "0.8580474", "0.8578436", "0.83723366", "0.83587176", "0.8258534", ...
0.86574197
5
False, as anonymous users aren't supported.
def wDqn(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wDqn():\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def _JeQ(YKHO):\n return YKHO._is_anonymous_access_allowed", "def rts1(YKHO):\n return False", "def SzmQ(rxPi):\n rxPi = rxPi or koZo()\n return str(rxPi.get('user_id')) == Cj1w", "def...
[ "0.85624325", "0.83800477", "0.82456774", "0.7815806", "0.7576082", "0.72904116", "0.72619915", "0.72347337", "0.72347337", "0.72347337", "0.72347337", "0.72347337", "0.72347337", "0.72347337", "0.72338396", "0.715833", "0.7106215", "0.70944613", "0.70567185", "0.70209265", "...
0.8360155
16
Check if length (number of results for a query) is below the maximum This function raises an error if the given length (or number of results for a query) is below the maximum value
def YnL5(u54L): if u54L > Uoxs: eHh0 = 'The length value (%s) is higher than the ' % u54L eHh0 += 'limit length (%s)' % Uoxs raise ValueError(eHh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adU1(YKHO, pckr):\n return pckr > YKHO.maxRecordCount", "def bWsl(YKHO):\n return YKHO.total_max is not None and YKHO.counter > YKHO.total_max", "def lyDF(YKHO, BWXx):\n return YKHO.maximum_length is None or len(BWXx) <= YKHO.maximum_length", "def Iykt(YKHO):\n if len(YKHO.selected) >= YKHO.l...
[ "0.67209107", "0.6538787", "0.62144583", "0.6208526", "0.61998534", "0.6196866", "0.6189787", "0.61853564", "0.61585903", "0.61572725", "0.60966265", "0.6092299", "0.60781157", "0.6072257", "0.6029848", "0.59820503", "0.5981683", "0.59764844", "0.59662706", "0.5963452", "0.59...
0.63516164
2
Build the URL to retrieve data or taxon This function builds the URL to retrieve data or taxon on ENA. It takes several arguments, check their validity before combining them to build the URL.
def S3Wp(A07C, W8mS, Aofo=None, BsfS=None, nUeQ=None, vgXP=None, u54L=None, Kdr0=None, Tdem=False, WBPg=False): bD7m = gwbR + 'data/view/' bD7m += A07C QYrt(W8mS) bD7m += '&display=%s' % W8mS if Aofo is not None: bD7m += '&result=%s' % Aofo if u54L is not None: YnL5(u54L) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jNi7(hD7Q, puUo, sGqu, _zR1, lO87, x0eS, CjKC, ROt1, yVtz, qIxc={}):\n xAU6 = dict()\n with open(pGLB, 'r', newline='') as nUeQ:\n for zFiD in nUeQ:\n if zFiD[0] == '#':\n continue\n sRDe = zFiD.rstrip().split(':')\n if len(sRDe) < 2:\n ...
[ "0.6370685", "0.6218281", "0.6210813", "0.6128686", "0.6109777", "0.6043113", "0.5998418", "0.59229726", "0.5877106", "0.5875201", "0.58705455", "0.5838482", "0.5836275", "0.58170575", "0.58170575", "0.5812214", "0.58119226", "0.57938004", "0.57747805", "0.5762833", "0.573460...
0.57182854
21
Provides the logic for managing a specific owner.
def UNRQ(gPmJ): return jT70().get_owner(gPmJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def geNm():\n yWmu = QePW.get_json(force=True)\n return jT70().create_owner(yWmu)", "def qsJ6(YKHO, qsJ6: str):\n YKHO._owner = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6(YKHO...
[ "0.71787643", "0.6820965", "0.67825025", "0.67825025", "0.67825025", "0.67825025", "0.674174", "0.6678004", "0.6653119", "0.6653119", "0.6653119", "0.6653119", "0.6574441", "0.6529369", "0.64376384", "0.6433443", "0.64292586", "0.6399345", "0.6382449", "0.6381194", "0.635603"...
0.76932526
0
Temporarily set the font size.
def DMw_(YKHO): YKHO.old_size = QrM1.rcParams['font.size'] QrM1.rcParams['font.size'] = YKHO.size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hhRS(YKHO, hhRS):\n YKHO._font_size = hhRS", "def sDGT(*qIxc):\n zNig = hhRS.get()\n w1Io.configure(font=f'TKDefault {zNig}')", "def sDGT(YKHO, GAJY):\n YKHO.parent.setFontPointSize(GAJY)", "def sDGT(KnxT, zNig):\n o9av = KnxT.GetFont()\n i3ak = C_de(o9av)\n i3ak.SetPointSize(zNig)\n...
[ "0.8052195", "0.79180616", "0.7750005", "0.7616636", "0.74137217", "0.7149415", "0.71118265", "0.70994306", "0.70736057", "0.6868277", "0.6866142", "0.6819373", "0.67923784", "0.6720979", "0.6716418", "0.6657657", "0.6570369", "0.6541387", "0.6535178", "0.6527875", "0.6427244...
0.7132592
6
Shifts ticklabels on an axis.
def wDEH(jDK_, Jw7X=0, eUWA=0): vgXP = x5MY.transforms.ScaledTranslation(Jw7X, eUWA, jDK_.get_figure().dpi_scale_trans) for UXqs in jDK_.get_majorticklabels(): UXqs.set_transform(UXqs.get_transform() + vgXP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F77V(jDK_, gX6F):\n jDK_.get_xaxis().set_tick_params(which='both', direction='in', width=1.5, labelrotation=0, labelsize=gX6F)\n jDK_.get_yaxis().set_tick_params(which='both', direction='in', width=1.5, labelcolor='k', labelsize=gX6F)", "def cXSg(YKHO):\n wrYk()\n LZpg = QrM1.figure()\n aNZO =...
[ "0.66834706", "0.6579894", "0.64926606", "0.6488547", "0.645174", "0.6374485", "0.6240437", "0.61678416", "0.6118228", "0.6117124", "0.6013688", "0.6003552", "0.5973148", "0.5948677", "0.5922383", "0.59012765", "0.5892673", "0.5885213", "0.5877282", "0.5876372", "0.586936", ...
0.78159916
0
For returning skip grams out of a sequence.
def hm0K(yAmx, XfQO): NExa = [] for YRbF in range(0, len(yAmx)): KnxT = 1 eeAb = yAmx[YRbF] while KnxT is not XfQO + 1: if YRbF - KnxT >= 0: _YCl = yAmx[YRbF - KnxT] NExa.append([eeAb, _YCl]) if YRbF + KnxT < len(yAmx): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dln4(aWuw):\n MTCs = ZbWC.compile('[Nn]+')\n for kUBT in MTCs.finditer(aWuw):\n yield (kUBT.start(), kUBT.end())", "def ySi8(YKHO, Y4Ek, _5qk):\n if _5qk < YKHO.MIN_SKIP_SIZE:\n return []\n m6JG, ROmr = ([], 0)\n for zFiD in sorted(Y4Ek):\n O_bZ = zFiD - ROmr - 1\n ...
[ "0.65870106", "0.62211204", "0.6185802", "0.61499465", "0.61499465", "0.61367786", "0.604247", "0.6034223", "0.5998363", "0.59883416", "0.5964613", "0.58874923", "0.5835378", "0.58032745", "0.5778112", "0.5768731", "0.57213575", "0.5718572", "0.5632514", "0.56275344", "0.5622...
0.595348
11
convert 1000 Pa to kpi
def E2TY(CJ2p): _I8u = CJ2p / 10.0 return _I8u
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UgRD(YKHO):\n return GETx(YKHO.base_value / 1000.0)", "def QmjO(YZ6I):\n Rruz = YZ6I * 0.45359237\n return Rruz", "def As_H(YKHO):\n Aofo = sfvY(5.6, 25)\n YKHO.assertTrue(Aofo == -34.281679)", "def ykml(V7Rm):\n S42H = 133.322387415\n return V7Rm / 1000 * S42H", "def uukm(a0GJ):\n...
[ "0.7196644", "0.67191935", "0.6634556", "0.6387182", "0.63833755", "0.63629293", "0.6141199", "0.61376405", "0.60490185", "0.59917307", "0.5966158", "0.5942846", "0.592271", "0.59173757", "0.590442", "0.5903991", "0.58284473", "0.5781904", "0.573154", "0.5724647", "0.57009816...
0.7478303
0
Get name of queryset model.
def ZGE9(YKHO): return YKHO.get_queryset().model._meta.model_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZGE9(YKHO):\n return YKHO.get_queryset().model._meta.model_name", "def mWFP(YKHO) -> str:\n return YKHO.model.__name__", "def ZGE9(YKHO) -> str:\n return YKHO._model_name", "def mWFP(YKHO) -> str:\n return YKHO._model.name", "def TbE8(YKHO) -> str:\n raise NotImplementedError", "def ZG...
[ "0.8728515", "0.7818633", "0.7694884", "0.75767446", "0.74012893", "0.71349776", "0.71055174", "0.7069971", "0.67992675", "0.6728948", "0.6720449", "0.6689568", "0.6683943", "0.6628682", "0.66066116", "0.65805113", "0.65268993", "0.65268993", "0.64644045", "0.6450019", "0.642...
0.87962496
0
Validate service catalog endpoint data. Validate a list of actual service catalog endpoints vs a list of expected service catalog endpoints.
def zYaG(YKHO, aEqx, n5sN): YKHO.log.debug('actual: {}'.format(repr(n5sN))) for G1Hx, Ty9i in aEqx.iteritems(): if G1Hx in n5sN: U5bT = YKHO._validate_dict_data(aEqx[G1Hx][0], n5sN[G1Hx][0]) if U5bT: return YKHO.endpoint_error(G1Hx, U5bT) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def raT8(YKHO):\n P6bq.log.debug('Checking keystone service catalog...')\n YKHO.set_api_version(2)\n IXfJ = {'adminURL': P6bq.valid_url, 'id': P6bq.not_null, 'region': 'RegionOne', 'publicURL': P6bq.valid_url, 'internalURL': P6bq.valid_url}\n aEqx = {'volume': [IXfJ], 'identity': [IXfJ]}\n n5sN = YK...
[ "0.69916314", "0.6973263", "0.6379388", "0.6159132", "0.6079578", "0.60136753", "0.5902091", "0.57698405", "0.575101", "0.56785446", "0.55161065", "0.54834914", "0.5480712", "0.54423004", "0.5430228", "0.53913283", "0.537125", "0.5355991", "0.53534985", "0.53030694", "0.52995...
0.7347884
0
Segment generator for audio files from a list of files. Yields segments of `segment_duration` each time.
def IELR(RRlC: list, ZKhe: float, K4ib: int, gCmR: float or None=None, E0U9: int=512, Ddxm: int=128) -> None: pdhd = 0 Oa10 = 0 hTWD = oyIN.zeros((int(ZKhe * K4ib),)) G1Hx = 0 yKND = 0 while True: if pdhd >= len(hTWD): yield hTWD hTWD = oyIN.zeros((int(ZKhe * K4ib...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FulU(Emd4, OufC, uCqz=None, KPjc=False, vgXP=0, WbTE=0, O358=False, OjgZ=None, *qIxc, **B2fa):\n if isinstance(OjgZ, int):\n if OjgZ >= len(OufC):\n raise RuntimeError(f'Channel cannot be selected: channel_selector={OjgZ}, num_audio_files={len(OufC)}')\n OufC = [OufC[OjgZ]]\n ...
[ "0.5887438", "0.58090013", "0.55940676", "0.55753434", "0.5435027", "0.5433496", "0.5312826", "0.52907354", "0.5287205", "0.5287035", "0.5266637", "0.52547175", "0.52243716", "0.52146345", "0.5189688", "0.51555127", "0.5145683", "0.5128361", "0.51228637", "0.50839627", "0.508...
0.7487098
0
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7796294", "0.7760558", "0.7759004", "0.77567077", "0.76577055", "0.76577055", "0.76577055", "0.76577055", "0.7585655", "0.743143", "0.7407772", "0.73941606", "0.7358175", "0.73174125", "0.72689486", "0.72623265", "0.72614294", "0.7256868", "0.723019", "0.7214918", "0.72017...
0.7125813
32
Is user a developer.
def tLI7(YKHO): return int(YKHO.developer_status) == 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tLI7(YKHO):\n return YKHO._is_developer", "def BYM_(YKHO, CBIr):\n return False", "def TOhj(YKHO, CBIr):\n if CBIr.get('role') in ('admin', 'manager', 'engineer'):\n return True\n return CBIr['name'] == YKHO.doc.get('customer')", "def eTTr(YKHO, CBIr='') -> int:\n try:\n if C...
[ "0.77806205", "0.70397127", "0.69394696", "0.67183757", "0.67175573", "0.67167026", "0.66777146", "0.6653183", "0.65692014", "0.65637565", "0.65637565", "0.6557937", "0.65542775", "0.653787", "0.6504135", "0.6504135", "0.6504135", "0.6477316", "0.64700603", "0.64580154", "0.6...
0.8075512
0
Return the entry block.
def DcQd(YKHO) -> int: MM5i = [exwG for exwG in YKHO.nodes if YKHO.IsEntryBlock(exwG)] if not MM5i: raise zUyB() elif len(MM5i) > 1: raise WIES() return MM5i[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def csYx(YKHO):\n edvT = em1m(YKHO)\n YKHO.basic_blocks.insert(0, edvT)\n return edvT", "def gR8w(YKHO) -> RnTg.program.model.correlate.Block:\n ...", "def Lm_X(YKHO):\n return YKHO._block", "def gyco(YKHO):\n return Jr3l.gumtree.getBlock()", "def AAa3(YKHO, oeNL):\n return CXtY().getB...
[ "0.6849301", "0.6694795", "0.6619621", "0.655859", "0.637405", "0.62701523", "0.6092251", "0.60553885", "0.6034222", "0.598452", "0.5955915", "0.59524316", "0.5950896", "0.59356064", "0.59210044", "0.58932793", "0.58765644", "0.5851576", "0.58342797", "0.5831812", "0.5814451"...
0.7583633
0
A mock remote temp directory.
def xHyo(TBXe): return str(TBXe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xTKt():\n with Po4F('homeassistant.components.mqtt.util.TEMP_DIR_NAME', 'home-assistant-mqtt' + f'-{SI9y(10):03x}') as xlYi:\n yield xlYi", "def GPNF(ki65, x0hE, xHyo):\n\n def Fpge(gWlF, kal_):\n with open(gWlF, 'rb') as jQJk:\n x0hE.upload(kal_, jQJk)\n eiOy(ki65, xHyo, mk...
[ "0.7775972", "0.77344996", "0.7068947", "0.70164263", "0.69169647", "0.68677956", "0.685939", "0.68574536", "0.6847054", "0.6749687", "0.6749035", "0.67019534", "0.66627526", "0.666026", "0.6644531", "0.662416", "0.6620011", "0.66120934", "0.6578965", "0.65470797", "0.6519251...
0.7242211
2
This function takes in the index to a cell in the game string and returns a new index corresponding to an adjacent cell in the speci ed direction. Return None for invalid directions.
def JIrP(d6pt, U4F5, XSoh): swF3 = 0 if XSoh == 'up': swF3 = d6pt - U4F5 if XSoh == 'down': swF3 = d6pt + U4F5 if XSoh == 'left': swF3 = d6pt - 1 if (swF3 + 1) % U4F5 == 0: return None if XSoh == 'right': swF3 = d6pt + 1 if swF3 % U4F5 == 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JIrP(YKHO, d6pt, U4F5, XSoh):\n fvDH = d6pt % U4F5\n rdlD = d6pt // U4F5\n if Ny9c in XSoh:\n fvDH += 1\n elif pY1r in XSoh:\n fvDH -= 1\n if ckxV in XSoh:\n rdlD -= 1\n elif EGw7 in XSoh:\n rdlD += 1\n if not (0 <= fvDH < U4F5 and 0 <= rdlD < U4F5):\n re...
[ "0.6514532", "0.61623234", "0.6139411", "0.59851706", "0.5969111", "0.59320134", "0.5897712", "0.58908653", "0.58614886", "0.58274966", "0.57174397", "0.57058114", "0.5703943", "0.5687996", "0.56705916", "0.5650977", "0.56459373", "0.56431025", "0.56339985", "0.5604966", "0.5...
0.64295286
1
Get the action that gives the highest total future reward based on the current policy
def fo30(YKHO, QTBn): jzdc = YKHO.sess.run(YKHO.network.maxOutputNode, feed_dict={YKHO.network.inputs: [QTBn]}) return jzdc[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OcoU(YKHO, QTBn):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n lA2T = YKHO.mdp.getPossibleActions(QTBn)\n if len(lA2T) is 0:\n return None\n hjEf = gnPz.Counter()\n for XeOP in lA2T:\n for CrTw, Q7Be in YKHO.mdp.getTransitionStatesAndProbs(QTBn, XeOP):\n hjEf[XeOP] += Q7Be * (...
[ "0.79716426", "0.77533215", "0.7210606", "0.7172442", "0.7167455", "0.7108632", "0.71054506", "0.7092872", "0.7080876", "0.70398873", "0.69727755", "0.6953851", "0.6949744", "0.6928191", "0.69230556", "0.69032395", "0.68890685", "0.688901", "0.68734914", "0.68669844", "0.6857...
0.679639
30
Returns the minimax action using self.depth and self.evaluationFunction
def bk5W(YKHO, Ov5A): """*** YOUR CODE HERE ***""" Xz9E = Ov5A.getLegalActions(0) p1kx = -999999999 A45P = 'Stop' for XeOP in Xz9E: ycBG = YKHO.alphabeta(Ov5A.generateSuccessor(0, XeOP), 1, 1, -99999999, 99999999) if ycBG > p1kx: p1kx = ycBG A45P = XeOP re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\...
[ "0.7484238", "0.73829436", "0.71820045", "0.7109766", "0.70878094", "0.7070147", "0.706809", "0.7048819", "0.7004379", "0.696503", "0.6965024", "0.6961986", "0.6944898", "0.68987685", "0.6896576", "0.6885053", "0.68281513", "0.6766339", "0.675802", "0.67537147", "0.6707646", ...
0.0
-1
Serialize a trajectory into a JSON string.
def j7Dz(Hydg: Trajectory) -> str: return qQXR.dumps(Hydg, cls=l3dz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ChRH(YKHO, Hydg, nPrm='simulation', Q_ge=None, e_aN=False, m6Me=False):\n eHNT = xDSY.StringIO()\n YKHO.write(Hydg, eHNT, occupancy=Q_ge, fractional=e_aN, raw=m6Me)\n return eHNT.getvalue()", "def oD7C(YKHO) -> str:\n Mjw9 = YKHO._to_list_dict()\n return qQXR.dumps(Mjw9, indent=4, cls=l3dz)", ...
[ "0.6308176", "0.62615454", "0.623477", "0.62019145", "0.61990064", "0.6176558", "0.61022794", "0.61017257", "0.60266227", "0.59930193", "0.59781456", "0.59534526", "0.5945451", "0.5935647", "0.59284663", "0.59275943", "0.58699095", "0.5854041", "0.5849753", "0.58289534", "0.5...
0.8754451
0
Check if file is in the correct extension mp3.
def XT0o(Ux0P): return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in UWr8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ciSI(Ux0P):\n YBcr = str(Hy7s.path.splitext(Ux0P)[1]).lower()\n return YBcr == '.mp3'", "def d7dB(vC9B):\n if '.mp3' in str(vC9B):\n return 1\n else:\n return 0", "def hjJ7(Ux0P):\n import os\n Fst3 = os.path.splitext(Ux0P)[1]\n tg2j = ['.aif', '.aifc', '.aiff', '.au', '....
[ "0.8563349", "0.83595484", "0.7522398", "0.7468372", "0.72197014", "0.68058777", "0.6785107", "0.66489124", "0.6640459", "0.6581203", "0.6543869", "0.65289265", "0.64148504", "0.64094263", "0.639572", "0.6381494", "0.6372932", "0.6362967", "0.63561255", "0.63506335", "0.63213...
0.60196453
70
Initialize a new Dataset instance.
def FIMM(YKHO, tk5Y: str='data', lpha: str='trainval', Ymkf: Optional[Callable[[dict[str, Any]], dict[str, Any]]]=None, BsfS: bool=False, gV46: bool=False) -> None: assert lpha in YKHO.valid_splits, f'Pleas choose one of these valid data splits {YKHO.valid_splits}.' YKHO.split = lpha YKHO.root = tk5Y YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6", "def FIMM(YKHO, __n6):\n YKHO._dataset = __n6", "def FIMM(YKHO):\n YKHO.__dataset = None", "def FIMM(YKHO, GPtr):\n bo34.info(f'{YKHO.__class__.__name__}: Dataset initializing ...')\n super().__init__(GPtr)", "def CroE(YKHO):\n YKHO.d...
[ "0.7940832", "0.78073645", "0.76478857", "0.7256711", "0.70480615", "0.69977355", "0.69806486", "0.69297254", "0.69010466", "0.684484", "0.68099326", "0.67982", "0.67956704", "0.67834836", "0.67800754", "0.6764315", "0.6755509", "0.66887796", "0.6630972", "0.6606904", "0.6573...
0.0
-1
Return the number of data points in the dataset.
def szAg(YKHO) -> int: import h5py with h5py.File(Hy7s.path.join(YKHO.root, YKHO.data_dir, YKHO.img_file_name), 'r') as eHNT: AFp4: int = eHNT[YKHO.split]['pv_log'].shape[0] return AFp4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SAv9(YKHO):\n try:\n D1HL = len(YKHO.x)\n bo34.info('Number of data points: {0}'.format(D1HL))\n except AttributeError:\n bo34.error('Data object has not been defined')\n D1HL = 0\n return D1HL", "def KR0Q(YKHO):\n if YKHO.data_reduced:\n return len(YKHO.data_re...
[ "0.880061", "0.8231192", "0.81478024", "0.79469246", "0.79161364", "0.7906998", "0.778869", "0.77796876", "0.7765048", "0.7703485", "0.768326", "0.76774395", "0.7650531", "0.75353074", "0.75095433", "0.7476521", "0.73538625", "0.7345897", "0.73293126", "0.72561383", "0.722389...
0.7688301
10
Splits a text line into a list of tuples (word, next_word)
def NBjn(YKHO, U6D_, **B2fa): njyT = '[a-zA-Z]+' O096 = ZbWC.findall(njyT, U6D_.lower()) SNVB = [(O096[YRbF], O096[YRbF + 1]) for YRbF in range(len(O096) - 1)] return SNVB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def niGw(zFiD):\n return", "def uBC6(GIN8):\n return [(GIN8[:YRbF], GIN8[YRbF:]) for YRbF in range(len(GIN8) + 1)]", "def s2mk(l5Ny) -> AzJI[KLCG]:\n return tuple(ZbWC.findall('[a-z]+', l5Ny.lower()))", "def YHih(zFiD):\n V22M = zFiD.rstrip().split('|')\n return V22M", "def pd6c(l5Ny):\n ...
[ "0.7118813", "0.6803", "0.663311", "0.6516607", "0.6516372", "0.6456035", "0.64053464", "0.63516545", "0.6337064", "0.6315775", "0.6212915", "0.6195259", "0.61346334", "0.61246645", "0.61212456", "0.61174595", "0.6110984", "0.6109867", "0.60613394", "0.59866714", "0.59595466"...
0.6054002
19
convert timezones in python can result in minutes shifting... just do a simple hour offset with timedelta
def yzxq(lhKE, ZpyY=None): if ZpyY is None: ZpyY = qcWV.today() vgXP = ijBJ(lhKE, ZpyY) if vgXP >= 0: ZpyY = ZpyY - fCoM(hours=vgXP) else: ZpyY = ZpyY + fCoM(hours=vgXP) return ZpyY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def csYv(bOBl, ybCl=0, jth9=True):\n return bOBl.tz_localize(lEjt(ybCl * 60), copy=jth9)", "def Ja1h(C6wh):\n return '%+03d:%02d' % divmod(C6wh // 60, 60)", "def Bqzo(vgXP):\n if isinstance(vgXP, fCoM):\n vgXP = vgXP.total_seconds() // 60\n Zihr = '-' if vgXP < 0 else '+'\n nQIw = '%02d%0...
[ "0.6856684", "0.65116304", "0.649837", "0.6411374", "0.63906646", "0.6372482", "0.6332565", "0.61859465", "0.6159756", "0.6157833", "0.6139855", "0.60928243", "0.608656", "0.60617167", "0.6010767", "0.59329337", "0.59184664", "0.5903324", "0.5874753", "0.5843728", "0.584142",...
0.56362444
33
this function is critical to lookups and the catch here is daylight savings the correct approach i believe is to first use UTC to set time frame then adjust for timezone offset we assume incoming start, end dates are in UTC
def CJvu(yKcO, Os4s=None, eJTR=None, lhKE=None, ROt1=0, sMtK=None, tz0A=None): if yKcO is None: yKcO = qcWV.now() if lhKE is None or lhKE == '': lhKE = 'UTC' if yKcO == Os4s: Os4s = None if sMtK != None: ROt1 = sMtK yKcO = qYwo(yKcO) mEu3 = yKcO if Os4s: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PANm(YKHO):\n yl4j = rIAI.get_current_timezone()\n fg5K = YKHO['DTSTART']\n XffX = YKHO['DTEND']\n if fg5K.zone() == 'UTC':\n fg5K.dt = fg5K.dt.astimezone(yl4j)\n if XffX.zone() == 'UTC':\n XffX.dt = XffX.dt.astimezone(yl4j)", "def Bnmt(YKHO):\n __Xe = mv1M.objects.create()\n ...
[ "0.6824008", "0.62374264", "0.6012137", "0.58935624", "0.588197", "0.5837422", "0.58115566", "0.58102703", "0.5801301", "0.5782799", "0.571876", "0.5716811", "0.5689683", "0.5669534", "0.5571751", "0.5560124", "0.5557081", "0.55479205", "0.55273134", "0.5524657", "0.5522492",...
0.55472076
18
Determines if the given word is contained in the dictionary. word the word to be checked. True if the word is in the dictionary, False otherwise.
def ptKd(YKHO, GIN8): GIN8 = GIN8.lower().strip() return not GIN8 or GIN8 in YKHO.dictionary
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fLRq(GIN8, cmPJ):\n return GIN8 in cmPJ", "def jO3M(YKHO, GIN8):\n if YKHO.using_database:\n yabn('WORDDICT CONTAINS')\n Q2PR = (f8UR, GIN8)\n gPUR.execute('SELECT rowid' + ' FROM word_to_indexes' + ' WHERE notebook=?' + ' AND word=?;', Q2PR)\n try:\n return gPUR....
[ "0.85332704", "0.7787835", "0.77818346", "0.7556933", "0.74459577", "0.73361164", "0.730161", "0.72659737", "0.7251214", "0.72030187", "0.7192013", "0.7129889", "0.70670223", "0.7036707", "0.6982686", "0.6922983", "0.6913599", "0.6909896", "0.6905871", "0.68994284", "0.689790...
0.73961926
5
Converts the image to rgb format.
def qlV6(LNo8, GkJn): if GkJn is not vIuq: Z5Q9 = LNo8[:, :, GkJn['red']] jlxe = LNo8[:, :, GkJn['green']] pPPK = LNo8[:, :, GkJn['blue']] VXjJ = oyIN.rollaxis(oyIN.array([Z5Q9, jlxe, pPPK]), 0, 3) else: VXjJ = qfpW.grey2rgb(LNo8) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VqWm(YKHO):\n YKHO.img = YKHO.img.convert('RGB')", "def _BwQ(YKHO):\n if YKHO.channels == 4:\n qfpW = xOwD.cvtColor(YKHO.img, xOwD.COLOR_BGRA2BGR)\n return hnIv(qfpW)\n elif YKHO.channels == 1:\n qfpW = xOwD.cvtColor(YKHO.img, xOwD.COLOR_GRAY2BGR)\n return hnIv(qfpW)\n ...
[ "0.7436798", "0.70498824", "0.69319326", "0.69092584", "0.6884476", "0.68483657", "0.6821436", "0.6735431", "0.67076206", "0.66908205", "0.66515344", "0.66445464", "0.65666306", "0.65547305", "0.64814633", "0.64654803", "0.64560044", "0.64472514", "0.64353323", "0.64253545", ...
0.5892905
66
Compute Canny edge image
def lZ1Y(LNo8, r1VO, WTkW): qWz7 = XQbH(LNo8, selem=UTqa(r1VO)) try: return pqKg(qWz7, sigma=WTkW) except TypeError: print('Canny type error') return oyIN.zeros(LNo8.shape)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xD4o(UFp3):\n mC4V = XC5k.Canny(UFp3, 100, 200)\n return mC4V", "def AbVF(LNo8, kVwb=100, JgLq=150):\n return XC5k.Canny(LNo8, kVwb, JgLq)", "def pqKg(YKHO, VXjJ):\n return XC5k.Canny(VXjJ, YKHO.low_threshold, YKHO.high_threshold)", "def pkRI(quCl):\n mC4V = XC5k.Canny(quCl, 100, 200, L2gr...
[ "0.80708593", "0.8029905", "0.7874638", "0.7831503", "0.781839", "0.780328", "0.77371556", "0.7704402", "0.7700632", "0.7682926", "0.7682926", "0.7682926", "0.7682926", "0.7682926", "0.7682926", "0.7682926", "0.7682926", "0.7682926", "0.7682926", "0.7682926", "0.7682926", "...
0.6882807
40
Unload a config entry.
async def async_unload_entry(RUgX: OpenPeerPower, bTKY: ConfigEntry) -> bool: return await RUgX.data[Sugg].async_unload_entry(bTKY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k", "async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True", "async def async_unload_entry(ajET: HomeAssis...
[ "0.697284", "0.6888074", "0.6779855", "0.6747459", "0.6689002", "0.6657831", "0.66162205", "0.6603433", "0.65925974", "0.65595686", "0.65411645", "0.6507643", "0.6507643", "0.6507643", "0.6507643", "0.64977276", "0.64931643", "0.6486601", "0.6486601", "0.6486601", "0.6486601"...
0.60818183
65
Return the minimum value.
def dgIT(YKHO) -> float: return znFd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VmUT(YKHO):\n return YKHO._minimum", "def XcNI(YKHO):\n return YKHO.min", "def XcNI(YKHO):\n return YKHO.min", "def min(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'min')", "def min(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'min')", "def PgG6(YKHO):\n if hasattr(YKHO, ...
[ "0.8728359", "0.8631188", "0.8631188", "0.8599283", "0.8599283", "0.8502898", "0.8491298", "0.8481871", "0.846595", "0.846595", "0.84328246", "0.84303063", "0.84303063", "0.84216654", "0.84054255", "0.8311696", "0.8290971", "0.82861054", "0.8281118", "0.8254961", "0.8184649",...
0.8284037
18
Return the maximum value.
def bQ6z(YKHO) -> float: return _4fj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BfFQ(YKHO):\n bQ6z = max(YKHO.values)\n return bQ6z", "def ZWqN(YKHO):\n return YKHO._maximum", "def qfB5(YKHO):\n return YKHO._max", "def qfB5(YKHO):\n return YKHO.max[-1]", "def YClg(YKHO):\n if hasattr(YKHO, '_maximum_value'):\n return YKHO._maximum_value\n return None", ...
[ "0.8933136", "0.88841957", "0.87473977", "0.861131", "0.8606676", "0.85935724", "0.8586842", "0.8532539", "0.8532539", "0.8495911", "0.8495911", "0.8488697", "0.8487578", "0.8399635", "0.83845997", "0.836424", "0.83359325", "0.8261219", "0.8261219", "0.8256761", "0.8229282", ...
0.8262177
17
Escapes string to be used in markdown link
def tQ9y(l5Ny): return l5Ny.translate(HKLK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQ9y(l5Ny):\n return NniO.sub(lambda r8hN: ChGj.sub('\\\\\\\\\\\\1', r8hN.group(0)), l5Ny)", "def UEj1(AN55, KP5o):\n return '[%s](%s)' % (RyaS(AN55, characters=']'), RyaS(KP5o, characters=')'))", "def Q0r0(l5Ny):\n dcv6 = '\\\\*_`\\\\['\n return ZbWC.sub('([%s])' % dcv6, '\\\\\\\\\\\\1', l5Ny)...
[ "0.7200808", "0.70624894", "0.6904632", "0.6904632", "0.6768619", "0.65677285", "0.6535491", "0.643305", "0.64065015", "0.63941264", "0.63886416", "0.630367", "0.62350464", "0.619173", "0.6186041", "0.61670405", "0.61646426", "0.615001", "0.6146635", "0.6141269", "0.61289364"...
0.75486755
0
Plots day and night images as clusters in 2D space for given features. And, draws a line of separation
def LQnU(mQSp, LL6A=([25, 129], [200, 50])): Bw8j = qaAi.loc[qaAi['labels'] == 0, mQSp] CjKC = qaAi.loc[qaAi['labels'] == 1, mQSp] nPrm = (Bw8j, CjKC) Jw9H = ('red', 'green') moMn = ('Night', 'Day') LZpg = QrM1.figure() aNZO = LZpg.add_subplot(1, 1, 1) for nPrm, qfpW, uOe2 in zip(nPrm, J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HeFd(YKHO):\n pass", "def ukMn(WKvO, LVAh, xkjI, Jw9H=None):\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(111)\n aNZO.tick_params(axis='x', which='both', bottom=False, top=False, labelbottom=False)\n aNZO.tick_params(axis='y', which='both', left=False, right=False, labelleft=False)\n if...
[ "0.6235816", "0.6222693", "0.6183442", "0.59449726", "0.5909048", "0.58626944", "0.5841642", "0.58224785", "0.57740366", "0.57559943", "0.57539386", "0.5743093", "0.5731689", "0.5731689", "0.5731689", "0.5725746", "0.57250965", "0.57110894", "0.5690413", "0.568808", "0.568084...
0.71149343
0
Returns True if the given Twitter status is to be skipped.
def zB8R(YKHO, jGRS, CkAH=True): XeOC = 'author: {}, reply_to_status: {}, reply_to_user: {}, quoting: {}, retweet: {}, text: {}' XeOC = XeOC.format(jGRS.author.screen_name, jGRS.in_reply_to_status_id, jGRS.in_reply_to_user_id, jGRS.is_quote_status, hasattr(jGRS, 'retweeted_status'), jGRS.text) if jGRS.in_re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cNZd(YKHO):\n QTBn = YKHO.GetState()\n return QTBn.status == ybiG.SKIPPED", "def Cuc7(Mau6: Status) -> bool:\n if Mau6.in_reply_to_status_id is not None and Mau6.retweeted_status is None and (Mau6.in_reply_to_user_id != Mau6.user.id):\n G9jH.info('%s is a reply to someone else, and not a retw...
[ "0.66428435", "0.6414191", "0.6347439", "0.6117404", "0.6008422", "0.5893264", "0.5842119", "0.58113396", "0.5767048", "0.5763887", "0.5745861", "0.5683721", "0.5657151", "0.558517", "0.558517", "0.5579998", "0.55609214", "0.553793", "0.5513619", "0.5502769", "0.54743487", ...
0.718822
0
Returns whether or not a Twitter stream is running.
def HX9S(YKHO): return YKHO.sub_process and YKHO.sub_process.is_alive()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F_lk(YKHO) -> bool:\n return YKHO.stream_status == THLm.STREAMING", "def WTIh(YKHO):\n return YKHO in d8qC", "def WTIh(YKHO):\n return YKHO._running", "def WTIh(YKHO):\n return YKHO.running", "def WTIh(YKHO):\n return YKHO.running", "def WTIh(YKHO):\n return YKHO.running", "def WT...
[ "0.72394526", "0.69978935", "0.69556427", "0.69316256", "0.69316256", "0.69316256", "0.6926906", "0.68830675", "0.68830675", "0.68746626", "0.68705916", "0.68638986", "0.68575424", "0.68575424", "0.6857385", "0.68493444", "0.6846004", "0.68330395", "0.68330395", "0.6830109", ...
0.65765107
40
String representation of this class.
def zAg0(YKHO): return YKHO.message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YKHO, DaW4)\n jCXZ += ', %s=%s' % (DaW4, SwUt)\n kItf = type(YKHO)\n if jCXZ == '':\n return '<%s>' % kItf.__name__\n return '<%s: %s>' % (kItf.__name__, jCXZ[2:])", "def wHJl(YKHO):\n retu...
[ "0.8401451", "0.83834934", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.83464265", "0.83455426", "0.83455426", "0.83455426", "0.83455426", "0.8345542...
0.0
-1
String representation of this class.
def zAg0(YKHO): return YKHO.message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YKHO, DaW4)\n jCXZ += ', %s=%s' % (DaW4, SwUt)\n kItf = type(YKHO)\n if jCXZ == '':\n return '<%s>' % kItf.__name__\n return '<%s: %s>' % (kItf.__name__, jCXZ[2:])", "def wHJl(YKHO):\n retu...
[ "0.84009135", "0.83839273", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.83473957", "0.834622", "0.834622", "0.834622", "0.834622", "0.834622", "0....
0.0
-1
String representation of this class.
def zAg0(YKHO): return YKHO.message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YKHO, DaW4)\n jCXZ += ', %s=%s' % (DaW4, SwUt)\n kItf = type(YKHO)\n if jCXZ == '':\n return '<%s>' % kItf.__name__\n return '<%s: %s>' % (kItf.__name__, jCXZ[2:])", "def wHJl(YKHO):\n retu...
[ "0.8401451", "0.83834934", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.83464265", "0.83455426", "0.83455426", "0.83455426", "0.83455426", "0.8345542...
0.0
-1
String representation of this class.
def zAg0(YKHO): return YKHO.message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YKHO, DaW4)\n jCXZ += ', %s=%s' % (DaW4, SwUt)\n kItf = type(YKHO)\n if jCXZ == '':\n return '<%s>' % kItf.__name__\n return '<%s: %s>' % (kItf.__name__, jCXZ[2:])", "def wHJl(YKHO):\n retu...
[ "0.84010684", "0.8383534", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8346675", "0.8345806", "0.8345806", "0.8345806", "0.8345806", "0.8345806", ...
0.0
-1
String representation of this class.
def zAg0(YKHO): return YKHO.message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YKHO, DaW4)\n jCXZ += ', %s=%s' % (DaW4, SwUt)\n kItf = type(YKHO)\n if jCXZ == '':\n return '<%s>' % kItf.__name__\n return '<%s: %s>' % (kItf.__name__, jCXZ[2:])", "def wHJl(YKHO):\n retu...
[ "0.8401451", "0.83834934", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.83464265", "0.83455426", "0.83455426", "0.83455426", "0.83455426", "0.8345542...
0.0
-1
String representation of this class.
def zAg0(YKHO): return YKHO.message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YKHO, DaW4)\n jCXZ += ', %s=%s' % (DaW4, SwUt)\n kItf = type(YKHO)\n if jCXZ == '':\n return '<%s>' % kItf.__name__\n return '<%s: %s>' % (kItf.__name__, jCXZ[2:])", "def wHJl(YKHO):\n retu...
[ "0.84009135", "0.83839273", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.8361698", "0.83473957", "0.834622", "0.834622", "0.834622", "0.834622", "0.834622", "0....
0.0
-1
String representation of this class.
def zAg0(YKHO): return YKHO.message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YKHO, DaW4)\n jCXZ += ', %s=%s' % (DaW4, SwUt)\n kItf = type(YKHO)\n if jCXZ == '':\n return '<%s>' % kItf.__name__\n return '<%s: %s>' % (kItf.__name__, jCXZ[2:])", "def wHJl(YKHO):\n retu...
[ "0.8401451", "0.83834934", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.8361363", "0.83464265", "0.83455426", "0.83455426", "0.83455426", "0.83455426", "0.8345542...
0.0
-1
String representation of this class.
def zAg0(YKHO): return YKHO.message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YKHO, DaW4)\n jCXZ += ', %s=%s' % (DaW4, SwUt)\n kItf = type(YKHO)\n if jCXZ == '':\n return '<%s>' % kItf.__name__\n return '<%s: %s>' % (kItf.__name__, jCXZ[2:])", "def wHJl(YKHO):\n retu...
[ "0.84010684", "0.8383534", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8361253", "0.8346675", "0.8345806", "0.8345806", "0.8345806", "0.8345806", "0.8345806", ...
0.0
-1
Sets the learning rate
def e_63(K0do, KMvS, qtWj, F8hG, dfHy, LIcp): if qtWj < 0: tspZ = 1e-06 + (qIxc.lr - 1e-06) * dfHy / (LIcp * 5) else: tspZ = qIxc.lr * KMvS ** F8hG for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ return tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVtO(YKHO, mVUw):\n YKHO.SGD.set_learning_rate(mVUw)", "def NcuP(YKHO):\n b0Ix = YKHO.params.base_lr * (1 - float(YKHO.epoch) / YKHO.params.num_epoch) ** YKHO.params.power\n for Lwm5 in YKHO.opt.param_groups:\n Lwm5['lr'] = b0Ix\n print('Change learning rate into %f' % b0Ix)\n YKHO.summ...
[ "0.8623272", "0.76981455", "0.7697208", "0.7697208", "0.7636927", "0.758479", "0.7572249", "0.7514606", "0.7490861", "0.74744666", "0.74288964", "0.7413075", "0.739503", "0.73916996", "0.73894364", "0.73817927", "0.73783433", "0.7377333", "0.7363047", "0.7362884", "0.7362884"...
0.0
-1
Returns all birthday entries for a specific date or chat. Accepts date string as 'DDMM' or chat object.
def PkrP(YKHO, _c1T=None, khKA=None): if _c1T: YKHO.cursor.execute('\n SELECT * from birthday\n WHERE substr(date,1,5)=?\n ', (_c1T,)) elif khKA: YKHO.cursor.execute('\n SELECT * from birthday\n WHERE chat_id=?\n '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YiAU(YKHO):\n try:\n dixj = YKHO.graph.request('me/friends', args={'fields': 'id,name,birthday'})\n except Z6mu.GraphAPIError:\n geh0 = 'I have not been authorized to query your Facebook. If you ' + 'would like to check birthdays in the future, please visit ' + 'the Jasper dashboard.'\n ...
[ "0.674992", "0.6695634", "0.648888", "0.5909184", "0.5858932", "0.5635574", "0.5462768", "0.5436349", "0.54109836", "0.54015756", "0.5251594", "0.5232925", "0.51951206", "0.5182736", "0.51108915", "0.5102773", "0.50579673", "0.50461614", "0.5041468", "0.50223047", "0.50222456...
0.8395756
0
Return the angular distance between this star and the one given as parameter.
def zG70(YKHO, YFMp): if YKHO.centroid == YFMp.centroid: print('distance for same star') return 0 rFsc = YKHO.get_unitary_vector() oIGo = YFMp.get_unitary_vector() Qpti = epAf.degrees(epAf.acos(rFsc[0] * oIGo[0] + rFsc[1] * oIGo[1] + rFsc[2] * oIGo[2])) return Qpti
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9cH(YKHO, epBp):\n return YKHO.proper_distance(epBp) / (1 + epBp)", "def zG70(YKHO, YFMp):\n if YKHO == YFMp:\n return 0\n fftP = YKHO.get_cartesian_coords()\n QvsW = YFMp.get_cartesian_coords()\n Qpti = epAf.degrees(epAf.acos(fftP[0] * QvsW[0] + fftP[1] * QvsW[1] + fftP[2] * QvsW[2]))...
[ "0.69820136", "0.6947291", "0.67347693", "0.6252374", "0.6228162", "0.62202084", "0.6197052", "0.60835147", "0.60314506", "0.5926111", "0.5915784", "0.5906819", "0.5871798", "0.5823697", "0.5815515", "0.5809056", "0.5768312", "0.5768312", "0.5768312", "0.5768312", "0.5747347"...
0.6827997
2
Load an image from a path and resize it.
def DZ0a(pmON, N0ky, Qi3c, GoGv, rZ15=False): VXjJ = pVFP.read_file(pmON) VXjJ = hozG.decode_image(VXjJ, channels=Qi3c, expand_animations=False) if rZ15: VXjJ = QkRh.smart_resize(VXjJ, N0ky, interpolation=GoGv) else: VXjJ = hozG.resize_images_v2(VXjJ, N0ky, method=GoGv) VXjJ.set_shap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O1MR(pmON):\n LNo8 = hnIv.open(pmON)\n zNig = LNo8.size\n LNo8 = LNo8.resize((550, 550), hnIv.ANTIALIAS)\n return LNo8", "def DZ0a(QMAG, v__7=None):\n if Hy7s.path.isfile(QMAG):\n VXjJ = SnjK.imread(QMAG)\n else:\n print('FILE NOT FOUND', QMAG)\n if v__7 is None:\n f...
[ "0.78586197", "0.76438546", "0.75304145", "0.7317215", "0.71766394", "0.7134615", "0.7098634", "0.70947665", "0.7058047", "0.6977929", "0.69719833", "0.69345456", "0.6893484", "0.6774576", "0.6763188", "0.6752307", "0.6751657", "0.6724555", "0.67214245", "0.6672323", "0.66650...
0.6895179
12
Returns True if the list is currently sorted in strictly increasing order. Returns False otherwise
def hfzg(nPrm): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ3J(bCES):\n THkp = -1\n for ZfUD in bCES:\n if ZfUD < THkp:\n return False\n THkp = ZfUD\n return True", "def mwCj(YKHO):\n AOBR = 0\n for BWXx in YKHO.data:\n if BWXx < AOBR:\n return False\n AOBR = BWXx\n return True", "def mwCj(vC9B):...
[ "0.83735055", "0.8179466", "0.78771746", "0.7782561", "0.7779171", "0.7692661", "0.7650377", "0.75622493", "0.75263625", "0.75249934", "0.75171953", "0.748978", "0.747037", "0.74076605", "0.7394759", "0.73632306", "0.7341124", "0.7259062", "0.7213577", "0.72031164", "0.719229...
0.5676924
80
Setup the queue on RabbitMQ by invoking the Queue.Declare RPC command. When it is complete, the on_queue_declareok method will be invoked by pika.
def ljvn(YKHO, naqY): bo34.info('Declaring queue %s', YKHO.queue_name) YKHO._channel.queue_declare(YKHO.on_queue_declareok, exclusive=False, durable=True, queue=YKHO.queue_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ljvn(YKHO):\n YKHO.logger.info('declaring queue %s', YKHO.queue)\n if YKHO.otq:\n YKHO._channel.queue_declare(YKHO.on_queue_declareok, YKHO.queue, auto_delete=True)\n else:\n YKHO._channel.queue_declare(YKHO.on_queue_declareok, YKHO.queue)", "def YtN8(YKHO):\n YKHO._channel.queue_de...
[ "0.82787967", "0.8206529", "0.7809811", "0.7621755", "0.7539728", "0.7380336", "0.73658395", "0.7231855", "0.72157735", "0.7107892", "0.69160116", "0.6913928", "0.68992496", "0.6769969", "0.6728639", "0.66872275", "0.66815084", "0.6675327", "0.66608167", "0.66070664", "0.6508...
0.81290513
2
Closes the connection again.
def DDI8(YKHO): YKHO.connection.close() print('Connection on port ' + str(YKHO.port) + ' closed.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n YKHO._connection.close()\n print('Closed connection....')", "def DDI8(YKHO):\n YKHO.connection = None", "def ngVb(YKHO):\n if not YKHO.is_open():\n return\n if YKHO._active_result is not None:\n YKHO._active_result.fetch_all()\n YKHO.protocol.send_connection_cl...
[ "0.7716956", "0.7648268", "0.76419955", "0.76137185", "0.7612818", "0.7609557", "0.7593152", "0.7589735", "0.7582936", "0.7582936", "0.757624", "0.754702", "0.75363714", "0.75351745", "0.7518304", "0.75135535", "0.74926764", "0.74926764", "0.74926764", "0.74926764", "0.749267...
0.72828484
39
Returns the appropriate character for the desired valve position.
def GIUK(YKHO, AIz_): if AIz_ == 'inlet': return nioa elif AIz_ == 'outlet': return Hxf2 else: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S2YW(YKHO):\n YKHO._i += 1\n if YKHO._i < len(YKHO._text):\n YKHO._char = YKHO._text[YKHO._i]\n else:\n YKHO._char = -1", "def jbcG(YKHO):\n return YKHO._input_string[YKHO._index]", "def bseI(d6pt):\n return d6pt", "def GdJj(YKHO) -> str:\n return YKHO._char", "def tvcr(...
[ "0.7000783", "0.6729816", "0.6713614", "0.6597136", "0.65439016", "0.64704835", "0.64535415", "0.6450054", "0.6446525", "0.64105177", "0.6383865", "0.63638085", "0.63601667", "0.6314862", "0.63055634", "0.6250241", "0.6206843", "0.61838543", "0.6183132", "0.6182026", "0.61789...
0.0
-1
Add the given Component as a subcomponent.
def H2v5(YKHO, yCnv): if yCnv: if isinstance(yCnv, C1zu): yCnv.container = YKHO else: for ZfUD in yCnv: YKHO.add(ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, UksD) -> None:\n pass", "def Jzos(YKHO, cEkx, UksD):\n YKHO.components.append(cEkx, UksD)\n return UksD", "def xaUm(YKHO, kQAo):\n fzsX = kQAo.name\n try:\n yCnv = YKHO.__component_list[fzsX]\n except KeyError:\n YKHO.__component_list[fzsX] = kQAo", "def H2v5(YK...
[ "0.7278566", "0.668905", "0.66550744", "0.6509693", "0.63608325", "0.631722", "0.6027435", "0.6012407", "0.5844365", "0.5800785", "0.5753853", "0.5736182", "0.57015187", "0.5692067", "0.5673304", "0.56556356", "0.56500447", "0.5617432", "0.56027126", "0.55951357", "0.5556353"...
0.639814
4
Adjust the size of the component so that it neatly encloses its contents. If padding is specified, it specifies the amount of space to leave at right and bottom, otherwise the minimum distance from the left and top sides to the nearest components is used.
def w4Qt(YKHO, dvgN=None): kGys = YKHO.contents if not kGys: return if dvgN: OUqQ, VHUU = dvgN else: OUqQ = min([ZfUD.left for ZfUD in kGys]) VHUU = min([ZfUD.top for ZfUD in kGys]) KOwb = [ZfUD.right for ZfUD in kGys] r2fz = [ZfUD.bottom for ZfUD in kGys] YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HThn(YKHO, QWcs=1):\n YKHO.add_spacer(0)\n YKHO.formLayout.setRowStretch(YKHO.formLayout.rowCount(), QWcs)", "def tHuz(YKHO):\n ...", "def j3k4(YKHO, dvgN):\n YKHO._tool_border_padding = dvgN", "def aSKc(YKHO):\n ...", "def CgVs(YKHO):\n return 0", "def tHuz(YKHO):\n return YKHO....
[ "0.6551818", "0.6291356", "0.586527", "0.58604884", "0.56960994", "0.56907576", "0.5603756", "0.56033325", "0.56028914", "0.5577688", "0.557505", "0.5537319", "0.5514219", "0.5511577", "0.548995", "0.5390627", "0.5384272", "0.5377189", "0.5358484", "0.5352065", "0.53373724", ...
0.6708265
0
Construct linear reward model for `obs_dim`dimensional observation space. Initial values are generated from given seed (int or None).
def FIMM(YKHO, FhoB, *, yokr=None): if yokr is not None: xlLU = oyIN.random.RandomState(yokr) else: xlLU = oyIN.random YKHO._weights = xlLU.randn(FhoB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, FhoB, *, yokr=None):\n esB3, YKHO._net_apply = YKHO.make_stax_model()\n if yokr is None:\n yokr = oyIN.random.randint((1 << 63) - 1)\n xlLU = VLg2.PRNGKey(yokr)\n pfA5, YKHO._net_params = esB3(xlLU, (-1, FhoB))\n YKHO._net_grads = yOcR.grad(YKHO._net_apply)\n assert pfA5 == ...
[ "0.625324", "0.5905843", "0.58319336", "0.5701086", "0.56973547", "0.56217533", "0.55938876", "0.5567075", "0.5541123", "0.5503761", "0.54974747", "0.54814553", "0.5446507", "0.5427025", "0.5409548", "0.5407711", "0.54066133", "0.5400923", "0.5390077", "0.5389272", "0.5384811...
0.66119426
0
Internal setup for Jaxbased reward models. Initialises reward model using given seed & input size (`obs_dim`).
def FIMM(YKHO, FhoB, *, yokr=None): esB3, YKHO._net_apply = YKHO.make_stax_model() if yokr is None: yokr = oyIN.random.randint((1 << 63) - 1) xlLU = VLg2.PRNGKey(yokr) pfA5, YKHO._net_params = esB3(xlLU, (-1, FhoB)) YKHO._net_grads = yOcR.grad(YKHO._net_apply) assert pfA5 == (-1,), 'got ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, FhoB, *, yokr=None):\n if yokr is not None:\n xlLU = oyIN.random.RandomState(yokr)\n else:\n xlLU = oyIN.random\n YKHO._weights = xlLU.randn(FhoB)", "def FIMM(YKHO, TcwO, vVLY, klGB, Ep8u, yokr, begE):\n YKHO.action_size = TcwO\n YKHO.state_size = vVLY\n YKHO.batch_...
[ "0.697236", "0.6703998", "0.66627324", "0.6559021", "0.6543022", "0.6523261", "0.65087086", "0.6412598", "0.6403606", "0.6389871", "0.6388692", "0.63532573", "0.6351084", "0.63385004", "0.6329984", "0.63294625", "0.62778604", "0.62778604", "0.626282", "0.6259645", "0.6256537"...
0.71915954
0
Constructs a batched dataset with three datapoints.
def ZRjb(Ep8u): oxOY = g760.OrderedDict([('x', [[-1.0, -1.0], [1.0, 1.0], [1.0, 1.0]]), ('y', [[1.0], [1.0], [1.0]])]) return ZylS.data.Dataset.from_tensor_slices(oxOY).batch(Ep8u)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cNYr(K2u2):\n __n6 = x3i3()\n __n6._addData(K2u2[0])\n __n6._addData(K2u2[1])\n __n6._addData(K2u2[3])\n __n6._addData(K2u2[5])\n __n6._addData(K2u2[6])\n __n6._addData(K2u2[9])\n __n6._addData(K2u2[8])\n __n6._addData(K2u2[4])\n return __n6", "def ZRjb(YKHO, *nPrm):\n nPrm =...
[ "0.6698367", "0.6514954", "0.6432409", "0.62055844", "0.6189888", "0.59918076", "0.5920256", "0.58941036", "0.5859279", "0.58535546", "0.58470863", "0.5829169", "0.58206713", "0.5775675", "0.5767169", "0.5742561", "0.57380736", "0.57211995", "0.5712441", "0.57095045", "0.5708...
0.63762885
3
Creates the model weights with all zeros.
def sJBq(JnVv): Iqhj = vRNf.enhance(JnVv()) return ZylS.nest.map_structure(ZylS.zeros_like, Iqhj.weights)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lfj2(YKHO):\n gnPz.raiseNotDefined()\n return", "def vB93(C3ST):\n ...", "def C0Lv(YKHO):\n pass", "def IvTm(C3ST):\n for yX_W in C3ST.parameters():\n yX_W.data.sub_(yX_W.data)", "def vB93(YKHO) -> None:\n YKHO.fc.bias.data.fill_(0)\n YKHO.fc.weight.data.uniform_(-0.1, 0.1)"...
[ "0.79767513", "0.7871182", "0.76376677", "0.76313424", "0.7582489", "0.7496298", "0.7493921", "0.7493921", "0.7493921", "0.74724233", "0.7463922", "0.73075", "0.72871643", "0.72871643", "0.728702", "0.72720575", "0.7210453", "0.71830904", "0.7178007", "0.7126493", "0.7109071"...
0.7967307
1
Given a point, returns the lnorm
def CkYf(AU8u, vC9B=2): if vC9B == float('inf'): return max(AU8u) else: return sum([Ty9i ** vC9B for Ty9i in AU8u]) ** (1 / vC9B)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CkYf(AU8u):\n return oyIN.sqrt(XsBg(AU8u))", "def DPjJ(YKHO, vC9B):\n return YKHO._W.norm(vC9B)", "def DPjJ(YKHO, vC9B):\n return YKHO._W.norm(vC9B)", "def Xnfn(zFiD, AU8u):\n HecV = oyIN.cos(zFiD[1]) * AU8u[0] + oyIN.sin(zFiD[1]) * AU8u[1]\n return HecV - zFiD[0]", "def mhAC(YKHO, AU8u)...
[ "0.78783965", "0.7098674", "0.7098674", "0.6817137", "0.6807478", "0.67614913", "0.6710842", "0.66709477", "0.66298044", "0.6625851", "0.6625851", "0.6625851", "0.6614376", "0.65783465", "0.6575125", "0.6536513", "0.6532951", "0.6521047", "0.6500374", "0.6465336", "0.64568245...
0.8095473
0
Given two points and an L, returns the ldistance between the two points.
def Ayfi(lCHq, ANJu, vC9B=2): Csk6 = [lCHq.point[YRbF] - ANJu.point[YRbF] for YRbF in range(len(lCHq.point))] return CkYf(Csk6, vC9B)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z9sV(o4D3, ajwV, si3g, skBL):\n return ((o4D3 - si3g) ** 2 + (ajwV - skBL) ** 2) ** 0.5", "def v906(EBgd, HpuQ):\n return abs(WKvO(EBgd) - WKvO(HpuQ)) + abs(LVAh(EBgd) - LVAh(HpuQ))", "def FDY2(XP5J, jtyf, V70B):\n zTvC = jtyf.x - XP5J.x\n YtJp = jtyf.y - XP5J.y\n Lfvo = V70B.x - jtyf.x\n ...
[ "0.74487334", "0.73953706", "0.7280281", "0.7040578", "0.70286685", "0.7015547", "0.701023", "0.68182707", "0.6712487", "0.6709707", "0.66391754", "0.66154474", "0.6585054", "0.65714926", "0.6563884", "0.65156823", "0.6451084", "0.64415544", "0.64415544", "0.6436673", "0.6425...
0.8236655
0
Validate a required string
def dkRF(pKvt, mWFP=''): fcz9(pKvt, mWFP) assert Hy7s.path.exists(pKvt), mWFP + ' settings with value ' + pKvt + ' should exist.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qDHG(YKHO):\n try:\n efn6('hg213i75%^&$efg')\n except sUXu:\n YKHO.fail('String raised ValidationError unexpectedly')", "def l3Z7(KCHu):\n if not isinstance(KCHu, str):\n raise TypeError('Expected string, got {}'.format(type(KCHu)))\n if len(KCHu) == 0:\n raise ValueEr...
[ "0.7489743", "0.7307142", "0.72767013", "0.72713035", "0.72216856", "0.72031057", "0.7143371", "0.71347445", "0.6986766", "0.69474846", "0.6829257", "0.68204063", "0.6793516", "0.6787318", "0.6786533", "0.6779979", "0.6766918", "0.6764867", "0.66984344", "0.6664439", "0.66141...
0.0
-1
This function checks whether or not an hdf5 array is of expected shape
def nvz6(bo34, ezWE, mWFP, lnf9): ROpF = ezWE.shape PQfb(ezWE, mWFP, len(lnf9)) for YRbF in range(len(ROpF)): pkpR(bo34, ezWE, mWFP, lnf9[YRbF], YRbF) return ezWE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FX5V(YKHO):\n BapD = Kln9.py_create(('f', (2, 2)))\n YKHO.assertIsInstance(BapD, Kln9.TypeArrayID)\n YKHO.assertEqual(BapD.get_array_dims(), (2, 2))", "def UpNN(ezWE):\n return len(ezWE.shape) < 2 or ezWE.shape[0] == 1", "def Fuw0(GhuM):\n tO9_ = 'Input to FlattenAxis must be 5D with dimensi...
[ "0.69791967", "0.69722676", "0.68591064", "0.67562836", "0.65660244", "0.6543666", "0.6451869", "0.6444119", "0.63485813", "0.631514", "0.6293247", "0.627974", "0.6213141", "0.621012", "0.62068224", "0.61876833", "0.6182775", "0.6155193", "0.6117846", "0.60671276", "0.6038974...
0.6024817
21
Returns a function that maps each index in 0, 1, ..., n1 to a distinct RGB color; the keyword argument name must be a standard mpl colormap name.
def tRp2(exwG, mWFP='Paired'): return QrM1.cm.get_cmap(mWFP, exwG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tRp2(exwG, mWFP='jet'):\n return QrM1.cm.get_cmap(mWFP, exwG)", "def tRp2(exwG, mWFP='hsv'):\n return QrM1.cm.get_cmap(mWFP, exwG)", "def tRp2(exwG, mWFP='hsv'):\n return QrM1.cm.get_cmap(mWFP, exwG)", "def tRp2(exwG, mWFP='hsv'):\n return QrM1.cm.get_cmap(mWFP, exwG)", "def tRp2(exwG, mWFP...
[ "0.70274997", "0.69777095", "0.69777095", "0.6929636", "0.6929636", "0.6929636", "0.6722068", "0.65804446", "0.65117544", "0.64281064", "0.6359997", "0.6328479", "0.6287425", "0.6182517", "0.6140233", "0.6113617", "0.6093848", "0.6043708", "0.6020416", "0.599198", "0.59604865...
0.6946189
3
Compute the median expression entropy for each nodegroup.
def YCW7(amsI): from scipy.stats import entropy OfS1, sY8Y = BfDw.select_groups(amsI, smp='aga_groups') vHRy = [] for ZHfW in sY8Y: w_E5 = amsI.X[ZHfW] NjBe = oyIN.median(w_E5, axis=0) W8Sc = (NjBe - oyIN.min(NjBe)) / (oyIN.max(NjBe) - oyIN.min(NjBe)) vHRy.append(entropy(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oqGu(pEOH):\n wjRY = sum(pEOH)\n xiSW = 0\n for Jm1s in pEOH:\n xiSW += OKcU(Jm1s, wjRY)\n return xiSW", "def eNry(YKHO):\n return uzJx.entropy_measure(YKHO.ensemble_transition_matrix)", "def KTW2(wDWA):\n hXYJ = 0\n rxrk = 0\n wjRY = 0\n for tLuO in wDWA:\n jgq6 = ...
[ "0.658507", "0.5736451", "0.57284784", "0.5708104", "0.56793267", "0.5536836", "0.550967", "0.55060744", "0.54905754", "0.5478489", "0.5465526", "0.5432973", "0.5386437", "0.5385966", "0.5360683", "0.5348236", "0.53468496", "0.5310411", "0.52956", "0.52874714", "0.5282013", ...
0.57676446
1
Sets the org_name of this Body66.
def jpuF(YKHO, jpuF): YKHO._org_name = jpuF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g9KT(YKHO, g9KT):\n YKHO._org_id = g9KT", "def WZrJ(YKHO, XIAj):\n YKHO.name = XIAj", "def lt1V(YKHO, mWFP):\n YKHO.__name = mWFP\n YKHO._window.chat_panel.place_name = mWFP\n YKHO.encode_message(action='NO', selected_name=mWFP)", "def WZrJ(YKHO, FCtA):\n YKHO.name = FCtA", "def nMC5(...
[ "0.643787", "0.59833145", "0.59335166", "0.57488096", "0.5701006", "0.56367934", "0.5599724", "0.5570718", "0.55199504", "0.551628", "0.551628", "0.5512924", "0.55125016", "0.55018944", "0.5494965", "0.548489", "0.5480857", "0.5470007", "0.54664814", "0.54491025", "0.5425089"...
0.79243827
1
Sets the primary_email of this Body66.
def aEDJ(YKHO, aEDJ): YKHO._primary_email = aEDJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IhjF(YKHO, IhjF):\n YKHO._primary_contact_email = IhjF", "def Nl14(YKHO, Nl14):\n YKHO._primary_contact_phone = Nl14", "def STL8(YKHO):\n return YKHO.associated_emails.get(is_primary_email=True)", "def KCHD(YKHO, KCHD):\n YKHO._primary_contact_name = KCHD", "def xdur(YKHO, xdur):\n YKHO....
[ "0.8063543", "0.66430384", "0.6357451", "0.61875427", "0.60424984", "0.6042074", "0.5989163", "0.5903577", "0.58055574", "0.5782031", "0.5749868", "0.5737479", "0.573552", "0.573552", "0.573552", "0.573552", "0.573552", "0.573552", "0.573552", "0.573552", "0.573552", "0.573...
0.83779037
0
Sets the production of this Body66.
def Fomj(YKHO, Fomj): YKHO._production = Fomj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def byVg(YKHO, wEf2: str):\n YKHO._amp_body = wEf2", "def Lx3t(YKHO, Lx3t):\n YKHO._product = Lx3t", "def eZkA(YKHO, wEf2):\n YKHO.swift_obj.BeneficiaryCustomer_F = wEf2\n YKHO.swift_obj.BeneficiaryCustomer_F.swiftTag = '59F'", "def lsCU(YKHO):\n YKHO.p.power = YKHO.p.powerDensity * YKHO.getHM...
[ "0.51815313", "0.5153395", "0.5114669", "0.50589466", "0.5042398", "0.5010118", "0.5005076", "0.5005076", "0.49976757", "0.49666646", "0.49221417", "0.4907817", "0.4906579", "0.48988795", "0.48988795", "0.48988795", "0.48988795", "0.48594123", "0.48560992", "0.48514184", "0.4...
0.6551189
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, xZQc): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.80891633", "0.80891633", "0.8055254", "0.7983334", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Initialises a new 'Transaction' instance.
def FIMM(YKHO, uajk='', eJTR='other', AIZr='', BxOO=0.0, uy0z='', fVNh=0.0, zDUV='', lykF=None, zFiD=None, RMYc=None, Bywt=None, eB9A=None, KV0i=None, jJfB=None, rsMz=None, CQDg=None, *qIxc, **lcZy): YKHO.donorReference = uajk YKHO.kind = eJTR YKHO.receiverReference = AIZr YKHO.serviceUnitsError = BxOO ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kh6j(YKHO):\n return T74E(YKHO)", "def Kh6j(YKHO, *qIxc, **B2fa):\n\n class DBTransaction(mgZq, YKHO.__class__):\n pass\n return TgGe(YKHO, *qIxc, **B2fa)", "def Kh6j(YKHO, qxeD):\n return UShr.Transaction(YKHO, qxeD)", "def Pyhf(YKHO, Td1T, Z5kt, aM_I=''):\n owNz = T74E.new(sender=...
[ "0.7518132", "0.7069632", "0.6880315", "0.66759294", "0.6610979", "0.65968335", "0.6581705", "0.6575061", "0.6570488", "0.6570031", "0.6543345", "0.6516487", "0.64194316", "0.6402135", "0.6380142", "0.63299614", "0.6329482", "0.6290477", "0.62703407", "0.62593484", "0.6253577...
0.0
-1
Auxiliary account for this payment transaction.
def Y9WX(YKHO): return YKHO._AuxiliaryAccount
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZrNc(YKHO):\n return tHSi(YKHO)", "def ZrNc(YKHO):\n return tHSi(YKHO)", "def XxoG(Emd4) -> 'Account':\n if not hasattr(Emd4, '_temp_account'):\n Emd4._temp_account = tHSi.objects.get(name='temp')\n return Emd4._temp_account", "def AmjW(YKHO, ZrNc):\n pass", "def P4Ll(YKHO):\n ...
[ "0.62464386", "0.6097026", "0.604867", "0.5980719", "0.5868413", "0.5861512", "0.58483315", "0.5818998", "0.5818998", "0.5711917", "0.5655521", "0.56423235", "0.5629034", "0.5590783", "0.5544849", "0.5522783", "0.54884195", "0.54542595", "0.54363275", "0.54363275", "0.5395915...
0.8345522
0
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Y8eF, aMgO, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues): if not leAC: if NkkI: leAC = 'Normalized confusion matrix' else: leAC = 'Confusion matrix, without normalization' Bcwd = YsYU(Y8eF, aMgO) if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194965", "0.8095361", "0.8029404", "0.8019132", "0.79937756", "0.7991249", "0.798065", "0.7975405", "0.79608935", "0.79568267", "0.79377085", "0.79348165", "0.7934456", "0.79314065", "0.7926248", "0.79243755", "0.79241306", "0.7922902", "0.79228246", "0.792212", "0.791808...
0.0
-1
Create invalid sell order. Insufficient shares on account
def iP_H(YKHO): bGrB = YKHO.set_auth_token_header() nPrm = {'stock': 'GOOG', 'quantity': 15, 'price': 1.25, 'order_type': 'SELL'} bD7m = gxEw('orders-list') geh0 = YKHO.client.post(bD7m, data=nPrm) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEqual(str(geh0.data['deta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KewR(YKHO):\n bGrB = YKHO.set_auth_token_header()\n nPrm = {'stock': 'GOOG', 'quantity': 15, 'price': 1.25, 'order_type': 'BUY'}\n bD7m = gxEw('orders-list')\n geh0 = YKHO.client.post(bD7m, data=nPrm)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertEqual(str(geh0....
[ "0.731046", "0.65683424", "0.6562567", "0.65225804", "0.6458205", "0.6296203", "0.61694056", "0.61680347", "0.6095909", "0.60935867", "0.60671246", "0.60550356", "0.60343236", "0.60288435", "0.60091454", "0.600204", "0.5996069", "0.59907347", "0.59433997", "0.5930718", "0.592...
0.7828949
0
Constructs an empty SkipiList.
def FIMM(YKHO): YKHO.head = None YKHO.tail = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsmZ(Emd4, exwG):\n jtyf = [None] * exwG\n return Emd4(jtyf)", "def FIMM(YKHO):\n YKHO._items = [[] for bGrB in range(20)]", "def c4ic():\n from linked_list import Linked_List\n wnLx = Linked_List()\n return wnLx", "def FIMM(YKHO, list, ipt4=True):\n super().__init__()\n YKHO.list...
[ "0.56931996", "0.5646356", "0.55736446", "0.55551785", "0.55479324", "0.55299884", "0.5525676", "0.549734", "0.541541", "0.541541", "0.5380281", "0.53759134", "0.53759134", "0.53455114", "0.53332925", "0.5308", "0.53043294", "0.53029877", "0.5272583", "0.5269183", "0.52501756...
0.0
-1
Return the status of the message.
def Zw_x(YKHO) -> bool: return YKHO._unparsed_response is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLTN(YKHO):\n return YKHO.msg", "def GuCi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'status_message')", "def GuCi(YKHO) -> str:\n return qe4Y.get(YKHO, 'status_message')", "def jGRS(YKHO):\n return d2m_.get(YKHO._mower_status, {}).get('message', YKHO._mower_status)", "def GuCi(YKHO...
[ "0.8734268", "0.7981881", "0.7913678", "0.76961005", "0.76908225", "0.74490684", "0.74395376", "0.7411409", "0.7392006", "0.7392006", "0.7392006", "0.7348421", "0.73325247", "0.73191434", "0.73073566", "0.7269592", "0.72666997", "0.72575957", "0.7213303", "0.7213303", "0.7202...
0.0
-1
Initialize the Control response message.
def FIMM(YKHO, lGbz: AbstractEventLoop, geh0: bytes) -> None: super().__init__(lGbz, geh0, BhcY.CONTROL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, lGbz: AbstractEventLoop, geh0: bytes) -> None:\n super().__init__(lGbz, geh0, BhcY.AUTO_OFF)", "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JngK, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.result is None:\n YKHO.result = 0\n else:\n YKHO.result =...
[ "0.64077324", "0.6328726", "0.6320327", "0.6307446", "0.61867684", "0.61498237", "0.6050951", "0.604248", "0.60272056", "0.59810376", "0.5980768", "0.59737444", "0.59576327", "0.5880851", "0.57715845", "0.5771365", "0.576015", "0.5686709", "0.56684345", "0.56485677", "0.56238...
0.7457604
0
Initialize the Set Name response message.
def FIMM(YKHO, lGbz: AbstractEventLoop, geh0: bytes) -> None: super().__init__(lGbz, geh0, BhcY.UPDATE_NAME)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def WZrJ(YKHO, FCtA):\n YKHO.name = FCtA", "def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe", "def oSgC(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP)...
[ "0.6840193", "0.6686182", "0.66768605", "0.6644087", "0.6644087", "0.6644087", "0.6644087", "0.66216683", "0.6620766", "0.65824777", "0.65824777", "0.65799534", "0.6523273", "0.65147996", "0.65147996", "0.65147996", "0.65147996", "0.65147996", "0.6452938", "0.6444196", "0.641...
0.0
-1
Initialize the Set Name response message.
def FIMM(YKHO, lGbz: AbstractEventLoop, geh0: bytes) -> None: super().__init__(lGbz, geh0, BhcY.GET_SCHEDULES) YKHO._schedule_list = [] Ylbp = jry1(geh0) or8S = Ylbp[90:-8].decode(rews) pEKy = [or8S[YRbF:YRbF + 32] for YRbF in range(0, len(or8S), 32)] if pEKy: for YRbF in range(len(pEKy)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def WZrJ(YKHO, FCtA):\n YKHO.name = FCtA", "def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe", "def oSgC(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP)...
[ "0.6840193", "0.6686182", "0.66768605", "0.6644087", "0.6644087", "0.6644087", "0.6644087", "0.66216683", "0.6620766", "0.65824777", "0.65824777", "0.65799534", "0.6523273", "0.65147996", "0.65147996", "0.65147996", "0.65147996", "0.65147996", "0.6452938", "0.6444196", "0.641...
0.0
-1
Return True if the move require updating the clusters.
def OrT8(YKHO, CKaQ): cYQE = YKHO.get_bin_changes(CKaQ) for G1Hx, Ty9i in cYQE.items(): if YKHO.bins[G1Hx] == 0 and Ty9i > 0: return True elif Ty9i < 0 and abs(Ty9i) >= YKHO.bins[G1Hx]: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FuVk():\n return True if 'replaces' in YDYm().get().get('spec') else False", "def f20i(YKHO):\n return YKHO.move_count > 0", "def eWZe(YKHO) -> bool:\n return False", "def DrHh(YKHO):\n return not YKHO.get_par('done_moving')", "def Xt0L(YKHO, YimI: dict):\n uKWF = YimI['self'][3]\n if...
[ "0.62536234", "0.61956054", "0.61750716", "0.6097936", "0.6011143", "0.5954543", "0.59472275", "0.59016466", "0.588481", "0.58782333", "0.58488405", "0.5844969", "0.58424366", "0.5825943", "0.5790977", "0.57403874", "0.5739159", "0.5720136", "0.57120806", "0.57106143", "0.569...
0.6562794
0
Constructs a subclass compatible with the members of the CoarsenedTarget.
def pSlW(FWYG: UnionMembership, UksD: CoarsenedTarget, xBs1: CoursierResolveKey) -> GQ3S: qTJV = [] zhST = FWYG.get(GQ3S) for m5hN in zhST: if all((any((Vb5F.is_applicable(a1PO) for Vb5F in m5hN.field_sets)) for a1PO in UksD.members)): qTJV.append(m5hN) if len(qTJV) == 1: ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J4uR(YKHO, xAhW, *qIxc, **YSA3):\n raise NotImplementedError", "def fwuD(Emd4, mWFP, gitN, o8Kj):\n y0DH = super(DxEU, Emd4).__new__\n yR_P = o8Kj.pop('__module__')\n fJ8A = {'__module__': yR_P, '_exchanges': [], '_queues': [], '_consumers': [], '_tasks': []}\n KjNF = y0DH(Emd4, mWFP, gitN, fJ...
[ "0.6350745", "0.6289258", "0.6102257", "0.6032093", "0.6008244", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "0.5794509", "...
0.0
-1
Mock setting up a config entry.
def JcqW() -> jd6F[None, None, None]: with Po4F('homeassistant.components.open_meteo.async_setup_entry', return_value=True): yield
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XRWJ() -> Jaru:\n return Jaru(domain=Sugg, title=kdvQ, unique_id=zJw9, data=X8Rg, options=None)", "def XRWJ() -> Jaru:\n return Jaru(title='Home', domain=Sugg, data={giSx: 'zone.home'}, unique_id='zone.home')", "def XRWJ() -> Jaru:\n return Jaru(title='homeassistant.github', domain=Sugg, data={ScH...
[ "0.8142725", "0.7924758", "0.785828", "0.7342885", "0.70208496", "0.69166386", "0.6822786", "0.6820016", "0.67610127", "0.6749247", "0.67256975", "0.6698294", "0.66255873", "0.6566723", "0.6561804", "0.6537094", "0.65083903", "0.6501225", "0.64746106", "0.6447488", "0.6447086...
0.0
-1
Return a mocked OpenMeteo client.
def _FGh(QePW: pytest.FixtureRequest) -> jd6F[None, CFMy, None]: lt9K: str = 'forecast.json' if hasattr(QePW, 'param') and QePW.param: lt9K = QePW.param QVeo = DZWh.parse_raw(dMy2(lt9K, Sugg)) with Po4F('homeassistant.components.open_meteo.OpenMeteo', autospec=True) as LqHC: wngg = LqHC....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ugjJ(m4Tx: Decoy) -> hKE7:\n return m4Tx.mock(cls=hKE7)", "def amql(AZgw):\n return AZgw.patch('moira_lists.moira_api.get_moira_client', autospec=True)", "def d1k_():\n x0hE = KcLv(url='https://127.0.0.1:8443', port=8443, org_id=1)\n x0hE.set_credentials('dummy', 'dummy-1')\n return x0hE", ...
[ "0.7345737", "0.6855822", "0.67067605", "0.66853005", "0.64904493", "0.6426035", "0.6364616", "0.6348467", "0.6223075", "0.62028974", "0.61708456", "0.6145244", "0.61199665", "0.6087985", "0.6062801", "0.6054867", "0.5995941", "0.5993895", "0.596293", "0.59628266", "0.595292"...
0.5933648
21
Yield successive nsized chunks from list.
def yOAJ(list, ym_X): for YRbF in range(0, len(list), ym_X): yield list[YRbF:YRbF + ym_X]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:...
[ "0.797306", "0.78654736", "0.78504497", "0.7844687", "0.7844551", "0.7844551", "0.78411376", "0.7835319", "0.78306717", "0.78306717", "0.77592033", "0.7755597", "0.7731902", "0.7698615", "0.76923877", "0.76923877", "0.76923877", "0.76923877", "0.76923877", "0.76906675", "0.76...
0.0
-1
Get a bucket name that probably does not exist. We make every attempt to use a unique random prefix, so if a bucket by this name happens to exist, it's ok if tests give false negatives.
def EHjO(): mWFP = '{prefix}{num}'.format(prefix=y0cW, num=next(nGmM)) return mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MBvP(YKHO, ogwO) -> str:\n for YRbF in range(10):\n ZI14 = ajWY(1000, 9999)\n Oehh = '{}-{}'.format(ogwO, ZI14)\n try:\n YKHO.client.create_bucket(Bucket=Oehh, CreateBucketConfiguration={'LocationConstraint': YKHO.region})\n except Exception as exception:\n ...
[ "0.7213397", "0.6925773", "0.66932607", "0.6639567", "0.66090536", "0.6522992", "0.6522992", "0.65090954", "0.65090954", "0.65090954", "0.65090954", "0.65090954", "0.65090954", "0.65090954", "0.65090954", "0.65090954", "0.65090954", "0.6487234", "0.64224625", "0.64224625", "0...
0.69408536
1
Checks if two positions are the same, up to a lattice vector.
def oxXN(gwqK, yCTS, e9i0): return oyIN.isclose(ckaY(gwqK, yCTS), 0, atol=e9i0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cf_1(YKHO, g4we, dC8m):\n return YKHO.board.board[g4we] == YKHO.board.board[dC8m]", "def lPwh(YKHO, FBNX):\n return YKHO.size == len(set((FBNX[YRbF] + YRbF for YRbF in range(YKHO.size)))) == len(set((FBNX[YRbF] - YRbF for YRbF in range(YKHO.size))))", "def uDFq(YKHO, jzdc, Fg_i):\n return None", ...
[ "0.6998616", "0.66790015", "0.6594393", "0.6536093", "0.64687204", "0.6423734", "0.64187104", "0.6287759", "0.6261422", "0.62346756", "0.6230324", "0.6225282", "0.6211702", "0.6198809", "0.61520267", "0.61507636", "0.6112254", "0.60760283", "0.60342854", "0.6014663", "0.60086...
0.67409813
1
Returns the periodic distance between two positions.
def ckaY(gwqK, yCTS): RA_F = oyIN.array(gwqK).astype(float).flatten() - oyIN.array(yCTS).astype(float).flatten() RA_F %= 1 return pEuX.norm(oyIN.array(oyIN.minimum(RA_F, 1 - RA_F)).astype(float))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(Emd4, fMAh, kZtE):\n return oyIN.linalg.norm((fMAh - kZtE).atom_loc)", "def Ayfi(EBgd, HpuQ):\n return epAf.hypot(EBgd[0] - HpuQ[0], EBgd[1] - HpuQ[1])", "def Ayfi(gwqK, yCTS):\n return epAf.sqrt((gwqK[0] - yCTS[0]) ** 2.0 + (gwqK[1] - yCTS[1]) ** 2.0)", "def D0Sn(YKHO, EBgd, HpuQ):\n re...
[ "0.66207093", "0.6602832", "0.6588054", "0.654874", "0.6505045", "0.64960283", "0.64951843", "0.6489827", "0.6473115", "0.64622736", "0.6458235", "0.64565307", "0.6449535", "0.6445451", "0.6443395", "0.64140576", "0.64023924", "0.6382859", "0.6364797", "0.63613594", "0.633651...
0.6824157
0
Get a sublogger for ``name``. The returned logger instance will be a childlogger of your librarywide main logger. Parts of the library can use this to separate their log output.
def NMoC(mWFP): RKD7 = G9jH.getLogger('%s.%s' % (q6nc, mWFP)) return RKD7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2(mWFP):\n return G9jH.getLogger(mWFP)", "def fZx2(mWFP):\n return G9jH.getLogger(mWFP)", "def fZx2(mWFP):\n RKD7 = G9jH.getLogger(mWFP)\n if RKD7.handlers:\n return RKD7\n FMLJ = G9jH.Formatter(NKHF)\n EeSC = G9jH.StreamHandler()\n EeSC.setFormatter(FMLJ)\n RKD7.addHandle...
[ "0.68885326", "0.68759483", "0.68511826", "0.6837787", "0.6831576", "0.6825399", "0.68241847", "0.6820039", "0.6726255", "0.6607911", "0.6568345", "0.6530804", "0.64992136", "0.6478987", "0.6477124", "0.6433103", "0.6419281", "0.6415663", "0.64155984", "0.639293", "0.63736093...
0.65612906
11
Calculates the "distance" from `one` to `two` using the 1norm. Assumes len(one) == len(two) == 2, and binary entries.
def pImw(YKHO, a0GJ, TLv5): return sum((a0GJ[0] != TLv5[0], a0GJ[1] != TLv5[1]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pImw(YKHO, a0GJ, TLv5):\n return oyIN.sqrt((a0GJ[0] - TLv5[0]) ** 2 + (a0GJ[1] - TLv5[1]) ** 2)", "def usGr(QxIi, Mo0Q):\n return oyIN.linalg.norm(QxIi - Mo0Q)", "def s7yO(m3Fl, _bKh, ylKm, ESWn):\n khBW = abs(m3Fl - ylKm)\n awM2 = abs(_bKh - ESWn)\n return khBW + awM2", "def npQY(jzdc, Fg...
[ "0.79038966", "0.6785712", "0.67456216", "0.67014", "0.6649711", "0.6617488", "0.6610858", "0.660316", "0.65297544", "0.65189403", "0.65137064", "0.64862025", "0.6483011", "0.64792967", "0.64750874", "0.64743537", "0.6474063", "0.64538825", "0.6452116", "0.6450026", "0.643916...
0.7274371
1