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
Gets the number of time bins
def IABq(YKHO): return YKHO.header.time_gate_bin_count * YKHO.header.samples_per_time_bin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxyf(YKHO, lGE9, n2Q1):\n lGE9 = Kmii(lGE9, scale='utc')\n n2Q1 = Kmii(n2Q1, scale='utc')\n K4sN = ((n2Q1 - lGE9).to(P6bq.s) / YKHO.dtsample / YKHO.setsize).to(P6bq.dimensionless_unscaled).value\n return oyIN.round(K4sN).astype(int)", "def xyTz(YKHO):\n return (YKHO.header.time_gate_stop - YKH...
[ "0.78884566", "0.7341071", "0.6812186", "0.6678192", "0.6560778", "0.6559253", "0.6519222", "0.6495545", "0.64930296", "0.6466418", "0.64633924", "0.6441701", "0.64246935", "0.642161", "0.6408246", "0.63995695", "0.639357", "0.6382628", "0.6375767", "0.6346752", "0.63335514",...
0.8684272
0
This function creates a box plot for the column distribution of colName.
def w27j(jQ3Z, tcLV): Hy_M = [iEax.Box(x=jQ3Z[tcLV[0]], name=tcLV[0])] LAOT = iEax.Layout(title='Box Plot for distribution of ' + str(tcLV[0])) LZpg = iEax.Figure(data=Hy_M, layout=LAOT) return {'label': 'Boxplot', 'plot': LZpg}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mbKp(jQ3Z, z0q4):\n jQ3Z.boxplot(column=z0q4)\n QrM1.show()", "def I_RD(bOBl, leAC):\n uuEx.boxplot(x=bOBl['category_id'], y=bOBl['price'])\n QrM1.title(leAC)\n QrM1.xlabel('Category ID')\n QrM1.ylabel('Price')\n QrM1.show()", "def L7RL(jQ3Z, Qg73=None, leAC='Out of the ordinary billio...
[ "0.74498236", "0.6772844", "0.6753704", "0.6648415", "0.6388226", "0.63763636", "0.633584", "0.62740636", "0.61444587", "0.60842496", "0.6083751", "0.59873444", "0.593163", "0.5873978", "0.58440197", "0.583945", "0.57907087", "0.5790423", "0.5732122", "0.5665896", "0.5642569"...
0.73588854
1
This function creates a distribution plot for the column colName.
def vkaM(jQ3Z, tcLV): EJVV = [jQ3Z[tcLV[0]]] V_uR = ['colName'] LZpg = i_Or.create_distplot(EJVV, V_uR, show_hist=False, show_rug=False) LZpg['layout'].update(title='Distribution of ' + str(tcLV[0])) LZpg['layout'].update(xaxis=dict(title=tcLV[0])) LZpg['layout'].update(yaxis=dict(title='Probabi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f52L(LNrR, jQ3Z, *fvDH):\n if LNrR == 'box':\n if len(fvDH) == 1:\n wLS1 = jQ3Z.boxplot(column=fvDH[0], rot=90)\n QrM1.show()\n elif len(fvDH) > 1:\n for Z9rn in fvDH[1:]:\n wLS1 = jQ3Z.boxplot(column=fvDH[0], by=Z9rn, rot=90)\n QrM1.s...
[ "0.6637238", "0.6529613", "0.6472679", "0.64063513", "0.63834196", "0.6323733", "0.61246824", "0.61117584", "0.6090261", "0.6080325", "0.605933", "0.60465586", "0.60130113", "0.6002314", "0.5941179", "0.5933714", "0.58825856", "0.5864881", "0.58347625", "0.5780886", "0.571662...
0.7656902
0
Splits an input string containing multiple complete FIX messages into individul FIX messages. Returns a tuple, one FIX message per tuple item.
def A00v(kbia): return tuple(filter(lambda WKvO: WKvO, ZbWC.split('(8=FIX\\.[45]\\.[0-9]\x01.*?\x0110=[0-9]{3}\x01)', kbia)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bexe(str):\n tMMy = (int(str[1]), int(str[4]))\n return tMMy", "def da6v(NRcB):\n yEHD = []\n Ol8d, aEqx = u2_h(NRcB)\n while Ol8d:\n yEHD.append(Ol8d)\n Ol8d, aEqx = u2_h(NRcB)\n return (yEHD, aEqx)", "def tD3_(nPrm):\n SQ3m = nPrm.split(b'\\x00')\n YPtW = SQ3m[:-1]\n...
[ "0.5650809", "0.5629154", "0.5575934", "0.5315437", "0.5272299", "0.52617013", "0.52615064", "0.5261039", "0.5231532", "0.52051973", "0.52009034", "0.51968575", "0.5170099", "0.516239", "0.5161756", "0.51367146", "0.5124484", "0.5118948", "0.51064634", "0.50957894", "0.509255...
0.78909516
0
Get requested manifest object.
def k66M(YKHO): return kkUK.objects.filter(pid=YKHO.kwargs['pid'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _pNd(YKHO):\n if Hy7s.path.exists(YKHO.manifestfile):\n return kkUK(qQXR.loads(nUeQ(YKHO.manifestfile).read()))\n return kkUK({})", "def _pNd(YKHO):\n return YKHO.manifest", "def cSyE(YKHO):\n Kz8N = YKHO.open(YKHO.urls['manifest'])\n return Kz8N.read()", "def Kz8N(YKHO) -> h8nf[qe4...
[ "0.7480596", "0.7413678", "0.7309094", "0.6737419", "0.6655985", "0.64891446", "0.6347094", "0.63281494", "0.6289859", "0.6289859", "0.62650424", "0.6131964", "0.6107416", "0.6035085", "0.60236675", "0.599285", "0.5946704", "0.5898346", "0.5863856", "0.58596516", "0.5843279",...
0.5273295
49
Get the mount corresponding to the given path.
def ujcb(pmON, hvSf=None): pmON = Hy7s.path.abspath(pmON) for XZBf in sorted(W2XT() if hvSf is None else hvSf, key=lambda r8hN: len(r8hN.path), reverse=True): if pmON.startswith(XZBf.path) and (XZBf.path.endswith('/') or pmON[len(XZBf.path):len(XZBf.path) + 1] in ('/', '')): return XZBf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ujcb(Emd4, pmON: os.PathLike) -> Yrvv.Tuple[GkAb, str]:\n try:\n return next(((GkAb(XP5J), a1PO) for XP5J, a1PO in Emd4.get_mount_table() if str(pmON).startswith(XP5J)))\n except StopIteration:\n return (GkAb('/'), 'ext4')", "def H5P8(ww6k):\n j7fj = Hy7s.path.realpath(Hy7s.path.abspat...
[ "0.76399225", "0.72761863", "0.7134569", "0.7107078", "0.70253044", "0.69817704", "0.68928486", "0.6883348", "0.68832374", "0.687298", "0.6643485", "0.65681857", "0.65681857", "0.6548973", "0.654707", "0.6411354", "0.6345403", "0.6337208", "0.6301106", "0.62855", "0.6142402",...
0.8156922
0
GIVEN that a user is already registered WHEN a request is sent to login with user credentials THEN a 200 status code should be returned
def UHFF(YKHO): geh0 = YKHO.client.post('/login', json=YKHO.payload) YKHO.assertEqual(geh0.status_code, 200) YKHO.assertIsNotNone(geh0.json.get('access_token')) YKHO.assertIsNotNone(geh0.json.get('refresh_token'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iuap(YKHO):\n YKHO.client.post('/api/v1/auth/register', data=qQXR.dumps(dict(username='joe', password='123456')), content_type='application/json')\n geh0 = YKHO.client.post('/api/v1/auth/register', data=qQXR.dumps(dict(username='joe', password='123456')), content_type='application/json')\n nPrm = qQXR...
[ "0.7304492", "0.7173485", "0.7087089", "0.7076034", "0.7069506", "0.70545596", "0.6995657", "0.6972732", "0.6964402", "0.691874", "0.6911096", "0.69080055", "0.68910265", "0.6890058", "0.6861274", "0.6846386", "0.6840393", "0.682627", "0.68243337", "0.6804064", "0.6798152", ...
0.0
-1
To generate a string representation of a number array. Used to generate the vertex keys in PointSet dictionary, and other similar operations.
def mXgi(zq5a): return hpVM(W2Bs(x6Xn(TLfE))(zq5a))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LW1U(YKHO, BWXx):\n return '<numeric_array id=\"%s\" encoding=\"base64\">%s</numeric_array>' % (YKHO.register(BWXx), NUGf.dumps(BWXx).encode('base64'))", "def zAg0(YKHO):\n hlel = ''\n for YRbF in YKHO.values:\n aevO = []\n hlel += '['\n for r845 in YRbF:\n aevO.appen...
[ "0.70693964", "0.68095493", "0.67140716", "0.66429996", "0.65580493", "0.65544236", "0.65273523", "0.6440183", "0.63897693", "0.6387019", "0.6269334", "0.62533706", "0.61678696", "0.61482096", "0.6123613", "0.60802", "0.60628647", "0.6033026", "0.6012935", "0.6001879", "0.597...
0.0
-1
Check if an array is sorted in ascending order (assumes an array of numbers, such as integers or float)
def mwCj(qw7D): for YRbF in range(1, len(qw7D)): if qw7D[YRbF - 1] > qw7D[YRbF]: print('Array is not sorted') return False print('Array is sorted') return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mwCj(qw7D):\n if all((qw7D[YRbF] <= qw7D[YRbF + 1] for YRbF in range(len(qw7D) - 1))) or all((qw7D[YRbF] >= qw7D[YRbF + 1] for YRbF in range(len(qw7D) - 1))):\n return True\n return False", "def ynxl(ezWE, U4Ag=True):\n if len(ezWE) == 0:\n return True\n if U4Ag:\n return oyI...
[ "0.8214363", "0.7962729", "0.79553723", "0.79090273", "0.7765588", "0.76141334", "0.74153453", "0.7338457", "0.7263228", "0.7204343", "0.7103531", "0.7098121", "0.6942261", "0.6836335", "0.6758373", "0.6743232", "0.6731614", "0.67268413", "0.6703243", "0.6693806", "0.6582811"...
0.7613879
6
Calculate the great circle distance between two points on the earth (specified in decimal degrees)
def GeVo(GgQG, igSk, tk0B, TGuP): dUib = 6378.137 XBKw = oyIN.pi / 180.0 GgQG = oyIN.array(GgQG) * XBKw igSk = oyIN.array(igSk) * XBKw tk0B = oyIN.array(tk0B) * XBKw TGuP = oyIN.array(TGuP) * XBKw if tk0B.shape: ywwl = tk0B.shape[0] GgQG = oyIN.repeat(GgQG, ywwl) igSk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6", "def T97B(GgQG, ...
[ "0.8146062", "0.78638023", "0.7632202", "0.7604661", "0.7595527", "0.75950956", "0.7592873", "0.757031", "0.7564319", "0.75560796", "0.75300086", "0.7516366", "0.7493803", "0.746558", "0.7450864", "0.7432722", "0.7391925", "0.7355981", "0.7347892", "0.7330029", "0.73271745", ...
0.0
-1
Compute the area of grid cells.
def ET18(oxOY, H05m=True): ykU0 = 6371220.0 E7cI = 4.0 * oyIN.pi * ykU0 ** 2 def GkHj(oxOY): SVhk = ['longitude', 'lon'] for exwG in SVhk: if exwG in oxOY: return exwG raise ValueError('could not determine lon name') def RRkv(oxOY): bGDg = ['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n NwL4 = YKHO.row_end - YKHO.row_start\n ulBT = YKHO.col_end - YKHO.col_start\n f0tD = NwL4 * ulBT\n return f0tD", "def f0tD(YKHO):\n return XTiz.prod(XTiz.meshgrid(*YKHO.binwidths, indexing='ij'), axis=0)", "def NSXO(YKHO):\n return YKHO.width * YKHO.height", "def VE3F(KM7H...
[ "0.788239", "0.78482604", "0.7497436", "0.74233127", "0.7374402", "0.7357601", "0.7270625", "0.7269669", "0.7255076", "0.72430474", "0.7227959", "0.7224641", "0.7215719", "0.7215719", "0.72091466", "0.72091466", "0.72091466", "0.720836", "0.7206918", "0.7194399", "0.7193877",...
0.65556985
99
rearrange time to put austral summer in the middle.
def QzVS(WKvO, LVAh): if isinstance(WKvO, zuVY.DataArray): WKvO = WKvO.values eh4l = WKvO < 182.0 mk8T = WKvO >= 182.0 mzd4 = [] KUx7 = [] if any(mk8T): mzd4 = WKvO[mk8T] - 181 KUx7 = LVAh[mk8T] AEwQ = [] EHtm = [] if any(eh4l): AEwQ = WKvO[eh4l] + 184...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AcdR(ROt1: int, pjEG: str) -> int:\n if pjEG == 'PM' and ROt1 < 12:\n ROt1 += 12\n elif pjEG == 'AM' and ROt1 == 12:\n ROt1 = 0\n return ROt1", "def mNu9(wVFi):\n H3Lh = wVFi.find('months since ')\n if H3Lh == 0:\n pw_q = 'months since '\n else:\n jhxW = wVFi.fin...
[ "0.60116136", "0.5764526", "0.5315105", "0.5313343", "0.5261097", "0.52512854", "0.52169853", "0.51664436", "0.51532894", "0.51249015", "0.5088908", "0.50719756", "0.5066444", "0.50463414", "0.5040423", "0.5003004", "0.49666005", "0.49636024", "0.4960331", "0.49540094", "0.49...
0.0
-1
end of month day
def U9Hm(lO87, x0eS): if hasattr(lO87, '__iter__'): assert hasattr(x0eS, '__iter__') return oyIN.array([GRk0.monthrange(LVAh, r8hN)[-1] for LVAh, r8hN in zip(lO87, x0eS)]) else: return GRk0.monthrange(lO87, x0eS)[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sz_R(Csk6):\n return _c1T(Csk6.year, Csk6.month, wTnG(Csk6.year, Csk6.month)[1])", "def o4Rw(x0eS):\n return qcWV(2020, x0eS, 28)", "def xjYu(_c1T):\n return qcWV(_c1T.year, _c1T.month, 1) + fCoM(days=-1)", "def mjdP(lO87, x0eS):\n qE0M = int(GRk0.monthrange(lO87, x0eS)[1])\n KhBf = _c1T(l...
[ "0.7634243", "0.74817556", "0.69794214", "0.6907938", "0.6826484", "0.6807931", "0.6789926", "0.67466354", "0.6733794", "0.6703177", "0.6666026", "0.6649959", "0.6500736", "0.64781207", "0.64558196", "0.6404312", "0.64042103", "0.63908696", "0.63718075", "0.63707715", "0.6370...
0.63095105
25
return a list with unique entries, but don't change the order
def B6x2(Q6uT): PwWw = set() aygV = PwWw.add return [WKvO for WKvO in Q6uT if not (WKvO in PwWw or aygV(WKvO))]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ONhe(BDwY):\n return list(set(BDwY))", "def kcwm(WKvO):\n return list(set(WKvO))", "def kcwm(BDwY):\n PwWw = set()\n aygV = PwWw.add\n return [WKvO for WKvO in BDwY if not (WKvO in PwWw or aygV(WKvO))]", "def jwGI(BDwY):\n jbXL = []\n for geyT in BDwY:\n if geyT not in jbXL:\n...
[ "0.8046526", "0.7668888", "0.7653071", "0.7576993", "0.7532018", "0.7500516", "0.74825764", "0.7419812", "0.7374705", "0.733722", "0.7311688", "0.72872996", "0.72858495", "0.72837687", "0.72799385", "0.7273521", "0.7269689", "0.72558814", "0.7235664", "0.7234846", "0.7210553"...
0.0
-1
compute coefficient of determination
def vIFx(YKHO): Ptm0 = oyIN.sum((YKHO.data.y - YKHO.predict(YKHO.data.x)) ** 2) BUJL = oyIN.sum((YKHO.data.y - YKHO.data.y.mean()) ** 2) return 1.0 - Ptm0 / BUJL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zZRI(YKHO) -> float:\n ...", "def I36B(rcrN, o3Uj):\n L_Tt = oyIN.sum((rcrN - o3Uj) ** 2)\n ZfBZ = oyIN.sum((rcrN - o3Uj.mean()) ** 2)\n return 1 - L_Tt / ZfBZ", "def nUPH(YKHO):\n if YKHO.x == 0 or YKHO.y == 0:\n return None\n elif YKHO.x == 1 or YKHO.y == 1:\n return YKHO....
[ "0.7171652", "0.6999487", "0.6612829", "0.6426675", "0.64180464", "0.640523", "0.6387252", "0.6350718", "0.6348035", "0.63423896", "0.63397646", "0.63313454", "0.62892926", "0.6207614", "0.6206039", "0.6200083", "0.6162931", "0.6156804", "0.6119922", "0.61063445", "0.60805494...
0.0
-1
Given a sequence of numbers, calculate the average of them.
def Q0Sa(xYvp): if type(xYvp) == list or type(xYvp) == oyIN.ndarray: return oyIN.mean(xYvp) else: print('Invalid type: nums needs to be a list or numpy array.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RQvV(mSrU):\n return sum(mSrU) // len(mSrU)", "def S8vG(aWuw):\n try:\n return aWuw.mean()\n except AttributeError:\n return sum(aWuw) / len(aWuw)", "def zsZT(aWuw: list):\n if not aWuw:\n return []\n JBMS = []\n '\\n [1] = 1 / 1\\n [1,2] = 3 / 2 \\n [1...
[ "0.81556594", "0.8090954", "0.7946982", "0.793427", "0.79193133", "0.7893692", "0.78671145", "0.77538055", "0.7669911", "0.76558876", "0.7652239", "0.76408434", "0.7428281", "0.7408728", "0.73901063", "0.73898107", "0.738119", "0.738119", "0.735108", "0.73435336", "0.7340045"...
0.64265484
99
Calculate the angular distance between two coordinates.
def OWQQ(d8Kn, JqQl, sFT8, XGkr): ps29 = (d8Kn - sFT8) * oyIN.pi / 180.0 Y8WN = (JqQl - XGkr) * oyIN.pi / 180.0 pImw = 2.0 * oyIN.arcsin(oyIN.sqrt(oyIN.sin(Y8WN / 2.0) ** 2 + oyIN.cos(JqQl * oyIN.pi / 180.0) * oyIN.cos(XGkr * oyIN.pi / 180.0) * oyIN.sin(ps29 / 2.0) ** 2)) return pImw / oyIN.pi * 180.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9cH(igSk, GgQG, TGuP, tk0B):\n jfap = mM0K / 180\n return fH9s(YhSR(igSk * jfap) * YhSR(GgQG * jfap) * YhSR(TGuP * jfap) * YhSR(tk0B * jfap) + YhSR(igSk * jfap) * YUNn(GgQG * jfap) * YhSR(TGuP * jfap) * YUNn(tk0B * jfap) + YUNn(igSk * jfap) * YUNn(TGuP * jfap))", "def Z9cH(iT5T, igSk, JSDM, TGuP):\n ...
[ "0.8073124", "0.77694464", "0.6896379", "0.6814788", "0.68001467", "0.6660871", "0.6648392", "0.66088325", "0.6499083", "0.646374", "0.63813066", "0.6376411", "0.63277", "0.6317756", "0.6295193", "0.62445444", "0.6234149", "0.62277234", "0.61829424", "0.6150075", "0.61456716"...
0.6440657
10
Iterate through the 'Product' response tags.
def Ldyl(YKHO): for TZ9E in YKHO._tag.iterdescendants('Product'): yield jOzV(TZ9E)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nlRY(YKHO, geh0):\n Ldyl = []\n _sei = msfn.objects.last()\n if _sei:\n YRbF = _sei.id\n else:\n YRbF = 0\n for Lx3t in geh0:\n if 'ingredients_text_fr' not in Lx3t:\n QoB4 = ''\n else:\n QoB4 = Lx3t['ingredients_text_fr']\n OXKe = ''.join...
[ "0.6740828", "0.6547733", "0.631417", "0.6299203", "0.6260291", "0.6260279", "0.6137855", "0.61339784", "0.6104141", "0.6090387", "0.60582495", "0.6034605", "0.597348", "0.5939808", "0.59301203", "0.5925287", "0.59077907", "0.5903081", "0.58574", "0.58506566", "0.58133626", ...
0.68449175
0
Return whether TOAHModel self is equivalent to other. Two TOAHModels are equivalent if their current configurations of cheeses on stools look the same. More precisely, for all h,s, the hth cheese on the sth stool of self should be equivalent the hth cheese on the sth stool of other
def xa14(YKHO, Elif): for YRbF in YKHO._stools: if not YKHO._stools[YRbF] == Elif._stools[YRbF]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO: 'TOAHModel', Elif: 'TOAHModel') -> bool:\n return YKHO.stool_lst == Elif.stool_lst", "def T0rY(YKHO, Elif):\n return id(YKHO) == id(Elif)", "def thHz(YKHO, Elif):\n k0lF = YKHO.minimization().relabeled()\n [RqgG] = k0lF.initial_states()\n UTX6 = {RqgG: ()}\n for Ty9i in k0lF.di...
[ "0.7675344", "0.7389438", "0.7364917", "0.7210071", "0.70732707", "0.7039867", "0.6950409", "0.694263", "0.6938312", "0.68981266", "0.6846222", "0.6821377", "0.6804145", "0.6790955", "0.6742427", "0.6729195", "0.67251754", "0.67087126", "0.6703534", "0.6683057", "0.6665138", ...
0.6837803
11
Return the number of moves that have been played since the start of the game.
def OGRe(YKHO): return YKHO._move_seq.length()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zQyV(YKHO):\n return YKHO._number_of_moves", "def bc1J(BH3N, oyg0):\n return float(len(BH3N.get_legal_moves(oyg0)))", "def NSP_(YKHO):\n return YKHO.turns.count()", "def M6ow(YKHO, oyg0: PlayerColor) -> int:\n f064: x1iM[_UKz] = YKHO.get_player_squares(oyg0)\n UHFx: int = 0\n for gzWm i...
[ "0.7698358", "0.71947163", "0.69577485", "0.6855067", "0.6845205", "0.6732028", "0.66507626", "0.6583397", "0.6565476", "0.6536588", "0.640368", "0.6374573", "0.6348817", "0.63231575", "0.63171047", "0.6292354", "0.6282588", "0.6127229", "0.61241573", "0.6113308", "0.6101653"...
0.74638337
1
Add a number of cheeses to the last stool.
def gm22(YKHO, nPbU): for YRbF in range(nPbU, 0, -1): YKHO._stools[max(YKHO._stools)].append(O7B4(YRbF))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rJLf(YKHO, nPbU):\n for YRbF in range(nPbU, 0, -1):\n YKHO._stools[0].append(O7B4(YRbF))", "def rJLf(YKHO: 'TOAHModel', nPbU: int):\n YKHO._number_of_cheeses = nPbU\n ZH9B = YKHO.stool_lst[0]\n for hNYG in range(1, nPbU + 1):\n ZH9B.append(O7B4(hNYG))\n ZH9B.sort(key=lambda hNYG:...
[ "0.70451784", "0.6662271", "0.6024769", "0.5820514", "0.5799186", "0.5618816", "0.5616417", "0.5562337", "0.5552165", "0.54589385", "0.5413732", "0.5378334", "0.53430796", "0.52527344", "0.52500755", "0.52305824", "0.5210188", "0.52092415", "0.5184598", "0.515491", "0.5154747...
0.77200055
0
Is self equivalent to other? We say they are if they're the same size.
def xa14(YKHO, Elif): return isinstance(Elif, type(YKHO)) and YKHO.size == Elif.size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if YKHO is Elif:\n return True\n if type(YKHO) != type(Elif):\n return False\n if YKHO.size() != Elif.size():\n return False\n for d6pt in range(YKHO.size()):\n if YKHO[d6pt] != Elif[d6pt]:\n return False\n return True", "def Dk43(YKHO...
[ "0.75361466", "0.7295249", "0.7269822", "0.71853644", "0.71330845", "0.71167344", "0.71051854", "0.7072695", "0.704994", "0.70439506", "0.70168173", "0.70130074", "0.701285", "0.6925093", "0.69202673", "0.6912432", "0.69088316", "0.68935174", "0.68680483", "0.6850945", "0.684...
0.81858116
0
Reads a dataset, and handles repetition and shuffling.
def Rhr4(zeN5, qZLi, GPtr): iumf = ZylS.gfile.Glob(qZLi) if not iumf: raise ValueError('Invalid input path specified in `input_reader_config`.') _r0W = GPtr.num_readers if _r0W > len(iumf): _r0W = len(iumf) ZylS.logging.warning('num_readers has been reduced to %d to match input f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I0lm(YKHO):\n assert YKHO.data_tags is not None\n assert YKHO.training_dataset is not None\n assert YKHO.validation_dataset is not None\n YKHO.training_dataset = YKHO.shuffle_data_dictionary(YKHO.training_dataset)\n YKHO.validation_dataset = YKHO.shuffle_data_dictionary(YKHO.validation_dataset)"...
[ "0.6416195", "0.6392218", "0.6275127", "0.6252088", "0.62274146", "0.61871964", "0.6137446", "0.6118787", "0.6054238", "0.6049569", "0.6012324", "0.5997862", "0.5958047", "0.5955012", "0.59117734", "0.5885263", "0.58770514", "0.58683866", "0.58572733", "0.5852467", "0.5826145...
0.58154106
21
Given a matrix T, evolve a point Z on the nsimplex and return it.
def xZum(Nk6w, Kt_s, exwG=1): Nk6w = DMIq(Nk6w) for YRbF in range(exwG): zTYf = JxU2(Nk6w, Kt_s) if zTYf != 0.0: Nk6w = oyIN.matmul(Nk6w, Kt_s) / zTYf else: Nk6w = DMIq([1] * len(Nk6w)) Nk6w = oyIN.matmul(Nk6w, Kt_s) / JxU2(Nk6w, Kt_s) return Nk6w
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, Kt_s, EcVT):\n Htse = (Kt_s.shape[0], 1, 1)\n jzdc = EcVT[:, 0:1].reshape(Htse)\n tTpl = EcVT[:, 1:2].reshape(Htse)\n YRbF = EcVT[:, 2:3].reshape(Htse)\n yzQ0 = EcVT[:, 4:5].reshape(Htse)\n eHNT = EcVT[:, 5:6].reshape(Htse)\n UH90 = oyIN.sin(eHNT)\n EzjL = oyIN.cos(eHNT)\n ...
[ "0.58604", "0.55016977", "0.5494856", "0.5487278", "0.53921306", "0.53729683", "0.5341942", "0.53400165", "0.53257084", "0.5236877", "0.5211561", "0.5200815", "0.517127", "0.51684237", "0.516761", "0.5150064", "0.51452965", "0.5132466", "0.509386", "0.50926304", "0.508447", ...
0.6556731
0
Update ``hasher`` with ``string``.
def jFNz(razo, vIwR, ZGum='utf8'): if isinstance(vIwR, str): razo.update(vIwR) elif isinstance(vIwR, QMSQ): razo.update(vIwR.encode(ZGum)) return razo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sM10(YKHO, sM10):\n YKHO._hash_string = sM10", "def hash(YKHO, vIwR):\n MKlR = xORj()\n MKlR.update(vIwR)\n return MKlR.digest()", "def hash(YKHO, vIwR):\n return YKHO.__scaffydb.hash(vIwR)", "def O9eL(YKHO, KCHu):\n r8hN = xORj()\n r8hN.update(KCHu)\n Csk6 = r8hN.digest()\n re...
[ "0.71470696", "0.6984489", "0.6796498", "0.6600572", "0.6349129", "0.62111497", "0.61200255", "0.60377216", "0.60088164", "0.59267515", "0.5913179", "0.5892349", "0.5845414", "0.58435625", "0.5841524", "0.5806818", "0.5777173", "0.57288176", "0.5715254", "0.5692991", "0.56834...
0.81067663
0
Seperate the symbols in symbolic function func. Return them in alphabetical order.
def BXzN(JfyU): NArs = [] vars = [] for o61b in JfyU.free_symbols: if not str(o61b).isidentifier(): continue if isinstance(o61b, XDS4): NArs.append(o61b) elif isinstance(o61b, eA5g): pass elif isinstance(o61b, (_A1q, EWKA)): var...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J03l(dpnb, rmc3):\n dpnb = dpnb.replace('^', '**')\n FYKK = ljrb([FCE9.symbols(rmc3)], dpnb, 'numpy')\n return FYKK", "def fbhb(lgNN: Callable[[str], bool]):\n\n def NsXz(s2mk: List[TOKEN], WMwn: DICT, a1V8: DICT):\n Aofo: x1iM[rjWG] = []\n lpha = False\n Bspe = False\n ...
[ "0.6423545", "0.6198006", "0.58888936", "0.56594294", "0.55979365", "0.559099", "0.5582595", "0.5537977", "0.54961663", "0.5426786", "0.54029727", "0.5365869", "0.5341528", "0.5325418", "0.5294751", "0.5293736", "0.5275363", "0.5256423", "0.52551985", "0.52452266", "0.5223613...
0.6941614
0
Return a dict with all the Vars that apply to this task according to the task_role for the task. This method returns a dict of Vars that represent the view of the Var space from the perspective of the task's Role (task_role). This will be the Vars expanded from the perspective of that role.
def A5Vo(YKHO, VNWg=False): gGJN = {} BhV8 = YKHO.get_task_role() if BhV8 is not None: gGJN = {G1Hx: Ty9i.get_value(BhV8) for G1Hx, Ty9i in BhV8.get_visible_vars().items() if not VNWg or (VNWg and Ty9i.in_env)} return gGJN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}", "def qiMC(YKHO):\n uzQA = [YKHO[imdf] for imdf in YKHO.statVars]\n Khf1 = [YKHO[imdf] for imdf in YKHO.timeVars]\n return uzQA + Khf1", "def jbKh(YKHO):\n ygUv = YKHO._design.GetVariables() + YKHO._design.GetPostProcessingV...
[ "0.64747906", "0.64349014", "0.63510406", "0.6317267", "0.62683344", "0.61825764", "0.61799973", "0.6175024", "0.6166144", "0.6125326", "0.6117106", "0.6070665", "0.6068115", "0.60528946", "0.6038206", "0.60029924", "0.599413", "0.59917784", "0.59647244", "0.5955935", "0.5952...
0.7978854
0
Return the effective remote user to use for this task.
def wUqj(YKHO): oVI6 = YKHO.remote_user if YKHO.remote_user is not None else YKHO.delegate.get_remote_user() if YKHO.delegate is not None else None return oVI6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wUqj(YKHO, NtEF):\n return 'ec2-user'", "def nrOS(YKHO, qv1X):\n return qv1X.remote_user", "def TGsR(YKHO):\n if 'repoze.who.identity' in YKHO.environ:\n return YKHO.environ['repoze.who.identity'].get('user')", "def oyHK():\n return AOO4.getuser()", "def CBIr(YKHO):\n return YKHO....
[ "0.73137546", "0.7248746", "0.7076029", "0.7009849", "0.69299936", "0.6720796", "0.6690437", "0.66117835", "0.659132", "0.6589816", "0.6574206", "0.65683377", "0.6542362", "0.65085113", "0.6453833", "0.6450967", "0.6448139", "0.6436463", "0.64362365", "0.64331555", "0.6421732...
0.73975164
0
Compute the L{Role} to use for as the default task_role for this model. This method computes the task_role, either from this model or from the model's delegate, and returns the actual Role object to use.
def gCj7(YKHO): if YKHO.default_task_role is None and YKHO.delegate is None: raise daSU('No default task role defined on the config model') if YKHO.namespace_model_instance is None: raise daSU("ConfigModel instance can't get a default task role from a Namespace model reference without an instanc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCj7(YKHO):\n YKHO.fix_arguments()\n if YKHO.task_role is not None:\n yCnv = YKHO.task_role\n elif YKHO._model_instance:\n yCnv = YKHO._model_instance.get_task_role()\n else:\n raise daSU(\"Can't find a task role for task {}\".format(YKHO.name))\n return yCnv", "def e4wR(Y...
[ "0.80605596", "0.6455118", "0.63975924", "0.6324114", "0.6324114", "0.61963266", "0.61963266", "0.61963266", "0.6178694", "0.6165453", "0.61376363", "0.6093497", "0.6062734", "0.6062734", "0.6062734", "0.60511154", "0.6047456", "0.5895616", "0.5895616", "0.58813745", "0.58695...
0.8363977
0
Returns the namespace model instance for this config model.
def W5fH(YKHO): if not YKHO.namespace_model_instance: YKHO.namespace_model_instance = YKHO.nexus.find_instance(Xyx8) return YKHO.namespace_model_instance
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _63S(YKHO):\n return jFQi(YKHO)", "def _63S(YKHO):\n return YKHO.__namespace__", "def _63S(YKHO):\n return YKHO._namespace", "def _63S(YKHO, _63S, cKm3=True, qD4B=True):\n return PSrQ(YKHO.root_path, YKHO.get_namespace_view(_63S, cKm3, qD4B))", "def _63S(YKHO) -> _PO7.Namespace:\n return...
[ "0.70460635", "0.6636454", "0.6402093", "0.64018774", "0.6398787", "0.6243978", "0.6113757", "0.6092838", "0.60506684", "0.60448587", "0.60202265", "0.60202265", "0.60202265", "0.60121566", "0.59813595", "0.59613967", "0.5957378", "0.59540343", "0.59528416", "0.591677", "0.59...
0.8207099
0
Returns a list of _Dependency objects that captures all the task dependency pairs in the config model.
def cPdt(YKHO): WYZt = [getattr(YKHO, mWFP).value() for mWFP in YKHO._node_dict.values()] return list(Hs6x.chain(list(Hs6x.chain(*[exwG.unpack() for exwG in WYZt if isinstance(exwG, fqRn)])), *[Csk6.unpack() for Csk6 in YKHO.dependencies]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TiA1(YKHO):\n aeQa = []\n for pPTc in YKHO.resolve_variants():\n mWFP, BWXx = next(iter(pPTc.items()))\n if 'requires' in BWXx and BWXx['requires'] is not None:\n emMa = BWXx['requires']\n for jpev, hfS3 in emMa.items():\n aeQa.append((jpev, hfS3['versio...
[ "0.73051786", "0.71063894", "0.68602127", "0.67880315", "0.67533594", "0.6616975", "0.65361357", "0.6515832", "0.6485797", "0.64229614", "0.6406096", "0.63834846", "0.63826835", "0.6346205", "0.6304355", "0.6222923", "0.61693645", "0.6164254", "0.6101858", "0.6070012", "0.603...
0.6640788
5
Returns a list of nodes that have no predecessors in the TaskGroup; these are the nodes that represent "entering" the group from a dependency graph perspective.
def bubI(YKHO): return list(Hs6x.chain(*[d7pR.entry_nodes() for d7pR in YKHO.args]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W6VH(YKHO) -> OKZr:\n return OKZr([D5gV for D5gV in YKHO._tasks if not len(D5gV.predecessors)])", "def H_L6(YKHO):\n _Bz0 = []\n for Q6kx in YKHO.graph.nodes_iter():\n if len(YKHO.graph.predecessors(Q6kx)) == 0:\n _Bz0.append(Q6kx)\n return _Bz0", "def SoZd(YKHO):\n SoZd = ...
[ "0.76038766", "0.7069459", "0.6779221", "0.66465074", "0.65739846", "0.6528018", "0.62994224", "0.62410164", "0.6163187", "0.61213", "0.6106773", "0.607117", "0.6070428", "0.60565764", "0.6021042", "0.6011508", "0.597538", "0.5958595", "0.59470695", "0.594263", "0.58712065", ...
0.0
-1
Unpacks the internal dependencies for the tasks that the MultiTask contains, returns a list of _Dependency objects.
def MZ6z(YKHO): aeQa = list(YKHO.dependencies) aeQa.extend(Hs6x.chain(*[Z9rn.unpack() for Z9rn in YKHO.instances if isinstance(Z9rn, fqRn)])) return aeQa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MZ6z(YKHO):\n aeQa = []\n if isinstance(YKHO.from_task, fqRn):\n aeQa.extend(YKHO.from_task.unpack())\n if isinstance(YKHO.to_task, fqRn):\n aeQa.extend(YKHO.to_task.unpack())\n VECZ = YKHO.from_task.exit_nodes()\n zNqJ = YKHO.to_task.entry_nodes()\n aeQa.extend([dnvJ(bTKY, FS_w...
[ "0.7964286", "0.74229574", "0.71604764", "0.655894", "0.6495268", "0.6067974", "0.6067005", "0.59941673", "0.59872794", "0.5975218", "0.5912984", "0.58766484", "0.58591163", "0.58124727", "0.5811587", "0.5799529", "0.5798127", "0.5773876", "0.575269", "0.57259077", "0.5725608...
0.7578195
1
Since dependencies are "orable", it's entirely possible that a dependency may be set up between dependencies rather than between tasks (or a mix of tasks and dependencies). Actual work lists can only be constructed on dependencies between tasks, so what this method does is unpack a set of nested dependencies and covert...
def MZ6z(YKHO): aeQa = [] if isinstance(YKHO.from_task, fqRn): aeQa.extend(YKHO.from_task.unpack()) if isinstance(YKHO.to_task, fqRn): aeQa.extend(YKHO.to_task.unpack()) VECZ = YKHO.from_task.exit_nodes() zNqJ = YKHO.to_task.entry_nodes() aeQa.extend([dnvJ(bTKY, FS_w) for bTKY in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pp2L(YKHO, uPnQ, L2MH):\n umHY = []\n for D5gV in L2MH:\n umHY += [tTpl.obj for tTpl in D5gV.get_elements(polymorphic=True)]\n SqIz = []\n L2MH = gnPz.Set(L2MH)\n Irx2 = []\n SMAd = {}\n\n def oaaw(YEnM, kxdb):\n try:\n TifC = SMAd[YEnM]\n except KeyError:\n...
[ "0.6746443", "0.6678885", "0.65148854", "0.6372926", "0.6337993", "0.6161914", "0.6102153", "0.6074393", "0.6041916", "0.59989387", "0.5982734", "0.59790087", "0.59572047", "0.5952667", "0.59470254", "0.59362024", "0.5919329", "0.59048957", "0.5900662", "0.5870729", "0.586739...
0.70221364
0
Set a limit for `jail_code`. `limit_name` is a string, the name of the limit to set. `value` is the value to use for that limit. The type, meaning, default, and range of accepted values depend on `limit_name`.
def h6ei(zNFK, BWXx): masZ[zNFK] = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def avEz(mWFP, eB_n):\n return FLei(yqe2.getStub('limit').Create(VFnb.LimitCreateRequest(name=mWFP, max_value=eB_n), timeout=yqe2.Timeout))", "def DPmE(YKHO, BWXx):\n super(wy2T, YKHO)._set_input('Limit', BWXx)", "def set(YKHO, nPrm: _ResourceLimitInputType, ByIK: bool=False) -> None:\n AgZa = 'warn' ...
[ "0.5972543", "0.5867357", "0.5808608", "0.5543227", "0.5437595", "0.53425455", "0.5329154", "0.5307113", "0.5306315", "0.52793765", "0.5259901", "0.5256695", "0.52299404", "0.51858866", "0.51528436", "0.50746256", "0.504095", "0.50371546", "0.50065947", "0.50065947", "0.50062...
0.7254196
0
Returns the protocol for the given self.url.
def jVMQ(YKHO, bD7m): kUBT = YKHO.__REGEX_SCHEMA.search(bD7m) if kUBT: iquo = kUBT.group(0).split(':')[0] return iquo return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F9yi(bD7m):\n Aofo = ZbWC.search('^https?://', bD7m)\n return Aofo.group(0) if Aofo else None", "def iquo(YKHO, Wxnj):\n return YKHO.url.scheme", "def F9yi():\n if TzmZ():\n iquo = 'https'\n else:\n iquo = 'http'\n return iquo", "def F9yi(YKHO):\n if YKHO.ssl:\n ...
[ "0.8030298", "0.7286053", "0.68485206", "0.68434453", "0.6707391", "0.6634757", "0.6594081", "0.6577397", "0.65271443", "0.6478635", "0.64487493", "0.6420222", "0.6411562", "0.6372328", "0.6345152", "0.6302995", "0.6264109", "0.6237375", "0.6237375", "0.6235042", "0.62099046"...
0.8065134
0
Returns the path for the given self.url.
def ATlO(YKHO, bD7m): for hHld in ZbWC.finditer(YKHO.__REGEX_PATH, bD7m): aOUx = hHld.group() hzmq = bD7m.find(aOUx) - 1 if bD7m[hzmq] is not None and bD7m[hzmq] != '/': return aOUx return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h_um(bD7m):\n return XuVn(bD7m)[2]", "def Qi1G(YKHO, pmON):\n return YKHO.url + pmON", "def BnIw(YKHO, bD7m):\n bD7m = ZbWC.sub('^[^:]*://[^/]+', '/', bD7m)\n return YKHO.canonicalize(bD7m)", "def bD7m(YKHO) -> str:\n return YKHO._request.url.path", "def OyQC(YKHO):\n return YKHO.path...
[ "0.7347242", "0.7200889", "0.7168486", "0.71047497", "0.70148844", "0.7011918", "0.69828814", "0.6979602", "0.6954033", "0.695056", "0.6946101", "0.69204116", "0.6910116", "0.6905976", "0.6905976", "0.6897269", "0.6897269", "0.68740237", "0.68550164", "0.6840348", "0.68334794...
0.0
-1
Convert a unix timestamp in stringify datetime (UTC)
def upM_(wWVQ): E3oo = qcWV.utcfromtimestamp(wWVQ) return E3oo.strftime('%Y-%m-%dT%H:%M:%S.%fZ')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zKHa(E3oo=ITS7(), gqke='%Y-%m-%d %H:%M:%S'):\n return F803(gqke, WPt4(E3oo))", "def f0WG(YKHO, a1PO):\n LVAh, r8hN, Csk6 = str(a1PO).split('-')\n return qcWV(int(LVAh), int(r8hN), int(Csk6)).strftime('%s')", "def Zt6_(E3oo):\n qtWj = qcWV.utcfromtimestamp(0)\n RA_F = E3oo - qtWj\n return ...
[ "0.74088883", "0.7273378", "0.7013416", "0.6990894", "0.6972318", "0.695929", "0.69034106", "0.6886631", "0.68661165", "0.6836051", "0.6792977", "0.67885697", "0.67801505", "0.672935", "0.67102975", "0.6708447", "0.6691395", "0.6664989", "0.66601646", "0.6632887", "0.6612012"...
0.7572793
0
Convert the UTC timestamp to timezone by given new timezone.
def xweO(DeWg, rIAI='GMT'): SjQe = yl4j.gettz('UTC') t79W = yl4j.gettz(rIAI) h5YN = DeWg.replace(tzinfo=SjQe) return h5YN.astimezone(t79W)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gsQH(YKHO, E3oo):\n CBIr = YKHO.zport.dmd.ZenUsers.getUserSettings()\n if CBIr.timezone:\n B8aT = FXGE.utc.localize(qcWV.utcfromtimestamp(int(E3oo)))\n yl4j = FXGE.timezone(CBIr.timezone)\n OeQj = yl4j.normalize(B8aT.astimezone(yl4j))\n return OeQj.strftime(Iml2(CBIr.dateForma...
[ "0.6792479", "0.6649737", "0.66389257", "0.65631527", "0.6556731", "0.64940673", "0.6482443", "0.645134", "0.64305115", "0.6376043", "0.63433456", "0.6319062", "0.63147", "0.6243294", "0.62328583", "0.6214316", "0.6185847", "0.60898536", "0.60819656", "0.6061975", "0.6057222"...
0.74734247
0
Sample initial states by taking random number of noops on reset. Noop is assumed to be action 0.
def FIMM(YKHO, sEAN, cc1Y=30): ch3p.Wrapper.__init__(YKHO, sEAN) YKHO.noop_max = cc1Y YKHO.override_num_noops = None YKHO.noop_action = 0 assert sEAN.unwrapped.get_action_meanings()[0] == 'NOOP'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO._cur_state = YKHO._sample_state(YKHO._mdp.I)\n YKHO._prev_state = YKHO._cur_state", "def SiRx(YKHO, **B2fa):\n YKHO.env.reset(**B2fa)\n QDHm = YKHO.unwrapped.np_random.randint(1, YKHO.noop_max + 1)\n W061 = None\n for bGrB in range(QDHm):\n W061, bGrB, _ins, bGrB =...
[ "0.72193784", "0.72192264", "0.7072182", "0.7020714", "0.70182014", "0.69456506", "0.6894622", "0.6889975", "0.67928576", "0.6788414", "0.6638059", "0.65487605", "0.654527", "0.6478535", "0.6470629", "0.64657193", "0.6429265", "0.64276826", "0.64265233", "0.6419323", "0.63762...
0.0
-1
clips the reward to {+1, 0, 1} by its sign.
def FIMM(YKHO, sEAN): ch3p.RewardWrapper.__init__(YKHO, sEAN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)", "def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)", "def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)", "def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)", "def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)", "def vOGg(YKHO, vOGg):\n return oyIN.s...
[ "0.765923", "0.7549669", "0.7549669", "0.7549669", "0.7549669", "0.7549669", "0.71505404", "0.64642996", "0.6438022", "0.636221", "0.62719584", "0.6199013", "0.6162346", "0.6150474", "0.60861486", "0.60645854", "0.6032676", "0.60250956", "0.60137343", "0.5964764", "0.59603924...
0.0
-1
Bin reward to {+1, 0, 1} by its sign.
def vOGg(YKHO, vOGg): return oyIN.sign(vOGg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)", "def vOGg(YKHO, vOGg):\n return float(oyIN.sign(vOGg))", "def Zihr(WKvO):\n return tBeC(1, WKvO)", "def Zihr(YKHO):\n return 1 - 2 * YKHO._ltz()", "def Zihr(YKHO, g4y1):\n pass", "def Zihr(YKHO, g4y1):\n pass", "def Zihr(WKvO):\n if ...
[ "0.716841", "0.6649643", "0.65168613", "0.61958915", "0.60515827", "0.60515827", "0.6047905", "0.6013856", "0.5960513", "0.5951386", "0.5906012", "0.5821817", "0.5815375", "0.57975495", "0.57144666", "0.57087195", "0.5688879", "0.56577635", "0.56449455", "0.56294537", "0.5621...
0.70789427
2
Overwrite the owner email.
def QdZT(YKHO): YKHO.application['email'] = 'test@example.spinnaker'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GnpN(YKHO, GnpN):\n YKHO._technical_owner_email = GnpN", "def BKry(YKHO, BKry):\n YKHO._business_owner_email = BKry", "def KVVd(YKHO, qsJ6):\n YKHO.settings['owner'] = qsJ6", "def GnpN(YKHO):\n return YKHO._technical_owner_email", "def KVVd(YKHO, nPrm):\n YKHO._owner = YKHO._uni(nPrm)\n ...
[ "0.7009598", "0.6962702", "0.68217576", "0.6551548", "0.64316934", "0.6412031", "0.63543993", "0.63261753", "0.6312127", "0.6230993", "0.61875993", "0.61875993", "0.61875993", "0.61875993", "0.6153608", "0.61434615", "0.61168647", "0.61168647", "0.61168647", "0.61168647", "0....
0.60774225
31
Return the sale price for this truck as a float amount.
def ax2g(YKHO): if YKHO.sold_on is not None: return 0.0 return 5000.0 * YKHO.wheels
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KI1l(YKHO):\n if YKHO.sold_on is None:\n return 0.0\n return YKHO.base_sale_price - 0.1 * YKHO.miles", "def KI1l(YKHO):\n if YKHO.sold_on is None:\n return 0.0\n return YKHO.base_sale_price - 0.1 * YKHO.miles", "def KI1l(YKHO):\n if YKHO.sold_on is None:\n return 0.0\n ...
[ "0.78949636", "0.78949636", "0.7623875", "0.75753903", "0.75275487", "0.74290484", "0.73781294", "0.73510665", "0.71917707", "0.71798295", "0.7089901", "0.70243806", "0.69548696", "0.692822", "0.692822", "0.6915999", "0.68974936", "0.6880515", "0.6880515", "0.6880515", "0.686...
0.8129219
0
Return the price for which we would pay to purchase the truck.
def KI1l(YKHO): if YKHO.sold_on is None: return 0.0 return 10000 - 0.1 * YKHO.miles
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JGHm(YKHO):\n return YKHO._desired_price", "def N_Zi(YKHO):\n return YKHO._price", "def N_Zi(YKHO):\n return YKHO.price", "def N_Zi(YKHO):\n return YKHO.price", "def N_Zi(YKHO):\n return YKHO.price", "def hI0L(YKHO) -> float:\n return YKHO._price", "def ByHA(YKHO):\n return YKH...
[ "0.77131534", "0.76909304", "0.76709116", "0.76709116", "0.76709116", "0.766792", "0.7591001", "0.75353324", "0.7533828", "0.7533828", "0.75329506", "0.74735254", "0.74735254", "0.7466448", "0.7457321", "0.7402987", "0.7362509", "0.73422575", "0.72716874", "0.7247101", "0.712...
0.7769539
0
Return the sale price for this vehicle as a float amount.
def ax2g(YKHO): if YKHO.sold_on is not None: return 0.0 return 5000.0 * YKHO.wheels
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KI1l(YKHO):\n if YKHO.sold_on is None:\n return 0.0\n return YKHO.base_sale_price - 0.1 * YKHO.miles", "def KI1l(YKHO):\n if YKHO.sold_on is None:\n return 0.0\n return YKHO.base_sale_price - 0.1 * YKHO.miles", "def hI0L(YKHO) -> float:\n return YKHO._price", "def hI0L(YKHO):...
[ "0.75489116", "0.75489116", "0.75028676", "0.74810225", "0.74524456", "0.7279996", "0.71826845", "0.71584177", "0.7092038", "0.69568723", "0.69046813", "0.69046813", "0.68660736", "0.6865651", "0.68468446", "0.6846379", "0.6846379", "0.6846379", "0.67912155", "0.6785617", "0....
0.7874844
2
Return the price for which we would pay to purchase the vehicle.
def KI1l(YKHO): if YKHO.sold_on is None: return 0.0 return YKHO.base_sale_price - 0.1 * YKHO.miles
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JGHm(YKHO):\n return YKHO._desired_price", "def N_Zi(YKHO):\n return YKHO._price", "def N_Zi(YKHO):\n return YKHO.price", "def N_Zi(YKHO):\n return YKHO.price", "def N_Zi(YKHO):\n return YKHO.price", "def hI0L(YKHO) -> float:\n return YKHO._price", "def N_Zi(YKHO):\n return YKH...
[ "0.77958965", "0.7711989", "0.7700835", "0.7700835", "0.7700835", "0.7679395", "0.7563702", "0.7524472", "0.7524472", "0.75011563", "0.74690515", "0.73525053", "0.7275231", "0.72681016", "0.72582346", "0.7175284", "0.7159883", "0.7073043", "0.70446146", "0.7013411", "0.699196...
0.7084454
17
Return the sale price for this vehicle as a float amount.
def ax2g(YKHO): if YKHO.sold_on is not None: return 0.0 return 5000.0 * YKHO.wheels
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KI1l(YKHO):\n if YKHO.sold_on is None:\n return 0.0\n return YKHO.base_sale_price - 0.1 * YKHO.miles", "def KI1l(YKHO):\n if YKHO.sold_on is None:\n return 0.0\n return YKHO.base_sale_price - 0.1 * YKHO.miles", "def hI0L(YKHO) -> float:\n return YKHO._price", "def hI0L(YKHO):...
[ "0.75489116", "0.75489116", "0.75028676", "0.74810225", "0.74524456", "0.7279996", "0.71826845", "0.71584177", "0.7092038", "0.69568723", "0.69046813", "0.69046813", "0.68660736", "0.6865651", "0.68468446", "0.6846379", "0.6846379", "0.6846379", "0.67912155", "0.6785617", "0....
0.7874844
0
Return the price for which we would pay to purchase the vehicle.
def KI1l(YKHO): if YKHO.sold_on is None: return 0.0 return YKHO.base_sale_price - 0.1 * YKHO.miles
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JGHm(YKHO):\n return YKHO._desired_price", "def N_Zi(YKHO):\n return YKHO._price", "def N_Zi(YKHO):\n return YKHO.price", "def N_Zi(YKHO):\n return YKHO.price", "def N_Zi(YKHO):\n return YKHO.price", "def hI0L(YKHO) -> float:\n return YKHO._price", "def N_Zi(YKHO):\n return YKH...
[ "0.77958965", "0.7711989", "0.7700835", "0.7700835", "0.7700835", "0.7679395", "0.7563702", "0.7524472", "0.7524472", "0.75011563", "0.74690515", "0.73525053", "0.7275231", "0.72681016", "0.72582346", "0.7175284", "0.7159883", "0.7073043", "0.70446146", "0.7013411", "0.699196...
0.7084454
18
Return a string representing the type of vehicle this is.
def gKPu(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gKPu():\n pass", "def gKPu(YKHO):\n return 'car'", "def gKPu(YKHO):\n return 'car'", "def gKPu(YKHO):\n return 'car'", "def gKPu(YKHO):\n return 'truck'", "def gKPu(YKHO):\n return 'truck'", "def type(YKHO) -> str:\n return qe4Y.get(YKHO, 'type')", "def type(YKHO) -> str:\n ...
[ "0.8264676", "0.7994656", "0.7994656", "0.7994656", "0.78400844", "0.78400844", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", ...
0.81698346
1
Return a string representing the type of vehicle this is.
def gKPu(YKHO): return 'car'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gKPu():\n pass", "def gKPu(YKHO):\n pass", "def gKPu(YKHO):\n return 'truck'", "def gKPu(YKHO):\n return 'truck'", "def type(YKHO) -> str:\n return qe4Y.get(YKHO, 'type')", "def type(YKHO) -> str:\n return qe4Y.get(YKHO, 'type')", "def type(YKHO) -> str:\n return qe4Y.get(YKHO,...
[ "0.8264676", "0.81698346", "0.78400844", "0.78400844", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "...
0.7994656
4
Return a string representing the type of vehicle this is.
def gKPu(YKHO): return 'truck'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gKPu():\n pass", "def gKPu(YKHO):\n pass", "def gKPu(YKHO):\n return 'car'", "def gKPu(YKHO):\n return 'car'", "def gKPu(YKHO):\n return 'car'", "def type(YKHO) -> str:\n return qe4Y.get(YKHO, 'type')", "def type(YKHO) -> str:\n return qe4Y.get(YKHO, 'type')", "def type(YKHO)...
[ "0.8266015", "0.8171301", "0.799574", "0.799574", "0.799574", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.73887587", "0.7...
0.78414714
6
Return a string representing the type of vehicle this is.
def gKPu(YKHO): return 'motorcycle'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gKPu():\n pass", "def gKPu(YKHO):\n pass", "def gKPu(YKHO):\n return 'car'", "def gKPu(YKHO):\n return 'car'", "def gKPu(YKHO):\n return 'car'", "def gKPu(YKHO):\n return 'truck'", "def gKPu(YKHO):\n return 'truck'", "def type(YKHO) -> str:\n return qe4Y.get(YKHO, 'type')"...
[ "0.8264676", "0.81698346", "0.7994656", "0.7994656", "0.7994656", "0.78400844", "0.78400844", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", "0.738759", ...
0.7290494
51
Returns `True` if object is a dataclass instance, `False` otherwise.
def PwMT(YEnM: Any) -> bool: return nf7Q.is_dataclass(YEnM) and (not isinstance(YEnM, type))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LCHE(YEnM):\n return hasattr(type(YEnM), '__dataclass_fields__')", "def NC32(object):\n if not hasattr(object, '__class__'):\n return False\n if MP1F(object.__class__):\n return False\n return True", "def ukeo(YEnM):\n KXx7 = type(YEnM).__dict__\n rkIN = '_pandas_type' in KX...
[ "0.88146114", "0.7511304", "0.7461899", "0.74062276", "0.7209373", "0.7057078", "0.69766736", "0.6852587", "0.68417186", "0.6816968", "0.677517", "0.677517", "0.6759726", "0.67241764", "0.67241764", "0.67241764", "0.67241764", "0.67241764", "0.67241764", "0.67175746", "0.6715...
0.891268
0
Checks if a list has a value other then zero
def waS5(bCES): for jzdc in bCES: if jzdc != 0: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ebnO(YKHO):\n for tTpl in YKHO:\n if tTpl != 0:\n return True\n return False", "def qljQ(vC9B):\n return any([XP5J > 0 for XP5J in vC9B])", "def VDDj(he6J):\n PZES = [PNxx(tTpl) for tTpl in he6J]\n return all(PZES)", "def Witr(YKHO):\n for a1PO in YKHO:\n if a1P...
[ "0.71666956", "0.7130968", "0.69070715", "0.6876754", "0.67001724", "0.6657063", "0.66158926", "0.6597678", "0.6576671", "0.6570329", "0.65518945", "0.6437133", "0.63840353", "0.63439596", "0.6329796", "0.6327994", "0.6296214", "0.62903833", "0.62518203", "0.624812", "0.62261...
0.8261807
0
Add line to the plot
def iLbS(YKHO, WBTV: int, fmfF: int, qfpW: str): cLxo = WBTV // YKHO.width uWF6 = WBTV % YKHO.width mUmF = fmfF // YKHO.width dTVl = fmfF % YKHO.width YKHO.lines[uWF6, cLxo, dTVl, mUmF, qfpW] += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hx4M(YKHO, ZbiE, CSPF, mOlj, ymxS, fvDH='black', p3zD=1, HKpU='solid'):\n YKHO._fig.add_shape(iEax.layout.Shape(type='line', x0=ZbiE, y0=CSPF, x1=mOlj, y1=ymxS, line=dict(color=fvDH, width=p3zD, dash=HKpU)))", "def iLbS(YKHO, jDK_, BWXx):\n if jDK_ == 'x':\n YKHO.axes.axvline(BWXx)\n elif jDK...
[ "0.7735947", "0.7688628", "0.74493057", "0.7434205", "0.74032885", "0.73632026", "0.73447704", "0.7300983", "0.7196209", "0.71308213", "0.71285146", "0.7076803", "0.6983811", "0.69803905", "0.6928182", "0.69068986", "0.6887216", "0.6883392", "0.68555903", "0.6843642", "0.6835...
0.0
-1
Sets the valid_source_format of this TranslationsGetTranslatorFormatsResponse200Items.
def JsIO(YKHO, JsIO): YKHO._valid_source_format = JsIO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hnrx(YKHO, Hnrx):\n YKHO._valid_destination_format = Hnrx", "def kx_t(YKHO, BWXx):\n super(Sh63, YKHO)._set_input('ResponseFormat', BWXx)", "def VKr3(YKHO, BWXx):\n return YKHO._set(inputFormats=BWXx)", "def a_hL(YKHO):\n YKHO.assertIsInstance(nNXP.validation.fetch_formats(), dict)", "def x...
[ "0.5314362", "0.5118696", "0.4967109", "0.49611962", "0.49468386", "0.48728472", "0.48194426", "0.4729159", "0.4729159", "0.46949083", "0.4684286", "0.46688443", "0.46688443", "0.46318734", "0.46081227", "0.45997345", "0.45917243", "0.45877478", "0.45839137", "0.45827553", "0...
0.7389632
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, DeNb): 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.80886984", "0.80886984", "0.8055307", "0.7983415", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", ...
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
Checks whether a string fits the form [alpha]+[numeric]+
def uX69(vIwR): i_5v = False yAY7 = False for hcXw in vIwR: if i_5v is False: if hcXw.isalpha(): yAY7 = True elif hcXw.isnumeric(): if yAY7: i_5v = True else: return False else...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ELYd(vIwR):\n return True", "def gqpb(KCHu: str) -> bool:\n return len(ZbWC.findall('[^A-Za-z0-9]', KCHu)) == 0", "def QirG(Dhyu):\n return Myyj(Dhyu) or QpCZ(Dhyu)", "def Rf5T(KCHu: str) -> bool:\n return frozenset(KCHu).issubset(qpIZ)", "def epdC(vIwR):\n return True", "def _KWj(KCHu...
[ "0.76804155", "0.71037567", "0.6911765", "0.68736285", "0.6819184", "0.6788513", "0.656705", "0.65280104", "0.64977753", "0.64658016", "0.64296985", "0.6420758", "0.6414716", "0.6411938", "0.63994086", "0.639831", "0.6395618", "0.6376247", "0.6354022", "0.63503265", "0.633714...
0.7136575
1
Listing of topics in a forum.
def Gddr(QePW, yF3T): AdpB = oosv.objects.filter(forum=yF3T).order_by('-created') AdpB = rroB(QePW, AdpB, rYJx) Gddr = Iofl(nWBk, pk=yF3T) return SGJU('forum/forum.html', I21O(QePW, topics=AdpB, pk=yF3T, forum=Gddr), context_instance=K1Ja(QePW))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DPfv(QePW, yF3T, AMvn=1):\n try:\n AdpB = oosv.objects.order_by('-is_global', '-is_sticky', '-topic_modification_date').filter(T8ck(topic_forum=yF3T) | T8ck(is_global='1'))\n MjDg = nWBk.objects.get(id=yF3T)\n MjDg = MjDg.forum_name\n except:\n return Yd7Q('/forum/')\n retu...
[ "0.8186726", "0.7314122", "0.7310877", "0.72472256", "0.7109863", "0.70867354", "0.6959493", "0.68796974", "0.6793357", "0.6758194", "0.6749351", "0.6698746", "0.6617969", "0.6556119", "0.6525596", "0.64797693", "0.6474251", "0.64285874", "0.63593096", "0.635887", "0.6339465"...
0.7054
6
Executes the teardown code to close the connection to the database.
def U4F2(YKHO, vEqo, UpHd, Wtzu): try: YKHO.conn.commit() YKHO.cursor.close() YKHO.conn.close() except Exception as error: print(f'DBCM::__exit__::{P1dF}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n GhOX.close()\n qq6U.execute_in_thread('radicale', lambda: Kh6j.commit())\n GTYX()\n Kh6j.commit()\n GhOX.close_all()\n GPtr['tg.app_globals'].sa_engine.dispose()", "def mTtn():\n GTYX()", "def HySU():\n if UzPC:\n try:\n if not UzPC.closed:\n ...
[ "0.822475", "0.78570855", "0.78088546", "0.76545805", "0.7653576", "0.76529336", "0.7649902", "0.76492363", "0.7608793", "0.7608793", "0.7608793", "0.7608793", "0.7608793", "0.7608793", "0.7608793", "0.7608793", "0.7608793", "0.7608793", "0.7608793", "0.7608793", "0.7608793",...
0.0
-1
funkcija koja se poziva promjenom broja dana u comboboxu update defaulte, pozovi na ponovno crtanje grafa
def KL0j(YKHO, WKvO): AfMH = int(YKHO.brojDana.itemText(WKvO)) G9jH.info('request za prikazom drugog broja dana, novi = {0}'.format(str(AfMH))) YKHO.emit(wDYU.SIGNAL('update_zs_broj_dana(PyQt_PyObject)'), AfMH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OoXI(YKHO, y4fz):\n raise NotImplementedError", "def b2hZ(YKHO, TEdI, nPrm=None):\n YKHO.Paciente0.Test = YKHO.Tests[YKHO.ComboBox.get_active()][0]", "def Ii0k(YKHO, y4fz):\n raise NotImplementedError", "def lFLA(YKHO):\n YKHO.section_combobox.clear()\n YKHO.section_ids = sorted(YKHO.setti...
[ "0.70677465", "0.6737093", "0.6722821", "0.6404771", "0.63269496", "0.63113934", "0.6306072", "0.6287383", "0.6261227", "0.62568873", "0.62446094", "0.6159394", "0.6100773", "0.60871094", "0.6080785", "0.6056731", "0.60546553", "0.60463387", "0.60143054", "0.59968054", "0.597...
0.0
-1
Collate data into batch.
def bxf_(Wc9F): XVnG, jbLe, Hyro, Yjcv, YvV6, DBpp, JRvi, dOww, Mjkb, jUOc, AG8z = zip(*Wc9F) jbLe = fHgE.stack(*jbLe) Hyro = fHgE.stack(*Hyro) Yjcv = fHgE.stack(*Yjcv) YvV6 = fHgE.stack(*YvV6) DBpp = fHgE.stack(*DBpp) JRvi = fHgE.stack(*JRvi) dOww = fHgE.stack(*dOww) Mjkb = fHgE.sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _oqW(YKHO) -> cuzp[str, ImMB]:\n pass", "def kNoz(Wc9F):\n nPrm = Wc9F\n YaeX = oRi_(list)\n for YRbF in range(len(list(nPrm))):\n for G1Hx in nPrm[YRbF].keys():\n YaeX[G1Hx].append(nPrm[YRbF][G1Hx])\n for G1Hx in YaeX.keys():\n YaeX[G1Hx] = ht2j.stack(YaeX[G1Hx])\n ...
[ "0.7418104", "0.71304685", "0.701843", "0.6917199", "0.69071877", "0.6774246", "0.6744187", "0.67011607", "0.66829616", "0.66829616", "0.6648199", "0.6611645", "0.6550466", "0.6541084", "0.6539108", "0.6502471", "0.6486975", "0.64702487", "0.64624596", "0.6454566", "0.6440992...
0.0
-1
Construct an ConvolutionModule object.
def FIMM(YKHO, xMux: int, Ot1W: int=15, YDYE: nn.Layer=U78l.ReLU(), CkYf: str='batch_norm', F6Lg: bool=False, oug5: bool=True, XnRF: bool=False, vB93: bool=False): assert qwjZ() super().__init__() YKHO.bias = oug5 YKHO.channels = xMux YKHO.kernel_size = Ot1W YKHO.adaptive_scale = XnRF if YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ujDc(Emd4, yR_P):\n Ot1W = eRgZ(yR_P.kernel_size)\n _0fC = eRgZ(yR_P.stride)\n return Emd4(Ot1W, _0fC)", "def lwI9(YKHO):\n fm5X.__init__(YKHO)\n return", "def FIMM(YKHO, mQkE, l_wy, q1vv, hr1G, Cwt5):\n super(Onfv, YKHO).__init__()\n YKHO.dropout = hr1G\n YKHO.conv1 = rvYI(mQkE, l_...
[ "0.68666476", "0.6155687", "0.59573984", "0.5854176", "0.5815953", "0.56537634", "0.5630243", "0.562485", "0.5621267", "0.56205547", "0.5607003", "0.5602968", "0.5585454", "0.55831", "0.5582511", "0.5560355", "0.5553718", "0.55282974", "0.5525447", "0.5525273", "0.5523681", ...
0.5187529
76
Add padding to an array.
def AeBf(YKHO, jzdc, jDK_, mlQu, yvT9): if jzdc.shape[jDK_] == YKHO.N: return jzdc elif jzdc.shape[jDK_] != YKHO.Nin: raise ValueError('array much be of size len(x) or N') jDK_ %= jzdc.ndim C6MN = [1] * jzdc.ndim C6MN[jDK_] = -1 bcb8 = YKHO.N - YKHO.Nin if yvT9: Bupo,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(ezWE, exwG):\n r8hN = len(ezWE)\n if r8hN < exwG:\n return ezWE + type(ezWE)((g5bv for bGrB in range(exwG - r8hN)))\n else:\n return ezWE", "def M35P(YKHO, dn1Z):\n return M35P(dn1Z, YKHO.margin)", "def HThn(VXjJ, ljFe):\n yzQ0 = VXjJ.shape[1] + ljFe * 2\n _q9I = oyIN.z...
[ "0.7121357", "0.70699555", "0.7003509", "0.6956489", "0.6936915", "0.68846005", "0.68365896", "0.6728185", "0.6697491", "0.6621393", "0.6603096", "0.65634984", "0.6540787", "0.6460261", "0.64524037", "0.6421974", "0.6419976", "0.6411205", "0.63794047", "0.63734865", "0.632567...
0.0
-1
Return the max_items to be displayed in the syndication
def XQrK(YKHO, YEnM=None): if YEnM is not None: H_so = YKHO.getSyndicationInfo(YEnM).max_items else: H_so = YKHO.max_items return H_so
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mZnQ(YKHO):\n return YKHO._get_page('maxitem').json()", "def uyRW(YKHO):\n return YKHO._maximum_item_count", "def GF7Y(YKHO):\n return 1500", "def n6mp(YKHO):\n return YKHO.config.get('max_count', 500)", "def zD4t(YKHO) -> str:\n return qe4Y.get(YKHO, 'max_results')", "def OGwl(YKHO):\...
[ "0.7776277", "0.7125317", "0.6646662", "0.6606162", "0.65172786", "0.64845383", "0.6374803", "0.626151", "0.62502325", "0.62502325", "0.6198606", "0.6182204", "0.6164095", "0.61333936", "0.61333936", "0.61273587", "0.6073913", "0.6045044", "0.60417587", "0.60351074", "0.60339...
0.79875886
0
Scales the parameter numFFTBinsAt44100Hz according to the sampling frequency.
def jOvj(YKHO, K4ib): BwEs = K4ib / 44100.0 psGk = YKHO.getValue('numFFTBinsAt44100Hz') * BwEs return int(round(psGk * 0.5)) * 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ed9j():\n return fgtl(G3xR, 0)", "def yg_S(YKHO):\n f67s = YKHO.spabins * YKHO.spebins\n return f67s * YKHO.int_time", "def xCb3():\n return UH90 / 2 / (Z2fh - 1)", "def zGi6():\n return fgtl(G3xR, 1)", "def rLpE(Fg_i, KfO3, ywwl):\n return Fg_i / float(ywwl) * float(KfO3)", "def FL...
[ "0.60310924", "0.586242", "0.58555216", "0.568752", "0.56050014", "0.5393462", "0.53360444", "0.5245483", "0.5232109", "0.52217174", "0.52026665", "0.5171696", "0.5168747", "0.51672167", "0.5154609", "0.514866", "0.5140443", "0.5103257", "0.5097735", "0.50887287", "0.5073725"...
0.6707887
0
Calculates the absolute loudness of the harmonic or percussive part of a song.
def k738(Q7me, K4ib, FVpR): return O_Up.loudnessSignal(Q7me, K4ib) - FVpR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FVpR(yOAJ):\n nPrm = XTiz.array(yOAJ, dtype=float) / 32768.0\n NmYP = epAf.sqrt(XTiz.sum(nPrm ** 2.0) / len(nPrm))\n if NmYP < 1e-07:\n NmYP = 1e-07\n return 10.0 * epAf.log(NmYP, 10.0)", "def Cdax(NCls):\n NCls += 20\n PXGI = (NCls + 96.0) / 96.0\n return 10 ** PXGI / 10.0", "d...
[ "0.6723624", "0.6009858", "0.569727", "0.5654799", "0.5565402", "0.5521218", "0.55205864", "0.5515483", "0.55003494", "0.5473982", "0.54602486", "0.5459319", "0.5431672", "0.53635293", "0.5348528", "0.53139997", "0.529165", "0.52789474", "0.5272676", "0.52602875", "0.52400047...
0.6292774
1
Detect and return the number of digits used in patch IDs (indices). Look for the first patchline, and use that as a reference. 0 no patch ID at all, just a bare "Patch" 1 no leading zeros for patch IDs 2 or more the minimum number of digits to be used for patch IDs.
def vKfH(YKHO) -> int: if YKHO._patch_id_digits is not None: return YKHO._patch_id_digits YKHO._patch_id_digits = 1 for zFiD in YKHO.spec_content.section('%package'): if zFiD.lower().startswith('patch'): kUBT = ZbWC.match('^patch(\\d*)\\s*:.+', zFiD, flags=ZbWC.IGNORECASE) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BD4Y(YKHO):\n return NrcO.patchExtractor_getNoOfPatches(YKHO)", "def PE63(o3Lu, FTrt):\n with hnIv.open(o3Lu) as VXjJ:\n TVTK, H2v2 = VXjJ.size\n dcI4 = oyIN.ceil(H2v2 / FTrt).astype(int)\n bdjr = oyIN.ceil(TVTK / FTrt).astype(int)\n Yp7V = dcI4 * bdjr\n return Yp7V", "def Z1Bv(XdG...
[ "0.643502", "0.61479133", "0.5954849", "0.57034236", "0.5660092", "0.5468143", "0.54306746", "0.54158854", "0.5387525", "0.53838456", "0.5374513", "0.5260607", "0.5179598", "0.51601595", "0.51415247", "0.5079229", "0.50771374", "0.5065594", "0.50559163", "0.5048048", "0.50452...
0.82547706
0
Gets the both the market data and trade/order data associated with a TCA calculation as a tuple of (DataFrame, DataFrameHolder)
def qaVh(NaGG): return ykN3.get_market_trade_order_holder(NaGG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLtf(qzov):\n nxAW = qzov[0][0]\n jQ3Z = rLdf.DataFrame(index=qzov[0][1]['data'].index)\n for TPwt in qzov:\n TXOr = rLdf.DataFrame(TPwt[1]['data']['Adj. Close'], index=TPwt[1]['data'].index)\n TXOr = TXOr.rename(columns={'Adj. Close': TPwt[0]})\n jQ3Z = jQ3Z.join(TXOr)\n i...
[ "0.6151624", "0.5892034", "0.5755414", "0.5732368", "0.56993943", "0.5641084", "0.56046224", "0.5563897", "0.55586535", "0.55249804", "0.54079956", "0.5389017", "0.537946", "0.53750414", "0.5349407", "0.5339952", "0.53327787", "0.53326756", "0.5314968", "0.5296567", "0.527329...
0.4875258
92
Gets the market data associated with a TCA calculation as DataFrame
def MhTu(ZjTq): return ykN3.get_market_data(ZjTq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4pp(YKHO) -> rLdf.DataFrame:\n Hy7s.chdir('\\\\\\\\192.168.8.90\\\\投研部\\\\Jessica\\\\test_data')\n if YKHO.tic in ['RB.CCRI', 'HC.CCRI', 'I.CCRI', 'J.CCRI', 'JM.CCRI', 'ZC.CCRI']:\n eHNT = rLdf.read_hdf('data.h5', 'snc')\n if YKHO.tic in ['CU.CCRI', 'ZN.CCRI', 'AL.CCRI', 'NI.CCRI']:\n e...
[ "0.59945023", "0.5842658", "0.58300567", "0.5816719", "0.5812122", "0.57963413", "0.5792681", "0.5785656", "0.5785656", "0.5741052", "0.57408476", "0.5730061", "0.57208407", "0.57182294", "0.5716236", "0.5710986", "0.5710425", "0.5700942", "0.5688139", "0.56726253", "0.565356...
0.0
-1
Gets the DataFrameHolder associated with a TCA calculation
def tRhg(NaGG): try: return ykN3.get_trade_order_holder(NaGG) except Exception as e: print(str(tTpl))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXC1(YKHO) -> hxoQ:\n with YKHO.create_census_api_session():\n bo34.info('Retrieving variables...')\n kc1W: KWlx = YKHO.get_variables()\n bo34.info('Retrieving ACS tables...')\n xU0C = YKHO.get_tables()\n mc1u: x1iM[fsFg] = []\n RXlG: x1iM[ghSx] = []\n if YKH...
[ "0.53330225", "0.5181793", "0.51516646", "0.51076865", "0.50962543", "0.5089413", "0.5082016", "0.50666404", "0.5060254", "0.50479406", "0.50456345", "0.5039186", "0.5038918", "0.49785188", "0.49767238", "0.4908325", "0.49016276", "0.48847046", "0.48746416", "0.48627168", "0....
0.0
-1
Gets the both the market data and trade/order data associated with a TCA calculation as a tuple of (DataFrame, DataFrameHolder)
def MJWo(NaGG, SXdY): return ykN3.calculate_metrics_single_ticker(ykN3.get_market_trade_order_holder(NaGG), NaGG, SXdY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLtf(qzov):\n nxAW = qzov[0][0]\n jQ3Z = rLdf.DataFrame(index=qzov[0][1]['data'].index)\n for TPwt in qzov:\n TXOr = rLdf.DataFrame(TPwt[1]['data']['Adj. Close'], index=TPwt[1]['data'].index)\n TXOr = TXOr.rename(columns={'Adj. Close': TPwt[0]})\n jQ3Z = jQ3Z.join(TXOr)\n i...
[ "0.6151624", "0.5892034", "0.5755414", "0.5732368", "0.56993943", "0.5641084", "0.56046224", "0.5563897", "0.55586535", "0.55249804", "0.54079956", "0.5389017", "0.537946", "0.53750414", "0.5349407", "0.5339952", "0.53327787", "0.53326756", "0.5314968", "0.5296567", "0.527329...
0.50089985
58
Random set of model parameters for mixture model
def tuKI(): bD5m = {} for G1Hx, Q7me in enumerate(SQ3m): y0cW = chr(ord('A') + G1Hx) + '_' K5WD = Q7me.random() bD5m.update(((y0cW + G1Hx, Ty9i) for G1Hx, Ty9i in K5WD.items())) return bD5m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rJrZ(YKHO):\n WKvO = YKHO._get_params_transformed()\n WKvO = oyIN.random.randn(WKvO.size)\n YKHO._set_params_transformed(WKvO)\n WKvO = YKHO._get_params()\n [oyIN.put(WKvO, YRbF, XP5J.rvs(1)) for YRbF, XP5J in enumerate(YKHO.priors) if not XP5J is None]\n YKHO._set_params(WKvO)\n YKHO._set...
[ "0.657273", "0.65450084", "0.6462468", "0.63953364", "0.6358064", "0.63491094", "0.62749624", "0.62714505", "0.61800903", "0.6173669", "0.61626405", "0.6135046", "0.6130496", "0.6110366", "0.61081785", "0.61064184", "0.60926676", "0.6083094", "0.60599715", "0.6053606", "0.605...
0.0
-1
Return package version as listed in `__version__` in `init.py`.
def kaPv(B5hb): Eosz = T_Uj.open(Hy7s.path.join(B5hb, '__init__.py'), encoding='utf-8').read() return ZbWC.search('^__version__ = [\'"]([^\'"]+)[\'"]', Eosz, ZbWC.MULTILINE).group(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oRea() -> str:\n pmON = gzes(TLI7(xAKo), '__init__.py')\n pmON = ENtY(WQbV(pmON))\n with open(pmON) as eHNT:\n for zFiD in eHNT:\n if zFiD.startswith('__version__'):\n eOtH, DpZH = zFiD.split(' = ', 1)\n DpZH = DpZH.replace(\"'\", '').strip()\n ...
[ "0.84893894", "0.83908445", "0.83863354", "0.8379423", "0.8370828", "0.8370828", "0.8370828", "0.8370828", "0.8370828", "0.8370828", "0.8370828", "0.83694756", "0.83582735", "0.8357903", "0.835638", "0.8078477", "0.7975143", "0.7938866", "0.78928864", "0.78928864", "0.7892886...
0.8380136
3
Generates a random MAC addr and changes the interface the random MAC
def CQFo(YKHO, wohN): Pp4r = YKHO.get_rand_mac() oUZx = 'ifconfig %s hw ether %s' % (wohN, Pp4r) Yn3K.call('ifconfig %s down' % wohN, shell=True) RBVb = Yn3K.call(oUZx, shell=True) Yn3K.call('ifconfig %s up' % wohN, shell=True) return RBVb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PeVw(YKHO):\n return '02:00:00:%02x:%02x:%02x' % (tuKI.randint(0, 255), tuKI.randint(0, 255), tuKI.randint(0, 255))", "def sKCk():\n Pp4r = '00:05:5D'\n for YRbF in range(0, 3):\n Pp4r += ':%s' % hex(tuKI.randrange(0, 256))[2:]\n return Pp4r", "def Wee6():\n return '\"02:%02x:%02x:%02...
[ "0.8024386", "0.7627201", "0.75638455", "0.7447258", "0.70603627", "0.70603627", "0.69038665", "0.6894523", "0.6648316", "0.6466636", "0.6342935", "0.62219965", "0.60721344", "0.6044645", "0.5960872", "0.5953936", "0.59280396", "0.59162587", "0.590076", "0.58709866", "0.58683...
0.69625413
6
Return the wind controller status.
def VLTN(YKHO): return YKHO.read_register(259, 0, 3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QtQ8(YKHO):\n return YKHO.controller.getStatus()", "def _mZd(YKHO) -> h8nf['outputs.CSIPowerStoreStatusControllerStatus']:\n return qe4Y.get(YKHO, 'controller_status')", "def _mZd(YKHO) -> h8nf['outputs.CSIVXFlexOSStatusControllerStatus']:\n return qe4Y.get(YKHO, 'controller_status')", "def jGRS...
[ "0.75383455", "0.7499349", "0.7449815", "0.7284407", "0.7257396", "0.711363", "0.71125287", "0.7013763", "0.6884245", "0.6838627", "0.6783159", "0.6752413", "0.6743827", "0.66341037", "0.66179466", "0.66108483", "0.6600721", "0.6597998", "0.65962964", "0.65480256", "0.6532693...
0.6888526
8
Return the solar voltage.
def Fefd(YKHO): return YKHO.read_register(4098, 1, 3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8jn(YKHO):\n return YKHO.outputValue()", "def U4IO(YKHO):\n return YKHO.environment.get_voltage(YKHO.neuron_id)", "def U4IO(YKHO):\n QxIo = ' '.join(YKHO.get_summary().split())\n mXDZ = '\\\\$.... .. (.*?) .*? .*? .*? .*? . .*? .*? . . . .*?'\n m8jn = float(ZbWC.findall(mXDZ, QxIo).pop())\n...
[ "0.8203644", "0.8137676", "0.8064254", "0.80349964", "0.79962105", "0.79466784", "0.79138047", "0.7501929", "0.7384861", "0.736154", "0.7299521", "0.7234127", "0.7165203", "0.71505994", "0.70756763", "0.7055544", "0.6992103", "0.69862777", "0.6952349", "0.6912379", "0.6905933...
0.8189408
1
Extract unique elements from a column as a list
def aJOh(z0q4: str) -> list: Z9rn = Z7kq[z0q4].values.tolist() sDHD = [] for YRbF in range(len(Z9rn)): ZfUD = jZ4I.literal_eval(Z9rn[YRbF]) for r845 in range(len(ZfUD)): sDHD.append(ZfUD[r845][0]) YBC3 = set(sDHD) v5Rz = list(YBC3) return v5Rz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kcwm(vZqz, r_x0):\n return list(iV5f.unique(vZqz[r_x0]))", "def hNgI(usx6, z0q4):\n hkxX = []\n for rdlD in usx6:\n hkxX.append(rdlD[z0q4])\n hkxX = set(hkxX)\n return hkxX", "def EADW(usx6, fvDH):\n return set([rdlD[fvDH] for rdlD in usx6])", "def pcMl(jQ3Z):\n return jQ3Z.ZI...
[ "0.77191085", "0.7574577", "0.71822554", "0.7066592", "0.6971823", "0.6953218", "0.6908101", "0.686589", "0.6848778", "0.6825685", "0.6813218", "0.675542", "0.6684354", "0.66787094", "0.66297245", "0.6596611", "0.6576079", "0.653607", "0.65292305", "0.6489355", "0.6377869", ...
0.77354735
0
Generator that yields ngrams from a sequence.
def zxm6(OxJJ, exwG): return zip(*[Hs6x.islice(WhY1, YRbF, None) for YRbF, WhY1 in enumerate(Hs6x.tee(OxJJ, exwG))])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cpbi(YKHO, aWuw):\n aWuw = YKHO.prefix + aWuw + YKHO.suffix\n for YRbF, tvqc in enumerate(aWuw[YKHO.n:], YKHO.n):\n yield (tvqc, aWuw[YRbF - YKHO.n:YRbF])", "def Aely(Q6uT):\n for exwG in range(1, len(Q6uT) + 1):\n for SMR4 in Dhdw.util.ngrams(Q6uT, exwG):\n yield SMR4", "...
[ "0.8290349", "0.82437456", "0.7780717", "0.71088296", "0.7023633", "0.7001076", "0.69941705", "0.6964612", "0.693276", "0.69231796", "0.68719983", "0.68339616", "0.6827855", "0.6820348", "0.6720228", "0.66739285", "0.6662072", "0.6637273", "0.66312015", "0.6621198", "0.658667...
0.66914886
15
Break lst into nsized chunks
def yOAJ(yv6U, exwG): return [yv6U[YRbF:YRbF + exwG] for YRbF in range(0, len(yv6U), exwG)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def dlVb(yv6U, exwG):\n zNig = int(len(yv6U) / exwG)\n kjNI = []\n for YRbF in range(0, exwG):\n rpVW = yv6U[YRbF * zNig:YRbF * zNig + zNig]\n kjNI.append(rpVW)\n if len...
[ "0.76128155", "0.7593582", "0.7568147", "0.75516045", "0.75516045", "0.7551108", "0.75463605", "0.7506201", "0.7433062", "0.7430897", "0.7430897", "0.7430897", "0.7430897", "0.7430897", "0.7430897", "0.7430897", "0.7430897", "0.7430897", "0.7430897", "0.7430897", "0.7430897",...
0.7667378
0
Remove an Action from the queue of actions. Once this is done the Bot cannot restart the action.
def PZfh(YKHO, _eu6): assert _eu6 in YKHO._workers, 'Unknown action id' assert not YKHO._workers[_eu6].is_alive(), 'Cannot remove a action that is currently running' with YKHO._mutex: YKHO._used_ids.remove(_eu6) del YKHO._workers[_eu6], YKHO._actions[_eu6]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PZfh(YKHO, XeOP):\n if XeOP not in YKHO.actions:\n return\n EMod = YKHO.actions\n YKHO.actions = []\n if XeOP in EMod:\n for jzdc in EMod:\n if jzdc != XeOP:\n YKHO.actions += [jzdc]\n if not YKHO.actions:\n YKHO.actions = eax5.actor_idle", "def J...
[ "0.7943711", "0.68708056", "0.6388238", "0.6330225", "0.62956035", "0.6143536", "0.61021554", "0.6097367", "0.6077963", "0.60775", "0.5974723", "0.5912357", "0.5810648", "0.5795613", "0.57849884", "0.57688504", "0.5759988", "0.5745182", "0.5720643", "0.5656891", "0.5618868", ...
0.7379539
1
Retrieves the container types to merge. Container types not defined in _CONTAINER_TYPES are ignored and not merged. Specific container types reference other container types, such as event referencing event data. The names are ordered to ensure the attribute containers are merged in the correct order.
def GPEm(YKHO): _vTa = [] for QAE8 in YKHO._CONTAINER_TYPES: if YKHO._store._HasAttributeContainers(QAE8): _vTa.append(QAE8) return _vTa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VsPL():\n xDcj = '\\t\\t\\tSELECT\\t\\t\\t\\tid_item_container_type,\\t\\t\\t\\tlabel\\t\\t\\tFROM\\t\\t\\t\\titem_container_type\\t\\t'\n return {a1PO['id_item_container_type']: a1PO['label'] for a1PO in wOed.fetchAllRows(xDcj)}", "def wXP6(YKHO):\n SnBA = set()\n for aUGN in YKHO.children:\n ...
[ "0.6277974", "0.5391704", "0.53720915", "0.53697675", "0.52713853", "0.52642953", "0.52123386", "0.51235425", "0.5092419", "0.5083809", "0.50343156", "0.4980909", "0.49574783", "0.4928214", "0.49149346", "0.49146336", "0.49083138", "0.49072948", "0.48971298", "0.48892725", "0...
0.66901577
0
Convert date to a Unix Seconds value
def cJUI(YKHO): StIK = YKHO.ts_types['unix_sec'] try: WgTK = kJUT.parse(YKHO.timestamp) if hasattr(WgTK.tzinfo, '_offset'): ekQh = WgTK.tzinfo._offset.total_seconds() WgTK = kJUT.parse(YKHO.timestamp, ignoretz=True) else: ekQh = 0 YKHO.out_unix...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KDBR(_c1T):\n return int(ITS7.mktime(_c1T.timetuple()))", "def IMJE(_c1T):\n g75m = _c1T - qtWj\n return g75m.days * 86400 + g75m.seconds + float(g75m.microseconds) / 1000000", "def ffVq(_c1T):\n return int(ITS7.mktime(_c1T.timetuple()) * 1000)", "def IMJE(_c1T):\n g75m = _c1T - qtWj\n ...
[ "0.80015", "0.73247415", "0.730998", "0.72946167", "0.72946167", "0.69092965", "0.6872264", "0.6811874", "0.6796202", "0.67940915", "0.66746664", "0.6614821", "0.6583494", "0.65821856", "0.64730597", "0.6467745", "0.64617205", "0.64282095", "0.64246887", "0.64212453", "0.6354...
0.70804304
5
Convert date to a Unix Millisecond value
def wAg2(YKHO): StIK = YKHO.ts_types['unix_milli'] try: WgTK = kJUT.parse(YKHO.timestamp) if hasattr(WgTK.tzinfo, '_offset'): ekQh = WgTK.tzinfo._offset.total_seconds() WgTK = kJUT.parse(YKHO.timestamp, ignoretz=True) else: ekQh = 0 YKHO.out_un...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jO12(_c1T):\n return Ir3V(_c1T, float=True) * 1000.0", "def ffVq(_c1T):\n return int(ITS7.mktime(_c1T.timetuple()) * 1000)", "def KDBR(_c1T):\n return int(ITS7.mktime(_c1T.timetuple()))", "def QGdl(E3oo):\n return E3oo / 1000000.0", "def vlu4(YVPx):\n YVPx = YVPx + qcWV.timedelta(hours=n...
[ "0.82807875", "0.77584636", "0.7531014", "0.7184201", "0.7148117", "0.7079632", "0.70408297", "0.702171", "0.70105946", "0.68891644", "0.68392503", "0.681694", "0.68165857", "0.68134284", "0.6754815", "0.6675617", "0.6658929", "0.6642811", "0.66386724", "0.6603719", "0.657033...
0.6562315
21
Convert a Mac Absolute timestamp to a date Also used for Safari plist timestamps
def dDjK(YKHO): lo9Y = '[!] Mac Absolute timestamps are 9 digits, commonly followed by a decimal and up to 6 digits for milliseconds' StIK = YKHO.ts_types['mac'] try: if '.' not in YKHO.mac or not (len(Pp4r.split('.')[0]) == 9 and len(YKHO.mac.split('.')[1]) in range(0, 7)) or (not ''.join(YKHO.mac....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Errs(nPrm):\n return str(ITS7.mktime(nPrm.timetuple()))", "def E3oo(YKHO, a1PO):\n if isinstance(a1PO, qcWV):\n a1PO = ITS7.mktime(a1PO.timetuple())\n return a1PO - 631065600", "def xOBw(BWXx) -> int:\n assert isinstance(BWXx, str)\n JRYC = qcWV.strptime(BWXx, '%Y-%m-%dT%H:%M:%SZ')\n ...
[ "0.69574004", "0.6715473", "0.66348", "0.6629909", "0.6616872", "0.65675676", "0.65399504", "0.65103465", "0.6499327", "0.6480312", "0.6455841", "0.6421591", "0.6383134", "0.63351357", "0.63176686", "0.62874347", "0.62734836", "0.62642956", "0.626158", "0.6259721", "0.6248973...
0.0
-1
Convert a Microsoft 128bit SYSTEMTIME timestamp to a date
def jY_h(YKHO): lo9Y = '[!] Microsoft 128-bit SYSTEMTIME timestamps are 32 hex characters (16 bytes)' StIK = YKHO.ts_types['systemtime'] try: if not len(YKHO.systime) == 32 or not all((hcXw in Jc30 for hcXw in YKHO.systime)): YKHO.in_systemtime = ciCv = kbUE = False pass ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nJzU(E3oo: float):\n from datetime import datetime, timedelta\n return datetime(1601, 1, 1) + timedelta(E3oo / 10000000)", "def E3oo(YKHO, a1PO):\n if isinstance(a1PO, qcWV):\n a1PO = ITS7.mktime(a1PO.timetuple())\n return a1PO - 631065600", "def F0Fn(nPrm):\n try:\n return qcW...
[ "0.67079026", "0.66242117", "0.66172886", "0.6577654", "0.6566204", "0.6516551", "0.6509257", "0.6477741", "0.64362204", "0.6432865", "0.63993454", "0.6338205", "0.6332146", "0.6325549", "0.62919617", "0.62905884", "0.62525517", "0.62487525", "0.623556", "0.62294847", "0.6212...
0.6475056
8
Convert a date to a Microsoft 128bit SYSTEMTIME timestamp
def o3Am(YKHO): StIK = YKHO.ts_types['systemtime'] try: WgTK = kJUT.parse(YKHO.timestamp) if hasattr(WgTK.tzinfo, '_offset'): ekQh = WgTK.tzinfo._offset.total_seconds() WgTK = kJUT.parse(YKHO.timestamp, ignoretz=True) else: ekQh = 0 KrIv = int(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _uaQ(_c1T):\n return int(GRk0.timegm(_c1T.utctimetuple()))", "def O7z2(_c1T):\n return _c1T + ZyYF", "def E3oo(YKHO, a1PO):\n if isinstance(a1PO, qcWV):\n a1PO = ITS7.mktime(a1PO.timetuple())\n return a1PO - 631065600", "def ln2D(_c1T):\n return _c1T - ZyYF", "def n99j(YKHO, JRYC)...
[ "0.6973901", "0.6756699", "0.6655168", "0.6641216", "0.6594741", "0.65467346", "0.6537244", "0.6486399", "0.64819926", "0.64640915", "0.63781506", "0.6352102", "0.63079244", "0.6307849", "0.6244377", "0.61995846", "0.6185825", "0.6180002", "0.6179605", "0.6159549", "0.6131037...
0.59575325
37
Convert a Microsoft Hotmail timestamp to a date
def UI8h(YKHO): lo9Y = '[!] Microsoft Hotmail timestamps are 2 sets of 8 hex characters (4 bytes), separated by a colon' StIK = YKHO.ts_types['hotmail'] try: if ':' not in YKHO.hotmail or not (all((hcXw in Jc30 for hcXw in YKHO.hotmail[0:8])) and all((hcXw in Jc30 for hcXw in YKHO.hotmail[9:]))): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aw1h(YKHO, E3oo):\n E3oo = E3oo / 1000\n _c1T = qcWV.datetime.fromtimestamp(E3oo).strftime('%Y-%b-%d %H:%M %p')\n return _c1T", "def Elj9(E3oo):\n iLV1 = ZbWC.match('(.*?\\\\+\\\\d{2}):(.*)', E3oo)\n p7fT = qcWV.strptime('{}{}'.format(iLV1.group(1), iLV1.group(2)), '%Y-%m-%dT%H:%M:%S%z').strft...
[ "0.6874161", "0.6732578", "0.66007787", "0.64955604", "0.6479627", "0.6478224", "0.64737386", "0.6470756", "0.6386812", "0.6367772", "0.636408", "0.63554734", "0.6337966", "0.6331731", "0.6323805", "0.63237286", "0.63135785", "0.6310229", "0.6299179", "0.62868327", "0.6273811...
0.5778
88
Convert an iOS 11 timestamp to a date
def WfdH(YKHO): lo9Y = '[!] iOS 11 timestamps are typically 15-18 digits' StIK = YKHO.ts_types['iostime'] try: if not len(YKHO.ios) in range(15, 19) or not YKHO.ios.isdigit(): YKHO.in_iostime = ciCv = kbUE = False pass else: WgTK = int(YKHO.ios) / int(YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cxh3(Emd4, E3oo):\n return _c1T()", "def Elj9(E3oo):\n iLV1 = ZbWC.match('(.*?\\\\+\\\\d{2}):(.*)', E3oo)\n p7fT = qcWV.strptime('{}{}'.format(iLV1.group(1), iLV1.group(2)), '%Y-%m-%dT%H:%M:%S%z').strftime('%Y-%m-%dT%H:%M:%S%z')\n return p7fT", "def p0rV(E3oo):\n Igxa = I8kJ.dates.date2num(q...
[ "0.716403", "0.68267757", "0.68258494", "0.6821402", "0.68055016", "0.677414", "0.67386466", "0.6690118", "0.66589516", "0.6658844", "0.66268545", "0.6602538", "0.65678626", "0.6557426", "0.6552822", "0.64536494", "0.64246416", "0.6412377", "0.63869846", "0.63568366", "0.6352...
0.0
-1
Convert a timestamp to a GSM timestamp
def NGH6(YKHO): StIK = YKHO.ts_types['gsm'] try: WgTK = kJUT.parse(YKHO.timestamp) if hasattr(WgTK.tzinfo, '_offset'): ekQh = WgTK.tzinfo._offset.total_seconds() else: ekQh = 0 if ekQh == 0: OQJo = '{:02d}'.format(0) elif ekQh < 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Elj9(E3oo):\n iLV1 = ZbWC.match('(.*?\\\\+\\\\d{2}):(.*)', E3oo)\n p7fT = qcWV.strptime('{}{}'.format(iLV1.group(1), iLV1.group(2)), '%Y-%m-%dT%H:%M:%S%z').strftime('%Y-%m-%dT%H:%M:%S%z')\n return p7fT", "def khNa(YKHO):\n try:\n WgTK = kJUT.parse(E3oo)\n EgGJ = '{0:x}'.format(WgTK....
[ "0.6929139", "0.6928604", "0.6877842", "0.66339785", "0.6595173", "0.6551951", "0.65402913", "0.6504355", "0.6478306", "0.6431171", "0.6428978", "0.64164084", "0.6376079", "0.63256705", "0.63166654", "0.629443", "0.62887335", "0.6256878", "0.62364244", "0.62047803", "0.620038...
0.7689971
0
Extract a timestamp from a KSUID value
def xqI3(YKHO): lo9Y = '[!] KSUID values are 27 characters' StIK = YKHO.ts_types['ksuid'] try: gcXT = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' if len(str(YKHO.ksuid)) != 27 or not all((hcXw in gcXT for hcXw in YKHO.ksuid)): YKHO.in_ksuid = ciCv = kbUE = Fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xOBw(BWXx) -> int:\n assert isinstance(BWXx, str)\n JRYC = qcWV.strptime(BWXx, '%Y-%m-%dT%H:%M:%SZ')\n return GRk0.timegm(JRYC.utctimetuple())", "def ItX3(Juau):\n return zYpI(Juau).get('timestamp', 0)", "def KOTW(Mau6):\n if 'timestamp_ms' in Mau6:\n adSP = int(Mau6['timestamp_ms'])\...
[ "0.68405914", "0.65652996", "0.65340316", "0.6284323", "0.62503487", "0.62403697", "0.61737776", "0.61713964", "0.6164974", "0.6151784", "0.6072838", "0.6070326", "0.6068812", "0.60479254", "0.604306", "0.6030629", "0.596953", "0.59533304", "0.5875243", "0.5873095", "0.585996...
0.6769528
1
The set of arguments for constructing a IAMPolicy resource.
def FIMM(Ro_8, *, xtX7: pulumi.Input[str], DXuJ: pulumi.Input[str]): qe4Y.set(Ro_8, 'folder', xtX7) qe4Y.set(Ro_8, 'policy_data', DXuJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: PolicyArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, qIxc: AssessmentPolicyArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, qIxc: EndpointAclPolicyArgs, VKhi: Optional[pulumi.ResourceOptions]=Non...
[ "0.67290044", "0.6683979", "0.66201115", "0.6375484", "0.6282084", "0.6261985", "0.62070596", "0.606285", "0.605271", "0.60482824", "0.6022158", "0.6001994", "0.5993332", "0.59921676", "0.59898937", "0.5988024", "0.5953157", "0.5940971", "0.5930414", "0.5916907", "0.59150475"...
0.0
-1
(Computed) The etag of the folder's IAM policy.
def ajCK(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'etag')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ajCK(YKHO) -> str:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YKHO) -> str:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YKHO) -> str:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YKHO) -> str:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YKHO) -> str:\n return qe4Y.get(YKHO, 'etag')", "...
[ "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6360385", "0.6360385", "0.6360385", "0.6360385", "0.6360385", "0.6360385", "0.6360385", "0.63227206", "0.6128659", "0.6078536", ...
0.6079093
25
Get an existing IAMPolicy resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, ajCK: Optional[pulumi.Input[str]]=None, xtX7: Optional[pulumi.Input[str]]=None, DXuJ: Optional[pulumi.Input[str]]=None) -> 'IAMPolicy': VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id)) r6DL = LOP7.__new__...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'IoMAMPolicyByName':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = dict()\n r6DL['access_recheck_offline_timeout'] = None\n r6DL['access_recheck_online_timeout'] = None\n r6DL...
[ "0.6730773", "0.62943447", "0.5991634", "0.57783455", "0.5723162", "0.5594087", "0.5315862", "0.5294431", "0.5280061", "0.52267236", "0.52137315", "0.5205417", "0.51969236", "0.513978", "0.51319057", "0.51281047", "0.50992334", "0.5037234", "0.5036034", "0.50265807", "0.50214...
0.7043442
0
(Computed) The etag of the folder's IAM policy.
def ajCK(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'etag')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ajCK(YKHO) -> str:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YKHO) -> str:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YKHO) -> str:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YKHO) -> str:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YKHO) -> str:\n return qe4Y.get(YKHO, 'etag')", "...
[ "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.6380078", "0.63227206", "0.6128659", "0.6079093", "0.6079093", "0.6079093", "0.6079093", "0.6079093", "0.6079093", "0.6079093", "0.6079093", ...
0.6360385
17
the slug has to be consistent for each item, even when pulled from yaml file thus we cant use uuid here as it is generated unique every time; where as this is based on a uniqe combo of the item details
def nrvT(YKHO, ZfUD, **B2fa): mWFP = YKHO.project_data.slug(item_name=ZfUD.name) if len(B2fa.keys()) > 0: mWFP = '{name}{extra}'.format(name=mWFP, extra='-'.join([QMSQ(YRbF) for YRbF in B2fa.values()])) return xh6r.uuid(name=mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXWQ(YKHO):\n QXWQ(YKHO, based_on_field='name')", "def EN19(YKHO):\n from storybase.utils import unique_slugify\n A0Gq = M8lk(title='Test Story', summary='Test Summary', byline='Test Byline')\n YKHO.assertEqual(A0Gq.slug, 'test-story')\n j2fv = M8lk(title='Test Story', summary='Test Summary 2'...
[ "0.6804739", "0.6638412", "0.6579043", "0.64857644", "0.6451946", "0.64459014", "0.6380446", "0.63275534", "0.631819", "0.62966955", "0.6290166", "0.62444276", "0.6227533", "0.62217915", "0.6208051", "0.6152805", "0.6147064", "0.614622", "0.61410016", "0.61227673", "0.611754"...
0.7523377
0
Define a line as a list of Term instances.
def FIMM(YKHO, vC9B=None, Z9rn=True): if vC9B is None: vC9B = 0 if vC9B == []: vC9B = 0 try: vC9B = ncGu._translate(vC9B) except: try: vC9B = [__xj(vC9B)] except: vC9B = [__xj(YRbF) for YRbF in vC9B] if Z9rn: vC9B = ncGu._conden...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nct0(YKHO, zFiD):\n raise NotImplementedError", "def G_y_(YKHO, Nqlg, TG_K):\n _73Q = []\n for YRbF, A07C in enumerate(Nqlg):\n PKBr = Nqlg[A07C]['sentence']\n _73Q.append(xeAK(text_a=PKBr))\n return _73Q", "def G_y_(YKHO, Nqlg, TG_K):\n _73Q = []\n for YRbF, A07C in enumera...
[ "0.640686", "0.6109169", "0.603667", "0.59105754", "0.58692014", "0.5822065", "0.58101696", "0.5793072", "0.57401437", "0.5729469", "0.5721214", "0.57100934", "0.57100934", "0.57099295", "0.5705616", "0.5694946", "0.5692348", "0.5691312", "0.56885463", "0.56812394", "0.566981...
0.0
-1
Use the == shortcut for comparison.
def xa14(YKHO, LVAh): vexM = YKHO.compare(LVAh) return vexM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YK...
[ "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225", "0.76487225"...
0.0
-1