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
Registers and returns the uid of the remote object if the unique id handler tool is available.
def BeFS(YKHO): if not dU8D: return lmi7 = tnMW(ekUH) if lmi7 is None: return YEnM = Bpuz(yUK3).restrictedTraverse(YKHO.remote_url) return lmi7.register(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h0gU():\n raise NotImplementedError()", "def bX6Z(YEnM):\n PXYc = t2lc.dumps(YEnM)\n VOUG = WR89.encodebytes(PXYc)\n ShR8 = VOUG.decode()\n return ShR8", "def weGH():\n return '48ee71d9-20f0-41fc-a99f-c518121a880e'", "def PObu(YKHO):\n return YKHO.__uid", "def ok2T(YKHO, y5Cv):\n ...
[ "0.62769085", "0.5979896", "0.59322", "0.5852313", "0.5846881", "0.58400476", "0.58395666", "0.577882", "0.57760674", "0.57760674", "0.57760674", "0.57567644", "0.5742425", "0.5742425", "0.57292646", "0.5717885", "0.57044554", "0.5673191", "0.56694037", "0.5669335", "0.562118...
0.71938664
0
Registers and returns the uid of the remote object if the unique id handler tool is available.
def wdHi(YKHO): if not dU8D: return lmi7 = tnMW(ekUH) if lmi7 is None: return PObu = getattr(SAlm(YKHO), 'remote_uid', None) if PObu is None: return return lmi7.queryObject(PObu, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BeFS(YKHO):\n if not dU8D:\n return\n lmi7 = tnMW(ekUH)\n if lmi7 is None:\n return\n YEnM = Bpuz(yUK3).restrictedTraverse(YKHO.remote_url)\n return lmi7.register(YEnM)", "def h0gU():\n raise NotImplementedError()", "def bX6Z(YEnM):\n PXYc = t2lc.dumps(YEnM)\n VOUG = W...
[ "0.7191048", "0.6274347", "0.59789914", "0.59292203", "0.58489907", "0.5848554", "0.58400077", "0.5836984", "0.57775366", "0.57733786", "0.57733786", "0.57733786", "0.57529795", "0.5742371", "0.5742371", "0.5729427", "0.5714595", "0.57022285", "0.5670433", "0.56701034", "0.56...
0.5477824
33
Check the pointing against the source position.
def JAbp(veDp): veDp._KissRawData__check_attributes(['F_sky_Az', 'F_sky_El', 'F_tl_Az', 'F_tl_El', 'A_hours', 'A_time_pps']) lh0a, aNZO = QrM1.subplots() ZHfW = veDp.telescope_position.mask aNZO.plot(veDp.F_sky_Az[~ZHfW], veDp.F_sky_El[~ZHfW], label='F_sky') aNZO.plot(veDp.F_tl_Az[~ZHfW], veDp.F_tl_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def du_0(YKHO, e1vZ):\n return e1vZ in YKHO.points_to", "def YITj(YKHO, eWTf):\n if int(eWTf[0]) == int(YKHO.x) and int(eWTf[1]) == int(YKHO.y):\n return False\n else:\n return True", "def xrd5(YKHO):\n YKHO.__stack.append((YKHO.__current_pos, YKHO.line, YKHO.linePos))", "def DDyx(Y...
[ "0.69126195", "0.65514904", "0.63591015", "0.63506365", "0.6247437", "0.62231284", "0.61984205", "0.61874676", "0.6182153", "0.617781", "0.6154955", "0.6142628", "0.6111239", "0.6092104", "0.60230815", "0.5988403", "0.59797394", "0.59700984", "0.59530574", "0.5951796", "0.594...
0.0
-1
Attempt to get the active settings, and if the secret key is set to the default one, then create a new randomized secret key.
def LJcR(Emd4): bo34.info('attempting to check the secret key...') try: KCHu = Emd4.objects.filter(is_active=True).first() if KCHu and KCHu.secret_key == 'not-a-very-good-secret': gLiZ = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)' KCHu.secret_key = GLL2(50, gLiZ)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xshI(YqMg, FXSn=FXSn):\n return FXSn[YqMg]", "def mSmC(YKHO):\n e9r0 = YKHO.charm_config.get('shared-secret')\n zdrH = YKHO.kv.get('shared-secret')\n if not e9r0:\n if zdrH:\n return zdrH\n else:\n e9r0 = YKHO.random_string(16)\n YKHO.kv.set('shared-...
[ "0.63599825", "0.63512933", "0.6262027", "0.60579515", "0.6037721", "0.59737897", "0.59392446", "0.58960783", "0.5894387", "0.58593845", "0.58050233", "0.5741639", "0.571343", "0.569318", "0.56584144", "0.5619214", "0.55711234", "0.55609787", "0.5546059", "0.5539475", "0.5535...
0.59137094
7
Returns a new query that yields only the distinct attribute dictionaries.
def UYlD(YKHO): return DtFU(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VeQJ(__n6):\n return __n6.flatMap(lambda WKvO: WKvO.keys()).distinct().collect()", "def UYlD(YKHO):\n umWR = jth9(YKHO)\n umWR._distinct = True\n return umWR", "def ZEM3():\n N1p7 = My6a.objects.aggregate(*[{'$unwind': '$sample_attributes'}, {'$project': {'_id': '$sample_attributes.name'}}])...
[ "0.67824453", "0.67707354", "0.6306246", "0.61149323", "0.6015974", "0.5910721", "0.58561134", "0.57884216", "0.5784151", "0.5730671", "0.5698376", "0.56848973", "0.56417584", "0.5631722", "0.5612098", "0.56015056", "0.55975586", "0.55945975", "0.55112934", "0.5509146", "0.54...
0.7042583
0
Returns an int64_list from a bool / enum / int / uint.
def xJYY(YKHO, BWXx): return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo", ...
[ "0.6879461", "0.6594319", "0.64610714", "0.64480275", "0.6365076", "0.6292767", "0.6272", "0.621682", "0.6104883", "0.5952729", "0.5947156", "0.5901963", "0.58641315", "0.58641315", "0.58546174", "0.584493", "0.5844073", "0.5830585", "0.58009046", "0.57939154", "0.57939154", ...
0.52802974
82
Close the connection to the database, if any.
def mjIB(): try: w2B8 = WsL5.g._database_connection except AttributeError: pass else: w2B8.close() del WsL5.g._database_connection
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZlT(Emd4):\n NCls.close()", "def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None", "def DDI8(YKHO):\n if YKHO._dbopen:\n YKHO._dbcon.close()", "def DDI8(YKHO):\n if YKHO._conn is not None:\n YKHO._close_database()", "def EM8p(YK...
[ "0.8760214", "0.87304854", "0.8431955", "0.8383244", "0.8368992", "0.83112925", "0.8225679", "0.81829965", "0.8134925", "0.8134925", "0.8134925", "0.8117622", "0.8092849", "0.80540955", "0.80275327", "0.8022037", "0.80208796", "0.8018865", "0.80137193", "0.7995095", "0.798887...
0.77389264
31
This function use the zip function to help us generate ngrams Concatentate the tokens into ngrams and return
def R4Rq(list, exwG): pCSA = zip(*[list[YRbF:] for YRbF in range(exwG)]) return [' '.join(u8Mh) for u8Mh in pCSA]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HyjZ(s2mk, exwG):\n return zip(*[s2mk[YRbF:] for YRbF in range(exwG)])", "def kiTG(s2mk, exwG=2):\n pCSA = zip(*(uOgj(uOe2, or8S, None) for or8S, uOe2 in enumerate(y54_(s2mk, exwG))))\n return pCSA", "def HyjZ(s2mk, exwG=1):\n bNbJ = lambda YRbF: (geyT for r845, geyT in enumerate(s2mk) if r845 ...
[ "0.7617477", "0.7470776", "0.732712", "0.73225147", "0.7279611", "0.708159", "0.68269104", "0.67832613", "0.67683333", "0.67411864", "0.6663142", "0.65951955", "0.6589546", "0.65855277", "0.65522957", "0.654571", "0.64943606", "0.6478387", "0.6469586", "0.6466792", "0.6458041...
0.66344905
11
Initialize the flatten weights.
def C0Lv(YKHO): z2bo = 1.0 / epAf.sqrt(YKHO._hidden_size) for rZh3, brHW in Hs6x.product(range(YKHO._num_layers * (YKHO._bidirectional + 1)), range(YKHO._num_gates * 2)): YRbF = rZh3 * 2 + brHW // YKHO._num_gates r845 = YRbF + len(YKHO._weights_shapes) // 2 bjOx = YKHO._weights_shapes[YR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C0Lv(YKHO):\n pass", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def sTi3(YKHO):\n ZylS.nest.map_structure(dIoi.WeightsInitializer.initialize_layer_or_model, YKHO._layer_nest)", "def vJuA(YKHO):\n raise ...
[ "0.7941322", "0.78777975", "0.7717487", "0.7603258", "0.7462157", "0.73472494", "0.7302802", "0.7219489", "0.71978956", "0.71978956", "0.71978956", "0.7176673", "0.7166932", "0.7156281", "0.71415526", "0.71013314", "0.71013314", "0.7100617", "0.70538676", "0.70474875", "0.703...
0.6712236
47
Residual unit with 2 sub layers.
def QufS(YKHO, WKvO, _0fC, gmUL, fjtu=False, fsRK='SAME'): with ZylS.name_scope('res_block' + str(YKHO._count_conv)): juHT = WKvO.get_shape().as_list()[-1] if fjtu: with ZylS.variable_scope('shared_activation'): WKvO = YKHO.bn(WKvO) WKvO = YKHO.activation(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mBEO(YKHO, WKvO):\n MKlR = WKvO\n MKlR = YKHO.c1(MKlR)\n MKlR = YKHO.activation(MKlR)\n MKlR = YKHO.c2(MKlR)\n MKlR = vuvg.avg_pool2d(MKlR, 2)\n return MKlR", "def E5KX(YKHO):\n VC3Q = YKHO.I - YKHO.E\n return VC3Q", "def mBEO(YKHO, WKvO):\n MKlR = WKvO\n MKlR = YKHO.b1(MKlR)\...
[ "0.69269395", "0.68226415", "0.6805156", "0.67525655", "0.66495687", "0.66160816", "0.6558935", "0.6499019", "0.6450447", "0.6404291", "0.6357325", "0.6352921", "0.6268192", "0.62466097", "0.6241244", "0.6229056", "0.6212663", "0.62063855", "0.6204324", "0.6197958", "0.618711...
0.5485063
65
Fit in a list of docs, which had been preprocessed and tokenized, such as word bigrammed, stopwords removed, lemmatized, part of speech filtered. Then build up a tfidf model to compute each word's idf as its weight. Noted that tf weight is already involved when constructing average word vectors, and thus omitted.
def WgYu(YKHO, Q5mJ): BNY8 = [] for A97Q in Q5mJ: BNY8.append(' '.join(A97Q)) s4H9 = oNB5() s4H9.fit(BNY8) V7PC = max(s4H9.idf_) YKHO.word_idf_weight = oRi_(lambda: V7PC, [(GIN8, s4H9.idf_[YRbF]) for GIN8, YRbF in s4H9.vocabulary_.items()]) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WgYu(YKHO, rrSk):\n ZylS = []\n jQ3Z = {}\n quXY = {}\n HJJv = []\n FjiL = 0\n for C13M in rrSk:\n FjiL += 1\n HJJv.append(len(C13M))\n f8a3 = {}\n for OXAZ in C13M:\n Zzol = f8a3.get(OXAZ, 0) + 1\n f8a3[OXAZ] = Zzol\n ZylS.append(f8a3)...
[ "0.7904618", "0.7772725", "0.7692799", "0.75526816", "0.7194879", "0.7053158", "0.7036455", "0.7004341", "0.6995653", "0.69807214", "0.6978545", "0.69410586", "0.6919294", "0.69020516", "0.6891554", "0.6888705", "0.687837", "0.6797447", "0.67321277", "0.6706456", "0.6686631",...
0.83235234
0
NotFound view for AJAX requests.
def R7l_(QePW): return lW34()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf(QePW):\n return oGir(TvZl('core/not_found.html'), status=404, mimetype='text/html')", "def o3cf(YKHO, QePW):\n return 'Not found'", "def tTee(YEnM, QePW):\n return lW34()", "def m7kB(tTpl):\n if QePW.accept_mimetypes.accept_json and (not QePW.accept_mimetypes.accept_html):\n _hkX ...
[ "0.7871394", "0.764238", "0.751863", "0.74829817", "0.73646843", "0.7303901", "0.72378373", "0.72013605", "0.71907485", "0.7190473", "0.7181101", "0.7181101", "0.7169116", "0.7166708", "0.71491206", "0.7127023", "0.7127023", "0.7121635", "0.7107662", "0.7106705", "0.7076301",...
0.8406488
0
A projection function that prevents v from leaving the tangent space of origin point.
def MAbI(YKHO, Ty9i, Z9rn): return Ty9i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k1_s(Ty9i, yzQ0):\n \"\"\"projects v onto w and subtracts the result from v\"\"\"\n return C5K3(Ty9i, bNKA(Ty9i, yzQ0))", "def k1_s(Ty9i, yzQ0):\n return C5K3(Ty9i, bNKA(Ty9i, yzQ0))", "def vCxW(P6bq, Ty9i):\n sggy = oyIN.array([P6bq.get_x(), P6bq.get_y()])\n b1hD = oyIN.array([Ty9i.get_x(),...
[ "0.7001486", "0.69354916", "0.6844989", "0.6765347", "0.65733564", "0.64623946", "0.6253514", "0.62395644", "0.61570174", "0.6141985", "0.6106418", "0.6030135", "0.5990714", "0.5935048", "0.59034806", "0.5896629", "0.5865526", "0.58323604", "0.57923144", "0.5788979", "0.57770...
0.66658735
4
Map a point v in the tangent space of point x to the manifold.
def Zq6L(YKHO, Ty9i, WKvO, Z9rn): Z9rn = YKHO.truncate_c(Z9rn) gZcO = YKHO.clip(ZylS.norm(Ty9i, ord=2, axis=-1, keepdims=True)) E8lQ = STYu(YKHO._lambda_x(WKvO, Z9rn) * gZcO / 2.0, Z9rn) * Ty9i / gZcO KMvS = YKHO._mobius_add(WKvO, E8lQ, Z9rn) return KMvS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mSH2(YKHO, iArr, shHt):\n OHwH = YKHO._iterate_over_factors('to_tangent', {'base_point': shHt, 'vector': iArr})\n return OHwH", "def mSH2(YKHO, iArr, shHt):\n return i912.copy(iArr)", "def BxRI(YKHO, XP5J):\n XP5J = qw7D(XP5J, float)\n Ty9i = XP5J - YKHO.o\n Ty9i /= CkYf(Ty9i)\n Fg_i =...
[ "0.6683835", "0.6682886", "0.62691945", "0.61532944", "0.5733489", "0.56882346", "0.5663054", "0.56587976", "0.5624867", "0.55921465", "0.5552671", "0.55490094", "0.5543394", "0.55260605", "0.55126894", "0.55105543", "0.5477381", "0.54402906", "0.54244506", "0.5423567", "0.54...
0.0
-1
Map a point v in the tangent space of origin point to the manifold.
def Lubs(YKHO, Ty9i, Z9rn): Z9rn = YKHO.truncate_c(Z9rn) gZcO = YKHO.clip(ZylS.norm(Ty9i, ord=2, axis=-1, keepdims=True)) KMvS = STYu(gZcO, Z9rn) * Ty9i / gZcO return KMvS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mSH2(YKHO, iArr, shHt):\n return i912.copy(iArr)", "def mSH2(YKHO, iArr, shHt):\n OHwH = YKHO._iterate_over_factors('to_tangent', {'base_point': shHt, 'vector': iArr})\n return OHwH", "def BxRI(YKHO, NFIp):\n wD7x, qlpc = (qT99(), qT99())\n Ylbp = xQN8(YKHO.surface(), NFIp[0], NFIp[1], 1, 1e...
[ "0.69912463", "0.6648027", "0.6488708", "0.6461468", "0.6040514", "0.58583313", "0.58238995", "0.5806593", "0.5787152", "0.5780274", "0.5764578", "0.56691307", "0.5668222", "0.56607324", "0.5622549", "0.55428267", "0.55381554", "0.55353755", "0.55147034", "0.54706776", "0.546...
0.0
-1
Calculate the squared geodesic/distance between x and y.
def rc4Y(YKHO, WKvO, LVAh, Z9rn): Z9rn = YKHO.truncate_c(Z9rn) pImw = 2.0 * K_Lm(ZylS.norm(YKHO._mobius_add(-WKvO, LVAh, Z9rn), ord=2, axis=-1), Z9rn) return pImw ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usGr(WKvO, LVAh):\n o4D3, si3g = WKvO\n ajwV, skBL = LVAh\n return PZyS((o4D3 - ajwV) ** 2 + (si3g - skBL) ** 2)", "def C7We(ZbiE, CSPF, mOlj, ymxS):\n return (ZbiE - mOlj) ** 2 + (CSPF - ymxS) ** 2", "def AUp_(WKvO: float, LVAh: float) -> float:\n A3Vt = 6370\n igSk = Y_1E(WKvO[0])\n ...
[ "0.74443054", "0.74331427", "0.73301697", "0.73246294", "0.7316416", "0.7265986", "0.7152516", "0.7137806", "0.71336013", "0.70969284", "0.706704", "0.7054395", "0.7042865", "0.7036934", "0.70260185", "0.6989291", "0.6914842", "0.68972737", "0.6841928", "0.6790297", "0.679002...
0.6377332
63
Computes the inner product of a pair of tangent vectors v1 and v2 at x.
def _gRY(YKHO, hQHm, jlSq, WKvO, Z9rn, FoDZ=False): Z9rn = YKHO.truncate_c(Z9rn) AcYW = ZylS.square(YKHO._lambda_x(WKvO, Z9rn)) Lx3t = hQHm * AcYW * jlSq Ylbp = ZylS.reduce_sum(Lx3t, axis=-1, keepdims=True) if FoDZ: nQ5H = WKvO.shape.as_list()[-1] return ZylS.concat([Ylbp for bGrB in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eN5c(YKHO, JVNe, h5rh, shHt):\n Lpd8 = YKHO.metric_matrix(shHt)\n p06G = i912.einsum('...j,...jk->...k', i912.conj(JVNe), Lpd8)\n return i912.dot(p06G, h5rh)", "def eN5c(YKHO, JVNe, h5rh, shHt):\n dHmZ = False\n if JVNe.ndim == 2 and h5rh.ndim == 2:\n dHmZ = True\n if JVNe.ndim == 2:...
[ "0.7748647", "0.762943", "0.7555474", "0.7322697", "0.72441715", "0.7190461", "0.71592337", "0.7074783", "0.7048657", "0.7000617", "0.69488657", "0.68887407", "0.6804445", "0.6766873", "0.6757232", "0.6742054", "0.6733878", "0.67058504", "0.67023575", "0.66927606", "0.6686110...
0.0
-1
Wrap input tensor with dense layer.
def A0RF(YKHO, FRUf, rYO3, mWFP, YDYE='linear'): with ZylS.variable_scope('Dense', mWFP): wOp_ = ZylS.truncated_normal(shape=(YKHO.num_channels(FRUf), rYO3), dtype=ZylS.float32) yzQ0 = ZylS.Variable(wOp_) Fg_i = ZylS.Variable(ZylS.random_uniform(shape=(rYO3,), dtype=ZylS.float32)) Gi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def meuU(YKHO, FRUf, a6Jb, _Ycl=None, mWFP=None):\n return ZylS.layers.dense(FRUf, a6Jb, activation=_Ycl, kernel_initializer=ZylS.contrib.layers.variance_scaling_initializer(), kernel_regularizer=ZylS.contrib.layers.l1_l2_regularizer(), name=mWFP)", "def A0RF(PL8k):\n return l6ZH(vNnt, kernel_initializer=M...
[ "0.7356222", "0.72055626", "0.7106055", "0.68207663", "0.6740901", "0.67191607", "0.66882", "0.65716493", "0.6551061", "0.6548716", "0.6509733", "0.6466875", "0.64548945", "0.6364962", "0.63022614", "0.62926656", "0.6285683", "0.6270025", "0.62462944", "0.61212045", "0.611104...
0.70813286
3
Return a string representation of the ship.
def wHJl(YKHO): Kac1 = lWrn.direction_repr_str(LgK1, YKHO.direction()) U34r = (YKHO.coordinates(), YKHO._hit_coors, Kac1, YKHO._bs) return str(U34r)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def str(YKHO):\n yvT9 = '{0}:'.format(YKHO.gtype) if YKHO.gtype else ''\n yvT9 += '{0}'.format(repr(YKHO.coords))\n yvT9 += '[{0}]'.format(str(YKHO.goalPtr)) if YKHO.goalPtr else ''\n return yvT9", "def wHJl(YKHO):\n r0Lo = (YKHO.__board_size, YKHO.__bombs_dict, YKHO.__ships)\n return str(r0Lo)...
[ "0.73737925", "0.70997673", "0.68632567", "0.6834909", "0.68081784", "0.6782454", "0.6778136", "0.675137", "0.6748032", "0.66801757", "0.6675872", "0.6668439", "0.6664023", "0.66346645", "0.66346437", "0.6624499", "0.66211826", "0.6609688", "0.6591927", "0.65690786", "0.65561...
0.63988644
36
Returns a bool indicating whether the Operation can now be preformed.
def IJ7Q(YKHO): for zJAO in YKHO.dependencies: if not zJAO.is_finished: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kXHa(YKHO) -> bool:\n return not (YKHO.has_pending_action or YKHO.is_dead())", "def Debg(YKHO):\n if YKHO.is_update_locked():\n return YKHO.graceful_state\n if YKHO._state['action'] == 1 and YKHO._state['state'] == 2:\n return True\n return False", "def Z_6Z(YKHO):\n return YKH...
[ "0.67482376", "0.63803893", "0.6326173", "0.6326173", "0.6326173", "0.6325747", "0.63041985", "0.63041985", "0.6295889", "0.6253177", "0.6251356", "0.6239816", "0.6217125", "0.6211083", "0.6180027", "0.6149411", "0.6107223", "0.6100739", "0.60905635", "0.6083158", "0.6080134"...
0.0
-1
Convert local datetime to UTC string Converts datetime.datetime or pandas.Timestamp in local time to to UTC string for constructing HTTP request
def l3gz(YKHO, JRYC: datetime, FEXa: str='America/Los_Angeles', FMLJ: str='%Y%m%dT%H:%M-0000') -> str: r5W0 = FXGE.timezone(FEXa) return r5W0.localize(JRYC).astimezone(FXGE.UTC).strftime(FMLJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRaC(JRYC):\n if not JRYC:\n return ''\n return Elpc(JRYC).strftime('%Y-%m-%d %H:%M:%S')", "def KR93(shus: datetime) -> qcWV:\n if shus is None:\n return None\n B8aT = shus.astimezone(yl4j.UTC)\n return B8aT", "def GhEe(BWXx):\n if isinstance(BWXx, qcWV):\n return BWX...
[ "0.6612694", "0.64998025", "0.6472217", "0.6450555", "0.64482915", "0.64409757", "0.6429818", "0.63801944", "0.63655984", "0.63655984", "0.63655984", "0.6355556", "0.63419676", "0.6313661", "0.6295784", "0.62804246", "0.62704813", "0.6189889", "0.61815065", "0.6133904", "0.60...
0.7121373
0
Get LMPs for entire month Helper method to get LMPs for a complete month
def gbix(YKHO, lO87: int, x0eS: int) -> rLdf.DataFrame: yKcO: qcWV = qcWV(lO87, x0eS, 1) Os4s: qcWV = yKcO + enlf(months=1) return YKHO.get_lmps(yKcO, Os4s)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SviJ(YKHO, KBgZ, PObu, QpfX):\n X_bn = [(str(exwG), str(exwG)) for exwG in range(1, 13)]\n return X_bn", "def oy2m(pmON):\n wzkt = qcWV.now()\n RI88 = []\n oRvD = nUNa(pmON)\n while not (oRvD.year == wzkt.year and oRvD.month == wzkt.month):\n if oRvD >= lqk3:\n RI88.append...
[ "0.6209428", "0.6080575", "0.6045852", "0.59484684", "0.59302306", "0.5910353", "0.57609594", "0.5729147", "0.5719108", "0.5713476", "0.5690234", "0.56821966", "0.5656257", "0.5652362", "0.5623577", "0.5599742", "0.55872065", "0.5582436", "0.55738115", "0.55525035", "0.554169...
0.7645053
0
Display a list of images with matplotlib and save them afterwards.
def cPsg(Yw_3, xkzz=None, zNig=None): assert len(Yw_3) > 0, 'images should contain at least 1 element' assert len(Yw_3[0].shape) == 3, 'each image should contain 3 elements (c, w,h)' LZpg, aNZO = QrM1.subplots(nrows=Yw_3[0].shape[0], ncols=len(Yw_3)) for YRbF in range(len(Yw_3)): for r845 in ran...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ti_g(CL5K, pu8V, pmON, Z3vx, ntgq=False):\n LZpg = QrM1.figure()\n eWk5 = 100 + 10 * len(CL5K) + 1\n YRbF = 0\n for LNo8 in CL5K:\n LZpg.add_subplot(eWk5)\n QrM1.title(pu8V[YRbF])\n QrM1.axis('off')\n QrM1.imshow(LNo8)\n if Z3vx:\n QrM1.set_cmap('gray')...
[ "0.77899086", "0.75809216", "0.7401679", "0.7293872", "0.7033605", "0.70169836", "0.69532794", "0.69323045", "0.69220823", "0.6897566", "0.68829554", "0.68750685", "0.68699867", "0.6850714", "0.6845518", "0.6820569", "0.6775413", "0.6775413", "0.6775413", "0.67529017", "0.673...
0.7024418
5
This policy points the camera to the offset in the target frame
def FIMM(YKHO, sEAN, Pb5J, vgXP): YKHO.env = sEAN if not isinstance(YKHO.env, V8Kp): raise ValueError('env should be of type Pr2Env but instead it is of type %s' % type(YKHO.env)) YKHO.frame_id = Pb5J YKHO.offset = vgXP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nfPp(YKHO):\n shtX = _qLf(YKHO.data['poses']['marker'])\n bD__ = _qLf(shtX)\n bD__.pose.position.x += 0.6\n bD__.pose.position.z += 0.2\n Kn9x = _WUr()\n jBbs = _WUr()\n try:\n shtX.header.stamp = YKHO.tfl.getLatestCommonTime(YKHO.params['world'], shtX.header.frame_id)\n Kn9x...
[ "0.6904287", "0.57907104", "0.56830627", "0.5645349", "0.56274587", "0.56216615", "0.5601326", "0.55899036", "0.5577058", "0.5576241", "0.55422616", "0.55222255", "0.5517438", "0.5478787", "0.546555", "0.54519933", "0.54519933", "0.54192287", "0.5407392", "0.53972995", "0.539...
0.0
-1
Render website's home page.
def kZiy(): return Yxsy(open('app/templates/index.html').read())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home_page.html')", "def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')", "def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')", "def C_QL():\n ...
[ "0.8724249", "0.85791856", "0.850329", "0.84860355", "0.84612614", "0.84362435", "0.8429879", "0.8419578", "0.8396612", "0.8396612", "0.8374868", "0.8356488", "0.8350785", "0.8340763", "0.8340763", "0.83374727", "0.83374727", "0.83374727", "0.83374727", "0.83374727", "0.83374...
0.0
-1
Render the website's about page.
def vsuQ(): return TvZl('about.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')", "def vsuQ():\n return TvZl...
[ "0.87910306", "0.8698105", "0.86404276", "0.86124563", "0.8490408", "0.84784615", "0.8467779", "0.84352976", "0.84289914", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242...
0.8325753
31
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def PYz4(geh0): geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1' geh0.headers['Cache-Control'] = 'public, max-age=0' return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0", "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0", "def PY...
[ "0.82229227", "0.8222085", "0.8222085", "0.8222085", "0.8222085", "0.819543", "0.8112277", "0.8086321", "0.7972646", "0.78653675", "0.7661059", "0.72371095", "0.7160023", "0.71526927", "0.71526927", "0.7150213", "0.7150213", "0.7141528", "0.7136741", "0.7127908", "0.7127908",...
0.8162872
23
The "Improved" evaluation function discussed in lecture that outputs a score equal to the difference in the number of moves available to the two players.
def RToP(BH3N, oyg0): if BH3N.is_loser(oyg0): return float('-inf') if BH3N.is_winner(oyg0): return float('inf') NE4c = len(BH3N.get_legal_moves(oyg0)) HJCe = len(BH3N.get_legal_moves(BH3N.get_opponent(oyg0))) return float(NE4c - HJCe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xdA4(BH3N, oyg0):\n if BH3N.is_loser(oyg0):\n return float('-inf')\n if BH3N.is_winner(oyg0):\n return float('inf')\n xzj7 = BH3N.get_opponent(oyg0)\n return float(len(BH3N.get_legal_moves(oyg0))) - 2.0 * float(len(BH3N.get_legal_moves(xzj7)))", "def xdA4(BH3N, oyg0):\n NE4c = le...
[ "0.75373864", "0.71763146", "0.7173904", "0.7060477", "0.6959869", "0.68857193", "0.68856335", "0.68621564", "0.68424577", "0.68344295", "0.6830429", "0.6824632", "0.6812624", "0.67435306", "0.6723101", "0.6718503", "0.6709417", "0.6695227", "0.66761166", "0.66604704", "0.663...
0.7414911
1
function that returns True if given number x is a multiple of 2
def c8zs(WKvO): if WKvO == 2: return True elif WKvO and WKvO % 2 == 0 and (WKvO != 0): return c8zs(WKvO / 2) else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ubP8(WKvO):\n return WKvO % 2 == 0", "def wjHP(WKvO):\n if WKvO >= 2:\n for LVAh in range(2, WKvO):\n if not WKvO % LVAh:\n return False\n else:\n return False\n return True", "def ubP8(YKHO, WKvO):\n return WKvO % 2 == 0", "def ubP8(FGW3):\n if F...
[ "0.78451467", "0.7801242", "0.7765475", "0.7597982", "0.757846", "0.7576611", "0.7573972", "0.75724286", "0.75426966", "0.7536441", "0.75360143", "0.7460907", "0.74603933", "0.745121", "0.74378216", "0.7426763", "0.73897517", "0.738536", "0.733372", "0.73313564", "0.7325335",...
0.89183307
0
Parse issue comments (json) and return the Release Note section.
def q9uu(Tj1O): QV2g = '' YRbF = 0 for aM_I in Tj1O: if aM_I['body'].lower().find('changed make') >= 0: QV2g = aM_I['body'] YRbF += 1 return QV2g
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jK8x(YKHO):\n pass", "def GGAq(YKHO):\n pass", "def f3UF(YKHO, Ilxn):\n return YKHO._get('problems/%d/comments' % Ilxn).json()", "def Tj1O(YKHO):\n ZliY = YKHO.data['comments_url']\n return qQXR.load(dTAH.urlopen(ZliY))", "def RtWt(YKHO):\n pass", "def aInN(YKHO, eD4w):\n nPrm = ...
[ "0.65757674", "0.6351964", "0.6324245", "0.62822604", "0.6150393", "0.6041485", "0.59677887", "0.59328306", "0.58843917", "0.5846195", "0.5846195", "0.5799319", "0.57956886", "0.56596625", "0.5659344", "0.55837697", "0.55837697", "0.5557559", "0.55418074", "0.5524228", "0.552...
0.6670181
0
Returns a list with the possible actions.
def xASv(YKHO) -> x1iM[str]: return list(YKHO.__endpoints.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eqLF(YKHO):\n return YKHO.actions", "def Q6sW(YKHO):\n return []", "def xASv(YKHO):\n return YKHO._action_list", "def CA6v(YKHO):\n return YKHO.actions", "def mdhT(YKHO) -> list:\n pass", "def xASv(YKHO) -> list:\n if YKHO.debug:\n print(f'AState.actions()')\n if not YKHO....
[ "0.8680097", "0.86252487", "0.8445734", "0.8274512", "0.8130275", "0.8070561", "0.806699", "0.79799896", "0.7903485", "0.7873099", "0.78637683", "0.7837835", "0.7837835", "0.7803666", "0.7782427", "0.7782427", "0.7782427", "0.7758712", "0.772838", "0.77083397", "0.7700402", ...
0.7183957
63
calc_gt_indices() calculate the ground truth indices and number of valid key points.
def deou(hAOE, ByRw): bGrB, T_D8 = ht2j.max(ByRw, 2) T_D8 += 1 FfSd = (hAOE[:, :, 2] > 0).long() T_D8 = T_D8 * FfSd _uQO = FfSd.sum(dim=1).float() return (T_D8, _uQO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LbDm(qvIa, c8oy, yfuA=0.3, gXNm=0.5):\n p9iZ = ZylS.map_fn(fn=lambda WKvO: acn0(WKvO, qvIa), elems=c8oy)\n print(f'bboxes: {c8oy.get_shape()}')\n print(f'anchors: {qvIa.get_shape()}')\n p9iZ = ZylS.transpose(p9iZ)\n print(f'ious: {p9iZ.get_shape()}\\n')\n IWtP = ZylS.math.argmax(p9iZ, axis=1)...
[ "0.5684506", "0.55978316", "0.55460405", "0.5478052", "0.54051334", "0.53852844", "0.536485", "0.53260666", "0.5311604", "0.5294909", "0.52915275", "0.5247399", "0.524711", "0.5245708", "0.52237314", "0.5219526", "0.5214035", "0.52100533", "0.5179353", "0.5147465", "0.5142866...
0.772527
0
NormalisationPerRow() normalise the 3rd dimension by calculating its sum and divide the vector in last dimension by the sum Arguments
def tJ4C(gZno): SGf8 = 1e-15 Tajd = gZno.sum(dim=2, keepdim=True) + SGf8 Tajd = Tajd.expand_as(gZno) gZno = gZno / Tajd return gZno
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U95B(WKvO):\n WKvO = WKvO / oyIN.sqrt(oyIN.sum(WKvO * WKvO, axis=-1, keepdims=True))\n return WKvO", "def U95B(WKvO):\n XsBg = oyIN.linalg.norm(WKvO, 2, axis=1).reshape(WKvO.shape[0], -1)\n WKvO = WKvO / XsBg\n return WKvO", "def NkkI(Ty9i):\n tpio = Ty9i.shape\n for YRbF in range(0, t...
[ "0.72876555", "0.7283241", "0.72747684", "0.7239905", "0.7136468", "0.71126693", "0.7072292", "0.7028774", "0.69391763", "0.68529695", "0.68088806", "0.67766", "0.67632353", "0.6671305", "0.6630437", "0.66156536", "0.6606181", "0.65843636", "0.65481806", "0.6511744", "0.64802...
0.62315196
43
Hide the resume view
def _DgC(YKHO): YKHO.resumeView.setFixedHeight(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u_pb(YKHO):\n YKHO.resumeView.setFixedHeight(DygZ.DEFAULT_HEIGHT)", "def XJps(YKHO):\n YKHO.course.quick_action(YKHO.id, 'show')", "def Afoa(YKHO):\n YKHO.visible = False", "def Afoa(YKHO):\n YKHO.course.quick_action(YKHO.id, 'hide')", "def Afoa(YKHO):\n YKHO.set_visible(False)", "def ...
[ "0.7254863", "0.718034", "0.698908", "0.69832003", "0.6839531", "0.6771533", "0.64633524", "0.6432491", "0.6345697", "0.6345156", "0.6345156", "0.63159746", "0.6315509", "0.6300532", "0.6265671", "0.6264543", "0.6251417", "0.6251417", "0.62217134", "0.6170736", "0.61248606", ...
0.8260272
0
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8040086", "0.79256725", "0.7923959", "0.78855336", "0.78781366", "0.7816429", "0.7766289", "0.7756418", "0.7744994", "0.77324396", "0.77295053", "0.77257586", "0.77034765", "0.7690202", "0.7690202", "0.7664886", "0.7657751", "0.7656609", "0.7656609", "0.7646568", "0.764656...
0.74497783
66
representation of a general quaternion must be (real,pure), since not all quaternions are rotations
def wHJl(YKHO): Aofo = 'Quaternion (%g (%g %g %g))' % (YKHO.real, YKHO.pure[0], YKHO.pure[1], YKHO.pure[2]) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pAVs(vexM):\n jzdc = vexM[0, 0]\n Fg_i = vexM[0, 1]\n Z9rn = vexM[0, 2]\n Csk6 = vexM[0, 3]\n GrNE = jzdc * oyIN.identity(4)\n ZyKO = Fg_i * oyIN.array([[0, 1, 0, 0], [-1, 0, 0, 0], [0, 0, 0, -1], [0, 0, 1, 0]])\n keQN = Z9rn * oyIN.array([[0, 0, 1, 0], [0, 0, 0, 1], [-1, 0, 0, 0], [0, -1,...
[ "0.75282234", "0.708969", "0.69521374", "0.68551564", "0.6827433", "0.67995447", "0.67013186", "0.66887194", "0.6660648", "0.66585463", "0.66528195", "0.6652248", "0.6587295", "0.65285206", "0.65136635", "0.6505146", "0.650103", "0.648099", "0.6432907", "0.64178133", "0.64022...
0.6788703
6
Representation of a unit quaternion is as rx,ry,rz,theta, so we can see what it does
def wHJl(YKHO): if YKHO.real != 1.0: q7In = XTiz.arccos(YKHO.real) YylR = 360 * q7In / XTiz.pi UqpO = YKHO.pure / XTiz.sin(q7In) else: YylR = 0.0 UqpO = YKHO.pure return 'Unit Quaternion %7.4f %7.4f %7.4f %7.3f' % (UqpO[0], UqpO[1], UqpO[2], YylR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slpS(YKHO, mWFP, vexM):\n A3Vt = YKHO.R(name=mWFP, q=vexM)\n _Jov = BmLB.unit_vector(BmLB.quaternion_from_matrix(matrix=A3Vt))\n return _Jov", "def DQ7T(YKHO, A3Vt):\n A2lD = ht2j.diagonal(A3Vt, dim1=-2, dim2=-1)\n a_8u, DpsT, X3WD = A2lD.unbind(-1)\n etQF = 0.5 * ht2j.sqrt(ht2j.abs(1 + ht2...
[ "0.74589664", "0.7435746", "0.7312789", "0.7306613", "0.713349", "0.7126787", "0.7064956", "0.7050946", "0.6971781", "0.69579864", "0.6950597", "0.690259", "0.6872728", "0.68358636", "0.68234634", "0.67865634", "0.674581", "0.6739161", "0.6731305", "0.67069983", "0.666723", ...
0.6922068
11
This extracts the smiles of the molecule.
def bhsv(wo0_): wi3r = 'hunterdb:Structure/hunterdb:CanonicalSmiles/child::text()' return wo0_.xpath(wi3r, namespaces=Fkim)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WoMo(YKHO) -> x1iM[str]:\n return [Csk6.smiles for Csk6 in YKHO.data]", "def WoMo(YKHO) -> x1iM[str]:\n return [None for YRbF in range(len(YKHO.data))]", "def LLi2(JSOp):\n return wU1F.MolToSmiles(JSOp)", "def LLi2(JSOp):\n mnjh = wU1F.MolToSmiles(JSOp)\n return mnjh", "def mnfO(YKHO, Ue...
[ "0.7677816", "0.7067173", "0.6877831", "0.6830037", "0.6730977", "0.6550506", "0.6440925", "0.64209", "0.63925207", "0.62997323", "0.62986434", "0.618333", "0.6166588", "0.6136921", "0.6110032", "0.6109394", "0.61065704", "0.6073837", "0.606387", "0.6054457", "0.5983434", "...
0.7624828
1
Return one Tensor pair of (input id sequence, punc id sequence).
def OP2O(YKHO, d6pt): RiQw = YKHO.txt_seqs[d6pt] q3qe, ncZ5 = YKHO._preprocess(RiQw) return (q3qe, ncZ5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eWew(xJvR, quSp, Ep8u):\n VoOj = ZylS.constant(quSp['<GO>'], shape=(Ep8u, 1), dtype=ZylS.int32)\n GhNk = ZylS.concat([VoOj, xJvR[:, :-1]], 1)\n return GhNk", "def nN7Z(VuJa: tf.Operation) -> ZylS.Tensor:\n assert VuJa.type == 'AddV2'\n H2v5 = VuJa.inputs[0].op\n assert H2v5.type == 'AddV2'\...
[ "0.578625", "0.577629", "0.5771879", "0.56676894", "0.56326747", "0.56156164", "0.5595276", "0.55860853", "0.5577225", "0.5542905", "0.5530276", "0.55280465", "0.5498169", "0.5481612", "0.546571", "0.5437932", "0.5411924", "0.54079986", "0.53682584", "0.5357858", "0.53449494"...
0.0
-1
Return data loader for custom dataset.
def rgP6(XvcI, WLIg, _ePE, Ep8u=1, lM6R=False, I7Gy=0): __n6 = dF4i(XvcI, WLIg, _ePE) Z_Fl = QAcz(__n6, batch_size=Ep8u, drop_last=lM6R) QxcP = D5VZ() zQKy = pVAc(__n6, batch_sampler=Z_Fl, collate_fn=QxcP, num_workers=I7Gy) return zQKy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v30Z(YKHO) -> pVAc:\n hxDW = pVAc(YKHO.dataset, batch_size=1)\n return hxDW", "def K1Op(YKHO) -> pVAc:\n return YKHO._custom_data_loader()", "def M_QP(YKHO) -> pVAc:\n return YKHO._custom_data_loader()", "def JyoU(YKHO):\n return pVAc", "def JWbQ(mWFP: str, **B2fa) -> zQKy.DataLoader:\n ...
[ "0.86546284", "0.82551056", "0.7985637", "0.7751636", "0.7638236", "0.7620933", "0.747159", "0.74482036", "0.738281", "0.7363889", "0.7332778", "0.7288082", "0.72861975", "0.7284339", "0.72446615", "0.72166497", "0.71842426", "0.7139064", "0.7135292", "0.7133612", "0.71309483...
0.0
-1
Abstract method. Returns a prettified string representation of the configuration dictionary.
def pvxz(YKHO): return YKHO._config_dict
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n cKY_ = 'Configurations\\n'\n cKY_ += CgYo.pformat(YKHO.__dict__)\n return cKY_", "def wHJl(YKHO) -> str:\n return qQXR.dumps(YKHO._config)", "def wHJl(YKHO) -> str:\n zr_R = jth9.deepcopy(YKHO)\n vIwR = ''\n for G1Hx in zr_R:\n Ty9i = zr_R[G1Hx]\n if G1Hx ==...
[ "0.82789963", "0.80186653", "0.7807075", "0.7789988", "0.76330763", "0.7528295", "0.73643875", "0.7358356", "0.73345804", "0.73345804", "0.7317116", "0.7219879", "0.71073157", "0.6998035", "0.6989008", "0.6980547", "0.6965279", "0.6909353", "0.68794554", "0.68794554", "0.6858...
0.8623259
0
Hash a password for storing.
def qzFd(YKHO, jTXt): NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii') mNdd = HBct.pbkdf2_hmac('sha256', jTXt.encode('utf-8'), NTfD, 100000) mNdd = MRxC.hexlify(mNdd) return (NTfD + mNdd).decode('ascii')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO):\n YKHO.__password = YKHO.str_to_hash(YKHO.__password)", "def qzFd(YKHO, jTXt):\n YKHO.password = jf1V.encrypt(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)", "def wnut(jTXt, NTzC='sha256'):\n return vT87(jTXt, NTzC)", "def GPjS(YKHO, jTXt):\n hmgX = B8ni.ha...
[ "0.847967", "0.8346137", "0.82644516", "0.80417943", "0.7999399", "0.7971465", "0.7947968", "0.7919728", "0.78821445", "0.78162515", "0.77545875", "0.77411246", "0.766462", "0.76507545", "0.76267356", "0.75862885", "0.75638247", "0.755944", "0.7549114", "0.75445807", "0.75196...
0.7979167
5
Split by rolling a window. `kwargs` are passed to `split_ranges_into_sets`.
def lpha(YKHO, EcVT: tp.ArrayLike, exwG: tp.Optional[int]=None, WEZm: tp.Optional[float]=None, GSaK: int=1, **B2fa) -> nb3F: EcVT = iLVI(EcVT) if isinstance(EcVT, (rLdf.Series, rLdf.DataFrame)): d6pt = EcVT.index else: d6pt = rLdf.Index(oyIN.arange(EcVT.shape[0])) if WEZm is None and exw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(YKHO, EcVT: tp.ArrayLike, exwG: tp.Optional[int]=None, GSaK: int=1, **B2fa) -> nb3F:\n EcVT = iLVI(EcVT)\n if isinstance(EcVT, (rLdf.Series, rLdf.DataFrame)):\n d6pt = EcVT.index\n else:\n d6pt = rLdf.Index(oyIN.arange(EcVT.shape[0]))\n MQzh = oyIN.full(len(d6pt), 0)\n SosU = ...
[ "0.63268083", "0.6086343", "0.59990233", "0.5940898", "0.5847125", "0.571639", "0.57056844", "0.568201", "0.56758213", "0.56348795", "0.5625457", "0.5601168", "0.5541704", "0.5537056", "0.5526042", "0.54844564", "0.54844564", "0.5471997", "0.5464775", "0.5442314", "0.543939",...
0.68475413
0
Return interactors of the target.
def g2rz(YKHO) -> rLdf.DataFrame: Pe9W = __ap WfCS = ['target_species', 'pmid', 'pmc', 'interactor_type', 'interactor_name', 'interactor_bel', 'relation_type', 'target_bel', 'target_type', 'target_symbol', 'pmod_type'] if YKHO.node_type != 'protein' or not YKHO.pmods: Pe9W = Pe9W.replace('MATCH {{cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBEE(YKHO):\n IcG0 = [UvRo.target_actor for UvRo in YKHO.maddpg_agent]\n return IcG0", "def FBEE(YKHO):\n IcG0 = [UvRo.target_actor for UvRo in YKHO.maddpg_agent]\n return IcG0", "def FBEE(YKHO):\n IcG0 = [UvRo.target_actor for UvRo in YKHO.maddpg_agent]\n return IcG0", "def FBEE(YKHO):...
[ "0.66492236", "0.66492236", "0.66492236", "0.66492236", "0.64679575", "0.6416261", "0.64028364", "0.63600886", "0.62524873", "0.6250397", "0.6104982", "0.60565275", "0.60318047", "0.60318047", "0.60318047", "0.60318047", "0.59799725", "0.5966184", "0.5960836", "0.58953017", "...
0.0
-1
Constructor, sets first ping received flag and config to be used
def FIMM(YKHO, hash, GPtr, yR_P): YKHO.module = yR_P YKHO.expr = ZbWC.compile('!~.*?@') YKHO.config = GPtr YKHO.firstPing = True YKHO.hash = hash
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._ping_challenge = None", "def FIMM(YKHO):\n YKHO.config_parser = kwpV.RawConfigParser(allow_no_value=False)\n YKHO.destination_address = None\n YKHO.protocol = None\n YKHO.source_address = None\n YKHO.sourcemac = None\n YKHO.destmac = None\n YKHO.sourceiface = None\...
[ "0.762703", "0.6609856", "0.6564644", "0.63944244", "0.6379821", "0.6308685", "0.6234198", "0.623405", "0.6190138", "0.61761916", "0.6106787", "0.6070441", "0.60218185", "0.598811", "0.59872586", "0.59637725", "0.5960948", "0.5960948", "0.5958446", "0.59367496", "0.5936361", ...
0.62648666
6
Questions with a pub_date in the past should be displayed on the index page
def lrPw(YKHO): II0Q(question_text='Past Question', days=-30) geh0 = YKHO.client.get(gxEw('polls:index')) YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past Question>'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lrPw(YKHO):\n II0Q(question_text='Past question', days=-30)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question>'])", "def lrPw(YKHO):\n II0Q(question_text='Past question.', days=-30)\n geh0 = YKHO.client.get...
[ "0.70870703", "0.7034064", "0.69834465", "0.6864377", "0.68486047", "0.68263906", "0.6792561", "0.6784673", "0.6783765", "0.67822576", "0.6765928", "0.6747979", "0.6739287", "0.6703457", "0.670249", "0.66761106", "0.6675829", "0.6672586", "0.66490483", "0.6646943", "0.6644324...
0.6966493
3
Questions with a future pub_date shouldn't be displayed in the index page
def t9CC(YKHO): II0Q(question_text='Future question', days=30) geh0 = YKHO.client.get(gxEw('polls:index')) YKHO.assertContains(geh0, 'No polls are available.') YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kiTB(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=30)\n vS5o = Y4Gy(pub_date=ITS7)\n YKHO.assertIs(vS5o.was_published_recently(), False)", "def t9CC(YKHO):\n II0Q(question_text='Future question', days=30)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertContains(geh0, 'No poll...
[ "0.69415134", "0.68490076", "0.68221325", "0.68197405", "0.6772741", "0.6745777", "0.6740684", "0.67356384", "0.67334276", "0.6724978", "0.6719983", "0.67018306", "0.66874415", "0.66812646", "0.6669319", "0.66293985", "0.66293985", "0.6617807", "0.66051733", "0.6604489", "0.6...
0.68925947
1
Even if both past and future questions exist, only past ones shall be displayed.
def JcGs(YKHO): II0Q(question_text='Past Question', days=-30) II0Q(question_text='Future Question', days=30) geh0 = YKHO.client.get(gxEw('polls:index')) YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past Question>'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Idnn(YKHO):\n II0Q(question_text='Future question', days=30)\n II0Q(question_text='Past question', days=-30)\n Ylbp = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertEqual(Ylbp.status_code, 200)\n YKHO.assertQuerysetEqual(Ylbp.context['latest_questions'], ['<Question: Past question>'])", "de...
[ "0.7484344", "0.736532", "0.7347654", "0.7254999", "0.72502", "0.7237922", "0.7201963", "0.7196952", "0.7187767", "0.7140844", "0.71364677", "0.7132343", "0.7118552", "0.7107464", "0.7082358", "0.7078148", "0.70745736", "0.7053211", "0.70314485", "0.70173854", "0.701232", "...
0.7181047
9
The detail view of a question with a pub_date in the future should return 404 not found.
def MfRe(YKHO): vS5o = II0Q(question_text='Future question', days=5) bD7m = gxEw('polls:detail', args=(vS5o.id,)) geh0 = YKHO.client.get(bD7m) YKHO.assertEqual(geh0.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MfRe(YKHO):\n vS5o = II0Q(question_text='Future question.', days=5)\n geh0 = YKHO.client.get(gxEw('polls:detail', args=(vS5o.id,)))\n YKHO.assertEqual(geh0.status_code, 404)", "def MfRe(YKHO):\n vS5o = II0Q(question_text='Future question', days=5)\n geh0 = YKHO.client.get(gxEw('polls:detail', ...
[ "0.7610992", "0.75693536", "0.74730915", "0.69882387", "0.69627565", "0.6937845", "0.6925003", "0.6890749", "0.68575734", "0.6821121", "0.67561996", "0.6741725", "0.66858286", "0.6666086", "0.6653046", "0.6648161", "0.6618732", "0.65929693", "0.6579955", "0.6577897", "0.65586...
0.7540407
2
The detail view of a question with a pub_date in the past should be displayed in the question's text
def AVfH(YKHO): g3ow = II0Q(question_text='Past question', days=-5) bD7m = gxEw('polls:detail', args=(g3ow.id,)) geh0 = YKHO.client.get(bD7m) YKHO.assertContains(geh0, g3ow.question_text)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AVfH(YKHO):\n g3ow = II0Q(question_text='Past Question.', days=-5)\n geh0 = YKHO.client.get(gxEw('polls:detail', args=(g3ow.id,)))\n YKHO.assertContains(geh0, g3ow.question_text, status_code=200)", "def AVfH(YKHO):\n g3ow = II0Q(question_text='Past question', days=-30)\n geh0 = YKHO.client.get...
[ "0.69777507", "0.69494456", "0.68990624", "0.67645353", "0.6525667", "0.6413893", "0.6395725", "0.6381168", "0.63374865", "0.62782615", "0.6261589", "0.6248936", "0.61466235", "0.6123659", "0.61225396", "0.608083", "0.6067463", "0.6064017", "0.6009305", "0.6008894", "0.599337...
0.6971042
1
The set of arguments for constructing a Acl resource.
def FIMM(Ro_8, *, mWFP: Optional[pulumi.Input[str]]=None, teP4: Optional[pulumi.Input[str]]=None, dJ1p: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None, hsWJ: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None): if mWFP is not None: qe4Y.set(Ro_8, 'name', mWFP) if teP4 is not None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: Optional[AclArgs]=None, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, qIxc: AclRuleArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(YKHO, Eorv, *qIxc):\n YKHO.args = list(qIxc)\n YKHO.flags = U8Lr()\n YKHO.ad...
[ "0.6898065", "0.6617685", "0.66099405", "0.6557983", "0.6517685", "0.6412482", "0.6362176", "0.61482257", "0.6030966", "0.5985059", "0.5981654", "0.59723634", "0.59723634", "0.5967805", "0.5966265", "0.59586465", "0.5954442", "0.59526473", "0.59320873", "0.5927983", "0.591299...
0.0
-1
Creates a unique name beginning with the specified prefix. Conflicts with `name`.
def teP4(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name_prefix')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HvHm(y0cW):\n ZI14 = TJgT()[:8]\n return '{0}_{1}'.format(y0cW, ZI14)", "def Hjko(YKHO, mWFP):\n if ':' in mWFP:\n return mWFP\n return YKHO.prefix + ':' + mWFP", "def wzWM(YKHO, mWFP: str) -> str:\n PXRd: str = mWFP.split('.', 1)[0]\n if YKHO.prefix == 'auto':\n return f'-{...
[ "0.8195386", "0.7412632", "0.7311378", "0.7266671", "0.72004753", "0.7194196", "0.71685916", "0.704199", "0.7006226", "0.69408906", "0.6851571", "0.6812473", "0.6740329", "0.6735273", "0.6682095", "0.6674863", "0.66349596", "0.66146654", "0.660699", "0.65408987", "0.6521067",...
0.5849593
92
A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel.
def dJ1p(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) ->...
[ "0.6417238", "0.6417238", "0.6413433", "0.6413433", "0.6413433", "0.6413433", "0.62760407", "0.62002236", "0.61427516", "0.6099873", "0.6085585", "0.60677147", "0.5971887", "0.5957169", "0.58641315", "0.58444744", "0.58444744", "0.58444744", "0.58444744", "0.58444744", "0.584...
0.56866676
57
The ARN of the ACL.
def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def h...
[ "0.7463274", "0.7463274", "0.7463274", "0.7463274", "0.7463274", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "0.7295445", "...
0.68942505
46
Creates a unique name beginning with the specified prefix. Conflicts with `name`.
def teP4(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name_prefix')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HvHm(y0cW):\n ZI14 = TJgT()[:8]\n return '{0}_{1}'.format(y0cW, ZI14)", "def Hjko(YKHO, mWFP):\n if ':' in mWFP:\n return mWFP\n return YKHO.prefix + ':' + mWFP", "def wzWM(YKHO, mWFP: str) -> str:\n PXRd: str = mWFP.split('.', 1)[0]\n if YKHO.prefix == 'auto':\n return f'-{...
[ "0.8195386", "0.7412632", "0.7311378", "0.7266671", "0.72004753", "0.7194196", "0.71685916", "0.704199", "0.7006226", "0.69408906", "0.6851571", "0.6812473", "0.6740329", "0.6735273", "0.6682095", "0.6674863", "0.66349596", "0.66146654", "0.660699", "0.65408987", "0.6521067",...
0.5849593
91
A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel.
def dJ1p(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) ->...
[ "0.6416844", "0.6416844", "0.64130056", "0.64130056", "0.64130056", "0.64130056", "0.627534", "0.6200736", "0.6142195", "0.60977936", "0.60851777", "0.6068165", "0.59709346", "0.5958385", "0.5864118", "0.58440715", "0.58440715", "0.58440715", "0.58440715", "0.58440715", "0.58...
0.56862754
54
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
def TQje(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'tags_all')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) ->...
[ "0.7443346", "0.7443346", "0.74376667", "0.74376667", "0.74376667", "0.74376667", "0.715855", "0.70964247", "0.70819575", "0.70573276", "0.69309324", "0.69174427", "0.6825906", "0.6798232", "0.6753831", "0.6701688", "0.6631699", "0.6631699", "0.6631699", "0.6631699", "0.66316...
0.0
-1
Get an existing Acl 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, hMqs: Optional[pulumi.Input[str]]=None, TPKe: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, teP4: Optional[pulumi.Input[str]]=None, dJ1p: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None, TQje...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, ul9_: Optional[pulumi.Input[str]]=None, qDzk: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, vdqp: Optional[pulumi.Input[str]]=None, VPRs: Optional[pulumi.Input...
[ "0.6150456", "0.5936474", "0.5910118", "0.58701456", "0.58295697", "0.58181906", "0.579276", "0.57857597", "0.5749239", "0.57019305", "0.56827664", "0.56789464", "0.56683517", "0.5665181", "0.5643875", "0.56394255", "0.5618664", "0.5616628", "0.5588353", "0.55847317", "0.5575...
0.6139589
1
The ARN of the ACL.
def hMqs(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def A...
[ "0.7463274", "0.7463274", "0.7463274", "0.7463274", "0.7463274", "0.7123396", "0.709543", "0.709543", "0.7067154", "0.7067154", "0.7067154", "0.6921482", "0.68942505", "0.68942505", "0.68942505", "0.68942505", "0.68942505", "0.68942505", "0.68942505", "0.68942505", "0.6894250...
0.7295445
17
Creates a unique name beginning with the specified prefix. Conflicts with `name`.
def teP4(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'name_prefix')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HvHm(y0cW):\n ZI14 = TJgT()[:8]\n return '{0}_{1}'.format(y0cW, ZI14)", "def Hjko(YKHO, mWFP):\n if ':' in mWFP:\n return mWFP\n return YKHO.prefix + ':' + mWFP", "def wzWM(YKHO, mWFP: str) -> str:\n PXRd: str = mWFP.split('.', 1)[0]\n if YKHO.prefix == 'auto':\n return f'-{...
[ "0.8195386", "0.7412632", "0.7311378", "0.7266671", "0.72004753", "0.7194196", "0.71685916", "0.704199", "0.7006226", "0.69408906", "0.6851571", "0.6812473", "0.6740329", "0.6735273", "0.6682095", "0.6674863", "0.66349596", "0.66146654", "0.660699", "0.65408987", "0.6521067",...
0.5883099
75
A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel.
def dJ1p(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]: return qe4Y.get(YKHO, 'tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) ->...
[ "0.64191085", "0.64191085", "0.6415434", "0.6415434", "0.6415434", "0.6415434", "0.6277808", "0.6201281", "0.6144052", "0.6099742", "0.6086857", "0.6069395", "0.5971659", "0.59599036", "0.5865412", "0.58455414", "0.58455414", "0.58455414", "0.58455414", "0.58455414", "0.58455...
0.5664481
93
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
def TQje(YKHO) -> qe4Y.Output[GySg[str, str]]: return qe4Y.get(YKHO, 'tags_all')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) ->...
[ "0.7442922", "0.7442922", "0.74372643", "0.74372643", "0.74372643", "0.74372643", "0.71595305", "0.7096487", "0.70816255", "0.70577693", "0.69300693", "0.6916472", "0.68235135", "0.67972314", "0.67532057", "0.6701463", "0.66302735", "0.66302735", "0.66302735", "0.66302735", "...
0.64104486
57
Add the error object to the Update Request and mark it as "Failed"
def ZRyq(YKHO, P1dF: str): YKHO.update_request.error = P1dF YKHO.set_as_failed()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RsIT(YKHO):\n YKHO.require_item()\n bD7m = '{0}/mark_failed'.format(YKHO.get_url())\n QePW = Xqgu.Request('PUT', bD7m)\n return (QePW, gpan.parse_empty)", "def RsIT(YKHO):\n YKHO.status = YKHO.FAILED\n YKHO.traceback = YKHO._format_traceback()\n YKHO.save(update_fields={'status', 'traceb...
[ "0.74177074", "0.66984576", "0.66843605", "0.6635854", "0.6577132", "0.6569868", "0.65557945", "0.6499608", "0.6499608", "0.6488117", "0.6487509", "0.6472668", "0.6449274", "0.6449274", "0.6439488", "0.6390878", "0.63848215", "0.63698006", "0.6348278", "0.63382226", "0.633822...
0.86556023
0
Deserialize a buffer protocol compatible object into a pandas DataFrame.
def vAyG(LaVg, *, K6z4=True): sOfN = Xugt.BufferReader(LaVg) with Xugt.RecordBatchStreamReader(sOfN) as N5Pj: tyNF = N5Pj.read_all() return tyNF.to_pandas(use_threads=K6z4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KFWc(YKHO, YEnM, d6pt=True):\n return JQkC(vVgG(YEnM, index=d6pt))", "def vqp6(YKHO, dyXu):\n return rLdf.read_json(dyXu, orient='split')", "def Umjo(Sy2n, ZWCE=None):\n if ZWCE is None:\n try:\n ZWCE = Sy2n.names\n except AttributeError:\n ZWCE = None if len(Sy...
[ "0.59791774", "0.588964", "0.5828294", "0.5801973", "0.5762243", "0.5705677", "0.5665013", "0.56443995", "0.5643365", "0.5560033", "0.5552342", "0.55324054", "0.5518481", "0.55175304", "0.55161595", "0.55115664", "0.54450506", "0.5433118", "0.54165363", "0.54129523", "0.53707...
0.7827326
0
Sets the loglevel of the current SSH connection. The log level of the current connection is set. If no connection exists yet, this loglevel is used as default for connections created in the future. In both cases the old log level is returned, either the log level of the current connection or the previous default loglev...
def tQCl(YKHO, NX0m): if YKHO._current == None: gv2B = YKHO._loglevel YKHO._loglevel = NX0m return gv2B return YKHO._current.set_default_log_level(NX0m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ebvu(YKHO, BWXx: t.Union[str, int]='debug') -> None:\n if YKHO.LOG:\n nfqd.set_log_level(obj=YKHO.LOG, level=BWXx)", "def aQ22(YKHO, ABDL: str) -> None:\n YKHO.logger.setLevel(YKHO._logging.log_levels[ABDL])\n YKHO.err.setLevel(YKHO._logging.log_levels[ABDL])\n for RKD7 in YKHO.user_logs:\...
[ "0.67811686", "0.6350295", "0.6276066", "0.62709147", "0.62081325", "0.6207227", "0.620008", "0.6168651", "0.61519593", "0.6116851", "0.6105786", "0.6074723", "0.6071603", "0.6067615", "0.6064632", "0.60624325", "0.6042613", "0.5962583", "0.5941709", "0.59387106", "0.5917979"...
0.77609706
0
Returns a reward to the agent.
def xyVK(YKHO, gdyb): if8t = oyIN.any(YKHO.image < 100, axis=-1).astype(int) f0tD = oyIN.sum(if8t * YKHO.mask) vOGg = f0tD / oyIN.sum(YKHO.mask) return vOGg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO) -> XYvR:\n return YKHO.__reward", "def vOGg(YKHO):\n return YKHO._reward", "def xyVK(YKHO):\n vjyh = YKHO.state\n vOGg = vjyh\n return vOGg", "def xyVK(YKHO):\n vOGg, YKHO.reward = (YKHO.reward, 0)\n return vOGg", "def xyVK(YKHO, _ins):\n return YKHO.reward_function(_...
[ "0.8227387", "0.8064022", "0.8047813", "0.782541", "0.7821733", "0.7812273", "0.7783558", "0.77331483", "0.7732694", "0.7560724", "0.75542104", "0.7531912", "0.75232726", "0.75079393", "0.74293023", "0.73427373", "0.7333967", "0.73134005", "0.72362983", "0.72253823", "0.71495...
0.0
-1
Create a new empty JobManifest with the given job ID.
def eLpg(Emd4, rjee: str) -> 'JobManifest': wzkt = qcWV.datetime.now(qcWV.timezone.utc) return sZ01(creation_time=wzkt, job_id=rjee, orbit_ids=[], task_ids=[])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gfTB(WE7e: Bucket, rjee: str) -> sZ01:\n pmON = f'thor_jobs/v1/job-{rjee}/manifest.json'\n rIkN = WE7e.blob(pmON).download_as_string()\n return sZ01.from_str(rIkN)", "def WDqX(YKHO, bqx1: Hashable) -> eA6S:\n v9aQ = YKHO._redis.incr(f'search:{bqx1}.job_id_counter', amount=1) - 1\n v9aQ = f'{v9...
[ "0.6710013", "0.5658664", "0.55456865", "0.55351293", "0.54609525", "0.5450734", "0.5431339", "0.5429583", "0.5363874", "0.5361948", "0.53567654", "0.5312667", "0.5308671", "0.53079253", "0.5307272", "0.5305698", "0.52920604", "0.5238305", "0.5213917", "0.52121687", "0.519263...
0.88597673
0
Serialize the JobManifest as a string. Returns str JSON serialization of the JobManifest.
def gTzM(YKHO) -> str: return qQXR.dumps({'job_id': YKHO.job_id, 'creation_time': YKHO.creation_time.isoformat(), 'orbit_ids': YKHO.orbit_ids, 'task_ids': YKHO.task_ids})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oD7C(YKHO):\n Gij4 = {H5ew: YKHO.__dict__[H5ew] for H5ew in YKHO.JSON_KEYS if H5ew in YKHO.__dict__}\n try:\n cZgf = qQXR.dumps(Gij4, separators=(',', ':'))\n except TypeError as e:\n raise TypeError('Job objects need to be JSON-serializable: {}'.format(str(tTpl)))\n return cZgf", "...
[ "0.72537065", "0.70503193", "0.6507869", "0.64236027", "0.61140454", "0.5988725", "0.5970232", "0.5952248", "0.58835006", "0.58835006", "0.586589", "0.5824706", "0.5794988", "0.57862854", "0.5769015", "0.575821", "0.5756795", "0.5756795", "0.5756795", "0.5756795", "0.5756795"...
0.66118735
2
Remove a document from Elasticsearch.
def kSdD(YKHO, yZn6, _63S, E3oo): d6pt, WOrs = YKHO._index_and_mapping(_63S) XeOP = {'_op_type': 'delete', '_index': d6pt, '_type': WOrs, '_id': P6bq(yZn6)} OlCK = {'_op_type': 'delete', '_index': YKHO.meta_index_name, '_type': YKHO.meta_type, '_id': P6bq(yZn6)} YKHO.index(XeOP, OlCK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gc_R(YEnM):\n d6pt = YEnM.get_index_name()\n WOrs = YEnM.get_document_type()\n try:\n n72w.delete(index=d6pt, doc_type=WOrs, id=YEnM.pk)\n except mgaz:\n raise UsdG(YEnM.get_index_name(), YEnM.pk)", "async def remove_doc(YKHO, *qIxc, **B2fa):\n pass", "def B_ba(YKHO, Bpcu):\n ...
[ "0.75229126", "0.7490367", "0.7348737", "0.7295783", "0.72651434", "0.7017016", "0.7016369", "0.6944938", "0.6782602", "0.6767749", "0.6669089", "0.6564615", "0.64994425", "0.6441128", "0.64276326", "0.6373746", "0.63664985", "0.6322107", "0.62990564", "0.62715405", "0.624909...
0.7141973
5
Gets the shape of the input excluding the batch size
def mKSq(g4y1): return tuple(g4y1.size())[1:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iX1L(YKHO):\n return YKHO.network.inputs[YKHO.input_blob].shape", "def EsUr(YKHO):\n return YKHO.input_shape", "def i2AO(YKHO):\n return YKHO._engine.get_input_tensor_shape()", "def GhuM(YKHO):\n return YKHO._ipt_shape", "def iX1L(YKHO):\n return YKHO.__x.shape", "def GhuM(YKHO) -> ht2...
[ "0.8349712", "0.8239117", "0.82321775", "0.8191806", "0.8123994", "0.8031009", "0.7984709", "0.7984709", "0.7984709", "0.78609776", "0.76713836", "0.76104164", "0.75373757", "0.75114393", "0.75114393", "0.75114393", "0.74859786", "0.74281955", "0.7419961", "0.7372976", "0.736...
0.7454735
17
Creates a generator by slicing ``data`` into chunks of ``block_size``. >>> data = range(10) >>> list(block_splitter(data, 2)) [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]] If ``data`` cannot be evenly divided by ``block_size``, the last block will
def XjZg(nPrm, Z1S6): LaVg = [] for YRbF, V52X in enumerate(nPrm): LaVg.append(V52X) if len(LaVg) == Z1S6: yield LaVg LaVg = [] if LaVg: yield LaVg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gT8I(wOb_, Z1S6=eyBj):\n return [wOb_[YRbF:YRbF + eyBj] for YRbF in range(0, len(wOb_), eyBj)]", "def fZRX(nPrm, Z1S6):\n nPrm, Z1S6 = v0CM(nPrm, Z1S6)\n if oyIN.any(oyIN.mod(nPrm.shape, Z1S6) != 0):\n raise ValueError('Each dimension of block_size must divide evenly into the corresponding di...
[ "0.73116237", "0.6969292", "0.6698882", "0.62618506", "0.61792463", "0.61741424", "0.61176544", "0.61053765", "0.60622555", "0.6040073", "0.5969064", "0.5956016", "0.5941752", "0.59379977", "0.59155315", "0.5913359", "0.5906953", "0.5902095", "0.58966833", "0.58927494", "0.58...
0.83897716
0
Return first n items of the iterable as a list Copied shamelessly from
def _iMd(exwG, OxJJ): return list(Hs6x.islice(OxJJ, exwG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iMd(OxJJ, exwG):\n return list(Hs6x.islice(OxJJ, exwG))", "def _iMd(exwG, OxJJ):\n return list(uOgj(OxJJ, exwG))", "def _iMd(exwG, OxJJ):\n return list(uOgj(OxJJ, exwG))", "def _iMd(mLGw, OxJJ):\n return list(uOgj(OxJJ, mLGw))", "def _iMd(YKHO, exwG):\n return x1iM(uehb(YKHO, exwG))", ...
[ "0.8396118", "0.83117026", "0.83117026", "0.7947794", "0.776932", "0.7457759", "0.7400993", "0.7198617", "0.7121794", "0.70964605", "0.7092736", "0.70698583", "0.70642185", "0.7059872", "0.70538545", "0.70316726", "0.6986508", "0.6848235", "0.68407524", "0.68373364", "0.67585...
0.8330421
2
On Windows, some default encodings are not provided by Python, while they are always available as "mbcs" in each locale. Make them usable by aliasing to "mbcs" in such a case.
def Mzvm(): if HwRy.platform == 'win32': import locale, codecs mktQ = locale.getdefaultlocale()[1] if mktQ.startswith('cp'): try: codecs.lookup(mktQ) except LookupError: import encodings encodings._cache[mktQ] = encoding...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W6Qk():\n return HwRy.getfilesystemencoding()", "def FKCb():\n DuqQ, tZ2K = NCqB.getlocale()\n if tZ2K != 'UTF-8':\n NCqB.setlocale(NCqB.LC_CTYPE, (DuqQ, 'UTF-8'))", "def EcX4():\n return ''", "def S9Af():\n return ''", "def KRnz():\n try:\n tZ2K = NCqB.getdefaultlocale(...
[ "0.6456849", "0.63695854", "0.62721294", "0.626052", "0.62339544", "0.62339544", "0.6121814", "0.60187846", "0.6000281", "0.5972629", "0.5930318", "0.5923736", "0.5882366", "0.5835465", "0.5723865", "0.56501776", "0.5612613", "0.56073093", "0.55557543", "0.55343115", "0.55147...
0.8484207
0
Return true if the object is a module.
def ctWX(object): return isinstance(object, SnBA.ModuleType)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PCbE(YEnM):\n return type(YEnM) is SnBA.ModuleType", "def foiy(YKHO, mWFP):\n return Hy7s.path.isfile(YKHO.modulePath(mWFP))", "def ITjz(YKHO, YEnM):\n if not isinstance(YEnM, BaseException):\n try:\n Z9rn = YEnM.__class__\n gY90 = tq_1.getsourcefile(Z9rn)\n exc...
[ "0.90503365", "0.8028993", "0.7713271", "0.75602067", "0.72879297", "0.72090334", "0.71414125", "0.7023594", "0.67919755", "0.67801344", "0.67676246", "0.66763747", "0.66438377", "0.66348135", "0.6616767", "0.66113514", "0.65961194", "0.6527026", "0.65172386", "0.6506568", "0...
0.8945327
1
Return true if the object is a class.
def as9g(object): return isinstance(object, (type, SnBA.ClassType))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def as9g(object):\n if not tq_1.isclass(object):\n return False\n if MP1F(object):\n return False\n return type not in tq_1.getmro(object)", "def s3SO(Emd4: Class) -> bool:\n pass", "def Bk6c(YEnM, J9Xy):\n if isinstance(YEnM, J9Xy) is True:\n return True\n else:\n ...
[ "0.8689777", "0.847604", "0.8062617", "0.80282146", "0.80282146", "0.8018681", "0.80158186", "0.79666317", "0.79666317", "0.79666317", "0.79666317", "0.79666317", "0.79666317", "0.794599", "0.7932038", "0.79265285", "0.7922377", "0.78950083", "0.7596183", "0.75640416", "0.736...
0.872781
0
Return true if the object is a userdefined function.
def CKBl(object): return isinstance(object, SnBA.FunctionType)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MP1F(object):\n return isinstance(object, SnBA.BuiltinFunctionType)", "def rVKq(YEnM):\n if type(YEnM) is SnBA.FunctionType:\n return True\n if not xKy2(YEnM):\n return False\n if not hasattr(YEnM, '__class__'):\n return False\n yR_P = YEnM.__class__.__module__\n mWFP =...
[ "0.78222114", "0.78041106", "0.7623925", "0.7501091", "0.74632204", "0.7428319", "0.7406653", "0.7363749", "0.7339153", "0.72277546", "0.71474063", "0.7087786", "0.7007423", "0.6993981", "0.6977328", "0.6902159", "0.6788628", "0.6785741", "0.67802554", "0.67642415", "0.665850...
0.78785634
0
Return true if the object is a userdefined generator function. Generator function objects provides same attributes as functions. See help(isfunction) for attributes listing.
def wGHh(object): return bool((CKBl(object) or DfO0(object)) and object.func_code.co_flags & srjS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CKBl(object):\n return isinstance(object, SnBA.FunctionType)", "def rVKq(YEnM):\n if type(YEnM) is SnBA.FunctionType:\n return True\n if not xKy2(YEnM):\n return False\n if not hasattr(YEnM, '__class__'):\n return False\n yR_P = YEnM.__class__.__module__\n mWFP = YEnM._...
[ "0.7225927", "0.7036342", "0.6980597", "0.69032043", "0.6873411", "0.6864246", "0.6861426", "0.6831486", "0.6810423", "0.6700796", "0.65101063", "0.64845026", "0.64761686", "0.64271176", "0.6378125", "0.6342166", "0.6299797", "0.62501353", "0.61387503", "0.61264426", "0.61222...
0.80566955
0
Return true if the object is a frame object.
def nLfp(object): return isinstance(object, SnBA.FrameType)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dUHN(YKHO):\n return type(YKHO._frame) != type(None)", "def osAN(YKHO, hgiF):\n return hgiF in VLRj.Object.Get()", "def rW68(YKHO):\n if YKHO.currentFrame == []:\n return False\n return True", "def xKy2(n294, AasG):\n return n294.wrap(n294.is_object(AasG))", "def KP_d(YEnM):\n ...
[ "0.7059548", "0.6776868", "0.67025095", "0.6320981", "0.6151478", "0.6132881", "0.61015505", "0.60789543", "0.6062816", "0.6059846", "0.6057658", "0.602962", "0.60256284", "0.60208946", "0.6008246", "0.5994111", "0.5985257", "0.5973069", "0.595703", "0.5956045", "0.5944672", ...
0.8961334
0
Return true if the object is a builtin function or method.
def MP1F(object): return isinstance(object, SnBA.BuiltinFunctionType)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MP1F(object):\n if tq_1.isbuiltin(object):\n return True\n return getattr(object, '__module__', None) == 'builtins'", "def pT28(FYKK) -> bool:\n return getattr(FYKK, KpgY, False)", "def rVKq(YEnM):\n if type(YEnM) is SnBA.FunctionType:\n return True\n if not xKy2(YEnM):\n ...
[ "0.8289285", "0.7472802", "0.7363803", "0.71875185", "0.70628667", "0.70435905", "0.70102745", "0.69756746", "0.6775871", "0.67595947", "0.6733965", "0.6691371", "0.66529965", "0.65831393", "0.6575697", "0.6573933", "0.6510448", "0.64959884", "0.64307064", "0.6391338", "0.638...
0.8574259
0
Return true if the object is an abstract base class (ABC).
def dRzq(object): return bool(isinstance(object, type) and object.__flags__ & r3t6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tV1h(Emd4) -> bool:\n return Emd4 is ploy", "def tV1h(Emd4):\n return Emd4.__dict__.get('abstract', False)", "def tV1h(Emd4) -> bool:\n return Emd4.get_ql_class() is None", "def xWmR(YKHO) -> type(None):\n Ol8d = ''\n try:\n _uNU()\n except TypeError as e:\n Ol8d = str(tTp...
[ "0.79591995", "0.7740118", "0.74967694", "0.6876047", "0.6846115", "0.65837055", "0.65216106", "0.65125287", "0.6509723", "0.6505676", "0.64681417", "0.64598703", "0.64483017", "0.63817596", "0.63814217", "0.63706404", "0.6360255", "0.63141894", "0.6295798", "0.6278391", "0.6...
0.8235927
0
Get lines of comments immediately preceding an object's source code. Returns None when source can't be found.
def oz2l(object): try: Nqlg, gLi5 = sYY2(object) except (IOError, TypeError): return None if ctWX(object): yKcO = 0 if Nqlg and Nqlg[0][:2] == '#!': yKcO = 1 while yKcO < len(Nqlg) and vIwR.strip(Nqlg[yKcO]) in ('', '#'): yKcO = yKcO + 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SORM(object):\n Nqlg, gLi5 = sYY2(object)\n if ctWX(object):\n return (Nqlg, 0)\n else:\n return (wfnC(Nqlg[gLi5:]), gLi5 + 1)", "def SORM(object):\n Nqlg, gLi5 = sYY2(object)\n if tq_1.ismodule(object):\n return (Nqlg, 0)\n else:\n return (tq_1.getblock(Nqlg[gLi...
[ "0.72634727", "0.71040714", "0.697937", "0.6219743", "0.619659", "0.616633", "0.614325", "0.6131676", "0.60498", "0.60067236", "0.592545", "0.58221656", "0.58154655", "0.5761031", "0.5745453", "0.5741687", "0.5715431", "0.56689686", "0.5604483", "0.55737406", "0.55317247", ...
0.7663891
0
D.items() > list of D's (key, value) pairs, as 2tuples
def DumB(YKHO): aPd6 = [] for H5ew, BWXx in YKHO.data.items(): z1Rg = H5ew() if z1Rg is not None: aPd6.append((z1Rg, BWXx)) return aPd6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wzOR(Csk6):\n return [(H5ew, BWXx) for H5ew, BWXx in Csk6.items()]", "def DumB(YKHO):\n return ((H5ew, BWXx) for H5ew, BWXx in zip(YKHO.__keys, YKHO.__vals))", "def DumB(YKHO) -> tuple[tuple[eA6S, ImMB], ...]:\n return tuple(zip(YKHO.keys(), YKHO.values()))", "def kCbD(Csk6):\n return list(Cs...
[ "0.7830863", "0.7284799", "0.7120354", "0.7040355", "0.70346266", "0.7028189", "0.70108086", "0.696593", "0.69515955", "0.69515955", "0.69386834", "0.68796587", "0.6806141", "0.6757493", "0.6757493", "0.66560125", "0.6589901", "0.6550006", "0.6549958", "0.64609885", "0.645890...
0.6295288
28
Return a list of weak references to the keys. The references are not guaranteed to be 'live' at the time they are used, so the result of calling the references needs to be checked before being used. This can be used to avoid creating references that will cause the garbage collector to keep the keys around longer than n...
def bxf2(YKHO): return YKHO.data.keys()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxf2(YKHO):\n return [bf9h(H5ew) for H5ew in YKHO.iterkeys()]", "def bxf2(YKHO):\n return list(YKHO.data)", "def oJG2(YKHO):\n for H5ew in YKHO.iterkeys():\n yield bf9h(H5ew)", "def i9Kk(YKHO):\n print('=======')\n print('REFs')\n print('=======')\n for H5ew in YKHO.refs:\n ...
[ "0.82069016", "0.73039544", "0.70277053", "0.68495166", "0.6591765", "0.6591765", "0.65662", "0.6492488", "0.6408364", "0.62811583", "0.6258436", "0.62512493", "0.62409", "0.6135763", "0.6131842", "0.61273736", "0.61273736", "0.60930115", "0.608971", "0.6087546", "0.6075515",...
0.7237666
3
D.setdefault(k[,d]) > D.get(k,d), also set D[k]=d if k not in D
def zsoT(YKHO, H5ew, WmM4=None): return YKHO.data.setdefault(bf9h(H5ew, YKHO._remove), WmM4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V8sn(Csk6):\n if len(Csk6) == 1:\n Csk6 = Csk6.keys()\n return Csk6[0]\n Ty9i = list(Csk6.values())\n G1Hx = list(Csk6.keys())\n jzdc = list(Ty9i)\n Fg_i = list(G1Hx)\n G1Hx.pop(Ty9i.index(min(Ty9i)))\n Ty9i.pop(Ty9i.index(min(Ty9i)))\n QOe9 = G1Hx[Ty9i.index(min(Ty9i))]\n...
[ "0.55361325", "0.5436378", "0.5407081", "0.5375841", "0.53595066", "0.53391355", "0.5331777", "0.53075683", "0.5303953", "0.52871853", "0.5269493", "0.52402604", "0.52296007", "0.51799726", "0.51506335", "0.5150125", "0.5150125", "0.5150125", "0.5147283", "0.51231664", "0.509...
0.0
-1
D.items() > list of D's (key, value) pairs, as 2tuples
def DumB(YKHO): aPd6 = [] for H5ew, BWXx in YKHO.data.items(): z1Rg = H5ew() if z1Rg is not None: aPd6.append((z1Rg, BWXx)) return aPd6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wzOR(Csk6):\n return [(H5ew, BWXx) for H5ew, BWXx in Csk6.items()]", "def DumB(YKHO):\n return ((H5ew, BWXx) for H5ew, BWXx in zip(YKHO.__keys, YKHO.__vals))", "def DumB(YKHO) -> tuple[tuple[eA6S, ImMB], ...]:\n return tuple(zip(YKHO.keys(), YKHO.values()))", "def kCbD(Csk6):\n return list(Cs...
[ "0.7830863", "0.7284799", "0.7120354", "0.7040355", "0.70346266", "0.7028189", "0.70108086", "0.696593", "0.69515955", "0.69515955", "0.69386834", "0.68796587", "0.6806141", "0.6757493", "0.6757493", "0.66560125", "0.6589901", "0.6550006", "0.6549958", "0.64609885", "0.645890...
0.6295288
29
Return a list of weak references to the keys. The references are not guaranteed to be 'live' at the time they are used, so the result of calling the references needs to be checked before being used. This can be used to avoid creating references that will cause the garbage collector to keep the keys around longer than n...
def bxf2(YKHO): return YKHO.data.keys()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxf2(YKHO):\n return [bf9h(H5ew) for H5ew in YKHO.iterkeys()]", "def bxf2(YKHO):\n return list(YKHO.data)", "def oJG2(YKHO):\n for H5ew in YKHO.iterkeys():\n yield bf9h(H5ew)", "def i9Kk(YKHO):\n print('=======')\n print('REFs')\n print('=======')\n for H5ew in YKHO.refs:\n ...
[ "0.82069016", "0.73039544", "0.70277053", "0.68495166", "0.6591765", "0.6591765", "0.65662", "0.6492488", "0.6408364", "0.62811583", "0.6258436", "0.62512493", "0.62409", "0.6135763", "0.6131842", "0.61273736", "0.61273736", "0.60930115", "0.608971", "0.6087546", "0.6075515",...
0.7237666
2
D.setdefault(k[,d]) > D.get(k,d), also set D[k]=d if k not in D
def zsoT(YKHO, H5ew, WmM4=None): return YKHO.data.setdefault(vkB7(H5ew, YKHO._remove), WmM4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V8sn(Csk6):\n if len(Csk6) == 1:\n Csk6 = Csk6.keys()\n return Csk6[0]\n Ty9i = list(Csk6.values())\n G1Hx = list(Csk6.keys())\n jzdc = list(Ty9i)\n Fg_i = list(G1Hx)\n G1Hx.pop(Ty9i.index(min(Ty9i)))\n Ty9i.pop(Ty9i.index(min(Ty9i)))\n QOe9 = G1Hx[Ty9i.index(min(Ty9i))]\n...
[ "0.55361325", "0.5436378", "0.5407081", "0.5375841", "0.53595066", "0.53391355", "0.5331777", "0.53075683", "0.5303953", "0.52871853", "0.5269493", "0.52402604", "0.52296007", "0.51799726", "0.51506335", "0.5150125", "0.5150125", "0.5150125", "0.5147283", "0.51231664", "0.509...
0.0
-1
D.items() > list of D's (key, value) pairs, as 2tuples
def DumB(YKHO): eL5G = [] for H5ew, bBRS in YKHO.data.items(): try: vGaq = bBRS() except nrrE: pass else: eL5G.append((H5ew, vGaq)) return eL5G
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wzOR(Csk6):\n return [(H5ew, BWXx) for H5ew, BWXx in Csk6.items()]", "def DumB(YKHO):\n return ((H5ew, BWXx) for H5ew, BWXx in zip(YKHO.__keys, YKHO.__vals))", "def DumB(YKHO) -> tuple[tuple[eA6S, ImMB], ...]:\n return tuple(zip(YKHO.keys(), YKHO.values()))", "def kCbD(Csk6):\n return list(Cs...
[ "0.7830863", "0.7284799", "0.7120354", "0.7040355", "0.70346266", "0.7028189", "0.70108086", "0.696593", "0.69515955", "0.69515955", "0.69386834", "0.68796587", "0.6806141", "0.6757493", "0.6757493", "0.66560125", "0.6589901", "0.6550006", "0.6549958", "0.64609885", "0.645890...
0.0
-1
D.setdefault(k[,d]) > D.get(k,d), also set D[k]=d if k not in D
def zsoT(YKHO, H5ew, WmM4=None): try: return YKHO[H5ew] except KeyError: YKHO[H5ew] = WmM4 return WmM4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V8sn(Csk6):\n if len(Csk6) == 1:\n Csk6 = Csk6.keys()\n return Csk6[0]\n Ty9i = list(Csk6.values())\n G1Hx = list(Csk6.keys())\n jzdc = list(Ty9i)\n Fg_i = list(G1Hx)\n G1Hx.pop(Ty9i.index(min(Ty9i)))\n Ty9i.pop(Ty9i.index(min(Ty9i)))\n QOe9 = G1Hx[Ty9i.index(min(Ty9i))]\n...
[ "0.55356115", "0.54372454", "0.5406987", "0.5378993", "0.5358973", "0.53389716", "0.53341734", "0.53058434", "0.5301141", "0.52891356", "0.5269982", "0.5237737", "0.523226", "0.51801175", "0.5150922", "0.51496565", "0.51496565", "0.51496565", "0.5146695", "0.51202506", "0.509...
0.0
-1
Return a list of weak references to the values. The references are not guaranteed to be 'live' at the time they are used, so the result of calling the references needs to be checked before being used. This can be used to avoid creating references that will cause the garbage collector to keep the values around longer th...
def X78R(YKHO): return YKHO.data.values()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X78R(YKHO):\n return [bf9h(BWXx) for BWXx in YKHO.itervalues()]", "def kC_t(YKHO, DumB):\n return map(YKHO.ref, DumB)", "def ipQ4(YEnM: typing.Any) -> list[EdSM]:\n Q6uT = PhTn.get(id(YEnM), [])\n return [Q6uT[0] for ZfUD in Q6uT]", "def bxf2(YKHO):\n return [bf9h(H5ew) for H5ew in YKHO.it...
[ "0.74262476", "0.6810636", "0.6778606", "0.66600424", "0.64524084", "0.64439523", "0.6413778", "0.6381763", "0.6361749", "0.6361271", "0.6280388", "0.6164737", "0.6074578", "0.6072525", "0.596822", "0.59287894", "0.5897373", "0.5887382", "0.5860268", "0.5860268", "0.582918", ...
0.0
-1
Add a type specific assertEqual style function to compare a type. This method is for use by TestCase subclasses that need to register their own type equality functions to provide nicer error messages.
def t0RN(YKHO, v7qV, m2Zb): YKHO._type_equality_funcs[v7qV] = m2Zb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AuNm(YKHO):\n YKHO.assertEqual(True, GFDZ.types_are_equal(None, None))\n YKHO.assertEqual(True, GFDZ.types_are_equal(True, True))\n YKHO.assertEqual(True, GFDZ.types_are_equal(True, False))\n YKHO.assertEqual(True, GFDZ.types_are_equal(int(), int()))\n YKHO.assertEqual(False, GFDZ.types_are_equa...
[ "0.64099425", "0.6162845", "0.60878867", "0.60483795", "0.60189486", "0.58744097", "0.5855696", "0.5852741", "0.5842349", "0.58336544", "0.57676536", "0.57270336", "0.55989355", "0.55440307", "0.5539809", "0.54932046", "0.54577434", "0.5427406", "0.5401657", "0.5399568", "0.5...
0.64216036
0
Fail if the two objects are unequal as determined by the '==' operator.
def sww5(YKHO, cntZ, CsFy, tO9_=None): uIQg = YKHO._getAssertEqualityFunc(cntZ, CsFy) uIQg(cntZ, CsFy, msg=tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ef6G(YKHO):\n jzdc = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n Fg_i = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n YKHO.assertFalse(jzdc != Fg_i)\n YKHO.assertFalse(Fg_i != jzdc)", "def HgjI(YKHO):\n FAmx = SoA4(1, 2, 3)\n YKHO.assertFalse(FAmx == iCFA(1, 2,...
[ "0.7972038", "0.7953332", "0.791635", "0.7878723", "0.78270835", "0.78110594", "0.7785602", "0.7784792", "0.7608514", "0.7529266", "0.75235796", "0.7501297", "0.74929625", "0.7451132", "0.74390656", "0.74371505", "0.73967385", "0.73882294", "0.7386272", "0.7371011", "0.736063...
0.0
-1
Fail if the two objects are equal as determined by the '==' operator.
def low2(YKHO, cntZ, CsFy, tO9_=None): if not cntZ != CsFy: tO9_ = YKHO._formatMessage(tO9_, '%s == %s' % (gnma(cntZ), gnma(CsFy))) raise YKHO.failureException(tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzcV(u7RQ: object, KQB2: object) -> bool:\n if u7RQ is None and KQB2 is None:\n return True\n if u7RQ is None:\n return False\n return u7RQ == KQB2", "def up4I(YKHO):\n jzdc = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n Fg_i = ei4T.OpaqueObject(YKHO.bytes_a, aVkO....
[ "0.7919041", "0.7786313", "0.77699965", "0.7705751", "0.76696056", "0.7583974", "0.7578073", "0.75717276", "0.75399613", "0.7528206", "0.7517002", "0.7496462", "0.7496462", "0.7487033", "0.7487033", "0.7474491", "0.74317163", "0.7405117", "0.7405117", "0.7385922", "0.73718214...
0.0
-1
Return a relative version of a path
def WzLU(pmON, yKcO=Hy7s.path.curdir): if not pmON: raise ValueError('no path specified') W8qs = Hy7s.path.abspath(yKcO).split(Hy7s.path.sep) BTLB = Hy7s.path.abspath(pmON).split(Hy7s.path.sep) if W8qs[0].lower() != BTLB[0].lower(): uHSV, wOmD = Hy7s.path.splitunc(pmON) TNUy, wOm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qth0(YKHO, pmON):\n return ZbWC.sub(YKHO.path_regex, '', pmON).lstrip(Hy7s.sep)", "def sueC(pmON: str):\n return gzes('.', pmON)", "def vT7J(pmON):\n iQZE = ToLc(pmON)\n return iQZE[-1]", "def NE63(pmON: str):\n return Hy7s.path.relpath(pmON, phdL())", "def PsRC(pmON):\n return Hy7s.p...
[ "0.7916205", "0.77834916", "0.77383643", "0.765349", "0.7530642", "0.7522436", "0.7415771", "0.7404095", "0.729165", "0.72837", "0.7279967", "0.723366", "0.7217335", "0.71864855", "0.7178365", "0.7105353", "0.7092798", "0.70900303", "0.70873284", "0.70858437", "0.70681816", ...
0.0
-1
Return a relative version of a path
def yXk0(pmON, yKcO=Hy7s.path.curdir): if not pmON: raise ValueError('no path specified') W8qs = Hy7s.path.abspath(yKcO).split(Hy7s.path.sep) BTLB = Hy7s.path.abspath(pmON).split(Hy7s.path.sep) YRbF = len(Hy7s.path.commonprefix([W8qs, BTLB])) a4wQ = [Hy7s.path.pardir] * (len(W8qs) - YRbF) + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qth0(YKHO, pmON):\n return ZbWC.sub(YKHO.path_regex, '', pmON).lstrip(Hy7s.sep)", "def sueC(pmON: str):\n return gzes('.', pmON)", "def vT7J(pmON):\n iQZE = ToLc(pmON)\n return iQZE[-1]", "def NE63(pmON: str):\n return Hy7s.path.relpath(pmON, phdL())", "def PsRC(pmON):\n return Hy7s.p...
[ "0.7916205", "0.77834916", "0.77383643", "0.765349", "0.7530642", "0.7522436", "0.7415771", "0.7404095", "0.729165", "0.72837", "0.7279967", "0.723366", "0.7217335", "0.71864855", "0.7178365", "0.7105353", "0.7092798", "0.70900303", "0.70873284", "0.70858437", "0.70681816", ...
0.0
-1
Return a suite of all tests cases found using the given sequence of string specifiers. See 'loadTestsFromName()'.
def nn5Z(YKHO, ZWCE, yR_P=None): Mvmc = [YKHO.loadTestsFromName(mWFP, yR_P) for mWFP in ZWCE] return YKHO.suiteClass(Mvmc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NxB3():\n i8WE = DuvM.TestSuite()\n for Niws in Q1nc:\n r8hN = ANWz.import_module('pyroclast.test.' + Niws)\n for exwG in dir(r8hN):\n Z9rn = getattr(r8hN, exwG)\n if SV4_(Z9rn):\n KCHu = DuvM.TestLoader().loadTestsFromTestCase(Z9rn)\n i8W...
[ "0.7213632", "0.68787366", "0.680435", "0.680435", "0.6786496", "0.6779659", "0.6721755", "0.66643906", "0.6648306", "0.66412103", "0.65829444", "0.6578536", "0.65720206", "0.6553921", "0.6527574", "0.65239364", "0.6509599", "0.6484128", "0.6448192", "0.64428675", "0.64099556...
0.6919736
1
Sets the clicking point.
def d5OD(YKHO, XP5J): YKHO.click_pt = XP5J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z7yx(YKHO, WKvO: int, LVAh: int) -> None:\n YKHO.state = i2qp.CLICKED\n YKHO.click_position = PvyL(WKvO, LVAh)", "def k8wH(YKHO, k8wH):\n YKHO._click = k8wH", "def lr7F(YKHO, AU8u):\n YKHO.point = AU8u", "def WLEp(YKHO, AU8u):\n YKHO._setpoint = AU8u", "def k8wH(AU8u):\n r8hN = SbTO()...
[ "0.8060222", "0.67688763", "0.67274594", "0.6723143", "0.67118764", "0.6710596", "0.6600474", "0.6538162", "0.6524762", "0.65210557", "0.6342079", "0.6339296", "0.633513", "0.62810963", "0.62769955", "0.6273338", "0.6269413", "0.6228525", "0.6217557", "0.6215185", "0.618928",...
0.87736624
0
Returns whether the event is allowed or not.
def Z_6Z(YKHO): return YKHO.notify.IsAllowed()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F4VP(YKHO) -> bool:\n return YKHO.effect == AZ9y", "def glwj(YKHO, hEKL):\n return hEKL in YKHO._watchable_events or (hEKL == YKHO.ANY and YKHO._allow_any)", "def Thq3(YKHO):\n if YKHO.state_model.op_state in [ilBV.FAULT, ilBV.UNKNOWN, ilBV.DISABLE]:\n return False\n return True", "def...
[ "0.71218127", "0.6753952", "0.6584852", "0.65724695", "0.65048504", "0.6486049", "0.64661396", "0.6425485", "0.64117974", "0.6407661", "0.6383321", "0.6383321", "0.6368016", "0.63388735", "0.6322138", "0.63019186", "0.62861454", "0.62475485", "0.6230119", "0.6214851", "0.6194...
0.75149125
1
Returns the toolbar item kind. See L{SetKind} for more details.
def S5Rp(YKHO): return YKHO.kind
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lojf(YKHO) -> str:\n return YKHO.__item_type", "def eJTR(YKHO):\n return YKHO.get_data('kind')", "def Lojf(YKHO):\n return YKHO._item_type", "def eJTR(YKHO) -> str:\n return qe4Y.get(YKHO, 'kind')", "def eJTR(YKHO) -> str:\n return qe4Y.get(YKHO, 'kind')", "def eJTR(YKHO) -> str:\n ...
[ "0.62074655", "0.61990243", "0.61379355", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325", "0.61212325"...
0.6155106
2
Returns the toolbar item state. See L{SetState} for more details.
def OEQv(YKHO): return YKHO.state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n return YKHO.wm.state if YKHO.wm else None", "def ja6o(YKHO):\n return YKHO.state", "def ja6o(YKHO):\n return YKHO.state", "def ja6o(YKHO):\n return YKHO._state", "def ja6o(YKHO):\n return YKHO._state", "def ja6o(YKHO):\n return YKHO._state", "def ja6o(YKHO):\n ret...
[ "0.6415306", "0.6104684", "0.6104684", "0.6076991", "0.6076991", "0.6076991", "0.6076991", "0.6076991", "0.6056616", "0.60151047", "0.59664494", "0.5921421", "0.5921421", "0.5921421", "0.5920284", "0.5897296", "0.588635", "0.58861196", "0.58690363", "0.58679175", "0.58375484"...
0.6040813
9