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
Creates a barplot of the total candidate mentions
def tzMv(YKHO, _DV4): a88W = uuEx.barplot(x='count', y='candidate', data=YKHO.total_candidate_mentions()) QrM1.setp(a88W.get_yticklabels(), rotation=40) QrM1.title('Total Candidate Mentions - Sentence-level') if _DV4 is True: QrM1.savefig(YKHO.path + 'figures/candidate_mentions.png', dpi=400)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vwQY(YKHO, _DV4):\n pWA6 = YKHO.total_candidate_mentions()\n oHXO = pWA6[pWA6['candidate'] != 'Trump']\n a88W = uuEx.barplot(x='count', y='candidate', data=oHXO)\n QrM1.setp(a88W.get_yticklabels(), rotation=40)\n QrM1.title('Total Candidate Mentions (Democrats Only) - Sentence-level')\n if _D...
[ "0.6654502", "0.6106479", "0.60229605", "0.5901741", "0.58831334", "0.58776844", "0.58633304", "0.58209467", "0.5817596", "0.5813118", "0.5802224", "0.56970036", "0.56353885", "0.5634733", "0.5624432", "0.5528919", "0.54821265", "0.5470522", "0.54657274", "0.54477805", "0.544...
0.7517014
0
Return a list of CommentTuples in tree insertion order. Also add a MissingChildrenTuple to the end of the list if there are missing root level comments.
def Jlt6(YKHO): with Oa1e.stats.get_timer('comment_tree.get.1') as JWDz: F3VT = xznU.by_link(YKHO.link, JWDz) kXon = YKHO.sort.col eLty = wuUU(YKHO.link, kXon, F3VT.cids, JWDz) JWDz.intermediate('get_scores') if isinstance(YKHO.sort, Maem.shuffled): G4to = F3VT.tree.get(N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xR__(YKHO, F3VT):\n r8dE = []\n if YKHO.link.sticky_comment_id:\n Upgn = F3VT.tree.get(None, [])\n Q0iv = YKHO.link.sticky_comment_id\n if Q0iv in Upgn:\n r8dE.append(E9sM(comment_id=Q0iv, depth=0, parent_id=None, num_children=F3VT.num_children[Q0iv], child_ids=F3VT.tree.g...
[ "0.735578", "0.7132088", "0.6797401", "0.6593672", "0.6305268", "0.61618036", "0.60713553", "0.6040265", "0.60374725", "0.5852866", "0.5812998", "0.57652", "0.57540303", "0.5669864", "0.5665627", "0.5624199", "0.56221527", "0.56191903", "0.5618786", "0.5612505", "0.5525475", ...
0.6406785
4
Get a test config
def YUxC() -> PSrQ: qIxc = dict(datapath=Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'testdata')), debug=True) return PSrQ(**qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD():\n return X8Rg", "def tgzD():\n return viqz", "def Ic4f(YKHO):\n GPtr = YKHO.profile.get_config('testing.conf', LV7V, storage_args=['this_section'])\n YKHO.assertIsInstance(GPtr, LV7V)\n YKHO.assertIsNone(GPtr.save())", "def YUxC():\n return lPqg(key='xxxxxxxxxxxxxxxxx', password...
[ "0.7595289", "0.7530069", "0.7494138", "0.7440118", "0.7383537", "0.732649", "0.7236002", "0.7215251", "0.7173367", "0.71728283", "0.7099939", "0.70873916", "0.70702296", "0.70660865", "0.7057578", "0.7057578", "0.7057578", "0.7057578", "0.7057578", "0.7057578", "0.7057578", ...
0.7827272
0
Sends a 401 response that enables basic auth
def NLCy(): return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})", "def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})", "def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\...
[ "0.8093736", "0.80926424", "0.7958403", "0.7852648", "0.7843114", "0.7824419", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", ...
0.774767
31
Return a string formatted so that it can be printed in an error msg.
def P2YO(YKHO): if hasattr(YKHO, 'ui_name'): return YKHO.parent.get_error_name() + '.' + YKHO.ui_name elif YKHO.name == '': return YKHO.parent.get_error_name() + '.' + YKHO.cls + '-' + str(YKHO.id) else: return YKHO.parent.get_error_name() + '.' + YKHO.cls + '_' + YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHh0(XObx):\n return ''.join(muz0(type(XObx), XObx))", "def RAZ3(YKHO, P1dF):\n return '<font color=\"#f00\"><b><i>%s</i></b></font><br />\\n' % P1dF", "def P1dF(XObx):\n return str(XObx) + '\\n'", "def isRP(YKHO):\n return YKHO._error_string", "def zAg0(YKHO) -> str:\n return '[{}] {}'....
[ "0.7921959", "0.76792246", "0.7591627", "0.7405109", "0.7328291", "0.7319533", "0.7266934", "0.7238458", "0.7232615", "0.72110945", "0.7203619", "0.7190047", "0.717457", "0.7157622", "0.7090458", "0.7074579", "0.70706534", "0.7050389", "0.7050389", "0.7050389", "0.7049158", ...
0.0
-1
Normalize runtime expressions. Runtime expressions may have parameter names prefixed with their location `path.id`. At the same time, parameters could be defined without a prefix `id`. We need to normalize all parameters to the same form to simplify working with them.
def MLWT(k78t: str, lsX7: str) -> AzJI[h8nf[str], str, str]: try: Rci7, mWFP = tuple(k78t.split('.')) return (Rci7, mWFP, lsX7) except ValueError: return (None, k78t, lsX7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zB8E(ek53, Wqck):\n vc0b = jkd_(ek53, Wqck)\n Aofo = vc0b['op'].join([' %s ' % KVWQ.quote(a1PO) for a1PO in vc0b['values']])\n return (vc0b['op'] + Aofo).strip()", "def ZhlI(YKHO, lsX7):\n if not lsX7 or not isinstance(lsX7, dict):\n return\n O92W = lsX7.get('slugs')\n if O92W:\n ...
[ "0.5540095", "0.55091006", "0.53597754", "0.51706356", "0.51514447", "0.50659454", "0.5009996", "0.49631405", "0.48321366", "0.4778096", "0.4710973", "0.47079575", "0.46693176", "0.46420652", "0.46306798", "0.46230572", "0.461377", "0.46048534", "0.45961353", "0.4588971", "0....
0.48532632
8
Give proper lower bound and upper bound for proper learning rate
def l15z(): IDsK = 0.1 A2Fp = 1e-06 return (IDsK, A2Fp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n zXil = [qIxc.epochs // 2, qIxc.epochs // 4 * 3, qIxc.epochs]\n tspZ = qIxc.lr * 0.1 ** int(Ce1H.bisect_left(zXil, qtWj))\n print('Learning rate: %f' % tspZ)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ\n return tspZ", "def NkTt():\n return 1e-05", "def v...
[ "0.7003922", "0.6926021", "0.68716943", "0.67949873", "0.67446923", "0.67332447", "0.6708009", "0.66876", "0.66859627", "0.6645371", "0.6641712", "0.66290194", "0.66106164", "0.65999776", "0.65935546", "0.65879184", "0.65794694", "0.6552069", "0.65517676", "0.65444505", "0.65...
0.8397371
0
Get secondary sort values. Virtual columns are handled in `__ColumnSorter`.
def cSNA(YKHO, fvDH, B2hD, gfpw): dT9G = 1 if fvDH == 0 else 0 return (YKHO.itemDataMap[B2hD][dT9G], YKHO.itemDataMap[gfpw][dT9G])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def inC0(YKHO, B2hD, gfpw):\n fvDH = YKHO._col\n EySs = YKHO._colSortFlag[fvDH]\n wWvP = YKHO.get_real_col(fvDH)\n CZxs = YKHO.itemDataMap[B2hD][wWvP]\n AhJh = YKHO.itemDataMap[gfpw][wWvP]\n if isinstance(CZxs, str) and isinstance(AhJh, str):\n yeYm = NCqB.strcoll(CZxs, AhJh)\n elif isi...
[ "0.62071997", "0.58730274", "0.5621224", "0.5518866", "0.54773545", "0.5393", "0.5341888", "0.53232557", "0.52600133", "0.5190061", "0.5181699", "0.5151981", "0.5151981", "0.51229507", "0.51078665", "0.50911766", "0.5082159", "0.5018418", "0.4954935", "0.49236172", "0.491044"...
0.74383354
0
Custom virtual columns sorter.
def inC0(YKHO, B2hD, gfpw): fvDH = YKHO._col EySs = YKHO._colSortFlag[fvDH] wWvP = YKHO.get_real_col(fvDH) CZxs = YKHO.itemDataMap[B2hD][wWvP] AhJh = YKHO.itemDataMap[gfpw][wWvP] if isinstance(CZxs, str) and isinstance(AhJh, str): yeYm = NCqB.strcoll(CZxs, AhJh) elif isinstance(CZxs,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L3Mc(YKHO):\n return YKHO._custom_sorter", "def hHsm(YKHO):\n ...", "def ZeKt(YKHO, eHkp=None, H5ew=None, gxEw=False):\n return YKHO.select(*sorted(YKHO.names, eHkp, H5ew, gxEw))", "def xeKp(YKHO):\n LsJh = YKHO.gridpreference_sort.all().select_related()\n return [WKvO.sort_display for WKv...
[ "0.65281457", "0.6102227", "0.601787", "0.58314013", "0.56135947", "0.5597947", "0.54681903", "0.53441566", "0.53441566", "0.5333031", "0.53098905", "0.53037524", "0.52963907", "0.5284364", "0.5238234", "0.5227253", "0.5201991", "0.5192361", "0.51891035", "0.5168167", "0.5159...
0.5765904
4
Reset all metrics to zero (need to do each epoch)
def SiRx(YKHO): YKHO.train_loss.reset_states() YKHO.train_accuracy.reset_states() YKHO.val_loss.reset_states() YKHO.val_accuracy.reset_states() YKHO.train_mIoU.reset_states() YKHO.val_mIoU.reset_states()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MaSP(YKHO):\n YKHO.metrics['loss'] = 0.0\n YKHO.metrics['num_tokens'] = 0\n YKHO.metrics['correct_tokens'] = 0\n YKHO.metrics['correct_pred'] = 0\n YKHO.metrics['pred_count'] = 0", "def SiRx(YKHO):\n YKHO.sum_metric = 0.0\n YKHO.num_inst = 0.0\n YKHO.metrics.reset_stats()", "def J6z...
[ "0.8496252", "0.81314856", "0.77527833", "0.77318305", "0.7647041", "0.7577927", "0.7505078", "0.74102134", "0.73813385", "0.7365769", "0.73467314", "0.7285014", "0.72767705", "0.7248069", "0.7236277", "0.7224332", "0.7217214", "0.7214814", "0.71930635", "0.71708196", "0.7123...
0.7057798
28
Returns a single Stream.
def NMoC(YKHO, sp_3): cuiw = wk5E.session wOb_ = cuiw.query(vZRq).filter(vZRq.id == sp_3).first() if wOb_ is None: return (None, 204) return (wOb_, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wOb_(YKHO):\n return JJXN.Stream(YKHO)", "def lZfr(YKHO):\n YKHO.lock.acquire()\n wOb_ = YKHO.stream\n YKHO.lock.release()\n return wOb_", "def wOb_(YKHO):\n return JJXN.Stream(YKHO)", "def wOb_(YKHO):\n return JJXN.Stream(YKHO)", "def wOb_(YKHO) -> wohN.Stream:\n return YWvJ(wo...
[ "0.7747039", "0.77306217", "0.7725054", "0.7725054", "0.7380293", "0.72829276", "0.7248339", "0.7060736", "0.70309925", "0.69151545", "0.6739036", "0.6654738", "0.6629158", "0.637735", "0.6323343", "0.62993824", "0.6277728", "0.6276736", "0.6271744", "0.6268093", "0.606737", ...
0.6158483
20
Performs the forward pass on a batch of states to generate the action probabilities. This returns a policy tensor of shape [episode_length, num_actions], where each row is a probability distribution over actions for each state.
def pOv4(YKHO, wspz, RZ8t): wspz = ZylS.convert_to_tensor(wspz) RZ8t = ZylS.convert_to_tensor(RZ8t) dmFY = YKHO.state_embedding(wspz) cShy = YKHO.hand_embedding(RZ8t) tgFK, xjvV = YKHO.gru(inputs=dmFY) AfYo = YKHO.hand_dense_layer(cShy) AtdO = ZylS.concat(tgFK, AfYo) KUGR = YKHO.concatte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RHoK(YKHO, QTBn, n_QZ=False):\n ZuB6 = YKHO.env.get_num_from_state(QTBn)\n BFeB = sum((YKHO.env.T_matrix[ZuB6 * YKHO.env.nA + jzdc, :] * YKHO.policy[ZuB6, jzdc] for jzdc in range(YKHO.env.nA))).toarray().squeeze()\n if n_QZ:\n return BFeB\n else:\n return YKHO._get_states(BFeB)", "d...
[ "0.66907716", "0.66742134", "0.65807354", "0.6501595", "0.6477979", "0.6455489", "0.64171404", "0.63594675", "0.6356999", "0.6338009", "0.6322942", "0.62669086", "0.61235493", "0.61220336", "0.61174953", "0.6093815", "0.6071995", "0.60661024", "0.606355", "0.60573167", "0.605...
0.0
-1
rebin 2D array pix into bins of size n x n New binsize must be evenly divisible into original pix image
def re_8(LNo8, exwG): assert LNo8.shape[0] % exwG == 0 assert LNo8.shape[1] % exwG == 0 KCHu = (LNo8.shape[0] // exwG, exwG, LNo8.shape[1] // exwG, exwG) return LNo8.reshape(KCHu).sum(-1).sum(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GF51(LNo8, HHPC):\n lWrn = oyIN.shape(LNo8)\n FHlE = LNo8.reshape(lWrn[0] // HHPC, HHPC, lWrn[1] // HHPC, HHPC).mean(-1).mean(1)\n return FHlE", "def re_8(YKHO):\n print('Rebinning image')\n lWrn = YKHO.imageData.shape\n if YKHO.binsize > 1 or YKHO.zbinsize > 1:\n LaAV = int(lWrn[1] ...
[ "0.71244156", "0.6861248", "0.6771941", "0.6206139", "0.61923176", "0.6159075", "0.61325747", "0.61067647", "0.61021465", "0.60795593", "0.6072788", "0.6056896", "0.60401285", "0.6016391", "0.6014821", "0.5905085", "0.58886683", "0.58848727", "0.5882583", "0.58790064", "0.586...
0.7151763
0
Add labelled edge between 2 nodes in the dependency graph
def rz7z(YKHO, sdCG, aUGN, UXqs=None): YKHO._heads[aUGN] = sdCG YKHO._labels[aUGN] = UXqs YKHO._deps[sdCG].append(aUGN) if aUGN < sdCG: YKHO._left_deps[sdCG].append(aUGN) else: YKHO._right_deps[sdCG].append(aUGN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, hQHm, jlSq):\n pass", "def rz7z(JZXy, fDOI, UXqs=''):\n JZXy.add_outgoing_edge(fDOI, UXqs)\n fDOI.add_incoming_edge(JZXy, UXqs)", "def rz7z(JZXy, pan_, UXqs, hJJy):\n if UqER is not YKHO and pan_ not in UqER:\n return\n if c9WI:\n Aofo.add_edge([JZXy, pan_])\n eli...
[ "0.7362751", "0.72575456", "0.70459825", "0.69533885", "0.6930411", "0.69220734", "0.68644285", "0.68520117", "0.679381", "0.67648506", "0.6735517", "0.66993856", "0.667923", "0.667237", "0.66660583", "0.66481894", "0.6645584", "0.6637192", "0.6562251", "0.65525043", "0.65157...
0.6746656
10
Render the homepage of the UI. Users query here.
def dkPU(): return TvZl('page_query.html', search_label=_k1G)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n bpFo = ''\n Wkxa = cuiw.get('UserType', None)\n if Wkxa == None:\n bpFo = 'anonHome.jade'\n elif Wkxa == 'Seeker':\n bpFo = 'indexJob.jade'\n elif Wkxa == 'Manager':\n bpFo = 'indexManager.jade'\n VQPB = nKyW('static', filename='loop frog.gif')\n kKyQ = cuiw....
[ "0.7765877", "0.75022775", "0.7501923", "0.74749863", "0.7439066", "0.74265903", "0.7424037", "0.7402315", "0.73976994", "0.73958814", "0.7393874", "0.73911065", "0.73742354", "0.7372547", "0.73630387", "0.73470455", "0.7338477", "0.7338477", "0.73351115", "0.7324074", "0.730...
0.0
-1
Get the RIB of the node. It can either be an AS or a router
def oeCA(YKHO, Q6kx): if not YKHO.net.is_running: P1dF('The network is not running.') Mkmy = YKHO._get_node(Q6kx) if Mkmy not in YKHO.net.routers: return None yvT9 = Mkmy.cmd(YKHO.RIBCommand) if 'Connection refused' not in yvT9: return YKHO._parse_rib(yvT9) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def km_9(YKHO, Lnes: str) -> ESOI:\n if Lnes not in YKHO.nodes_rib_out.keys():\n raise KeyError('{} not in the nodes rib out dict'.format(Lnes))\n return YKHO.nodes_rib_out[Lnes]", "def mTiJ(YKHO):\n DpUl = YKHO.sql.cursor()\n DpUl.execute('SELECT DISTINCT host, port, device, idx, asn, prefix,...
[ "0.62995046", "0.6155415", "0.6010725", "0.5768443", "0.5704807", "0.55112433", "0.54687697", "0.5466765", "0.54094404", "0.5377101", "0.53746", "0.53544825", "0.5331491", "0.5295416", "0.52798563", "0.52588284", "0.5246311", "0.52389044", "0.5234734", "0.5213477", "0.5173211...
0.76469797
0
Get the suffix of a LeafNodePath.
def tCc5(XP5J): return m13I(JlQ_(XP5J.middle[0]), XP5J.middle[1:], XP5J.tail)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EHZ1(pmON):\n sdCG, J3uN = Om__.split(pmON)\n return J3uN or Om__.basename(sdCG)", "def ZI14(YKHO):\n return YKHO['suffix']", "def ZI14(YKHO):\n return YKHO['suffix']", "def T8mP(pmON):\n sdCG, J3uN = Om__.split(pmON)\n return J3uN or Om__.basename(sdCG)", "def T8mP(pmON):\n sdCG, ...
[ "0.7573001", "0.7312858", "0.7312858", "0.7301499", "0.7191482", "0.71273154", "0.71062005", "0.71062005", "0.71062005", "0.7069467", "0.7069467", "0.6821236", "0.67081004", "0.66396767", "0.66022146", "0.65634286", "0.6484998", "0.6435447", "0.63797605", "0.6360053", "0.6348...
0.8178771
0
Gets a ragged tensor from a leaf node path.
def sOWL(Ziit, xAU6): if not Ziit.middle: return n3v5(Ziit.tail.values, value_rowids=Ziit.tail.parent_index, nrows=Ziit.head.size, validate=xAU6.ragged_checks) Z3sU = sOWL(tCc5(Ziit), xAU6) PxQb = Ziit.middle[0] return n3v5(Z3sU, value_rowids=PxQb.parent_index, nrows=Ziit.head.size, validate=xAU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RyQt(cuiw, upmJ, pmON):\n oFZE = ZylS.compat.v1.placeholder(dtype=ZylS.string, shape=(None,))\n VN2L = o_O2.expression_impl.proto.create_expression_from_proto(oFZE, upmJ)\n VN2L = VN2L.project(pmON)\n [jHd6] = o_O2.calculate.calculate_prensors([VN2L], options=o_O2.calculate_options.get_options_with...
[ "0.59941137", "0.5936841", "0.58930516", "0.5641258", "0.5544587", "0.5292013", "0.5270012", "0.52692187", "0.51720107", "0.51599723", "0.50401396", "0.5030945", "0.5023733", "0.4921559", "0.492152", "0.4920837", "0.49044225", "0.48774263", "0.48718417", "0.48705763", "0.4866...
0.8062186
0
Instance of `click.testing.CliRunner` with automagically `isolated_filesystem()` called.
def x5cH(T1Ea: CliRunner) -> jd6F[p9tP, None, None]: with T1Ea.isolated_filesystem(): yield T1Ea
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WL52() -> p9tP:\n return k8wH.testing.CliRunner()", "def x5cH(T1Ea: CliRunner) -> bDy6[p9tP]:\n with T1Ea.isolated_filesystem():\n yield T1Ea", "def WL52() -> p9tP:\n return p9tP()", "def WL52() -> p9tP:\n return p9tP()", "def uHpU():\n return p9tP()", "def WL52():\n return p...
[ "0.7636925", "0.7612185", "0.6908521", "0.6908521", "0.6775731", "0.6749159", "0.6405702", "0.6405702", "0.6405702", "0.63916785", "0.62555254", "0.6226581", "0.62091875", "0.5909383", "0.58321357", "0.57652116", "0.5692561", "0.5677757", "0.5665565", "0.5644147", "0.56371844...
0.7678398
0
Set the name option of an interface.
def oSgC(YKHO, mWFP): YKHO._validator.validate_one('name', iyhn['name'], mWFP) YKHO._ifAttributes['name'] = str(mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO.options['name'] = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(Y...
[ "0.7927644", "0.761786", "0.761786", "0.761786", "0.761786", "0.761786", "0.76026356", "0.75299543", "0.75299543", "0.7495098", "0.7487375", "0.7487375", "0.7487375", "0.7487375", "0.7467488", "0.7439541", "0.74296266", "0.7408798", "0.7408798", "0.7406296", "0.7406296", "0...
0.717915
27
Return a copy of the ifAttributes data structure as dict. You may optionally pass a list of options to return
def g75F(YKHO, YtX4=None): o8Kj = YKHO._ifAttributes if YtX4: o8Kj = {} for G1Hx in YtX4: try: o8Kj[G1Hx] = YKHO._ifAttributes[G1Hx] except KeyError: o8Kj[G1Hx] = None return jth9.deepcopy(o8Kj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n if YKHO._dict is not None:\n return YKHO._dict\n Aofo = {}\n for H5ew in YKHO.ATTRIBUTES:\n BWXx = getattr(YKHO, H5ew)\n if BWXx:\n Aofo[H5ew] = BWXx\n YKHO._dict = Aofo\n return Aofo", "def Z175(YKHO) -> GySg[str, ImMB] | None:\n if (VPCt := YK...
[ "0.6421872", "0.63037103", "0.6301704", "0.60913396", "0.60145134", "0.5957705", "0.593351", "0.58859384", "0.5756", "0.5751398", "0.572051", "0.5699228", "0.56977993", "0.56977993", "0.56977993", "0.5693103", "0.56866974", "0.5673942", "0.5673518", "0.56541675", "0.56414783"...
0.7673515
0
Ensure the data for the given key will be in a list. If value is a list, it will be flattened
def rOXd(Op6c, H5ew, BWXx): if H5ew not in Op6c: Op6c[H5ew] = [] if not isinstance(Op6c[H5ew], list): jbXL = Op6c[H5ew] Op6c[H5ew] = [jbXL] if isinstance(BWXx, list): Op6c[H5ew] += BWXx else: Op6c[H5ew].append(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nBVR(YKHO, H5ew):\n BWXx = YKHO.get(H5ew, [])\n if BWXx is None or isinstance(BWXx, (list, tuple)):\n return BWXx\n else:\n return [BWXx]", "def MdLO(nPrm, B2hD, gfpw=None):\n if gfpw is None:\n gfpw = B2hD[:-1]\n if isinstance(nPrm[B2hD], list):\n nPrm[B2hD] = {}\n...
[ "0.6927049", "0.68954504", "0.66051114", "0.63449544", "0.6278143", "0.62477684", "0.6166957", "0.6160428", "0.61310923", "0.609465", "0.6091963", "0.6078081", "0.60602844", "0.6016851", "0.6016851", "0.5978201", "0.595474", "0.5950147", "0.59288824", "0.59203184", "0.587845"...
0.7332933
0
Compute the output shape of a transposed convolution.
def eeUt(aBvC, Ot1W=1, _0fC=1, hVLt=0, EJc2=0): if type(Ot1W) is not tuple: Ot1W = (Ot1W, Ot1W) MKlR = (aBvC[0] - 1) * _0fC - 2 * hVLt + Ot1W[0] + EJc2 yzQ0 = (aBvC[1] - 1) * _0fC - 2 * hVLt + Ot1W[1] + EJc2 return (MKlR, yzQ0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OOwo(YKHO, oLRV, UU6M):\n return YKHO.add_layer(OOwo, oLRV, UU6M)", "def I_E2(YKHO):\n _mSQ = YKHO.W.get_shape().as_list()\n zi3C = oyIN.asarray(YKHO.incoming_shape[-3:-1])\n FEri = oyIN.asarray(YKHO.strides[-3:-1])\n NJRn = oyIN.asarray(_mSQ[0:2])\n PDlg = _mSQ[-1]\n mJgj = oyIN.asarray...
[ "0.67945755", "0.6751335", "0.6743639", "0.674018", "0.6666403", "0.663166", "0.6598355", "0.6591298", "0.6591298", "0.6591298", "0.6588099", "0.6576763", "0.6574438", "0.6572137", "0.6563509", "0.6542618", "0.6531531", "0.6480934", "0.64753306", "0.6453491", "0.64316714", ...
0.73243505
0
Normalize this URL by removing hash and adding domain
def NkkI(uk3S, QZnA): QZnA, bGrB = T2jy(QZnA) return TDhU(uk3S, QZnA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gmoQ(YKHO, bD7m):\n pass", "def nqqN(bD7m, tZ2K=None, Nlxd=False, Zvy_=False, KL7V=False):\n if Nlxd:\n bD7m = bD7m.strip()\n if isinstance(bD7m, QMSQ):\n try:\n bD7m = bD7m.encode('ascii')\n except UnicodeEncodeError:\n pass\n cTiu = True\n else:...
[ "0.7577206", "0.70005417", "0.69015867", "0.687918", "0.6866126", "0.68180645", "0.67399746", "0.6734249", "0.6622277", "0.65595686", "0.6503708", "0.6454672", "0.6429661", "0.6376121", "0.6374432", "0.6314381", "0.6303243", "0.6273526", "0.62709045", "0.62659615", "0.6249797...
0.6808679
6
Update the provided environment dict by running the script.
def NW_C(SVCJ: Dict[str, str], B6sC: str) -> cuzp[str, str]: fq4v = SVCJ.copy() fq4v['_CWLTOOL'] = '1' Ylbp = Yn3K.run(['bash', B6sC], shell=False, env=fq4v) if Ylbp.returncode != 0: HwRy.stderr.write('Error while using SoftwareRequirements to modify environment\n') return SVCJ sEAN ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, Oz1B, choM):\n pass", "def QdZT(YKHO, sEAN):\n del sEAN\n return", "def ONFf(YKHO, H5ew, BWXx):\n pass", "def xkgw(C4pr, cuiw):\n for H5ew, BWXx in C4pr.items():\n cuiw.env[H5ew] = BWXx", "def I9Xc(YKHO, QePW, _sei=None):\n P4t4 = YKHO.get_object()\n P4t4.update_e...
[ "0.7108166", "0.6429448", "0.634358", "0.6342019", "0.6178882", "0.6154017", "0.6132157", "0.612212", "0.6102744", "0.606657", "0.6042623", "0.6007719", "0.5991362", "0.59453464", "0.59425396", "0.5900077", "0.58668816", "0.58595634", "0.58545315", "0.58395714", "0.5825485", ...
0.6010714
11
Return the coverage of the node, discounted by the coverage of neighbouring nodes not in the path
def ShuC(Q6kx, pmON, yvY1): xISc = [(jQhn(XP5J, yvY1), XP5J) for XP5J in yvY1.predecessors(Q6kx)] sLjk = [(jQhn(KCHu, yvY1), KCHu) for KCHu in yvY1.successors(Q6kx)] f1pr = sum([XP5J[0] for XP5J in xISc if XP5J[1] not in pmON]) + sum([KCHu[0] for KCHu in sLjk if KCHu[1] not in pmON]) ovcq = sum([XP5J[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W2MV(JYRY, pmON):\n pmON = oyIN.array(pmON).T\n assert pmON.shape[0] == 2\n WKvO, LVAh = pmON\n '\\n calculates the distance to travel by the drone\\n '\n pf2z = 0\n YylR = 0\n kGZp = 0\n for r8hN in range(len(WKvO) - 1):\n pf2z += epAf.sqrt(epAf.pow(WKvO[r8hN] - WKvO[r8hN ...
[ "0.67791444", "0.6045567", "0.59110355", "0.5787587", "0.5774801", "0.5734735", "0.5679498", "0.5648852", "0.5645363", "0.56408286", "0.5597137", "0.5597137", "0.5573487", "0.5559893", "0.5550853", "0.5550853", "0.5550853", "0.5546039", "0.55389106", "0.55268824", "0.5468943"...
0.7314865
0
retrieves set of nodes mapped to by read pairs having one mate on node; discards isolated nodes because they tend to reflect irrelevant alignments
def YSib(Q6kx, kJMP, yvY1): QFkQ = set([]) if Q6kx[-1] == "'": Q6kx = Q6kx[:-1] try: for UZ_k in kJMP.fetch(Q6kx): nl9b = kJMP.getrname(UZ_k.next_reference_id) if nl9b != Q6kx: QFkQ.add(nl9b) except ValueError: pass lV4j = set([]) f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xD3e(r8hN, tp5O=3, YMnE=9, jyvu=Kt_s):\n lNWu = []\n for YRbF in range(tp5O, YMnE + 1):\n e3EG = '*~1' + '~*' * (YRbF - 2) + '~*1'\n jrOu = OJ0g.MolFromSmarts(e3EG)\n for KgsJ in r8hN.GetSubstructMatches(jrOu):\n R7S1 = set(KgsJ)\n if R7S1 not in lNWu:\n ...
[ "0.6151634", "0.58929336", "0.58251715", "0.5658056", "0.56443065", "0.55982834", "0.5587286", "0.55176324", "0.55136156", "0.55103695", "0.5446049", "0.53892326", "0.5336814", "0.5336567", "0.53179324", "0.53052384", "0.5298034", "0.5284326", "0.52798134", "0.527656", "0.527...
0.6397694
0
Verifies whether not only As are Bs in a sequence.
def xD9x(Q6uT): for ZfUD in Q6uT: if oyIN.array_equal(ZfUD, oQkL.BnotA): return oQkL.T return oQkL.F
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bq9F(wRX1):\n mLcn = ('A', 'C', 'G', 'T')\n for YRbF in wRX1:\n if YRbF not in mLcn:\n raise DQrD(wRX1, 'malformed input')", "def CeSk(JCY1):\n return any(filter(VE3Z, JCY1))", "def VpMY(Emd4, aWuw):\n all([Emd4._check_item(WKvO) for WKvO in aWuw])", "def Znlm(Q6uT):\n re...
[ "0.67467326", "0.65715164", "0.6517284", "0.64706063", "0.6415162", "0.6397542", "0.61048204", "0.60953486", "0.6092488", "0.60846347", "0.6054272", "0.6050505", "0.6020228", "0.59959936", "0.594599", "0.59299797", "0.59054095", "0.5903566", "0.58913046", "0.5881871", "0.5870...
0.5814031
22
Generates a Quantifier corresponding to all but n.
def gugg(exwG): return oQkL('all_but_{}'.format(exwG), isom=True, cons=True, lcons=False, rmon=None, lmon=None, fn=lambda Q6uT: VgXh(Q6uT, exwG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VgXh(Q6uT, exwG):\n aIWg = 0\n for ZfUD in Q6uT:\n if oyIN.array_equal(ZfUD, oQkL.AnotB):\n aIWg += 1\n return oQkL.T if aIWg == exwG else oQkL.F", "def ReNU(exwG):\n\n def KfqQ(YPaw):\n vU9r = {'count': 0}\n\n def CmQi(Mkmy=RVJO, WKvO=RVJO):\n if Mkmy i...
[ "0.73132485", "0.6602352", "0.63106775", "0.61999327", "0.6059634", "0.59755254", "0.5950317", "0.59258187", "0.59131724", "0.5889656", "0.5668129", "0.564914", "0.56325084", "0.5620147", "0.5618542", "0.56029224", "0.5598489", "0.55872035", "0.5563999", "0.5537969", "0.55283...
0.8269607
0
Returns the content of the element pointed by the CSS selector, or an empty string if not found
def Yj4z(Z9JV, MfZR): SuM2 = Z9JV.select(MfZR) if len(SuM2) > 0: if hasattr(SuM2[0], 'text'): wZRD = SuM2[0].text.strip() else: wZRD = '' else: wZRD = '' return wZRD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gFHi(YKHO, PKko):\n geyT = YKHO.locate_element(PKko)\n return geyT.text", "def u0Rs(YKHO, PKko):\n wuNX = YKHO._find_within(PKko).text\n return wuNX[0] if wuNX else None", "def Y8ST(YKHO, MfZR):\n U6D_ = YKHO.driver.find_elements_by_css_selector(MfZR)\n if len(U6D_) > 0:\n Q7o4 = U...
[ "0.7807155", "0.75559545", "0.7347338", "0.7177119", "0.71689636", "0.6964603", "0.6919934", "0.6628587", "0.6464039", "0.6378006", "0.61686534", "0.6139356", "0.6057531", "0.6057098", "0.60482126", "0.60424733", "0.60120195", "0.59997714", "0.59809774", "0.5951575", "0.59339...
0.71902966
3
Returns the main page with default of minerals starting with A listed.
def d6pt(QePW): pJnj = kNoW.objects.filter(name__startswith='A') yEHD.success(QePW, 'Successfully found {} of the following minerals!'.format(len(pJnj))) return _1tc(QePW, 'index.html', {'minerals': pJnj})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlwa():\n return WBPg() + mRnc()", "def vja_():\n return f'Available Routes:<br/>/api/v1.0/precipitation<br/>/api/v1.0/stations<br/>/api/v1.0/tobs<br/>/api/v1.0/start<br/>/api/v1.0/start/end<br/>'", "def C_QL():\n return {'sample': 'ADAL'}", "def vja_(QePW):\n pJnj = kNoW.objects.all()\n r...
[ "0.67111564", "0.6113366", "0.60944694", "0.60894", "0.5865181", "0.5819003", "0.57833713", "0.5762131", "0.5744716", "0.57151186", "0.57060885", "0.5696606", "0.5653075", "0.5646128", "0.5622696", "0.56058514", "0.55835867", "0.55835867", "0.5572589", "0.5567097", "0.5564662...
0.63797146
1
Returns an index view with only the minerals displayed which meet the query criteria.
def jocJ(QePW): fNjO = QePW.GET.get('q') pJnj = kNoW.objects.filter(name__icontains=fNjO) yEHD.success(QePW, 'Successfully found {} of the following minerals!'.format(len(pJnj))) return _1tc(QePW, 'index.html', {'minerals': pJnj})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(QePW):\n pJnj = kNoW.objects.filter(name__startswith='A')\n yEHD.success(QePW, 'Successfully found {} of the following minerals!'.format(len(pJnj)))\n return _1tc(QePW, 'index.html', {'minerals': pJnj})", "def LUo9(YKHO):\n return YKHO.get_model().objects.filter(active=True)", "def LUo9(YK...
[ "0.64888036", "0.6145249", "0.612185", "0.5989232", "0.5989232", "0.5989232", "0.5989232", "0.5989232", "0.5989232", "0.5989232", "0.5989232", "0.5989232", "0.5989232", "0.5989232", "0.5882558", "0.5807392", "0.57840645", "0.57823706", "0.57547057", "0.57471263", "0.57203317"...
0.59267694
14
This function uses the fucntion createRandom to fold protein until the protein is validly folded. Returns the folded protein.
def ny99(Fvpe, kEC0): PZMH = Sypp(Fvpe, kEC0) MnYC = lVMx(PZMH) while not MnYC: MnYC = lVMx(PZMH) return PZMH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lVMx(PZMH):\n PZMH.occupied = []\n PZMH.aminoList = []\n for id in range(PZMH.proteinLength):\n PZMH.aminoList.append(FgnL(id, PZMH.proteinString[id]))\n if id in {0, 1}:\n C2IA = [0, id]\n if PZMH.plane == '3D':\n C2IA.append(0)\n PZMH.ami...
[ "0.66577893", "0.5151083", "0.5089178", "0.50648373", "0.5049932", "0.5034096", "0.5013142", "0.5009248", "0.49666798", "0.49506995", "0.49476516", "0.4929508", "0.4861598", "0.48447198", "0.48283947", "0.48241118", "0.48234522", "0.48175165", "0.47955433", "0.4794365", "0.47...
0.7396538
0
Random folding of the protein. The first and second amino acids are always placed at coordinates (0, 0) and (0, 1) (or for 3D (0, 0, 0) and (0, 1, 0)) respectively. This excludes rotationally symmetric folds. Returns True if the protein is validly folded and False if the protein is not validly folded.
def lVMx(PZMH): PZMH.occupied = [] PZMH.aminoList = [] for id in range(PZMH.proteinLength): PZMH.aminoList.append(FgnL(id, PZMH.proteinString[id])) if id in {0, 1}: C2IA = [0, id] if PZMH.plane == '3D': C2IA.append(0) PZMH.aminoList[id].coo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ny99(Fvpe, kEC0):\n PZMH = Sypp(Fvpe, kEC0)\n MnYC = lVMx(PZMH)\n while not MnYC:\n MnYC = lVMx(PZMH)\n return PZMH", "def jiQR(YKHO) -> bool:\n if YKHO._fuse_row:\n usx6 = (YKHO._tiling.cells_in_row(YKHO._row_idx), YKHO._tiling.cells_in_row(YKHO._row_idx + 1))\n else:\n ...
[ "0.5876433", "0.5085454", "0.5073674", "0.5069469", "0.5042128", "0.49635172", "0.49400097", "0.49311003", "0.49236113", "0.48493937", "0.48486397", "0.48427165", "0.48308676", "0.4817986", "0.4777201", "0.47732565", "0.47505078", "0.47221968", "0.4717568", "0.46741062", "0.4...
0.62171626
0
DT_IGNORE Creates or gets a numeric group id from namespace and identifier.
def rfWX(_63S: str, Ilxn: str) -> int: return BZZ4().get_group_id(_63S, Ilxn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzg2(YKHO):\n if not hasattr(YKHO.space, '_group_ctr'):\n YKHO.space._group_ctr = 999\n YKHO.space._group_ctr += 1\n return YKHO.space._group_ctr", "def ftcK(BatK, r0ef):\n for d6pt in range(3):\n xULG = tuKI.randint(klU0, Vo08)\n if BatK in r0ef:\n Hq2u = int(r0ef...
[ "0.6014531", "0.5997219", "0.5970293", "0.59467477", "0.5872595", "0.58627933", "0.58627933", "0.58181095", "0.57615536", "0.5737611", "0.5705402", "0.567109", "0.5637106", "0.5598504", "0.5598504", "0.5598504", "0.5588042", "0.5584629", "0.5584629", "0.5584629", "0.5575309",...
0.65737486
0
Returns CLI arguments parser
def EpPs(): wvEv = wvEv.ArgumentParser() return wvEv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDxj():\n wvEv = PDen()\n return wvEv.parse_args()", "def DDxj():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('ENV', help='Enviorment SCANNER, PC, REMOMTE')\n qIxc = wvEv.parse_args()\n return qIxc", "def w4jA():\n wvEv = j1Jz.ArgumentParser(description=__doc__)\n wvEv.add_ar...
[ "0.8196402", "0.8080752", "0.7898864", "0.785061", "0.78047395", "0.78047395", "0.7798605", "0.7776068", "0.77624434", "0.775629", "0.7723223", "0.7687207", "0.7681091", "0.7679781", "0.7665985", "0.7640004", "0.76204604", "0.7618474", "0.76173127", "0.76065207", "0.75747454"...
0.7452342
37
Get all cars from db.
def NjO3(YKHO): gSrW = EEzq.objects.all() return gSrW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NjO3(YKHO):\n return YKHO.cars.get_all_cars()", "async def get_cars(cuiw: AsyncSession=JHvC(KfiN)) -> list[CSmO]:\n Aofo = await cuiw.execute(EfUA(CSmO))\n return [CSmO(name=_6NH.name, manufacturer=_6NH.manufacturer, id=_6NH.id) for _6NH in Aofo.scalars().all()]", "def ylyh():\n roBb = CSmO.que...
[ "0.78536844", "0.7527779", "0.71802926", "0.7013079", "0.6924098", "0.6866876", "0.6755445", "0.6738459", "0.6693889", "0.6615636", "0.6498028", "0.6483031", "0.6480473", "0.64601976", "0.63902754", "0.63862395", "0.63851434", "0.6332205", "0.63264626", "0.63193595", "0.62939...
0.8369058
0
Add new rate to specified car.
def xIZN(YKHO, PEX4, C3ST, mVUw): try: vjyc = EEzq.objects.get(make=PEX4.upper(), model=C3ST.upper()) except: return False else: vjyc.rates += 1 if mVUw == 1: vjyc.rate1 = int(vjyc.rate1) + 1 if vjyc.rate1 is not None else 1 elif mVUw == 2: vjy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uCOI(YKHO, _6NH):\n EEzq.objects.update_or_create(make=_6NH.make, model=_6NH.model.upper())", "def mVUw(YKHO, mVUw):\n YKHO._rate = mVUw", "def mVUw(YKHO, mVUw):\n YKHO._rate = mVUw", "def OcDn(YKHO, Z5kt):\n wn53 = YKHO.params['speed'][1] - YKHO.params['speed'][0]\n l2NX = YKHO.params['sp...
[ "0.6657067", "0.61015946", "0.61015946", "0.6028448", "0.59873486", "0.5932462", "0.5919552", "0.5886213", "0.57961136", "0.5748402", "0.57039", "0.56761694", "0.5627035", "0.5587056", "0.5584775", "0.5571537", "0.55713296", "0.55517775", "0.55193055", "0.5517628", "0.5503428...
0.6834427
0
Return the color property.
def Cs0X(YKHO): return YKHO._color
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qfpW(YKHO):\n if 'color' in YKHO._prop_dict:\n return YKHO._prop_dict['color']\n else:\n return None", "def PICn(YKHO):\n return YKHO.__color", "def PICn(YKHO):\n return YKHO.color", "def PICn(YKHO):\n return YKHO._color", "def qfpW(YKHO):\n return YKHO['color']", "def...
[ "0.87653166", "0.87366503", "0.8715803", "0.8709524", "0.8682282", "0.8670377", "0.8670377", "0.86526895", "0.8624963", "0.8608365", "0.8608365", "0.85546553", "0.8554106", "0.854379", "0.85098284", "0.85098284", "0.85098284", "0.84986424", "0.8456452", "0.83982414", "0.83982...
0.7656027
39
Return true if we do optimistic updates.
def DbRH(YKHO): return YKHO._command_state is False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VEAD(YKHO) -> bool:\n return YKHO.statement.is_dml and YKHO.statement.is_update", "def VY8j(YKHO):\n return True", "def R1aV(YKHO):\n if YKHO.is_updated:\n YKHO.is_updated = False\n return True\n else:\n return False", "def XLGg(YKHO):\n if not YKHO._is_persisted:\n ...
[ "0.73964417", "0.7278663", "0.7245927", "0.6944468", "0.68290955", "0.6739517", "0.6733149", "0.6692119", "0.6631447", "0.65886956", "0.65801424", "0.6547911", "0.653025", "0.65019864", "0.6399094", "0.63840306", "0.63647705", "0.63334054", "0.6331249", "0.62145007", "0.61863...
0.0
-1
Check that embeddings are uniform, are not both None, and have same embedding_size
def lg9v(HQVH: Optional[EmbeddingBase], jPCu: Optional[EmbeddingBase]) -> k_A5: if HQVH is None and jPCu is None: raise ValueError('embedding_num and embedding_cat cannot both be None') tbdQ(HQVH, 'embedding_num') tbdQ(jPCu, 'embedding_cat') if HQVH is not None and jPCu is not None and (not HQVH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eXCv(HQVH: Optional[EmbeddingBase], jPCu: Optional[EmbeddingBase]) -> k_A5:\n if HQVH is None and jPCu is None:\n return k_A5(0, 0)\n eBPZ = 0\n a6Jb = 0\n if HQVH is not None:\n eBPZ += HQVH.num_fields\n a6Jb += HQVH.output_size\n if jPCu is not None:\n eBPZ += jPCu....
[ "0.64989173", "0.63688195", "0.6341857", "0.6131795", "0.60367113", "0.600345", "0.60014683", "0.59798205", "0.5979441", "0.5967271", "0.58119464", "0.5798997", "0.57981473", "0.5794713", "0.57849044", "0.5762123", "0.5761433", "0.57531583", "0.57480466", "0.5745545", "0.5710...
0.69622046
0
Plot an image along with its histogram and cumulative histogram
def _htN(LNo8, MPlV, Pyrc=256): LNo8 = qjPU(LNo8) GmVY, DKlr = MPlV qk9S = DKlr.twinx() GmVY.imshow(LNo8, cmap=QrM1.cm.gray) GmVY.set_axis_off() DKlr.hist(LNo8.ravel(), bins=Pyrc, histtype='step', color='black') DKlr.ticklabel_format(axis='y', style='scientific', scilimits=(0, 0)) DKlr.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _htN(LNo8, MPlV, Pyrc=256):\n GmVY, DKlr = MPlV\n qk9S = DKlr.twinx()\n GmVY.imshow(LNo8, cmap=QrM1.cm.gray)\n GmVY.set_axis_off()\n DKlr.hist(LNo8.ravel(), bins=Pyrc, histtype='step', color='black')\n DKlr.ticklabel_format(axis='y', style='scientific', scilimits=(0, 0))\n DKlr.set_xlabel(...
[ "0.79712605", "0.77877474", "0.7662112", "0.7385908", "0.7265469", "0.71918064", "0.70633245", "0.69852966", "0.6891767", "0.68743986", "0.68024004", "0.68024004", "0.68024004", "0.66946405", "0.6639566", "0.65769684", "0.65732086", "0.6505056", "0.6369845", "0.63639116", "0....
0.7724569
2
Convert class labels from scalars to onehot vectors.
def kPpE(YKHO, lexL, jTqs): return oyIN.eye(jTqs)[lexL]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(Crrw, KndY=None):\n return nMvt.utils.to_categorical(Crrw, KndY)", "def KLLm(Crrw, KndY=None):\n PnsN = nMvt.utils.to_categorical(Crrw, KndY)\n return PnsN", "def LQDo(Crrw: torch.Tensor, jTqs: int) -> ht2j.Tensor:\n if len(Crrw.size()) == 1:\n return vuvg.one_hot(Crrw, jTqs).float(...
[ "0.8250402", "0.807683", "0.80523187", "0.7977843", "0.7908335", "0.7900327", "0.7892233", "0.7869711", "0.7849721", "0.7849721", "0.7826951", "0.7826122", "0.77677035", "0.7765413", "0.77540547", "0.77540547", "0.77540547", "0.77489346", "0.7742955", "0.7737176", "0.77226317...
0.7555525
44
Constructs an IPTag object.
def FIMM(YKHO, **B2fa): DgAC = ('ip', 'mac', 'port', 'timeout', 'flags', 'index', 'tag', 'hostname') for mS46 in DgAC: YKHO.__dict__[mS46] = B2fa.setdefault(mS46, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, *, hyNr: Optional[pulumi.Input[str]]=None, TZ9E: Optional[pulumi.Input[str]]=None):\n if hyNr is not None:\n qe4Y.set(Ro_8, 'ip_tag_type', hyNr)\n if TZ9E is not None:\n qe4Y.set(Ro_8, 'tag', TZ9E)", "def FIMM(YKHO, K9NE, qdFD='IPTagger', o8Kj=('has_ipv4', 'is_ipv4', 'ipv4'), l...
[ "0.6941745", "0.6145799", "0.60613406", "0.60026276", "0.59347343", "0.5879756", "0.58414394", "0.57297677", "0.5694575", "0.56703776", "0.5666385", "0.56635576", "0.5648694", "0.5542343", "0.55409145", "0.5537023", "0.5447569", "0.5439185", "0.5427557", "0.54247904", "0.5421...
0.0
-1
Mark a video as flagged.
def naBh(YKHO, DYeJ, Ji45=''): SFIC = YKHO._video_library.get_all_videos() Dn78 = False for VNnZ in YKHO.flagged: if DYeJ.lower() in VNnZ: print('Cannot flag video: Video is already flagged') break else: for Ty9i in SFIC: if DYeJ.lower() in Ty9i.video_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def naBh(YKHO, DYeJ, Ji45='Not supplied'):\n f6W2 = YKHO._video_library.get_video(DYeJ)\n if not f6W2:\n print('Cannot flag video: Video does not exist')\n return\n if f6W2.flag is not None:\n print('Cannot flag video: Video is already flagged')\n return\n f6W2.set_flag(Ji45...
[ "0.7585753", "0.7543017", "0.7286989", "0.7286989", "0.68738246", "0.67508376", "0.6579819", "0.65071416", "0.59914064", "0.5956641", "0.583062", "0.5781579", "0.5766682", "0.57447886", "0.57447886", "0.57447886", "0.57447886", "0.56196725", "0.5476563", "0.54668385", "0.5389...
0.6934897
4
Public method to set the list of blocked domains. list_ list of blocked domains (list of strings)
def QqvW(YKHO, bCES): if not YKHO.__loaded: YKHO.__load() YKHO.__exceptionsBlock = bCES[:] YKHO.__exceptionsBlock.sort() YKHO.__saveTimer.changeOccurred()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_MN(YKHO, aHUn):\n ...", "def TGcJ(YKHO, K6L3):\n gTEQ('PrlVmDevNet_SetSearchDomains', YKHO.handle, JEdq(K6L3))", "def TGcJ(YKHO, K6L3):\n gTEQ('PrlVmCfg_SetSearchDomains', YKHO.handle, JEdq(K6L3))", "def NZrW(YKHO, Rrob):\n YKHO.blists = Rrob[:]", "def igCy(YKHO, bCES):\n if not YKHO._...
[ "0.7745539", "0.6183828", "0.6166877", "0.6150794", "0.59379864", "0.588753", "0.57991415", "0.57857275", "0.57089376", "0.56997347", "0.56793857", "0.5671253", "0.5650077", "0.5568337", "0.5538602", "0.5538602", "0.55260533", "0.5504782", "0.5498809", "0.5423998", "0.5373138...
0.63237345
1
Take a string and return a valid filename constructed from the string.
def LWVQ(KCHu): jUwZ = '-_.() %s%s' % (vIwR.ascii_letters, vIwR.digits) Ux0P = ''.join((Z9rn for Z9rn in KCHu if Z9rn in jUwZ)) Ux0P = Ux0P.replace(' ', '_') return Ux0P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LWVQ(KCHu: str):\n jUwZ = '-_.() %s%s' % (vIwR.ascii_letters, vIwR.digits)\n Ux0P = ''.join((Z9rn for Z9rn in KCHu if Z9rn in jUwZ))\n Ux0P = Ux0P.replace(' ', '_')\n return Ux0P", "def XZ66(KCHu):\n assert KCHu is not '' or KCHu is not None\n KCHu = str(KCHu).strip().replace(' ', '_')\n ...
[ "0.80485183", "0.798944", "0.7949801", "0.787847", "0.7862182", "0.7727231", "0.77141064", "0.76735306", "0.75296444", "0.7505588", "0.747976", "0.743618", "0.7330777", "0.73069334", "0.7068746", "0.70555854", "0.6852573", "0.68469024", "0.6833942", "0.6758523", "0.6737564", ...
0.7855741
6
View function for home page of site.
def d6pt(QePW): nM65 = T97t.objects.count() C3ST = T97t return _1tc(QePW, 'index.html', context={'num_authors': nM65})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')", "def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')", "def kZiy(QePW):\n return _1tc(QePW, 'home.html')", "def C_QL(QePW):\n return _1tc(QePW, 'core/homepage.html')", "def C_QL(QePW):\n return SGJU('h1ds_core/homepage.html'...
[ "0.8493426", "0.84268916", "0.83415145", "0.83306193", "0.82976943", "0.8295291", "0.8276345", "0.82545686", "0.82155704", "0.8132563", "0.81246215", "0.81224865", "0.8121264", "0.81049734", "0.8098485", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0...
0.0
-1
Changes the column col from a categorical type to it's integer codes.
def GjfZ(jQ3Z, fvDH, mWFP, WM5g): if not diP9(fvDH) and (WM5g is None or fvDH.nunique() > WM5g): jQ3Z[mWFP] = fvDH.cat.codes + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LusU(jQ3Z):\n R8Ph = jQ3Z.select_dtypes('category').columns\n for fvDH in R8Ph:\n jQ3Z[fvDH] = jQ3Z[fvDH].cat.codes + 1\n P1M_ = len(jQ3Z[fvDH].unique())\n if P1M_ < 50:\n jQ3Z[fvDH] = jQ3Z[fvDH].astype('uint8')\n elif P1M_ < 16000:\n jQ3Z[fvDH] = jQ3Z[fv...
[ "0.70822436", "0.6667424", "0.66295624", "0.65453863", "0.6460738", "0.6441559", "0.63394433", "0.6199746", "0.6192149", "0.61766446", "0.6158148", "0.61502683", "0.6119392", "0.6006197", "0.6002804", "0.59568983", "0.5953708", "0.5856821", "0.58450335", "0.5830752", "0.58287...
0.6408884
6
Given a list of comments, returns them in linear order (to display them as a simple list and not as a threaded tree.
def z8o0(Tj1O): return {'root': Tj1O}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def npe5(YKHO, J_Es, Tj1O):\n Tj1O = list(Tj1O)\n Tj1O.sort(key=lambda Z9rn: Z9rn.line)\n bKwx = {0: 0}\n for YRbF, Z9rn in enumerate(Tj1O):\n if Z9rn.line not in bKwx:\n bKwx[Z9rn.line] = YRbF\n or8S = []\n YKHO.comments = [Z9rn.value.strip() for Z9rn in Tj1O]\n TWP5 = max(b...
[ "0.65758336", "0.6571873", "0.656471", "0.641244", "0.6356432", "0.62170196", "0.62037086", "0.62008995", "0.61759603", "0.6117252", "0.6084452", "0.6076712", "0.60607237", "0.6048085", "0.5993899", "0.5969844", "0.59563303", "0.5944167", "0.58613896", "0.58442205", "0.580879...
0.60784525
11
Mark book as 'read' in database.
def HAvz(mWFP): for jI4j in mXHt: if jI4j['name'] == mWFP: jI4j['read'] = True else: print('No book with this name!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kC5V(YKHO, id, Ueki):\n try:\n with YKHO._db as NCls:\n DpUl = NCls.cursor()\n DpUl.execute('UPDATE books SET read = ? WHERE rowid = ?', (Ueki, id))\n if not DpUl.rowcount:\n raise isAR(\"Tried to modify book that doesn't exist\")\n except iHv3.Error...
[ "0.77980536", "0.6957018", "0.6493594", "0.63089144", "0.61195487", "0.6074243", "0.6056877", "0.5946356", "0.5886812", "0.58660597", "0.5850923", "0.58459544", "0.58335173", "0.5825747", "0.5822148", "0.5759673", "0.5673591", "0.5624998", "0.5584248", "0.5583868", "0.5561756...
0.6718219
2
Mark book as 'unread' in the list.
def KZgZ(mWFP): for jI4j in mXHt: if jI4j['name'] == mWFP: jI4j['read'] = False else: print('No book with this name!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oAPe(YKHO, eWWu, eovx):\n YKHO._remove_flag(eWWu, eovx, '(\\\\Seen)')", "def _mws(YKHO):\n geh0 = YKHO._api_client.session.post(YKHO._api_client._construct_url('/reader/mark_story_as_unread'), data={'story_id': YKHO.id, 'feed_id': YKHO.feed_id})\n return geh0.json()['result'] == 'ok'", "def hPUI(Y...
[ "0.74355054", "0.7010162", "0.66955197", "0.6640406", "0.6497718", "0.64903724", "0.6455583", "0.63732564", "0.62078065", "0.61880463", "0.6010605", "0.5975449", "0.59176105", "0.57258046", "0.5638565", "0.56362236", "0.5629387", "0.55496776", "0.5543765", "0.5519029", "0.550...
0.6569718
4
Index an individual page
def mbLM(YKHO, bD7m, Z9JV): if YKHO.is_indexed(bD7m): return print('Indexing ' + bD7m) l5Ny = YKHO.get_text_only(Z9JV) V22M = vGQR(l5Ny) xFDD = YKHO.get_entry_id('urllist', 'url', bD7m) for YRbF, bGrB in enumerate(V22M): GIN8 = V22M[YRbF] if GIN8 in aOz0: cont...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return {'page': 'index'}", "def d6pt():\n return TvZl('pages/index.html', isNav=True)", "def t7ng():\n return TvZl('index.html')", "def t7ng():\n return TvZl('index.html')", "def t7ng():\n return TvZl('index.html')", "def j4m5():\n return TvZl('index.html')", "def t7ng()...
[ "0.8004293", "0.77858204", "0.7505834", "0.7505834", "0.7505834", "0.7442034", "0.7441919", "0.7394196", "0.73724174", "0.73605466", "0.7340058", "0.73361444", "0.73288715", "0.7298505", "0.7255734", "0.7245193", "0.72437596", "0.7219295", "0.71849555", "0.71849555", "0.71679...
0.0
-1
Get a body of text and seperate into words by any nonwhitespace character
def vGQR(l5Ny): wAJt = ZbWC.compile('\\W*') return [KCHu.lower() for KCHu in wAJt.split(l5Ny) if KCHu != '']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n return l5Ny.split(' ')", "def l4Z4(l5Ny):\n gYbi = ZbWC.compile('[^0-9^a-z^A-Z\\\\s]').sub('', l5Ny)\n return gYbi.split(' ')", "def TSo3(l5Ny: str) -> x1iM[x1iM[str]]:\n RdcG = '[^\\n:-äÄöÖåÅA-Za-z0-9]'\n l5Ny = ZbWC.sub(RdcG, ' ', l5Ny)\n Rhv4 = l5Ny.splitlines()\n Rhv4...
[ "0.7051718", "0.6961819", "0.694195", "0.69268847", "0.675521", "0.6723694", "0.6709493", "0.666723", "0.6634504", "0.66195375", "0.65483016", "0.6543867", "0.6532208", "0.6526927", "0.650539", "0.6502522", "0.6487951", "0.6487372", "0.6474143", "0.64734024", "0.64734024", ...
0.67866534
4
Return the value of the state (computed in __init__).
def UnfG(YKHO, QTBn): return YKHO.values[QTBn]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO, QTBn):\n raise NotImplementedError", "def BWXx(YKHO, QTBn):\n raise NotImplementedError", "def BWXx(YKHO, QTBn):\n raise NotImplementedError", "def UnfG(YKHO, QTBn):\n gnPz.raiseNotDefined()", "def UnfG(YKHO, QTBn):\n gnPz.raiseNotDefined()", "def BWXx(YKHO, QTBn):\n retu...
[ "0.83014333", "0.83014333", "0.826012", "0.8086146", "0.8086146", "0.79581815", "0.79296756", "0.78013283", "0.77367806", "0.77336967", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", "0.76010257", ...
0.77333474
16
The policy is the best action in the given state according to the values currently stored in self.values. You may break ties any way you see fit. Note that if there are no legal actions, which is the case at the terminal state, you should return None.
def pAi2(YKHO, QTBn): """*** YOUR CODE HERE ***""" xASv = YKHO.mdp.getPossibleActions(QTBn) bQ6z = float('-inf') cvD8 = None for XeOP in xASv: U89Q = YKHO.computeQValueFromValues(QTBn, XeOP) if U89Q > bQ6z: bQ6z = U89Q cvD8 = XeOP return cvD8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OcoU(YKHO, QTBn):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n lA2T = YKHO.mdp.getPossibleActions(QTBn)\n if len(lA2T) is 0:\n return None\n hjEf = gnPz.Counter()\n for XeOP in lA2T:\n for CrTw, Q7Be in YKHO.mdp.getTransitionStatesAndProbs(QTBn, XeOP):\n hjEf[XeOP] += Q7Be * (...
[ "0.7792549", "0.7711781", "0.76139647", "0.76062703", "0.74914557", "0.7466959", "0.73729706", "0.73415923", "0.73398566", "0.73370594", "0.733471", "0.7314126", "0.7310347", "0.73096246", "0.7293995", "0.7272919", "0.7243716", "0.7243716", "0.7155405", "0.70879567", "0.70817...
0.70621777
21
The set of arguments for constructing a PartnerTopic resource.
def FIMM(Ro_8, *, TRLE: pulumi.Input[str], AHMR: Optional[pulumi.Input[Union[str, 'PartnerTopicActivationState']]]=None, inZP: Optional[pulumi.Input['EventTypeInfoArgs']]=None, TsLC: Optional[pulumi.Input[str]]=None, _E99: Optional[pulumi.Input['IdentityInfoArgs']]=None, Rci7: Optional[pulumi.Input[str]]=None, XFxX: Op...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: PartnerTopicArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, AHMR: Optional[pulumi.Input[Union[str, 'PartnerTopicActivationState']]]=None, inZP: Optional[pulumi.Input[pulumi.InputType['EventTypeI...
[ "0.78356504", "0.61782336", "0.6106452", "0.58668435", "0.57719415", "0.5769083", "0.5662153", "0.5656129", "0.56495136", "0.5648354", "0.56277585", "0.5588112", "0.5516129", "0.5508478", "0.54229593", "0.5396338", "0.5360924", "0.5336146", "0.5277301", "0.5241184", "0.520807...
0.5647071
10
The name of the resource group within the user's subscription.
def TRLE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def vBTQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_...
[ "0.84030455", "0.8127863", "0.80530316", "0.80530316", "0.80530316", "0.80530316", "0.80530316", "0.80530316", "0.80530316", "0.80530316", "0.80530316", "0.80530316", "0.80530316", "0.80530316", "0.8035883", "0.79388916", "0.7760978", "0.7760978", "0.7760978", "0.7760978", "0...
0.78005606
42
Identity information for the Partner Topic resource.
def _E99(YKHO) -> h8nf[qe4Y.Input['IdentityInfoArgs']]: return qe4Y.get(YKHO, 'identity')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDd1(YKHO, mWFP=None):\n _E99 = YKHO._wc2identity.get(mWFP)\n if not _E99:\n _E99 = YKHO.next_topic_identity(mWFP)\n if mWFP:\n YKHO._wc2identity[mWFP] = _E99\n return _E99", "def pqAP(YKHO) -> s9Rl:\n return YKHO._topic_id", "def rlUa(YKHO):\n return YKHO._topic_nam...
[ "0.6886656", "0.6623032", "0.64313686", "0.64098066", "0.6331101", "0.6208277", "0.61234844", "0.6042728", "0.5966717", "0.5858832", "0.5853809", "0.583567", "0.5832993", "0.57943475", "0.5748155", "0.5623574", "0.5609267", "0.5594959", "0.55931133", "0.5578477", "0.55669093"...
0.5187308
50
Name of the partner topic.
def gLIm(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'partner_topic_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rlUa(YKHO):\n return YKHO._topic_name", "def GDzL(YKHO) -> str:\n return YKHO._response_kafka_topic_name", "def RHgQ(YKHO) -> str:\n return YKHO._kafka_topic", "def By9E(YKHO) -> str:\n return qe4Y.get(YKHO, 'partner_name')", "def By9E(YKHO) -> str:\n return qe4Y.get(YKHO, 'partner_name'...
[ "0.7823629", "0.7583535", "0.73803765", "0.7343445", "0.7343445", "0.734234", "0.7143401", "0.69896066", "0.69613945", "0.684552", "0.6818732", "0.6785819", "0.6711438", "0.670527", "0.6643874", "0.6643361", "0.6622226", "0.64118963", "0.63731056", "0.633877", "0.6336797", ...
0.86357975
0
Source associated with this partner topic. This represents a unique partner resource.
def JZXy(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'source')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JLbE(YKHO):\n if 'externalSource' in YKHO._prop_dict:\n if isinstance(YKHO._prop_dict['externalSource'], tKe4):\n return YKHO._prop_dict['externalSource']\n else:\n YKHO._prop_dict['externalSource'] = fY5Q(YKHO._prop_dict['externalSource'])\n return YKHO._prop_...
[ "0.6673639", "0.65819967", "0.6546422", "0.6380972", "0.6380972", "0.6380972", "0.6380972", "0.6380972", "0.6380972", "0.6330744", "0.6330744", "0.63012516", "0.62928265", "0.6279115", "0.622665", "0.6172322", "0.61239976", "0.6085777", "0.6085777", "0.60760003", "0.60760003"...
0.5648904
44
Identity information for the Partner Topic resource.
def _E99(YKHO) -> qe4Y.Output[h8nf['outputs.IdentityInfoResponse']]: return qe4Y.get(YKHO, 'identity')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDd1(YKHO, mWFP=None):\n _E99 = YKHO._wc2identity.get(mWFP)\n if not _E99:\n _E99 = YKHO.next_topic_identity(mWFP)\n if mWFP:\n YKHO._wc2identity[mWFP] = _E99\n return _E99", "def pqAP(YKHO) -> s9Rl:\n return YKHO._topic_id", "def rlUa(YKHO):\n return YKHO._topic_nam...
[ "0.6888875", "0.66260356", "0.643438", "0.6413152", "0.6334319", "0.6210963", "0.6126564", "0.6045784", "0.5967025", "0.5860845", "0.5856062", "0.58388317", "0.58369374", "0.57963043", "0.5747999", "0.56260896", "0.56116307", "0.5596375", "0.5594573", "0.55798215", "0.5565331...
0.49167752
95
Name of the resource.
def mWFP(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YJsY(YKHO):\n return YKHO._resource_name", "def mWFP(YKHO):\n return YKHO.raw_resource['name']", "def mWFP(YKHO):\n return YKHO.resource['metadata']['name']", "def kFeU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_name')", "def kFeU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'r...
[ "0.88154817", "0.8800684", "0.8529886", "0.82741654", "0.82741654", "0.8056137", "0.8005665", "0.8005665", "0.8005665", "0.8005665", "0.8005665", "0.78669566", "0.76202524", "0.76202524", "0.76202524", "0.76202524", "0.76202524", "0.76202524", "0.76202524", "0.76202524", "0.7...
0.0
-1
Source associated with this partner topic. This represents a unique partner resource.
def JZXy(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'source')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JLbE(YKHO):\n if 'externalSource' in YKHO._prop_dict:\n if isinstance(YKHO._prop_dict['externalSource'], tKe4):\n return YKHO._prop_dict['externalSource']\n else:\n YKHO._prop_dict['externalSource'] = fY5Q(YKHO._prop_dict['externalSource'])\n return YKHO._prop_...
[ "0.66738045", "0.6584153", "0.6546258", "0.6381058", "0.6381058", "0.6381058", "0.6381058", "0.6381058", "0.6381058", "0.6331146", "0.6331146", "0.6301486", "0.62933725", "0.62802786", "0.6227462", "0.6171499", "0.61236185", "0.60862833", "0.60862833", "0.6076713", "0.6076713...
0.56146723
50
The system metadata relating to Partner Topic resource.
def U_VT(YKHO) -> qe4Y.Output['outputs.SystemDataResponse']: return qe4Y.get(YKHO, 'system_data')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rlUa(YKHO):\n return YKHO.config.get('topic', f'{glCj}/{YKHO.id}')", "def rlUa(YKHO):\n return YKHO._topic_name", "def qZtn(YKHO):\n return YKHO.topic", "def rlUa(YKHO) -> str:\n return YKHO._topic", "def D2GU(YKHO):\n m5r4 = DDS9.objects.get_for_model(YKHO.__class__)\n tKz9 = m5r4.ap...
[ "0.6580708", "0.6521669", "0.646996", "0.6321143", "0.61550206", "0.614183", "0.60498375", "0.60498375", "0.59442234", "0.59391886", "0.5931491", "0.58317256", "0.582995", "0.58204836", "0.58115375", "0.5754641", "0.57222563", "0.5701514", "0.5696956", "0.5676829", "0.5614970...
0.0
-1
Type of the resource.
def type(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(Emd4):\n pass", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]...
[ "0.87251276", "0.8417671", "0.8417671", "0.8300375", "0.8300375", "0.8300375", "0.8300375", "0.8300375", "0.8043247", "0.7727425", "0.7472895", "0.7472895", "0.7472895", "0.7472895", "0.7472895", "0.7472895", "0.7472895", "0.7472895", "0.7472895", "0.7472895", "0.7472895", ...
0.0
-1
Retrieves clean formatted products
def CxaC(YKHO): FD9u = [] _hkX = d8MK for Lx3t in _hkX: e27C = YKHO._format_product(Lx3t) FD9u.append(e27C) return FD9u
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EH77(YKHO, wv_W):\n sjXb = ['id', 'product_name_fr', 'main_category', 'generic_name_fr']\n for Lx3t in wv_W:\n if YKHO.validate_the_data(sjXb, Lx3t):\n return Lx3t", "def T0se(YKHO):\n try:\n n8KJ = YKHO.product['product_name'].capitalize()\n except KeyError:\n n8K...
[ "0.70092434", "0.6906355", "0.68401086", "0.68373805", "0.67740494", "0.67245483", "0.66044503", "0.65554696", "0.6447282", "0.63737714", "0.63647705", "0.6334757", "0.6324832", "0.6294138", "0.6225194", "0.62095654", "0.6186663", "0.6185772", "0.61837184", "0.6160519", "0.61...
0.6550141
8
if somehow the user inputted word is in the dictionary then exclude it from the dictionary
def Xyhd(YKHO, GIN8): if GIN8 in YKHO.dictionary: YKHO.setDict(YKHO.dictionary.remove(GIN8))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rLYT(YKHO, hcXw):\n PiPd = [GIN8 for GIN8 in YKHO.dictionary if hcXw not in GIN8.lower()]\n if len(PiPd) < 5:\n tbBh = len(YKHO.dictionary)\n GIN8 = YKHO.dictionary[ajWY(0, tbBh - 1)]\n YKHO.setWord(GIN8)\n else:\n YKHO.setDict(PiPd)", "def KtZW(YKHO, V22M):\n rw6h = [...
[ "0.68887514", "0.6327034", "0.612838", "0.61101866", "0.6094598", "0.6094588", "0.604624", "0.60273707", "0.599985", "0.597724", "0.59758425", "0.5972747", "0.5967966", "0.5943246", "0.5903427", "0.58125865", "0.5807034", "0.57958305", "0.57521117", "0.574984", "0.57195044", ...
0.6814912
1
filters the dictionary, takes out all the words that do not contain the inputted char from user
def rLYT(YKHO, hcXw): PiPd = [GIN8 for GIN8 in YKHO.dictionary if hcXw not in GIN8.lower()] if len(PiPd) < 5: tbBh = len(YKHO.dictionary) GIN8 = YKHO.dictionary[ajWY(0, tbBh - 1)] YKHO.setWord(GIN8) else: YKHO.setDict(PiPd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gu00(YFk6):\n\n def qOm7(GIN8):\n return PPhE(GIN8, YFk6)\n return filter(qOm7, tTte)", "def wde2(e8Rs, Bejo):\n nYeE = dict()\n for H5ew, hkxX in e8Rs.items():\n Dbmo = list()\n for Ty9i in hkxX:\n rpkk = [Z9rn for Z9rn in Ty9i if Z9rn not in Bejo]\n if...
[ "0.7008636", "0.675887", "0.6682296", "0.65300703", "0.64833623", "0.6483", "0.64756745", "0.64511883", "0.6259788", "0.62390786", "0.6178667", "0.61751574", "0.6122911", "0.61099094", "0.60813874", "0.6038597", "0.60373604", "0.602203", "0.6012134", "0.5995703", "0.5983771",...
0.77047414
0
creates the inital string that only contains '_'
def ElID(YKHO): return ''.join(['_ ' for r8hN in range(YKHO.wordLen)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QoZA(l5Ny):\n return l5Ny.replace(' ', '__')", "def A5d0(l5Ny):\n return f'__{l5Ny}__'", "def hCK8():\n return ''", "def MD47(Emd4, H5ew):\n try:\n return H5ew.replace('-', '_')\n except AttributeError:\n return H5ew", "def IUMn(YKHO, mWFP):\n for G1Hx, Ty9i in [('<', '_...
[ "0.721435", "0.70548093", "0.65881675", "0.655576", "0.6555178", "0.6505256", "0.6485826", "0.646432", "0.6452991", "0.64157265", "0.64133215", "0.6362011", "0.6276848", "0.62648255", "0.6220121", "0.6202735", "0.6173401", "0.61682427", "0.6149937", "0.6139517", "0.6103996", ...
0.5962828
32
Send message to the articles with notFound 404 status.
def m7kB(tTpl): Ol8d = {'err': {'msg': 'This route is currently not supported. Please refer API documentation (on Github https://github.com/wdelenclos/messier-registry.)'}} _hkX = pz3A(Ol8d) _hkX.status_code = 404 return _hkX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XTyb(YKHO):\n YKHO.send_error(404, 'File not found')", "def aMr5(YKHO):\n Tnwn = YKHO._get_config_template('404')\n l5Ny = p3J7(Tnwn, title='%s - 404' % gajC, header='404 &mdash; Page not found', URL='Nothing')\n YKHO._send_response(l5Ny, 404)", "def RriS(YKHO):\n YKHO.set_status(404)\n Y...
[ "0.7638985", "0.7525144", "0.72701716", "0.7213369", "0.7013067", "0.6980928", "0.6973982", "0.6962501", "0.6958567", "0.6958567", "0.6949911", "0.6948801", "0.6920872", "0.69150364", "0.6902169", "0.6902169", "0.6902169", "0.6902169", "0.6902169", "0.6902169", "0.6902169", ...
0.7519205
2
Get the normalized form of the vector.
def k5KY(iArr): wQQg = AArG(iArr) if wQQg != 0: return oyIN.divide(iArr, AArG(iArr)) else: return [0, 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HBfW(YKHO):\n len = YKHO.length\n return lNLu(YKHO.x / len, YKHO.y / len)", "def NkkI(iArr):\n return iArr / oyIN.linalg.norm(iArr)", "def rtp3(YKHO):\n return YKHO.scalarMultiplication(YKHO.norm() ** (-1.0))", "def HBfW(Ty9i):\n CkYf = oyIN.linalg.norm(Ty9i)\n if CkYf:\n return ...
[ "0.836751", "0.83353364", "0.83043295", "0.8294043", "0.8194295", "0.81843823", "0.817011", "0.8157136", "0.81325483", "0.81012905", "0.8092552", "0.80362314", "0.8029327", "0.79849833", "0.79632694", "0.79615265", "0.7955596", "0.79343927", "0.77548116", "0.7735425", "0.7733...
0.847537
0
Set up a test directory and certificates.
def FCbF(YKHO): YKHO._tmp_dir = gbPf.mkdtemp(prefix='ssm') Totl, YKHO._key_path = gbPf.mkstemp(prefix='key', dir=YKHO._tmp_dir) Hy7s.close(Totl) with open(YKHO._key_path, 'w') as H5ew: H5ew.write(pYz3) ElGa, YKHO._expired_cert_path = gbPf.mkstemp(prefix='cert', dir=YKHO._tmp_dir) Hy7s.cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dm96():\n if Hy7s.path.exists(_Fei.ca_private_key_path()):\n SvSf = tnQN(_Fei.ca_private_key_path())\n else:\n SvSf = U_TV(_Fei.ca_private_key_path())\n if Hy7s.path.exists(_Fei.ca_cert_path()):\n Y2jI(_Fei.ca_cert_path())\n else:\n paY2(_Fei.ca_cert_path(), SvSf)", "d...
[ "0.6333526", "0.6199618", "0.61593074", "0.6134559", "0.61031705", "0.59510183", "0.5906789", "0.58629507", "0.5861542", "0.5850422", "0.58380795", "0.5824561", "0.5772405", "0.5761869", "0.5738897", "0.5724962", "0.5717445", "0.5716755", "0.5716755", "0.571423", "0.56986934"...
0.65360105
0
Remove test directory and all contents.
def tBIc(YKHO): try: RDuA.rmtree(YKHO._msgdir) RDuA.rmtree(YKHO._tmp_dir) except OSError as e: print('Error removing temporary directory %s' % YKHO._tmp_dir) print(tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mlxf(YKHO):\n RDuA.rmtree(YKHO.get_test_file_path(), ignore_errors=True)", "def tBIc(YKHO):\n for tk5Y, AQSv, RRlC in Hy7s.walk(Wya9, topdown=False):\n for mWFP in RRlC:\n Hy7s.remove(Hy7s.path.join(tk5Y, mWFP))\n for mWFP in AQSv:\n Hy7s.rmdir(Hy7s.path.join(tk5Y, m...
[ "0.797974", "0.79471564", "0.78174627", "0.7802646", "0.7796483", "0.77740633", "0.7773133", "0.7773133", "0.7759895", "0.7681515", "0.7642195", "0.76201904", "0.7595368", "0.7568953", "0.7535265", "0.7494912", "0.74640816", "0.7455091", "0.7434781", "0.73948133", "0.73912483...
0.6791579
90
Test right exception is thrown creating an SSM with expired cert.
def YbHF(YKHO): pHd6 = 'Certificate %s has expired or will expire within a day.' % YKHO._expired_cert_path try: o_ai(YKHO._brokers, YKHO._msgdir, YKHO._expired_cert_path, YKHO._key_path, listen=YKHO._listen) except YH8u as error: if str(P1dF) != pHd6: YKHO.fail('Raised: "%s" Expe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xeSi(YKHO):\n YKHO.assertRaises(YH8u, o_ai, YKHO._brokers, YKHO._msgdir, JZMr, YKHO._key_path, dest=YKHO._dest, enc_cert=YKHO._expired_cert_path, verify_enc_cert=False)", "def pmwE(YKHO):\n JoVN = 'bad.123Z'\n YKHO.assertRaises(xLBk.BadRequest, YKHO.create_trust, expires=JoVN)", "def dbuc():\n ...
[ "0.738411", "0.6624867", "0.65002376", "0.63056135", "0.61994475", "0.6158625", "0.61400414", "0.6118681", "0.60490763", "0.6041454", "0.6007164", "0.5970719", "0.59633946", "0.5940831", "0.5932326", "0.5853149", "0.5830252", "0.5821888", "0.5795149", "0.57866246", "0.5783629...
0.80587095
0
Check that exception is raised if server cert has expired.
def xeSi(YKHO): YKHO.assertRaises(YH8u, o_ai, YKHO._brokers, YKHO._msgdir, JZMr, YKHO._key_path, dest=YKHO._dest, enc_cert=YKHO._expired_cert_path, verify_enc_cert=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YbHF(YKHO):\n pHd6 = 'Certificate %s has expired or will expire within a day.' % YKHO._expired_cert_path\n try:\n o_ai(YKHO._brokers, YKHO._msgdir, YKHO._expired_cert_path, YKHO._key_path, listen=YKHO._listen)\n except YH8u as error:\n if str(P1dF) != pHd6:\n YKHO.fail('Raised...
[ "0.7249058", "0.653092", "0.63788354", "0.6312557", "0.61574906", "0.6104876", "0.60061705", "0.5995503", "0.5981729", "0.5949824", "0.5933108", "0.5912041", "0.5909809", "0.59097075", "0.5894113", "0.5882813", "0.58597815", "0.5857916", "0.5855695", "0.5839516", "0.5823081",...
0.7183783
1
Remove words from Top 5 words Frame.
def Srck(YKHO): YKHO.first_word.configure(text='') YKHO.second_word.configure(text='') YKHO.third_word.configure(text='') YKHO.fourth_word.configure(text='') YKHO.fifth_word.configure(text='')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O_AA(YKHO):\n del YKHO.words[:]\n l5Ny = YKHO.textbox.get('1.0', on8l.END)\n YKHO.file.text = l5Ny\n YKHO.words = YKHO.file.find_top_5_words(YKHO.language.get())\n opYI = len(YKHO.words)\n if opYI == 0:\n YKHO.first_word.configure('All words are stop words.')\n if opYI >= 1:\n ...
[ "0.6894695", "0.62445885", "0.61320674", "0.6104778", "0.6065875", "0.60495543", "0.59997916", "0.599091", "0.589135", "0.586399", "0.58593005", "0.58227736", "0.5763823", "0.57336956", "0.5691351", "0.56889063", "0.568863", "0.56753874", "0.56678116", "0.5661778", "0.5651341...
0.6616723
1
A method to test that the API creates a bucket
def vdnj(YKHO): aqR5 = YKHO.post_a_bucket() YKHO.assertEqual(aqR5.status_code, 201) YKHO.assertIn('Climb the Himalayas', str(aqR5.data))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PqTN(YKHO):\n pass", "def DecD(YKHO):\n with YKHO.client:\n YKHO.create_bucket(YKHO.get_user_token())", "def CW30(YKHO):\n h2IT.add(h2IT.Response(method='POST', url='https://connection.keboola.com/v2/storage/buckets', json=OeRI))\n mWFP = 'my-new-bucket'\n JBZA = 'Some Description'\n ...
[ "0.90092", "0.8905458", "0.8558081", "0.8016729", "0.79140574", "0.77704597", "0.7754582", "0.76972276", "0.76946753", "0.75765675", "0.7565823", "0.7500666", "0.7492139", "0.7409128", "0.74070597", "0.74050313", "0.73874277", "0.73850155", "0.7352152", "0.73487127", "0.73190...
0.78092855
5
Display an image, save it, then DESTROY ALL WINDOWS to prevent hanging.
def W8mS(LNo8, mWFP='Image'): XC5k.imshow(mWFP, LNo8) XC5k.waitKey(0) XC5k.destroyAllWindows() XC5k.imwrite('{}.png'.format(mWFP), LNo8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n YKHO.image.close()", "def qaKb(YKHO, TEdI, nPrm=None):\n YKHO._quit()", "def DDI8(YKHO):\n if YKHO.proc:\n YKHO.proc.terminate()\n YKHO.proc.wait()\n YKHO.proc = None\n del Hy7s.environ['DISPLAY']\n if YKHO.fbdir:\n Hy7s.rmdir(YKHO.fbdir)\n ...
[ "0.6786114", "0.64944184", "0.6389404", "0.6317692", "0.62998563", "0.62313765", "0.6224885", "0.6211465", "0.62071484", "0.61761653", "0.60784364", "0.60462075", "0.59495974", "0.59281445", "0.58881235", "0.5875685", "0.5869154", "0.5860808", "0.5828903", "0.5816108", "0.576...
0.56537265
28
Check if the given collation is the first collation of this shard
def Wotf(YKHO, soVO): return soVO.header.parent_collation_hash == YKHO.env.config['GENESIS_PREVHASH']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def soVO(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'collation')", "def soVO(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'collation')", "def soVO(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'collation')", "def cOGZ(YKHO, soVO, roSP, Nfom):\n if soVO.header.parent_collatio...
[ "0.58747655", "0.58747655", "0.5844685", "0.5517331", "0.54947346", "0.5469385", "0.5425195", "0.52509284", "0.52193666", "0.52070606", "0.50391644", "0.50186807", "0.50186807", "0.50009316", "0.49220517", "0.48799407", "0.47282365", "0.47112072", "0.47074565", "0.4700864", "...
0.82540464
0
Compute the forward prop in the tthlayer xt1 = D.T ( rho ( D ( xt (learning_rate)h_flip( hxt y ) ) D.T ) ) D here '' denotes linear convolution
def KVH6(YKHO, LVAh, Dd_h, lWPh, MKlR, xqoZ): jxSY = MKlR.flip(2, 3) jzdc = yIp6(MKlR, Dd_h) - LVAh Fg_i = Dd_h - YKHO.learning_rate * yIp6(jxSY, jzdc) P6bq = lPB8.matmul(lWPh, lPB8.matmul(Fg_i, lWPh.transpose(2, 3))) w8Fi = oZuG(P6bq, xqoZ) fZ7f = lPB8.matmul(lWPh.transpose(2, 3), lPB8.matmul(w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WtQF, REGG):\n LA_d = oyIN.concatenate((WtQF.T, REGG.T), axis=0)\n JnYf = oyIN.tanh(oyIN.matmul(LA_d.T, YKHO.Wh) + YKHO.bh)\n LVAh = YKHO.softmax(oyIN.matmul(JnYf, YKHO.Wy) + YKHO.by)\n return (JnYf, LVAh)", "def KVH6(YKHO, KJrG, wCWf):\n Byt2 = 0.5 * (YKHO.z_to_h(KJrG) + wCWf)\n ...
[ "0.68204814", "0.6706295", "0.6648027", "0.66293174", "0.6627553", "0.65813905", "0.65761364", "0.65698963", "0.6487676", "0.64830995", "0.64679873", "0.64200664", "0.6395235", "0.63620454", "0.6326722", "0.63256425", "0.6295131", "0.628253", "0.6245956", "0.6244323", "0.6228...
0.7932475
0
Tokenize, padding and truncate several texts. And convert it to several lists of id.
def VJUN(YKHO, z_aV: list, u54L: int): return [YKHO.text2ids(l5Ny, u54L) for l5Ny in z_aV]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k9HI(YKHO, l5Ny: str, u54L: int):\n s2mk = YKHO.tokenizer.tokenize(l5Ny)\n juz4 = YKHO.tokenizer.tokens2ids(s2mk)\n while len(juz4) < u54L:\n juz4.append(0)\n if len(juz4) > u54L:\n juz4 = juz4[:u54L]\n assert len(juz4) == u54L\n return juz4", "def x5kc(YKHO, *sIOC, BcCR=None)...
[ "0.70445424", "0.6839107", "0.65420055", "0.65291977", "0.63794094", "0.6368797", "0.62720805", "0.62672365", "0.6261614", "0.618808", "0.6150797", "0.61503077", "0.6118935", "0.60622245", "0.60378397", "0.602653", "0.60225195", "0.6021455", "0.60097915", "0.59215", "0.591884...
0.66200083
2
Return length of the dataset.
def szAg(YKHO): raise NotImplementedError('Not implmented!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return YKHO._dataset.size(dirs=YKHO._dirs)", "def u54L(YKHO) -> int:\n return len(YKHO.data)", "def szAg(YKHO):\n return len(YKHO.dataset)", "def u54L(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return len(YKHO.data)",...
[ "0.84091496", "0.83170474", "0.8265268", "0.8248992", "0.8248992", "0.8248992", "0.82161266", "0.8199378", "0.81841874", "0.81841874", "0.81841874", "0.81841874", "0.8171502", "0.81609553", "0.8118806", "0.80845845", "0.80825365", "0.8074313", "0.8069076", "0.80667603", "0.80...
0.0
-1
Return string of founded subtree.
def JgZ3(J_Es: Tree, rPXJ: Tree) -> str: iWMf = Q_iM(J_Es, rPXJ) return ' '.join(iWMf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rEm6(YKHO, MnRD=0):\n return ''", "def AlQc(YKHO, rb7a: int=0) -> str:\n ycBG = ' ' * rb7a + str(YKHO.head) + '\\n'\n for H2Ye in YKHO.sons:\n ycBG += H2Ye.get_tree_str(rb7a + 1)\n return ycBG", "def SnfU(J_Es):\n AoZQ = J_Es.pformat()\n UVv2 = ' '.join(AoZQ.split())\n return UV...
[ "0.7352494", "0.71847874", "0.7159799", "0.713061", "0.69730467", "0.6971386", "0.68619806", "0.6836799", "0.6832373", "0.6762572", "0.6743713", "0.6735705", "0.66620106", "0.6653678", "0.6607493", "0.6571597", "0.6567003", "0.6517397", "0.6506341", "0.6506341", "0.6480494", ...
0.0
-1
Create a regular grid. The x directions is NorthSouth and y EastWest. Imagine the grid as a matrix with x varying in the lines and y in columns. Returned arrays will be flattened to 1D with ``numpy.ravel``.
def rXAI(f0tD, ROpF, epBp=None): jHsn, pvd3 = ROpF o4D3, ajwV, si3g, skBL = f0tD assert o4D3 <= ajwV, 'Invalid area dimensions {}, {}. x1 must be < x2.'.format(o4D3, ajwV) assert si3g <= skBL, 'Invalid area dimensions {}, {}. y1 must be < y2.'.format(si3g, skBL) fUYa = XTiz.linspace(o4D3, ajwV, jHsn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0O3(YKHO, jHsn, pvd3):\n XO4T = oyIN.arange(jHsn)\n Pyi2 = oyIN.arange(pvd3)\n yqRF, MZBS = oyIN.meshgrid(Pyi2, XO4T)\n Cs6h = oyIN.stack((yqRF, MZBS), axis=2)\n Cs6h = Cs6h.reshape(1, 1, pvd3, jHsn, 2)\n return Cs6h", "def q81q(YKHO):\n return gnPz.make2DArray(YKHO.xN, YKHO.yN, False)"...
[ "0.7346607", "0.6862837", "0.66530985", "0.6602682", "0.6513759", "0.6486887", "0.64634854", "0.63892967", "0.6389119", "0.638553", "0.63355213", "0.63057065", "0.62836707", "0.6270582", "0.624208", "0.62172365", "0.6159004", "0.615494", "0.6152466", "0.6149082", "0.61463696"...
0.0
-1
Create a grid with empty cells on odd row/column combinations.
def u_FR(YKHO, TVTK, H2v2): Cs6h = [] for rdlD in range(H2v2): Cs6h.append([]) for iVRZ in range(TVTK): if iVRZ % 2 == 1 and rdlD % 2 == 1: Cs6h[rdlD].append(WUkG) elif iVRZ == 0 or rdlD == 0 or iVRZ == TVTK - 1 or (rdlD == H2v2 - 1): Cs6h[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XO9u(TVTK, H2v2):\n return [[None] * TVTK for bGrB in range(H2v2)]", "def Lm0U(Cs6h):\n _gRY = [0] * 4\n for YRbF in range(4):\n Cs6h.append(_gRY[:])", "def Lm0U(Cs6h):\n for YRbF in range(4):\n Cs6h.append([0] * 4)\n return Cs6h", "def Lm0U(Cs6h):\n for YRbF in range(4):\...
[ "0.7380209", "0.7032278", "0.70264184", "0.696529", "0.6863394", "0.6852068", "0.67608", "0.674068", "0.6676773", "0.6668073", "0.6640447", "0.66098666", "0.6596621", "0.65722555", "0.6557412", "0.6553812", "0.6536684", "0.6478831", "0.6477884", "0.64581335", "0.63752574", ...
0.7013357
3
Provides a molecule from the data set.
def OP2O(YKHO, or8S): mvm2 = {'num_atoms': YKHO.num_atoms[or8S], 'symbols': YKHO.symbols[or8S], 'charges': YKHO.charges[or8S], 'positions': YKHO.positions[or8S], 'data': YKHO.data[int(oyIN.floor(or8S / 2))]} return mvm2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def asBq(YKHO):\n return YKHO._molecule", "def C4_e(YKHO):\n YKHO.data.molecules = YKHO.data.Smiles.apply(OJ0g.MolFromSmiles)\n return YKHO.data.molecules", "def YBOp(YKHO) -> uLKX[i0Bw, R3oC]:\n return YKHO._molecule_data", "def MxDa(YKHO):\n YKHO.make_molecule()\n YKHO.described_molecules...
[ "0.6786925", "0.664774", "0.6177603", "0.61288464", "0.5838296", "0.57789975", "0.57203794", "0.569179", "0.5683834", "0.56208366", "0.5615823", "0.55792415", "0.55471957", "0.5535577", "0.5534828", "0.5529618", "0.5504393", "0.5475967", "0.5471528", "0.54606044", "0.545294",...
0.0
-1
Given a name get the flavor.
def LIzI(mWFP): return KVlU.flavors.find(name=mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k3Zu(YKHO, mWFP=None):\n return YKHO.find(YKHO.flavors(), name=mWFP)", "def k3Zu(YKHO, mWFP=None):\n raise NotImplementedError", "def LIzI(YKHO, k3Zu):\n return YKHO._get(s6KR.Flavor, k3Zu)", "def LIzI(YKHO, k3Zu):\n return YKHO._get(s6KR.Flavor, k3Zu)", "def jJKq(YKHO, Gjbv, aBzZ=True):\n ...
[ "0.88826114", "0.7698141", "0.76182497", "0.76182497", "0.72676706", "0.72570574", "0.7091499", "0.7032659", "0.70184267", "0.6866913", "0.6851472", "0.68340856", "0.6725708", "0.6646898", "0.6633248", "0.6480577", "0.64312696", "0.6182553", "0.6155328", "0.61530703", "0.6037...
0.87129796
1
Helper function to check if an string is number.
def ye72(KCHu): try: int(KCHu) return True except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except ValueError:\n return False", "def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False", "def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except...
[ "0.86285704", "0.8473477", "0.8452078", "0.83891255", "0.82578814", "0.8245179", "0.8235957", "0.8231262", "0.82229507", "0.82229507", "0.82229507", "0.81218696", "0.8107412", "0.8073369", "0.8028884", "0.79911476", "0.7953287", "0.78288436", "0.7815099", "0.7752293", "0.7751...
0.86483467
0
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: if (yT1k := (await ajET.config_entries.async_unload_platforms(bTKY, aprE))): ajET.data[Sugg].pop(bTKY.entry_id) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k", "async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True", "async def async_unload_entry(ajET: HomeAssis...
[ "0.697284", "0.6888074", "0.6779855", "0.6747459", "0.6689002", "0.6657831", "0.66162205", "0.6603433", "0.65925974", "0.65595686", "0.65411645", "0.6507643", "0.6507643", "0.6507643", "0.6507643", "0.64977276", "0.64931643", "0.6486601", "0.6486601", "0.6486601", "0.6486601"...
0.64530563
33
Get new update interval.
def duzZ(YKHO, nPrm: T) -> fCoM: if YKHO.expect_change_until > Alt5(): return fCoM(seconds=5) return fCoM(seconds=30)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rB7E(YKHO):\n return YKHO._refresh_interval", "def lMgN(YKHO):\n izFS = YKHO._interval\n BoVo = YKHO._next_interval()\n YKHO._assign_interval(BoVo)\n return izFS", "def VOlW(YKHO):\n if YKHO.keep_interval:\n return YKHO._interval\n else:\n YKHO._update_interval()\n ...
[ "0.7572569", "0.7514748", "0.73994493", "0.72694916", "0.72012436", "0.7100087", "0.70839584", "0.70839584", "0.70041406", "0.6987486", "0.6954472", "0.6576914", "0.6568273", "0.65341085", "0.6436011", "0.6416675", "0.64039457", "0.6385871", "0.6340458", "0.63182074", "0.6304...
0.71402967
5
Get new update interval.
def duzZ(YKHO, nPrm: T) -> fCoM: if nPrm and any((nPrm['state']['flags'][H5ew] for H5ew in ('pausing', 'cancelling'))): return fCoM(seconds=5) return super()._get_update_interval(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rB7E(YKHO):\n return YKHO._refresh_interval", "def lMgN(YKHO):\n izFS = YKHO._interval\n BoVo = YKHO._next_interval()\n YKHO._assign_interval(BoVo)\n return izFS", "def VOlW(YKHO):\n if YKHO.keep_interval:\n return YKHO._interval\n else:\n YKHO._update_interval()\n ...
[ "0.7573973", "0.7514375", "0.7401374", "0.7271406", "0.7203208", "0.71405566", "0.71013695", "0.70854014", "0.70854014", "0.7005402", "0.69866574", "0.6956308", "0.6578258", "0.65693635", "0.6536012", "0.64380735", "0.64153636", "0.6405892", "0.6388819", "0.6339117", "0.63202...
0.6081161
35
Sets the view_form_data of this UserPermissions.
def y5eY(YKHO, y5eY): if y5eY is None: raise ValueError('Invalid value for `view_form_data`, must not be `None`') YKHO._view_form_data = y5eY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wj79(YKHO, L03z):\n YKHO.parameters = L03z", "def lwXz(YKHO, L03z):\n L03z.instance.user = YKHO.request.user\n return super().form_valid(L03z)", "def lwXz(YKHO, L03z):\n L03z.instance.member = YKHO.request.user\n return super(bB1A, YKHO).form_valid(L03z)", "def P95S(YKHO):\n B2fa = supe...
[ "0.5344736", "0.5213755", "0.5199485", "0.518855", "0.51547873", "0.5152879", "0.51491547", "0.5119594", "0.5119594", "0.5109532", "0.5107363", "0.5103568", "0.50986934", "0.5060119", "0.5056123", "0.5056123", "0.5030066", "0.49590677", "0.4929919", "0.4874672", "0.48483694",...
0.7347223
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, GqKI): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Returns the set of tags.
def SEDW(YKHO): return YKHO._tagset
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qwli(YKHO) -> fHNa[I2jr]:\n return {TZ9E for TZ9E in YKHO.tags}", "def B6u7(YKHO):\n B6u7 = set()\n for A_64 in YKHO.tags:\n B6u7.add(A_64['tag'])\n return B6u7", "def qvDz(YKHO):\n return YKHO.tags", "def Qwli(YKHO):\n return YKHO.tags", "def Qwli(YKHO):\n return YKHO.tags"...
[ "0.85659504", "0.853088", "0.8271827", "0.8260412", "0.82325554", "0.80552864", "0.80552864", "0.80552864", "0.80552864", "0.80552864", "0.80552864", "0.80552864", "0.80552864", "0.8000866", "0.7901809", "0.78851986", "0.78701633", "0.7798919", "0.7787463", "0.77562624", "0.7...
0.8039666
13
Test subtract function if at least one argument is zero.
def D5G8(YKHO): try: YKHO.assertEqual(wncN(0, -6), 7) except Exception as error: print(f'Got error in {tq_1.stack()[0][3]}, {P1dF}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GDD5(YKHO):\n try:\n YKHO.assertEqual(wncN(-18, -5), -13)\n except Exception as error:\n print(P1dF)", "def RRi_(YKHO):\n try:\n YKHO.assertEqual(wncN(30, 16), 15)\n except Exception as error:\n print(f'Got error in {tq_1.stack()[0][3]}, {P1dF}')", "def dSua(YKHO, jz...
[ "0.7879061", "0.75155544", "0.6657913", "0.6548686", "0.65165603", "0.6352206", "0.6315036", "0.6315036", "0.629578", "0.6290599", "0.6287071", "0.6249441", "0.62401634", "0.62373185", "0.61812997", "0.6176353", "0.6155871", "0.61218834", "0.61122596", "0.6110233", "0.6070563...
0.75145787
2
Returns the current date/time as a yymmdd_HHMM_S string, e.g. 091016_1916_21 for 16th Oct, 2009, at 7.16pm in the evening. By default, returns for NOW, unless you feed in DT.
def Kzzc(JRYC=None, stBs=True, C6wh=True): if JRYC is None: JRYC = qcWV.utcnow() FMLJ = '%y%m%d' if stBs: FMLJ += '_%H%M' if C6wh: FMLJ += '_%S' return JRYC.strftime(FMLJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ppPa():\n return qcWV.now().strftime('%d%m%Y_%H%M%S')", "def fa__():\n wzkt = qcWV.datetime.now()\n return wzkt.strftime('%Y%m%d%H%M%S')", "def tmL2():\n from datetime import datetime\n wzkt = datetime.now()\n return wzkt.strftime('%d/%m/%Y %H:%M:%S')", "def f1rh():\n return B72W().s...
[ "0.7801499", "0.7791871", "0.76779056", "0.76540834", "0.7534715", "0.752291", "0.750241", "0.74421066", "0.7420074", "0.74123764", "0.738029", "0.732564", "0.72892195", "0.7281918", "0.7266261", "0.72600436", "0.7242853", "0.72177196", "0.72134334", "0.72101974", "0.7198944"...
0.0
-1
Tests whether the command line argument of the image name is the right one.
def Jan4(YKHO): YKHO.__args = vars(YKHO.parser.parse_args()) YKHO.assertEqual(str(YKHO.__args['image']), 'images/img_0004.png')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def duoF(B2fa) -> bool:\n return p4kp(kwargs=B2fa, options=['min_captured_at', 'max_captured_at', 'radius', 'image_type', 'organization_id', 'fields'], callback='image_check')", "def UYwk(YKHO, tO9_, mWFP, pan_=None):\n return mWFP in YKHO._get_image_names(tO9_)", "def UBJi(YKHO):\n Hy7s.chdir('testim...
[ "0.63589114", "0.6314555", "0.62667364", "0.6227315", "0.621942", "0.6164501", "0.61002696", "0.60971624", "0.6088537", "0.60784745", "0.6074089", "0.6073642", "0.6067847", "0.6035141", "0.6025781", "0.60129935", "0.5980264", "0.5958352", "0.59399575", "0.5921569", "0.5893264...
0.67466074
0
Gets the user_id of this ImageIngressRequest.
def uJjO(YKHO): return YKHO._user_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ad9r(YKHO):\n return YKHO.id_user", "def uJjO(YKHO):\n return YKHO.status.user['id']", "def uJjO(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'user_id')", "def uJjO(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'user_id')", "def uJjO(YKHO) -> qe4Y.Input[str]:\n retur...
[ "0.72919804", "0.72066116", "0.720036", "0.720036", "0.71657246", "0.71657246", "0.7020362", "0.70126265", "0.70126265", "0.6992793", "0.6992793", "0.6992793", "0.6916133", "0.6912134", "0.69059247", "0.6867621", "0.68169165", "0.6794983", "0.6771934", "0.67634124", "0.669133...
0.7364907
3