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
We mock the standard input and provide 7, 2 as the user input. Check that the player is reprompted the first time, then 2 is returned.
def PXkd(YKHO, Lwng): BZN_ = YKHO.new_view.prompt_player_to_move('George', 'r') YKHO.assertEqual(BZN_, 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wtzx(YKHO):\n fZOT = '8'\n with Po4F('builtins.input', return_value=fZOT) as yGSM:\n with Po4F('sys.stdout', new=kJm3()) as hlel:\n import attempt\n YKHO.assertEqual(hlel.getvalue().strip(), 'This is a sad number.')", "def An2K(YKHO):\n fZOT = '7'\n aEqx = 'This is a ...
[ "0.7210607", "0.7114803", "0.68961203", "0.6889057", "0.6875937", "0.6873137", "0.6830446", "0.68286604", "0.68033475", "0.6802713", "0.6798306", "0.6789413", "0.6760421", "0.67280966", "0.6708207", "0.666645", "0.6661293", "0.66434044", "0.66253746", "0.6539678", "0.6528553"...
0.61145186
95
r"""Parse arguments from CLI. Argument must begin with a inference method name ``infer_name``. All arguments are added with inference method's static method ``infer_parser``. Returns ======= argparse.Namespace Arguments from CLI.
def mQlX() -> j1Jz.Namespace: wvEv = j1Jz.ArgumentParser('python -m lmp.script.generate_text', description='Generate text using language model.') nIh5 = wvEv.add_subparsers(dest='infer_name', required=True) for gm__, KpS8 in OA1D.items(): Q9Nt = nIh5.add_parser(gm__, description=f'Use {gm__} as infe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dCXb():\n wvEv = j1Jz.ArgumentParser(description='Inference with a sentence voxel mapping model.')\n wvEv.add_argument('--organs_dir_path', type=str, default='data/data_organs', help='Path to the data organs directory path.')\n wvEv.add_argument('--voxelman_images_path', type=str, default='data/voxelm...
[ "0.67675024", "0.6615468", "0.6549558", "0.6454704", "0.63617194", "0.63027734", "0.6282673", "0.6272036", "0.62507373", "0.6240257", "0.6234669", "0.62334895", "0.621092", "0.6208894", "0.62033486", "0.61922705", "0.6174233", "0.6174", "0.61716396", "0.61520225", "0.6150952"...
0.8029891
0
Function to load a saved model
def uyMl(YKHO, GwO0): QTBn = ht2j.load(GwO0) xA7f = QTBn['state_dict'] YKHO.best_val = QTBn['best_val'] YKHO.best_val_mrr = YKHO.best_val['mrr'] YKHO.model.load_state_dict(xA7f) YKHO.optimizer.load_state_dict(QTBn['optimizer'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl():\n return", "def uyMl():\n with open(GPtr.root + '/main/model.bin', 'rb') as vJOV:\n C3ST = t2lc.load(vJOV)\n return C3ST", "def uyMl():\n return None", "def uyMl(Ux0P):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(...
[ "0.86637676", "0.86637676", "0.85475737", "0.83706975", "0.8325346", "0.82467407", "0.8244028", "0.8244028", "0.8244028", "0.8244028", "0.81629604", "0.8006045", "0.7923047", "0.7920374", "0.7920374", "0.7920374", "0.79093623", "0.78873456", "0.78810906", "0.78749573", "0.786...
0.0
-1
Create and train a neural network for an rbfsoftmax experiment. This method should only be used in the context of an rbf softmax experiment. It is responsible for handling the complexity of an configuration.RbfSoftmaxConfiguration instance. It will use the passed in configuration to construct a network, train it, and r...
def D5zT(Fv2L): pNZh = ZylS.Graph() with pNZh.as_default(): wDWA = Eoxt(Fv2L) eVVj = es6m(Fv2L, zZcM.data_set, 'network0') jiaH = i5jP.build_network_runner(pNZh, eVVj, Fv2L.m, Fv2L.is_rbf) if Fv2L.is_rbf: AWqv = ukQo.build_rbf_collector(zZcM.data_set, Fv2L.animation_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hZEv(Fv2L):\n wDWA = Eoxt(Fv2L)\n WE47 = []\n for YRbF in Ni9Y(Fv2L.n_networks):\n pNZh = ZylS.Graph()\n with pNZh.as_default():\n OZUW = 'network{}'.format(YRbF)\n eVVj = es6m(Fv2L, zZcM.data_set, OZUW)\n jiaH = i5jP.build_network_runner(pNZh, eVVj, Fv2L...
[ "0.6905721", "0.6215949", "0.61149895", "0.6053017", "0.5958928", "0.5954263", "0.59440506", "0.59427416", "0.5902929", "0.5880389", "0.5867439", "0.5849393", "0.582734", "0.57687336", "0.57573736", "0.57509434", "0.57434976", "0.5720358", "0.5714426", "0.571128", "0.57061595...
0.76933354
0
Split dense vector dictionary into k folds
def Wou2(dpkX, NFPR): v9CE = [] I1S7 = [] DumB = list(dpkX.items()) tuKI.shuffle(DumB) dN6t = U8Lr(DumB) for G1Hx, Ty9i in dN6t.items(): v9CE.append(Ty9i) JwQp = int(len(v9CE) / NFPR) I1S7 = [v9CE[YRbF:YRbF + JwQp] for YRbF in range(0, len(v9CE), JwQp)] tuKI.seed(4) retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aoXP(YKHO, G1Hx=10):\n cc_7 = {}\n GhiW = {}\n nPrm = list(zip(YKHO.xs, YKHO.ys))\n tuKI.shuffle(nPrm)\n RV39 = YKHO.data_shape[0]\n NX0q = round(RV39 / G1Hx)\n for YRbF in range(G1Hx - 1):\n RSMg = nPrm[YRbF * NX0q:(YRbF + 1) * NX0q]\n la8T, Kmja = list(zip(*RSMg))\n ...
[ "0.655749", "0.6484318", "0.63123", "0.61225295", "0.6116392", "0.60328716", "0.600502", "0.5937829", "0.5933965", "0.5895874", "0.5893294", "0.5893294", "0.5879059", "0.58731747", "0.58665115", "0.58636", "0.5765035", "0.5756934", "0.57454616", "0.56639206", "0.56450695", ...
0.6687277
0
View a booking details.
def tTee(): j25N = QePW.form.get('booking_id') o6yu = NCls.session.query(xVxx).filter_by(ID=int(j25N)).scalar() if o6yu.CarID != None: _6NH = NCls.session.query(CSmO).filter_by(ID=int(o6yu.CarID)).scalar() else: _6NH = None return TvZl('booking/view.html', booking=o6yu, car_coordinat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aeup(QePW, j25N, rPXJ='book_detail.html'):\n o6yu = cPxv.objects.get(id=j25N)\n return SGJU(rPXJ, K1Ja(QePW, {'booking': o6yu}))", "def q7CD(CBIr, o6yu):\n return chxx(CBIr, o6yu.game)", "def K1DQ(QePW, ABua):\n jI4j = dl5x.objects.get(book_id=ABua)\n QpfX = {'book': jI4j}\n return _1tc(Q...
[ "0.78775835", "0.77319175", "0.7099877", "0.6922514", "0.68763214", "0.6872011", "0.68652576", "0.6773231", "0.66879547", "0.6686151", "0.65092486", "0.6463423", "0.6440879", "0.6384475", "0.63515", "0.6272862", "0.62700593", "0.62693375", "0.6212441", "0.62113905", "0.605265...
0.75187504
2
Computes the distance of center points of two clusters.
def qjR8(YKHO, MjEg, mrUo): eYvD = YKHO.center_point(MjEg) ZVja = YKHO.center_point(mrUo) Ayfi = YKHO.euclidean_dist(eYvD, ZVja) return Ayfi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O8Cd(MjEg, mrUo):\n rNG5 = oyIN.average(MjEg, axis=0)\n dIzh = oyIN.average(mrUo, axis=0)\n return q8nD(rNG5, dIzh)", "def Tv8T(YKHO, dg7v, iYf1):\n KCHu = sum((YKHO.row_distance(J1b4, CYjz) for J1b4, CYjz in Lx3t(dg7v, iYf1)))\n return KCHu / (len(dg7v) * len(iYf1))", "def loXw(cF_k, xjGc, ...
[ "0.7835196", "0.7689678", "0.75788593", "0.7566614", "0.74559516", "0.74318033", "0.73037297", "0.72511125", "0.71721303", "0.6979363", "0.6978757", "0.69574726", "0.69434357", "0.68681365", "0.6859334", "0.6772222", "0.6763908", "0.6758749", "0.6717075", "0.67121935", "0.670...
0.812009
0
Creates an application instance to run
def LUif(suDX=Yv3P): P4t4 = L2w0(__name__) P4t4.config.from_object(suDX) NCls.init_app(P4t4) _ZMm.init_app(P4t4) from data import create_db with P4t4.app_context(): NCls.create_all() create_db() P4t4.register_error_handler(404, m7kB) P4t4.register_error_handler(500, r1yd)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif(Emd4):\n return SCWY", "def LUif(YKHO):\n return P4t4", "def LUif():\n return eLpg(mode='app')", "def LUif():\n return yPQU", "def LUif(YKHO):\n YKHO.app = LUif('testing')\n return YKHO.app", "def LUif(YKHO):\n YKHO.app = LUif('testing')\n return YKHO.app", "def LUif():...
[ "0.83525836", "0.80747396", "0.8062355", "0.80150855", "0.80133027", "0.80133027", "0.791112", "0.7890805", "0.78334016", "0.7797196", "0.77587306", "0.77587306", "0.77408695", "0.76990336", "0.76990336", "0.76966983", "0.767635", "0.7664143", "0.7663597", "0.7637966", "0.762...
0.0
-1
A method to parse up command line parameters. By default it gives an embedding of the Facebook food dataset. The default hyperparameters give a good quality representation without grid search. Representations are sorted by ID.
def UE6D(): wvEv = j1Jz.ArgumentParser(description='Run Walklet.') wvEv.add_argument('--input', nargs='?', default='./input/food_edges.csv', help='Input folder with jsons.') wvEv.add_argument('--output', nargs='?', default='./output/food_embedding.csv', help='Embeddings path.') wvEv.add_argument('--walk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Awrq():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('-c', '--commonness', help='Commonness threshold', type=float)\n wvEv.add_argument('-k', help='top-K entities to be considered from CER step', type=float)\n wvEv.add_argument('-w', '--weights', help='MLM weights', type=str)\n wvEv.add_ar...
[ "0.65972674", "0.65819246", "0.6519845", "0.6457034", "0.6418682", "0.639436", "0.63900006", "0.63738954", "0.63639504", "0.6346302", "0.6303875", "0.629131", "0.6287023", "0.6279085", "0.6266803", "0.6251798", "0.62205637", "0.6214392", "0.6214307", "0.62017864", "0.6197728"...
0.6656255
0
Return the a meshgrid of numpy arrays for this mesh. This simply returns a ``numpy.meshgrid`` of the coordinates for this mesh in ``ij`` indexing.
def mWKm(YKHO): return oyIN.meshgrid(YKHO.x, YKHO.y, YKHO.z, indexing='ij')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWKm(*qIxc):\n return oyIN.meshgrid(*qIxc, indexing='ij')", "def iAsY(YKHO):\n return RSXT(YKHO.get_image())", "def Cs6h(YKHO):\n pvd3, jHsn = YKHO.size\n WKvO = oyIN.arange(jHsn) / jHsn * 2 * mM0K * YKHO.scales[1]\n LVAh = oyIN.linspace(0, mM0K, pvd3) * YKHO.scales[0]\n return oyIN.meshg...
[ "0.771894", "0.76898587", "0.7088809", "0.7083972", "0.70086515", "0.6917023", "0.6811518", "0.67705655", "0.67701876", "0.6732942", "0.67145145", "0.6608016", "0.6600085", "0.6431773", "0.6416833", "0.63797915", "0.6357884", "0.6321454", "0.6287375", "0.6242088", "0.6172053"...
0.8559974
0
creates randomly generated string
def FjP9(u54L, rkP8=True, mgPn=True, x1La=True, D8c8=True): hcXw = '' if rkP8: hcXw = vIwR.ascii_lowercase if mgPn: hcXw += vIwR.ascii_uppercase if x1La: hcXw += vIwR.digits if D8c8: hcXw += vIwR.punctuation return ''.join((tuKI.choice(hcXw) for bGrB in range(u54L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eTqN():\n return str(qxeD.uuid4())[:10]", "def nj6L():\n Aofo = Gmzq.rand_uuid()\n return Aofo", "def TDq5():\n EeaZ = u''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in range(5)))\n while Johd.check_for_existing_refcode(EeaZ):\n EeaZ = TDq5()\n o9EA = u'' + EeaZ...
[ "0.8215574", "0.8119289", "0.7864264", "0.785105", "0.7834188", "0.7739266", "0.77184635", "0.77169394", "0.77078927", "0.77078927", "0.7696971", "0.7665452", "0.7653597", "0.7644871", "0.7616078", "0.76089984", "0.75919384", "0.75828457", "0.7566813", "0.7554043", "0.7542890...
0.0
-1
writes to password field
def xW8q(iHjh): ZfWn(ps='writing "{0}" to "Password" field'.format(iHjh), text_to_write=iHjh, css_select='input#user_password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTXt(YKHO, BWXx):\n YKHO._password = BWXx", "def jTXt(YKHO, BWXx):\n YKHO._password = BWXx", "def jTXt(YKHO, BWXx):\n YKHO._password = BWXx", "def G3s8(YKHO, jTXt):\n D2Lq(jTXt)", "def jTXt(YKHO, BWXx):\n if not BWXx:\n return\n YKHO._password = BWXx", "def jTXt(YKHO, BWXx):\...
[ "0.79509664", "0.79509664", "0.78551304", "0.78401244", "0.783328", "0.7764084", "0.7688984", "0.76235116", "0.7615947", "0.7608255", "0.7589332", "0.7586894", "0.75734556", "0.7560687", "0.7556408", "0.75383276", "0.74984163", "0.747371", "0.74396914", "0.74316806", "0.74211...
0.7923031
2
Returns a datetime instance from a str formatted as follows
def TCI6(YKHO, YCc8): nKma = TCR1(YCc8, '%a, %d %b %Y %H:%M:%S GMT') return qcWV(*nKma[:6])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfK9(YKHO, str):\n return Qrp8(qcWV.datetime.strptime(str, YKHO.fmt))", "def HJff(KCHu):\n KCHu = KCHu.strip()\n for x8Ov in ['%Y-%m-%dT%H:%M:%S', '%Y-%m-%dT%H:%M', '%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%a %b %d %H:%M:%S %Z %Y']:\n try:\n return qcWV.strptime(KCHu, x8Ov)\n ...
[ "0.7776119", "0.7737712", "0.76908565", "0.753821", "0.7525738", "0.75032055", "0.74313706", "0.74246997", "0.7381255", "0.72628695", "0.72567415", "0.722977", "0.72216874", "0.7216103", "0.7214336", "0.71956855", "0.7176104", "0.7154006", "0.7146815", "0.7145289", "0.7133770...
0.6728212
82
Convert symmetryreduced bias of shape (features,) to the full bias of shape (n_symm features,).
def GLTR(YKHO, oug5): return oLG2.repeat(oug5, YKHO.n_symm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vmYo(YKHO):\n for YRbF, MKlR in enumerate(YKHO.layers):\n if YRbF > 0:\n YKHO.layers[YRbF].activation.RemoveDualBias()", "def pWxW(SppC):\n A2lD = SppC.todia()\n tjUW, pdhd = (max(abs(A2lD.offsets)), A2lD.data.shape[1])\n VvER = oyIN.zeros((tjUW + 1, pdhd), dtype=A2lD.dtype)\n ...
[ "0.602871", "0.5751793", "0.5728341", "0.5668387", "0.5527543", "0.5432658", "0.5419285", "0.5410035", "0.53753626", "0.53623456", "0.53355753", "0.53206414", "0.53201336", "0.5301708", "0.52873486", "0.52790576", "0.52486736", "0.52226776", "0.52178967", "0.52124745", "0.520...
0.690829
1
Applies the symmetrized linear transformation to the inputs along the last dimension.
def nrOS(YKHO, g4y1: Array) -> HWEd: yDqo = oLG2.promote_types(g4y1.dtype, YKHO.dtype) g4y1 = oLG2.asarray(g4y1, yDqo) WZcn = YKHO.param('kernel', YKHO.kernel_init, (g4y1.shape[-1], YKHO.features), YKHO.dtype) WZcn = YKHO.full_kernel(WZcn) WZcn = oLG2.asarray(WZcn, yDqo) LVAh = FePL.dot_general(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xV3T(YKHO, WKvO):\n if YKHO.noneD:\n return WKvO\n elif YKHO.affineD:\n return YKHO.linear_operator.linear_map(WKvO)\n elif YKHO.sparseD:\n return YKHO.linear_operator * WKvO\n elif YKHO.diagD:\n return sR1R(YKHO.linear_operator, WKvO, AdrB)\n return YKHO.linear_opera...
[ "0.6250725", "0.62011606", "0.6119805", "0.6028074", "0.6028074", "0.59895736", "0.58504504", "0.58397603", "0.5836497", "0.58330756", "0.57786286", "0.5769705", "0.57025194", "0.5685314", "0.5685314", "0.56843007", "0.5682939", "0.5680238", "0.56717086", "0.56682795", "0.565...
0.0
-1
Convert symmetryreduced bias of shape (features,) to the full bias of shape (n_symm features,).
def GLTR(YKHO, oug5): return oLG2.repeat(oug5, YKHO.n_symm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vmYo(YKHO):\n for YRbF, MKlR in enumerate(YKHO.layers):\n if YRbF > 0:\n YKHO.layers[YRbF].activation.RemoveDualBias()", "def pWxW(SppC):\n A2lD = SppC.todia()\n tjUW, pdhd = (max(abs(A2lD.offsets)), A2lD.data.shape[1])\n VvER = oyIN.zeros((tjUW + 1, pdhd), dtype=A2lD.dtype)\n ...
[ "0.60287017", "0.5751207", "0.5728174", "0.56671745", "0.5526072", "0.5432911", "0.54179984", "0.5410688", "0.53756183", "0.53601676", "0.53371966", "0.5320868", "0.53202444", "0.5301457", "0.52867687", "0.52792704", "0.5247531", "0.52223736", "0.5218364", "0.5212739", "0.521...
0.6908336
0
Function that calculates the loss based on the predictions and labels
def N77f(N6Z1, Crrw): with ZylS.variable_scope('loss'): return ZylS.losses.mean_squared_error(N6Z1, Crrw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lvgp(YKHO, JV1Q, UYmz, **Suyv):\n raise NotImplementedError()", "def N77f(YKHO, N6Z1, x6A0):\n pass", "def pYqK(rblr, rDFg, Uvgg, epGn):\n Zeq8 = rblr * (rDFg * (Uvgg - 1) + rDFg - 1) + (1 - rblr) * ((1 - rDFg) * (epGn - 1) - rDFg)\n return Zeq8.sum()", "def FZeT(nvEb, UXqs):\n return (nvE...
[ "0.8114448", "0.80911195", "0.8084399", "0.8052785", "0.78113836", "0.7740538", "0.77395666", "0.769308", "0.76547414", "0.7651278", "0.76199055", "0.7607044", "0.76026917", "0.75575703", "0.7535746", "0.7528091", "0.75148535", "0.7492102", "0.7492102", "0.7492102", "0.748884...
0.8101229
1
Invoke numpy's real valued Fourier Transform
def nrOS(YKHO, Gaon): return oyIN.fft.rfft(Gaon)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D8MD(YKHO):\n a1PO = YKHO.axis\n LVAh = YKHO.data\n if isinstance(a1PO, qupb):\n yzQ0 = a1PO.get_FrequencyAxis()\n if a1PO.atype == 'complete':\n fuBA = a1PO.length * XTiz.fft.fftshift(XTiz.fft.ifft(XTiz.fft.fftshift(LVAh))) * a1PO.step\n elif a1PO.atype == 'upper-half'...
[ "0.7200717", "0.71055335", "0.69616646", "0.6948246", "0.6920438", "0.6706158", "0.6678404", "0.66002023", "0.6578597", "0.6536172", "0.65112585", "0.6509899", "0.6436146", "0.64337575", "0.6373993", "0.6366267", "0.63615847", "0.6347455", "0.6344696", "0.63398516", "0.632457...
0.6951623
3
Obtain the power spectrum of the signal
def nrOS(YKHO, Gaon): assert Gaon.shape[0] == YKHO.T * YKHO.fs, 'The signal is not corresponding to the specified time length andsample frequency' if YKHO.log: return oyIN.log(oyIN.power(YKHO.FT.magnitude(Gaon), 2)) Yk08 = oyIN.power(YKHO.FT.magnitude(Gaon), 2) if YKHO.normalize: Yk08 -=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dU7B(YKHO):\n tnY7 = V2zj.fft(YKHO.signal)\n naF9 = oyIN.abs(tnY7) ** 2\n JRYC = 1 / YKHO.v_samp\n J1c0 = V2zj.freq(naF9.size, d=JRYC)\n return (J1c0, naF9)", "def cbte(qw7D):\n e4fp = oyIN.fft.fft(qw7D)\n naF9 = abs(e4fp) ** 2\n return (e4fp, naF9)", "def ndZ8(input, Lgxx):\n re...
[ "0.7840377", "0.7706027", "0.7691086", "0.7515089", "0.74612117", "0.7319242", "0.7312752", "0.73066103", "0.73024213", "0.72690946", "0.72603804", "0.7253968", "0.72499657", "0.7233314", "0.71952343", "0.71726185", "0.71219176", "0.7060575", "0.7051327", "0.70411694", "0.700...
0.7027932
20
Update Player based on Player object
def VDGG(YKHO, VDGG): LZbL = VDGG.get_player_id() if LZbL == None: raise ValueError('Only existing players can be updated') cuiw = YKHO._db_session() FUT2 = cuiw.query(zvhK).filter(zvhK.player_id == VDGG.player_id).first() if FUT2 is None: raise ValueError('Player does not exist') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ARkP(YKHO):\n YKHO._playerList.update()", "def dV9m(YKHO, oyg0):\n pass", "def dV9m(YKHO, oyg0):\n pass", "def chpw(YKHO):\n YKHO.player.move()", "def hecv(YKHO, oyg0):\n pass", "async def update_player(*, xefO: player_schemas.Update, rqLF: User=JHvC(wOZx.get_current_user), cuiw: Sessi...
[ "0.8100269", "0.80634785", "0.80634785", "0.76046985", "0.7462177", "0.72359675", "0.7132783", "0.7126166", "0.71108824", "0.7094331", "0.7042727", "0.6969074", "0.6952361", "0.69418985", "0.6884679", "0.68808246", "0.6839351", "0.6830214", "0.6802071", "0.6735778", "0.671810...
0.6858731
16
discounted cumulative sum of rewards for t = 1,2,...,T1
def RHnR(GfYY, KMvS): dQtc = [] for YRbF in range(len(GfYY)): IW_J = KMvS ** oyIN.arange(len(GfYY[YRbF])) KBgZ = oyIN.flip(oyIN.cumsum(oyIN.flip(IW_J * GfYY[YRbF]), axis=0)) / (IW_J + 1e-08) dQtc.append(KBgZ.tolist()) return dQtc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5Mp(MeGp):\n tzvm = 0.9\n Wk6t = []\n for YRbF, rd3d in enumerate(MeGp):\n AGyQ = []\n for r845, Hydg in enumerate(rd3d):\n QTBn, XeOP, vOGg, rxHc, _ins = (rd3d[0], Hydg[1], Hydg[2], Hydg[3], Hydg[4])\n fqGk = 0\n UHFx = 0\n for G1Hx in range(...
[ "0.74423975", "0.7078083", "0.7009997", "0.69960725", "0.6910748", "0.68912995", "0.6857686", "0.6845057", "0.680334", "0.6775149", "0.67466563", "0.6735349", "0.67001563", "0.6683006", "0.6683006", "0.6683006", "0.6668236", "0.66581005", "0.66081053", "0.656438", "0.65620106...
0.6056545
65
Compare equality with instance of self or path in collapsed path format.
def xa14(YKHO, Elif): if isinstance(Elif, YKHO.__class__): return YKHO.segments == Elif.segments return YKHO.encode() == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return YKHO.path == Elif.path", "def xa14(YKHO, Elif):\n return YKHO.IsPath == Elif.IsPath and YKHO.Name == Elif.Name and (YKHO.Prefix == Elif.Prefix) and (YKHO.Delimiter == Elif.Delimiter) and (YKHO.Quote == Elif.Quote) and (YKHO.Value == Elif.Value)", "def xa14(YKHO, Elif):\n ...
[ "0.7699867", "0.7277912", "0.69565517", "0.6955271", "0.68629533", "0.66422594", "0.66204715", "0.65382296", "0.6497519", "0.6485663", "0.6423294", "0.64141184", "0.64096653", "0.64096653", "0.6368735", "0.6366958", "0.63421863", "0.63398004", "0.63364863", "0.6297935", "0.62...
0.61810267
29
Compare inequality with instance of self or path in collapsed path format.
def Vdqg(YKHO, Elif): return not YKHO.__eq__(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return YKHO.path == Elif.path", "def Zcf_(YKHO, Elif):\n try:\n Elif = YKHO._to_backend(Elif)\n except TypeError:\n return NotImplemented\n else:\n return YKHO._normcase(YKHO.path) >= YKHO._normcase(Elif)", "def jmxi(YKHO, Elif):\n try:\n Elif ...
[ "0.7043706", "0.68044555", "0.6574432", "0.6548693", "0.6441875", "0.64296144", "0.64207166", "0.64207166", "0.64172274", "0.6373356", "0.6347848", "0.62816274", "0.6271277", "0.6210264", "0.61995435", "0.6140524", "0.6127081", "0.61257124", "0.60725105", "0.60725105", "0.605...
0.0
-1
Return self.encode() cast to str.
def zAg0(YKHO): return str(YKHO.encode())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ERVO(YKHO):\n return str(YKHO).encode()", "def rIkN(YKHO) -> str:\n return YKHO.as_bytes().decode()", "def gTzM(YKHO):\n return str(YKHO)", "def MFu_(YKHO):\n return str(YKHO)", "def yLCI(YKHO):\n return str(YKHO)", "def yLCI(YKHO):\n return str(YKHO)", "def gTzM(YKHO):\n retur...
[ "0.8482555", "0.8419126", "0.8136269", "0.81070316", "0.8080638", "0.8080638", "0.8077212", "0.80743384", "0.8070716", "0.80698895", "0.8011911", "0.79926807", "0.7949926", "0.7941413", "0.7935954", "0.7921111", "0.79015875", "0.7899106", "0.78954357", "0.7831976", "0.7810846...
0.8097569
4
Return the index from path segments of the first item that is equal to value. Raise an exception if value is not found.
def d6pt(YKHO, BWXx): return YKHO.segments.index(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(YKHO, BWXx):\n for QyVM, wEf2 in enumerate(YKHO):\n if wEf2 == BWXx:\n return QyVM\n raise ValueError", "def aQzf(YKHO, BWXx):\n YKHO.comparisons = 0\n for W7ci in range(len(YKHO.data)):\n YKHO.comparisons += 1\n if YKHO.data[W7ci] == BWXx:\n return...
[ "0.7512445", "0.7294301", "0.72583854", "0.7192394", "0.71850264", "0.70054704", "0.70001304", "0.69942135", "0.69420743", "0.69256586", "0.69247067", "0.6907079", "0.6851389", "0.68482095", "0.672173", "0.67011386", "0.6693196", "0.6690587", "0.66831654", "0.66809714", "0.66...
0.69134927
11
addSuccess() sets test time to correct value
def mBsM(YKHO): QOe9 = CFMy() QOe9.shortDescription.return_value = 'a' QOe9.__str__.return_value = 'b' QOe9 = jIzR(QOe9) YKHO.gtr.addSuccess(QOe9, '0.42') YKHO.assertEqual(QOe9.test_time, '0.42')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PfuU(YKHO, QOe9):\n pass", "def PfuU(YKHO, QOe9):\n pass", "def PfuU(YKHO, QOe9):\n YKHO.successes += 1", "def NYd4(YKHO):\n YKHO.__current_test.increment_success()", "def PfuU(YKHO, QOe9):\n super(mqvL, YKHO).addSuccess(QOe9)\n YKHO.addResult(QOe9, wsw_.PASS, 'Test Passed')", "def ...
[ "0.79882383", "0.79882383", "0.77463967", "0.7645386", "0.75803405", "0.75512725", "0.74909973", "0.74620557", "0.7417228", "0.7378137", "0.73129684", "0.7260951", "0.7252558", "0.72352356", "0.709653", "0.705769", "0.70419216", "0.70056105", "0.6944186", "0.69044006", "0.687...
0.7654071
3
Returns the output tensor at the given index.
def QEIX(YKHO, mh5P, d6pt): T8hE = mh5P.get_output_details()[d6pt] vhpA = oyIN.squeeze(mh5P.get_tensor(T8hE['index'])) return vhpA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QEIX(YKHO, d6pt):\n T8hE = YKHO.od_interpreter.get_output_details()[d6pt]\n vhpA = oyIN.squeeze(YKHO.od_interpreter.get_tensor(T8hE['index']))\n return vhpA", "def QEIX(mh5P, d6pt):\n T8hE = mh5P.get_output_details()[d6pt]\n vhpA = oyIN.squeeze(mh5P.get_tensor(T8hE['index']))\n return vhpA"...
[ "0.87158126", "0.8521544", "0.84709287", "0.84709287", "0.8458868", "0.8458868", "0.8458868", "0.8458868", "0.8458868", "0.84469384", "0.8276553", "0.8212192", "0.8005528", "0.80038035", "0.7880867", "0.7681", "0.76320046", "0.7391149", "0.72761345", "0.7255207", "0.7231386",...
0.8179113
12
Method to get a symbol from the Periodic Table based on atomic number.
def DUQK(FGW3): aDi_ = tyNF[FGW3 - 1].symbol return aDi_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _9eC(FGW3):\n return CWwb[FGW3]", "def DUQK(YKHO, STqv):\n if STqv < 1 or STqv >= len(YKHO.symbols):\n return None\n else:\n return YKHO.symbols[STqv]", "def TpG0(FGW3):\n if FGW3 < 1:\n raise _HWm('atomic number', FGW3, 'greater than 0')\n try:\n return uJWE[FGW3...
[ "0.7853471", "0.76718855", "0.6897115", "0.6746857", "0.65269715", "0.6460382", "0.64121544", "0.63181245", "0.6285837", "0.62751293", "0.6262872", "0.6192744", "0.6189485", "0.61762065", "0.61676544", "0.61664265", "0.6150935", "0.6099312", "0.60505354", "0.6045712", "0.6041...
0.78194076
1
Method to calculate nuclear fission by mol.
def JrmH(N9D1): VYvU = 1.6 hGzR = -13 tcX3 = 6.022 is5A = 23 QQx4 = VYvU * tcX3 * N9D1 naF9 = hGzR + is5A return (QQx4, naF9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C9lb(x0kE):\n sCqH = x0kE.atom_charges()\n jNOo = x0kE.atom_coords()\n JQck = 0\n yfx6 = oyIN.zeros((3, 3), dtype=oyIN.double)\n '\\n Replace with your implementation\\n\\n Step 1. calcuate (3x3) distance matrix between all atoms\\n Step 2. Loop over atoms and calculate Enuc from formul...
[ "0.6803577", "0.66750014", "0.6656196", "0.6606101", "0.6376575", "0.6330918", "0.61492133", "0.6148391", "0.61035", "0.59663403", "0.5963803", "0.594638", "0.58787113", "0.5813218", "0.5795097", "0.57663447", "0.5763135", "0.57482797", "0.57417077", "0.5741406", "0.5720735",...
0.79448336
0
Copy this Matchable. Matchable objects are usually copied during dialect inheritance. One dialect might make a copy (usually with some modifications) to a dialect element of a parent dialect which it can then use itself. This provides a little more modularity in dialect definition.
def jth9(YKHO: T, **B2fa: Any) -> Kt_s: return jth9.copy(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n...
[ "0.70335364", "0.70335364", "0.70335364", "0.70335364", "0.70335364", "0.69854015", "0.69357467", "0.69357467", "0.69357467", "0.69357467", "0.69357467", "0.68930846", "0.68810177", "0.6875828", "0.687073", "0.68667144", "0.6860642", "0.6860642", "0.68398386", "0.68276465", "...
0.0
-1
Resize and apply VGG15 preprocessing
def IWxP(WZrJ, Ylkb): r8I_ = [] for VXjJ in WZrJ: VXjJ = XC5k.resize(VXjJ, dsize=Ylkb, interpolation=XC5k.INTER_CUBIC) r8I_.append(ZylS.keras.applications.vgg16.preprocess_input(VXjJ)) return oyIN.array(r8I_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZsU2(jTqs=10):\n return s3br(AaDq(_Fei['B']))", "def ZsU2():\n return s3br(AaDq(_Fei['B']))", "def DTy7():\n a7Lb = ileL()\n a7Lb.add(Zlsf(lambda WKvO: WKvO / 255.0 - 0.5, input_shape=(160, 320, 3)))\n a7Lb.add(Ym4f(cropping=((50, 20), (0, 0))))\n a7Lb.add(yHwh(64, (3, 3), padding='same',...
[ "0.6947544", "0.692985", "0.6870806", "0.6858241", "0.6783628", "0.6728916", "0.6593749", "0.6580385", "0.6574707", "0.6573907", "0.65702593", "0.65595585", "0.6515784", "0.6462159", "0.64559835", "0.645556", "0.6408038", "0.6382866", "0.63813114", "0.6358701", "0.63552797", ...
0.64267343
16
Protect resource with specified scopes.
def rTaS(*uC2a): def h3Xc(eHNT): @zaGL(eHNT) def XIpm(*qIxc, **B2fa): bo34.info('Check authorization') if QePW.method == 'GET': NT__ = QePW.args['access_token'] bo34.info(NT__) else: NT__ = QePW.get_json()['access_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s6P4(YKHO, NKcE, *uC2a):\n\n @zaGL(NKcE)\n def XIpm(Eorv, qv1X, _hkX, *qIxc, **B2fa):\n if qv1X.context.get('oauth'):\n return NKcE(Eorv, qv1X, _hkX, *qIxc, **B2fa)\n deVW, HpmP = YKHO.verify_request(qv1X, uC2a)\n if not deVW:\n if YKHO._on_error:\n ...
[ "0.7092284", "0.598519", "0.5958171", "0.5951768", "0.591446", "0.5904691", "0.58565193", "0.58258986", "0.5812599", "0.57621694", "0.5761001", "0.5754672", "0.5698258", "0.56657743", "0.5564685", "0.5481589", "0.54554033", "0.54554033", "0.54554033", "0.54283327", "0.5388663...
0.57299167
12
If there are resource record sets of unsupported type in the response, they are dropped.
def WNfO(YKHO): DVVB = b'ABCDEF1234' ZfeE = HheD.xml.replace(b'ResourceRecords>', b'XXResourceRecords>').replace(b'AliasTarget>', b'XXAliasTarget>') x0hE = YKHO._client_for_rrsets(DVVB, ZfeE) O6aP = YKHO.successResultOf(x0hE.list_resource_record_sets(zone_id=DVVB)) aEqx = {} YKHO.assertEquals(O6...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wJY5(YKHO):\n J2us: x1iM[j0gT] = K0wY.get_matching_answer_records(YKHO.resource_records, 'name1', 5)\n YKHO.assertEqual(len(J2us), 0)", "def Ao7f(YKHO, VUF1: FHIRStore):\n with cR0t(mgaz, match='unsupported FHIR resource: \"unknown\"'):\n VUF1.delete('unknown', '864321')", "def LqRS(YKHO):\...
[ "0.58988845", "0.5809489", "0.57615334", "0.55759937", "0.5564641", "0.5483603", "0.5457291", "0.54475915", "0.5419037", "0.5362155", "0.5353176", "0.53416246", "0.53311664", "0.53067243", "0.5289229", "0.5270613", "0.52638274", "0.52562755", "0.5250061", "0.52459913", "0.516...
0.64624274
0
implements the average of a pandas series from scratch
def S8vG(dy_H): return sum(dy_H) / len(dy_H) pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S8vG(dy_H):\n pass", "def a72Q(dy_H: Series) -> float:\n vqLr = (dy_H.diff() > 0).astype(int).diff().replace(-1, 1)\n return vqLr.resample('A').sum().mean()", "def V_SC(YKHO):\n YKHO.average_df = YKHO.modded_df.mean(axis=0)", "def dBGK(YKHO, dy_H):\n return dy_H.ix[-YKHO.window:].mean()", ...
[ "0.8485968", "0.72823846", "0.7148636", "0.71199787", "0.70879084", "0.70742446", "0.7057187", "0.69244903", "0.6900926", "0.67791116", "0.67634976", "0.6729213", "0.6710477", "0.6709827", "0.6709014", "0.66948813", "0.66825646", "0.66762435", "0.66436195", "0.66436195", "0.6...
0.824715
1
Return or set DataModelDict representation of the gamma surface.
def C3ST(YKHO, C3ST=None, XoxC='angstrom', Vo5_='mJ/m^2'): if C3ST is not None: C3ST = GWua(C3ST).find('stacking-fault-map') FlUN = rh6a(avect=C3ST['box']['avect'], bvect=C3ST['box']['bvect'], cvect=C3ST['box']['cvect']) hTs9 = C3ST['shift-vector-1'] nEPX = C3ST['shift-vector-2'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KMvS(YKHO):\n return gQS9.space_T_gamma(YKHO)", "def KMvS(YKHO):\n return gQS9.quatern_gamma(YKHO)", "def KMvS(YKHO):\n return YKHO._gamma", "def KMvS(YKHO):\n return YKHO._gamma", "def KMvS(YKHO):\n return YKHO._gamma", "def ZzNQ(YKHO):\n if YKHO._gamma is None:\n Cwt5 = YKH...
[ "0.66363376", "0.6170865", "0.6129661", "0.6129661", "0.6129661", "0.60716045", "0.6054735", "0.60206646", "0.60042876", "0.59733766", "0.5928779", "0.5927727", "0.5918809", "0.5820888", "0.5801074", "0.5801074", "0.5796527", "0.57541996", "0.57481873", "0.5674714", "0.567144...
0.0
-1
Conversion function from Cartesian positions to normalized a1, a2 coordinates.
def Lmj7(YKHO, oeNL, hTs9=None, nEPX=None): if hTs9 is None: hTs9 = YKHO.a1vect hTs9 = oyIN.asarray(hTs9) if nEPX is None: nEPX = YKHO.a2vect nEPX = oyIN.asarray(nEPX) hTs9 = oyIN.dot(hTs9, YKHO.box.vects) nEPX = oyIN.dot(nEPX, YKHO.box.vects) y2yv = oyIN.cross(hTs9, nEPX) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ackG(YKHO):\n tjkb = ML2l(YKHO[0], YKHO[1])\n d6pt = 2\n if YKHO[0].lc() > 0 or YKHO[1].lc() > 0:\n V3hn = 0\n else:\n V3hn = 1\n ywwl = YKHO.codomain().ambient_space().dimension_relative() + 1\n while tjkb != 1 and d6pt < ywwl:\n if YKHO[d6pt].lc() > 0:\n V3hn...
[ "0.6576612", "0.61695135", "0.61555207", "0.6141586", "0.61237335", "0.61237335", "0.60629594", "0.6045457", "0.6037456", "0.60244805", "0.60018575", "0.5962005", "0.59471816", "0.5946844", "0.5937258", "0.59307086", "0.593064", "0.58885366", "0.5886818", "0.58805037", "0.587...
0.0
-1
Return bits lsb+width1 downto lsb of val If the output width is 1 bit, convert result to bool.
def slice(wEf2, IWSC, TVTK=1): yvT9 = (wEf2 & 2 ** TVTK - 1 << IWSC) >> IWSC if TVTK == 1: return bool(yvT9) else: return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Lsm(wEf2, TVTK):\n return wEf2 & (1 << TVTK) - 1", "def V0a2(wEf2, q1Gy):\n return True if wEf2 & 1 << q1Gy else False", "def KFD6(YKHO, wEf2, or8S):\n return wEf2 >> or8S & 1", "def UOVU(wEf2, Jyyj):\n ZHfW, DkWr = wQnl(Jyyj)\n return (wEf2 & ZHfW) >> DkWr", "def KFD6(wEf2, or8S):\n ...
[ "0.67062074", "0.5887613", "0.5805824", "0.57478184", "0.57412094", "0.57235754", "0.5685654", "0.56799084", "0.5679578", "0.5618578", "0.5618578", "0.5590335", "0.5561081", "0.5545845", "0.55283165", "0.55203676", "0.55196625", "0.55091715", "0.55055904", "0.5502251", "0.547...
0.72158116
0
Return a sklearn or compatible estimator from Galaxy tool inputs
def z099(kR6S): iI3q = kR6S['selected_module'] yscB = nKIV('galaxy_ml.model_persist', 'load_model_from_h5') if iI3q == 'custom_estimator': RV8Z = kR6S['c_estimator'] wJ4v = yscB(RV8Z) return wJ4v if iI3q == 'binarize_target': ZLZy = kR6S['wrapped_estimator'] ZLZy ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OqWT(Cwt5, t0qN):\n if t0qN:\n BHCt = yjvs(Cwt5)\n elif Cwt5 is None:\n BHCt = s3H_()\n else:\n BHCt = s3H_(Cwt5)\n return BHCt", "def z099(mWFP):\n RVWO = ['LinearRegression', 'Ridge', 'Lasso', 'BayesianRidge', 'DecisionTreeRegressor', 'RandomForestRegressor', 'SVR', 'Gra...
[ "0.67818457", "0.6725821", "0.65336627", "0.6405161", "0.6386225", "0.6359282", "0.6335162", "0.62516004", "0.62477803", "0.62477803", "0.6235182", "0.6223865", "0.6160848", "0.60878295", "0.6029643", "0.5926742", "0.59222376", "0.59200186", "0.5871452", "0.58645236", "0.5848...
0.7015247
0
return main estimator. For pipeline, main estimator's final estimator. For fitted SearchCV object, that's the best_estimator_. For stacking ensemble family estimator, main estimator is the meta estimator.
def WTVq(BHCt): JNBf = BHCt.__class__.__name__ if isinstance(BHCt, nPIK.Pipeline): return WTVq(BHCt.steps[-1][-1]) elif isinstance(BHCt, AQU0._search.BaseSearchCV): return WTVq(BHCt.best_estimator_) elif JNBf in ('StackingCVClassifier', 'StackingClassifier'): return WTVq(BHCt.met...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oRwh(M_NZ):\n if isinstance(M_NZ, Hr6K):\n return M_NZ.best_estimator_\n jKkP = gvXN(M_NZ)\n if jKkP is not None:\n return oRwh(jKkP)\n return M_NZ", "def zwB3(BHCt):\n try:\n return BHCt.estimator\n except Exception:\n return BHCt", "def BHCt(YKHO):\n if YK...
[ "0.74810034", "0.71004516", "0.7094815", "0.7019522", "0.69481045", "0.6515701", "0.64575994", "0.64575994", "0.6426206", "0.6425584", "0.6312887", "0.6293089", "0.6178786", "0.60232365", "0.6006575", "0.5987491", "0.5935762", "0.59317625", "0.5776052", "0.5753569", "0.575083...
0.8554827
0
Normalize the barcodes present in the provided codebook so that their L2 norm is 1.
def IauB(YKHO, zv88=False, yaky=False): IdSz = YKHO._codebook.get_barcodes(ignoreBlanks=zv88) etQF = oyIN.sqrt(oyIN.sum(IdSz * IdSz, axis=1)) if not yaky: nF2a = oyIN.array([NkkI(WKvO) for WKvO, r8hN in zip(IdSz, etQF)]) return nF2a else: r1w7 = [] for Fg_i in IdSz: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CDLY(Nlic):\n return oyIN.square(Nlic[:, 1] - Nlic[:, 0]).sum() / 4", "def hTJq(Nlic):\n return (Nlic[:, 1] - Nlic[:, 0]).max()", "def bv2i(XP5J, Nlic):\n if XP5J == 1:\n return CDLY(Nlic)\n elif XP5J == 'inf':\n return hTJq(Nlic)\n else:\n vC9B = len(Nlic)\n U2cy...
[ "0.63970095", "0.57651454", "0.57397836", "0.56413877", "0.5627931", "0.54654837", "0.53658473", "0.53563106", "0.5335114", "0.53083974", "0.5228046", "0.52210826", "0.5220071", "0.5215719", "0.5201713", "0.51857907", "0.51675093", "0.51586765", "0.51498663", "0.51489145", "0...
0.67834103
0
Selectively choose to monkeypatch the 'socket' module. If 'will_be_pumped' is set to False, the patched socket module will take care of polling networking events in a scheduled tasklet. Otherwise, the controlling application is responsible for pumping these events.
def R8sm(Fh_F=True): if sCSU: from sCSU import _socket HwRy.modules['_socket'] = _socket else: from stacklesslib.replacements import socket socket._sleep_func = SwrO socket._schedule_func = lambda: SwrO(0) if Fh_F: socket.stacklesssocket_manager(None) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R8sm():\n from socket import socket\n from .network import recvbytes, recvobj, sendobj\n socket.recvbytes = recvbytes\n socket.recvobj = recvobj\n socket.sendobj = sendobj", "def Xs2y(YKHO):\n nGaG = GGmw.socket\n GGmw.socket = YKHO.MockSocket\n try:\n yield\n finally:\n ...
[ "0.6438948", "0.63242227", "0.63242227", "0.61768585", "0.6169941", "0.61319596", "0.6096712", "0.60589427", "0.6043124", "0.5940202", "0.5940202", "0.5940202", "0.57836604", "0.55875623", "0.5559721", "0.5546838", "0.5546838", "0.54520047", "0.5443578", "0.54131734", "0.5358...
0.87301254
0
Remove Wikidata entities without labels from the graph. Operates inplace on `g`. By definition, entities with titles that are proper nouns should be the only Wikidata entities in our KG. Therefore, all Wikidata entities with lowercase titles (which, by the Wikidata style guide means they're not proper nouns) should not...
def i88K(Oa1e: rdflib.Graph) -> E5Ed.Graph: bo34.info('Removing Wikidata entities with no labels') for KCHu, XP5J, z1Rg in PRqg(Oa1e.triples((None, t5wx.potentialAction, E5Ed.Literal('delete')))): Oa1e.remove((KCHu, XP5J, z1Rg)) Oa1e.remove((None, None, KCHu))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YLuj(YKHO, Crrw):\n if isinstance(Crrw, str):\n Crrw = [Crrw]\n Bor4 = list(set(YKHO.labels).difference(Crrw))\n return YKHO._new_group_with_only_labels(Bor4)", "def fqJA(YKHO):\n return YKHO.replace_labels([])", "def S7d8(YKHO, KMS3):\n w9D7 = []\n for Emd4 in KMS3:\n R77X ...
[ "0.5767638", "0.5728211", "0.5581578", "0.55675054", "0.54753155", "0.5456509", "0.54405427", "0.5342229", "0.53341264", "0.5295971", "0.52837723", "0.5278964", "0.52052456", "0.51593876", "0.51425344", "0.51199275", "0.508482", "0.50747406", "0.50714684", "0.5068804", "0.506...
0.8260525
0
This method should return the other kind of checker or playing piece, i.e., the piece being played by self's opponent. In particular, if self is playing 'X', this method returns 'O' and viceversa.
def n0KN(YKHO): if YKHO.ox == 'X': return 'O' else: return 'X'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HRrY(YKHO):\n if YKHO.checker == 'X':\n return 'O'\n else:\n return 'X'", "def HRrY(YKHO):\n if YKHO.checker == 'X':\n Z9rn = 'O'\n else:\n Z9rn = 'X'\n return Z9rn", "def HRrY(YKHO):\n if YKHO.checker == 'X':\n return 'O'\n else:\n return 'X'"...
[ "0.7377035", "0.73737395", "0.7373289", "0.7357874", "0.7286272", "0.72161937", "0.7099073", "0.7094922", "0.7060586", "0.69225645", "0.68791276", "0.68129134", "0.6805482", "0.677256", "0.67440635", "0.671552", "0.66711843", "0.6670729", "0.66478574", "0.6635017", "0.6596084...
0.6976072
9
Set up a Configurator instance. This Configurator instance sets up a pointer to the location of the database. It also includes the models from your app's model package. Finally it tears everything down, including the inmemory SQLite database. This configuration will persist for the entire duration of your PyTest run.
def wOGa(QePW): GPtr = kO5c.setUp(settings={'sqlalchemy.url': TLdo}) GPtr.include('learning_journal.models') def mTtn(): kO5c.tearDown() QePW.addfinalizer(mTtn) return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cu_7(YKHO):\n QePW = iSgA.DummyRequest()\n YKHO.config = iSgA.setUp(request=QePW)\n YKHO.config.include('pyramid_chameleon')\n yield\n iSgA.tearDown()", "def wOGa(QePW):\n gCuF = {'sqlalchemy.url': 'sqlite:///:memory:'}\n GPtr = kO5c.setUp(settings=gCuF)\n GPtr.include('learning_journ...
[ "0.6950361", "0.6900285", "0.6660982", "0.66543424", "0.6609549", "0.6609549", "0.65282273", "0.65186685", "0.65186685", "0.65153456", "0.65100056", "0.6506959", "0.6479444", "0.6457371", "0.6457371", "0.6442564", "0.64379513", "0.64338225", "0.6386424", "0.63825274", "0.6371...
0.6683509
2
Create a session for interacting with the test database. This uses the dbsession_factory on the configurator instance to create a new database session. It binds that session to the available engine and returns a new session for every call of the dummy_request object.
def ouvA(wOGa, QePW): eO9i = wOGa.registry['dbsession_factory'] cuiw = eO9i() eHpk = cuiw.bind i_Aq.metadata.create_all(eHpk) def mTtn(): cuiw.transaction.rollback() QePW.addfinalizer(mTtn) return cuiw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PG2U(vY7J, QePW):\n eO9i = vY7J.app.registry['dbsession_factory']\n cuiw = eO9i()\n eHpk = cuiw.bind\n\n def mTtn():\n cuiw.transaction.rollback()\n QePW.addfinalizer(mTtn)\n return cuiw", "def Dbxd(g4pi, cuiw) -> DMju:\n if cuiw != None:\n return cuiw\n bo34 = G9jH.getL...
[ "0.75025976", "0.72803146", "0.7279213", "0.72662073", "0.7209317", "0.72091466", "0.7184532", "0.7184532", "0.7159436", "0.71510327", "0.71510327", "0.7148016", "0.70537394", "0.70279706", "0.6987658", "0.69827485", "0.6970625", "0.6949481", "0.6949481", "0.6919582", "0.6870...
0.7170735
8
Instantiate a fake HTTP request.
def fiHr(ouvA): gE0D = kO5c.DummyRequest(dbsession=ouvA) return gE0D
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pXPL(QOe9, bD7m, MOPg=None):\n QePW = X5Wl(url=bD7m)\n if MOPg:\n QePW.headers = MOPg\n QOe9.record(QePW, X5Wl.getHttpMethodFilter())\n return QePW", "def d9vn(pkvR=None):\n if not pkvR:\n pkvR = d40j()\n return VNUm(pkvR)", "def uLyw(YKHO, bD7m, NKcE, MOPg, nPrm=None, NArs=...
[ "0.7402494", "0.7357413", "0.7251986", "0.7070789", "0.7065431", "0.7030599", "0.6979636", "0.6970727", "0.688846", "0.6882636", "0.68793577", "0.67443043", "0.670985", "0.66331774", "0.6614573", "0.6596174", "0.6575411", "0.6569985", "0.6551302", "0.6549452", "0.653776", "...
0.62353826
46
Create an instance of webtests TestApp for testing routes.
def vY7J(): from webtest import TestApp from learning_journal import main P4t4 = main({}, **{'sqlalchemy.url': TLdo}) vY7J = TestApp(P4t4) eO9i = P4t4.registry['dbsession_factory'] eHpk = eO9i().bind i_Aq.metadata.create_all(bind=eHpk) return vY7J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZbZu(YKHO):\n from moe import main\n P4t4 = main({}, use_mongo='false')\n from webtest import TestApp\n YKHO.testapp = TestApp(P4t4)", "def ZbZu(YKHO):\n from moe import main\n P4t4 = main({}, use_mongo='false')\n from webtest import TestApp\n YKHO.testapp = TestApp(P4t4)", "def vY7...
[ "0.7931985", "0.7931985", "0.7776041", "0.77554274", "0.77047396", "0.760121", "0.75772965", "0.7560331", "0.741552", "0.74097", "0.7360681", "0.7346742", "0.7346742", "0.73357326", "0.7321915", "0.73148024", "0.72979516", "0.7261567", "0.7261567", "0.7233311", "0.7231217", ...
0.6904204
41
The home page has a table in the html.
def TvNo(vY7J): geh0 = vY7J.get('/', status=200) _R2e = str(geh0.html) V1HT = 'Learning Blog' assert V1HT in _R2e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n xU0C = NCls.execute('SELECT * FROM tables')\n VreF = []\n for a1PO in xU0C:\n if a1PO['count'] > 0:\n VreF.append(a1PO)\n return TvZl('home.html', occTables=VreF)", "def kZiy():\n return WsL5.render_template('home.html', rows=c_Kg())", "def tyNF():\n return TvZ...
[ "0.7699925", "0.7508282", "0.6999229", "0.69980246", "0.6995433", "0.69648963", "0.6963524", "0.6945188", "0.6925565", "0.6910472", "0.6892257", "0.68911964", "0.68834746", "0.68687993", "0.6850666", "0.6819084", "0.68086994", "0.67952", "0.6778814", "0.677735", "0.67355955",...
0.0
-1
Divide a / b and return the biggest integer close to the quotient.
def lO1m(jzdc, Fg_i): assert Fg_i > 0, Fg_i return int(epAf.ceil(float(jzdc) / Fg_i))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LMj4(jzdc, Fg_i):\n while jzdc != 0:\n jzdc, Fg_i = (Fg_i % jzdc, jzdc)\n return Fg_i", "def IZn1(jzdc, Fg_i) -> int:\n if jzdc == 0:\n return Fg_i\n return IZn1(Fg_i % jzdc, jzdc)", "def pqtO(jzdc, Fg_i):\n return -(-jzdc // Fg_i)", "def cKUR(jzdc, Fg_i):\n assert jzdc > ...
[ "0.7922077", "0.78721935", "0.7590726", "0.7580792", "0.7518787", "0.7489604", "0.7466982", "0.7424181", "0.74194646", "0.7361747", "0.7324947", "0.73236996", "0.72710836", "0.7258751", "0.7227036", "0.7154722", "0.71520513", "0.71418935", "0.71414804", "0.7108672", "0.709378...
0.6772567
54
Convert an array into an OrderedDict kfields > array
def UYU8(qw7D, *TznT): return wk71(qw7D, seET.itemgetter(*TznT), fTnT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OL85(YKHO):\n return U8Lr(((eHNT, getattr(YKHO, eHNT)) for eHNT in YKHO._fields))", "def IAhf(YKHO):\n return U8Lr(((mWFP, YKHO[YRbF]) for YRbF, mWFP in enumerate(YKHO._fields)))", "def ptBw(ezWE):\n Ylbp = {}\n for G1Hx in ezWE.dtype.names:\n Ylbp[G1Hx] = ezWE[G1Hx]\n return Ylbp", ...
[ "0.66082543", "0.6411694", "0.61125916", "0.59782135", "0.595836", "0.5922736", "0.5850206", "0.5825614", "0.5810204", "0.5776115", "0.5776115", "0.5771699", "0.57595617", "0.5719945", "0.56400627", "0.5607141", "0.5599297", "0.5571929", "0.55537325", "0.55513704", "0.5519787...
0.5407
28
Given a list of objects, returns a sublist by extracting randomly some elements. The reduction factor (< 1) tells how small is the extracted list compared to the original list.
def RHWP(ei4T, Nt_c, yokr=42): assert 0 < Nt_c <= 1, Nt_c fTff = tuKI.Random(yokr) yvT9 = [] for YEnM in ei4T: if fTff.random() <= Nt_c: yvT9.append(YEnM) return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _9b1(rnIm, xBlD):\n return ZylS.random.shuffle(rnIm)[:xBlD]", "def mon_(EcVT, KCHu):\n return [jzdc for jzdc in EcVT if tuKI.random() <= KCHu]", "def nqbH(IqQl):\n return mvm2(IqQl, ajWY(1, len(IqQl)))", "def X4O_(mBYt, JxU2):\n mLGw = int(JxU2 * len(mBYt))\n tuKI.shuffle(mBYt)\n return...
[ "0.6877256", "0.6726586", "0.66736215", "0.64761794", "0.6475367", "0.6451062", "0.6386792", "0.6375159", "0.63440144", "0.6310716", "0.6283524", "0.62779415", "0.62631804", "0.6181964", "0.6168144", "0.61661553", "0.6154079", "0.6141495", "0.6133194", "0.61095107", "0.609924...
0.71767026
0
Add a new parameter. This method keeps track of the number of parameters and their position by calculating the row index as well as the column index and passing the according arguments to the method add_content_in_par_frame.
def UdJ4(YKHO, SOv9, O0Ix, MV4P): xjUu = SOv9.get_name() FyYo = SOv9.get_index_vars() HyJ9 = SOv9.get_default_value() XNqf = SOv9.get_short_desc() dOy0 = pQ7R(SOv9) Sp_5 = SOv9.is_logical soLF = SOv9.is_logic_array ba_b = SOv9.is_index_var BWXx = SOv9.get_value() hzro = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, Mzf9, **B2fa):\n if Mzf9 in YKHO.pars():\n YKHO.warning('parameter \"%s\" already present' % Mzf9)\n return\n YKHO.__parameters.append(Mzf9)\n YKHO.__ParHandle[Mzf9] = XDS4(Mzf9, **B2fa)", "def Efyh(YKHO, xqoZ):\n YKHO.parameters.append(xqoZ)", "def UdJ4(YKHO, k78t):\n ...
[ "0.6824656", "0.67808884", "0.66215295", "0.66179436", "0.6615135", "0.6554505", "0.65416026", "0.6522191", "0.6406714", "0.63930887", "0.63906807", "0.63213056", "0.62662834", "0.62282354", "0.61943173", "0.6165385", "0.614208", "0.6138765", "0.61300707", "0.60712105", "0.60...
0.64185864
8
Deserializes the JSON file to __objects
def U3hF(YKHO): try: with open(YKHO.__file_path, 'r') as nUeQ: Ebdo = qQXR.load(nUeQ) for G1Hx, nvqC in Ebdo.items(): C3ST = KndY[G1Hx[0:G1Hx.index('.')]] YKHO.__objects[G1Hx] = C3ST(**nvqC) except FileNotFoundError: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ddor(YKHO, TLbt):\n pass", "def ffSL(YKHO, Ux0P):\n with open(Ux0P, 'r') as G6EG:\n YKHO.sensors = qQXR.load(G6EG, cls=Ajxs)", "def Ueki(YKHO):\n if not Hy7s.path.exists(YKHO.filename):\n return\n with open(YKHO.filename, 'r') as ytgA:\n YKHO._object = HjBM.load(ytgA)", "...
[ "0.7162121", "0.7069028", "0.7061301", "0.70224226", "0.7001058", "0.6959057", "0.6941609", "0.68927723", "0.68856627", "0.687721", "0.6866052", "0.68632406", "0.68623567", "0.6820892", "0.67775995", "0.67696184", "0.67615616", "0.6741738", "0.673976", "0.6728507", "0.6728315...
0.0
-1
Round all entries of a 2D array to the mean.
def K8pb(XkN1): JBMS = XTiz.mean(XkN1) XkN1[:, :] = JBMS return XkN1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a47U(p891):\n return oyIN.around(oyIN.mean(p891), 2)", "def NkkI(ezWE):\n return ezWE / oyIN.mean(ezWE)", "def sA8l(jzdc, jDK_=None):\n return jzdc.mean(axis=jDK_).round().astype(jzdc.dtype)", "def IIJ_(ezWE: np.ndarray) -> uLKX[float, oyIN.ndarray]:\n return oyIN.mean(ezWE, axis=-1)", "def...
[ "0.7855557", "0.7197549", "0.71390486", "0.71271104", "0.71125764", "0.69703597", "0.66993064", "0.6698779", "0.66249156", "0.6600712", "0.65782624", "0.6558887", "0.6558887", "0.65520674", "0.6521251", "0.65019906", "0.64964366", "0.64752877", "0.6451048", "0.6445103", "0.64...
0.6763134
6
sprite object used to represent an image x real number y real number Changes a sprite's position to the input x and y and uses the size of the sprite to realign sprite so it is printed in it's "center"
def BZN_(YKHO, Jqc7, WKvO, LVAh): aG9R, Fu7l = YKHO.getSize(Jqc7) wBZN = bSSA[0] re6M = bSSA[1] KDmU = bSSA[2] rwK9 = bSSA[3] Jqc7.position = (pBSp((WKvO + re6M) * 10 - aG9R / 2), pBSp((-LVAh + rwK9) * 10 - Fu7l / 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RSIi(Jqc7: arcade.Sprite, WKvO: float, LVAh: float) -> None:\n Jqc7.center_x = WKvO\n Jqc7.center_y = LVAh", "def PmvH(rGpw: int, WKvO: Union[float, int], LVAh: Union[float, int]) -> None:\n pass", "def FIMM(YKHO):\n super().__init__()\n YKHO.image = a9eO.image.load('resources/s.png')\n Y...
[ "0.7365104", "0.7303522", "0.6980774", "0.6891798", "0.68844193", "0.68779004", "0.6865427", "0.68467486", "0.6814321", "0.6802354", "0.6777457", "0.6758949", "0.6704072", "0.6683147", "0.664961", "0.6641964", "0.657795", "0.6568322", "0.6567875", "0.65514785", "0.65369254", ...
0.66984946
13
Process data posted from the attendee details form.
def zjEA(YKHO, tvqc, Xgjs): xOUm = QePW.env['event.registration']._get_website_registration_allowed_fields_rrno() maRW = {H5ew: Ty9i for H5ew, Ty9i in QePW.env['event.registration']._fields.items() if H5ew in xOUm} PmCa = {} rnFd = {} for H5ew, BWXx in Xgjs.items(): ewCu, hGI9 = H5ew.split('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i9Xz(YKHO):\n YKHO.kwargs['collect'].reset_form_data()", "def bXIh(YKHO, Msos):\n if Msos:\n YKHO.data = Msos[0]", "def bXIh(YKHO, Msos):\n if Msos:\n YKHO.data = Msos[0]", "def xP2o(YKHO):\n YKHO.process_csv()\n YKHO.process_email()", "def m8z6(YKHO, D3lj, c9ua, zp3f, ZJe_...
[ "0.5351072", "0.5347395", "0.5347395", "0.5339304", "0.53246", "0.53055876", "0.5211292", "0.5198685", "0.51388305", "0.5085347", "0.5040853", "0.5034741", "0.50254786", "0.5019402", "0.5012972", "0.5004532", "0.50036705", "0.49630043", "0.49368054", "0.49367338", "0.49340317...
0.5549211
0
Load Pretrained VGG Model into TensorFlow.
def LbAo(cb_Q, VyBP): C3ST = ZylS.saved_model.loader.load(cb_Q, ['vgg16'], VyBP) pNZh = ZylS.get_default_graph() njad = pNZh.get_tensor_by_name('image_input:0') sMyr = pNZh.get_tensor_by_name('keep_prob:0') zyGg = pNZh.get_tensor_by_name('layer3_out:0') GMev = pNZh.get_tensor_by_name('layer4_out...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LbAo(cb_Q, VyBP):\n lFgm = 'vgg16'\n kvAN = 'image_input:0'\n jlSf = 'keep_prob:0'\n XYEU = 'layer3_out:0'\n Fq6D = 'layer4_out:0'\n FI61 = 'layer7_out:0'\n ZylS.saved_model.loader.load(cb_Q, [lFgm], VyBP)\n pNZh = ZylS.get_default_graph()\n input = pNZh.get_tensor_by_name(kvAN)\n ...
[ "0.79139525", "0.78912765", "0.78115135", "0.77844846", "0.7764394", "0.7755438", "0.7742855", "0.773247", "0.77111346", "0.77089316", "0.7696031", "0.76932967", "0.7681593", "0.76731616", "0.7656345", "0.7629141", "0.76261705", "0.7620557", "0.7619268", "0.7599419", "0.75826...
0.7886453
2
Load Pretrained VGG Model into TensorFlow.
def D3PM(cb_Q): C3ST = ZylS.saved_model.loader.load(cb_Q, ['vgg16'], VyBP) pNZh = ZylS.get_default_graph() njad = pNZh.get_tensor_by_name('image_input:0') sMyr = pNZh.get_tensor_by_name('keep_prob:0') zyGg = pNZh.get_tensor_by_name('layer3_out:0') GMev = pNZh.get_tensor_by_name('layer4_out:0') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LbAo(cb_Q, VyBP):\n lFgm = 'vgg16'\n kvAN = 'image_input:0'\n jlSf = 'keep_prob:0'\n XYEU = 'layer3_out:0'\n Fq6D = 'layer4_out:0'\n FI61 = 'layer7_out:0'\n ZylS.saved_model.loader.load(cb_Q, [lFgm], VyBP)\n pNZh = ZylS.get_default_graph()\n input = pNZh.get_tensor_by_name(kvAN)\n ...
[ "0.79127264", "0.7890369", "0.7886074", "0.7886074", "0.7811095", "0.77832735", "0.77636945", "0.77545273", "0.774201", "0.7731532", "0.77104324", "0.7708222", "0.76950103", "0.769301", "0.76810133", "0.7672402", "0.76555246", "0.7628421", "0.76255876", "0.76196384", "0.76183...
0.727345
31
Return the output of transpose convolution given kernel_size k and strides s
def ZQBP(gEmA, G1Hx, KCHu, lzjZ): return ZylS.layers.conv2d_transpose(inputs=gEmA, filters=OkhE, kernel_size=(G1Hx, G1Hx), strides=(KCHu, KCHu), padding='same', name=lzjZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENWQ(FCPk, Ot1W, _0fC, ivFb=1, dvgN=0, TWfd=0):\n return (FCPk - 1) * _0fC - 2 * dvgN + ivFb * (Ot1W - 1) + TWfd + 1", "def jbux(WZcn, _0fC):\n PtXs = max(WZcn - _0fC, 0)\n\n def JfyU(tpio, WXkz=1):\n return tpio * _0fC ** WXkz + PtXs * sum((_0fC ** naF9 for naF9 in range(WXkz)))\n JfyU.__...
[ "0.7048132", "0.68629056", "0.6700288", "0.6638998", "0.6600361", "0.65496516", "0.6483213", "0.64746934", "0.645518", "0.6393829", "0.636522", "0.63223416", "0.6302994", "0.6285849", "0.6267945", "0.6267945", "0.62646395", "0.6256474", "0.6255641", "0.6198444", "0.61624527",...
0.62009275
19
Returns list List of the weights for the different classifiers.
def wT46(YKHO): return YKHO.weights
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _mSQ(YKHO) -> x1iM:\n return YKHO._weights", "def wT46(YKHO):\n kkTp = []\n for PXGI in YKHO.__units:\n nTUj = PXGI.get_weights()\n kkTp.append(nTUj)\n return kkTp", "def _mSQ(YKHO) -> x1iM[float]:\n return [Acvy.weight for Acvy in YKHO.population]", "def wT46(YKHO):\n ret...
[ "0.76739883", "0.76261854", "0.76080567", "0.7472639", "0.73546445", "0.7346339", "0.7346339", "0.7329081", "0.7289544", "0.72816527", "0.7272965", "0.7230633", "0.722654", "0.7221621", "0.7214926", "0.7209716", "0.72044027", "0.71425676", "0.71321416", "0.7123068", "0.708814...
0.6929766
35
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(y7GR, K0do, qtWj): tspZ = y7GR.learning_rate * 0.1 ** (qtWj // y7GR.lr_update) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.0
-1
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0) Ylbp.append(R2Dg.mul_(100....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003475", "0.79748386", "0.79730123", "0.7941108", "0.7864101", "0.7804021", "0.77081025", "0.76225674", "0.7593267", "0.75617754", "0.7519868", "0.743003", "0.74130684", "0.73764634", "0.7375376", "0.73218805", "0.72552085", "0.72370315", "0.72279894", "0.7204584", "0.713...
0.0
-1
return model training history single plot
def lj24(YKHO, **B2fa): if YKHO.input_branch == 'dual': FM8C = B2fa['df_history'] HJ18 = ['dense_3_acc', 'dense_4_acc', 'val_dense_3_acc', 'val_dense_4_acc'] e1UZ = ['dense_3_loss', 'dense_4_loss', 'val_dense_3_loss', 'val_dense_4_loss'] elif YKHO.input_branch == 'single': FM8C =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DLMa(YKHO, tvqc):\n YKHO.trainer.plot_history()", "def pTX5(FLXQ):\n print(FLXQ.history.keys())\n QrM1.plot(FLXQ.history['acc'])\n QrM1.plot(FLXQ.history['val_acc'])\n QrM1.title('model accuracy')\n QrM1.ylabel('accuracy')\n QrM1.xlabel('epoch')\n QrM1.legend(['train', 'test'], loc='u...
[ "0.78464764", "0.77308154", "0.76647204", "0.7600933", "0.7595865", "0.7581589", "0.7530025", "0.752002", "0.74909455", "0.748943", "0.74803203", "0.74775606", "0.74189276", "0.74001724", "0.73728615", "0.73646235", "0.73540455", "0.7292151", "0.7255319", "0.72113866", "0.719...
0.0
-1
return model training history single plot
def yeBb(YKHO, **B2fa): if YKHO.input_branch == 'dual': FM8C = B2fa['df_history'] HJ18 = ['dense_3_acc', 'dense_4_acc', 'val_dense_3_acc', 'val_dense_4_acc'] e1UZ = ['lr'] elif YKHO.input_branch == 'single': FM8C = B2fa['df_history'] HJ18 = ['loss', 'val_loss'] e1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DLMa(YKHO, tvqc):\n YKHO.trainer.plot_history()", "def pTX5(FLXQ):\n print(FLXQ.history.keys())\n QrM1.plot(FLXQ.history['acc'])\n QrM1.plot(FLXQ.history['val_acc'])\n QrM1.title('model accuracy')\n QrM1.ylabel('accuracy')\n QrM1.xlabel('epoch')\n QrM1.legend(['train', 'test'], loc='u...
[ "0.78464764", "0.77308154", "0.76647204", "0.7600933", "0.7595865", "0.7581589", "0.7530025", "0.752002", "0.74909455", "0.748943", "0.74803203", "0.74775606", "0.74189276", "0.74001724", "0.73728615", "0.73646235", "0.73540455", "0.7292151", "0.7255319", "0.72113866", "0.719...
0.0
-1
return ROC AUC plot for all classes
def cjEk(YKHO, **B2fa): W3go = len(YKHO.dict_label_c) fZ8H = [] EEGy = [YKHO.nb_classes, YKHO.nb_classes2] PlJO = [YKHO.y_true, YKHO.y2_true] d_Bf = YKHO.y_pred_list_df for YRbF in range(W3go): mktQ = RHxJ().fit(PlJO[YRbF].reshape(-1, 1)) SS32 = mktQ.transform(PlJO[YRbF].reshape(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9fU(M_NZ, Z5wO, H96n, TFPw, wytA=(17, 6)):\n OU5i = M_NZ.decision_function(Z5wO)\n OS6F = dict()\n Wbxj = dict()\n B4ss = dict()\n iTbU = rLdf.get_dummies(H96n, drop_first=False).values\n for YRbF in range(TFPw):\n OS6F[YRbF], Wbxj[YRbF], bGrB = v5W1(iTbU[:, YRbF], OU5i[:, YRbF])\n ...
[ "0.77491903", "0.7737362", "0.7549012", "0.7545309", "0.74050623", "0.7400503", "0.73988634", "0.7395051", "0.7372689", "0.73201966", "0.72653675", "0.72626525", "0.7199074", "0.7190031", "0.7162504", "0.7152874", "0.71475685", "0.7147479", "0.713799", "0.7137587", "0.7123714...
0.71608204
15
Return the growth rate of fox and rabbit populations.
def YVGJ(EcVT, a1PO=0): return qw7D([jzdc * EcVT[0] - Fg_i * EcVT[0] * EcVT[1], -Z9rn * EcVT[1] + Csk6 * Fg_i * EcVT[0] * EcVT[1]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lcUz(YKHO, CHNM: np.ndarray) -> oyIN.ndarray:\n return 1 - YKHO.species_collection.interaction_matrix.dot(CHNM) / YKHO.capacity", "def bV3u(CHNM, n294):\n up65 = 10000\n elXG = 1\n mVUw = elXG * n294 * (1 - oyIN.exp(-CHNM / up65))\n mVUw = oyIN.minimum(n294, mVUw)\n print('growth rate: ', m...
[ "0.7251934", "0.7209696", "0.6815252", "0.679628", "0.6541921", "0.6500941", "0.64791507", "0.64645445", "0.6437286", "0.643298", "0.63348645", "0.6318159", "0.6285087", "0.6283751", "0.6282803", "0.62561166", "0.6252807", "0.6233238", "0.6203936", "0.61651886", "0.6162658", ...
0.0
-1
Get the user's email from their profile
def DRod(): if 'abc_token' in cuiw: RuJL = ftIh.get('/api/v1/user/me/') if RuJL.status != 200: return None return RuJL.data['email'] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s3uM(PObu):\n Amyp = jVTo('users.info', {'user': PObu})\n D3lj = Amyp.get('user', {}).get('profile', {}).get('email', None)\n if D3lj is None:\n raise ValueError('Slack user profile did not have email')\n return D3lj", "def RC0X(YKHO, YEnM):\n return YEnM.user.email", "def RC0X(YKHO):...
[ "0.7957688", "0.79140604", "0.79098976", "0.7906775", "0.7870947", "0.7866573", "0.7811649", "0.7725027", "0.7703813", "0.7703813", "0.76963437", "0.75383943", "0.7532384", "0.75203025", "0.750589", "0.74698204", "0.74579704", "0.7331375", "0.7330478", "0.7323449", "0.7320262...
0.7599707
11
Gets the cq_workflow_superuser of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.
def afso(YKHO) -> tpYs: return YKHO._cq_workflow_superuser
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def afso(YKHO, afso: ConfigNodePropertyArray):\n YKHO._cq_workflow_superuser = afso", "def COmz(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'superuser')", "def COmz(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'superuser')", "def COmz(YKHO) -> qe4Y.Output[h8nf[bool]]:\n r...
[ "0.68689364", "0.58283997", "0.58283997", "0.5743459", "0.5531759", "0.5386206", "0.5315822", "0.5247744", "0.52409613", "0.5238164", "0.5218869", "0.5213455", "0.5209338", "0.51829076", "0.51538855", "0.51237273", "0.5116651", "0.51022685", "0.50901705", "0.50789076", "0.507...
0.75273967
0
Gets the granite_workflow_admin_user_group_filter of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.
def RMTE(YKHO) -> MH_9: return YKHO._granite_workflow_admin_user_group_filter
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RMTE(YKHO, RMTE: ConfigNodePropertyBoolean):\n YKHO._granite_workflow_admin_user_group_filter = RMTE", "def o8KU(YKHO):\n return YKHO._useradmin_groups", "def V6rx(YKHO):\n return YKHO._agg_filter", "def kWzS(YKHO):\n if YKHO._user_group is None:\n YKHO._migrate_leader_only()\n ...
[ "0.7470848", "0.6002631", "0.51807183", "0.5152751", "0.5131873", "0.51120055", "0.4996133", "0.4951366", "0.490428", "0.4888205", "0.48832512", "0.4803412", "0.4795255", "0.4782391", "0.4775469", "0.47528172", "0.47518703", "0.47403657", "0.4738316", "0.47340617", "0.4731561...
0.7968877
0
Gets the granite_workflow_enforce_workitem_assignee_permissions of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.
def wgWI(YKHO) -> MH_9: return YKHO._granite_workflow_enforce_workitem_assignee_permissions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wgWI(YKHO, wgWI: ConfigNodePropertyBoolean):\n YKHO._granite_workflow_enforce_workitem_assignee_permissions = wgWI", "def Pb0A(YKHO, Pb0A: ConfigNodePropertyBoolean):\n YKHO._granite_workflow_enforce_workflow_initiator_permissions = Pb0A", "def Pb0A(YKHO) -> MH_9:\n return YKHO._granite_workflow_e...
[ "0.79890466", "0.60174626", "0.575441", "0.5047076", "0.49222142", "0.48698774", "0.4867167", "0.48040575", "0.475378", "0.46887285", "0.4582314", "0.4555461", "0.45307988", "0.45291913", "0.45291913", "0.45165765", "0.4492492", "0.4492492", "0.4491214", "0.44839135", "0.4481...
0.8156902
0
Gets the granite_workflow_enforce_workflow_initiator_permissions of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.
def Pb0A(YKHO) -> MH_9: return YKHO._granite_workflow_enforce_workflow_initiator_permissions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pb0A(YKHO, Pb0A: ConfigNodePropertyBoolean):\n YKHO._granite_workflow_enforce_workflow_initiator_permissions = Pb0A", "def wgWI(YKHO) -> MH_9:\n return YKHO._granite_workflow_enforce_workitem_assignee_permissions", "def wgWI(YKHO, wgWI: ConfigNodePropertyBoolean):\n YKHO._granite_workflow_enforce_...
[ "0.77607626", "0.55859876", "0.53427404", "0.5099246", "0.5084936", "0.48582745", "0.4773597", "0.46520752", "0.4489548", "0.44868636", "0.44344974", "0.44162", "0.44016007", "0.43732437", "0.43596372", "0.4317665", "0.4278785", "0.42712742", "0.4249284", "0.42379564", "0.423...
0.8008853
0
Sets the granite_workflow_enforce_workflow_initiator_permissions of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.
def Pb0A(YKHO, Pb0A: ConfigNodePropertyBoolean): YKHO._granite_workflow_enforce_workflow_initiator_permissions = Pb0A
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pb0A(YKHO) -> MH_9:\n return YKHO._granite_workflow_enforce_workflow_initiator_permissions", "def wgWI(YKHO, wgWI: ConfigNodePropertyBoolean):\n YKHO._granite_workflow_enforce_workitem_assignee_permissions = wgWI", "def wgWI(YKHO) -> MH_9:\n return YKHO._granite_workflow_enforce_workitem_assignee_...
[ "0.78143024", "0.62016404", "0.55049", "0.48167878", "0.46468866", "0.44145328", "0.43614542", "0.43450236", "0.43209502", "0.42439818", "0.42428905", "0.42378312", "0.42362094", "0.42338872", "0.42285246", "0.42251047", "0.42216676", "0.4209403", "0.417044", "0.41542375", "0...
0.864631
0
Gets the granite_workflow_inject_tenant_id_in_job_topics of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.
def T3G2(YKHO) -> MH_9: return YKHO._granite_workflow_inject_tenant_id_in_job_topics
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T3G2(YKHO, T3G2: ConfigNodePropertyBoolean):\n YKHO._granite_workflow_inject_tenant_id_in_job_topics = T3G2", "def mLXZ(YKHO):\n return YKHO.project_id", "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(Y...
[ "0.7194674", "0.5700679", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.5667187", "0.56391644", ...
0.7718755
0
Sets the granite_workflow_inject_tenant_id_in_job_topics of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.
def T3G2(YKHO, T3G2: ConfigNodePropertyBoolean): YKHO._granite_workflow_inject_tenant_id_in_job_topics = T3G2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T3G2(YKHO) -> MH_9:\n return YKHO._granite_workflow_inject_tenant_id_in_job_topics", "def mLXZ(YKHO, mLXZ):\n YKHO._tenant_id = mLXZ", "def mLXZ(YKHO, mLXZ):\n YKHO._tenant_id = mLXZ", "def mLXZ(YKHO, mLXZ):\n YKHO._tenant_id = mLXZ", "def mLXZ(YKHO, mLXZ):\n YKHO._tenant_id = mLXZ", "...
[ "0.7665705", "0.51352423", "0.51352423", "0.51352423", "0.51352423", "0.51352423", "0.48769388", "0.48478994", "0.48478994", "0.4838023", "0.4838023", "0.4807933", "0.46787283", "0.45903385", "0.4570461", "0.4517464", "0.44866842", "0.44719824", "0.44529977", "0.44385186", "0...
0.8312302
0
Gets the granite_workflow_max_purge_query_count of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.
def _IoT(YKHO) -> gYcJ: return YKHO._granite_workflow_max_purge_query_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _IoT(YKHO, _IoT: ConfigNodePropertyInteger):\n YKHO._granite_workflow_max_purge_query_count = _IoT", "def ZGe8(YKHO) -> gYcJ:\n return YKHO._granite_workflow_max_purge_save_threshold", "def Djv9(YKHO) -> gYcJ:\n return YKHO._granite_workflow_inbox_query_size", "def ZGe8(YKHO, ZGe8: ConfigNodePro...
[ "0.8158309", "0.77286655", "0.7039823", "0.6977907", "0.61536586", "0.6012468", "0.59709275", "0.5921442", "0.59092844", "0.5897733", "0.5895495", "0.588313", "0.588313", "0.58579946", "0.58579946", "0.5840548", "0.58296466", "0.58283484", "0.5817633", "0.57838833", "0.575404...
0.8927075
0
Return the version of this server.
def NMoC(YKHO): return ({'version': BtDU}, qed_.OK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KZVb(YKHO):\n _hkX = G4JS.get(TDhU(YKHO.baseurl, '/'), auth=YKHO.auth)\n V6me = YKHO._json_loads(_hkX.text)\n return V6me['version']", "def Q5cB(YKHO):\n return M_SI", "def IexU(YKHO):\n return YKHO.server_version", "def IexU(YKHO):\n return YKHO.server_version", "def qebp(YKHO):\n ...
[ "0.89335227", "0.8829802", "0.8823502", "0.881806", "0.8651883", "0.85667676", "0.84180325", "0.83548915", "0.83548915", "0.8340871", "0.8340871", "0.83405715", "0.8268108", "0.8264603", "0.8209236", "0.81890833", "0.81760687", "0.81692016", "0.81692016", "0.81692016", "0.816...
0.0
-1
Testing the GET reviewrequests//fileattachments/ API
def ykgQ(YKHO): lnN1 = YKHO.create_review_request(create_repository=True, publish=True) YKHO.create_file_attachment(lnN1, orig_filename='trophy1.png') YKHO.create_file_attachment(lnN1, orig_filename='trophy2.png', repo_path='/trophy.png', repo_revision='123', repository=lnN1.repository) OIkQ = YKHO.crea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wpB7(YKHO):\n uDyx = YKHO._postNewReviewRequest()\n YKHO.assertEqual(uDyx['stat'], 'ok')\n RDXT.objects.get(pk=uDyx['review_request']['id'])\n qPkm = uDyx['review_request']['links']['file_attachments']['href']\n eHNT = open(YKHO._getTrophyFilename(), 'r')\n YKHO.assertNotEqual(eHNT, None)\n ...
[ "0.82021564", "0.7845689", "0.76985645", "0.7513743", "0.7373562", "0.7337682", "0.7330427", "0.7240799", "0.7076476", "0.70046455", "0.694036", "0.685224", "0.6803354", "0.68005514", "0.6794985", "0.67819804", "0.6761474", "0.6748772", "0.6723137", "0.6722771", "0.6716222", ...
0.83843076
0
Testing the POST reviewrequests//fileattachments/ API with Permission Denied error
def GTkz(YKHO): lnN1 = YKHO.create_review_request() YKHO.assertNotEqual(lnN1.submitter, YKHO.user) eHNT = open(YKHO._getTrophyFilename(), 'r') YKHO.assertTrue(eHNT) uDyx = YKHO.apiPost(smT_(lnN1), {'caption': 'Trophy', 'path': eHNT}, expected_status=403) eHNT.close() YKHO.assertEqual(uDyx['s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d3lc(YKHO):\n lnN1 = RDXT.objects.filter(public=True, local_site=None).exclude(submitter=YKHO.user)[0]\n eHNT = open(YKHO._getTrophyFilename(), 'r')\n YKHO.assert_(eHNT)\n uDyx = YKHO.apiPost(YKHO.get_list_url(lnN1), {'caption': 'Trophy', 'path': eHNT}, expected_status=403)\n eHNT.close()\n Y...
[ "0.8209808", "0.8209808", "0.7985675", "0.79219276", "0.7809455", "0.77410537", "0.75630015", "0.7344411", "0.7219249", "0.7131489", "0.7046352", "0.6995116", "0.6929119", "0.67524564", "0.67524564", "0.6650895", "0.66311646", "0.6619741", "0.66080195", "0.65887475", "0.65849...
0.7510296
7
Returns all classes defined in a python module. Takes an optional parent parameter that returns a list of classes subclassed from parent.
def XC6g(yR_P, _AKB=None): import inspect KndY = [ZfUD for ZfUD in yR_P.__dict__.values() if inspect.isclass(ZfUD) and ZfUD.__module__ == yR_P.__name__] if not _AKB == None: KndY = [Z9rn for Z9rn in KndY if issubclass(Z9rn, _AKB)] return KndY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def alwG(yR_P, Ro5k=None):\n KndY = [Emd4[1] for Emd4 in tq_1.getmembers(yR_P, lambda mS46: tq_1.isclass(mS46) and mS46.__module__ == yR_P.__name__)]\n if Ro5k is not None:\n return [Z9rn for Z9rn in KndY if issubclass(Z9rn, Ro5k)]\n return KndY", "def WWoh(YKHO):\n KndY = []\n for pGQh, bG...
[ "0.7962319", "0.7264662", "0.7216093", "0.71554095", "0.713399", "0.70453155", "0.6955674", "0.6894889", "0.67903376", "0.6711858", "0.6690041", "0.6688566", "0.66240436", "0.661971", "0.6593189", "0.65851355", "0.6582094", "0.6553128", "0.65422785", "0.6528425", "0.65068364"...
0.823243
0
Return staticAssetId with _push_version
def djHz(): DpZH = gzAf() ZI14 = '.%s' % DpZH if DpZH else '' return '@%s%s' % (CnSx.config['staticAssetId'], ZI14)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tGYK(YKHO):\n return YKHO._payload.get_asset_id()", "def gzAf():\n VG41 = CnSx.config.get('_push_version', None)\n if VG41 is None:\n try:\n eHNT = open(B4J6('var/run/splunk/push-version.txt'), 'r')\n mLGw = int(eHNT.read(20))\n eHNT.close()\n VG41 ...
[ "0.59208065", "0.57111955", "0.5695681", "0.56562626", "0.56562626", "0.56112593", "0.5370654", "0.53583544", "0.5331737", "0.53227633", "0.52686083", "0.52553636", "0.5247285", "0.523667", "0.5202035", "0.51845586", "0.5179211", "0.5172675", "0.51685256", "0.51563597", "0.51...
0.7907498
0
Return a URL path stripped of the root_endpoint prefix and the enUS segment
def GRH3(pmON): return '/' + pmON[len(CnSx.request.script_name) + 7:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xtev(YKHO, w2IS):\n return TDhU(YKHO.base_url, w2IS)", "def JKqF(YKHO, w2IS):\n w2IS = w2IS.strip()\n if w2IS.startswith('/'):\n w2IS = w2IS[1:]\n return l4ys + w2IS", "def pMSL(YKHO, w2IS):\n return f'{YKHO.clean_domain()}{w2IS}'", "def D_Ek(YKHO, w2IS):\n if w2IS.startswith('.'...
[ "0.7092161", "0.70608145", "0.67127925", "0.6593242", "0.6525823", "0.6524689", "0.6451495", "0.6306135", "0.62835395", "0.62743574", "0.6247757", "0.6241955", "0.62290734", "0.620904", "0.616252", "0.61475456", "0.6120635", "0.6114985", "0.6108929", "0.6108326", "0.6104951",...
0.6676606
3
return all urls to add in urlpatterns settings.py API_CONFIG = {
def pzVU(YKHO): return YKHO.get_urls(YKHO.path)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pzVU(YKHO):\n xBfL = [bD7m('^(?P<api_name>%s)/sources' % YKHO.api_name, YKHO.wrap_view('top_level'), name='api_%s_top_level' % YKHO.api_name)]\n OLzN = YKHO.override_urls() + b6H_('', *xBfL)\n for mWFP in sorted(YKHO._registry.keys()):\n YKHO._registry[mWFP].api_name = YKHO.api_name\n xB...
[ "0.79434735", "0.7905139", "0.74953216", "0.74597704", "0.732892", "0.72960305", "0.7257519", "0.7256588", "0.72408324", "0.716245", "0.7155572", "0.71229637", "0.7102633", "0.7090507", "0.7070954", "0.70389473", "0.69874614", "0.6944764", "0.6910829", "0.68979716", "0.688189...
0.0
-1
Check if two entities are the same.
def g057(YKHO, Elif): if YKHO.label == Elif.label and YKHO.marker() == Elif.marker(): if hrk3(YKHO.position().x, Elif.position().x) and hrk3(YKHO.position().y, Elif.position().y): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if not isinstance(Elif, ahCL):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def xa14(YKHO, Elif: 'NluEnrichmentEntities') -> bool:\n if not isinstance(Elif, YKHO.__class__):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def IzcV(YKHO, E...
[ "0.7369281", "0.7355617", "0.7284143", "0.7269908", "0.7258106", "0.7249857", "0.7247889", "0.7213352", "0.717886", "0.71535796", "0.7110555", "0.7085294", "0.70756555", "0.7074861", "0.70510966", "0.70389646", "0.7031313", "0.70109975", "0.6990198", "0.69449574", "0.6943181"...
0.0
-1
Free spectral range, returned in Hz. Assumes two mirror cavity length in meters
def jK8y(u54L): return cMkz.c / (2 * u54L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def laWU(u54L):\n return PtXs.C0 / (2 * u54L)", "def _owh(YKHO):\n return YKHO.formula.high_resolution_spectrum(3, minfract=1e-06)", "def __d3(QTg7, Z9rn=cEyK):\n return Z9rn / QTg7", "def blg6(YKHO, Jxow=None):\n return epAf.sqrt(2 * YKHO.moment(Jxow, 2))", "def eqIx(YKHO):\n return YKHO.sp...
[ "0.757181", "0.71395093", "0.66932565", "0.66643494", "0.6448726", "0.6403173", "0.64018464", "0.64018464", "0.6336794", "0.6304946", "0.62868667", "0.6242908", "0.6225622", "0.6217215", "0.6175106", "0.616307", "0.6102499", "0.6056457", "0.60510236", "0.6049226", "0.6044705"...
0.0
-1
Computes a weighted average of files which containg partial averages of quantities.
def j0P3(XR7h, ROpF, **B2fa): yDqo = B2fa.get('dtype', oyIN.single) _AXJ = B2fa.get('ncomponents', len(ROpF)) if _AXJ == 1: EO93 = 0 t9MA = 0 for SjLr in XR7h: nUeQ = SjLr[0] yzQ0 = SjLr[1] nPrm = ROQp(nUeQ, ROpF, _AXJ) if len(ROpF) == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yF5b(DumB=[{}]):\n LqZc = 0\n wjRY = 0\n for ZfUD in DumB:\n wjRY = wjRY + ZfUD['score'] * ZfUD['freq']\n LqZc = LqZc + ZfUD['freq']\n print(wjRY)\n return wjRY / LqZc", "def KiTx(WKvO, yzQ0):\n zNT4 = 0.0\n hYfy = 0.0\n for YRbF in range(WKvO.size):\n zNT4 += WKv...
[ "0.63772184", "0.6328146", "0.6275397", "0.6168754", "0.6162259", "0.6072214", "0.60232407", "0.6013476", "0.6011411", "0.5987385", "0.5984322", "0.5981845", "0.5966093", "0.59248525", "0.59211904", "0.58977264", "0.5848584", "0.58207035", "0.5799693", "0.57887685", "0.578500...
0.5811116
18
For a dataset, create a generator over (images, kwargs) pairs. Each images is an NCHW float tensor, and the kwargs dict contains zero or more keys, each of which map to a batched Tensor of their own. The kwargs dict can be used for class labels, in which case the key is "y" and the values are integer tensors of class l...
def UlWi(*, h_xa, Ep8u, N0ky, jR5W=False, EcMA=0, iWqW=None, HLKd=0, _aKp=False): if not h_xa: raise ValueError('unspecified data directory') cfbQ = nHdZ(h_xa) s_BQ = None if iWqW: s_BQ = nHdZ(iWqW) irZs = nHdZ('data/danbooru2017/anime_sketch_noise') KndY = None if jR5W: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GIDZ(YKHO, zQhN: List[Tuple[torch.Tensor, Optional[str]]]) -> bDy6[x1iM[Rj65]]:\n bV6k: x1iM[Rj65] = []\n rCat = YKHO.category_to_class_mapping\n lfL1 = wO8H(zQhN, YKHO.inference_batch_size)\n for Wc9F in lfL1:\n Wc9F = [{'image': dWY6['image'].to(YKHO.model.device), 'category': dWY6['catego...
[ "0.7032869", "0.6756691", "0.66054714", "0.6496055", "0.6489558", "0.64477867", "0.63978255", "0.6390605", "0.6372936", "0.63372624", "0.6287666", "0.61523205", "0.6137468", "0.61335903", "0.6104144", "0.6085997", "0.60698354", "0.6063247", "0.604145", "0.6033596", "0.6031140...
0.0
-1
Check if the given tree is BST
def Zol7(tk5Y): return c7Sr(tk5Y, -1, 10001)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lCpr(J_Es):\n return False", "def pcG9(J_Es: object) -> bool:\n if J_Es:\n ACnF = [J_Es]\n while ACnF:\n afYC = []\n for _AKB in ACnF:\n if _AKB.left:\n if _AKB.left.data > _AKB.data:\n return False\n ...
[ "0.87557375", "0.832081", "0.8176606", "0.81115055", "0.7886131", "0.77865005", "0.7695015", "0.7581155", "0.7532437", "0.7532437", "0.7492934", "0.7460218", "0.7460218", "0.7460218", "0.74354815", "0.740883", "0.7407698", "0.73492056", "0.72448486", "0.7150927", "0.7111957",...
0.70211715
27
Return a string representation of the current state of the game. Overrides GameState.__str__
def zAg0(YKHO) -> str: exwG = len(YKHO.grid) IZ6w = 3 E0Gw = ' - ' f_gp = ' / \\' Rahw = ' \\ /' pNZh = (2 * exwG - 2) * ' ' + YKHO.grid[0][0] + IZ6w * ' ' + YKHO.grid[0][1] + '\n' pNZh += (2 * exwG - 3) * ' ' + '/' + IZ6w * ' ' + '/' + '\n' for YRbF in range(1, exwG - 3): pNZh +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n i8_y = 'Current Game State...\\n=======\\n'\n for YRbF in range(len(YKHO.stacks)):\n i8_y += '#%d %s\\n' % (YRbF, str(YKHO.stacks[YRbF]))\n i8_y += YKHO.hash() + '\\n'\n i8_y += '====='\n return i8_y", "def zAg0(YKHO):\n return YKHO.state_to_str(YKHO.x, YKHO.t, player_i...
[ "0.858047", "0.81999004", "0.81987005", "0.81712043", "0.8012025", "0.78361416", "0.78142226", "0.780443", "0.7781425", "0.77436143", "0.77423763", "0.7722172", "0.7693859", "0.7590471", "0.7588258", "0.751361", "0.74295336", "0.7365292", "0.7365283", "0.73522925", "0.7347798...
0.0
-1
Return a representation of this StonehengeState (which can be used for equality testing). Overrides GameState.__repr__
def wHJl(YKHO) -> ImMB: oyg0 = 'p2' if YKHO.p1_turn: oyg0 = 'p1' return 'Player {} is playing and result as below: {}'.format(oyg0, YKHO.grid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return str(YKHO.state)", "def wHJl(YKHO):\n return YKHO.mdp.state_string(YKHO.state)", "def zAg0(YKHO):\n return 'State{\\n %s \\n}' % '\\n'.join(['\\t{}: {}'.format(G1Hx, str(YRbF)) for G1Hx, YRbF in YKHO.__dict__.items() if not G1Hx.startswith('_')])", "def zAg0(YKHO):\n retur...
[ "0.822144", "0.79961663", "0.7757398", "0.7740147", "0.77336794", "0.7663035", "0.76553845", "0.7520761", "0.7520761", "0.74822354", "0.7467264", "0.74216366", "0.72732735", "0.71666557", "0.70493305", "0.70493305", "0.6974181", "0.6960145", "0.696002", "0.696002", "0.696002"...
0.0
-1
Initializes a curve with the given name and attached to the given trajectory.
def FIMM(YKHO, mWFP, avdM, zSRz=None): YKHO._name = str(mWFP) YKHO._trajectory1d = avdM YKHO._phiPtr = zSRz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, AdZ9):\n YKHO.curve = AdZ9", "def FIMM(YKHO, WKvO, LVAh, AdZ9):\n YKHO.x = WKvO\n YKHO.y = LVAh\n YKHO.curve = AdZ9", "def FIMM(YKHO, dQgj=0, caa_=0, ROpF=PhJ3(5), AdZ9=0):\n YKHO.position = dQgj\n YKHO.amplitude = caa_\n YKHO.shape = ROpF\n YKHO.curve = AdZ9", "def FIM...
[ "0.69947237", "0.6759442", "0.6755743", "0.6598821", "0.6563464", "0.646858", "0.6417775", "0.6271943", "0.6246052", "0.61793697", "0.60759616", "0.60724026", "0.60489464", "0.6006818", "0.5994977", "0.5934202", "0.5920271", "0.5914788", "0.5899126", "0.58984673", "0.5877421"...
0.6741179
3
Partition feature dataframe in train, valid, test.
def hyUj(iske): mWFP = iske['name'] jQ3Z = iske['data'].copy() jQ3Z['Date'] = jQ3Z.index.values jQ3Z = rLdf.concat([jQ3Z, ngF3], axis=1) jQ3Z = jQ3Z[jQ3Z['Date'] >= H9hC].copy() nwe_ = jQ3Z['Date'].max() GybY = nwe_ - rLdf.Timedelta(days=mnai) PmSk = nwe_ - rLdf.Timedelta(days=dxm2) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qb89(jQ3Z):\n Evq_, QOe9 = bHtP(jQ3Z, test_size=0.1, random_state=123)\n EvQg, xzCw = bHtP(Evq_, test_size=0.2, random_state=123)\n return (EvQg, xzCw, QOe9)", "def wOH3(jQ3Z):\n Evq_, QOe9 = bHtP(jQ3Z, test_size=0.2, random_state=123)\n EvQg, xzCw = bHtP(Evq_, test_size=0.3, random_state=123)...
[ "0.7640173", "0.7517171", "0.73136425", "0.7306431", "0.715874", "0.7151284", "0.7132106", "0.7124661", "0.7099271", "0.708985", "0.7076761", "0.7065859", "0.6998518", "0.6995928", "0.6987247", "0.6948677", "0.6898551", "0.6897834", "0.6889689", "0.68874437", "0.6880533", "...
0.7350369
2
Executes the provided list of queries, extracts the attributes of interest for each entity in the response and returns a list of dictionaries where each dictionary represents an entity in the response and contains a mapping from the attribute's of interest to Shodan's response for that value, or 'None' if no value was ...
def iFqd(l633, rJDA, azoT=[], Kre3=25, coGA=True): Pm2F = [] NqRl = 0 nNXP = HhHz.Shodan(rJDA) for xDcj in l633: yKcO = ITS7() print(f'Executing query {xDcj}...') MlNt, jGRS, fTIw = awGE(xDcj, nNXP, attributes=azoT) print(f'Retrieved and processed {len(MlNt)} results in {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o6sl(VqIE, azoT=[]):\n shXy = {}\n for xC3W in VqIE:\n if azoT == [] or xC3W in azoT:\n mQW6(xC3W, VqIE, shXy)\n return shXy", "def awGE(xDcj, X3gi, Kre3=25, azoT=[], Voci=1, kh3u=None, fTIw=0, coGA=True, wfhz=set()):\n if Voci != 1 and Voci * 100 - kh3u >= 100:\n return ...
[ "0.6469039", "0.60304856", "0.59126246", "0.58674645", "0.5700812", "0.5573936", "0.5521693", "0.5521152", "0.5518706", "0.55171585", "0.55073106", "0.54589015", "0.54564285", "0.5433621", "0.5381142", "0.5367485", "0.5367127", "0.5366434", "0.5346862", "0.53089327", "0.52852...
0.57637423
4
Extracts the attributes of interest for the provided response, flattens nested attributes, and returns the results in a dictionary. If no attributes are specified all attributes are returned.
def o6sl(VqIE, azoT=[]): shXy = {} for xC3W in VqIE: if azoT == [] or xC3W in azoT: mQW6(xC3W, VqIE, shXy) return shXy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQW6(xC3W, geh0, shXy):\n xmis = xC3W.split(PRWS)[-1]\n if isinstance(geh0[xmis], dict):\n for uE2w in geh0[xmis]:\n mQW6(xC3W + PRWS + uE2w, geh0[xmis], shXy)\n elif geh0[xC3W.split(PRWS)[-1]] == None:\n shXy[xC3W.replace(PRWS, '.')] = T2Pq\n else:\n shXy[xC3W.repla...
[ "0.68123853", "0.6459019", "0.63623977", "0.62343425", "0.6195395", "0.61642396", "0.5997851", "0.5950624", "0.5906814", "0.5785023", "0.57835466", "0.5760632", "0.56864345", "0.5632961", "0.5617398", "0.56094956", "0.5583496", "0.55738634", "0.55407155", "0.5493972", "0.5492...
0.76415217
0
Returns the set User auth Scope
def gnLE(YKHO) -> x1iM[b4ss]: return YKHO.__user_auth_scope
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ESRL(YKHO):\n return ['User.Read', 'openid']", "def JQi_(YKHO):\n Mjtj = []\n w0rQ = YKHO.view.get_permissions()\n BQ87 = [IuXB for IuXB in w0rQ if isinstance(IuXB, Sitn)]\n Cm90 = []\n for IuXB in BQ87:\n uC2a = RVWp(method=YKHO.method, view=YKHO.view, request=None)\n if uC2a...
[ "0.71087265", "0.65146226", "0.645163", "0.64057523", "0.6307791", "0.62657577", "0.62352157", "0.6213697", "0.6197608", "0.6189252", "0.617733", "0.617733", "0.617733", "0.617733", "0.617733", "0.6144816", "0.61417526", "0.61269486", "0.61269486", "0.61269486", "0.6115693", ...
0.81813425
0
Make PATCH request with authorization
def Lo1d(YKHO, bD7m: str, zkAN: 'AuthType', Ydxt: List[AuthScope], nPrm: Optional[dict]=None, pgFO: int=1) -> G4JS.Response: MOPg = YKHO.__generate_header(zkAN, Ydxt) YKHO.__logger.debug(f'making PATCH request to {bD7m}') if nPrm is None: qv1X = G4JS.patch(bD7m, headers=MOPg) else: qv1X ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Po4F(YKHO, QePW, id=None):\n return oGir({'message': 'PATCH REQUEST'})", "def Po4F(YKHO, *qIxc, **B2fa):\n B2fa['method'] = LIz1\n return YKHO.request(*qIxc, **B2fa)", "def Po4F(YKHO, P8ql, _sei=None):\n return oGir({'method': 'PATCH'})", "def nHlB(x0hE, bD7m, MOPg, TBsA):\n return x0hE.pa...
[ "0.7058901", "0.6873046", "0.68017733", "0.6784007", "0.67783695", "0.6773328", "0.673673", "0.671909", "0.671909", "0.6646916", "0.6646916", "0.6646916", "0.6646916", "0.6646916", "0.66445535", "0.66445535", "0.6636538", "0.6633583", "0.66064227", "0.66064185", "0.6582549", ...
0.66843736
9
Make DELETE request with authorization
def yqVx(YKHO, bD7m: str, zkAN: 'AuthType', Ydxt: List[AuthScope], nPrm: Optional[dict]=None, pgFO: int=1) -> G4JS.Response: MOPg = YKHO.__generate_header(zkAN, Ydxt) YKHO.__logger.debug(f'making DELETE request to {bD7m}') if nPrm is None: qv1X = G4JS.delete(bD7m, headers=MOPg) else: qv1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO, *qIxc, **B2fa):\n B2fa['method'] = wlcv\n return YKHO.request(*qIxc, **B2fa)", "def RoLj(YKHO, *qIxc, **B2fa) -> oGir:\n return YKHO._send_request(YKHO._requests_lib.delete, *qIxc, **B2fa)", "def PTpj(YKHO, **B2fa):\n return YKHO.response(*YKHO.request_params(YKHO._url, 'DELETE', **B...
[ "0.76765466", "0.7580309", "0.7522998", "0.7493858", "0.741215", "0.7411463", "0.740008", "0.7315673", "0.72091514", "0.7134928", "0.7115482", "0.71077955", "0.71055573", "0.70935506", "0.70613664", "0.705067", "0.704905", "0.7048127", "0.7041021", "0.7041021", "0.7040191", ...
0.7431108
4
Returns the current user auth token, None if no user Authentication is set
def RB42(YKHO) -> uLKX[str, None]: return YKHO.__user_auth_token
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eqRm(YKHO):\n MkeE = YKHO.request.headers.get('Authorization', '')\n kUBT = NGZZ.match(MkeE)\n if not kUBT:\n return None\n eOtH = kUBT.group(1)\n JYOc = YKHO.db.query(zPjx.APIToken).filter(zPjx.APIToken.token == eOtH).first()\n if JYOc is None:\n return None\n else:\n ...
[ "0.8531421", "0.8002158", "0.7947792", "0.7947792", "0.79141074", "0.7864592", "0.78560114", "0.7777889", "0.7593076", "0.7592422", "0.754084", "0.74951375", "0.74703026", "0.74180794", "0.73923826", "0.7340106", "0.7323017", "0.7315088", "0.73017466", "0.72996616", "0.726305...
0.8598697
0
Returns the currently used token, can be either the app or user auth Token or None if no auth is set
def WIrR(YKHO) -> uLKX[str, None]: return YKHO.__user_auth_token if YKHO.__has_user_auth else YKHO.__app_auth_token
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eqRm(YKHO):\n MkeE = YKHO.request.headers.get('Authorization', '')\n kUBT = NGZZ.match(MkeE)\n if not kUBT:\n return None\n eOtH = kUBT.group(1)\n JYOc = YKHO.db.query(zPjx.APIToken).filter(zPjx.APIToken.token == eOtH).first()\n if JYOc is None:\n return None\n else:\n ...
[ "0.77646106", "0.7654077", "0.7654077", "0.75329953", "0.74933225", "0.74933225", "0.7456273", "0.74457246", "0.74430656", "0.7392623", "0.7326915", "0.7117477", "0.7066188", "0.70563066", "0.70337737", "0.6994196", "0.6948123", "0.6931208", "0.6871348", "0.6870826", "0.68624...
0.89243954
0
Retrieves a list of Twitch Teams of which the specified channel/broadcaster is a member.\n\n Requires User or App authentication.
def XY8i(YKHO, d0VF: str) -> dict: bD7m = jNi7(Dc8S + 'teams/channel', {'broadcaster_id': d0VF}) Aofo = YKHO.__api_get_request(bD7m, KMqm.EITHER, []) return CzeN(Aofo.json(), ['created_at', 'updated_at'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zjbk(YKHO, n9_V=False):\n dCYV = YKHO.activities\n if n9_V:\n dCYV = YKHO.activities\n else:\n dCYV = nmsT.query.filter_by(project_id=YKHO.id, name='star').all()\n DgAC = []\n if YKHO.user:\n DgAC.append(YKHO.user)\n for jzdc in dCYV:\n if jzdc.user and jzdc.user n...
[ "0.6258219", "0.6158257", "0.6097082", "0.602709", "0.59588283", "0.5954741", "0.5814435", "0.5744932", "0.5688189", "0.56772864", "0.5653489", "0.5631427", "0.561454", "0.56111914", "0.559783", "0.55912393", "0.5557338", "0.5517849", "0.5500638", "0.5498477", "0.5484755", ...
0.6305556
0
Retrieves the list of available Cheermotes, animated emotes to which viewers can assign Bits, to cheer in chat.\n\n Requires App authentication\n
def CYlA(YKHO, d0VF: str) -> dict: bD7m = jNi7(Dc8S + 'bits/cheermotes', {'broadcaster_id': d0VF}) geh0 = YKHO.__api_get_request(bD7m, KMqm.EITHER, []) return CzeN(geh0.json(), ['last_updated'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def list(YKHO, OaeV: Context):\n QSXT = sorted(list(YKHO.emotes.keys()))\n H3TN = [QSXT[YRbF:YRbF + 3] for YRbF in range(0, len(QSXT), 3)]\n mBtZ = M1vC(H3TN)\n await nCbv(OaeV, invoc=False, title='List of all available emotes:').send(register=False)\n for VXjJ in mBtZ.generate(convert_to_file...
[ "0.60360676", "0.60011137", "0.6000452", "0.58648324", "0.58160233", "0.58000714", "0.57384074", "0.57320714", "0.57265073", "0.57019883", "0.5687905", "0.56341505", "0.5634139", "0.5609691", "0.5586063", "0.5579473", "0.5550556", "0.5538013", "0.5530036", "0.5497034", "0.548...
0.53347015
36