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
PCIE device identifier of the GPU.
def eRSr(YKHO, eRSr: int): YKHO._pcie_id = eRSr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IQ8c():\n return MTKo['device_id']", "def eRSr(YKHO) -> int:\n return YKHO._pcie_id", "def rnNN(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_num')", "def w8MO(wqL3):\n if isinstance(wqL3, ht2j.device):\n return wqL3\n if wqL3 is None or not UPcG.hasaccelerator():\n return -1...
[ "0.7406188", "0.7341797", "0.72830254", "0.71586454", "0.6988182", "0.6985557", "0.68882567", "0.6863372", "0.6845821", "0.6841818", "0.6835041", "0.67405885", "0.6711759", "0.6710336", "0.6706974", "0.6693963", "0.6669693", "0.66508913", "0.6631376", "0.6619066", "0.6619066"...
0.0
-1
Timestamp when the associated metrics data was collected.
def E3oo(YKHO) -> qcWV: return YKHO._timestamp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3oo(YKHO):\n return YKHO.__timestamp", "def E3oo(YKHO):\n return YKHO._timestamp", "def E3oo(YKHO):\n return YKHO._timestamp", "def E3oo(YKHO):\n return YKHO._timestamp", "def E3oo(YKHO):\n return YKHO._timestamp", "def E3oo(YKHO):\n return YKHO._timestamp", "def E3oo(YKHO):\n ...
[ "0.68878573", "0.67555314", "0.67555314", "0.67555314", "0.67555314", "0.67555314", "0.67555314", "0.67555314", "0.6647348", "0.66316706", "0.66199577", "0.6578389", "0.65579855", "0.6518234", "0.6489417", "0.64359415", "0.64283806", "0.6416989", "0.6403814", "0.63291264", "0...
0.66951555
8
Timestamp when the associated metrics data was collected.
def E3oo(YKHO, E3oo: datetime): YKHO._timestamp = E3oo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3oo(YKHO):\n return YKHO.__timestamp", "def E3oo(YKHO):\n return YKHO._timestamp", "def E3oo(YKHO):\n return YKHO._timestamp", "def E3oo(YKHO):\n return YKHO._timestamp", "def E3oo(YKHO):\n return YKHO._timestamp", "def E3oo(YKHO):\n return YKHO._timestamp", "def E3oo(YKHO):\n ...
[ "0.688732", "0.6754833", "0.6754833", "0.6754833", "0.6754833", "0.6754833", "0.6754833", "0.6754833", "0.6694346", "0.6646659", "0.6631095", "0.661986", "0.65778106", "0.6558163", "0.65171534", "0.6487948", "0.64352506", "0.6427614", "0.64162785", "0.64032793", "0.6328357", ...
0.0
-1
Returns starting state of the board.
def W9gz(): return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rEkR(YKHO):\n return oyIN.zeros(YKHO.board_size, dtype=oyIN.int8)", "def rEkR():\n return H66R.Board()", "def jKlz(YKHO):\n return (YKHO.startingPosition, (False, False, False, False))", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(Y...
[ "0.80817723", "0.7890549", "0.7534283", "0.7277978", "0.7277978", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", "0.7225446", ...
0.0
-1
Returns player who has the next turn on a board.
def oyg0(iBIi): if iBIi == W9gz(): return EcVT ZOxc = 0 t71M = 0 for YRbF in range(len(iBIi)): for r845 in range(len(iBIi)): if iBIi[YRbF][r845] == EcVT: ZOxc += 1 elif iBIi[YRbF][r845] == LTX_: t71M += 1 if ZOxc > t71M: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zia_(iBIi, UwI3):\n RUgX = VlLD.opponent(UwI3)\n if VlLD.any_legal_move(RUgX, iBIi):\n return RUgX\n elif VlLD.any_legal_move(UwI3, iBIi):\n return UwI3\n return None", "def Zia_(YKHO, iBIi, UwI3):\n RUgX = YKHO.opponent(UwI3)\n iiQJ = YKHO.any_legal_move(RUgX, iBIi)\n v5zX...
[ "0.7911148", "0.7521969", "0.74204457", "0.73687756", "0.71954805", "0.69775087", "0.69621766", "0.69253695", "0.69208723", "0.69010353", "0.6845991", "0.6841043", "0.6838282", "0.68265843", "0.67751175", "0.67751175", "0.6769739", "0.6713109", "0.67060393", "0.66561204", "0....
0.6409789
41
Returns the optimal action for the current player on the board.
def SR1K(iBIi): _ysM = oyg0(iBIi) if iBIi == W9gz(): return (0, 0) if _ysM == EcVT: Ty9i = float('-inf') hJIm = None for XeOP in xASv(iBIi): qzD7 = dgIT(Aofo(iBIi, XeOP)) if qzD7 > Ty9i: Ty9i = qzD7 hJIm = XeOP elif ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction", "def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0,...
[ "0.7766687", "0.7631933", "0.75851405", "0.7527585", "0.7517406", "0.7466262", "0.74598145", "0.7425264", "0.7416284", "0.7393956", "0.73746264", "0.7334023", "0.7314428", "0.7305825", "0.7284075", "0.72647834", "0.72647834", "0.7249947", "0.7232492", "0.72029084", "0.7172677...
0.7037336
33
This method exists so that subclasses can override the container name as it comes in to the driver in the backup object. Implementations should return None if no change to the container name is desired.
def eGo6(YKHO, JKMw, zGKt): return zGKt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G1wx(YKHO):\n pass", "def FgPi(YKHO):\n return ''", "def cn37(YKHO) -> str:\n TLI7 = Hy7s.path.basename(Hy7s.getcwd())\n JDyL = f'{TLI7}_{YKHO.config_name}'\n G1wx = YKHO.config_options.get('container_name', JDyL)\n return G1wx", "def G1wx(YKHO):\n if YKHO._container_name:\n r...
[ "0.7503577", "0.70857435", "0.70734286", "0.7050803", "0.6714085", "0.66787547", "0.6487195", "0.6405152", "0.63996774", "0.6396288", "0.6396288", "0.61956096", "0.6104214", "0.6048587", "0.60143644", "0.59725314", "0.59424436", "0.593039", "0.58704996", "0.5833893", "0.58060...
0.8374773
0
Generate a skewed peak.
def BlI4(J1c0, HPHZ, H2v2, NXpY, uRwD): bEXe = eQSh.skewnorm.pdf(J1c0, uRwD, HPHZ, NXpY) bEXe = bEXe / oyIN.abs(bEXe).max() * H2v2 return bEXe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FoZl(WKvO, JBMS, WTkW, Cwt5):\n return wRlp.pdf(WKvO, Cwt5, JBMS, WTkW)", "def hfRT(YKHO):\n pass", "def zmVf():\n K6k3 = oyIN.arange(50, 90, 1)\n while True:\n fop2 = oyIN.random.choice(K6k3)\n t_gf = oyIN.random.choice(u5Dg, p=x59g)\n nigw = oyIN.random.choice(tFEe, p=agt...
[ "0.63195896", "0.60660845", "0.5811049", "0.57997125", "0.5755136", "0.5622064", "0.5601441", "0.54643846", "0.5388002", "0.53583676", "0.5345595", "0.53031373", "0.5300641", "0.5278221", "0.52702415", "0.52702093", "0.52409095", "0.5240008", "0.5232844", "0.5232516", "0.5230...
0.74716306
0
Indicates if all pool is free.
def j2T_(YKHO): return YKHO.pool_size == YKHO.pool.qsize()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j2T_(YKHO):\n return YKHO.pool_size == YKHO.sem._value", "def gt0w(YKHO):\n return YKHO._size > 0", "def gt0w(YKHO) -> tuple:\n if YKHO.running_procs >= YKHO.procs_no:\n return (False, None)\n if YKHO.gpus:\n for wqL3 in YKHO.gpus:\n if YKHO.gpu_running_procs[wqL3] < YK...
[ "0.86459655", "0.72357994", "0.6984014", "0.6780621", "0.67794234", "0.6758824", "0.67582715", "0.66722465", "0.666625", "0.65039617", "0.6465879", "0.6450088", "0.64020497", "0.6231395", "0.61517763", "0.6122315", "0.6032443", "0.5928987", "0.5928925", "0.5889941", "0.586739...
0.89347214
0
Indicates if all pool is free.
def j2T_(YKHO): return YKHO.pool_size == YKHO.sem._value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j2T_(YKHO):\n return YKHO.pool_size == YKHO.pool.qsize()", "def gt0w(YKHO):\n return YKHO._size > 0", "def gt0w(YKHO) -> tuple:\n if YKHO.running_procs >= YKHO.procs_no:\n return (False, None)\n if YKHO.gpus:\n for wqL3 in YKHO.gpus:\n if YKHO.gpu_running_procs[wqL3] < ...
[ "0.8935286", "0.7238808", "0.6984689", "0.6781709", "0.67799866", "0.6760782", "0.67596024", "0.66704965", "0.66647756", "0.65063447", "0.64641786", "0.6450032", "0.6400375", "0.6230172", "0.61514515", "0.6122063", "0.6033127", "0.592806", "0.5926281", "0.5890642", "0.5869727...
0.86467284
1
Private method for converting a dict to a DialogUtterance.
def KhtI(qPVr): for G1Hx, Ty9i in qPVr.items(): if len(Ty9i.strip()) == 0: qPVr[G1Hx] = None if qPVr['pos']: qPVr['pos'] = [MdoJ(*BX1s.split('/')) for BX1s in qPVr['pos'].split()] return o7Xp(**qPVr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CNFu(YKHO, HDFI: dict, qzC2: tuple) -> r5KC:\n return r5KC(YKHO.topic, HDFI['Title'], HDFI['CreationDate_post'], qzC2, YKHO.sid)", "def jG8h(Emd4, qHj0) -> 'StrategyActivityResponse':\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG8h(Csk6: dict):\n Aofo: T74E = T74E()\n Aofo.id = int(Csk6...
[ "0.5425241", "0.51295227", "0.5054815", "0.5024184", "0.48811328", "0.48622468", "0.4785798", "0.47629854", "0.47629854", "0.47629854", "0.47629854", "0.47629854", "0.47629854", "0.47629854", "0.47629854", "0.47629854", "0.47629854", "0.47629854", "0.47629854", "0.47629854", ...
0.7158291
0
returns the action probability distribution, from a given observation.
def B6Lv(YKHO, rNYq, nQSc=None, RA_F=0): assert YKHO.model is not None, 'Error: must train or load model before use' if len(rNYq.shape) > 2: rNYq = oyIN.transpose(rNYq, (0, 3, 2, 1)) rNYq = idx7.from_numpy(rNYq).float().requires_grad_(False).to(YKHO.device) XeOP = YKHO.model.forward(rNYq).detach...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V5uW(YKHO, rNYq):\n rNYq = rNYq[oyIN.newaxis, :]\n f3to = YKHO.sess.run(YKHO.all_act_prob, feed_dict={YKHO.tf_obs: rNYq})\n XeOP = anG5.choice(range(f3to.shape[1]), p=f3to.ravel())\n return XeOP", "def u_ln(YKHO, rNYq):\n YKHO.t += 1\n WErR = YKHO.probabilities(rNYq)\n WErR *= YKHO.actio...
[ "0.75363475", "0.7469838", "0.7176215", "0.6976986", "0.6921634", "0.6883577", "0.68295866", "0.67682016", "0.6735998", "0.67333806", "0.67173976", "0.66899717", "0.66792244", "0.6665365", "0.65566915", "0.65403587", "0.651649", "0.651649", "0.6511095", "0.64913917", "0.64849...
0.6210185
42
If the user is signed in and the author of the post, deincrement the comment count in the post model and delete the comment from the db. Otherwise the user does not have permission to delete the comment.
def NMoC(YKHO, Fi3q, A0yL, pQGt): if YKHO.user and YKHO.user.key().id() == int(A0yL): MzfU = NCls.Key.from_path('Post', int(Fi3q), parent=pRrk()) m8z6 = NCls.get(MzfU) jX8R = NCls.Key.from_path('Comment', int(pQGt), parent=MzfU) aM_I = NCls.get(jX8R) if aM_I: m8z6...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO):\n pQGt = int(YKHO.request.get('comment_id'))\n Fi3q = YKHO.request.get('post_id')\n aM_I = TYFT.get_by_id(pQGt)\n if aM_I.submitter_id == YKHO.get_active_user().key().id():\n aM_I.delete()\n else:\n P1dF(403)\n YKHO.redirect('/%s' % Fi3q)", "def PTpj(YKHO, CBIr):\n...
[ "0.75117576", "0.73604715", "0.7009929", "0.6857118", "0.67667866", "0.6585606", "0.6565695", "0.653583", "0.6513057", "0.6500875", "0.64324874", "0.6401286", "0.6393747", "0.63775736", "0.63157654", "0.63037586", "0.62919706", "0.62429136", "0.6238856", "0.62115306", "0.6188...
0.70232904
2
Validate the inputs related to kpoints. Either an explicit `KpointsData` with given mesh, or a desired kpoints distance should be specified. In the case of the latter, the `KpointsData` will be constructed for the input `StructureData` using the `create_kpoints_from_distance` calculation function.
def RJXQ(YKHO): if all((H5ew not in YKHO.inputs for H5ew in ['kpoints', 'kpoints_distance'])): return YKHO.exit_codes.ERROR_INVALID_INPUT_KPOINTS if 'kpoints' in YKHO.inputs: try: YKHO.inputs.kpoints.get_kpoints_mesh() except AttributeError as exception: raise Att...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FSV_(YKHO, BR8K):\n YKHO.validate_keypoints_label(BR8K.label)\n YKHO.schema[BR8K.label].validate(BR8K)", "def hbn7(YKHO):\n Xq6q = qfzf()\n Xq6q.set_cell_from_structure(YKHO.inputs.structure)\n Xq6q.set_kpoints_mesh_from_density(distance=YKHO.ctx.protocol['kpoints_mesh_density'], offset=YKHO.c...
[ "0.6304307", "0.62843585", "0.5900631", "0.5835263", "0.5728282", "0.55190796", "0.5504512", "0.54719335", "0.54529816", "0.54463685", "0.54447407", "0.543001", "0.5401653", "0.5394185", "0.5383173", "0.53712624", "0.53234583", "0.5302514", "0.5301957", "0.5274975", "0.526335...
0.83015186
0
Finds user posts on URL by username newer than last_time_checked
def LTCE(YKHO): if not YKHO.threads: raise Exception('No threads present in class. ' + 'Run find_threads_on_board first.') TZbS = ' - Current Events Message Board - GameFAQs' EO0R = [] pLP1 = 0 SV4W = len(YKHO.threads) for MgeT in YKHO.threads: UNw_ = MgeT[0] _hkX = YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uSYp():\n DpUl, uJjO = PObR(3)\n DpUl.execute('SELECT username FROM users WHERE id = ?', [uJjO])\n mWFP = DpUl.fetchall()[0][0]\n DpUl.execute('SELECT * FROM posts WHERE name IN (SELECT following FROM followers WHERE user = ?) OR name = ?', (mWFP, mWFP))\n FvVY = DpUl.fetchall()\n return FvVY...
[ "0.57034075", "0.5514633", "0.54756194", "0.5458588", "0.54228836", "0.53704166", "0.53278106", "0.5295844", "0.5290781", "0.51994616", "0.51790303", "0.5142986", "0.51422936", "0.5133675", "0.5117201", "0.5114056", "0.5112243", "0.5091533", "0.5078913", "0.50785786", "0.5078...
0.5762462
0
Returns CROWDrelated project settings. Private service method.
def tM6o(): GPtr = getattr(gCuF, 'CROWD', None) if not GPtr: raise UserWarning('CROWD configuration is not in your settings.py') return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zsuQ():\n return hROt(xNp5.settings)", "def PKRp(YKHO):\n return Fv2L.projects", "def AWLl(YKHO):\n return YKHO.project_info", "def xI0b(QePW):\n I0jv = zryN(QePW)\n I0jv['settings']['IS_WEBNODE'] = True\n return I0jv", "def lWpF(YKHO):\n return YKHO.cfg", "def asJJ(YKHO):\n r...
[ "0.73398834", "0.6880504", "0.66941255", "0.66277814", "0.6622517", "0.6572249", "0.6486314", "0.64521676", "0.643757", "0.6410233", "0.64049494", "0.6385791", "0.63461787", "0.6324483", "0.62854767", "0.6270813", "0.6268467", "0.6244937", "0.617788", "0.61681604", "0.6138434...
0.64141214
9
Returns True if n is prime.
def FBNJ(exwG): if exwG < 2: return False if exwG == 2: return True if exwG == 3: return True if exwG % 2 == 0: return False if exwG % 3 == 0: return False YRbF = 5 yzQ0 = 2 while YRbF * YRbF <= exwG: if exwG % YRbF == 0: return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBNJ(exwG):\n return T1qg(exwG)", "def FBNJ(exwG):\n return T1qg(exwG)", "def JVAb(Emd4, exwG):\n if exwG <= 1:\n return False\n if exwG <= 3:\n return True\n if exwG % 2 == 0 or exwG % 3 == 0:\n return False\n YRbF = 5\n while YRbF * YRbF <= exwG:\n if exwG...
[ "0.8514553", "0.85052115", "0.8478591", "0.8415317", "0.8408101", "0.84059155", "0.8389028", "0.8350958", "0.83173066", "0.83133805", "0.8305305", "0.83034956", "0.830075", "0.82713956", "0.8248401", "0.8248108", "0.8245176", "0.82376003", "0.82293326", "0.82223743", "0.82108...
0.78520685
63
This route is for a hello world test
def Wzeq(): return TvZl('hello.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TkT5(YKHO):\n Aofo = YKHO.app.get('/hello_world')\n YKHO.assertTrue(Aofo.data, 'Hello')", "def d6pt():\n return 'Hello, world!'", "def BGcA(YKHO):\n pmON = gxEw('main')\n QePW = b9AL().get(pmON)\n geh0 = d6pt(QePW)\n assert geh0.status_code == 200", "def d6pt():\n return oGir(\"We...
[ "0.7320547", "0.7168844", "0.7115104", "0.70983094", "0.70798445", "0.7027017", "0.70132846", "0.6957607", "0.69131494", "0.68570846", "0.6822823", "0.6821588", "0.67997617", "0.6763874", "0.67442673", "0.67438483", "0.6694536", "0.6685353", "0.66816586", "0.6649281", "0.6629...
0.6447685
40
Computes the recall metric. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def AOzf(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + nMvt.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(YKHO):\n YKHO.overall_recall = Uw2c(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_recall = Uw2c(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def Uw2c(YKHO, Y8eF=None, aMgO=None, Crrw=None, S8vG='macro', SOnQ=None, **B2fa):...
[ "0.7477947", "0.7446787", "0.7298146", "0.717669", "0.717619", "0.7166503", "0.7156396", "0.71362334", "0.71362334", "0.71362334", "0.71362334", "0.71362334", "0.71362334", "0.7134402", "0.7108307", "0.7104241", "0.70811856", "0.705563", "0.7034574", "0.7034574", "0.7034574",...
0.7075305
29
Computes the precision metric. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def rhd_(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + nMvt.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def rhd_(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, ...
[ "0.7586407", "0.74077135", "0.7335255", "0.730423", "0.7264715", "0.72033966", "0.72031116", "0.7179727", "0.7179727", "0.7179727", "0.7179727", "0.7179727", "0.7179727", "0.7152422", "0.7148002", "0.7142301", "0.7117727", "0.7117727", "0.7117727", "0.7117727", "0.7117727", ...
0.71275824
28
Returns lowest group id. If no groups are defined, return None
def BVmc(YKHO) -> int: DVCd = oyIN.asarray(YKHO.group_ids, dtype=oyIN.float) if oyIN.all(oyIN.isnan(DVCd)): hE03 = None else: hE03 = int(oyIN.nanmin(DVCd)) return hE03
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3DX(YKHO):\n return YKHO.client.GetGroups().entry[0].id.text", "def DsWp(YKHO):\n U96t = None\n for Ii1o in YKHO.players:\n if U96t is None or Ii1o < U96t:\n U96t = Ii1o\n return U96t", "def UHGa(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'default_included_gro...
[ "0.72568583", "0.69023913", "0.6765292", "0.6610194", "0.6582328", "0.6582328", "0.6582328", "0.63975495", "0.63730353", "0.6371971", "0.6338755", "0.628117", "0.61864334", "0.6178007", "0.6176909", "0.6162823", "0.6141201", "0.61111283", "0.61048645", "0.6098911", "0.6033402...
0.82487017
0
Returns highest group id. If no groups are defined, return None
def KTXJ(YKHO) -> int: DVCd = oyIN.asarray(YKHO.group_ids, dtype=oyIN.float) if oyIN.all(oyIN.isnan(DVCd)): hE03 = None else: hE03 = int(oyIN.nanmax(DVCd)) return hE03
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3DX(YKHO):\n return YKHO.client.GetGroups().entry[0].id.text", "def BVmc(YKHO) -> int:\n DVCd = oyIN.asarray(YKHO.group_ids, dtype=oyIN.float)\n if oyIN.all(oyIN.isnan(DVCd)):\n hE03 = None\n else:\n hE03 = int(oyIN.nanmin(DVCd))\n return hE03", "def _rAk(YKHO):\n N1p7 = YK...
[ "0.66832817", "0.6647579", "0.65711814", "0.65690064", "0.65690064", "0.65690064", "0.65146327", "0.6479507", "0.64665866", "0.64365214", "0.6400256", "0.6371045", "0.63664657", "0.6340837", "0.6257906", "0.62426156", "0.6217411", "0.6162581", "0.61433756", "0.6134884", "0.61...
0.7982724
0
Returns number of trees contained in skeleton object.
def AHQ7(YKHO) -> int: return len(YKHO.nodes)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VjyD(YKHO):\n return len(YKHO.data_kd)", "def AHQ7(YKHO):\n return YKHO._ll_tree_sequence.get_num_trees()", "def UHFx(YKHO):\n return YKHO.__tree.node_count", "def ESP5(YKHO) -> int:\n T8ck = g5js()\n UHFx = 0\n T8ck.put(YKHO.root)\n while not T8ck.empty():\n Q6kx = T8ck.get()...
[ "0.73461956", "0.72445947", "0.7038706", "0.70234084", "0.6988989", "0.69339025", "0.6901397", "0.6856496", "0.68297166", "0.68191034", "0.67840487", "0.6759071", "0.6737608", "0.67095983", "0.67003775", "0.66994345", "0.6668406", "0.66545814", "0.65985686", "0.6593608", "0.6...
0.7070014
2
Returns number of connected components for graph
def Vr3b(pNZh): return jHsn.number_connected_components(pNZh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WBdH(YKHO) -> int:\n\n def Gg28(e2gD: Tuple[int, int]) -> fHNa[AzJI[int, int]]:\n \"\"\" \"\"\"\n nonlocal visited\n azXi.add(e2gD)\n if pNZh.vertices[e2gD]:\n for AAbN in pNZh.vertices[e2gD]:\n if AAbN not in azXi:\n azXi.add(AAbN)\n ...
[ "0.83641773", "0.83437747", "0.81624407", "0.8031547", "0.7954649", "0.78082293", "0.7705272", "0.7360719", "0.72838306", "0.72559667", "0.72473276", "0.7212645", "0.71635467", "0.70897824", "0.7080527", "0.7062978", "0.70475674", "0.7045782", "0.70328623", "0.70046943", "0.7...
0.87805754
0
Gets the runtime for the compiler. Returns an object with the compiler runtime for this architecture
def hchW(YKHO): return YKHO.get_runtime()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wdfw(YKHO):\n import io\n from ..api import asm\n pKpI = ''\n return asm(io.StringIO(pKpI), YKHO)", "def Qvn0(YKHO):\n return YKHO._runtime", "def Qvn0(YKHO):\n return YKHO._runtime", "def mF9o() -> Nvbq:\n e0K5 = UxZq()\n try:\n PD5D = e0K5.EBNF_00000001_compiler_singleton...
[ "0.71252227", "0.70908153", "0.70908153", "0.69115597", "0.6635031", "0.6598686", "0.65915775", "0.6491484", "0.64307064", "0.62726164", "0.611345", "0.6083088", "0.6019867", "0.5977133", "0.5971644", "0.59486043", "0.5865561", "0.584073", "0.5752289", "0.56791294", "0.566547...
0.8038011
0
Given an array of integers your solution should find the smallest integer.
def iJ82(ezWE): CGQE = min(ezWE) print(CGQE) for mLGw in ezWE: if mLGw > CGQE: CGQE = mLGw return CGQE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QveX(ezWE):\n ezWE.sort()\n vhbB = []\n for YRbF in ezWE:\n if YRbF >= 1:\n vhbB.append(YRbF)\n sWRn = 1\n for YRbF in vhbB:\n if sWRn < YRbF:\n return sWRn\n sWRn = YRbF + 1\n return sWRn", "def CGQE(mSrU):\n if mSrU == []:\n return\n ...
[ "0.79001784", "0.7870558", "0.75516975", "0.72483844", "0.71978855", "0.71658194", "0.7087989", "0.70819414", "0.6933024", "0.6894134", "0.6878115", "0.68588406", "0.6788487", "0.6735203", "0.67077005", "0.6658078", "0.6655882", "0.6612236", "0.6591559", "0.65629053", "0.6548...
0.7931123
0
Convert YOLOv2 box predictions to bounding box corners.
def GSU9(mZ3_, FWeA): KjRz = mZ3_ - FWeA / 2.0 iesS = mZ3_ + FWeA / 2.0 return nMvt.concatenate([KjRz[..., 1:2], KjRz[..., 0:1], iesS[..., 1:2], iesS[..., 0:1]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UX2B(YKHO, oRQ3):\n si3g, o4D3, skBL, ajwV = biH0.apply_transformation(oRQ3, oyIN.linalg.inv(YKHO.transformation))\n yzQ0, MKlR = YKHO.image_size\n si3g, o4D3, skBL, ajwV = (si3g * MKlR, o4D3 * yzQ0, skBL * MKlR, ajwV * yzQ0)\n return _Sas.Rectangle(o4D3, si3g, ajwV - o4D3, skBL - si3g)", "def xZ...
[ "0.6752547", "0.6630928", "0.64708626", "0.6361782", "0.61366963", "0.6115061", "0.6088159", "0.6061737", "0.6011136", "0.59522283", "0.5869778", "0.5860188", "0.5849919", "0.58330435", "0.5818474", "0.5800171", "0.57958174", "0.5787216", "0.5786475", "0.57813185", "0.5781318...
0.6915219
0
Decode final layer features to bounding box parameters.
def BIzI(LyKa, qvIa, jTqs, GhuM, xI8u=None, sjTf=False): HT_T = len(qvIa) EGRg = nMvt.reshape(nMvt.constant(qvIa), [1, 1, 1, HT_T, 2]) sxTv = nMvt.shape(LyKa)[1:3] btha = nMvt.tile(nMvt.reshape(nMvt.arange(0, stop=sxTv[0]), [-1, 1, 1, 1]), [1, sxTv[1], 1, 1]) qJvq = nMvt.tile(nMvt.reshape(nMvt.arang...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fWWM(bySB):\n h3cg = bySB['image/object/bbox/ymin'].values\n BQGg = bySB['image/object/bbox/xmin'].values\n Z3uP = bySB['image/object/bbox/ymax'].values\n bYzl = bySB['image/object/bbox/xmax'].values\n return ZylS.transpose([h3cg, BQGg, Z3uP, bYzl])", "def UX2B(YKHO, oRQ3):\n si3g, o4D3, sk...
[ "0.6606601", "0.6545102", "0.6375046", "0.62812316", "0.6231459", "0.6137296", "0.6111309", "0.599917", "0.5972156", "0.5951793", "0.58870757", "0.5868612", "0.58196735", "0.57547927", "0.57448685", "0.5732805", "0.56818074", "0.56755906", "0.5648855", "0.5648752", "0.5641115...
0.0
-1
Assert that two complex structures have almost equal contents. Compares lists, dicts and tuples recursively. Checks numeric values
def bgOU(Pcn2, aEqx, n5sN, *qIxc, **B2fa): kFcs = not '__trace' in B2fa zgsA = B2fa.pop('__trace', 'ROOT') try: if isinstance(aEqx, (int, float, complex)): Pcn2.assertAlmostEqual(aEqx, n5sN, *qIxc, **B2fa) elif isinstance(aEqx, (list, tuple)): Pcn2.assertEqual(len(aEq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Btrh(agSQ, udOb):\n if isinstance(agSQ, oyIN.ndarray):\n return oyIN.allclose(agSQ, udOb)\n if isinstance(agSQ, GySg):\n if set(agSQ.keys()) != set(udOb.keys()):\n return False\n return all((Btrh(agSQ[H5ew], udOb[H5ew]) for H5ew in agSQ))\n if isinstance(agSQ, bdIy):\n ...
[ "0.6857276", "0.6848873", "0.66654605", "0.66377485", "0.6620422", "0.66017956", "0.65907496", "0.655373", "0.655157", "0.64244205", "0.6401224", "0.6361603", "0.6349483", "0.6346842", "0.63336843", "0.63317245", "0.63295066", "0.63245595", "0.6312757", "0.630501", "0.630501"...
0.6161716
31
Convert raw date field into a value interpretable by the dataserver. The date is given by year and week number, the date filtering API expects mm/dd/YYYYZ format so we use the first day of the given week.
def JDE9(lO87: str, Vzk6: str): _c1T = qcWV.fromisocalendar(int(lO87), int(Vzk6), 1) return _c1T.strftime('%m/%d/%YZ')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hpb0(YKHO, lUyf: str) -> tuple:\n Uqsv = ZbWC.search('^(\\\\d+.\\\\d+)\\\\s+-\\\\s+\\\\d+.\\\\d+', lUyf)\n if 'from' in lUyf:\n Vzk6 = ZbWC.sub('^\\\\D+', '', lUyf)\n elif Uqsv:\n Vzk6 = Uqsv.group(1)\n else:\n Vzk6 = '{}.{}'.format(dMDr, E5lf)\n AJna = qcWV.datetime.strptim...
[ "0.6620415", "0.6310158", "0.6028344", "0.593478", "0.5868662", "0.5810644", "0.57624", "0.56950694", "0.5693289", "0.5660523", "0.5659853", "0.5647483", "0.5596252", "0.55584306", "0.55395204", "0.54828954", "0.54741496", "0.5466091", "0.5465969", "0.54648215", "0.54348487",...
0.7026784
0
Convenience method to get current UTC time in yyyymmddhhmm format
def WoSX(): lY0q = qcWV.utcnow() return lY0q.strftime('%Y%m%d%H%M')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JT1u():\n return GRk0.timegm(ITS7.gmtime())", "def wj6w():\n oZmq = qcWV.datetime.utcnow()\n Ls7P = oZmq.strftime('%Y-%m-%d %H:%M:%S')\n return Ls7P", "def kSCg():\n return str(qcWV.utcnow())", "def ApjM():\n return ITS7.strftime('%Y-%m-%d-%H-%M-%S', ITS7.localtime())", "def vHj7():\n...
[ "0.78634745", "0.766886", "0.7544975", "0.7532391", "0.7506429", "0.7483729", "0.7478313", "0.74086046", "0.7278408", "0.72680515", "0.7243971", "0.7243337", "0.7239311", "0.7237997", "0.7236299", "0.7233931", "0.7227746", "0.72268265", "0.7208165", "0.7194701", "0.7160312", ...
0.0
-1
Remember the function to decorate. Raises TypeError if ``func`` is not a callable.
def AuU4(YKHO, JfyU): if not callable(JfyU): raise TypeError('Cannot decorate non callable object "{func}"'.format(func=JfyU)) YKHO.decorated = JfyU return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mrMx(JfyU):\n\n def h3Xc():\n \"\"\"\n decorates the given function and makes it a lazy one.\n\n :returns: function result.\n \"\"\"\n Aofo = CJUp.try_get('permanent', JfyU, None)\n if Aofo is not None:\n return Aofo\n Aofo = JfyU()\n ...
[ "0.6893578", "0.6891319", "0.6861042", "0.6731581", "0.6710472", "0.6679485", "0.6539745", "0.6521934", "0.64404726", "0.6359263", "0.6318659", "0.63086843", "0.625213", "0.6235959", "0.62253344", "0.6219228", "0.62028694", "0.613898", "0.6126892", "0.61247325", "0.61014223",...
0.71824074
0
Generate file paths for configured input and output table files.
def eQhz(YKHO): for GTA_ in YKHO.tables: bo34.info(f"Generating input and output paths for table '{GTA_}'...") YKHO.input_paths[GTA_] = Hy7s.path.join(YKHO.pipeline['input_dir'], f'{GTA_}.xml') bo34.info(f"Input path for table '{GTA_}': {YKHO.input_paths[GTA_]}") YKHO.output_paths[GT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BmT1(YKHO):\n if YKHO.input_xml is not None:\n YKHO.input_xml = Hy7s.path.abspath(Hy7s.path.expandvars(YKHO.input_xml))\n if YKHO.pointing_file is not None:\n YKHO.pointing_file = Hy7s.path.abspath(Hy7s.path.expandvars(YKHO.pointing_file))\n YKHO.output_dir = Hy7s.path.abspath(Hy7s.path....
[ "0.6394341", "0.6237562", "0.6136406", "0.6085505", "0.6024562", "0.6021732", "0.6017429", "0.58924437", "0.5836462", "0.5831578", "0.5771964", "0.5767702", "0.5754968", "0.57486475", "0.5721386", "0.57165265", "0.5708984", "0.5706032", "0.569472", "0.56780183", "0.5676826", ...
0.8811066
0
Renders the home page.
def kZiy(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'app/index.html', {'title': 'Home Page', 'year': qcWV.now().year})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZ...
[ "0.8557744", "0.8534662", "0.8352184", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.82770634", "0.8274435", ...
0.0
-1
Renders the about page.
def vsuQ(QePW): assert isinstance(QePW, eu5F) AHoS = FYrf.AboutUs.objects.all() return _1tc(QePW, 'app/about.html', {'title': 'About', 'message': 'Your application description page.', 'year': qcWV.now().year, 'Description': AHoS})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85650355", "0.85034525", "0.84489655", "0.84044397", "0.8394454", "0.82935613", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82680845",...
0.71754843
99
Renders the Portfolio page.
def HVIF(QePW): assert isinstance(QePW, eu5F) Ghho = QePW.GET.get('category') if Ghho == None: RpDH = FYrf.Photo.objects.all() else: RpDH = FYrf.Photo.objects.filter(category__name__contains=Ghho) eorc = FYrf.Category.objects.all() return _1tc(QePW, 'app/Portfolio.html', {'title'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d80a():\n return TvZl('portfolio/portfolio.html')", "def d6pt():\n uJjO = cuiw['user_id']\n TzRs = bIwZ(uJjO, NCls)\n if not isinstance(TzRs, dict):\n return P88m('Error in portfolio')\n return TvZl('portfolio.html', shares_list=TzRs['shares'], cash=TzRs['cash'], total=TzRs['total'])", ...
[ "0.77163917", "0.7363863", "0.72069246", "0.6958023", "0.6832886", "0.67240053", "0.6710301", "0.6444703", "0.6396421", "0.63873595", "0.63806105", "0.6337761", "0.6259254", "0.6257137", "0.62408847", "0.62389874", "0.6192785", "0.61823523", "0.61133915", "0.6037919", "0.5968...
0.5977893
20
Renders the Portfolio page.
def TlUX(QePW): assert isinstance(QePW, eu5F) jAqk = FYrf.Video.objects.all() return _1tc(QePW, 'app/Videos.html', {'title': 'Drone Videos', 'message': 'Drone videos coming soon...', 'year': qcWV.now().year, 'Videos': jAqk})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d80a():\n return TvZl('portfolio/portfolio.html')", "def d6pt():\n uJjO = cuiw['user_id']\n TzRs = bIwZ(uJjO, NCls)\n if not isinstance(TzRs, dict):\n return P88m('Error in portfolio')\n return TvZl('portfolio.html', shares_list=TzRs['shares'], cash=TzRs['cash'], total=TzRs['total'])", ...
[ "0.77163917", "0.7363863", "0.72069246", "0.6958023", "0.6832886", "0.67240053", "0.6710301", "0.6444703", "0.6396421", "0.63873595", "0.63806105", "0.6337761", "0.6259254", "0.6257137", "0.62408847", "0.62389874", "0.6192785", "0.61823523", "0.61133915", "0.6037919", "0.5977...
0.0
-1
Test column names list size mismatch exception
def zykq(YKHO): with YKHO.assertRaises(ValueError) as OaeV: YKHO.dboard.set_col_names(['A', 'B', 'C']) YKHO.assertEqual("'names' list size does not match the number of columns allocated", str(OaeV.exception))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lw1X(YKHO, ZWCE):\n if not Kuz2(ZWCE):\n raise ValueError('Columns should be list-like')\n if len(set(ZWCE)) != len(ZWCE):\n raise ValueError('Duplicate column names')\n if YKHO._data and len(ZWCE) != len(YKHO._data[0]):\n raise ValueError('Invalid columns length')", "def g5CZ(Y...
[ "0.748813", "0.7097434", "0.7041561", "0.7003699", "0.692872", "0.68954307", "0.6861895", "0.68537235", "0.6846043", "0.6786945", "0.67654634", "0.6758441", "0.6699675", "0.6676777", "0.66698", "0.66647196", "0.6621104", "0.6618466", "0.6615003", "0.6603763", "0.65971994", ...
0.79252064
0
Test row names unset exception
def njXM(YKHO): with YKHO.assertRaises(EqPp) as OaeV: d6pt = YKHO.dboard._get_row_index('1') YKHO.assertEqual('row names are not set', str(OaeV.exception))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g5CZ(YKHO):\n with YKHO.assertRaises(ValueError) as OaeV:\n YKHO.dboard.set_row_names(['1', '2', '3'])\n YKHO.assertEqual(\"'names' list size does not match the number of rows allocated\", str(OaeV.exception))", "def G9DI(YKHO):\n YKHO.dboard.set_row_names(['1', '2'])\n YKHO.assertTrue(has...
[ "0.6929206", "0.63284016", "0.62783545", "0.6209697", "0.6036684", "0.60327554", "0.5976182", "0.5943461", "0.5920874", "0.5913033", "0.59079605", "0.59009427", "0.58705515", "0.5863165", "0.5861898", "0.58584064", "0.58175254", "0.58060527", "0.57948923", "0.5786204", "0.578...
0.6248503
3
helper func to get difference between two dates in seconds
def DZSE(AjzU, _sQW): Ylbp = AjzU - _sQW return 86400 * Ylbp.days + Ylbp.seconds
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JK5c(Ilc0, w0do):\n return (Ilc0 - w0do).total_seconds()", "def TAxb(oF7G, tOwQ):\n return abs(int((tOwQ - oF7G).total_seconds()))", "def uKkN(YKHO, Elif):\n if not isinstance(Elif, qcWV):\n SnBA = (type(Elif), qcWV)\n raise TypeError('Type mismatch: %s not instance of %s' % SnBA)\n ...
[ "0.8079301", "0.7691208", "0.74970096", "0.72088784", "0.71840703", "0.7153568", "0.71158785", "0.71036726", "0.7028021", "0.6919312", "0.69073844", "0.6745594", "0.6660719", "0.6644333", "0.65803444", "0.65111434", "0.6479098", "0.6476214", "0.643871", "0.64266956", "0.64107...
0.7701068
1
Suggest insertion index for decorator deco_name in given decorator_list. ``decorator_list`` is the eponymous attribute of a ``FunctionDef`` or ``AsyncFunctionDef`` AST node.
def Toi1(du8a, yJDB): if du8a not in L0dy: return None ZWCE = [ZUM3(J_Es) for J_Es in yJDB] kiY3 = {eWAE: TEzZ for TEzZ, eWAE in NFEs} Q78L = [WKvO for WKvO in ZWCE if WKvO in kiY3] jQ17 = [kiY3[WKvO] for WKvO in Q78L] def hNIv(yv6U): JvQp = YKkK(yv6U) return all((Fg_i >...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0Y3(YKHO, yJDB):\n _fpe = Sgry.non_async\n lnV2 = False\n sexs = False\n s9ww = False\n QRtk = []\n for mrMx in yJDB:\n if isinstance(mrMx, jZ4I.Call):\n NVCB = YKHO.visit(mrMx)\n vMTh = YKHO.visit(mrMx.func)\n if isinstance(vMTh, i0o8):\n ...
[ "0.5119754", "0.48164266", "0.4687633", "0.46841127", "0.46616882", "0.4609195", "0.45475256", "0.45343086", "0.4498382", "0.44695872", "0.44673443", "0.44244447", "0.4405808", "0.43915933", "0.43014547", "0.4251116", "0.4221834", "0.41503158", "0.4108825", "0.40951174", "0.4...
0.85920507
0
Helper function that calculates the greatcircle distance between a pair of geographical coordinates.
def GeVo(TGuP, tk0B): igSk = 53.342998628 GgQG = -6.256165642 GgQG, igSk, tk0B, TGuP = map(oyIN.radians, [GgQG, igSk, tk0B, TGuP]) H91H = tk0B - GgQG n_9K = TGuP - igSk jzdc = oyIN.sin(n_9K / 2.0) ** 2 + oyIN.cos(igSk) * oyIN.cos(TGuP) * oyIN.sin(H91H / 2.0) ** 2 Z9rn = 2 * oyIN.arcsin(oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6", "def DJ7s(YKHO, ...
[ "0.7698843", "0.7670894", "0.7663812", "0.7450659", "0.7341956", "0.72380936", "0.7184047", "0.7110075", "0.71084076", "0.7070297", "0.70651877", "0.70595706", "0.7041652", "0.7013207", "0.70057976", "0.69816417", "0.6967899", "0.69389695", "0.6905809", "0.68702567", "0.68700...
0.0
-1
Sets the name of this OneOfFluidResultControlsFieldCalculations.
def mWFP(YKHO, mWFP): if YKHO.local_vars_configuration.client_side_validation and mWFP is not None and (not ZbWC.search('^[A-Za-z()][-+0-9a-zA-Z_()\\h]{0,199}$', mWFP)): raise ValueError('Invalid value for `name`, must be a follow pattern or equal to `/^[A-Za-z()][-+0-9a-zA-Z_()\\h]{0,199}$/`') YKHO._na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JiIQ(YKHO, mWFP, **B2fa):\n YKHO.structure.set_name(mWFP)\n return YKHO", "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._set_field('name', mWFP)", "def oSgC(YKHO, mWFP):\n YKHO.name = str(mWFP)", "def S55X(YKHO, mWFP):\n YKHO.__name = mWFP", "def oSgC(YK...
[ "0.6671629", "0.64394647", "0.63775253", "0.62996197", "0.62967783", "0.6283429", "0.6283429", "0.6283429", "0.6283429", "0.62748736", "0.62723655", "0.62723655", "0.62723655", "0.62723655", "0.62723655", "0.6259594", "0.6258785", "0.6258785", "0.6254336", "0.6254336", "0.624...
0.0
-1
Sets the result_type of this OneOfFluidResultControlsFieldCalculations.
def HfXH(YKHO, HfXH): YKHO._result_type = HfXH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j3zV(YKHO, j3zV):\n if YKHO.local_vars_configuration.client_side_validation and j3zV is None:\n raise ValueError('Invalid value for `result_value_type`, must not be `None`')\n BbPm = ['ResultValue', 'ResultValueDictionary', 'ResultValue0D', 'ResultValueDecimal', 'ResultValueInt', 'ResultValueStrin...
[ "0.71457607", "0.68649566", "0.5722179", "0.56241816", "0.55464923", "0.5516734", "0.5501502", "0.546909", "0.53389025", "0.53077453", "0.52951443", "0.528472", "0.52731913", "0.52565837", "0.52511317", "0.52511317", "0.5240739", "0.5195781", "0.5195781", "0.5192405", "0.5172...
0.7830995
0
Sets the age_of_fluid_diffusion of this OneOfFluidResultControlsFieldCalculations.
def q1FW(YKHO, q1FW): YKHO._age_of_fluid_diffusion = q1FW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i1ns(YKHO, Elif):\n yk4i = YKHO.age - Elif.age\n print(abs(yk4i), 'year difference')", "def kjC_(YKHO, ZJe_):\n YKHO.age = float(ZJe_)", "def sc0L(YKHO, sc0L):\n YKHO._diffusion_coefficient = sc0L", "def kjC_(YKHO, NI3A):\n YKHO.age = NI3A", "def s2RE(YKHO):\n for YRbF in YKHO.individ...
[ "0.48859596", "0.48837823", "0.47994456", "0.46981585", "0.46847057", "0.46793416", "0.46793416", "0.46673048", "0.4632146", "0.45763713", "0.45697087", "0.45139056", "0.4511994", "0.449241", "0.44726565", "0.44583145", "0.4455418", "0.43976513", "0.4397241", "0.43824255", "0...
0.8776832
0
Sets the relative_humidity_factor of this OneOfFluidResultControlsFieldCalculations.
def lPnM(YKHO, lPnM): if YKHO.local_vars_configuration.client_side_validation and lPnM is not None and (lPnM > 100): raise ValueError('Invalid value for `relative_humidity_factor`, must be a value less than or equal to `100`') if YKHO.local_vars_configuration.client_side_validation and lPnM is not None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wuQB(YKHO, fK44: float, phmJ: float):\n M6pt = phmJ / 100 * 6.112 * kLQb(17.62 * fK44 / (243.12 + fK44))\n UUZ1 = 273.15 + fK44\n y3QU = 216.7 * (M6pt / UUZ1)\n YKHO.set_iaq_humidity(y3QU)", "def phmJ(YKHO):\n e5NN = YKHO._current_observation['relative_humidity']\n return float(e5NN.strip('...
[ "0.66933274", "0.5505173", "0.53247386", "0.5118266", "0.48839277", "0.48403522", "0.4825612", "0.48253453", "0.47170526", "0.47062722", "0.4665921", "0.45898336", "0.4546112", "0.45316195", "0.45297918", "0.4520771", "0.44840032", "0.447919", "0.44566366", "0.4430926", "0.44...
0.81199014
0
Sets the compute_sensitivities_to of this OneOfFluidResultControlsFieldCalculations.
def BQMl(YKHO, BQMl): BbPm = ['MAXIMIZE_FORCE', 'MINIMIZE_FORCE'] if YKHO.local_vars_configuration.client_side_validation and BQMl not in BbPm: raise ValueError('Invalid value for `compute_sensitivities_to` ({0}), must be one of {1}'.format(BQMl, BbPm)) YKHO._compute_sensitivities_to = BQMl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IEMe(YKHO, qqtz):\n return qqtz[:, YKHO.p_external]", "def maQu(YKHO, QpfX):\n I45O.info('calling _compute_sensitivities.')\n ehWO = oyIN.random.randint(1000)\n if YKHO.start_epoch == QpfX.epoch_id:\n k61y = YKHO.sensitivities_file\n else:\n k61y = YKHO.sensitivities_file + '.epo...
[ "0.45638815", "0.4537992", "0.44791958", "0.44788453", "0.4291992", "0.42081547", "0.41325232", "0.41128126", "0.40917432", "0.4073942", "0.4053975", "0.40274498", "0.4005038", "0.39474058", "0.39318928", "0.3931033", "0.3889505", "0.38768148", "0.38752478", "0.38541502", "0....
0.8404953
0
Sets the reference_temperature_result_type of this OneOfFluidResultControlsFieldCalculations.
def PbTs(YKHO, PbTs): YKHO._reference_temperature_result_type = PbTs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HfXH(YKHO, HfXH):\n YKHO._result_type = HfXH", "def j3zV(YKHO, j3zV):\n if YKHO.local_vars_configuration.client_side_validation and j3zV is None:\n raise ValueError('Invalid value for `result_value_type`, must not be `None`')\n BbPm = ['ResultValue', 'ResultValueDictionary', 'ResultValue0D', ...
[ "0.5650067", "0.5332816", "0.5179784", "0.50796247", "0.4701658", "0.46537855", "0.46107498", "0.45578787", "0.45249584", "0.44960314", "0.4470091", "0.44552487", "0.43907332", "0.4386981", "0.43760744", "0.43610713", "0.43390852", "0.43251908", "0.4323229", "0.426983", "0.42...
0.8612214
0
Sets the compute_nusselt_number of this OneOfFluidResultControlsFieldCalculations.
def rjdM(YKHO, rjdM): YKHO._compute_nusselt_number = rjdM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HFOF(YKHO, FGW3):\n print('controller - update_necrosis_count!')\n YKHO.view.processing_gui.update_necrosis_count(FGW3)", "def xK1I(YKHO, exwG: int) -> None:\n YKHO.n_is_set = True\n YKHO.n = exwG", "def HX9b(YKHO, BWXx):\n super(wy2T, YKHO)._set_input('NE', BWXx)", "def w5cd(YKHO, FGW3):\...
[ "0.56177396", "0.5561527", "0.5431257", "0.53008974", "0.5250179", "0.5211884", "0.5195109", "0.5132575", "0.5132047", "0.5092769", "0.50700563", "0.5050393", "0.5045502", "0.5039565", "0.50249183", "0.5022767", "0.50182855", "0.4943815", "0.4943049", "0.49277005", "0.4924356...
0.8331745
0
Sets the reference_nusselt_number_length of this OneOfFluidResultControlsFieldCalculations.
def rADA(YKHO, rADA): YKHO._reference_nusselt_number_length = rADA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B9DR(YKHO, PkcJ):\n YKHO.set_value_into_input_field(YKHO.reference_number_text_field_locator, PkcJ)", "def PkcJ(YKHO, PkcJ):\n YKHO._reference_number = PkcJ", "def aC0l(YKHO, aC0l):\n if aC0l is not None and len(aC0l) > 100:\n raise ValueError('Invalid value for `reference`, length must be ...
[ "0.57414216", "0.5508016", "0.53464097", "0.5167126", "0.5142256", "0.49401107", "0.4882175", "0.48792094", "0.48648196", "0.4861623", "0.48475558", "0.47742194", "0.47560316", "0.47484943", "0.47466946", "0.4700384", "0.46898222", "0.46772367", "0.46453333", "0.46398222", "0...
0.8505514
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, fqBY): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.80891633", "0.80891633", "0.8055254", "0.7983334", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, fqBY): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8456063", "0.83918154", "0.8144437", "0.8140196", "0.8132038", "0.8093834", "0.80918837", "0.80918837", "0.80918837", "0.80852824", "0.80852824", "0.807626", "0.807626", "0.80657643", "0.8042481", "0.8042481", "0.8042481", "0.8042481", "0.8042481", "0.8042481", "0.8042481"...
0.0
-1
given a string URL, return its normalized/unicode form
def CkYf(bD7m): bD7m = wLfR(bD7m) uElJ = KVWQ(bD7m) huD5 = ZO_j(*uElJ) return Hfci(huD5).replace(' ', '%20')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UiCD(l5Ny: str) -> str:\n l5Ny = l5Ny.replace('ü', 'ue')\n l5Ny = l5Ny.replace('ä', 'ae')\n l5Ny = l5Ny.replace('ö', 'oe')\n x0SS = aR7F.sub('-', XKrx(l5Ny).strip(' ').lower())\n x0SS = UyYd.sub('-', x0SS)\n x0SS = x0SS.strip('-')\n return x0SS", "def gmoQ(bD7m: str) -> str:\n SQ3m = ...
[ "0.73168033", "0.7136285", "0.6941001", "0.6931672", "0.6924527", "0.6889752", "0.6874369", "0.6816762", "0.6758843", "0.67231375", "0.66693336", "0.66297746", "0.65911394", "0.65095913", "0.64242226", "0.64219373", "0.64195615", "0.64188385", "0.640887", "0.6408458", "0.6405...
0.77289164
0
given individual url components, return its normalized form
def ZO_j(ht58, GbKX, pmON, SGPK, xDcj, vBtp): ht58 = LSh8(ht58) if not ht58: raise v2zz('missing URL scheme') GbKX = G_wR(ht58, GbKX) if not GbKX: raise v2zz('missing netloc') pmON = cZ8_(ht58, pmON) SGPK = Mi5R(SGPK) xDcj = xWPf(xDcj) vBtp = Fhj6(vBtp) return (ht58, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gmoQ(YKHO, bD7m):\n pass", "def CkYf(bD7m):\n bD7m = wLfR(bD7m)\n uElJ = KVWQ(bD7m)\n huD5 = ZO_j(*uElJ)\n return Hfci(huD5).replace(' ', '%20')", "def NkkI(Emd4, bD7m):\n ht58, RYr6, pmON, xDcj, bGrB = NoPH(bD7m)\n CRy6 = (None, None, pmON, xDcj, None)\n qSFy = (ht58, RYr6, pmON, N...
[ "0.73723054", "0.7322919", "0.7196781", "0.71182257", "0.7067345", "0.7050196", "0.68991303", "0.6898185", "0.6863628", "0.68005294", "0.6794585", "0.66582257", "0.6652341", "0.6620551", "0.6498704", "0.6479304", "0.64688075", "0.64359796", "0.643411", "0.64294314", "0.641449...
0.0
-1
Given a binary string and a mask dictionary, apply the mask to the binary.
def f2Y_(neaT, RsTR): Aofo = '' for YRbF, wEf2 in enumerate(neaT): if RsTR[YRbF] in ('X', '1'): Aofo += RsTR[YRbF] else: Aofo += neaT[YRbF] return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dotb(K522, bsQY):\n ykny = ''\n gbCy = BYSO(bsQY)\n for HkJz, r8hN in zip(gbCy, K522):\n if r8hN == '1':\n ykny += '1'\n elif r8hN == 'X':\n ykny += 'X'\n elif r8hN == '0':\n ykny += HkJz\n return ykny", "def f2Y_(K522, mLGw):\n ykny = ''\n...
[ "0.69420123", "0.6901822", "0.6846594", "0.6670075", "0.62167275", "0.5988227", "0.5975552", "0.59093916", "0.5729339", "0.5657425", "0.5652682", "0.5648805", "0.5546163", "0.55261225", "0.5514006", "0.5490724", "0.54546344", "0.5366755", "0.53645164", "0.53401786", "0.533942...
0.8211301
0
Returns a list of (start_row, end_row, indent) tuples that denote fold locations. Basically anywhere that there's an indent.
def tBHB(XkN1): sNC3 = (wr3U.NL, wr3U.NEWLINE, wr3U.INDENT, wr3U.DEDENT, wr3U.COMMENT) if Hy7s.path.isfile(XkN1): with open(XkN1) as Ki2L: GiaW = wr3U.generate_tokens(Ki2L) else: GiaW = wr3U.generate_tokens(kJm3(XkN1).readline) jEzb = 0 OWsI = 0 UDz6 = 0 p5x4 = []...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WX37(YKHO):\n Meuz = []\n if YKHO.index == 0:\n A4bo = 1\n k3nl = 4\n if YKHO.index == 1:\n A4bo = 6\n k3nl = 9\n for rdlD in range(A4bo, k3nl):\n for fvDH in range(1, 9):\n Meuz += [(fvDH, rdlD)]\n return Meuz", "def K5Si(YKHO):\n kjot = 0\n ...
[ "0.56887203", "0.55070126", "0.54346144", "0.54225534", "0.53652674", "0.5287475", "0.52789724", "0.5240929", "0.5226074", "0.5221965", "0.5214136", "0.5212514", "0.5164901", "0.51648575", "0.51308566", "0.5129636", "0.51209664", "0.5100359", "0.5100359", "0.5088632", "0.5086...
0.6397099
0
The final dense/fully connected layer. Flattens the input, calculates a dense layer with relu activation, and calculates a softmax.
def Ktos(YKHO, VXjJ, _mSQ, oug5): do44, Jarx, FJP9 = VXjJ.shape TLbF = VXjJ.reshape((do44 * Jarx * FJP9, 1)) epBp = (_mSQ[0].dot(TLbF) + oug5[0]) / (_mSQ[0][0].shape[0] + 1) epBp[epBp <= 0] = 0 hlel = (_mSQ[1].dot(epBp) + oug5[1]) / (_mSQ[1][0].shape[0] + 1) return (N93T(hlel), epBp, TLbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VoJx(YKHO, vHnr, I07O, YDYE=None):\n Sqw_ = vHnr.get_shape().as_list()[1]\n Ot1W = [Sqw_, I07O]\n with ZylS.variable_scope(YKHO._count_layer('fully_connected')):\n WZcn = YKHO._get_variable('weights', Ot1W, vHnr.dtype)\n WKvO = ZylS.matmul(vHnr, WZcn)\n WKvO = YKHO._bias(WKvO)\n ...
[ "0.70349437", "0.694018", "0.6913666", "0.6757658", "0.67225885", "0.66238666", "0.655353", "0.65448785", "0.6514575", "0.6512477", "0.6505568", "0.6505281", "0.65028316", "0.64960945", "0.64866436", "0.6467944", "0.64588326", "0.6445641", "0.6424838", "0.6397823", "0.6387207...
0.7179032
0
Calculates a categorical crossentropy.
def KQC9(YKHO, uN02, LVAh): uN02[uN02 == 0] = 10 ** (-10) return -oyIN.sum(LVAh * oyIN.log(uN02))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KQC9(N6Z1, x6A0):\n return e89i.tensor.nnet.categorical_crossentropy(N6Z1, x6A0)", "def KQC9(N6Z1, x6A0):\n return e89i.tensor.nnet.categorical_crossentropy(N6Z1, x6A0)", "def CqbS(**B2fa) -> YrBT:\n return KQC9", "def KQC9(aMgO, Y8eF):\n with ZylS.name_scope('Crossentropy'):\n aMgO /=...
[ "0.81930006", "0.81930006", "0.81714183", "0.79045933", "0.76871896", "0.75537086", "0.7330956", "0.73071635", "0.7303161", "0.71937865", "0.71747774", "0.71682596", "0.7149895", "0.7148791", "0.71252066", "0.7084315", "0.7068743", "0.70625436", "0.7039654", "0.70191294", "0....
0.7524986
6
Initializes the weights of the layers
def KUpm(YKHO, zNig): return oyIN.random.uniform(size=zNig)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTi3(YKHO):\n dIoi.WeightsInitializer.initialize_layer_or_model(YKHO._batch)", "def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYlq(YKHO.conv2)\n uHk4(YKHO.norm1)\n uHk4(YKHO.norm2)", "def sTi3(YKHO):\n for gEmA in YKHO._cnn_layers:\n dIoi.WeightsInitializer.initialize_layer_or_model(gEmA)",...
[ "0.8738031", "0.8723581", "0.8684139", "0.8514848", "0.8495031", "0.8471257", "0.8352827", "0.82469743", "0.8167781", "0.81322646", "0.81322163", "0.80618054", "0.80618054", "0.80618054", "0.8043467", "0.80395854", "0.8032377", "0.8023287", "0.8023287", "0.8023287", "0.801692...
0.0
-1
Test the OGXB homepage.
def hDnz(YKHO): Aofo = YKHO.client.get('/') YKHO.assertEqual(Aofo.status, '200 OK') YKHO.assertIn(b'Game', Aofo.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r6eW(YKHO):\n im04 = YKHO.app.get('/')\n assert 'Enter your url here' in im04.data", "def GvGQ(YKHO):\n YKHO.selenium.get('{}/'.format(YKHO.live_server_url))", "def rKWs(YKHO):\n YKHO.browser.get('http://localhost:8000/index.html')\n YKHO.assertIn('Stability within Movement', YKHO.browser.ti...
[ "0.76347536", "0.7544102", "0.7424962", "0.7417333", "0.738454", "0.7379109", "0.7344799", "0.73371685", "0.7325164", "0.73204124", "0.73004216", "0.73004216", "0.72716224", "0.7257802", "0.71452856", "0.71287614", "0.71247417", "0.7014481", "0.6902986", "0.6900414", "0.68980...
0.0
-1
Should raise Assertion error after failing to open the project.
def IY3_(YKHO): with Po4F('cauldron.steptest.support.open_project') as BxdA: BxdA.side_effect = RuntimeError('FAKE') with YKHO.assertRaises(AssertionError): YKHO.open_project()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r5xE(raTX, aeup):\n if not raTX:\n raise mAW1('the project file is invalid', aeup)", "def zqjM(YKHO):\n bNKA = o1Kh.project.get_internal_project()\n o1Kh.project.load(None)\n with YKHO.assertRaises(Exception):\n YKHO.run_step('FAKE')\n o1Kh.project.load(bNKA)", "def Xz6E():\n ...
[ "0.7184313", "0.68354416", "0.67589736", "0.67013544", "0.66985357", "0.668354", "0.66583335", "0.6623701", "0.66001916", "0.6506534", "0.64775646", "0.64689827", "0.6456676", "0.6456676", "0.6456676", "0.64543563", "0.6437508", "0.63821363", "0.63788325", "0.6371782", "0.636...
0.7996178
0
Add or remove rows to/from a table according to the prescribed growth rate for this model.
def OZkM(YKHO, nPrm, lO87): if YKHO.accounting_column is None: HN6s = int(round(len(nPrm) * YKHO.growth_rate)) else: HN6s = int(round(nPrm[YKHO.accounting_column].sum() * YKHO.growth_rate)) with Sz_K('adding {} rows via growth rate ({}) transition'.format(HN6s, YKHO.growth_rate), bo34): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ME5I(YKHO):\n for rdlD in YKHO.rows:\n YKHO.table.add_row(rdlD)", "def vv8A(YKHO):\n YKHO.table_view.table_model.insertRows(0, 1)", "def qJV_(YKHO, H2v5, YRbF, nvEb):\n YKHO.cust_table.set_value(H2v5, 'period{}_forc_shrink_value_per_day_per_item'.format(YRbF), nvEb)\n Sue8 = YKHO.cust_ta...
[ "0.59543324", "0.5870212", "0.5851199", "0.5700913", "0.56099516", "0.5569551", "0.5550192", "0.5536234", "0.5315424", "0.5291193", "0.52870643", "0.52800435", "0.5176341", "0.51452804", "0.5118861", "0.51136494", "0.51136494", "0.50464267", "0.50421035", "0.50389504", "0.503...
0.62674284
0
compressed_issues is a list of issues, but stripped down to just the information relevant to display them. Search through that list and remove the issue that has the same key as the one given, if one exists.
def BSHF(rfQU, jnOO): for YRbF in jnOO: if YRbF['id'] == rfQU.key: jnOO.remove(YRbF) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fAu6(W5Ak):\n geh0 = []\n for rfQU in W5Ak:\n geh0.append({'title': rfQU['title'], 'body': rfQU['body']})\n return geh0", "def zmqR(YKHO, jDTd):\n for B2KD in jDTd:\n try:\n del YKHO.dict_sha1_infos[str(B2KD)]\n except:\n pass", "def VpXf(YKHO):\n f...
[ "0.5928324", "0.56914544", "0.5603379", "0.52747154", "0.523962", "0.5232505", "0.5203311", "0.5133627", "0.507468", "0.49969307", "0.49756053", "0.49149793", "0.4900445", "0.4870276", "0.48685318", "0.48381662", "0.48151287", "0.47915512", "0.4786567", "0.47820655", "0.47472...
0.8135962
0
Twelve months are remapped (averaged) into four representative months
def JmZF(YKHO, X_bn, qzdC): w0rx = OU4W('test-month-remap') glAV = WI8m(name='test-var', dtype='float', dims=['months'], coords={'months': X_bn}) w0rx.add_input(glAV) zAhi = WI8m(name='test-var', dtype='float', dims=['remap_months'], coords={'remap_months': qzdC}) w0rx.add_output(zAhi) n5sN = w0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SviJ(YKHO, KBgZ, PObu, QpfX):\n X_bn = [(str(exwG), str(exwG)) for exwG in range(1, 13)]\n return X_bn", "def x0eS(YKHO):\n return 0", "def x0eS(YKHO):\n return 0", "def rOBu(YKHO, X_bn, qzdC):\n gr_i = XhQY()\n gr_i.register(zGgl('remap_months', qzdC))\n gr_i.register(zGgl('months',...
[ "0.6534512", "0.621023", "0.621023", "0.6156306", "0.6137878", "0.6072088", "0.60602266", "0.5996288", "0.59737104", "0.5966072", "0.5960885", "0.5929629", "0.5928573", "0.59141344", "0.59138185", "0.5895654", "0.58870685", "0.58551115", "0.58479095", "0.58451617", "0.5839592...
0.0
-1
Returns True if the database contains a table with the given name.
def ZPJA(YKHO, mWFP): Pe9W = "\n SELECT table_name\n FROM information_schema.tables\n WHERE table_schema = '{}'\n AND table_name = '{}'".format(YKHO.db, mWFP) try: YKHO.cursor.execute(Pe9W) Aofo = YKHO.cursor.fetchone() if Aofo: return True ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RPa5(YKHO, mWFP: str) -> bool:\n try:\n YKHO.execute('select * from {table} limit 1', mWFP)\n return True\n except iHv3.OperationalError:\n return False", "def n2Bh(YKHO, GTA_):\n if YKHO.__dbfile is None:\n return False\n N1p7 = YKHO._conn.cursor()\n N1p7.execute(\...
[ "0.88124794", "0.87079996", "0.8435672", "0.84342164", "0.8352136", "0.83260274", "0.83111084", "0.82594836", "0.8169692", "0.8167576", "0.80775243", "0.8076127", "0.8069364", "0.80447614", "0.79407847", "0.79262453", "0.79115665", "0.7906786", "0.7877831", "0.7822014", "0.78...
0.839313
4
Get a command line parser.
def EpPs(): wvEv = B4X0.ArgumentParser(description=__doc__) wvEv.add_argument('paths', nargs='+', help='Image files or directories to crush.') return wvEv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EpPs():\n wvEv = wvEv.ArgumentParser()\n return wvEv", "def EpPs(YKHO):\n wvEv = WDqQ()\n wvEv.add_argument('-c', default='', dest='cmd', help='just like python -c or sh -c (pass in a command)')\n wvEv.add_argument('-e', '--exec', default='', dest='execfile', help='a filename to execute')\n ...
[ "0.85478896", "0.77850306", "0.7679999", "0.76531893", "0.7475671", "0.7475671", "0.746597", "0.74282885", "0.74282354", "0.74103934", "0.73460567", "0.73315305", "0.72972935", "0.7244798", "0.72251326", "0.7224408", "0.722186", "0.72033733", "0.7202008", "0.719787", "0.71916...
0.6936723
33
Constructor to prepare API connection.
def FIMM(YKHO, rJDA, x0hE=KRj_(gi3a)): YKHO.api_key = rJDA YKHO.client = x0hE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super().__init__()\n YKHO._api_url = _RsZ\n YKHO._api_params = aA7m.copy()", "def FIMM(YKHO, rJDA=None, sZ8K=None):\n YKHO.session = G4JS.session()\n MOPg = {'Accept': 'application/json', 'User-Agent': 'binance/python'}\n if rJDA is not None and sZ8K is not None:\n YKHO...
[ "0.77396744", "0.7595165", "0.75662524", "0.74698067", "0.74052596", "0.73577577", "0.7319089", "0.729314", "0.72799826", "0.72796863", "0.7254166", "0.7249879", "0.7218785", "0.72153294", "0.7206745", "0.71909577", "0.7175214", "0.7169476", "0.7145732", "0.7134477", "0.71179...
0.69705606
35
Fetches a random clause if clause_id is not provided, otherwise fetches the corresponding clause.
def abHK(YKHO, cG57, JreV=None): quXU = {'A': 'subject', 'B': 'predicate', 'C': 'outcome'}[cG57] if not JreV: JreV = Vwbk(YKHO.soup, quXU) u2lS = YKHO.soup.find(quXU, number=JreV).description.text exec('self.' + cG57 + '_clause = clause_text') exec('self.' + cG57 + '_clause_id = clause_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jRq6(Emd4, mWFP):\n return super(ZTFu, Emd4).get_by_id(Emd4.normalize_name(mWFP))", "def hkFb(YKHO, g8x2, woks: Sentence, lRr0, eHpk):\n G9jH.debug('Testing Clause: {}'.format(repr(woks)))\n woks = YKHO._start_word_semantics(g8x2, lRr0, woks)\n omWk = set()\n for GIN8 in woks:\n G9jH.in...
[ "0.60154957", "0.48132682", "0.47962016", "0.4780053", "0.46821973", "0.46214458", "0.46161616", "0.45999226", "0.45995572", "0.45859358", "0.4572206", "0.4544576", "0.45406446", "0.45266137", "0.448437", "0.44742808", "0.4469923", "0.44341117", "0.44309717", "0.44247547", "0...
0.6980749
0
Fetches a random carryon (dircetion = +) or a random leadup (dircetion = ). The optional choose argument forces which carryon/leadup to get. This is a generator that yield conflicts one by one, as some carryon/leadups consist of more than one conflict.
def hb55(YKHO, XSoh='+', yRwn=None): import random if XSoh == '+': wPdp = YKHO.links_f elif XSoh == '-': wPdp = YKHO.links_b else: raise ValueError('Undefined direction argument') if len(wPdp.link) == 0: raise ICBp('No carry ons') if yRwn == None: yRwn = r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SY1n(YKHO):\n global num_dots\n jzdc = HDoh - 1\n Fg_i = HDoh - 2\n Z9rn = HDoh - 3\n Csk6 = HDoh - 4\n if jzdc % 5 == 0:\n N08E = 1\n elif Fg_i % 5 == 0:\n N08E = 2\n elif Z9rn % 5 == 0:\n N08E = 3\n elif Csk6 % 5 == 0:\n N08E = 4\n else:\n N08E...
[ "0.55544925", "0.5463966", "0.5431445", "0.53285843", "0.5324812", "0.5318963", "0.5267297", "0.52581954", "0.52472216", "0.5215928", "0.52149457", "0.52056396", "0.52020866", "0.51932526", "0.5186982", "0.5169431", "0.5157991", "0.5152152", "0.5140235", "0.5136387", "0.51195...
0.67907006
0
Return whether this stack contains no items. >>> s = Stack() >>> s.is_empty() True >>> s.push('hello') >>> s.is_empty() False
def FBfn(YKHO) -> bool: return len(YKHO._items) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n if YKHO.num_items == 0:\n return True\n else:\n return False", "def FBfn(YKHO):\n return YKHO._stack_items == []", "def FBfn(YKHO):\n return len(YKHO.the_stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def A4KR(YKHO):\n return len(YKHO.stack...
[ "0.8721869", "0.86406344", "0.8567535", "0.84289664", "0.8358576", "0.8349384", "0.83198047", "0.8240932", "0.8209109", "0.81546515", "0.81546515", "0.81051683", "0.8102384", "0.81005496", "0.8091995", "0.80657357", "0.80584216", "0.8047883", "0.8045528", "0.8035207", "0.8026...
0.8062829
16
Add a new element to the top of this stack.
def _jXH(YKHO, ZfUD: Any) -> None: YKHO._items.append(ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, U6D_):\n YKHO.the_stack.append(U6D_)", "def _jXH(YKHO, KhvA):\n YKHO.ll.insert_first(KhvA)", "def _jXH(YKHO, khtY):\n YKHO.top += 1\n YKHO.stack.append(khtY)", "def _jXH(YKHO, ZfUD):\n YKHO.stack.insert(0, ZfUD)", "def _jXH(YKHO, LihS):\n if R2G_ and len(YKHO.stack) > R2G_:...
[ "0.7795522", "0.72629446", "0.72370446", "0.7226988", "0.7199398", "0.7125915", "0.7125915", "0.7125915", "0.71146506", "0.7055988", "0.703948", "0.7038767", "0.69869816", "0.6954181", "0.6954181", "0.69469106", "0.693951", "0.6915541", "0.691189", "0.6902007", "0.6898625", ...
0.0
-1
Get longest 1s sequence of input value with flip each bit
def zQYk(exwG): hOA9 = 0 for YRbF in range(vqRd): hOA9 = max(hOA9, FjpC(exwG, YRbF)) return hOA9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WOiU(WKvO):\n Snsm = 0\n while WKvO % 2 == 0 and WKvO:\n Snsm += 1\n WKvO >>= 1\n if not WKvO:\n return 1\n j_sO, Ylbp, bjef = (0, 0, 0)\n while WKvO & 1:\n j_sO += 1\n WKvO >>= 1\n if not WKvO:\n return j_sO\n Ylbp = j_sO + Snsm != 0\n WKvO >>=...
[ "0.70132214", "0.67310596", "0.67078215", "0.66327786", "0.65524876", "0.6487207", "0.64595675", "0.63146794", "0.62952125", "0.6293493", "0.626424", "0.6251499", "0.6226399", "0.6203193", "0.6192514", "0.61597425", "0.6119437", "0.60940146", "0.608897", "0.6054282", "0.60450...
0.0
-1
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8040086", "0.79256725", "0.7923959", "0.78855336", "0.78781366", "0.7816429", "0.7766289", "0.7756418", "0.7744994", "0.77324396", "0.77295053", "0.77257586", "0.77034765", "0.7690202", "0.7690202", "0.7664886", "0.7657751", "0.7656609", "0.7656609", "0.7646568", "0.764656...
0.74497783
62
Optionally restricts the returned purchases to a given user, by filtering against a `username` query parameter in the URL.
def k66M(YKHO): SR0I = q9PP.objects.all() id = YKHO.request.query_params.get('id') NtPg = YKHO.request.query_params.get('cedula') if id is not None: SR0I = SR0I.filter(id=id) return SR0I if NtPg is not None: SR0I = SR0I.filter(cedula=NtPg) return SR0I return SR0I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n NtEF = YKHO.kwargs.get('username', None)\n KUnM = {}\n if NtEF:\n KUnM['user__username'] = NtEF\n return super(_qsD, YKHO).get_queryset().filter(**KUnM)", "def fRXs(YKHO, QePW, SR0I, tTee):\n if tTee.action == 'list':\n DW23 = QePW.GET.get('users')\n if DW23:...
[ "0.59675545", "0.5965039", "0.59329563", "0.591112", "0.5906636", "0.56630075", "0.5653514", "0.55474776", "0.5540568", "0.55116814", "0.5503135", "0.549428", "0.5486801", "0.54832596", "0.5472476", "0.5471063", "0.5450648", "0.541672", "0.54061854", "0.5381719", "0.53731793"...
0.0
-1
Optionally restricts the returned purchases to a given user, by filtering against a `username` query parameter in the URL.
def k66M(YKHO): SR0I = hAR6.objects.all() QhXx = YKHO.request.query_params.get('nombre') print(QhXx) if QhXx is not None: SR0I = SR0I.filter(nombre__icontains=QhXx) return SR0I return SR0I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n NtEF = YKHO.kwargs.get('username', None)\n KUnM = {}\n if NtEF:\n KUnM['user__username'] = NtEF\n return super(_qsD, YKHO).get_queryset().filter(**KUnM)", "def fRXs(YKHO, QePW, SR0I, tTee):\n if tTee.action == 'list':\n DW23 = QePW.GET.get('users')\n if DW23:...
[ "0.5968108", "0.59659094", "0.59338", "0.59118384", "0.5908102", "0.56630045", "0.56534576", "0.554612", "0.5540686", "0.5510677", "0.5504299", "0.54937184", "0.54871666", "0.5482915", "0.54725003", "0.5471175", "0.545114", "0.5415667", "0.5406434", "0.53824294", "0.53717166"...
0.0
-1
Optionally restricts the returned purchases to a given user, by filtering against a `username` query parameter in the URL.
def k66M(YKHO): SR0I = eZ_f.objects.all() iBtz = YKHO.request.query_params.get('n_venta') if iBtz is not None: SR0I = SR0I.filter(n_venta=iBtz) return SR0I return SR0I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n NtEF = YKHO.kwargs.get('username', None)\n KUnM = {}\n if NtEF:\n KUnM['user__username'] = NtEF\n return super(_qsD, YKHO).get_queryset().filter(**KUnM)", "def fRXs(YKHO, QePW, SR0I, tTee):\n if tTee.action == 'list':\n DW23 = QePW.GET.get('users')\n if DW23:...
[ "0.59699035", "0.59665763", "0.59351", "0.59134907", "0.5907972", "0.56645304", "0.56552756", "0.5547018", "0.5542082", "0.55114317", "0.5501799", "0.5495832", "0.5489346", "0.54839647", "0.54715014", "0.5471053", "0.5451177", "0.54174745", "0.5407697", "0.5383397", "0.537290...
0.0
-1
Optionally restricts the returned purchases to a given user, by filtering against a `username` query parameter in the URL.
def k66M(YKHO): SR0I = TpKP.objects.all() Tj6F = YKHO.request.query_params.get('fk_venta') if Tj6F is not None: SR0I = SR0I.filter(fk_venta=Tj6F) return SR0I return SR0I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n NtEF = YKHO.kwargs.get('username', None)\n KUnM = {}\n if NtEF:\n KUnM['user__username'] = NtEF\n return super(_qsD, YKHO).get_queryset().filter(**KUnM)", "def fRXs(YKHO, QePW, SR0I, tTee):\n if tTee.action == 'list':\n DW23 = QePW.GET.get('users')\n if DW23:...
[ "0.5968246", "0.59660697", "0.5933852", "0.59120125", "0.5905824", "0.5664086", "0.5653617", "0.5545852", "0.5541743", "0.5511397", "0.5503343", "0.5495237", "0.54874337", "0.5483638", "0.5472281", "0.5471483", "0.5451547", "0.5416162", "0.5407321", "0.5380891", "0.53716034",...
0.0
-1
Optionally restricts the returned purchases to a given user, by filtering against a `username` query parameter in the URL.
def k66M(YKHO): SR0I = TpKP.objects.all() Tj6F = YKHO.request.query_params.get('fk_venta') if Tj6F is not None: SR0I = SR0I.filter(fk_venta=Tj6F) return SR0I return SR0I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n NtEF = YKHO.kwargs.get('username', None)\n KUnM = {}\n if NtEF:\n KUnM['user__username'] = NtEF\n return super(_qsD, YKHO).get_queryset().filter(**KUnM)", "def fRXs(YKHO, QePW, SR0I, tTee):\n if tTee.action == 'list':\n DW23 = QePW.GET.get('users')\n if DW23:...
[ "0.59675545", "0.5965039", "0.59329563", "0.591112", "0.5906636", "0.56630075", "0.5653514", "0.55474776", "0.5540568", "0.55116814", "0.5503135", "0.549428", "0.5486801", "0.54832596", "0.5472476", "0.5471063", "0.5450648", "0.541672", "0.54061854", "0.5381719", "0.53731793"...
0.0
-1
Returns a list of prime number less than or equal to the given number 'n'
def VntY(exwG): if exwG <= 1: return [] OMrD = [2] for YRbF in range(3, exwG, 2): T1qg = True for r845 in OMrD: if YRbF % r845 == 0: T1qg = False break if T1qg: OMrD.append(YRbF) return OMrD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _a2T(exwG):\n JscZ = []\n for YRbF in range(exwG):\n if T1qg(YRbF):\n JscZ.append(YRbF)\n return JscZ", "def hdnT(exwG):\n RTEw = list(range(3, int(pBSp(PZyS(exwG))), 2))\n ptlK = [True] * ((exwG - 2) // 2)\n for jzdc in RTEw:\n FSpy = jzdc ** 2\n while FSpy ...
[ "0.847243", "0.8429201", "0.8423028", "0.8253207", "0.8227135", "0.82095414", "0.80518067", "0.80211437", "0.8001455", "0.79861915", "0.7967432", "0.79163927", "0.79094094", "0.7903886", "0.7885929", "0.78649974", "0.78557867", "0.7823906", "0.7822633", "0.7822186", "0.782137...
0.8506523
0
Prepares the test fixture before each test method is called.
def FCbF(YKHO): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qTTL(YKHO):\n pass", "def tbq9(YKHO):\n pass", "def FCbF(YKHO):\n YKHO.dataset = eis1()", "def FCbF(YKHO):\n super(_znt, YKHO).setUp()\n YKHO.useFixture(vRCC.NestedTempfile())\n YKHO.useFixture(vRCC.TempHomeDir())\n YKHO.useFixture(bWeC.StandardLogging())\n YKHO.addCleanup(YKHO._c...
[ "0.7592348", "0.7381866", "0.7099172", "0.69481707", "0.69481707", "0.69362855", "0.68939835", "0.6884558", "0.68642", "0.6837688", "0.68177116", "0.67925274", "0.6778029", "0.6775666", "0.67700386", "0.6727651", "0.67172766", "0.67049044", "0.6687046", "0.66869044", "0.66757...
0.66596514
24
Compute dual of a point
def r9jG(V6IE): return NTRO(V6IE.x, -V6IE.y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _sQW(nJ9F, nxyw, o4D3, si3g):\n return (nJ9F - o4D3) * (nJ9F - o4D3) + (nxyw - si3g) * (nxyw - si3g)", "def zOGa(V6IE):\n A3Vt = AU8u(0, 0, V6IE.c)\n YRbF = 3 * V6IE.x ** 2 + V6IE.c.a\n r845 = 2 * V6IE.y\n KCHu = YRbF * hXJC(r845, V6IE.c.p) % V6IE.c.p\n A3Vt.x = (KCHu ** 2 - 2 * V6IE.x) % V...
[ "0.67110425", "0.67071027", "0.6491836", "0.6395366", "0.6242045", "0.6226883", "0.61723244", "0.60957676", "0.60613114", "0.6056031", "0.60181284", "0.60000265", "0.597179", "0.59556603", "0.5954467", "0.5891816", "0.58701", "0.5846944", "0.581005", "0.5806165", "0.5802982",...
0.661317
2
returns the crossproduct of two 3vectors
def WHx2(jzdc, Fg_i): dg7v = jzdc[1] * Fg_i[2] - jzdc[2] * Fg_i[1] iYf1 = jzdc[2] * Fg_i[0] - jzdc[0] * Fg_i[2] NsEr = jzdc[0] * Fg_i[1] - jzdc[1] * Fg_i[0] return H4yH.array([dg7v, iYf1, NsEr])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnaF(hQHm, jlSq):\n return _J6W.CG3dVector(hQHm[1] * jlSq[2] - jlSq[1] * hQHm[2], hQHm[2] * jlSq[0] - jlSq[2] * hQHm[0], hQHm[0] * jlSq[1] - jlSq[0] * hQHm[1])", "def XHzM(EBgd, HpuQ, Lq8X):\n return -(EBgd[1] * HpuQ[0]) + EBgd[0] * HpuQ[1] + EBgd[1] * Lq8X[0] - HpuQ[1] * Lq8X[0] - EBgd[0] * Lq8X[1] + ...
[ "0.84502965", "0.81323415", "0.80305284", "0.80217886", "0.8014611", "0.79637253", "0.7955808", "0.7948951", "0.7942795", "0.7931019", "0.7878767", "0.78346014", "0.78029263", "0.77601814", "0.77572405", "0.77122545", "0.76691836", "0.7585817", "0.7578047", "0.7487682", "0.73...
0.80275923
3
returns the dot product of two 3vectors
def BJ1H(jzdc, Fg_i): return jzdc[0] * Fg_i[0] + jzdc[1] * Fg_i[1] + jzdc[2] * Fg_i[2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pxL1(lSjb, v8Fa):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(lSjb, v8Fa)))", "def pxL1(cntZ, Elif):\n if isinstance(cntZ, j6_a.Vector) and isinstance(Elif, j6_a.Vector):\n return cntZ.x * Elif.x + cntZ.y * Elif.y + cntZ.z * Elif.z", "def QLUs(hQHm, jlSq):\n return hQHm.x * jlSq.x + hQH...
[ "0.8241671", "0.8210472", "0.8185444", "0.81487113", "0.8121103", "0.80768824", "0.8049511", "0.803932", "0.8011135", "0.79798156", "0.7977912", "0.79358697", "0.7925288", "0.7920181", "0.79008067", "0.7894965", "0.7877759", "0.7866867", "0.7838292", "0.778045", "0.7716787", ...
0.7842288
18
Return the name of the InputItem.
def mWFP(YKHO): return YKHO.key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dvRm(YKHO):\n return YKHO.__item_name", "def mWFP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'name')", "def mWFP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'name')", "def mWFP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'name')", "def mWFP(YKHO) -> qe4Y.Input[str]:\n ...
[ "0.7797194", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "0.7607627", "...
0.0
-1
Return the widget's value.
def BWXx(YKHO): return str(YKHO.input.text())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.86192983", "0.7837043", "0.78089726", "0.7701881", "0.7701881", "0.7701881", "0.7695642", "0.764018", "0.7638825", "0.7638825", "0.7597688", "0.7591426", "0.75806963", "0.7574966", "0.7552569", "0.7552569", "0.7552569", "0.7529296", "0.7516486", "0.75080454", "0.74951786",...
0.7282812
36
Change the widget's value.
def mokr(YKHO, wEf2): YKHO.input.setText(str(wEf2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.81650984", "0.81335413", "0.8046718", "0.7894542", "0.789224", "0.7573783", "0.7570143", "0.75580525", "0.75474405", "0.7512271", "0.74522203", "0.7410017", "0.73818564", "0.73771447", "0.7359452", "0.7359452", "0.7359452", "0.73161274", "0.72585565", "0.72566986", "0.7226...
0.80233526
3
Return the widget's value.
def BWXx(YKHO): return YKHO._value_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8619286", "0.7838884", "0.7805611", "0.7696525", "0.7696525", "0.7696525", "0.76916736", "0.7636346", "0.7633243", "0.7633243", "0.7592193", "0.7586152", "0.7577611", "0.7571931", "0.7547001", "0.7547001", "0.7547001", "0.75265634", "0.7511581", "0.75024223", "0.74897397",...
0.71861374
74
Change the widget's value.
def mokr(YKHO, wEf2): wEf2 = str(wEf2) if YKHO._plain: YKHO.input.setText(wEf2) else: DJSo(YKHO.input, wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.81650984", "0.81335413", "0.8046718", "0.80233526", "0.7894542", "0.789224", "0.7573783", "0.7570143", "0.75580525", "0.7512271", "0.74522203", "0.7410017", "0.73818564", "0.73771447", "0.7359452", "0.7359452", "0.7359452", "0.73161274", "0.72585565", "0.72566986", "0.7226...
0.75474405
9
Return the widget's value.
def BWXx(YKHO): KCHu = str(YKHO.input.text()) if YKHO._is_string_: return KCHu else: return eval(KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.86192983", "0.7837043", "0.78089726", "0.7701881", "0.7701881", "0.7701881", "0.7695642", "0.764018", "0.7638825", "0.7638825", "0.7597688", "0.7591426", "0.75806963", "0.7574966", "0.7552569", "0.7552569", "0.7552569", "0.7529296", "0.7516486", "0.75080454", "0.74951786",...
0.0
-1
Return the widget's value.
def BWXx(YKHO): KCHu = str(YKHO.input.toPlainText()) if YKHO._is_string_: return KCHu else: return eval(KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8619286", "0.7838884", "0.7805611", "0.7696525", "0.7696525", "0.7696525", "0.76916736", "0.7636346", "0.7633243", "0.7633243", "0.7592193", "0.7586152", "0.7577611", "0.7571931", "0.7547001", "0.7547001", "0.7547001", "0.75265634", "0.7511581", "0.75024223", "0.74897397",...
0.0
-1
Change the widget's value.
def mokr(YKHO, wEf2): if YKHO._plain: YKHO.input.setPlainText(str(wEf2)) else: DJSo(YKHO.input, str(wEf2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.81634307", "0.81331855", "0.80457467", "0.80234236", "0.78933406", "0.7892486", "0.7573996", "0.7568683", "0.75586784", "0.7547441", "0.751063", "0.745214", "0.7408914", "0.7382569", "0.73779815", "0.7358218", "0.7358218", "0.7358218", "0.731455", "0.72589403", "0.7255768"...
0.7190007
24
Return the widget's value.
def BWXx(YKHO): return YKHO.input.checkState() == wDYU.Qt.Checked
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8619286", "0.7838884", "0.7805611", "0.7696525", "0.7696525", "0.7696525", "0.76916736", "0.7636346", "0.7633243", "0.7633243", "0.7592193", "0.7586152", "0.7577611", "0.7571931", "0.7547001", "0.7547001", "0.7547001", "0.75265634", "0.7511581", "0.75024223", "0.74897397",...
0.0
-1
Change the widget's value.
def mokr(YKHO, wEf2): if wEf2: YKHO.input.setCheckState(wDYU.Qt.Checked) else: YKHO.input.setCheckState(wDYU.Qt.Unchecked)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.81634307", "0.81331855", "0.80457467", "0.80234236", "0.78933406", "0.7892486", "0.7573996", "0.7568683", "0.75586784", "0.7547441", "0.751063", "0.745214", "0.7408914", "0.7382569", "0.73779815", "0.7358218", "0.7358218", "0.7358218", "0.731455", "0.72589403", "0.7255768"...
0.632798
91
Return the widget's value.
def BWXx(YKHO): if YKHO._check_: eHNT = YKHO.getChecked else: eHNT = YKHO.getSelected return eHNT()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8619286", "0.7838884", "0.7805611", "0.7696525", "0.7696525", "0.7696525", "0.76916736", "0.7636346", "0.7633243", "0.7633243", "0.7592193", "0.7586152", "0.7577611", "0.7571931", "0.7547001", "0.7547001", "0.7547001", "0.75265634", "0.7511581", "0.75024223", "0.74897397",...
0.71907926
73
Change the widget's value.
def mokr(YKHO, wEf2): if YKHO._check_: eHNT = YKHO.setChecked else: eHNT = YKHO.setSelected eHNT(wEf2, True) eHNT(CawA.difference(YKHO._choices_, wEf2), False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.81634307", "0.81331855", "0.80457467", "0.80234236", "0.78933406", "0.7892486", "0.7573996", "0.7568683", "0.75586784", "0.7547441", "0.751063", "0.745214", "0.7408914", "0.7382569", "0.73779815", "0.7358218", "0.7358218", "0.7358218", "0.731455", "0.72589403", "0.7255768"...
0.0
-1
Return the widget's value.
def BWXx(YKHO): return str(YKHO.input.currentText())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8619286", "0.7838884", "0.7805611", "0.7696525", "0.7696525", "0.7696525", "0.76916736", "0.7636346", "0.7633243", "0.7633243", "0.7592193", "0.7586152", "0.7577611", "0.7571931", "0.7547001", "0.7547001", "0.7547001", "0.75265634", "0.7511581", "0.75024223", "0.74897397",...
0.7197077
71
Change the widget's value.
def mokr(YKHO, wEf2): wEf2 = str(wEf2) if wEf2 in YKHO._choices_: YKHO.input.setCurrentIndex(YKHO._choices_.index(wEf2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.81634307", "0.81331855", "0.80457467", "0.80234236", "0.78933406", "0.7892486", "0.7573996", "0.7568683", "0.75586784", "0.7547441", "0.751063", "0.745214", "0.7408914", "0.7382569", "0.73779815", "0.7358218", "0.7358218", "0.7358218", "0.731455", "0.72589403", "0.7255768"...
0.67268
54
Return the widget's value.
def BWXx(YKHO): for FohR in YKHO.rb: if FohR.isChecked(): return str(FohR.text()) return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8619286", "0.7838884", "0.7805611", "0.7696525", "0.7696525", "0.7696525", "0.76916736", "0.7636346", "0.7633243", "0.7633243", "0.7592193", "0.7586152", "0.7577611", "0.7571931", "0.7547001", "0.7547001", "0.7547001", "0.75265634", "0.7511581", "0.75024223", "0.74897397",...
0.0
-1
Change the widget's value.
def mokr(YKHO, wEf2): wEf2 = str(wEf2) for FohR in YKHO.rb: if FohR.text() == wEf2: FohR.setChecked(True) break
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n ...
[ "0.8164613", "0.81342715", "0.80459005", "0.80246407", "0.7893645", "0.78935117", "0.7575533", "0.75690585", "0.75590235", "0.7548683", "0.75123805", "0.7453666", "0.74110395", "0.73848647", "0.7379169", "0.7360229", "0.7360229", "0.7360229", "0.7316806", "0.7260266", "0.7256...
0.0
-1
Return the widget's value.
def BWXx(YKHO): for FohR in YKHO.rb: if FohR.isDown(): return str(FohR.text()) return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n if YKHO.notebook:\n return YKHO.widget.value\n elif hasattr(YKHO.widget, 'value'):\n return YKHO.widget.value()\n elif hasattr(YKHO.widget, 'currentText'):\n return YKHO.widget.currentText()\n elif hasattr(YKHO.widget, 'text'):\n return YKHO.widget.text()",...
[ "0.8619286", "0.7838884", "0.7805611", "0.7696525", "0.7696525", "0.7696525", "0.76916736", "0.7636346", "0.7633243", "0.7633243", "0.7592193", "0.7586152", "0.7577611", "0.7571931", "0.7547001", "0.7547001", "0.7547001", "0.75265634", "0.7511581", "0.75024223", "0.74897397",...
0.0
-1