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
Clean the input buffer and get a name that's typed in.
def Q0HP(): T7eF(HwRy.stdin, Ml7o) mWFP = input(' You say:\n ') NoMQ(mWFP) return mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO):\n mWFP = input('What is your name? ')\n if len(mWFP) > 0:\n YKHO.name = mWFP", "def dvBq(YKHO):\n return YKHO.__input_name", "def W0tD():\n return _G0M(\"What's your name? \")", "def W0tD():\n print('')\n mWFP = input('Greetings, what do we call you?: ')\n return m...
[ "0.6385", "0.6207764", "0.6180437", "0.61366755", "0.61346084", "0.61324376", "0.61028165", "0.6036705", "0.5994801", "0.5983757", "0.59797794", "0.5919747", "0.5912155", "0.5897724", "0.58420867", "0.58420867", "0.58420867", "0.58420867", "0.58420867", "0.58420867", "0.58420...
0.6812864
0
Convert plain list to MutationList.
def RChb(Emd4, H5ew, BWXx): YKHO = _g32((Qrb1.coerce(H5ew, Ty9i) for Ty9i in BWXx)) YKHO._key = H5ew return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VQlD(vC9B):\n vC9B = [list(LihS) for LihS in vC9B]\n return vC9B", "def mFWN(Uqbu):\n if isinstance(Uqbu, (list, tuple)):\n return list(Uqbu)\n else:\n return [Uqbu]", "def mFWN(WKvO):\n if isinstance(WKvO, list):\n return WKvO\n return [WKvO]", "def EL8a(YKHO):\n ...
[ "0.6553225", "0.62707764", "0.5875614", "0.58627445", "0.585077", "0.58077997", "0.57693684", "0.5765776", "0.5741986", "0.5727797", "0.5705437", "0.56927955", "0.5684148", "0.567436", "0.56562585", "0.5626378", "0.562477", "0.5623232", "0.5575543", "0.55727285", "0.5551089",...
0.5824151
5
Mangles a column name to a standard form, remoing illegal characters.
def vyl0(mWFP): import re try: return re.sub('_+', '_', re.sub('[^\\w_]', '_', mWFP).lower()).rstrip('_') except TypeError: raise TypeError('Trying to mangle name with invalid type of: ' + str(type(mWFP)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zT1A(vIwR):\n vIwR = XKrx(vIwR.replace(' ', '_').lower())\n return ZbWC.sub('[^0-9a-z_]', '', vIwR)", "def GGqX(AAHb: str) -> str:\n if AAHb[0].isdigit():\n return f'\"{AAHb}\"'\n return AAHb", "def G81r(z0q4):\n return str(z0q4)", "def ihMR(mWFP):\n if ':' in mWFP:\n retu...
[ "0.75011533", "0.71863365", "0.6850968", "0.68286157", "0.67849135", "0.66737306", "0.66737306", "0.6603098", "0.65745264", "0.6540453", "0.6537761", "0.6483973", "0.6468041", "0.6402178", "0.63911235", "0.63911235", "0.63876563", "0.6334491", "0.63137543", "0.6306661", "0.62...
0.5826473
56
Set the Table ID based on the dataset number and the sequence number for the table.
def wJVU(YAg3, w2B8, pan_): if isinstance(pan_, OciN): raise TypeError('Got a column instead of a table') if pan_.id_ is None: c55i = KOnL.parse(pan_.d_id) pan_.id_ = str(EuJ1(c55i, pan_.sequence_id))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iK1K(YKHO) -> str:\n return qe4Y.get(YKHO, 'table_id')", "def Fffx(YKHO, RxqK):\n YKHO.new_id[RxqK] += 1\n return YKHO.new_id[RxqK]", "def f6Qh(YKHO):\n raise NotImplementedError()", "def FIMM(YKHO, mWFP, jTbc):\n super(gn6c, YKHO).__init__()\n YKHO.name = mWFP\n YKHO.sequence_number...
[ "0.6303707", "0.61042374", "0.59887666", "0.59712815", "0.5963648", "0.5951662", "0.5936735", "0.5935326", "0.5924849", "0.59239405", "0.5908809", "0.5890164", "0.57908034", "0.57644045", "0.5749948", "0.5721006", "0.56599724", "0.56337774", "0.56337774", "0.5598158", "0.5590...
0.586561
12
Checking for white 220 is the threshold 0.8 is the tolerance level
def XWvV(VXjJ): return hnLi(VXjJ, 220, 0.8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gwAu(YKHO, BWXx):\n gwAu = 0.5\n if BWXx >= gwAu:\n return 1\n else:\n return 0", "def uApi(nvEb):\n hkxX = oyIN.unique(nvEb)\n if len(hkxX) > 2:\n print('Your prediction result has not been binarized, please prompt them to choose the appropriate threshold for binarization...
[ "0.67174834", "0.6487796", "0.6463961", "0.6462622", "0.6449646", "0.64339715", "0.6431686", "0.6416966", "0.6413505", "0.6399163", "0.6366602", "0.6365009", "0.63525826", "0.63525826", "0.6338424", "0.6333677", "0.6312592", "0.62757385", "0.6274855", "0.62545544", "0.6245186...
0.74915415
1
This is a helper method for constructing the transitions probability table.
def UlCL(zBII, h_hc, h0b2, IcEx, o2Ss, Dblm, IazB): KCHu = (zBII, h_hc, h0b2, IcEx, o2Ss) UlCL = [] LJUK, XIZP = L6ys.resolve_player1_action(KCHu, Dblm, True) if not XIZP: LJUK, XIZP = L6ys.resolve_player2_action(LJUK, IazB, False) UlCL.append((L6ys.encode_state(LJUK[0], LJUK[1], LJUK[2], LJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGNs(YKHO):\n exwG = len(YKHO.speakers)\n UlCL = oyIN.random.randint(5, size=(exwG, exwG)) + 1\n UlCL += UlCL.transpose()\n for YRbF in range(0, epAf.floor(exwG / 2)):\n j93S = oyIN.random.randint(exwG)\n Nqp_ = oyIN.random.randint(exwG)\n UlCL[j93S][Nqp_] += 10\n UlCL[N...
[ "0.7122934", "0.6940506", "0.66394025", "0.63094825", "0.6229575", "0.6163949", "0.6124621", "0.61116207", "0.6067541", "0.6034366", "0.6034286", "0.6016178", "0.60043514", "0.5994777", "0.5920206", "0.5917823", "0.5914002", "0.59012115", "0.58852696", "0.58769065", "0.587309...
0.0
-1
Initialize a new, empty Node Object.
def FIMM(YKHO): YKHO.number = None YKHO.pos = None YKHO.key = -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.root = o7DN(None)", "def FIMM(YKHO):\n YKHO.root = YKHO.Node(None)", "def FIMM(YKHO):\n YKHO.root = o7DN('')", "def FIMM(YKHO):\n YKHO.root = o7DN('')", "def FIMM(YKHO):\n YKHO.root = o7DN('')", "def FIMM(YKHO):\n YKHO.__root = o7DN()", "def FIMM(YKHO):\n YKH...
[ "0.81817526", "0.81447303", "0.8005726", "0.7890686", "0.7890686", "0.78388584", "0.7789606", "0.77264416", "0.76918375", "0.76918375", "0.76918375", "0.7667791", "0.7658282", "0.7534381", "0.7456405", "0.7389766", "0.7318487", "0.73128605", "0.73117876", "0.7273617", "0.7251...
0.0
-1
Initialize a new FRDNodeBlock Object.
def FIMM(YKHO, nHI3=None): YKHO.key = 2 YKHO.code = 'C' YKHO.numnod = None YKHO.format = None YKHO.nodes = [] if nHI3 is not None: YKHO._read(nHI3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, RMBx):\n YKHO.blockchain = P9SZ.Blockchain(RMBx)\n YKHO.BUFFER_MAX_LEN = 20\n YKHO.MINE_REWARD = 10\n YKHO.node_identifier = RMBx", "def FIMM(YKHO, dD1L, Lnes):\n BZTK = n3Kt(0, '', [], [], [], 100, 0)\n YKHO.chain = [BZTK]\n YKHO.__open_transactions = []\n YKHO.__open_chip...
[ "0.68633485", "0.635676", "0.6279823", "0.62676376", "0.624351", "0.6088152", "0.60277176", "0.58723724", "0.5871171", "0.5861737", "0.5832285", "0.5820672", "0.580619", "0.5786449", "0.5770142", "0.57678574", "0.5744416", "0.5733594", "0.572058", "0.56931716", "0.5689686", ...
0.0
-1
Initialize a new FRDResultBlock Object.
def FIMM(YKHO, nHI3=None): YKHO.key = 100 YKHO.code = 'C' YKHO.setname = None YKHO.value = None YKHO.numnod = None YKHO.text = None YKHO.ictype = None YKHO.numstep = None YKHO.analys = None YKHO.format = None YKHO.name = None YKHO.ncomps = None YKHO.irtype = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, __n6, XkN1):\n super().__init__(__n6, XkN1)\n YKHO.freq_summed = None\n YKHO.freq_current = None\n YKHO.reset_results_arrays()", "def FIMM(YKHO, d4Ij=None, Ol8d=None, BWXx=None):\n YKHO.openapi_types = {'result_code': str, 'message': str, 'value': float}\n YKHO.attribute_map = {'...
[ "0.5401331", "0.539294", "0.5232692", "0.52209604", "0.5200635", "0.5200635", "0.51396316", "0.51370955", "0.5079849", "0.5054977", "0.5013498", "0.49825", "0.49679428", "0.4955351", "0.49491957", "0.49361867", "0.49157205", "0.4913417", "0.4884147", "0.4884147", "0.4883492",...
0.0
-1
Hook to ensure object is owned by request.user.
def AMX5(YKHO, SR0I=None): Aofo = super(LkFH, YKHO).get_object() if not Aofo.job.owner == YKHO.request.user: raise uhgT('The user {} is not the owner of {}.'.format(YKHO.request.user, Aofo)) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EC7F(YKHO):\n CBIr = YKHO.request.user\n object = YKHO.get_object()\n if object.owned_by(CBIr):\n return True\n else:\n return False", "def m4il(YKHO, QePW, tTee, YEnM):\n return QePW.user.id == YEnM.user_id", "def m4il(YKHO, QePW, tTee, YEnM):\n return QePW.user == YEnM", ...
[ "0.7492899", "0.7263095", "0.720622", "0.715437", "0.71168154", "0.7060507", "0.7052732", "0.70177627", "0.7009931", "0.7006181", "0.69574875", "0.6948073", "0.692198", "0.6901764", "0.6897051", "0.6883162", "0.68580794", "0.6827206", "0.68249476", "0.6810537", "0.6810537", ...
0.0
-1
Step one pixel to the left.
def YPaw(YKHO, RA_F=1): YKHO._offset -= RA_F if YKHO._offset < -YKHO.width: YKHO.is_done = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jDQv(YKHO, YPaw: int=1) -> None:\n if YKHO.cursor_pos.y == 0:\n YKHO.cursor_pos = PvyL(YKHO.cursor_pos.x, YKHO.width - YPaw)\n else:\n YKHO.cursor_pos = PvyL(YKHO.cursor_pos.x, YKHO.cursor_pos.y - YPaw)", "def JR58(YKHO):\n YKHO.pointer = (YKHO.pointer - 1) % len(YKHO.data)", "def jD...
[ "0.7928519", "0.75478077", "0.7453782", "0.7372932", "0.73297393", "0.73297393", "0.72831464", "0.7276859", "0.7245116", "0.7234374", "0.70816076", "0.7071769", "0.7064034", "0.7015732", "0.698934", "0.69884396", "0.68827", "0.6871533", "0.68613535", "0.68564945", "0.6773133"...
0.0
-1
split each text to sentences and lemmatize them
def yqBK(z_aV): ndVE = [[KCHu.text for KCHu in fJDy.sentenize(a1PO)] for a1PO in z_aV] gAvT = [len(a1PO) for a1PO in ndVE] Rhv4 = [KCHu for a1PO in ndVE for KCHu in a1PO] vvAh = xIUo(Rhv4) On3C = [] oeNL = 0 for cSG5 in gAvT: On3C.append(vvAh[oeNL:oeNL + cSG5]) oeNL += cSG5 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n s2mk = Dhdw.word_tokenize(l5Ny)\n LkXt = Dhdw.WordNetLemmatizer()\n oNFO = []\n for GIN8 in s2mk:\n oNFO.append(LkXt.lemmatize(GIN8).lower().strip())\n return oNFO", "def v_nw(l5Ny, K9NE):\n return [GIN8.lemma_ for GIN8 in K9NE(l5Ny)]", "def iKsa(z_aV):\n LRZo = []...
[ "0.74349856", "0.73827", "0.73166144", "0.7313327", "0.72395587", "0.7236935", "0.7212994", "0.7168978", "0.7167267", "0.71459424", "0.7134891", "0.71328896", "0.71247697", "0.7122165", "0.70692074", "0.7052754", "0.70327723", "0.6982322", "0.6970459", "0.69619834", "0.696016...
0.7229475
6
split text to sentences and lemmatize them
def UtTE(l5Ny): AToM, rB8Z = yqBK([l5Ny]) AToM, rB8Z = (AToM[0], rB8Z[0]) return (AToM, rB8Z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n s2mk = Dhdw.word_tokenize(l5Ny)\n LkXt = Dhdw.WordNetLemmatizer()\n oNFO = []\n for GIN8 in s2mk:\n oNFO.append(LkXt.lemmatize(GIN8).lower().strip())\n return oNFO", "def v_nw(l5Ny, K9NE):\n return [GIN8.lemma_ for GIN8 in K9NE(l5Ny)]", "def cdIu(l5Ny):\n l5Ny = K9...
[ "0.74687606", "0.7379463", "0.7352364", "0.7350641", "0.73457325", "0.7255446", "0.7248259", "0.72482115", "0.72330636", "0.7232925", "0.7229702", "0.7224981", "0.7206296", "0.72050154", "0.71733004", "0.7151718", "0.7150805", "0.71412253", "0.7116664", "0.7115599", "0.711261...
0.6754644
41
At the end of the web request, this makes sure to close the database connection. If you don't the database could run out of memory!
def gBn5(AJ5d): try: Oa1e.conn.close() except Exception as e: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYe1():\n NCls.close()", "def DDI8(YKHO):\n YKHO.conn.close()\n gigf.collect()", "def HySU(bGrB):\n YKHO.db.close()", "def DDI8(YKHO):\n YKHO.connection.close()", "def DDI8(YKHO):\n YKHO.db.close()", "def rYe1(geh0):\n Oa1e.db.close()\n return geh0", "def rYe1(geh0):\n Oa...
[ "0.79804355", "0.7822464", "0.76400095", "0.753811", "0.7476291", "0.74484444", "0.74484444", "0.74484444", "0.74484444", "0.74484444", "0.74484444", "0.74484444", "0.74484444", "0.74484444", "0.74484444", "0.74484444", "0.7436082", "0.7436082", "0.74210554", "0.74196386", "0...
0.0
-1
r""" Return the valency of this component. The valency of a component is the number of its neighbors, i.e. the other components which intersect it.
def mfP0(YKHO): return len(YKHO.neighbors())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y72q(YKHO, or8S=-1):\n if or8S >= len(YKHO.vertices):\n raise IndexError\n if or8S >= 0:\n return oyIN.sum(YKHO.adj[:, or8S]) + oyIN.sum(YKHO.adj[or8S, :]) - YKHO.adj[or8S, or8S]\n else:\n return YKHO.adj.sum(axis=1)", "def len(YKHO):\n return epAf.sqrt(YKHO.v[0] * YKHO.v[0] ...
[ "0.62729096", "0.6243316", "0.623081", "0.6148876", "0.60621613", "0.60530674", "0.60283023", "0.60259414", "0.6007848", "0.6007041", "0.59651446", "0.59489393", "0.59165126", "0.5877464", "0.5871133", "0.5861997", "0.58568466", "0.58439356", "0.58051497", "0.5788457", "0.577...
0.8152268
0
r""" Return the list of the neighbors of this component. A neighbor of a component is another component which intersects it.
def A_IW(YKHO): SLBp = YKHO.vertex() A_IW = SLBp.children() if SLBp.has_parent(): A_IW.append(SLBp.parent()) return [Ty9i._attr['component'] for Ty9i in A_IW if 'component' in Ty9i._attr]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_IW(YKHO):\n return YKHO.mesh.neighbors()", "def A_IW(YKHO):\n return YKHO._neighbors", "def A_IW(YKHO):\n return YKHO.graph.neighbors(YKHO.id)", "def BTfj(YKHO):\n return [AAbN for AAbN, bGrB in YKHO.neighbors.items()]", "def BTfj(YKHO):\n return YKHO.neighbors", "def BTfj(YKHO):\n ...
[ "0.81812406", "0.80785656", "0.7881611", "0.785588", "0.7847207", "0.7847207", "0.7847207", "0.7847207", "0.77727705", "0.7752649", "0.7677221", "0.76742136", "0.7659327", "0.7634686", "0.76329654", "0.75171083", "0.74922645", "0.7481735", "0.73576885", "0.73568803", "0.73472...
0.8313218
0
r""" Return the predecessors of this Berkovich point.
def SoZd(Y7fn): XEyL = Y7fn.berkovich_line() if Y7fn.is_limit_point(): Y7fn = Y7fn.approximation() LVAh = Y7fn.parameter() Ty9i = Y7fn.pseudovaluation_on_polynomial_ring() VJDQ = Ty9i.augmentation_chain()[1:-1] return [XEyL.point_from_pseudovaluation_on_polynomial_ring(yzQ0, LVAh) for yz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOPp(YKHO, oeNL: tuple):\n return YKHO.get_successors(oeNL)", "def vOPp(YKHO, Q6kx):\n aTLP = []\n nz8x = YKHO.node_to_state(Q6kx)\n for WhY1 in YKHO.predecessors:\n xGoe = (Q6kx[0] + WhY1[0], Q6kx[1] + WhY1[1])\n nYUa = YKHO.node_to_state(xGoe)\n D70y = YKHO.interpolate(nz8x...
[ "0.77336574", "0.74647355", "0.7312377", "0.70575607", "0.6882676", "0.6880616", "0.6732077", "0.6554532", "0.653753", "0.65045804", "0.6453065", "0.6411364", "0.63785994", "0.6357544", "0.63340384", "0.63139695", "0.6280114", "0.62689817", "0.6225963", "0.6188394", "0.615328...
0.7547226
1
r""" Return the critical residue class of this point.
def RFDT(Y7fn): from sage.rings.infinity import Infinity from mclf.berkovich.type_V_points import TypeVPointOnBerkovichLine if not Y7fn.type() == 'II' or Y7fn.is_gauss_point(): return None Ty9i = Y7fn.pseudovaluation_on_polynomial_ring() T8d8 = Ty9i.augmentation_chain()[1] if Ty9i.E() ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HIXu(YKHO):\n return YKHO.piece_type[YKHO.rotation]", "def Jwjr(YKHO):\n return YKHO.diseq_coeff(standardize=True)", "def H_T1(YKHO, De6w: und.Ent):\n if 'Interface' in De6w.kindname():\n return 2.0\n K1nB = De6w.metric(['PercentLackOfCohesion']).get('PercentLackOfCohesion', 0)\n if K...
[ "0.60656065", "0.5724504", "0.57177883", "0.57002723", "0.5605799", "0.55595136", "0.55285037", "0.5497443", "0.5497443", "0.54714996", "0.54711515", "0.54708683", "0.5463815", "0.5455728", "0.54204273", "0.5417683", "0.53726715", "0.53391033", "0.5333919", "0.5327187", "0.53...
0.69958276
0
The current virtual price of the pool LP token Useful for calculating profits LP token virtual price normalized to 1e18
def RIlJ() -> JthI: lWPh: JthI = YKHO._get_D(YKHO._xp(), YKHO._A()) fFDM: JthI = K76n(YKHO.lp_token).totalSupply() return lWPh * TLfE / fFDM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hI0L(YKHO):\n return YKHO._safe_value(PdjB, float)", "def JGHm(YKHO):\n return YKHO._desired_price", "def NR94(YKHO):\n return YKHO._base_price", "def AS0a(YKHO) -> cuzp[str, int]:\n return YKHO._current_price", "def VDS9(YKHO):\n return YKHO.create_random_decimal(min=1, max=100000)", ...
[ "0.65932363", "0.65562904", "0.6510884", "0.64934933", "0.64291865", "0.63204134", "0.63109577", "0.629016", "0.62893933", "0.62772155", "0.62541765", "0.62437177", "0.62437177", "0.62437177", "0.6230178", "0.6203097", "0.6173806", "0.6173806", "0.6171493", "0.61435056", "0.6...
0.8022648
0
Returns a list of ngrams, each ngram represented as a 4tuple of filename, utterance id, speaker name, and list of words in the ngram
def E5NQ(iumf, QVa0=1): assert isinstance(iumf, list), 'filenames argument must be a list' wvEv = KcTt() for FYKK in iumf: for PObu, dvBM, u8Mh in u9HT(wvEv.parse(FYKK), QVa0): yield (FYKK, PObu, dvBM, u8Mh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hkVi():\n gOBC = ()\n for YRbF in range(0, 40):\n aRnM = Nwr9(str(YRbF))\n foV7 = X9Px(aRnM, exwG)\n gOBC = eNCK(gOBC, foV7)\n return gOBC", "def RisN(YKHO, exwG=None):\n if not exwG:\n exwG = YKHO.N\n ycBG = []\n for _dZy in YKHO.get_sentences():\n ycBG.e...
[ "0.7511536", "0.70480585", "0.69828093", "0.6834482", "0.6822036", "0.6762867", "0.6735106", "0.6734953", "0.66730297", "0.662533", "0.6593495", "0.65693355", "0.6565634", "0.65468997", "0.65367264", "0.65129817", "0.6505234", "0.65043163", "0.649223", "0.64910996", "0.646233...
0.5657222
94
Sets chrome options for Selenium. Chrome options for headless browser is enabled.
def gkiv(): uh1m = lE6K() uh1m.add_argument('--headless') uh1m.add_argument('--no-sandbox') uh1m.add_argument('--disable-dev-shm-usage') m7lK = {} uh1m.experimental_options['prefs'] = m7lK m7lK['profile.default_content_settings'] = {'images': 2} return uh1m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uh1m(uh1m):\n uh1m.add_argument('--headless')\n return uh1m", "def oHnY():\n uh1m = lE6K()\n uh1m.add_argument('--headless')\n uh1m.add_experimental_option('prefs', {'intl.accept_languages': 'en,en_US'})\n return uh1m", "def csb7() -> cSpz:\n m7lK = {}\n uh1m = cSpz.ChromeOptions()\...
[ "0.8496415", "0.7502271", "0.7380162", "0.732335", "0.7207787", "0.72045255", "0.7193336", "0.71788657", "0.71749604", "0.7159074", "0.69817954", "0.6930866", "0.69131696", "0.68333215", "0.67308944", "0.66156524", "0.65814704", "0.6520646", "0.64218086", "0.6401822", "0.6392...
0.8364757
1
Return the renderable's type (or class)
def YwLH(YKHO, mvGI): if hasattr(mvGI, 'type'): return mvGI.type return mvGI.__class__.__name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO, object):\n return YKHO.type", "def FRul(YKHO, object):\n return YKHO.type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__ty...
[ "0.738765", "0.738765", "0.7356796", "0.7356796", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0.72969824", "0...
0.87245935
0
Gets the URI (file) as a steam
def NMoC(YKHO, j8eK, l5Ny=False): _Mw5.utils.LOGGER.debug('Getting stream to URI: {0} Note: Using HTTP GET'.format(j8eK)) return YKHO.httpHandler.get(ZbWC.compile('^dav').sub('http', j8eK), text=l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SJOK(i3wb):\n return mST_.get_class(i3wb).get_content(i3wb)", "def hKhs(YKHO):\n return YKHO.get_file(uri_type=tRPw, no_copy=True)", "def sfHD(YKHO):\n return dTAH.urlopen(i9Wa.SOURCE_URL)", "def SJOK(YKHO):\n return YKHO.theFile", "def hKhs(YKHO):\n try:\n return YKHO._file.url\n...
[ "0.6582305", "0.65651655", "0.6001005", "0.5889885", "0.5810439", "0.58087236", "0.57913876", "0.5754765", "0.574611", "0.57455057", "0.5726757", "0.5621217", "0.56021684", "0.5600786", "0.5595253", "0.55704397", "0.5549709", "0.55440325", "0.5542883", "0.5542883", "0.5542883...
0.0
-1
Test that BadEmailRecipient is raised correctly
def LskX(nJBR): vI0X = {'sender': 'dummy@moc.org', 'receiver': 'newuser1@moc.org', 'subject': 'Test Message Subject', 'body': 'This is a Test.'} wa8h = ['bademail1@moc.org', 'bademail2@moc.org'] tO9_ = LuKW(**vI0X) nJBR.return_value.sendmail.return_value = wa8h with trZe.raises(kQ9u) as XObx: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jjgs(RC0X):\n tTpl = RC0X\n tTpl.auth = 'baDp@ssw0rd'\n with trZe.raises(IkV9):\n tTpl.send()", "def oQ6S(YKHO):\n YKHO.assertEqual(pC5n('testtestcom', 'test', 'test'), 'There was an error sending')", "def tYaX(YKHO):\n YKHO.updated_data['email'] = ''\n YKHO.update_user()\n YKHO...
[ "0.76745105", "0.7439456", "0.7381916", "0.73518157", "0.7336578", "0.7319879", "0.72991", "0.72176707", "0.7176044", "0.71172804", "0.7101039", "0.7054247", "0.70468605", "0.7007666", "0.69897413", "0.69525427", "0.69355714", "0.6870197", "0.6861531", "0.6830244", "0.6777513...
0.7262134
7
Determine the indices for labels that are not corrupted in the dataset.
def P_GS(Crrw): DNs0 = Crrw != D9Wq[0] for vC9B in D9Wq[1:]: DNs0 = DNs0 & (Crrw != vC9B) return DNs0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gJ_Y(Lcqa, Jijm):\n return oyIN.arange(Lcqa.shape[0])[oyIN.logical_not(oyIN.in1d(oyIN.arange(Lcqa.shape[0]), Jijm))]", "def toA9():\n with trZe.raises(ValueError):\n gnPz.get_label_indices(3, 'random_str')", "def zX2w(YKHO):\n return YKHO._labeled_indices", "def C5E8(YKHO, LTIa):\n try...
[ "0.71164936", "0.6890843", "0.66725874", "0.6499322", "0.6470832", "0.6461701", "0.6385171", "0.63188404", "0.6288615", "0.62110835", "0.6081898", "0.60789007", "0.6048194", "0.60084397", "0.60058415", "0.5992234", "0.5959932", "0.59489834", "0.59395844", "0.5922739", "0.5922...
0.767029
0
Add a colorbar to the right of an axis.
def Rz7N(YKHO, Xn71, aNZO, MYQr, UXqs=''): import matplotlib as x5MY oeNL = aNZO.get_position() BFKx = [oeNL.x1 + oeNL.width * 0.01, oeNL.y0 + oeNL.height * 0.1, 0.01, oeNL.height * 0.8] k13D = YKHO.fig.add_axes(BFKx) wn16 = YKHO.fig.colorbar(Xn71, k13D, spacing='uniform', orientation='vertical', cm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rz7N(YKHO, LZpg, aNZO, CkYf, MYQr, UXqs=''):\n import matplotlib as x5MY\n oeNL = aNZO.get_position()\n BFKx = [oeNL.x1 + 0.025, oeNL.y0 + 0.0125, 0.015, oeNL.height * 0.8]\n k13D = LZpg.add_axes(BFKx)\n wn16 = x5MY.colorbar.ColorbarBase(k13D, cmap=MYQr, norm=CkYf, spacing='uniform', orientation...
[ "0.7577057", "0.7577057", "0.7418903", "0.74102116", "0.7179385", "0.71613485", "0.71574956", "0.6979866", "0.6953447", "0.6930779", "0.67889935", "0.6788904", "0.6615177", "0.6534736", "0.6524789", "0.65199506", "0.6450172", "0.6343112", "0.62681675", "0.62551737", "0.625244...
0.7166474
5
Add a colorbar to the right of an axis.
def X7z5(YKHO, Xn71, MYQr='jet_r', UXqs=''): oeNL = YKHO.ax.get_position() BFKx = [oeNL.x0 + 0.3 * oeNL.width, oeNL.y0 - 0.15 * oeNL.height, oeNL.width * 0.5, 0.02] k13D = YKHO.fig.add_axes(BFKx) wn16 = YKHO.fig.colorbar(Xn71, cax=k13D, cmap=MYQr, spacing='uniform', orientation='horizontal') wn16.se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rz7N(YKHO, LZpg, aNZO, CkYf, MYQr, UXqs=''):\n import matplotlib as x5MY\n oeNL = aNZO.get_position()\n BFKx = [oeNL.x1 + 0.025, oeNL.y0 + 0.0125, 0.015, oeNL.height * 0.8]\n k13D = LZpg.add_axes(BFKx)\n wn16 = x5MY.colorbar.ColorbarBase(k13D, cmap=MYQr, norm=CkYf, spacing='uniform', orientation...
[ "0.7577057", "0.7577057", "0.7418903", "0.74102116", "0.7179385", "0.7166474", "0.71613485", "0.71574956", "0.6979866", "0.6953447", "0.6930779", "0.67889935", "0.6788904", "0.6615177", "0.6534736", "0.6524789", "0.6450172", "0.6343112", "0.62681675", "0.62551737", "0.625244"...
0.65199506
16
Add a colorbar to the right of an axis.
def Rz7N(YKHO, Xn71, MYQr='jet_r', UXqs=''): oeNL = YKHO.ax.get_position() BFKx = [oeNL.x1 + 0.15, oeNL.y0 + 0.2 * oeNL.height, 0.02, oeNL.height * 0.5] k13D = YKHO.fig.add_axes(BFKx) wn16 = YKHO.fig.colorbar(Xn71, cax=k13D, cmap=MYQr, spacing='uniform', orientation='vertical') wn16.set_label(UXqs) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rz7N(YKHO, LZpg, aNZO, CkYf, MYQr, UXqs=''):\n import matplotlib as x5MY\n oeNL = aNZO.get_position()\n BFKx = [oeNL.x1 + 0.025, oeNL.y0 + 0.0125, 0.015, oeNL.height * 0.8]\n k13D = LZpg.add_axes(BFKx)\n wn16 = x5MY.colorbar.ColorbarBase(k13D, cmap=MYQr, norm=CkYf, spacing='uniform', orientation...
[ "0.75750417", "0.75750417", "0.7417919", "0.7408142", "0.71787065", "0.7165443", "0.7160115", "0.71563584", "0.6978977", "0.6928187", "0.67887163", "0.6787255", "0.66141695", "0.6534215", "0.6523998", "0.65192235", "0.64490265", "0.6341669", "0.6268099", "0.62562", "0.6251723...
0.69518185
9
Returns true if there is a forgetful map out of this space.
def _anG(YKHO): return YKHO.genus >= 2 and YKHO.n != 0 or (YKHO.genus == 1 and YKHO.n > 1) or (YKHO.genus == 0 and YKHO.n > 3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b6Ub(YKHO):\n return True", "def ebnO(YKHO):\n return not wzZh.ipmap_is_empty(YKHO.map)", "def FBfn(YKHO):\n return wzZh.ipmap_is_empty(YKHO.map)", "def UF9e(YKHO, rdlD, fvDH):\n return YKHO.maze[rdlD][fvDH] is KAvf", "def LWCs(YKHO):\n if len(YKHO._page_map) >= YKHO.memory_size:\n ...
[ "0.67249465", "0.66899806", "0.66786814", "0.6617099", "0.65594023", "0.6538555", "0.65054786", "0.64949316", "0.6427947", "0.6398569", "0.63808787", "0.6360524", "0.63576496", "0.6355212", "0.6343116", "0.6303801", "0.62969935", "0.62950987", "0.6289435", "0.6248638", "0.619...
0.0
-1
Get the database and check that the current user has write access. Optionally add nrows for each table and view. Raise KeyError if no such database. Raise ValueError if may not access.
def BK3O(_M9w, Xelj=True, HN6s=False, Fd4y=True): NCls = GGod(_M9w, complete=Fd4y) if NCls is None: raise KeyError('no such database') if not wSvE(NCls, check_mode=Xelj): raise ValueError('may not write to the database') RS_o(NCls, targets=HN6s) return NCls
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oOen(_M9w, HN6s=False, Fd4y=True):\n NCls = GGod(_M9w, complete=Fd4y)\n if NCls is None:\n raise KeyError('no such database')\n if not FHLQ(NCls):\n raise ValueError('may not read the database')\n RS_o(NCls, targets=HN6s)\n return NCls", "def PK74(YKHO):\n YKHO._check_within_c...
[ "0.62008744", "0.5717889", "0.5461007", "0.54139274", "0.5394495", "0.53823745", "0.5362482", "0.53576916", "0.5351964", "0.5261355", "0.51136035", "0.4998261", "0.4941331", "0.4937972", "0.49325716", "0.48510417", "0.4825769", "0.48031938", "0.47883636", "0.47742996", "0.476...
0.6900375
0
Check if the authenticated user has 'admin' or 'attendant' role If 'admin' authorize, else if 'attendant' deny access
def m8z6(YKHO): nPrm = p7MO.parser.parse_args() for CBIr in mv1M.users: if CBIr.role == 'attendant' and CBIr.username == Jpbe.username(): return ({'message': 'Not authorised to access '}, 401) if CBIr.role == 'admin' and CBIr.username == Jpbe.username(): if next(filter(la...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gDhF():\n if not c5ow.is_authenticated:\n return (TvZl('401.html', base_template=jnYr.base_template, appbuilder=jnYr), 401)\n for LmAn in c5ow.roles:\n if jnYr.get_app.config['AUTH_ROLE_ADMIN'] == LmAn.name:\n return None\n return (TvZl('403.html', base_template=jnYr.base_temp...
[ "0.7119449", "0.68774784", "0.6872807", "0.6872807", "0.6767177", "0.6740289", "0.67216414", "0.6694622", "0.66614085", "0.65831244", "0.6548067", "0.6539639", "0.6518462", "0.651116", "0.6498799", "0.64806175", "0.64806175", "0.6465556", "0.6463639", "0.6463639", "0.6443175"...
0.0
-1
Count the Chinese characters in the text.
def rfTG(l5Ny): qbSC = l5Ny.replace(',', '').replace('.', '').replace('--', '').replace('*', '').replace('!', '') PRNC = list(qbSC) dict = {WKvO: PRNC.count(WKvO) for WKvO in PRNC} WbPA = sorted(dict.items(), key=lambda Csk6: Csk6[1], reverse=True) print(WbPA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(l5Ny):\n return len(l5Ny)", "def aNPG(YKHO):\n YKHO.assertEqual(D6ox(YKHO.filename)[1], 133)", "def UO1n(yzQ0):\n r7Zm = len(ZbWC.findall('[а-я]', yzQ0))\n nSBL = len(ZbWC.findall('[a-z]', yzQ0))\n Z9rn = len(yzQ0)\n return (Z9rn, r7Zm, nSBL)", "def aNPG(YKHO):\n YKHO.assertEqua...
[ "0.67015", "0.6607649", "0.6606629", "0.6590809", "0.65797144", "0.6475554", "0.6430852", "0.61501974", "0.6050413", "0.60285336", "0.6015077", "0.59781206", "0.5967439", "0.5922929", "0.5896226", "0.58794916", "0.585383", "0.58402056", "0.5804242", "0.57875055", "0.5774597",...
0.6177398
7
Check than array of values specified using `c` can be used for a colormap.
def H9Ze(YKHO): ezWE = YKHO.arr yvT9 = kcx8(ezWE, c=oyIN.linspace(0, 10, 10), cmap='viridis') YKHO.assertTrue(hasattr(yvT9, 'tax')) YKHO.assertEqual(type(yvT9.tax), cOtv.ternary_axes_subplot.TernaryAxesSubplot)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YgBL(Z9rn):\n Z9rn = MF4b(Z9rn)\n if Z9rn.ndim == 1:\n Z9rn = Z9rn.flatten()\n Z9rn = Z9rn[dxBm, :]\n if Z9rn.shape[1] != 3:\n raise Exception('Color must have three values per point')\n elif Z9rn.ndim == 2:\n if Z9rn.shape[1] != 3:\n raise Exception('...
[ "0.7522997", "0.6399244", "0.6233486", "0.61515546", "0.5972068", "0.5734837", "0.5714697", "0.57047075", "0.56964606", "0.5671895", "0.5666058", "0.5661867", "0.5612082", "0.5578248", "0.5551499", "0.5532785", "0.5467735", "0.5461801", "0.54509157", "0.5412546", "0.5403892",...
0.6554897
1
Creates the `ImageSearcher` object from a TensorFlow Lite model.
def EvNe(Emd4, L1Oy: str, OvHm: Optional[str]=None) -> 'ImageSearcher': xAU6 = vrMw(base_options=CnLy(file_name=L1Oy), search_options=rQgv(index_file_name=OvHm)) return Emd4.create_from_options(xAU6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def loYz(Emd4, uqvc: str) -> 'FaceDetector':\n WhER = CnLy(model_asset_path=uqvc)\n xAU6 = oEEH(base_options=WhER, running_mode=zkeu.IMAGE)\n return Emd4.create_from_options(xAU6)", "def NZUw(DMw4: str, uqvc: Optional[str]=None, C3ST: Optional[Any]=None, lqQH: Optional[str]=None, begE: Optional[str]=Non...
[ "0.58416957", "0.57176334", "0.5706374", "0.54603827", "0.54595345", "0.5452045", "0.5437048", "0.5412006", "0.53853303", "0.5357966", "0.53444433", "0.53190815", "0.53147674", "0.5314517", "0.53105253", "0.5305688", "0.5271952", "0.51935625", "0.5188544", "0.51859486", "0.51...
0.5662296
3
Instantiate an ASVspoof dataset.
def FIMM(YKHO, tk5Y, Qrt_, ulrI=None, Ueki=None, SZFh=None): YKHO._evalkey = None if Qrt_ == 'train': tk5Y = Hy7s.path.join(tk5Y, 'ASVspoof2017_V2_train') elif Qrt_ == 'valid': tk5Y = Hy7s.path.join(tk5Y, 'ASVspoof2017_V2_dev') elif Qrt_ == 'test': YKHO._evalkey = YKHO.eval_genui...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, __n6):\n YKHO._dataset = __n6", "def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6", "def FIMM(YKHO, nPrm, hQHm, jlSq):\n YKHO.data = nPrm\n YKHO.v1 = hQHm\n YKHO.v2 = jlSq", "def ZRjb(JZXy=''):\n return azbc()", "def FIMM(YKHO):\n YKHO.svclassifier = _VRL(kernel='lin...
[ "0.56661063", "0.5572199", "0.55397993", "0.5510062", "0.54108816", "0.53719366", "0.5366002", "0.5346476", "0.5346476", "0.5341396", "0.5331791", "0.5322447", "0.53083295", "0.53056693", "0.5285903", "0.52816117", "0.52505565", "0.5217569", "0.5214454", "0.5191689", "0.51868...
0.5287663
14
Initialisation of weights and biases for the embedding layer and the RNN layers.
def PAGg(YKHO): def ky7u(xqoZ): """ Initialises weights of a given parameter following either Xavier or Kaiming uniform or normal processes. : param (torch.Tensor): """ if YKHO._initialisation_process == 'xavier_uniform': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYlq(YKHO.conv2)\n uHk4(YKHO.norm1)\n uHk4(YKHO.norm2)", "def ilRF(YKHO):\n with ZylS.variable_scope('embedding_projection'), ZylS.device('/cpu:0'):\n YKHO.Embedding = ZylS.get_variable('Embedding', shape=[YKHO.vocab_size, YKHO.embed_size], initializer=Y...
[ "0.77943677", "0.7777627", "0.76114255", "0.76029295", "0.7508789", "0.7387998", "0.73835915", "0.73677576", "0.73591816", "0.73591816", "0.73591816", "0.73556024", "0.73530215", "0.72580236", "0.72257406", "0.71798956", "0.71372914", "0.71090186", "0.7084901", "0.70644426", ...
0.66120446
67
Initialises weights of a given parameter following either Xavier or Kaiming uniform or normal processes.
def ky7u(xqoZ): if YKHO._initialisation_process == 'xavier_uniform': QB8h.xavier_uniform_(xqoZ.data) elif YKHO._initialisation_process == 'xavier_normal': QB8h.xavier_normal_(xqoZ.data) elif YKHO._initialisation_process == 'kaiming_uniform': QB8h.kaiming_uniform_(xqoZ.data) elif ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i7WW(YKHO):\n xyz5(YKHO.output_proj, distribution='uniform', bias=0.0)", "def vJuA(YKHO):\n raise NotImplementedError", "def PAGg(YKHO):\n\n def ky7u(xqoZ):\n \"\"\"\n Initialises weights of a given parameter following either Xavier or Kaiming uniform or normal processes.\n ...
[ "0.75284606", "0.7397868", "0.7371006", "0.7275698", "0.72356653", "0.7192996", "0.7187742", "0.71090496", "0.7088423", "0.7076657", "0.7066805", "0.70589423", "0.70522285", "0.70522285", "0.6999897", "0.69886106", "0.6960581", "0.69561607", "0.69436896", "0.6931591", "0.6925...
0.65751314
54
Returns the list of container registries each of which is an ordered dictionary.
def yAKl(Aofo): if 'value' in Aofo and isinstance(Aofo['value'], list): Aofo = Aofo['value'] id_0 = Aofo if isinstance(Aofo, list) else [Aofo] return [MxUr(ZfUD) for ZfUD in id_0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oGZN():\n bD7m = '/'.join([z18f, '_catalog'])\n geh0 = qv1X(bD7m)\n if geh0 is not None:\n return geh0['repositories']\n return []", "def yqYz(YKHO):\n return [x_kO(Z9rn) for Z9rn in YKHO.container.get('Containers', [])]", "def yqYz(YKHO):\n return YKHO.__containers", "def NYbo(Y...
[ "0.69137096", "0.6764479", "0.6561832", "0.6402633", "0.6357411", "0.62526804", "0.61654025", "0.612648", "0.60717183", "0.60332584", "0.60280293", "0.60130984", "0.59799194", "0.5978797", "0.59747064", "0.5971127", "0.5962707", "0.59357166", "0.5931848", "0.588443", "0.58628...
0.0
-1
Returns an ordered dictionary of the container registry.
def MxUr(ZfUD): _eDZ = {YK7s[H5ew]: str(ZfUD[H5ew]) for H5ew in ZfUD if H5ew in YK7s} try: _eDZ['SKU'] = ZfUD['sku']['name'] except (KeyError, TypeError): pass try: _eDZ['USERNAME'] = ZfUD['username'] except (KeyError, TypeError): pass try: _eDZ['PASSWORD'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ApxA():\n return dzSD.get_codes().keys()", "def nqEK(YKHO):\n if YKHO._registry is None:\n print('Creating container registry...')\n QO0Z = YKHO.registry_client.registries\n try:\n nqEK = QO0Z.get(YKHO.resources.group.name, YKHO.name)\n except lmAw:\n E...
[ "0.67599016", "0.6461334", "0.6459659", "0.64198136", "0.64024276", "0.63673127", "0.6053186", "0.6050705", "0.5892358", "0.5852548", "0.58208233", "0.5747135", "0.5703876", "0.5644097", "0.5632085", "0.5615898", "0.56062925", "0.5587612", "0.558675", "0.55411214", "0.5534757...
0.0
-1
@ get all episodes in selected asset type, and if project type is not series then return None.
def Jxoo(afba): oCo9 = kNaR().basePath j9fW = kNaR().projectName piqx = kNaR().assetType HrZy = kNaR().projectType if HrZy == 'series': m531 = '{basePath}/{projectName}/01_pre/{assetType}/'.format(basePath=oCo9, projectName=j9fW, assetType=piqx[afba]) return [mAB6 for mAB6 in Hy7s.li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hFDr(YKHO):\n return [CcuX for CcuX in j2k1.objects.filter(series=YKHO)]", "def KULu(YKHO):\n if YKHO._episode_cache_ver == YKHO._db._version:\n return YKHO._episode_cache\n if YKHO.number > 0:\n e_fX = {YKHO.series.provider.IDATTR: NCls.QExpr('>', u'')}\n else:\n e_fX = {}\n...
[ "0.6472294", "0.6238427", "0.6109521", "0.6061909", "0.58215487", "0.5817781", "0.56866485", "0.5580703", "0.5557396", "0.5460225", "0.5414427", "0.5404259", "0.5401844", "0.53146833", "0.53129226", "0.51491994", "0.51185447", "0.5114288", "0.5105471", "0.50925493", "0.507416...
0.7465757
0
Returns the active projects for the client.
def pnN2(YKHO): return YKHO.projects.filter(active=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PKRp(YKHO):\n return Fv2L.projects", "def EUEg(YKHO, x0hE=None):\n if type(x0hE) is i9zE:\n return [XP5J for XP5J in YKHO.project_list if x0hE.client_id == XP5J.client_id]", "def PKRp(YKHO):\n return YKHO.http_call('get', url=f'{YKHO.base_url}/projects').json()", "def PKRp(YKHO):\n ret...
[ "0.79490113", "0.7929667", "0.77085984", "0.7485822", "0.7469964", "0.74452794", "0.74072176", "0.73590404", "0.7318829", "0.724942", "0.7204794", "0.71989226", "0.719029", "0.7152463", "0.7124276", "0.7114484", "0.7078646", "0.7010834", "0.7005374", "0.6980954", "0.6970034",...
0.8063469
0
Return the Writer class from the `writer_name` module.
def y_WK(t0HG): t0HG = t0HG.lower() if t0HG in DqrL: t0HG = DqrL[t0HG] try: yR_P = __import__(t0HG, globals(), locals(), level=1) except ImportError: yR_P = __import__(t0HG, globals(), locals(), level=0) return yR_P.Writer
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y_WK(Emd4) -> 'Type[SpectrumWriter]':\n raise NotImplementedError(ozT7.get_writer_class.__qualname__)", "def zflB(YKHO, t0HG):\n if t0HG not in YKHO._writers:\n pmON = Hy7s.path.join(YKHO.log_dir, t0HG)\n WJI9 = Yzks.create_file_writer_v2(pmON)\n YKHO._writers[t0HG] = WJI9\n ret...
[ "0.69305336", "0.6689665", "0.6409046", "0.62630635", "0.6220382", "0.58785063", "0.5845479", "0.5839867", "0.58295506", "0.56432635", "0.5637954", "0.5606227", "0.5554922", "0.5537747", "0.5523522", "0.5474596", "0.5463936", "0.54269594", "0.5412886", "0.54028976", "0.538162...
0.9022644
0
Create and save a User with the given email and password.
def xWi2(YKHO, D3lj, jTXt, **wdCM): if not D3lj: raise ValueError('The given email must be set') D3lj = YKHO.normalize_email(D3lj) CBIr = YKHO.model(email=D3lj, **wdCM) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save(using=YKHO._db)\n return CBIr", "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n ...
[ "0.8545239", "0.85126233", "0.8508934", "0.85035056", "0.8503207", "0.8490302", "0.8490302", "0.84895617", "0.84895617", "0.84895617", "0.84866524", "0.84778446", "0.8476501", "0.8457027", "0.8457027", "0.8457027", "0.8455693", "0.84490657", "0.84451187", "0.84442055", "0.844...
0.84760785
20
Logs a message at the ``WARNING`` log level.
def i3Sa(YKHO, nNXP, oUZx): return YKHO.handle_log(nNXP, oUZx, level=G9jH.WARNING)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E4N8(YKHO, Ol8d: str):\n YKHO.log(LDHv.WARNING, Ol8d)", "def pEH_(qyxr: str):\n bo34.warning(qyxr)", "def pEH_(Ol8d: str, *qIxc: Any) -> None:\n Few0.log(G9jH.WARN, Ol8d, *qIxc)", "def _moe(YKHO, tO9_):\n YKHO.logger.warning(tO9_)", "def pEH_(tO9_):\n RKD7('WARNING', tO9_)", "def pEH_(...
[ "0.851772", "0.8506773", "0.85006905", "0.8482524", "0.84166867", "0.8413865", "0.8361264", "0.8316793", "0.82993543", "0.8275807", "0.82646966", "0.82539433", "0.82478034", "0.8244659", "0.823924", "0.8237153", "0.82192165", "0.8213992", "0.82070726", "0.8206089", "0.8191427...
0.0
-1
Make an HTTP PATCH request.
def b62G(YKHO, nNXP, oUZx): return YKHO._make_request_from_command('PATCH', oUZx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def irEl(YKHO, bD7m='', nPrm='', NArs={}, MOPg={}):\n return YKHO.httpRequest('PATCH', bD7m, nPrm, NArs, MOPg)", "def Po4F(bD7m, nPrm=None, **B2fa):\n return QePW('patch', bD7m, data=nPrm, **B2fa)", "def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)", "def Po4F(YKHO, bD7m, TBsA=N...
[ "0.8377986", "0.77408034", "0.7737159", "0.7708333", "0.7624386", "0.7548285", "0.75311804", "0.75118834", "0.74857336", "0.73733705", "0.7367035", "0.7365305", "0.73553634", "0.73553634", "0.73553634", "0.7353132", "0.7337053", "0.7293803", "0.72613055", "0.7235854", "0.7191...
0.72490084
19
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None lCGi = cmPJ.get('backupAllExistingSnapshot') LM84 = cmPJ.get('blacklistedIpAddrs') VAAq = cmPJ.get('continueOnError') xqO4 = cmPJ.get('encryptionEnabled') b9qB = qRGs.models.filtering_policy_proto.FilteringPolicyProto.from_dictionary(cmP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.83185387", "0.81679726", "0.81679726", "0.81194353", "0.80894536", "0.79789025", "0.7949881", "0.7922983", "0.7898846", "0.7892914", "0.7888425", "0.7882915", "0.7882119", "0.78765213", "0.7858605", "0.78363335", "0.78024834", "0.78024834", "0.78024834", "0.78024834", "0.7...
0.0
-1
Return a function to open a (gzipped) file.
def S5dg(IznC: str, Tuqy: Optional[str]='r'): if Tuqy not in ['r', 'w']: raise ValueError("mode must be either 'r' or 'w'.") if IznC.endswith('.gz'): return lGU7.open(IznC, Tuqy + 't') return open(IznC, Tuqy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PgHT(Ux0P, Tuqy):\n return lGU7.open(Ux0P, Tuqy)", "def Tkpv(FYKK):\n twTI = b'\\x1f\\x8b\\x08'\n vC9B = len(twTI)\n with open(FYKK, 'rb') as eHNT:\n OrOf = eHNT.read(vC9B)\n eHNT.seek(0)\n if OrOf.startswith(twTI):\n return lGU7.open(FYKK, 'rt')\n return open(FYKK, 'rt...
[ "0.82734615", "0.8186003", "0.8017077", "0.78277725", "0.7727428", "0.7643111", "0.73564893", "0.73564893", "0.732356", "0.7103141", "0.70543605", "0.70016134", "0.6944863", "0.6920207", "0.6873506", "0.66928023", "0.66770685", "0.6631664", "0.6631664", "0.6600424", "0.658002...
0.677487
15
Function to tokenize a sentence (break up into words) based on the TOKENIZER regex
def wr3U(l5Ny: str) -> list: Wh3D = ZbWC.compile(f"""([!"#$%&'()*+,-./:;<=>?@[\\]^_`|~“”¨«»®´·º½¾¿¡§£₤‘’\n\t])""") return Wh3D.sub(' \\1 ', l5Ny).split()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(yAmx):\n return Dhdw.word_tokenize(yAmx)", "def wr3U(yAmx):\n U5bT = []\n for eOtH in yAmx.split(' '):\n eOtH = eOtH.strip()\n if not len(eOtH):\n continue\n if eOtH[-1] == '.' or eOtH[-1] == '?':\n eOtH = eOtH[:-1]\n if len(eOtH):\n ...
[ "0.78913397", "0.7821764", "0.77582806", "0.7687089", "0.7668706", "0.76109326", "0.75864846", "0.7557652", "0.7526917", "0.7497942", "0.7435132", "0.73910666", "0.73733234", "0.7371356", "0.7359411", "0.7332259", "0.7331818", "0.7313859", "0.7303731", "0.72848535", "0.727875...
0.0
-1
Returns whether a string is a number or not
def zonT(KCHu: str) -> bool: if ZbWC.match('^\\d+?\\.\\d+?$', KCHu) is None: return KCHu.isdigit() return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 ValueError:\n return False", "def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except...
[ "0.8744992", "0.872017", "0.86263174", "0.861253", "0.8594354", "0.8553676", "0.8550075", "0.8513001", "0.8513001", "0.8513001", "0.84561634", "0.8438337", "0.8430808", "0.8331034", "0.83163124", "0.8291856", "0.82304853", "0.82140267", "0.8140006", "0.8120189", "0.81172305",...
0.7522996
48
computes the distance of a given cell to the enemy position
def pImw(p37X, vg0C, A_IW): TaUL = [] for AAbN in A_IW: if p37X[AAbN[0], AAbN[1]] != -1: TaUL.append(p37X[AAbN[0], AAbN[1]] + 1) return oyIN.min(TaUL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pImw(PXGI, eL5z):\n return abs(eL5z['x'] - PXGI['x']) + abs(eL5z['y'] - PXGI['y'])", "def pct1(YKHO, rdlD, fvDH):\n return float(PZyS(pow(YKHO._row - rdlD, 2) + pow(YKHO._col - fvDH, 2)))", "def ZNrV(skHC, r2KN):\n o4D3, si3g = skHC.location\n ajwV, skBL = r2KN.location\n khBW = abs(o4D3 - a...
[ "0.67895997", "0.6736873", "0.6661446", "0.6541716", "0.6479071", "0.64211947", "0.64211947", "0.63727576", "0.6362925", "0.6362459", "0.6351663", "0.6339557", "0.63383836", "0.6333318", "0.6301942", "0.62578773", "0.625512", "0.6253803", "0.62491465", "0.62274194", "0.622731...
0.0
-1
Return a tuple of two ints from 1 or 2 intish things.
def GPVD(YKHO, Ty9i): try: jzdc, Fg_i = [int(WKvO) for WKvO in Ty9i] except TypeError: jzdc, Fg_i = (int(Ty9i), int(Ty9i)) return (jzdc, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EV8W(Ty9i: Union[int, Tuple[int, int]]) -> AzJI[int, int]:\n if ht2j.jit.isinstance(Ty9i, int):\n return (Ty9i, Ty9i)\n else:\n return Ty9i", "def qsp4(hkxX: Union[int, Iterable[int]]) -> AzJI[int, ...]:\n try:\n return tuple(hkxX)\n except TypeError:\n return (hkxX,)"...
[ "0.7521668", "0.71872586", "0.67897296", "0.66056657", "0.6550124", "0.6381458", "0.63615984", "0.63500184", "0.63150114", "0.6306386", "0.6288212", "0.6223996", "0.6137928", "0.61346763", "0.6120724", "0.61114156", "0.6105132", "0.60968715", "0.6076315", "0.6074093", "0.6072...
0.81066763
0
Returns dictionary of placeholders that must be fed. Only valid after network() has been run.
def NYDs(YKHO): im04 = dict() for EtM5 in YKHO.stages: for mWFP, DhM7 in EtM5.placeholders: im04[mWFP] = DhM7 return im04
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NYDs(YKHO):\n WKvO = [YRbF.placeholder for YRbF in YKHO._input_desc]\n return WKvO[0] if len(WKvO) == 1 else WKvO", "def PY5N(YKHO):\n if YKHO.implementation.container is None:\n return\n ZqU3 = {} if YKHO.inputs is None else YKHO.inputs\n BoK1 = {} if YKHO.outputs is None else YKHO.out...
[ "0.6215448", "0.6073801", "0.592821", "0.5835194", "0.5761858", "0.5752826", "0.5747895", "0.56185067", "0.55785143", "0.557546", "0.5575306", "0.5567209", "0.5552609", "0.5547895", "0.5461414", "0.54389316", "0.5426337", "0.5407213", "0.5380769", "0.5353769", "0.5327057", ...
0.6491004
0
Checks if this notification should be sent or not
def XtVi(NCls, GPoz, jRxN=False): USWn = GPoz['priority_level'] Z6AU = GPoz['to_username'] if USWn == FFjS.ALWAYS: bo34.debug('PRIORITY ALWAYS Checking') return NCls.get_priority_count(Z6AU, FFjS.ALWAYS, 3600) < 10 elif USWn == FFjS.PRIORITY: bo34.debug('PRIORITY PRIORITY Checkin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bc9O(YKHO) -> bool:\n return qe4Y.get(YKHO, 'send_notification')", "def nPg3(YKHO) -> bool:\n return qe4Y.get(YKHO, 'non_compliant_notification')", "def nPg3(YKHO) -> bool:\n return qe4Y.get(YKHO, 'non_compliant_notification')", "def kLjZ(YKHO):\n if not YKHO.stage_id or not YKHO.stage_id.not...
[ "0.7569572", "0.72110873", "0.72110873", "0.71615547", "0.7113662", "0.6953311", "0.6791438", "0.67768735", "0.65806925", "0.6497984", "0.6497984", "0.6497984", "0.6437435", "0.6412014", "0.6401645", "0.6398709", "0.63752735", "0.63381314", "0.6334512", "0.6313075", "0.628304...
0.0
-1
Return the path to the image file.
def U8jn(QMAG): if Hy7s.path.isdir(QMAG): VfIt = Hy7s.path.join(QMAG, uwaB.BASE_IMAGE_NAME + '.bin') if not Hy7s.path.exists(VfIt): raise ValueError('Cannot find base image %s' % VfIt) elif Hy7s.path.isfile(QMAG): VfIt = QMAG else: raise ValueError('%s is neither ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AGO3(YKHO):\n return YKHO.path", "def TCOZ(YKHO):\n return YKHO.image_data.path", "def XKel(YKHO):\n return Hy7s.path.join(YKHO.__folder, YKHO.__name + '.jpg')", "def Wp06(YKHO) -> h8nf[str]:\n if not YKHO.image or not YKHO.image.file_path:\n return None\n return YKHO.image.file_pat...
[ "0.8316106", "0.8163531", "0.81182754", "0.7961282", "0.7760827", "0.769565", "0.76003695", "0.75976634", "0.7590159", "0.75808513", "0.7478475", "0.74614805", "0.7457801", "0.7451773", "0.7395841", "0.7384844", "0.7317921", "0.72773635", "0.7273996", "0.72732276", "0.7266428...
0.0
-1
Email and phone are optional, but one must be informed
def IUhQ(YKHO): L03z = YKHO.make_validator_form(phone='', email='') YKHO.assertListEqual(['__all__'], list(L03z.errors))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IUhQ(YKHO):\n L03z = YKHO.make_validated_form(email='', phone='')\n YKHO.assertListEqual(['__all__'], list(L03z.errors))", "def IUhQ(YKHO):\n L03z = YKHO.make_validated_form(email='', phone='')\n YKHO.assertListEqual(['__all__'], list(L03z.errors))", "def fmnl(YKHO):\n L03z = YKHO.make_valid...
[ "0.75361687", "0.7490287", "0.7065026", "0.6368576", "0.6270754", "0.6209141", "0.619869", "0.6197438", "0.6183619", "0.6181492", "0.6180816", "0.6178619", "0.61082476", "0.60776365", "0.60598195", "0.6025348", "0.6018382", "0.60004056", "0.59906375", "0.59758604", "0.595008"...
0.73785985
2
Test if this node is the network node.
def Jhfq(): return GPtr.NODE_IP == GPtr.NETWORK_NODE_IP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G29K(YKHO, mWFP):\n K4sN = YKHO.config['networks'].get(mWFP)\n return bool(K4sN)", "def Ierk(YKHO, mWFP):\n return YKHO.source_net.has_node(mWFP)", "def FYXB(YKHO, ZfUD):\n if isinstance(ZfUD, o7DN):\n ZfUD = ZfUD.id\n return ZfUD in YKHO.network", "def Rr2J(YKHO) -> h8nf[qe4Y.Input...
[ "0.7338448", "0.68739766", "0.6680434", "0.6630339", "0.6630339", "0.66011393", "0.6267848", "0.62573254", "0.62540036", "0.61622053", "0.61584145", "0.6156845", "0.61213005", "0.6108773", "0.60500073", "0.6039537", "0.60387963", "0.60387963", "0.60387963", "0.5994629", "0.59...
0.831017
0
Returns time difference from starting time
def TAxb(SWox, C7pn=None, Acvy='millis'): if C7pn is None: C7pn = qcWV.now() ME9B = C7pn - SWox if Acvy == 'millis': return ME9B.seconds * 1000 + int(ME9B.microseconds) / 1000 elif Acvy == 'micros': return ME9B.seconds * 1000 + float(ME9B.microseconds) / 1000
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vx2e(SWox):\n return round(ITS7() - SWox, 2)", "def mBMS(SWox, C7pn):\n TAxb = C7pn - SWox\n return fCoM(seconds=int(round(TAxb)))", "def uHUx(yKcO):\n Os4s = qcWV.now()\n WbTE = (Os4s - yKcO).microseconds / 1000\n return WbTE", "def mBMS(o2Va: int) -> float:\n MRqM = gewH.get_curren...
[ "0.8108136", "0.75064516", "0.74752355", "0.74312955", "0.7354597", "0.73346627", "0.7060144", "0.7047898", "0.70433176", "0.7029544", "0.6975039", "0.6962269", "0.69382143", "0.69247186", "0.6920252", "0.68807906", "0.686269", "0.6860179", "0.68554264", "0.6852525", "0.68067...
0.66099024
37
Return as a list of field choices.
def lHXZ(): return (('live', 'Use working directory'), ('latest', 'Use latest snapshot'), ('pinned', 'Pinned to snapshot'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pFce(Emd4):\n return [Z9rn[0:2] for Z9rn in Emd4.attr_choices]", "def O2eg(YKHO):\n raise NotImplementedError()", "def O2eg(YKHO):\n raise NotImplementedError()", "def mrPm(YKHO, QNO6, ufgm='description'):\n usx6 = YKHO.type(QNO6).values('id', ufgm)\n return [(Mkmy['id'], Mkmy[ufgm]) for M...
[ "0.80070734", "0.7434968", "0.7434968", "0.7353117", "0.7302724", "0.72494674", "0.71962416", "0.7108783", "0.69741213", "0.69617325", "0.6852431", "0.6775638", "0.6750487", "0.6722035", "0.6578648", "0.6571623", "0.6537159", "0.6513538", "0.64543384", "0.64526904", "0.645085...
0.0
-1
Get the scheduled deletion time of a temporary project.
def d6tY(YKHO) -> h8nf[qcWV.datetime]: if not YKHO.temporary: return None RA_F = oPx1.TEMPORARY_PROJECT_LIFESPANS.get(YKHO.account.name, oPx1.TEMPORARY_PROJECT_LIFESPANS.get('default')) return YKHO.created + RA_F
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NTou(YKHO) -> h8nf[qcWV.datetime]:\n ITS7 = YKHO.scheduled_deletion_time\n return ITS7 - oPx1.TEMPORARY_PROJECT_WARNING if ITS7 else None", "def Yq1m(YKHO) -> str:\n return qe4Y.get(YKHO, 'delete_time')", "def Yq1m(YKHO) -> str:\n return qe4Y.get(YKHO, 'delete_time')", "def F0B_(YKHO) -> str:...
[ "0.6921164", "0.6562803", "0.6562803", "0.6188812", "0.58171326", "0.5730795", "0.5701719", "0.5518333", "0.55177927", "0.5512329", "0.54670966", "0.5458026", "0.54461396", "0.5335375", "0.53240615", "0.5315584", "0.5306388", "0.5295981", "0.5270675", "0.5270596", "0.5227072"...
0.81216675
0
Get the theme for the project.
def vk7f(YKHO) -> str: return YKHO.theme or YKHO.account.theme
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNnE():\n if not oZTz():\n return None\n ErsK = nPYB()\n if not ErsK:\n return None\n try:\n return BTxr(name=ErsK.theme_dir_name, theme_dir_name=ErsK.theme_dir_name, themes_base_dir=L8Q6(ErsK.theme_dir_name), project_root=DuOF())\n except ValueError as error:\n bo34....
[ "0.77218676", "0.756868", "0.7343077", "0.711062", "0.70631874", "0.70348823", "0.68387085", "0.66256326", "0.65988183", "0.654876", "0.6471758", "0.6386882", "0.63486433", "0.63153225", "0.62846875", "0.6231964", "0.62230563", "0.6190626", "0.61657983", "0.61640877", "0.6141...
0.8288318
0
Get the location of one of the project's files relative to the root of the storage volume.
def _bsB(YKHO, nUeQ: str) -> str: return Hy7s.path.join(str(YKHO.id), nUeQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rci7(YKHO):\n XP5J = Hy7s.path.abspath(xAKo)\n KXdC = Hy7s.path.split(XP5J)\n return KXdC", "def pmON(YKHO):\n pmON = Hy7s.path.join(YKHO.base_dir, YKHO.store().replace(' ', '_'), YKHO.package_name())\n return Hy7s.path.abspath(pmON)", "def Cy6_(YKHO):\n return Hy7s.path.join(gCuF.PRIVATE...
[ "0.666451", "0.66000694", "0.658896", "0.6555157", "0.65166426", "0.647148", "0.6465352", "0.6453355", "0.6424935", "0.6400169", "0.63222474", "0.628216", "0.62486446", "0.6230657", "0.6214746", "0.62136924", "0.6198161", "0.6198161", "0.6198161", "0.6198161", "0.6173934", ...
0.58607525
79
Make the project create an owner. Makes sure each project has at least one owner.
def YHCZ(vC92, KAOR: Project, _EYN: bool, *qIxc, **B2fa): if vC92 is oPx1 and _EYN and KAOR.creator: IUwd.objects.create(project=KAOR, user=KAOR.creator, role=Afbt.OWNER.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a94m(YKHO):\n bD7m = gxEw('projectroles:api_role_create', kwargs={'project': YKHO.project.sodar_uuid})\n aqR5 = {'role': glb4, 'user': str(YKHO.assign_user.sodar_uuid)}\n geh0 = YKHO.request_knox(bD7m, method='POST', data=aqR5)\n YKHO.assertEqual(geh0.status_code, 400, msg=geh0.content)", "def ge...
[ "0.6795974", "0.67435247", "0.6457388", "0.6397213", "0.6334437", "0.61915594", "0.6109523", "0.6071861", "0.6055635", "0.59651107", "0.59185636", "0.59049666", "0.5854356", "0.5853638", "0.5830807", "0.5797529", "0.5782358", "0.57266897", "0.5696159", "0.56787217", "0.565595...
0.7869675
0
Returns an iterator of number of code points in each grapheme of the string.
def WY3C(vIwR): return iter((len(Oa1e) for Oa1e in p84y(vIwR)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO) -> bDy6[AzJI[int, str]]:\n u54L = ''\n for Z9rn in super().__iter__():\n if Z9rn in NMiw:\n yield (int(u54L), Z9rn)\n u54L = ''\n else:\n u54L += Z9rn", "def bd0X(vIwR):\n BWz1 = {}\n for hcXw in iter(vIwR):\n BWz1[hcXw] = 1 if not ...
[ "0.63102376", "0.6066801", "0.58364946", "0.5682218", "0.56752527", "0.5587007", "0.5516279", "0.5483019", "0.5476278", "0.5476278", "0.5432439", "0.54060763", "0.5371684", "0.5355845", "0.5348796", "0.5294735", "0.5293246", "0.5278698", "0.5262752", "0.5248184", "0.52327317"...
0.82796204
0
Start autonomous mode. This initialises the selected autonomous mode. Call this from your ``autonomousInit`` method.
def yKcO(YKHO) -> None: YKHO.timer = l8pB.Timer() YKHO.timer.start() YKHO._on_autonomous_enable()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nfrx(YKHO):\n YKHO.globalInit()\n YKHO.autonomous.start()", "def U386(YKHO) -> None:\n CacS = l8pB.SmartDashboard.getString('Auto Selector', None)\n if CacS is not None and CacS in YKHO.modes:\n bo34.info('Using autonomous mode set by LabVIEW dashboard')\n YKHO.active_mode = YKHO.mo...
[ "0.7841093", "0.71122485", "0.628487", "0.6095509", "0.60859686", "0.60364497", "0.60302883", "0.60259026", "0.59982705", "0.5997922", "0.59907854", "0.5944252", "0.5905381", "0.584049", "0.58149403", "0.5811002", "0.58014745", "0.57960796", "0.5778222", "0.57653964", "0.5742...
0.6558177
2
Derivative of the sigmoid function.
def hj5n(epBp): return 1.716 * (1 - oyIN.tanh(2 / 3 * epBp) ** 2) * 2 / 3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZml(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n return WKvO * (1.0 - WKvO)", "def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n ox...
[ "0.847575", "0.8451228", "0.83970946", "0.8348836", "0.8348836", "0.8298695", "0.8054636", "0.7753853", "0.77075475", "0.7498936", "0.74652743", "0.74541104", "0.74023646", "0.73854893", "0.7383694", "0.7347074", "0.73223907", "0.73099685", "0.71926326", "0.71140707", "0.7092...
0.0
-1
Create a image folder dataset in a temporary directory for use in tests.
def lJ71(DPva, QePW): tk5Y = DPva.mktemp('data') OQe7 = QePW.param ckRy = [tk5Y / GkAb(f'{or8S}.png') for or8S in range(OQe7)] DbyF = [(or8S % 10 + 1, (10 - or8S) % 10 + 1) for or8S in range(OQe7)] for pmON, tpio in zip(ckRy, DbyF): LNo8 = hnIv.new(mode='RGB', size=tpio) if not pmON....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HPGU(rrl5, eH4Y):\n rrl5.joinpath('images').mkdir(parents=True)\n eH4Y.joinpath('images').mkdir(parents=True)", "def p53l(dZk2: str) -> None:\n mC1D = GkAb(dZk2)\n eH4Y = mC1D / 'test'\n rrl5 = mC1D / 'train'\n if not mC1D.is_dir():\n mC1D.mkdir()\n if not eH4Y.is_dir():\n ...
[ "0.71932167", "0.71284103", "0.69951254", "0.69644856", "0.6944171", "0.6929569", "0.6812385", "0.6766725", "0.673779", "0.6720452", "0.67042", "0.6691994", "0.6689989", "0.65835524", "0.65601933", "0.65417504", "0.65079594", "0.64762", "0.6473956", "0.6467302", "0.64517516",...
0.7515927
0
Read audio chunks from queue and yield.
def Ipep() -> laHg.Iterable[bytes]: VIPT = u_NF.get() while VIPT: yield VIPT VIPT = u_NF.get()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nf95():\n LaVg = None\n sHLC = TyFG // tJZV\n with open(rEgh) as tWnD:\n while True:\n if LaVg is None:\n LaVg = tWnD.read(TyFG)\n else:\n LaVg = LaVg[sHLC:] + tWnD.read(sHLC)\n yield LaVg", "async def async_readchunks(YKHO, zNig:...
[ "0.7123791", "0.68189037", "0.6682187", "0.6352251", "0.6322491", "0.62974507", "0.6286665", "0.62764674", "0.62634826", "0.62544084", "0.6230898", "0.61809504", "0.61534625", "0.60943", "0.60639846", "0.6044643", "0.6019628", "0.6015428", "0.60127366", "0.5972718", "0.595726...
0.7560682
0
Set the value of the CategoryParent input for this Choreo. ((optional, string) Indicates the ID of the highestlevel category to return. Multiple CategoryParent IDs can be specified in a commaseparated list.)
def K0Ll(YKHO, BWXx): super(MtsG, YKHO)._set_input('CategoryParent', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qyX_(YKHO, mWFP, VMw8, QuYu, **B2fa):\n B2fa['parent_category_id'] = QuYu\n YKHO.client._put(f'/categories/{VMw8}.json', **B2fa)", "def H7rZ(YKHO, H7rZ: int):\n if H7rZ is None:\n raise ValueError('Invalid value for `parent_id`, must not be `None`')\n YKHO._parent_id = H7rZ", "def tJu_(Y...
[ "0.6129967", "0.5472301", "0.5323792", "0.52963334", "0.5156003", "0.5122369", "0.51155204", "0.51121783", "0.51076823", "0.51076823", "0.51076823", "0.51076823", "0.5062186", "0.50444716", "0.49758205", "0.4972529", "0.49427202", "0.49028528", "0.48824716", "0.4873548", "0.4...
0.73892105
0
Set the value of the CategorySiteID input for this Choreo. ((optional, string) The ID for the site for which to retrieve the category hierarchy. Use the numeric site code (e.g., 0 for US, 77 for eBay Germany, etc).)
def aqUC(YKHO, BWXx): super(MtsG, YKHO)._set_input('CategorySiteID', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b4S2(YKHO, BWXx):\n super(MtsG, YKHO)._set_input('SiteID', BWXx)", "def COo8(YKHO, COo8):\n YKHO._site_id = COo8", "def COo8(YKHO, COo8):\n YKHO._site_id = COo8", "def L1CR(YKHO, L1CR):\n YKHO._categories_id = L1CR", "def VMw8(YKHO, VMw8):\n YKHO._category_id = VMw8", "def VMw8(YKHO, V...
[ "0.6707115", "0.5398025", "0.5398025", "0.5373852", "0.5183332", "0.49956957", "0.46219173", "0.45263055", "0.4510416", "0.44572973", "0.44089535", "0.43879732", "0.4354011", "0.41838205", "0.40762675", "0.40462708", "0.4037234", "0.39882267", "0.39651904", "0.39525023", "0.3...
0.743803
0
Set the value of the LevelLimit input for this Choreo. ((optional, string) Indicates the maximum depth of the category hierarchy to retrieve, where the toplevel categories (metacategories) are at level 1. Default is 0.)
def Sh6A(YKHO, BWXx): super(MtsG, YKHO)._set_input('LevelLimit', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nOFO(YKHO, *qIxc):\n return dndU.BRepAlgo_NormalProjection_SetLimit(YKHO, *qIxc)", "def AtPS(YKHO, AtPS):\n YKHO._categories_level = AtPS", "def h6ei(YKHO, qoqK):\n YKHO.limit = qoqK\n YKHO._prune()", "def aCyh(YKHO, qoqK):\n return YKHO.client.put(YKHO.name + '/_revs_limit', None, qoqK).g...
[ "0.59802634", "0.5946763", "0.5711779", "0.5509778", "0.5490343", "0.54478884", "0.54478884", "0.54478884", "0.5437157", "0.54352576", "0.5423509", "0.5397781", "0.5367426", "0.5363926", "0.53585196", "0.53347886", "0.5326937", "0.53143334", "0.5291554", "0.52813643", "0.5179...
0.78116244
0
Set the value of the SandboxMode input for this Choreo. ((conditional, boolean) Indicates that the request should be made to the sandbox endpoint instead of the production endpoint. Set to 1 to enable sandbox mode.)
def NJuq(YKHO, BWXx): super(MtsG, YKHO)._set_input('SandboxMode', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TtgT(YKHO, TtgT):\n YKHO._sandbox = TtgT", "def pQ1j(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'is_sandbox_environment')", "def Lvyc() -> T5Jd:\n global _sandbox_name\n if EFoL is None:\n return Ozvx()\n else:\n return sTfK(EFoL)", "async def set_production_mod...
[ "0.5614144", "0.5567158", "0.51500666", "0.51233065", "0.51149535", "0.50982213", "0.49350753", "0.48719332", "0.48414156", "0.48161337", "0.46198162", "0.44927067", "0.44751006", "0.44662586", "0.44561806", "0.44053355", "0.43435562", "0.4293769", "0.4281894", "0.42796412", ...
0.67555255
0
Set the value of the SiteID input for this Choreo. ((optional, string) The eBay site ID that you want to access. Defaults to 0 indicating the US site.)
def b4S2(YKHO, BWXx): super(MtsG, YKHO)._set_input('SiteID', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def COo8(YKHO, COo8):\n YKHO._site_id = COo8", "def COo8(YKHO, COo8):\n YKHO._site_id = COo8", "def ERL_(YKHO, ERL_):\n YKHO._web_site_id = ERL_", "def aqUC(YKHO, BWXx):\n super(MtsG, YKHO)._set_input('CategorySiteID', BWXx)", "def DGp7(YKHO, COo8, nPrm, mLXZ=None, clva='v4.7'):\n if mLXZ is...
[ "0.7500939", "0.7500939", "0.6129336", "0.6034459", "0.5938549", "0.5903619", "0.5803138", "0.54688704", "0.5419744", "0.536414", "0.5242638", "0.4969907", "0.49572378", "0.49247172", "0.4897453", "0.4897453", "0.4870887", "0.48449123", "0.4842923", "0.484094", "0.4771758", ...
0.6480584
2
Set the value of the ViewAllNodes input for this Choreo. ((optional, boolean) A flag that controls whether all eBay categories are returned, or only leaf categories are returned. To retrieve leaf categories, set this parameter to 'false'.)
def _sh6(YKHO, BWXx): super(MtsG, YKHO)._set_input('ViewAllNodes', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qmh8(YKHO):\n return YKHO._get_all_nodes()", "def Pnbs(YKHO, Ziit):\n YKHO._Impl._nodes['all_nodes'] = Y3tb.Series(Ziit)", "def JqV7(YKHO, _63S=None):\n JZXy = YKHO._source(_63S)\n return YKHO._list(JZXy, 'all')", "def IBHN(YKHO):\n YKHO.active_nodes = [False for YRbF in range(YKHO.nodes)]...
[ "0.5391109", "0.5390056", "0.52510315", "0.50688076", "0.50596285", "0.49692878", "0.49534097", "0.4930699", "0.48903552", "0.4888203", "0.48538244", "0.48459598", "0.47947457", "0.47933027", "0.47827104", "0.4774255", "0.47677267", "0.47593287", "0.47422218", "0.4693059", "0...
0.7972372
0
The value of the resource.
def BWXx(YKHO): if YKHO.getter is None: raise WIo1('Resource not readable.') if callable(YKHO.getter): Aofo = YKHO.getter() elif YKHO.obj is not None: Aofo = getattr(YKHO.obj, YKHO.getter) else: raise WIo1('Cannot read from resource.') YKHO.verify_dimensions(Aofo) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO):\n return YKHO.get_data('value')", "def BWXx(YKHO) -> str:\n return qe4Y.get(YKHO, 'value')", "def BWXx(YKHO) -> str:\n return qe4Y.get(YKHO, 'value')", "def BWXx(YKHO) -> str:\n return qe4Y.get(YKHO, 'value')", "def BWXx(YKHO) -> str:\n return qe4Y.get(YKHO, 'value')", "def...
[ "0.74665505", "0.7334829", "0.7334829", "0.7334829", "0.7334829", "0.7334829", "0.7334829", "0.7334829", "0.7334829", "0.7334829", "0.7334829", "0.7334829", "0.7334829", "0.7334829", "0.7334829", "0.732872", "0.72743225", "0.722479", "0.7208811", "0.7181056", "0.7146232", "...
0.0
-1
Produce a Resource which is a wrapper around this Resource.
def b6ry(YKHO, mWFP, KEW7=None, j5GW=None): Aofo = jth9(YKHO) Aofo.wrappers = YKHO.wrappers + [(mWFP, KEW7, j5GW)] return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Suzb(YKHO, Eorv):\n return HHr8(YKHO, Eorv)", "def zZ2r(YKHO, _Rt6):\n if _Rt6:\n return ISu2(description='0', file=KFaj.models.file.File(absolute=True, absolute_file=KFaj.models.file.File(absolute=True, absolute_path='0', canonical_file=KFaj.models.file.File(absolute=True, absolute_path='0', ca...
[ "0.7497035", "0.68926394", "0.67446154", "0.66210735", "0.6620925", "0.64650744", "0.6292766", "0.6151775", "0.6151398", "0.6121766", "0.60489506", "0.60388047", "0.6012709", "0.5981098", "0.59604263", "0.590962", "0.5886807", "0.5848324", "0.58403087", "0.58258355", "0.58189...
0.0
-1
Get the state of a previously configured CAN bus.
def Xdyq(s_GD, Pjr8): geh0 = {'r': 'can_state', 'state': None} ldgd = sGRJ.get(Pjr8, None) if ldgd is not None: geh0['state'] = {AyEG.CAN.STOPPED: 'stopped', AyEG.CAN.ERROR_ACTIVE: 'error_active', AyEG.CAN.ERROR_WARNING: 'error_warning', AyEG.CAN.ERROR_PASSIVE: 'error_passive', AyEG.CAN.BUS_OFF: 'bu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aiXz():\n try:\n uNYh('Connecting to bus...')\n e5Tz = g4Za.SMBus(tmQs)\n DghZ = e5Tz.read_byte(XCIG) & 15\n return int(DghZ)\n except:\n print('Error: There was a problem reading from the device')\n raise", "def secb(YKHO):\n return YKHO._bus", "def ja6o(...
[ "0.6698612", "0.6196475", "0.6130076", "0.61101615", "0.6062818", "0.6031746", "0.6006805", "0.59833187", "0.59467405", "0.5912973", "0.5870844", "0.5869142", "0.58660966", "0.5829685", "0.5827593", "0.5827593", "0.5827593", "0.5827593", "0.5827593", "0.5827593", "0.5827593",...
0.7267014
0
Converts array whose rows represent diagonal entries of a matrix into the matrix itself. See scipy.linalg.solve_banded
def IGG9(_PXH, A2lD): vC9B, P6bq = _PXH tpio = A2lD.shape[1] SppC = oyIN.zeros((tpio, tpio)) for YRbF in range(vC9B + P6bq + 1): oyIN.fill_diagonal(SppC[max(0, YRbF - P6bq):, max(0, P6bq - YRbF):], A2lD[YRbF, max(0, P6bq - YRbF):]) return SppC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pUyh(FboT):\n FboT = FboT.toarray()\n HN6s = FboT.shape[0]\n o2bK = oyIN.min([oyIN.count_nonzero(rdlD) for rdlD in FboT])\n bBVO = oyIN.zeros((o2bK, HN6s))\n for YRbF in oyIN.arange(1, o2bK):\n bBVO[YRbF, :] = oyIN.concatenate((oyIN.diag(FboT, k=YRbF), oyIN.zeros(YRbF)), axis=None)\n b...
[ "0.69575876", "0.64048153", "0.6234123", "0.6205045", "0.61761206", "0.6006811", "0.59896874", "0.5946012", "0.5924541", "0.589005", "0.58739597", "0.58455795", "0.58453", "0.5809746", "0.58006567", "0.5790228", "0.57842326", "0.57267654", "0.5726118", "0.5716055", "0.5690097...
0.5298268
86
Set defaults to calculation parameters
def yK9x(YKHO, SGPK): fyex = SGPK.get_dict() from aiida_crystal_dft.io.f9 import Fort9 with YKHO.inputs.wavefunction.open(mode='rb') as eHNT: gIsw = eHNT.name gcpQ = Fort9(gIsw) if 'band' in fyex: if 'bands' not in fyex['band']: YKHO.logger.info('Proceeding with automatic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QmIE(Emd4) -> lE6K:\n NArs = super()._default_parameters()\n NArs.main_axes = None\n NArs.i_means = None\n NArs.q_means = None\n NArs.scales = None\n return NArs", "def kP1P(YKHO):\n super().set_default_parameters()", "def SY_X(YKHO):\n print('------------------')\n print('Settin...
[ "0.6943066", "0.6919235", "0.6629486", "0.6605372", "0.65865785", "0.65397674", "0.6539674", "0.6494178", "0.64272714", "0.63984066", "0.63891405", "0.63767976", "0.6373579", "0.6346972", "0.63348526", "0.63092655", "0.6272867", "0.6268823", "0.62534904", "0.62277675", "0.622...
0.5884307
57
Build an actor (policy) network that maps states > actions.
def KVH6(YKHO, QTBn): WKvO = YKHO.fc(QTBn) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j1Fc(wspz, HQGy, NArs, h7Vl):\n NtOa = h7Vl + '/'\n with ZylS.variable_scope(h7Vl):\n OCat = ZylS.layers.dense(wspz, units=NArs.actor_hidden_units[0], activation=None, kernel_initializer=NArs.initializer)\n if NArs.use_batch_norm:\n OCat = ZylS.layers.layer_norm(OCat, center=True...
[ "0.69361234", "0.6364334", "0.6270192", "0.6208838", "0.62005234", "0.6187673", "0.6147678", "0.61465186", "0.61283225", "0.6019157", "0.60020804", "0.5976981", "0.59597296", "0.59523076", "0.59488183", "0.5928019", "0.5916519", "0.58979034", "0.58936965", "0.5891595", "0.588...
0.0
-1
Add a new experience to memory.
def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins): tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins) YKHO.memory.append(tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wOcu(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins, YKHO.max_priority)\n YKHO.memory.append(tTpl)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n GsKL = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, GsKL):\n YK...
[ "0.79568833", "0.79042006", "0.78795445", "0.7577913", "0.7570969", "0.74478436", "0.7361023", "0.72697705", "0.721816", "0.71451885", "0.7106998", "0.7101183", "0.69837016", "0.68905056", "0.68842727", "0.6755663", "0.6712557", "0.6677425", "0.64961654", "0.6488678", "0.6486...
0.71984994
15
Return the current size of internal memory.
def szAg(YKHO): return len(YKHO.memory)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R8e4(YKHO) -> int:\n return len(YKHO.mem)", "def R8e4(YKHO):\n return YKHO.bf.memory()", "def ZGo4(YKHO):\n return YKHO.xlist('get-memsize')[1][0] * 1024", "def zNig(YKHO):\n zNig = 0\n zNig += YKHO.data.size * HwRy.getsizeof(YKHO.data)\n return zNig / 1024.0 / 1024.0 / 1024.0", "def ...
[ "0.8573486", "0.8216719", "0.8200263", "0.80869377", "0.80215144", "0.7890612", "0.78215307", "0.7801178", "0.77899903", "0.77588975", "0.77554387", "0.77554387", "0.7755218", "0.775394", "0.773285", "0.77322316", "0.7719518", "0.77139354", "0.7708652", "0.77072173", "0.76973...
0.75126064
55
Property returning all the cells accumulated on this partial row.
def JnVq(YKHO): return jth9.deepcopy(YKHO._cells)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eQwg(YKHO):\n return YKHO._inv.get('cells', len(YKHO))", "def Aio1(YKHO):\n return YKHO._get('cells')", "def JnVq(YKHO):\n return YKHO.container['cells']", "def JnVq(YKHO):\n return eNCK.from_iterable(YKHO.cols)", "def JnVq(YKHO):\n return HpW8(YKHO)", "def JaGK(YKHO):\n raise NotIm...
[ "0.7329604", "0.72963184", "0.7285541", "0.71675426", "0.70034677", "0.6740002", "0.6697525", "0.6685098", "0.6658701", "0.66584843", "0.653525", "0.6513235", "0.6502038", "0.6449473", "0.6402963", "0.63210136", "0.62875944", "0.6282429", "0.6233849", "0.61757165", "0.6172168...
0.69514596
5
Getter for the current (partial) row's key.
def q3j1(YKHO): return YKHO._row_key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IQmG(YKHO) -> AzJI[int, int]:\n return (YKHO.col, YKHO.row)", "def mexE(YKHO) -> int:\n return YKHO.__key", "def mexE(YKHO) -> int:\n return YKHO.key", "def mexE(YKHO):\n return YKHO.key", "def mexE(YKHO):\n return YKHO.key", "def H5ew(YKHO):\n return YKHO.__key", "def H5ew(YKHO):...
[ "0.72316724", "0.72159064", "0.7207303", "0.7157399", "0.7157399", "0.71138483", "0.7061789", "0.7047705", "0.6999932", "0.6988818", "0.6988818", "0.6988818", "0.6988818", "0.6960423", "0.6876054", "0.683839", "0.68287086", "0.6781018", "0.6758112", "0.67410135", "0.6730147",...
0.84983855
0
Return a list of OpenVSwitch node ids in this Topology.
def x2Fh(YKHO): qnZQ = [] for Lnes in YKHO.nodes: if isinstance(YKHO.nodes[Lnes], m45N): qnZQ.append(Lnes) return qnZQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r3r7(YKHO):\n return [YKHO.node_id]", "def a0aF(YKHO):\n return YKHO.node_ids", "def RLw6(YKHO):\n return [YRbF for YRbF in range(0, YKHO.n_inputs + YKHO.n_hidden + YKHO.n_outputs)]", "def zyMx(YKHO, Ziit=None):\n if not Ziit:\n Ziit = YKHO.nodes\n if isinstance(Ziit[0], iL8K):\n ...
[ "0.7999517", "0.7927706", "0.7313502", "0.7179201", "0.69924164", "0.69775486", "0.69099134", "0.6908216", "0.68880624", "0.6844725", "0.68219465", "0.68216735", "0.6820734", "0.67531025", "0.6720736", "0.66904956", "0.6629367", "0.6593734", "0.6553961", "0.6481646", "0.64808...
0.78524137
2
Add a qos to the OVSNode object. Updates qos if it already exists. Does not add a qos to a physical switch. The qos input should just be the json sent to the controller.
def h98e(YKHO, qaYg): MGIf = qaYg['ovsdb:qos-entries'][0]['qos-id'] YKHO.qos_dict[MGIf] = qaYg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h98e(mLXZ, hzrU, xA2L):\n na1r.debug('add_qos() called')\n cuiw = NCls.get_session()\n try:\n qaYg = cuiw.query(h1BL.QoS).filter_by(tenant_id=mLXZ).filter_by(qos_name=hzrU).one()\n raise ezmI.QosNameAlreadyExists(qos_name=hzrU, tenant_id=mLXZ)\n except BQDi.NoResultFound:\n qaY...
[ "0.675133", "0.6740849", "0.6509288", "0.63825524", "0.6261487", "0.623508", "0.61480707", "0.6146155", "0.6125985", "0.60934", "0.5971305", "0.5832702", "0.5652961", "0.56214666", "0.55383885", "0.55369544", "0.55208385", "0.5508991", "0.5416964", "0.5408776", "0.52939504", ...
0.8248631
0
Create an `iframe` element in the current browsing context and insert it into the document. Return an element reference.
def fWEK(cuiw): def fWEK(): SStx = "\n var frame = document.createElement('iframe');\n document.body.appendChild(frame);\n return frame;\n " geh0 = cuiw.execute_script(SStx) return fWEK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Yvn(zZcM, TVTK=400, H2v2=300):\n return NPbC.iframe(_src=zZcM, _width=TVTK, _height=H2v2)", "def NeiM(YKHO, faJo):\n D9h5 = faJo.replace('\"', \"'\")\n return '<iframe id=\"{div_id}\", srcdoc=\"{srcdoc}\" style=\"width: {width}; height: {height};\"></iframe>'.format(div_id=YKHO.div_id, srcdoc=D9h5,...
[ "0.6174784", "0.55865693", "0.54760414", "0.5332886", "0.51973313", "0.5196938", "0.51477903", "0.48718172", "0.48631668", "0.48425317", "0.48268217", "0.47691065", "0.47580108", "0.47167465", "0.47058505", "0.46702343", "0.45552185", "0.45123303", "0.4505555", "0.44861558", ...
0.6257008
0
Open new window and return the window handle.
def raT0(cuiw): def raT0(): tGRm = cuiw.handles mWFP = cuiw.execute_script('window.open()') assert len(cuiw.handles) == len(tGRm) + 1 GdVE = list(set(cuiw.handles) - set(tGRm)) return GdVE.pop() return raT0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZHEQ(tvqc):\n bD7m = tvqc.GetURL()\n HywK.open(bD7m)", "def JH_p(YKHO):\n YKHO._window = ao30(YKHO, MvBY.RESTAL)", "def aEu5(YKHO, PKko):\n crl4 = YKHO.driver.current_window_handle\n U6D_ = YKHO.get_element(PKko)\n U6D_.click()\n HFG9 = YKHO.driver.window_handles\n for nVrR in HFG9:...
[ "0.69135225", "0.6894578", "0.67950994", "0.67186034", "0.66880804", "0.6459025", "0.6384433", "0.6371975", "0.63716286", "0.63049585", "0.6247003", "0.61046994", "0.608595", "0.60641366", "0.6063295", "0.60611963", "0.60415345", "0.6027003", "0.5991303", "0.59858763", "0.595...
0.6855852
2
Freezer is based on top of the pkg module. Return True since the `pkg` module should always exist. This avoids the overhead of loading all modules.
def HtF2(): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VkVL(hxGQ: str) -> bool:\n try:\n return VtVP(hxGQ) is not None\n except ModuleNotFoundError:\n return False", "def mdVA(Emd4, pmON):\n return vtfo(gzes(pmON, '__init__.py'))", "def bYKW(YKHO, jeLr):\n return hasattr(YKHO.__get_module(jeLr), '__path__')", "def TJdx(pmON):\n t...
[ "0.72167784", "0.7054037", "0.67946243", "0.67609817", "0.67345065", "0.6663047", "0.66244084", "0.66183674", "0.6577075", "0.6577075", "0.6500366", "0.64847684", "0.6473244", "0.64359987", "0.64204097", "0.64127177", "0.641208", "0.6371272", "0.63555104", "0.6305438", "0.626...
0.0
-1
Return True if there is already a frozen state. A frozen state is merely a list of packages (including the version) in a specific time. This information can be used to compare with the current list of packages, and revert the installation of some extra packages that are in the system. name Name of the frozen state. Opt...
def jGRS(mWFP=None): mWFP = 'freezer' if not mWFP else mWFP return all((Hy7s.path.isfile(YRbF) for YRbF in fHZh(mWFP)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aQFj():\n return hasattr(HwRy, 'frozen')", "def nCRM():\n return hasattr(HwRy, 'frozen') and HwRy.frozen", "def nCRM(YKHO, l87X):\n return YKHO._symtab[l87X].is_frozen()", "def nL47():\n return hasattr(HwRy, 'frozen')", "def FiJ9(mWFP=None, DHvX=False, **B2fa):\n hAAh = rsLv()\n try:\...
[ "0.68721086", "0.6851596", "0.68231916", "0.6491958", "0.63796014", "0.6135377", "0.6115065", "0.5805816", "0.5657362", "0.5609856", "0.5582771", "0.55413973", "0.54397535", "0.53899515", "0.5386102", "0.53778887", "0.53278416", "0.53246194", "0.53165835", "0.52400833", "0.52...
0.5422256
13
Return the list of frozen states.
def bCES(): U5bT = [] hAAh = rsLv() if not Hy7s.path.isdir(hAAh): return U5bT for QTBn in Hy7s.listdir(hAAh): if QTBn.endswith(('-pkgs.yml', '-reps.yml')): U5bT.append(QTBn[:-9]) return sorted(set(U5bT))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OMAa(YKHO) -> bdIy[Mj14]:\n pass", "def qYvF(YKHO):\n return YKHO.states", "def By99(YKHO):\n return [LihS.getstate() for LihS in YKHO]", "def EcOR(YKHO):\n return list(YKHO.iter_initial_states())", "def K43E(YKHO):\n return YKHO._states", "def fqm3(YKHO):\n return YKHO._states", ...
[ "0.69866335", "0.6971545", "0.6748766", "0.66988707", "0.66819704", "0.6678218", "0.66705126", "0.66479045", "0.6599758", "0.6587541", "0.6573471", "0.6547036", "0.65039486", "0.6479427", "0.6453777", "0.63992965", "0.63978416", "0.6305674", "0.626267", "0.6252373", "0.623590...
0.63569236
17
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): 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].v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)", "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\...
[ "0.8330957", "0.8284237", "0.82376367", "0.8229314", "0.8219836", "0.81859726", "0.8184298", "0.8174704", "0.8170969", "0.8169349", "0.81659627", "0.81640005", "0.8163328", "0.8161707", "0.8161707", "0.8161707", "0.8161707", "0.8161707", "0.8161707", "0.8161707", "0.8161707",...
0.78468007
98
Returns value for in configuration file; if is missing, an error message is logged when there is no associated value, otherwise is returned for a missing entry
def BWXx(YKHO, H5ew: String, lzbi: Object=YaWp) -> xBeT: l7bS.trace('>>: key = %s, defaultValue = %r', H5ew, lzbi) q7VK = lzbi == YaWp Aofo = None if H5ew in YKHO._keyToValueMap: Aofo = YKHO._keyToValueMap[H5ew] if ArHY(Aofo): Aofo = Aofo.replace('\\"', '"') elif q7VK: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R4f_(GPtr, XLMv, ZfUD):\n BWXx = GPtr.get(XLMv, ZfUD)\n if BWXx == 'None':\n return None\n return BWXx", "def x0PB(mWFP):\n\n def NMoC():\n try:\n return GPtr.get('yourls', mWFP)\n except (qMRL, EtCm):\n return None\n return NMoC", "def tgzD(ZfUD: s...
[ "0.67917", "0.6635625", "0.6563727", "0.64952976", "0.64884275", "0.64454025", "0.63905793", "0.6375485", "0.629574", "0.62699145", "0.6211306", "0.62047195", "0.61872745", "0.617998", "0.6173474", "0.6172952", "0.6149519", "0.6134496", "0.6125716", "0.6074267", "0.6069744", ...
0.0
-1
Returns an instantiated list of each rule that has been registered.
def Ddaj(Emd4) -> list: return [i_PC() for i_PC in Emd4._rules_factories]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ddaj(YKHO):\n c_NS = []\n for ZfUD in YKHO.rule:\n c_NS.append(ZfUD)\n return c_NS", "def Ddaj(YKHO):\n c_NS = []\n for ZfUD in YKHO.name:\n c_NS.append(ZfUD)\n return c_NS", "def uP32(YKHO):\n return YKHO.model.getListOfRules()", "def uP32(YKHO, *qIxc):\n return _Vf...
[ "0.81854767", "0.8028653", "0.7681446", "0.747593", "0.7188627", "0.7024562", "0.6993731", "0.69882214", "0.67589486", "0.6748225", "0.67445904", "0.67356396", "0.6722869", "0.6689858", "0.6678105", "0.6660337", "0.6650291", "0.65893424", "0.6547568", "0.6512674", "0.6477749"...
0.81147885
1
Applies the Softmax function to an ndimensional input Tensor rescaling them
def N93T(ezWE: np.ndarray, jDK_: int=-1): Z9rn = ezWE.max(axis=jDK_, keepdims=True) KCHu = ezWE - Z9rn oR2Q = oyIN.exp(KCHu) UUZ1 = oR2Q.sum(axis=jDK_, keepdims=True) BFeB = oR2Q / UUZ1 return BFeB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(input, tpio, LpaZ=False):\n return o8DQ.apply('Softmax', input.device, [input], outputs=[input if LpaZ else None], axis=tpio)", "def JtYu(WKvO):\n qC1Y = nMvt.ndim(WKvO)\n if qC1Y == 2:\n return nMvt.softmax(WKvO)\n elif qC1Y == 3:\n tTpl = nMvt.exp(WKvO - nMvt.max(WKvO, axis=-...
[ "0.7957886", "0.7658958", "0.7509899", "0.7509899", "0.7487856", "0.7486355", "0.744741", "0.7405989", "0.7357403", "0.73492765", "0.7309486", "0.7249288", "0.7239053", "0.7204867", "0.7204867", "0.7201723", "0.7198571", "0.7180414", "0.7176051", "0.7175737", "0.71715707", ...
0.0
-1
Draw samples from a standard Normal distribution (mean=0, stdev=1).
def pffD(t3eI, zNig=None, ztRo=None, wqL3=None, yDqo=None): if yDqo is None: yDqo = oyIN.random.RandomState().standard_normal(size=(0,)).dtype zNig = t3eI._handle_size(zNig) yokr = MYNs(1, t3eI.to_numpy())[0] khtY = Fj3P(size=zNig, seed=yokr, gpu=wqL3, dtype=yDqo) return khtY(chunk_size=ztRo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xEcM(YKHO):\n B9EC, NXpY = YKHO.get_means_and_scales()\n return oyIN.random.normal(B9EC, NXpY, size=[YKHO.sims, B9EC.shape[0]]).T", "def mhAC(JBMS, M1Jx):\n return tuKI.gauss(JBMS, M1Jx)", "def ts7d(YKHO):\n KCHu = oyIN.random.normal(-0.42, 0.55, 5000)\n QrM1.hist(KCHu, 30, density=False)\n ...
[ "0.75756955", "0.7359071", "0.72345424", "0.7150394", "0.71197146", "0.7093101", "0.69451076", "0.6877788", "0.6869891", "0.6642873", "0.66425455", "0.6602457", "0.6599727", "0.6596702", "0.6525589", "0.64931434", "0.64451784", "0.64451784", "0.64451784", "0.64451784", "0.644...
0.58724236
59
A small utility function that check if the provided string is either None, '', or just a string containing only spaces
def FBfn(wEf2): return wEf2 in [None, ''] or wEf2.isspace()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(vIwR):\n return vIwR == None or ZbWC.sub('\\\\s+', '', vIwR) == ''", "def uDkn(RvVu):\n if RvVu and RvVu.strip():\n return False\n return True", "def EoUd(wEf2):\n if wEf2 is None:\n return True\n if isinstance(wEf2, jUrF):\n wEf2 = wEf2.strip()\n if not wEf2:\n ...
[ "0.8237053", "0.8124945", "0.8037569", "0.79108196", "0.7764869", "0.7685698", "0.75816345", "0.7575924", "0.7477997", "0.74721014", "0.7454891", "0.74143285", "0.7358262", "0.7233534", "0.7226879", "0.7201261", "0.71897626", "0.7131125", "0.70505905", "0.69395953", "0.693698...
0.77871525
4
Add one point to the map
def JLpQ(map, WKvO, LVAh, zNig, UXqs, _5yy=gCuF.MARKER, qfpW=gCuF.MARKER_COLOR): KCHu = v07C(zNig) lINC.map.Marker(location=[LVAh, WKvO], popup=UXqs, icon=fCjS(icon_anchor=(0, 0), html='<i class="fa ' + _5yy + ' ' + KCHu + '" style="color:' + qfpW + '" aria-hidden="true"></i>')).add_to(map)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LZd_(YKHO, AU8u):\n YKHO.points.append(AU8u)", "def H2v5(YKHO, AU8u):\n YKHO.points.append(AU8u)", "def JLpQ(YKHO, Xf84):\n YKHO.points.append(Xf84)", "def JLpQ(YKHO, WKvO: int, LVAh: int):\n YKHO.state[WKvO, LVAh] = 1", "def JLpQ(YKHO, WKvO: int, LVAh: int):\n YKHO.state[WKvO, LVAh] = 1...
[ "0.74777544", "0.7411591", "0.7302735", "0.717282", "0.717282", "0.717282", "0.7149496", "0.7075055", "0.7043802", "0.70243937", "0.70046866", "0.70044357", "0.695466", "0.68703127", "0.67992646", "0.67937094", "0.67550814", "0.6747055", "0.67115504", "0.6681633", "0.66295254...
0.62047684
33
Test getting a nonexisting user from the database.
def ah_Z(yIsn: MockStore): CBIr: mv1M = yIsn.get_user(email='this_is_a_made_up_email@fake_example.com') assert CBIr is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _IkV(YKHO):\n print('(' + YKHO.test_get_user_non_exist_id.__name__ + ')', YKHO.test_get_user_non_exist_id.__doc__)\n YKHO.assertIsNone(YKHO.connection.get_user(v2RK))", "def nznz(YKHO):\n CBIr = JWrR.get(username=u'noexist')\n YKHO.assertEqual(CBIr, None, 'Should not find a non-existant user: ' +...
[ "0.856584", "0.8538134", "0.8256169", "0.80339926", "0.7959935", "0.7942771", "0.7879475", "0.78456324", "0.77836406", "0.77539635", "0.77476394", "0.77425784", "0.7734177", "0.7665938", "0.7625372", "0.7607034", "0.7594667", "0.7572818", "0.7503314", "0.7482438", "0.7456589"...
0.8029911
4
Test getting a user with username and email.
def F0aT(yIsn: MockStore, cHyp: str, NtEF: str): DW23: x1iM[mv1M] = yIsn.get_users(name=NtEF, email=cHyp) assert DW23[0].email == cHyp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KIov(YKHO):\n pass", "def K9hf(yIsn: MockStore, cHyp: str):\n CBIr: mv1M = yIsn.get_user(email=cHyp)\n assert CBIr.email == cHyp", "def Xyhp(YKHO):\n pass", "def Q3CH(YKHO):\n YKHO.client.credentials(HTTP_AUTHORIZATION='Token ' + YKHO.get_token())\n geh0 = YKHO.client.get(gxEw('account:...
[ "0.81518275", "0.79463357", "0.7895598", "0.7859849", "0.7718898", "0.77024853", "0.7650548", "0.76115036", "0.76060903", "0.7491955", "0.748591", "0.74647605", "0.7454479", "0.74482834", "0.74220383", "0.7405741", "0.73980224", "0.7391085", "0.73631626", "0.73486465", "0.734...
0.7497986
9
Generates DataLoader instances for training and validation data
def wIX3(YKHO, EPL3: TensorDataset, dxsx: TensorDataset): return (pVAc(EPL3, batch_size=YKHO.batch_size, shuffle=True), pVAc(dxsx, batch_size=YKHO.batch_size * 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NIm3(GPtr):\n EPL3, IrSd = (iFos(2, 5), iFos(2, 5))\n Pa1c = pVAc(EPL3, batch_size=GPtr['batch_size'])\n o7Up = pVAc(IrSd, batch_size=GPtr['batch_size'])\n return (Pa1c, o7Up)", "def BMpb():\n U538 = kHEQ(dAVq, transform=dOxh, face=True)\n xOBn = kHEQ(dAVq, transform=dOxh, face=False)\n ...
[ "0.8210852", "0.8109314", "0.8044301", "0.7968612", "0.7917862", "0.7887867", "0.78700924", "0.77869165", "0.7760952", "0.77082145", "0.76851207", "0.7662429", "0.7631286", "0.76265687", "0.7601167", "0.75591475", "0.75547343", "0.750435", "0.7474078", "0.74594635", "0.742464...
0.75457203
17