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
Gets the Y offset for a subtitle, which depends on the amount of other subtitles in the same frame, starting from the bottom of the screen.
def akQ_(ICn2, v1Ji, vJPk): if not ICn2['time'] in v1Ji: return vJPk.h - ZIBb else: return vJPk.h - ZIBb * (v1Ji[ICn2['time']] + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def boAb(YKHO):\n return YKHO.rect.y", "def EBA4(YKHO) -> int:\n YKHO.tk_ref.update()\n return YKHO.tk_ref.winfo_y()", "def boAb(YKHO):\n return YKHO.actual_coordinates[1]", "def ntkL(ICn2, v1Ji, lmHl):\n TVTK = lmHl.w\n l5Ny = ICn2['text'].encode('utf-8')\n if len(l5Ny) > TVTK / 40:\n ...
[ "0.6871079", "0.6715393", "0.65705156", "0.65487295", "0.651345", "0.64495647", "0.64017105", "0.6387945", "0.6371842", "0.63330126", "0.6286153", "0.62763995", "0.6214757", "0.6162144", "0.61399627", "0.6102879", "0.60661423", "0.59722424", "0.59592944", "0.59530646", "0.593...
0.7431569
0
Close connection to server
def DDI8(YKHO): raise NotImplementedError('Implement this method in child class')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DOtz(YKHO):\n YKHO.socket.close()", "def zml5(YKHO):\n print('closing connection...')\n YKHO.s.close()\n quit()", "def ngVb(YKHO):\n YKHO._connection.close()\n print('Closed connection....')", "def ngVb(YKHO):\n YKHO.nodesocket.close()", "def ngVb(YKHO):\n if YKHO.socket:\n ...
[ "0.82518435", "0.8013835", "0.7980111", "0.7974678", "0.7892853", "0.78618973", "0.7861448", "0.7830445", "0.7802471", "0.77964634", "0.77766716", "0.7768273", "0.7763801", "0.7720741", "0.7711053", "0.77023023", "0.76916564", "0.76901287", "0.76901287", "0.7668527", "0.76062...
0.0
-1
displays a series of box plots to compare how the distribution of the numerical variable changes if we only consider the subpopulation which belongs to each category. There should be as many box plots as categories. For example, with Sex and Height, we would compare the height distributions of men vs. women with two bo...
def bvoa(PYiU, xiDN): uuEx.boxplot(x=PYiU, y=xiDN, palette='Set2') QrM1.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZaZ(EzBf, O4ib, tHAM, ytDn, dfBV=True):\n for iVRZ in EzBf.columns:\n NwL4 = len(NArs.t_categorical) + len(NArs.anova_categorical)\n LZpg = cqbg(rows=NwL4, cols=1, subplot_titles=[YRbF for YRbF in range(NwL4)])\n RXWL = 1\n for BWXx in O4ib.columns:\n LzmR = rLdf.Data...
[ "0.76015925", "0.7292726", "0.6860297", "0.6739673", "0.6734272", "0.65847844", "0.6579316", "0.64898026", "0.64578336", "0.6454206", "0.6438693", "0.64298517", "0.64173603", "0.6410453", "0.6374145", "0.63566065", "0.6331191", "0.62990534", "0.6277556", "0.6241496", "0.62268...
0.75841045
1
Get the root directory that a file is contained in.
def OrQH(Ux0P): if Hy7s.path.sep not in Ux0P: return '' else: cA8B, bGrB = Ux0P.split(Hy7s.path.sep, 1) return cA8B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tTqh():\n return gnPz.path(xAKo).parent.parent.abspath()", "def jNha():\n return GkAb(xAKo).parent.parent", "def sc0A() -> str:\n return '{}/../'.format(_0jb(xAKo))", "def jNha():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo + '/..'))", "def jNha():\n return Hy7s.path.dirname(Hy7s....
[ "0.8401718", "0.8232456", "0.8170139", "0.81362903", "0.81362903", "0.8120479", "0.8059272", "0.80056167", "0.7933893", "0.78993785", "0.75052685", "0.74868345", "0.74257714", "0.7146845", "0.71027595", "0.71027595", "0.71027595", "0.71027595", "0.70947593", "0.7057569", "0.7...
0.67791116
44
Gets a list of files in the repository. By default, returns all files via ``git lsfiles``. However, in some cases uses a specific commit or branch (a socalled diff base) to compare against for changed files. (This requires ``allow_limited=True``.) To speed up linting on Travis pull requests against master, we manually ...
def rTm7(FlMj=True): KmmV = None if xAuJ(): if xSTE(): KmmV = hEly() else: KmmV = c8q4() if KmmV is not None and FlMj: Aofo = Yn3K.check_output(['git', 'diff', '--name-only', KmmV]) print('Using files changed relative to %s:' % (KmmV,)) print('-' * 60)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sG9H():\n nnUR = 'origin/master'\n obW_ = Yn3K.check_output('git rev-list HEAD ^{} -- 2>/dev/null | tail -1'.format(nnUR), shell=True).strip().decode()\n KmmV = Yn3K.check_output(['git', 'rev-parse', obW_ + '^']).strip().decode() if obW_ else 'HEAD'\n RRlC = Yn3K.check_output(['git', 'diff', '--nam...
[ "0.68072855", "0.6585311", "0.65016973", "0.6431687", "0.6408093", "0.63697475", "0.6324268", "0.6173308", "0.61671096", "0.6108347", "0.6102892", "0.6068903", "0.60369605", "0.60089475", "0.59494555", "0.594484", "0.5936034", "0.5860184", "0.58455664", "0.5807658", "0.577531...
0.7726773
0
Run the scion infrastructure.
def iXC1(YKHO): YKHO.scion_sh('run', 'nobuild')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXC1():\n b8V_()", "def iXC1(YKHO):\n YKHO.cancelled = False\n YKHO.epw = YKHO.idf.epw.copy(YKHO.run_dir / 'in.epw').expand()\n YKHO.idfname = GkAb(YKHO.idf.savecopy(YKHO.run_dir / 'in.idf')).expand()\n YKHO.idd = YKHO.idf.iddname.copy(YKHO.run_dir).expand()\n mTjy = RDuA.which('Slab', path...
[ "0.6894294", "0.67111385", "0.6558443", "0.6557938", "0.6533668", "0.65227413", "0.64662033", "0.6451506", "0.6443237", "0.6443237", "0.6387801", "0.6335682", "0.62957275", "0.62941146", "0.62941146", "0.62853104", "0.62822205", "0.6256149", "0.62518", "0.6247002", "0.6216785...
0.60222375
74
Return the SCION Daemon address for the given AS.
def sWw7(mg1G: ISD_AS, bIwZ: bool=True, WQlj: str='gen'): with open('%s/sciond_addresses.json' % WQlj) as eHNT: Mnxw = qQXR.load(eHNT) D8Ke = Mnxw[str(mg1G)] if not bIwZ: return D8Ke if ':' in D8Ke: return '[%s]:30255' % D8Ke return '%s:30255' % D8Ke
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bJPR(YKHO):\n return YKHO.config.dict['fhdhr']['discovery_address']", "def EnsD(YKHO):\n if 'PULSE_DBUS_SERVER' in Hy7s.environ:\n UTX6 = Hy7s.environ['PULSE_DBUS_SERVER']\n else:\n Pjr8 = d2t1.SessionBus()\n zssM = Pjr8.get_object('org.PulseAudio1', '/org/pulseaudio/server_look...
[ "0.56370544", "0.5573383", "0.5548528", "0.5532349", "0.55310917", "0.5499036", "0.5443087", "0.5443087", "0.5443087", "0.5388371", "0.5364227", "0.53483105", "0.53415495", "0.5340382", "0.53012794", "0.52578723", "0.5252672", "0.52433074", "0.52349323", "0.5192276", "0.51766...
0.646356
0
Convert a QuantumCircuit or Instruction to a SuperOp.
def kBt4(Emd4, LE47): if isinstance(LE47, Rv0t): LE47 = LE47.to_instruction() khtY = WPcI(oyIN.eye(4 ** LE47.num_qubits)) khtY._append_instruction(LE47) return khtY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rWkg(Emd4, YEnM):\n if not isinstance(YEnM, udu8):\n raise eP6a('Input is not an instruction.')\n FyXI = None\n if YEnM.name == 'reset':\n FyXI = WPcI(oyIN.array([[1, 0, 0, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]))\n if YEnM.name == 'kraus':\n JeTB = YEnM.params\n ...
[ "0.8351595", "0.6264704", "0.5904475", "0.5782806", "0.56627077", "0.56250596", "0.5613012", "0.55981225", "0.54336154", "0.5408546", "0.5291557", "0.51504314", "0.5107355", "0.50530857", "0.50515395", "0.5019881", "0.4994049", "0.49794614", "0.49697796", "0.49418667", "0.493...
0.7272304
1
Return superop for instruction if defined or None otherwise.
def rWkg(Emd4, YEnM): if not isinstance(YEnM, udu8): raise eP6a('Input is not an instruction.') FyXI = None if YEnM.name == 'reset': FyXI = WPcI(oyIN.array([[1, 0, 0, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]])) if YEnM.name == 'kraus': JeTB = YEnM.params tpio = len(Je...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kuMQ(YKHO):\n if YKHO.op is None:\n return None\n return YKHO.op.value", "def kBt4(Emd4, LE47):\n if isinstance(LE47, Rv0t):\n LE47 = LE47.to_instruction()\n khtY = WPcI(oyIN.eye(4 ** LE47.num_qubits))\n khtY._append_instruction(LE47)\n return khtY", "def khtY(YKHO):\n re...
[ "0.5760486", "0.57321495", "0.5578271", "0.5493956", "0.5478866", "0.53974533", "0.5389522", "0.53331083", "0.52625275", "0.5248053", "0.51757765", "0.51658475", "0.51658475", "0.5144784", "0.51346594", "0.5126073", "0.51252216", "0.5003728", "0.4977125", "0.49703795", "0.496...
0.5808667
0
Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value.
def p0AS(YKHO, xYvp: List[int], pan_: int) -> x1iM[int]: if not xYvp: return [-1, -1] exwG = len(xYvp) yKcO, Os4s = (0, exwG - 1) while yKcO <= Os4s: x1fj = yKcO + (Os4s - yKcO + 1 + 1) // 2 - 1 LFlW = _tIi = -1 if xYvp[x1fj] == pan_: LFlW = _tIi = x1fj ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zP3h(xYvp, pan_):\n _0VL = []\n YRbF = 0\n YIN2 = False\n while not YIN2:\n UKCN = xYvp[YRbF]\n for r845 in range(YRbF + 1, len(xYvp)):\n UKCN += xYvp[r845]\n if UKCN == pan_:\n YIN2 = True\n _0VL = [YRbF, r845]\n brea...
[ "0.73196596", "0.7164879", "0.7095252", "0.7071248", "0.7047297", "0.692583", "0.6843794", "0.6821333", "0.6801539", "0.678413", "0.67623436", "0.67500114", "0.6664088", "0.6656021", "0.66495335", "0.66300666", "0.6585061", "0.65830064", "0.65588087", "0.65181464", "0.6515593...
0.7592814
0
default page, just a joke
def Z1md(): RVgU = 'Q: What do you get if you cross a bike and a flower? \n A: Bicycle petals! \n ' rCm6 = 'http://www.jokes4us.com/sportsjokes/cyclingjokes.html' return RVgU + rCm6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n bpFo = ''\n Wkxa = cuiw.get('UserType', None)\n if Wkxa == None:\n bpFo = 'anonHome.jade'\n elif Wkxa == 'Seeker':\n bpFo = 'indexJob.jade'\n elif Wkxa == 'Manager':\n bpFo = 'indexManager.jade'\n VQPB = nKyW('static', filename='loop frog.gif')\n kKyQ = cuiw....
[ "0.69797826", "0.6865895", "0.68497777", "0.68460566", "0.68264747", "0.68225265", "0.6811252", "0.67917794", "0.67917794", "0.67547846", "0.675415", "0.67440146", "0.6720233", "0.66646886", "0.6653646", "0.6642936", "0.6632548", "0.66298246", "0.6623763", "0.6593027", "0.659...
0.0
-1
index page with some links to display database, usually not used
def d6pt(): return TvZl('index.html', title='Index')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(QePW):\n return _1tc(QePW, 'dbkeeper/index.html')", "def d6pt():\n Tmto = a79v('general')\n sdCG = 'ALLOVER THE WORLD NEWS'\n return TvZl('index.html', title=sdCG, isoko=Tmto)", "def d6pt():\n YbRl = a79v('entertainment')\n lOfm = a79v('fashion')\n leAC = 'Vnews'\n return TvZl(...
[ "0.70425445", "0.697863", "0.69678456", "0.6963615", "0.6949365", "0.68959713", "0.6869044", "0.68576455", "0.6848502", "0.6847788", "0.68057775", "0.6774729", "0.6760666", "0.67592907", "0.6756483", "0.67360437", "0.6725852", "0.6724154", "0.6708188", "0.66959256", "0.668009...
0.6572593
33
Set the promption level. Input lMa maximum level, 0 | 1 | 2 | ... logPath log file path, {None} | ...
def wbOJ(eSL4, m286=None): global lPr, lMaPr, nmPrs, ticPrs, ticPr0s, nRepPrs, scaPrs, logFile GSeX = 0 nZxN = eSL4 egBa = 10 GZB_ = range(egBa) ixhv = range(egBa) aYcJ = range(egBa) qNNw = range(egBa) cWs9 = range(egBa) if m286 is not None: MtID = m286 Brga(m286,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pcXt(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['logLevel'] = BWXx", "def qpwI(q1oD, ABDL):\n if isinstance(ABDL, int):\n pass\n elif ABDL.isnumeric():\n ABDL = int(ABDL)\n elif ABDL.isalpha():\n ABDL = getattr(G9jH, ABDL)\n else:\n q1oD.warning('Do not know ho...
[ "0.6721105", "0.6549579", "0.65169805", "0.64718986", "0.62525815", "0.6214991", "0.6193144", "0.6170877", "0.6106254", "0.6054806", "0.6048361", "0.6025923", "0.60212755", "0.5993841", "0.59524363", "0.59482175", "0.59451747", "0.59372324", "0.59150946", "0.5915042", "0.5905...
0.0
-1
Test generating RMG Molecule objects from InChI's
def WC0A(YKHO): p9De = aDxC.rmg_mol_from_inchi('InChI=1S/NO2/c2-1-3') SX4k = aDxC.rmg_mol_from_inchi('InChI=1/CH3NOS/c1-2-3-4-1/h2H,1H2') YKHO.assertTrue(isinstance(p9De, UnlI)) YKHO.assertTrue(isinstance(SX4k, UnlI)) YKHO.assertEqual(p9De.to_smiles(), '[O]N=O') YKHO.assertEqual(SX4k.to_smiles()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YmvS(YKHO):\n N9D1 = rS3w.from_inchi('InChI=1S/C2H6O/c1-2-3/h3H,2H2,1H3')\n assert isinstance(N9D1, rS3w)", "def IAzF(YKHO, nPrm):\n ISQ9 = Qtl8()\n PspV = nPrm['molecule']\n n2q4 = UnlI.from_inchi(nPrm['standard_inchi'], toolkit_registry=ISQ9)\n assert n2q4.to_inchi(toolkit_registry=ISQ9) ...
[ "0.7228465", "0.6633421", "0.6633421", "0.65157735", "0.6491002", "0.62345743", "0.6220805", "0.6200463", "0.6192611", "0.6125535", "0.59561116", "0.59308815", "0.59256417", "0.5921146", "0.5901561", "0.5861888", "0.58432525", "0.5839492", "0.58279026", "0.58211106", "0.58190...
0.70576584
1
Test determining whether two conformers have almost equal internal coordinates (zmats)
def _Lg4(YKHO): OVna = {'symbols': ('N', 'N', 'H', 'H'), 'coords': ((None, None, None), ('R_1_0', None, None), ('R_2|3_0|1', 'A_2|3_0|1_1|0', None), ('R_2|3_0|1', 'A_2|3_0|1_1|0', 'D_3_1_0_2')), 'vars': {'R_1_0': 1.2451214479859707, 'D_3_1_0_2': 180.00000435340846, 'R_2|3_0|1': 1.0308198031527174, 'A_2|3_0|1_1|0': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wZWz(YKHO):\n hLRM = oyIN.random.randn(3)\n mhAC = oyIN.random.randn(3)\n GjzC = oyIN.random.randn(3)\n pUfN = oyIN.random.randn(3)\n EBgd = rPvc.CoordinatePlane(hLRM, mhAC, GjzC)\n HpuQ = rPvc.CoordinatePlane(hLRM, mhAC, GjzC)\n Lq8X = rPvc.CoordinatePlane(hLRM, mhAC, pUfN)\n YKHO.asse...
[ "0.69628465", "0.654233", "0.64464223", "0.63968766", "0.636755", "0.63345885", "0.6320543", "0.6285077", "0.6268928", "0.6257322", "0.6255276", "0.62478113", "0.6247082", "0.6230886", "0.6212071", "0.6188121", "0.61487716", "0.6146429", "0.6134076", "0.6127143", "0.6107502",...
0.7273526
0
Test determining whether two conformers have almost equal atom distances (dmats)
def pYDk(YKHO): U0CN = {'symbols': ('C', 'H', 'H', 'H', 'H'), 'isotopes': (12, 1, 1, 1, 1), 'coords': ((0.0, 0.0, 0.0), (0.6300326, 0.6300326, 0.6300326), (-0.6300326, -0.6300326, 0.6300326), (-0.6300326, 0.6300326, -0.6300326), (0.6300326, -0.6300326, -0.6300326))} YKHO.assertTrue(aDxC.compare_confs(U0CN, U0CN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pImw(YKHO, a0GJ, TLv5):\n return sum((a0GJ[0] != TLv5[0], a0GJ[1] != TLv5[1]))", "def pmXL(YKHO, zdPH, tyYw):\n from scipy.spatial import cKDTree as plLA\n from random import shuffle\n T96C = zdPH.copy()\n Pn2m = tyYw.copy()\n fDaB = T96C.get_volume()\n xoJc = Pn2m.get_volume()\n if x...
[ "0.6817539", "0.6655798", "0.64809924", "0.64623696", "0.64568377", "0.6450232", "0.644597", "0.64255875", "0.64038175", "0.6382689", "0.638169", "0.6336372", "0.62865585", "0.6286324", "0.6280587", "0.6272221", "0.624663", "0.62400824", "0.6216895", "0.6194805", "0.61817014"...
0.62220573
18
Test checking for molecule isomorphism
def bXYm(YKHO): p9De = UnlI(smiles='[O-][N+]#N') SX4k = UnlI(smiles='[N-]=[N+]=O') YKHO.assertTrue(aDxC.check_isomorphism(p9De, SX4k))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wm9v(YKHO, g4y1):\n jjT0 = UnlI.from_smiles('c1ccccc1')\n yMxt = o0C9()\n assert UnlI.are_isomorphic(jjT0, yMxt, aromatic_matching=g4y1['aromatic_matching'], formal_charge_matching=g4y1['formal_charge_matching'], bond_order_matching=g4y1['bond_order_matching'], atom_stereochemistry_matching=g4y1['atom...
[ "0.6780489", "0.65108985", "0.64988416", "0.6450615", "0.6397275", "0.63879985", "0.6372348", "0.637012", "0.63463694", "0.632407", "0.6250851", "0.61860776", "0.61603475", "0.6075146", "0.6071487", "0.60651606", "0.6061535", "0.604675", "0.59458005", "0.5883534", "0.58814895...
0.7865893
0
Upload the defaults to the MWA pulsar database for ml_parameters, supercomputers.
def I3Pg(): UrXw = [{'ID': 1, 'Name': 'LOTAAS_periodic_classifier', 'ML_version': 'v1.0', 'Training_set_version': 'v1.0', 'Command': 'LOTAASClassifier.jar', 'Commnents': "LOTAAS's original version for periodic canidates"}, {'ID': 2, 'Name': 'LOTAAS_single_pulse_classifier', 'ML_version': 'v1.0', 'Training_set_versi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MeBH(YKHO):\n pass", "def deQB(YKHO):\n for MWqY, BWXx in YKHO._DEFAULT_PARAMETER_SCALARS.items():\n if MWqY not in YKHO.parameters:\n YKHO.parameters[MWqY] = jth9.copy(BWXx)\n for mge3, tyNF in YKHO._DEFAULT_PARAMETER_TABLES.items():\n YKHO.parameters[mge3] = [list(SjLr) fo...
[ "0.6422827", "0.6021276", "0.565686", "0.565686", "0.565686", "0.5635508", "0.56341124", "0.56305397", "0.5544445", "0.55251354", "0.55251354", "0.5495411", "0.5396797", "0.53916144", "0.5384932", "0.5347063", "0.53439337", "0.5335209", "0.532372", "0.53188485", "0.53103656",...
0.7685262
0
Gets a list of expense names from the user and saves them.
def LRvj(iu9b: str): hjID = kAxL.read_jsonFile(iu9b) if len(hjID) == 0: hjID[sEAN.EXPENSE_DATA_KEY] = gnPz.format_input_to_list('Please input your expense categories, I will add a Misc category since it is reserved. ') Je6n = gnPz.check_lst_for_values(hjID[sEAN.EXPENSE_DATA_KEY], sEAN.MISC_POS_V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vA9f(YKHO):\n o4nU = pths.get_fixed_expenses(YKHO.customer.email)\n cwjD = pths.get_variable_expenses(YKHO.customer.email)\n YKHO.listOfExpensesSEK.item(2).setText(str(o4nU['subscription']))\n YKHO.listOfExpensesSEK.item(3).setText(str(o4nU['insurance']))\n YKHO.listOfExpensesSEK.item(4).setText...
[ "0.5879301", "0.5879301", "0.5570147", "0.5526617", "0.5508212", "0.5351196", "0.532544", "0.53211784", "0.5267772", "0.5259469", "0.5220387", "0.52201337", "0.5201665", "0.51451296", "0.51253504", "0.5091481", "0.5080614", "0.5073962", "0.50574523", "0.5039748", "0.5005226",...
0.6005922
0
Gets the expense data for stores, prompting the user when multiple expenses exist for a store
def XqQ1(jQ3Z, ES_i, Pzjg, x6ji, cSSc): print('\nIterating your transactions. If you want to quit halfway, type ctrl c to save!\n') cuaW = kAxL.read_jsonFile(ES_i) g8J6 = kAxL.read_jsonFile(Pzjg) XrkR = kAxL.read_jsonFile(x6ji) try: for or8S, rdlD in jQ3Z.iterrows(): if rLdf.isnu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rllf(ovdR, Pzjg, g8J6, cuaW, ES_i):\n if ovdR not in g8J6.keys():\n idDS = f\"I cannot filter for the store '{ovdR}'. Please select the storename for this store and I will remember it for next time. If it is a new store, type 'n': \"\n Uftu = gnPz.select_dict_key_using_integer(cuaW, idDS, quit...
[ "0.6076084", "0.59491384", "0.57649094", "0.5580682", "0.5377986", "0.5365417", "0.5352683", "0.5352683", "0.53094804", "0.5303108", "0.5284345", "0.5272391", "0.5150369", "0.50607246", "0.5052589", "0.5004085", "0.4999233", "0.49912003", "0.4950449", "0.49488443", "0.4923352...
0.5671742
3
returns a list of coordinates of all immediate neighbors of `position` in `input_configuration`
def bdGm(NAU4, dQgj): XtYH, xc4s = dQgj return [(UHqo, QkRU) for UHqo in range(XtYH - 1, XtYH + 2) for QkRU in range(xc4s - 1, xc4s + 2) if (UHqo != XtYH or QkRU != xc4s) and (UHqo, QkRU) in NAU4.keys()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tk2G(YKHO, dQgj):\n Cs6h = YKHO._grid\n WKvO, LVAh = dQgj\n bdGm = []\n gQVb = [(0, 1), (1, 0), (0, -1), (-1, 0)]\n hXNa(gQVb)\n for vgXP in gQVb:\n YRbF, r845 = vgXP\n dQgj = (WKvO + YRbF, LVAh + r845)\n if Cs6h.valid_position(dQgj) and dQgj not in YKHO.shots:\n ...
[ "0.7067051", "0.6925659", "0.68404746", "0.6524428", "0.6486582", "0.6486001", "0.6464231", "0.64107376", "0.6407922", "0.6352695", "0.6316294", "0.6303389", "0.6273038", "0.6269784", "0.6267988", "0.62607515", "0.62354326", "0.6233238", "0.6203392", "0.61682755", "0.6138745"...
0.739937
0
[Training] Load arguments from user command input [attributes for training]
def D9pe(): wvEv = j1Jz.ArgumentParser() wvEv.add_argument('--batchsize', help='the batch size of the dataloader', type=int, default=2, required=False) wvEv.add_argument('--validsize', help='percentage that training set split into validation set', type=float, default=1 / 6, required=False) wvEv.add_argu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SvS1():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('data_dir', type=str, help='Path to the data directory')\n wvEv.add_argument('--lr', type=float, default=0.001, help='Learning rate (0.001)')\n wvEv.add_argument('--model', type=str, default='vgg16', help='TorchVision VGG model used: vgg19 ...
[ "0.74579036", "0.73165923", "0.71720976", "0.7104315", "0.7057616", "0.7005649", "0.6994627", "0.6975837", "0.6941957", "0.6941614", "0.6932793", "0.68698126", "0.6863876", "0.6838369", "0.6809096", "0.67670274", "0.6765114", "0.6761901", "0.6759481", "0.6748188", "0.67410827...
0.71800804
2
Checks if user is in the admin list
def Jo_v(CBIr): return CBIr in PDtd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Kb1(YKHO, CBIr):\n return CBIr.name in YKHO.admins", "def uJBC(YKHO, CBIr):\n if CBIr.id in YKHO.admins:\n return True\n return False", "def _Kb1(YKHO, CBIr):\n if CBIr.is_superuser:\n return True\n if CBIr.groups.filter(name=YKHO.admin_group_name).count() > 0:\n return...
[ "0.8494697", "0.8450611", "0.80645573", "0.80628574", "0.79645", "0.7924342", "0.79058194", "0.7835824", "0.78353256", "0.7813891", "0.7758347", "0.7756443", "0.76932293", "0.76697", "0.7663411", "0.76226515", "0.7586803", "0.75841236", "0.75841236", "0.75800085", "0.75793755...
0.8772071
0
Returns a materialized dictionary expanding any lazy data structures such as iterators, generators encountered.
async def materialize_walk(Csk6) -> UD_O: return await FEKt(Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vsv0():\n return oRi_(Vsv0)", "def MNRr():\n\n @O9mc\n def rpeX(pan_):\n Csk6 = dict([])\n try:\n while True:\n tTpl = (yield)\n Csk6[tTpl[0]] = tTpl[1]\n except GeneratorExit:\n pan_.send(Csk6)\n pan_.close()\n r...
[ "0.6090513", "0.5919386", "0.5526984", "0.54836416", "0.5410459", "0.5348379", "0.5336904", "0.53285587", "0.5286844", "0.5286844", "0.5279834", "0.5273195", "0.52586377", "0.52347636", "0.5233799", "0.52322394", "0.5229622", "0.5200389", "0.51912916", "0.5133406", "0.5124990...
0.0
-1
Initialise the TRL from the weights of a fully connected layer
def f6aj(YKHO, z8o0, oHDy=None, **B2fa): if oHDy is not None: if YKHO.factorization != 'Tucker': raise ValueError(f'unsqueezed_modes is only supported for factorization="tucker" but factorization is {YKHO.factorization}.') oHDy = sorted(oHDy) qmhL = list(YKHO.weight_shape) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Zt8E, dIM5, yB6h=None, NCJH=None, prGP=None):\n assert len(Zt8E) > 1, 'At least one input layer and one output layer is needed'\n uPrp = IT1r.getSizeOfWeightVector(Zt8E) * dIM5\n if yB6h is None:\n if NCJH is None:\n NCJH = -1 / oyIN.sqrt(Zt8E[0])\n if prGP is None:...
[ "0.68506587", "0.68409103", "0.6802324", "0.6598983", "0.659757", "0.6565847", "0.6524492", "0.6491744", "0.6459459", "0.6457066", "0.6428255", "0.64199334", "0.64044523", "0.63711214", "0.6360963", "0.63549894", "0.63532937", "0.63532937", "0.63439846", "0.63363737", "0.6335...
0.0
-1
Decorates a view to authorize a user only if the view is called with pk equal to logged in user id
def acFZ(m2Zb): def h3Xc(QePW, *qIxc, **B2fa): if int(QePW.user.id) == int(B2fa['pk']): return m2Zb(QePW, *qIxc, **B2fa) else: return igJ6("Your Jedi tricks don't work on me", status=403) return h3Xc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MF4D(tTee):\n\n def h3Xc(QePW, *qIxc):\n if not QePW.session.get('user_id', False):\n return Yd7Q('/clanovi/login/')\n return tTee(QePW, *qIxc)\n return h3Xc", "def Exqc(JfyU):\n\n def mrMx(QePW, *qIxc, **B2fa):\n EngI = Iofl(xlK2, slug=B2fa['competition_slug'])\n ...
[ "0.7133977", "0.6858038", "0.6843821", "0.6735181", "0.67215776", "0.6642458", "0.66327417", "0.6590507", "0.6524044", "0.6501874", "0.6493207", "0.6493207", "0.6493207", "0.64803725", "0.6466691", "0.6466691", "0.6448397", "0.64408857", "0.64318967", "0.6428844", "0.6427737"...
0.63987035
24
Assert that the response status code returns 200.
def kCJw(YKHO): geh0 = YKHO.app.get('/create-bucketlist') YKHO.assertEqual(geh0.status_code, 200, 'should return a status code of 200')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xi2t(YKHO, geh0):\n YKHO.assertEqual(geh0.status_code, 200)", "def Z5ZI(YKHO):\n YKHO.assertEquals(YKHO.response.status_code, 200)", "def rStG(YKHO, geh0):\n YKHO.assertEqual(geh0.status_code, 200)", "def rStG(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 200)", "def Z5ZI(YKHO):\...
[ "0.89377517", "0.8730491", "0.84653956", "0.8310712", "0.83013505", "0.8283379", "0.82346404", "0.80876064", "0.8037783", "0.79832006", "0.7977363", "0.79274637", "0.79039997", "0.79039997", "0.79039997", "0.79039997", "0.79039997", "0.79039997", "0.79039997", "0.79039997", "...
0.0
-1
Return the full path to the given fixure. If globs is not given, the base path will a directory tests/data defined relatively from the definition of the test layer.
def OnZ0(YKHO, Ux0P, Z8uY=None): if Z8uY is None: yR_P = HwRy.modules[YKHO.__class__.__module__] XSj5 = Hy7s.path.join(Hy7s.path.dirname(yR_P.__file__), 'tests') else: XSj5 = Hy7s.path.dirname(Z8uY['__file__']) return Hy7s.path.join(XSj5, 'data', Ux0P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yo0B(Emd4, *qIxc):\n edwe = Hy7s.path.join(Hy7s.path.dirname(xAKo), '../tasks/tests/data')\n edwe = Hy7s.path.abspath(edwe)\n return Hy7s.path.join(edwe, *qIxc)", "def wBA9():\n pmON, mWFP = Hy7s.path.split(xAKo)\n return Hy7s.path.join(pmON, '..', 'test-data')", "def Osdz(YKHO, DpZH):\n ...
[ "0.66121197", "0.63253796", "0.620481", "0.6166", "0.6096984", "0.6095494", "0.6015214", "0.5998965", "0.59680676", "0.59597933", "0.5952659", "0.5931706", "0.5929602", "0.58954847", "0.5875756", "0.5875756", "0.5875756", "0.5867941", "0.58562183", "0.5798839", "0.57909465", ...
0.67945415
0
Gets the name of the item to be used in the context.
def AZDX(YKHO, hst7): if YKHO.context_object_name: return YKHO.context_object_name elif hasattr(hst7, 'model'): return '{0}_list'.format(hst7.model._meta.model_name) else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dvRm(YKHO):\n return YKHO.__item_name", "def Q0HP(YKHO, ZfUD):\n return ZfUD.s", "def mWFP(YKHO):\n return YKHO._get('name')", "def W0tD(YKHO):\n if YKHO.name != None:\n return YKHO.name\n else:\n return YKHO.get_name_from_items(YKHO.items.values())", "def mWFP(YKHO):\n ...
[ "0.8442", "0.8090095", "0.7264774", "0.7240659", "0.7175606", "0.71638006", "0.7154122", "0.7141963", "0.7084736", "0.7075561", "0.7075561", "0.7075561", "0.7075561", "0.7075561", "0.7075561", "0.7075561", "0.7075561", "0.7075561", "0.7075561", "0.7075561", "0.7075561", "0....
0.0
-1
Returns the space for quering the objects. The return value must be an iterable and may be an instance of `QuerySet`.
def k66M(YKHO): if YKHO.queryset is not None: SR0I = YKHO.queryset if isinstance(SR0I, ZYvt): SR0I = SR0I.all() elif YKHO.model is not None: SR0I = YKHO.model._default_manager.all() else: tO9_ = '{cls} is missing a QuerySet. Define {cls}.model, {cls}.queryset, or ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def umWR(YKHO) -> b5hG:\n if isinstance(YKHO, type):\n raise TypeError(f'Calling qs() from class level is prohibited. Use {YKHO.__name__}.objects instead.')\n return YKHO._meta.model.objects.filter(pk=YKHO.pk)", "def l633(YKHO):\n return YKHO.__queries", "def UqER(YKHO):\n return YKHO.q", ...
[ "0.6105383", "0.575545", "0.575152", "0.5598119", "0.55772763", "0.54934835", "0.54934835", "0.54370016", "0.5431241", "0.54207414", "0.5384874", "0.53662217", "0.5326013", "0.5310153", "0.52982074", "0.52908236", "0.52896035", "0.52521443", "0.52519524", "0.52494663", "0.523...
0.0
-1
Returns a list of template names to be used for the request. Must return a list. May not be called if render_to_response is overridden.
def Q6po(YKHO): try: ZWCE = super(DqSn, YKHO).get_template_names() except rqaQ: ZWCE = [] C3ST = YKHO.get_model() if C3ST is not None: ZWCE.append('{0}/{1}{2}.html'.format(C3ST._meta.app_label, C3ST._meta.model_name, YKHO.template_name_suffix)) return ZWCE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q6po(YKHO) -> x1iM[str]:\n if YKHO.template_name is None:\n raise Exception(\"TemplateResponseMixin requires either adefinition of 'template_name' or aimplementation of 'get_template_names()'\")\n return [YKHO.template_name]", "def Q6po(YKHO):\n if YKHO.template_name is None:\n raise r...
[ "0.78204966", "0.7709885", "0.75552785", "0.7244376", "0.7204548", "0.69828", "0.6898361", "0.680679", "0.6706858", "0.669722", "0.66748166", "0.6646198", "0.6644671", "0.6579406", "0.6577195", "0.65415764", "0.65028125", "0.64714754", "0.6401633", "0.63693744", "0.63211006",...
0.7169839
5
Computes the forward pass for an affine (fullyconnected) layer. The input x has shape (N, d_1, ..., d_k) and contains a minibatch of N examples, where each example x[i] has shape (d_1, ..., d_k). We will reshape each input into a vector of dimension D = d_1 ... d_k, and then transform it to an output vector of dimensio...
def Fav1(WKvO, yzQ0, Fg_i): yvT9 = None TWWf = WKvO.reshape(WKvO.shape[:1] + (-1,)) yvT9 = TWWf.dot(yzQ0) + Fg_i wyyA = (WKvO, yzQ0, Fg_i) return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fav1(WKvO, yzQ0, Fg_i):\n yvT9 = None\n GhuM = WKvO.shape\n QRFO = 1\n for YRbF in range(1, len(GhuM)):\n QRFO *= GhuM[YRbF]\n jzdc = WKvO.reshape(WKvO.shape[0], QRFO)\n yvT9 = oyIN.dot(jzdc, yzQ0) + Fg_i\n wyyA = (WKvO, yzQ0, Fg_i)\n return (yvT9, wyyA)", "def KVH6(YKHO, WKvO)...
[ "0.69972765", "0.6882795", "0.66869867", "0.6510486", "0.65045667", "0.6457311", "0.64465374", "0.6413484", "0.6406099", "0.63568974", "0.63548344", "0.6347612", "0.63443136", "0.63351524", "0.63215196", "0.6306697", "0.62982553", "0.62968725", "0.6296499", "0.629068", "0.628...
0.63028204
16
Computes the backward pass for an affine layer.
def Kt1o(zYcP, wyyA): WKvO, yzQ0, Fg_i = wyyA Jw7X, ncXl, NCls = (None, None, None) exwG = WKvO.shape[0] Jw7X = zYcP.dot(yzQ0.T) Jw7X = oyIN.reshape(Jw7X, WKvO.shape) ncXl = WKvO.reshape(WKvO.shape[:1] + (-1,)).T.dot(zYcP) / exwG ncXl = oyIN.reshape(ncXl, yzQ0.shape) NCls = oyIN.mean(zYc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wxmU(zYcP, wyyA):\n A45l, GhMp = wyyA\n SG6Y = fhcK.relu_backward(zYcP, GhMp)\n Jw7X, ncXl, NCls = fhcK.affine_backward(SG6Y, A45l)\n return (Jw7X, ncXl, NCls)", "def Kt1o(zYcP, wyyA):\n WKvO, yzQ0, Fg_i = wyyA\n Jw7X, ncXl, NCls = (None, None, None)\n aWf9 = oyIN.prod(WKvO[0].shape)\n ...
[ "0.7519707", "0.7515731", "0.7311029", "0.73021144", "0.73021144", "0.73021144", "0.73021144", "0.7179234", "0.7174782", "0.7173808", "0.71676785", "0.7131813", "0.7109585", "0.7098569", "0.7085752", "0.70688355", "0.704585", "0.70412534", "0.69940144", "0.6987464", "0.698464...
0.72440696
7
Return the actual location on disk. Create the parent folder if needed.
def v8tB(YKHO, Ux0P: str): hash = HBct.md5(Ux0P.encode('utf-8')).hexdigest()[0:2] _bsB = YKHO.collection_path / hash / Ux0P if Ux0P not in YKHO.mapping: (YKHO.collection_path / hash).mkdir(parents=True, exist_ok=True) _bsB.parent.mkdir(parents=True, exist_ok=True) YKHO.mapping[Ux0P] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Chi4(YKHO):\n return Hy7s.path.join(Hy7s.getcwd(), 'src', 'data', 'genes')", "def hbd3(YKHO):\n return Hy7s.path.dirname(YKHO.filename)", "def Cy6_(YKHO):\n return Hy7s.path.join(gCuF.PRIVATE_STORAGE_ROOT, YKHO.get_relative_pathname())", "def mSqg(YKHO):\n return Hy7s.path.dirname(YKHO.image....
[ "0.7436081", "0.7052837", "0.6780707", "0.6734337", "0.67049974", "0.669804", "0.66878754", "0.66359234", "0.66142046", "0.66032624", "0.65824735", "0.6563445", "0.65574586", "0.6556306", "0.6553439", "0.6534524", "0.65294075", "0.6513861", "0.648608", "0.6480846", "0.6469646...
0.6569929
11
Decides the WN representation of the given pos in input
def cYJP(oeNL: str) -> str: dzye = None if oeNL == 'NOUN': dzye = 'n' if oeNL == 'VERB': dzye = 'v' if oeNL == 'ADJ': dzye = 'a' if oeNL == 'ADV': dzye = 'r' return dzye
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QhUD(oeNL: str) -> str:\n oeNL = oeNL.lower()\n t7IV = 'n'\n if oeNL.startswith('j'):\n t7IV = 'a'\n elif oeNL[0] in ('n', 'r', 'v'):\n t7IV = oeNL[0]\n return t7IV", "def _ivB(oeNL):\n if oeNL[0] == 'J':\n return Dhdw.corpus.wordnet.ADJ\n elif oeNL[0] == 'V':\n ...
[ "0.7073301", "0.64950913", "0.64905983", "0.61112255", "0.6007476", "0.59900284", "0.59670055", "0.5933512", "0.5933512", "0.5894326", "0.58795136", "0.5866664", "0.58627313", "0.5799753", "0.57954293", "0.5793043", "0.579064", "0.57545334", "0.5499346", "0.54548335", "0.5444...
0.55873215
18
Return the class of this device, from component DEVICE_CLASSES.
def rM2U(YKHO): if YKHO.sensor_class in MQ2o: return YKHO.sensor_class return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return MQ2o.get(YKHO.sensor_data['model'])", "def rM2U(YKHO):\n return YKHO.sensor_type['class']", "def rM2U(YKHO):\n return lc9R[YKHO.sensor][3].get('device_class')", "def ZvYj(YKHO):\n return YfpN.get_class(YKHO.type)", "def rM2U(YKHO):\n return u32P[YKHO.info_type]['devi...
[ "0.87289727", "0.8523683", "0.8474236", "0.8445261", "0.8314018", "0.8310586", "0.8244905", "0.8244905", "0.8244905", "0.8244905", "0.8244905", "0.8201372", "0.81974167", "0.8112704", "0.8112704", "0.8112704", "0.8061974", "0.80567896", "0.80567896", "0.80387646", "0.80387646...
0.8127681
13
Return the unit_of_measurement of the device.
def b82i(YKHO): if YKHO.api_unit in yzQI: return YKHO.hass.config.units.temperature_unit if YKHO.api_unit in AbYb: return YKHO.hass.config.units.length_unit if YKHO.api_unit in oSrL: if YKHO.hass.config.units == UWVY: return YKHO.hass.config.units.pressure_unit re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO.device.unit()", "def b82i(YKHO):\n return Btwi[YKHO._sensor_type][GPYC.index('UNIT_OF_MEASURE_INDEX')]", "def b82i(YKHO):\n return YKHO._unit_of_measurement", "def b82i(YKHO):\n return YKHO._unit_of_measurement", "def b82i(YKHO):\n return YKHO._unit_of_measureme...
[ "0.9185088", "0.8927251", "0.88508546", "0.88508546", "0.88508546", "0.88508546", "0.88508546", "0.88508546", "0.88508546", "0.88508546", "0.88508546", "0.88508546", "0.88508546", "0.88508546", "0.88508546", "0.88508546", "0.88275945", "0.88275945", "0.88275945", "0.88275945", ...
0.8299461
52
Initialize New instance of Doubley LinkedList.
def FIMM(YKHO, hkxX=[]): YKHO.values = hkxX YKHO.head = None for YRbF in hkxX: YKHO.insert(YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.new_dll = f6Fu()", "def FIMM(YKHO):\n YKHO._head = YKHO._Node(None, None, None)\n YKHO._tail = YKHO._Node(None, None, None)\n YKHO._head._next = YKHO._tail\n YKHO._tail._prev = YKHO._head\n YKHO._size = 0", "def FIMM(YKHO):\n Q6kx = Msxl(0)\n YKHO.head = Q6kx\n ...
[ "0.75934005", "0.7433358", "0.7355797", "0.7292677", "0.7241564", "0.71299875", "0.7110084", "0.7110084", "0.7090159", "0.7066542", "0.7061874", "0.7059265", "0.7056815", "0.7056815", "0.7056815", "0.7053873", "0.70494235", "0.7023703", "0.7017982", "0.693907", "0.6919723", ...
0.0
-1
Insert Node at the front (head) of list.
def JPHp(YKHO, wEf2): Fv8N = YM8C(wEf2, YKHO.head) if not YKHO.head: YKHO.head = Fv8N YKHO.tail = YKHO.head YKHO.head.previous_node = Fv8N YKHO.head = Fv8N
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def byB9(YKHO, ZfUD):\n Esd_ = o7DN(ZfUD)\n if YKHO.head is None:\n YKHO.head = Esd_\n else:\n Esd_.next = YKHO.head\n YKHO.head = Esd_\n YKHO.n += 1", "def LYLL(YKHO, nPrm):\n S06t = NSB4(nPrm)\n ycBG = YKHO._head\n if YKHO._head is None:\n YKHO._head = S06t\n ...
[ "0.8005742", "0.7940719", "0.7797293", "0.7745895", "0.77079684", "0.76502913", "0.7628681", "0.76244575", "0.75704974", "0.7485009", "0.74587184", "0.74257016", "0.74080586", "0.74008936", "0.74008936", "0.73588365", "0.7349039", "0.734704", "0.7277037", "0.727224", "0.72675...
0.0
-1
Append New node to back (tail) of list.
def SStx(YKHO, wEf2): Fv8N = YM8C(wEf2, previous_node=YKHO.tail) YKHO.tail.next_node = Fv8N YKHO.tail = Fv8N
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tj6L(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.tail = o7DN(nPrm, next=None)\n YKHO.head = YKHO.tail\n else:\n YKHO.tail.next = o7DN(nPrm, next=None)\n if YKHO.head != YKHO.tail:\n if YKHO.tail.skip_back is None:\n YKHO.tail.next.skip_back = YKHO.hea...
[ "0.76262003", "0.7570407", "0.7516316", "0.7402172", "0.7394703", "0.7390978", "0.7355949", "0.7323749", "0.72288865", "0.7193583", "0.7180527", "0.71547085", "0.71338177", "0.7097585", "0.7096302", "0.7092449", "0.7083041", "0.70740205", "0.7054107", "0.7032983", "0.7024413"...
0.67580664
42
Returns the filtered queryset based on the value provided in the query string and retrievable via `self.value()`.
def SR0I(YKHO, QePW, SR0I): if YKHO.value(): return SR0I.filter(parent_id=YKHO.value()) return SR0I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n return SR0I.all()\n return SR0I.filter(firm__pk=YKHO.value())", "def SR0I(YKHO, QePW, SR0I):\n if YKHO.value():\n return SR0I.filter(state_pol=YKHO.value())", "def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n retu...
[ "0.75404286", "0.7420034", "0.7245536", "0.708915", "0.70489717", "0.6976245", "0.678279", "0.67624646", "0.6733829", "0.668175", "0.66564417", "0.65890294", "0.64709556", "0.64156187", "0.6402686", "0.63832724", "0.63695264", "0.6350035", "0.6349002", "0.6277698", "0.626799"...
0.7204446
3
Computes distance between two centroids of the two clusters
def O8Cd(MjEg, mrUo): rNG5 = oyIN.average(MjEg, axis=0) dIzh = oyIN.average(mrUo, axis=0) return usGr(rNG5, dIzh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JC2W(MjEg, mrUo):\n return max([usGr(lCHq, ANJu) for lCHq in MjEg for ANJu in mrUo])", "def Ayfi(YKHO, Gx0H):\n OQPN = YKHO._vert_center - Gx0H.vert_center()\n YPHq = YKHO._horiz_center - Gx0H.horiz_center()\n return epAf.sqrt(OQPN ** 2 + YPHq ** 2)", "def Ayfi(YKHO, Gx0H):\n OQPN = YKHO._ve...
[ "0.7310566", "0.7258045", "0.7258045", "0.71738297", "0.71623534", "0.7135081", "0.70555", "0.7042646", "0.69963205", "0.6981462", "0.6940565", "0.693678", "0.6925025", "0.6800658", "0.67993", "0.6771275", "0.6751644", "0.6745831", "0.67043865", "0.6693395", "0.66875255", "...
0.7988231
0
Checks if a matrix is a valid rotation matrix.
def LQfE(YKHO, A3Vt): h4Tb = oyIN.transpose(A3Vt) DaCi = oyIN.dot(h4Tb, A3Vt) pdhd = oyIN.identity(3, dtype=A3Vt.dtype) exwG = oyIN.linalg.norm(pdhd - DaCi) return exwG < 1e-06
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ptRa(YKHO, A3Vt):\n h4Tb = oyIN.transpose(A3Vt)\n DaCi = oyIN.dot(h4Tb, A3Vt)\n pdhd = oyIN.identity(3, dtype=A3Vt.dtype)\n exwG = oyIN.linalg.norm(pdhd - DaCi)\n return exwG < 1e-06", "def dnr9():\n t3eI = oyIN.random.RandomState(2345)\n for bGrB in range(5):\n jzdc = zTi3.random...
[ "0.7960429", "0.7166615", "0.70802134", "0.6615904", "0.6538403", "0.644409", "0.6418667", "0.63442963", "0.6342512", "0.6131638", "0.60541475", "0.60499966", "0.6029731", "0.60089195", "0.5942668", "0.5904241", "0.5898044", "0.5891571", "0.5887549", "0.58872104", "0.58841914...
0.7662198
1
Shortcut to access the current logged in user. Unlike user_info, it fetches information from the persistence layer and returns an instance of the underlying model.
def CBIr(YKHO): P6bq = YKHO.user_info return YKHO.user_model.get_by_id(P6bq['user_id']) if P6bq else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.get_by_id(P6bq['user_id']) if P6bq else None", "def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n return YKHO.auth.store.user_model.get_by_id(fnHH['user_id'])", "def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n ...
[ "0.797634", "0.79030204", "0.78945374", "0.7855224", "0.77607036", "0.7666942", "0.76651853", "0.76651853", "0.7587182", "0.7555845", "0.7543986", "0.74880344", "0.7452394", "0.74505", "0.7432915", "0.7432915", "0.7432915", "0.7371964", "0.7364711", "0.7360742", "0.73504144",...
0.80112857
0
Returns a perdimension upper bound on the maximum number of elements in each dimension. This bound will be tight in the case of Range.
def r8vL(YKHO): return YKHO.subset.bounding_box_size()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y6S3(YKHO) -> int:\n return YKHO.upper_bound", "def jCT4(jzdc, f2sS, e_2d=None, yYKB=1):\n if yYKB:\n Stuu = ywwl.less\n else:\n Stuu = ywwl.less_equal\n if e_2d == None:\n jzdc = ywwl.ravel(jzdc)\n e_2d = 0\n if f2sS == None:\n f2sS = ywwl.maximum.reduce(yww...
[ "0.71498823", "0.6992809", "0.6908907", "0.6880611", "0.67877877", "0.67159796", "0.65966725", "0.65128165", "0.64278924", "0.63315374", "0.63197035", "0.6238459", "0.6222114", "0.62128", "0.61576295", "0.6121988", "0.6103346", "0.60954607", "0.6082084", "0.6080677", "0.60801...
0.0
-1
The calib2tensor3() function reads the latest calibration tensor for component from dirname. Any obsoleted calibration data is ignored. The function returns the tensor as a numpy array on successful completion. dirname Directory with calibration information component Kind of calibration data sought Tensor as numpy arra...
def zSsz(TLI7, UksD): aPr_ = '*-end.data' pmON = SC2F.glob(Hy7s.path.join(TLI7, UksD, aPr_))[-1] wOb_ = open(pmON, 'r') Kt_s = Epsd(wOb_) wOb_.close() return Kt_s
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Epsd(wOb_):\n Kt_s = nIZ1(wOb_)\n while True:\n k0lF = nIZ1(wOb_)\n if len(k0lF.shape) < 2 or k0lF.shape[0] == 0 or k0lF.shape[1] == 0:\n return Kt_s\n Kt_s = XTiz.dstack((Kt_s, k0lF))", "def Jlex(p4m8, tpio):\n VXjJ = LNo8.load_img(p4m8, target_size=(tpio, tpio))\n ...
[ "0.5093657", "0.50654936", "0.5017846", "0.4963175", "0.48124826", "0.47995463", "0.47940272", "0.4753241", "0.47508976", "0.47188634", "0.46663633", "0.466279", "0.4644044", "0.46214908", "0.4607633", "0.4599764", "0.45964962", "0.4586136", "0.45718667", "0.4557085", "0.4555...
0.82074106
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, MuWC): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.80885184", "0.80885184", "0.805514", "0.7983044", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8457179", "0.8393067", "0.81457263", "0.8140635", "0.8133462", "0.8094992", "0.8093376", "0.8093376", "0.8093376", "0.80863357", "0.80863357", "0.8077303", "0.8077303", "0.8066831" ]
0.0
-1
Load config from yml/yaml file.
def LgIG(qaEx): bGrB, YBcr = Hy7s.path.splitext(qaEx) assert YBcr in ['.yml', '.yaml'], 'only support yaml files for now' GPtr = eJb6.load(open(qaEx, 'rb'), Loader=eJb6.Loader) return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9B0(Emd4, nUeQ=None):\n if nUeQ is None:\n nUeQ = f'{Elhn.base_path}cfg.yml'\n try:\n with open(nUeQ, 'r') as eHNT:\n GPtr = eJb6.load(eHNT, Loader=eJb6.FullLoader)\n _Fei.__dict__ = GPtr\n return _Fei\n except FileNotFoundError:\n print(\"Config file doe...
[ "0.81704307", "0.8075309", "0.805607", "0.79552233", "0.79525894", "0.7916906", "0.7915729", "0.7892829", "0.78918004", "0.7878357", "0.7877337", "0.78658396", "0.78599226", "0.77962315", "0.7775746", "0.77709365", "0.7709628", "0.7691351", "0.76495796", "0.7614803", "0.76041...
0.7899959
7
If the module is imported, but the function isn't found, raise ImproperlyConfigured.
def XhXf(YKHO): with YKHO.assertRaises(rqaQ): iK5T('TEST_SETTING')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C7Ke(YKHO):\n with YKHO.assertRaises(rqaQ):\n iK5T('TEST_SETTING')", "def hzii(JfyU):\n\n @xBlr.wraps(JfyU)\n def SzLu(*qIxc, **B2fa):\n GPtr = rtio()\n if not GPtr.isConfigured:\n raise q76O.SetupNeeded\n return JfyU(*qIxc, **B2fa)\n return SzLu", "def EF...
[ "0.62123185", "0.59798896", "0.5965007", "0.5917278", "0.58833075", "0.5874552", "0.5852225", "0.57792634", "0.5671392", "0.5671392", "0.5671392", "0.5671392", "0.5671392", "0.5671392", "0.5671392", "0.5671392", "0.5671392", "0.5671392", "0.56201917", "0.5591923", "0.5555886"...
0.54572904
29
Initialize attributes to describe a car.
def FIMM(YKHO, PEX4, C3ST, lO87): YKHO.make = PEX4 YKHO.model = C3ST YKHO.year = lO87 YKHO.odometer_reading = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, _6NH):\n super(YKHO.__class__, YKHO).__init__(_6NH)\n YKHO.coordinator_name = _6NH.get_faulty_coordinator_name()\n YKHO.second_at_charge_name = _6NH.get_second_at_charge_name()\n YKHO.coordinated_car_name = _6NH.get_corrected_coordinated_car_name()\n YKHO.following_car_name = _6NH.get...
[ "0.7499686", "0.7396383", "0.6962899", "0.6956803", "0.6860313", "0.67147094", "0.6583875", "0.6583875", "0.6583875", "0.6454434", "0.64485174", "0.64399266", "0.64343643", "0.63747996", "0.63059205", "0.62482935", "0.6208004", "0.6172982", "0.6161259", "0.6137115", "0.609972...
0.5513055
84
Initialize the battery's attributes
def FIMM(YKHO, n8ok=75): YKHO.battery_size = n8ok
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=40):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, ...
[ "0.75609815", "0.7558373", "0.75359666", "0.75359666", "0.75359666", "0.75147897", "0.75147897", "0.74909526", "0.74409395", "0.73824", "0.73655254", "0.7354131", "0.72093326", "0.7162848", "0.7148631", "0.7071691", "0.7071691", "0.7071691", "0.7071691", "0.7071691", "0.70716...
0.7425672
9
Helper method to get the input. Returns None if the input is blank. Only works after validation has been called (or during validation).
def input(YKHO, mWFP): try: w0fi = YKHO.params[mWFP] try: w0fi = w0fi.strip() except AttributeError: pass if w0fi == '': return None return w0fi except KeyError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def input(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'input')", "def F8hk(YKHO):\n return YKHO.__input", "def F8hk(YKHO):\n return YKHO.__input", "def F8hk(YKHO):\n return YKHO.__input", "def F8hk(YKHO):\n return YKHO.__input", "def F8hk(YKHO):\n return YKHO.__input", "de...
[ "0.73642397", "0.7015761", "0.7015761", "0.7015761", "0.7015761", "0.7015761", "0.7015761", "0.7015761", "0.6834297", "0.6797506", "0.6720261", "0.66409856", "0.6634798", "0.66195714", "0.66090995", "0.6423062", "0.6419021", "0.6419021", "0.6201756", "0.61889565", "0.6179135"...
0.73535395
1
Function will convert corpus from dataframe to list of list type.
def KVok(HXJh): HXJh = HXJh.values.tolist() return HXJh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OBM8(jQ3Z):\n rrSk = []\n for Mau6 in PRqg(jQ3Z['text']):\n V22M = [GIN8.lower() for GIN8 in dFss(Mau6) if GIN8.isalpha() == 1]\n rrSk.append(V22M)\n return rrSk", "def paQW(YKHO) -> x1iM[str]:\n return YKHO.tidy_text(YKHO.corpus)", "def Ui1H(rFWd):\n global ne_tags_set\n qX...
[ "0.699034", "0.6622751", "0.6506755", "0.6441838", "0.6431281", "0.62726605", "0.6147414", "0.6093569", "0.6010218", "0.58919144", "0.58714783", "0.58310324", "0.58197397", "0.579851", "0.5691958", "0.5691012", "0.5661742", "0.5635563", "0.5619211", "0.5580112", "0.5543303", ...
0.783059
0
Function will remove stopwords from text_vector.
def l6pk(VOOV): VOOV = [YRbF for YRbF in VOOV if YRbF not in di0c.words('english')] return VOOV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aUcs(l5Ny):\n s2mk = dFss(l5Ny)\n iku2 = [GIN8 for GIN8 in s2mk if GIN8 not in hwHU]\n iku2 = ' '.join(iku2)\n return iku2", "def aUcs(YKHO, l5Ny):\n return ' '.join([GIN8 for GIN8 in str(l5Ny).split() if GIN8 not in YKHO.STOPWORDS])", "def aUcs(l5Ny):\n l5Ny = ' ' + l5Ny\n l5Ny = l5Ny...
[ "0.81403863", "0.7955697", "0.79302275", "0.7919006", "0.77835304", "0.7701399", "0.76843077", "0.7681525", "0.7649502", "0.7640225", "0.7617904", "0.7552229", "0.7543865", "0.7538448", "0.75344193", "0.7505655", "0.74821454", "0.7475759", "0.7459693", "0.7441028", "0.7441028...
0.89113796
0
Function will remove the stopwords from the corpus.
def mZsB(HXJh): HXJh[Vc2Y] = HXJh[Vc2Y].apply(l6pk) return HXJh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)", "def g8pp(C13M):\n hwHU = di0c.words('english')\n hwHU = set(hwHU + MO_b)\n return [eOtH for eOtH in C13M if eOtH not in hwHU]", "def aUcs(C1...
[ "0.8324709", "0.79654366", "0.79353225", "0.78555036", "0.7809628", "0.774373", "0.7724586", "0.77146417", "0.7705972", "0.7705972", "0.7705972", "0.7705972", "0.7704295", "0.76425266", "0.76400095", "0.76344293", "0.75929016", "0.7589718", "0.75679004", "0.75655764", "0.7562...
0.78241765
4
Create a runner with app.test_cli_runner() using app fixture, that can call the Click commands registered with the application.
def WL52(P4t4): return P4t4.test_cli_runner()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WL52(P4t4):\n return P4t4.test_cli_runner()", "def WL52(P4t4):\n return P4t4.test_cli_runner()", "def WL52(P4t4):\n return P4t4.test_cli_runner()", "def WL52() -> p9tP:\n return k8wH.testing.CliRunner()", "def T1Ea(P4t4):\n na1r.info('cli_runner.app: %s', P4t4)\n T1Ea = P4t4.test_cli_...
[ "0.80377024", "0.80377024", "0.80377024", "0.78357697", "0.7336881", "0.72990376", "0.6906018", "0.66988564", "0.66988564", "0.6418123", "0.6334785", "0.6270316", "0.6129748", "0.5970172", "0.59150714", "0.5887292", "0.58839417", "0.58791625", "0.5862269", "0.58616346", "0.58...
0.80403256
0
Return a list of legal mining actions (that only involve mining and not moving).
def inGE(YKHO): eEZP = [] gBFz = {z3yr, eZmG, GscU} Pn7R = YKHO._pos + joet(0, 2, 0) if YKHO._get_block(Pn7R) not in gBFz: eEZP.append({'func': '_mine', 'args': (Pn7R,)}) for Kwmb in f8_X(): oeNL = YKHO._pos + Kwmb for bGrB in Ni9Y(2): if YKHO._get_block(oeNL) not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7yi(YKHO):\n return YKHO.game.get_legal_actions()", "def Cv80(YKHO, QX1x=None):\n return YKHO._get_move_actions(QX1x) + YKHO._get_mine_actions() + YKHO._get_placement_actions(QX1x)", "def Cv80(YKHO):\n pass", "def o7yi(YKHO):\n raise NotImplementedError", "def Cv80(YKHO, d6pt):\n xASv =...
[ "0.7372245", "0.732221", "0.7313284", "0.71597576", "0.7126538", "0.699715", "0.69075394", "0.683734", "0.6808555", "0.67633706", "0.66503125", "0.6590095", "0.65778744", "0.65741384", "0.6517203", "0.649064", "0.6477651", "0.6447449", "0.6418335", "0.6410253", "0.6409805", ...
0.6846609
7
Return whether or not the bot can place a block at that location independent of what it has in its inventory.
def pHbF(YKHO, hksT): Kh7E = [z3yr, eZmG, GscU] oyg0 = [YKHO._pos, YKHO._pos + joet(0, 1, 0)] for Kwmb in f8_X + [joet(0, 1, 0), joet(0, -1, 0)]: oU_z = hksT + Kwmb if oU_z not in oyg0 and YKHO._get_block(oU_z) not in Kh7E: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d9pZ(YKHO, DNHh=None):\n for QX1x in YKHO._inventory:\n if QX1x != DNHh:\n return True\n return False", "def sjXf(YKHO, hksT):\n if hksT.isLeft(YKHO.topLeft):\n return False\n if hksT.isRight(YKHO.botRight):\n return False\n if hksT.isAbove(YKHO.topLeft):\n ...
[ "0.67402387", "0.64904577", "0.64742357", "0.63460064", "0.6191605", "0.6168658", "0.61179215", "0.6091611", "0.6091611", "0.6086086", "0.6059319", "0.6040318", "0.6030606", "0.60108405", "0.5985022", "0.59669167", "0.59460306", "0.5855408", "0.5839271", "0.58160174", "0.5806...
0.7600124
0
Return the location of the block.
def WFFe(YKHO, yetk): mJgU = ksY4(YKHO._pos, yetk) AQSv = bJFh(mJgU) return YKHO._pos + sum(AQSv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yxrN(YKHO):\n return _qLf(YKHO._block_loc)", "def mQIT(YKHO):\n return str(YKHO.location).split('@')[-1]", "def gyco(YKHO):\n return Jr3l.gumtree.getBlock()", "def Rci7(YKHO):\n if not hasattr(YKHO, '_loc'):\n YKHO._loc = Fv2L.lib.clang_getCursorLocation(YKHO)\n return YKHO._loc", ...
[ "0.8025761", "0.7139364", "0.7097931", "0.7021613", "0.7016894", "0.6929849", "0.68666357", "0.6858844", "0.67996484", "0.67234784", "0.66733414", "0.66686624", "0.6641708", "0.66294825", "0.66294825", "0.6626714", "0.6620962", "0.6610229", "0.6598291", "0.65973485", "0.65767...
0.72970724
1
Return the block location.
def yxrN(YKHO): return _qLf(YKHO._block_loc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQIT(YKHO):\n return str(YKHO.location).split('@')[-1]", "def WFFe(YKHO, yetk):\n mJgU = ksY4(YKHO._pos, yetk)\n AQSv = bJFh(mJgU)\n return YKHO._pos + sum(AQSv)", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return None", "def gyco(YKHO):\n return Jr3l.gumtree.getB...
[ "0.7454769", "0.7220945", "0.7134207", "0.70886534", "0.7013285", "0.7009", "0.6997062", "0.69218934", "0.6888594", "0.6850154", "0.6810005", "0.6810005", "0.6810005", "0.67957693", "0.67957693", "0.676836", "0.6755234", "0.67155397", "0.66995835", "0.6698009", "0.6685012", ...
0.8022522
0
Return the player location.
def Uynw(YKHO): return _qLf(YKHO._player_loc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzy_(YKHO):\n return YKHO.player.location", "def CKpZ():\n return NcWM(CXtY().player.getTilePos())", "def PVqH(QTBn):\n return QTBn['gladiators'][QTBn['current_player']]['pos']", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def Urye(YKHO) -> m7iN...
[ "0.940299", "0.83086497", "0.78003746", "0.7700541", "0.76502836", "0.75900316", "0.7576151", "0.74968773", "0.7440866", "0.7264581", "0.7224984", "0.72223294", "0.7185377", "0.71543133", "0.71543133", "0.71543133", "0.71543133", "0.71543133", "0.71543133", "0.71543133", "0.7...
0.7689073
4
Return the mining heuristic. bot is an _ImaginaryBot.
def QCcT(JyK9, X3eO): if JyK9.contains(X3eO.get_block_id()): return 0 nYWW = JyK9.get_pos() ylXP = X3eO.get_block_loc() XvIu = oLDM((nYWW.x, nYWW.z), (ylXP.x, ylXP.z)) _nZe = nYWW.y - ylXP.y if _nZe < 0: _nZe += 1 if _nZe == 0: return XvIu ReNU = nCcC if _nZe > 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M1aw(YKHO):\n return YKHO._heuristic", "def evGU(JyK9, X3eO):\n nYWW = JyK9.get_pos()\n uZb4 = X3eO.get_player_loc()\n JL95 = (JyK9.x, JyK9.z)\n _nZe = nYWW.y - uZb4.y\n ReNU = nCcC if _nZe > 0 else 1\n _nZe = abs(_nZe)\n WNed = M9kl(_nZe, ReNU)\n cepY = float('inf')\n for Kwmb ...
[ "0.66870767", "0.66380966", "0.6383091", "0.6321459", "0.6278286", "0.6246109", "0.5942044", "0.5927803", "0.5920244", "0.59188855", "0.5909226", "0.5888236", "0.5827928", "0.5811517", "0.5806053", "0.5729955", "0.57151765", "0.5644821", "0.5640471", "0.55929893", "0.55426335...
0.5678521
17
Return the player's location.
def CKpZ(): return NcWM(CXtY().player.getTilePos())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzy_(YKHO):\n return YKHO.player.location", "def PVqH(QTBn):\n return QTBn['gladiators'][QTBn['current_player']]['pos']", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def Uynw(YKHO):\n return _qLf(YKHO._player_loc)", "def Urye(YKHO) -> m7iN:\n ...
[ "0.9377155", "0.7869352", "0.7720662", "0.76937264", "0.7692787", "0.7643892", "0.76340455", "0.7480468", "0.74407315", "0.7373182", "0.72941035", "0.72834784", "0.7213151", "0.72030866", "0.712011", "0.712011", "0.7117609", "0.7117609", "0.7117609", "0.7117609", "0.7117609",...
0.82694536
1
A bad input file > raise ConnectomistBadFileError.
def DNbU(YKHO, FjTE): FjTE.isfile.side_effect = [False, True, True, True, True] YKHO.assertRaises(QQuG, fSK7, **YKHO.kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pP2J():\n with trZe.raises(ValueError):\n GSyo._valid_file(xAKo)", "def C79G(YKHO):\n YKHO.assertRaises(_OuM, YKHO.hw, YKHO.badfile)", "def LtMs(YKHO):\n YKHO.assertRaises(i15K, YKHO.c.handle, csv='inexistent.file.csv', confirmed='Y', stdout=YKHO.c.stderr)", "def g789(IznC):\n with trZ...
[ "0.6809363", "0.68079185", "0.6577426", "0.6529052", "0.6471954", "0.6387992", "0.63501537", "0.632845", "0.6320288", "0.630515", "0.63046706", "0.62566084", "0.62461776", "0.62461776", "0.62445587", "0.6219725", "0.61836076", "0.61783695", "0.6174595", "0.61732185", "0.61599...
0.6321605
8
Calculate the probability of a light curve to be variable and the excess variance.
def Yxbr(lT0l, FOSW, XObx): JBMS = oyIN.mean(FOSW) ympj = float(len(lT0l)) Ei2p = oyIN.sum((FOSW - JBMS) ** 2.0 / XObx ** 2.0) ePYN = JEVk.cdf(Ei2p, ympj - 1) jzdc = (FOSW - JBMS) ** 2 xVwz = oyIN.sum(jzdc - XObx ** 2) / (ympj * JBMS ** 2) ifkm = oyIN.sqrt(1.0 / (ympj - 1) * oyIN.sum((jzdc -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8JS(YKHO):\n return 1 / YKHO.count() * sum(((FGW3 - YKHO.average()) ** 2 for FGW3 in YKHO.numbers))", "def pUwY(YKHO):\n YKHO._properties['var'] = oyIN.sqrt(YKHO.rawdata * YKHO.exposuretime) / YKHO.exposuretime", "def ZZ_m(exwG, XP5J):\n return XP5J * (1 - XP5J) / exwG", "def I8JS(YKHO):\n r...
[ "0.6694544", "0.6577316", "0.655774", "0.6489866", "0.6436287", "0.6417101", "0.640885", "0.63948274", "0.6383556", "0.6381857", "0.63805944", "0.6363977", "0.6322661", "0.62295526", "0.62219024", "0.61889213", "0.61786276", "0.6134899", "0.6130089", "0.6077877", "0.60338676"...
0.0
-1
negative value of the likelihood, to perfor maximization using the minimize function
def cu10(q7In, Zu_p, R9G1, zB2b): return -1.0 * WmvO(q7In, Zu_p, R9G1, zB2b)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PhMO(YKHO):\n if YKHO.spatial_only:\n ef5r = 0\n else:\n ef5r = oyIN.mean((YKHO.energy_likelihood._min_index, YKHO.energy_likelihood._max_index))\n guxf = oyIN.arange(YKHO.fit_input['N']).mean()\n r8hN = iT8L(YKHO._neg_lbl, n_s=guxf, gamma=ef5r)\n r8hN.errors = [1, 0.1]\n r8hN.e...
[ "0.6684263", "0.6584015", "0.6557697", "0.63962555", "0.6339496", "0.63338804", "0.63103855", "0.62878", "0.6258153", "0.624534", "0.6158027", "0.61535037", "0.6133659", "0.6102288", "0.60974306", "0.60815144", "0.6064348", "0.6057554", "0.6050042", "0.603683", "0.6035186", ...
0.0
-1
Test the email for a new user is normalized
def DBpU(YKHO): D3lj = 'test@NXKSJDK>COM' CBIr = egNl().objects.create_user(email=D3lj, password='zbmznzss') YKHO.assertEqual(CBIr.email, D3lj.lower())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def saHt(YKHO):\n D3lj = 'test@GOOGLE.COM'\n CBIr = egNl().objects.create_user(D3lj, '212ds')\n YKHO.assertEqual(CBIr.email, D3lj.lower())", "def H6gL(YKHO):\n D3lj = 'test@RANDOMEMAIL.org'\n CBIr = egNl().objects.create_user(D3lj, password='password')\n YKHO.assertEqual(CBIr.email, D3lj.lower(...
[ "0.79984254", "0.7997281", "0.79201037", "0.78920823", "0.78920823", "0.78920823", "0.7871696", "0.78619236", "0.785927", "0.7858499", "0.7853585", "0.7844939", "0.7773778", "0.7771046", "0.7745209", "0.7744957", "0.7702127", "0.75698525", "0.74174696", "0.7257744", "0.714764...
0.75344014
18
Test creating user with no email raises error
def V97d(YKHO): with YKHO.assertRaises(ValueError): egNl().objects.create_user(None, 'test1234')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q5xs(YKHO):\n with trZe.raises(ValueError) as wrFM:\n biYH.objects._create_user(None, None, False, False)\n YKHO.assertIn('email must be set', str(wrFM.value))", "def hhyC(YKHO):\n with YKHO.assertRaises(ValueError):\n egNl().objects.create_user(None, 'Test1234')", "def FfRJ(YKHO):\n...
[ "0.90316164", "0.89628595", "0.8736244", "0.87360644", "0.8725108", "0.8717065", "0.87141234", "0.87141234", "0.87141234", "0.87141234", "0.87141234", "0.8704795", "0.8700351", "0.86953294", "0.868995", "0.868059", "0.8670541", "0.85970515", "0.85921985", "0.85869586", "0.855...
0.87026894
12
Return the normalized ptoq perplexity.
def Y189(XP5J: np.ndarray, vexM: np.ndarray, SGf8: float=1e-10) -> x1iM[float]: tfKt = t1lM(XP5J, vexM, SGf8)[0] H1vv = oyIN.exp(-tfKt) return [H1vv]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y189(YKHO):\n raise NotImplementedError('To be implemented')", "def Y189(YKHO):\n return s2p1.perplexity_comp(YKHO.docid, YKHO.tokens, YKHO.tt, YKHO.dt, YKHO.N, YKHO.K, YKHO.samples)", "def Y189(YKHO):\n return s2p1.perplexity_comp(YKHO.docid, YKHO.tokens, YKHO.tt, YKHO.dt, YKHO.N, YKHO.K, YKHO.sa...
[ "0.72708213", "0.6601539", "0.6601539", "0.6414812", "0.61556983", "0.60456693", "0.60011685", "0.59922504", "0.5979123", "0.59789044", "0.5978826", "0.59635854", "0.5942892", "0.592865", "0.5903796", "0.58989954", "0.58989954", "0.58743584", "0.58688813", "0.58494806", "0.58...
0.64187413
3
Return the cross entropy from a distribution p to a distribution q.
def CqbS(XP5J: np.ndarray, vexM: np.ndarray, SGf8: float=1e-10) -> float: XP5J = oyIN.asarray(XP5J) vexM = oyIN.asarray(vexM) if XP5J.ndim > 2 or vexM.ndim > 2: raise ValueError(f'Not obvious how to reshape arrays: got shapes {XP5J.shape} and {vexM.shape}.') elif XP5J.ndim == 2 and XP5J.shape[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CqbS(XP5J, vexM, P8oC=2):\n vexM = fHeP.array(vexM, mask=vexM == 0)\n return -oyIN.vdot(XP5J, fHeP.log(vexM)) / oyIN.log(P8oC)", "def cNbL(ntJ1):\n SvxO = 1 - ntJ1\n lWPh = -ntJ1 * epAf.log(ntJ1) - SvxO * epAf.log(SvxO)\n return lWPh", "def CqbS(cgmM, XP5J):\n pass", "def YvhI(V6IE, T8c...
[ "0.76480114", "0.7216248", "0.70279425", "0.66920954", "0.6645409", "0.6548334", "0.6468836", "0.6455908", "0.64281404", "0.6385125", "0.6373695", "0.63714", "0.6359264", "0.63197803", "0.6267375", "0.6261805", "0.6229502", "0.62076503", "0.61105174", "0.60765547", "0.6064091...
0.75772566
1
Return a single boolean mask and a silhouette score ceiling for each class
def GG3K(YoQM, WEJA, pgAQ: Optional[Dict[int, float]]=None, t3eI: int=42): yinN = oyIN.empty(len(YoQM), dtype=bool) if pgAQ is None: pgAQ = {} for V8Gh in oyIN.unique(WEJA): mC8x = WEJA == V8Gh ZHfW, i5aS = Vlyl(YoQM[mC8x], majority_ceiling=pgAQ.get(V8Gh), random_state=t3eI) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q3Ga(Y8eF: Tensor):\n Y8eF = Y8eF.detach().cpu()\n Ep8u = Y8eF.size(0)\n jTqs = Y8eF.size(1)\n if jTqs == 1:\n Y8eF = Y8eF.view(Ep8u, -1)\n elif jTqs == 2:\n Y8eF = Y8eF[:, 1, ...].contiguous().view(Ep8u, -1)\n else:\n raise ValueError('Unknown num_classes')\n DNEK = f...
[ "0.6539132", "0.6507482", "0.6070667", "0.6066459", "0.591608", "0.5797496", "0.5796534", "0.5793637", "0.5736963", "0.5734178", "0.56735015", "0.56735015", "0.56735015", "0.5634717", "0.55799156", "0.5556358", "0.5554316", "0.55453575", "0.55165464", "0.55119574", "0.5509121...
0.0
-1
A weighted version of keras.objectives.categorical_crossentropy
def QdMo(_mSQ): _mSQ = nMvt.variable(_mSQ) def N77f(Y8eF, aMgO): uN02 = aMgO / nMvt.sum(aMgO, axis=-1, keepdims=True) uN02 = nMvt.clip(uN02, nMvt.epsilon(), 1 - nMvt.epsilon()) N77f = Y8eF * nMvt.log(uN02) * _mSQ N77f = -nMvt.sum(N77f) / nMvt.cast(nMvt.shape(Y8eF)[0] * nMvt.shap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdMo(_mSQ):\n _mSQ = nMvt.variable(_mSQ)\n\n def N77f(Y8eF, aMgO):\n aMgO /= nMvt.sum(aMgO, axis=-1, keepdims=True)\n aMgO = nMvt.clip(aMgO, nMvt.epsilon(), 1 - nMvt.epsilon())\n N77f = Y8eF * nMvt.log(aMgO) * _mSQ\n N77f = -nMvt.sum(N77f, -1)\n return N77f\n return ...
[ "0.7962428", "0.77685136", "0.77685136", "0.7737729", "0.7454981", "0.7272084", "0.7089237", "0.70415", "0.7039276", "0.6933727", "0.69046044", "0.6863352", "0.68381506", "0.6812229", "0.67731565", "0.67504907", "0.6676336", "0.6650147", "0.65918285", "0.65785307", "0.6573249...
0.7873619
1
Returns the travel time (s) to go from a a point 'origin' to a point 'destination'. Both origin and destination are of the form (x, y) or (x, y, z)
def lLPx(YKHO, hLRM, yFgu): assert 2 <= len(hLRM) <= 3, 'Origin should by (x, y) or (x, y, z)' assert 2 <= len(yFgu) <= 3, 'Origin should by (x, y) or (x, y, z)' assert len(hLRM) == len(yFgu), 'Elevation should be present in origin and destination or absent in both' if len(hLRM) == 2: XGDG, iSy9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dvZK(Oa1e, hLRM, yFgu, Ayfi):\n ITS7 = 0\n sgTf = 1406.25\n if Ayfi > 400:\n ITS7 = ITS7 + 0.53 + 0.53\n Ayfi = Ayfi - 400\n ITS7 = ITS7 + Ayfi / 750\n else:\n zqxI = Ayfi / 2.0\n ITS7 = ITS7 + 2(epAf.sqrt(2 * zqxI / sgTf))\n Cs_S = Oa1e.city_dict[yFgu].get_fli...
[ "0.69691396", "0.68376493", "0.67335826", "0.66552216", "0.65237266", "0.6398256", "0.6393746", "0.6388185", "0.633329", "0.627189", "0.6255315", "0.62320983", "0.6227801", "0.6213503", "0.6203562", "0.61351603", "0.61141855", "0.6053581", "0.59249866", "0.59126836", "0.58929...
0.82354397
0
Get the candidate configuration for the specified get_address object. This will not return address objects that are marked as predefined objects.
def vAkW(UTX6=None, TpIO='1'): xDcj = {'type': 'config', 'action': 'get', 'xpath': "/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys{}']/address/entry[@name='{}']".format(TpIO, UTX6)} return j1tI['panos.call'](xDcj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO, QePW, NBcv):\n KcEq = Iofl(NPYu, pk=NBcv)\n return zkpM(KcEq)", "def tgzD(YKHO):\n if YKHO.allow_reco():\n return YKHO.chs_config()\n else:\n return YKHO.get_config_j(YKHO.id)", "def tgzD(YKHO) -> YrBT[[cOdM.GetConfigRequest], cOdM.Config]:\n if 'get_config' not in Y...
[ "0.5748436", "0.5656011", "0.55608046", "0.5499388", "0.54659384", "0.53970903", "0.5376698", "0.5337358", "0.53103185", "0.5305613", "0.5258785", "0.519438", "0.5122426", "0.51137346", "0.51130146", "0.50922453", "0.50922453", "0.50922453", "0.50922453", "0.50922453", "0.509...
0.51798195
12
Get the high availability configuration.
def VTWw(): xDcj = {'type': 'config', 'action': 'get', 'xpath': "/config/devices/entry[@name='localhost.localdomain']/deviceconfig/high-availability"} return j1tI['panos.call'](xDcj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n if YKHO.faucet is not None:\n return YKHO.faucet.get_config()\n return None", "def nI5o(YKHO) -> 'outputs.MonitoringConfigResponse':\n return qe4Y.get(YKHO, 'monitoring_config')", "def tgzD(YKHO, **B2fa) -> h8nf[cuzp[str, ImMB]]:\n if YKHO.current_individual >= len(YKHO.cur...
[ "0.6119114", "0.60776865", "0.5961621", "0.5893652", "0.5883123", "0.5869306", "0.5836497", "0.57738686", "0.5769125", "0.5759186", "0.5752893", "0.5750962", "0.5735003", "0.57307005", "0.5725398", "0.5720938", "0.56903815", "0.5690307", "0.5690307", "0.5690307", "0.5690307",...
0.71942973
0
Get the platform model information and limitations.
def Z5O9(): xDcj = {'type': 'config', 'action': 'get', 'xpath': "/config/devices/entry[@name='localhost.localdomain']/platform"} return j1tI['panos.call'](xDcj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa_Y() -> PQ7K:\n return JbNc(gCuF.ML_MODELS)", "def C3ST(YKHO):\n vL7S = YKHO._raw_version_data()\n if YKHO._model is None:\n YKHO._model = vL7S['hardware']\n return YKHO._model", "def zm07(YKHO):\n return YKHO.msg.platform_info", "def MeYR(YKHO) -> list:\n C3ST = gk2W.create_st...
[ "0.627574", "0.60612804", "0.6031113", "0.60019666", "0.59936637", "0.5916288", "0.581848", "0.57306546", "0.5712169", "0.5700885", "0.5696229", "0.5661499", "0.5599238", "0.55917954", "0.5586466", "0.55739087", "0.5558063", "0.5551362", "0.55432546", "0.55403537", "0.5516864...
0.553503
20
Get the configuration for the specified predefined application object. This will only return predefined application objects.
def YYK4(SCWY=None): xDcj = {'type': 'config', 'action': 'get', 'xpath': "/config/predefined/application/entry[@name='{}']".format(SCWY)} return j1tI['panos.call'](xDcj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YD9W(P4t4: Optional[Flask]=None) -> GySg:\n if P4t4 is not None:\n if isinstance(P4t4, L2w0):\n return P4t4.config\n if H6Ho:\n return H6Ho.config\n return Hy7s.environ", "def BDqQ(YKHO, SCWY):\n eCys = YKHO.sys_conf['configs']['env'][YKHO.env]['app_config_url']\n eCys...
[ "0.62549347", "0.6107998", "0.60562265", "0.6007065", "0.60055685", "0.5937429", "0.5916336", "0.5905927", "0.58985776", "0.58350784", "0.5790175", "0.57736355", "0.5712072", "0.570978", "0.56978667", "0.5679385", "0.56176543", "0.5597747", "0.5573032", "0.55619985", "0.55535...
0.73107076
0
Get the candidate configuration for the specified security rule.
def o3fp(XgkA=None, TpIO='1'): xDcj = {'type': 'config', 'action': 'get', 'xpath': "/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys{}']/rulebase/security/rules/entry[@name='{}']".format(TpIO, XgkA)} return j1tI['panos.call'](xDcj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n if YKHO.allow_reco():\n return YKHO.chs_config()\n else:\n return YKHO.get_config_j(YKHO.id)", "def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n if eD8c == k0nO:\n return k0nO", "def Gegv(YKHO, eD8c):\n for k0nO in YKHO.rules:\n if eD8c == k...
[ "0.62327605", "0.6047671", "0.6047671", "0.6047671", "0.59747005", "0.58710474", "0.5780412", "0.5751388", "0.5660602", "0.56448513", "0.56316376", "0.5615237", "0.55305403", "0.55305403", "0.55205905", "0.55205905", "0.551969", "0.54568094", "0.5435195", "0.5405116", "0.5397...
0.49470055
88
Get the SNMP configuration from the device.
def FkGx(): xDcj = {'type': 'config', 'action': 'get', 'xpath': "/config/devices/entry[@name='localhost.localdomain']/deviceconfig/system/snmp-setting"} return j1tI['panos.call'](xDcj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr(YKHO) -> 'outputs.DeviceConfigResponse':\n return qe4Y.get(YKHO, 'config')", "def pJdo(YKHO):\n return YKHO._snmp_defaults", "def Ba46(YKHO):\n try:\n return YKHO._dev\n except:\n return 0", "async def get_config(YKHO, vYBr=None):\n RKD7.info('get_config')\n if vYBr i...
[ "0.636297", "0.62657404", "0.6025873", "0.6015666", "0.59946495", "0.5902574", "0.571561", "0.5673222", "0.5662231", "0.56548804", "0.56516975", "0.56426436", "0.56218284", "0.5529755", "0.5474312", "0.546071", "0.54582256", "0.541161", "0.5384179", "0.5345556", "0.53340906",...
0.7799914
0
Get the system date/time.
def t8Vt(): xDcj = {'type': 'op', 'cmd': '<show><clock></clock></show>'} return j1tI['panos.call'](xDcj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zOBZ(YKHO):\n return YKHO.mycam.devicemgmt.GetSystemDateAndTime()", "def zhU5():\n import datetime\n return datetime.datetime.now()", "def hZ7V(YKHO):\n return gTEQ('PrlStatCpu_GetSystemTime', YKHO.handle)", "def m7L9():\n return qcWV.datetime.now()", "def tmL2():\n from datetime impo...
[ "0.84595096", "0.7718407", "0.73819536", "0.7381928", "0.7378176", "0.72158635", "0.7161397", "0.7158314", "0.7157886", "0.71509767", "0.714318", "0.714318", "0.7123552", "0.711938", "0.7116743", "0.710303", "0.7079561", "0.70628023", "0.7049035", "0.7039835", "0.7001971", ...
0.7918134
1
Get the local administrative user account configuration.
def SiWd(): xDcj = {'type': 'config', 'action': 'get', 'xpath': '/config/mgt-config/users'} return j1tI['panos.call'](xDcj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LF7u(YKHO):\n return YKHO.__user_config", "def vg1y(YKHO) -> qe4Y.Input['AdministrativeCredentialsArgs']:\n return qe4Y.get(YKHO, 'admin_credentials')", "def gZcH():\n if 'DB_ADMIN' in Z7L0.CONF.keys():\n return Z7L0.CONF['DB_ADMIN']\n return bJjo.DB_ADMIN", "def fi68(YKHO) -> h8nf[qe4...
[ "0.68473256", "0.6641574", "0.6529314", "0.6398287", "0.6398287", "0.63331574", "0.6269938", "0.62358624", "0.6197195", "0.6194177", "0.6188089", "0.6153847", "0.6098112", "0.6067702", "0.6040022", "0.6035774", "0.6013425", "0.5994657", "0.5972955", "0.59706146", "0.59692156"...
0.6173798
11
Set the timezone of the Palo Alto proxy minion. A commit will be required before this is processed.
def D1G8(yl4j=None, R1MW=False): if not yl4j: raise x2pC('Timezone name option must not be none.') U5bT = {} xDcj = {'type': 'config', 'action': 'set', 'xpath': "/config/devices/entry[@name='localhost.localdomain']/deviceconfig/system/timezone", 'element': '<timezone>{}</timezone>'.format(yl4j)} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D1G8(w2B8, rIAI):\n with L2Qu(w2B8) as Z9rn:\n Z9rn.execute('SET timezone = %s', (rIAI,))", "def D1G8(YKHO, wnl6):\n YKHO.startdate = wnl6.localize(YKHO.startdate.replace(tzinfo=None))\n YKHO.enddate = wnl6.localize(YKHO.enddate.replace(tzinfo=None))\n YKHO.timezone = wnl6", "def set(YKH...
[ "0.72961956", "0.66699666", "0.6638812", "0.65618724", "0.6537264", "0.6537264", "0.6537264", "0.6537264", "0.6537264", "0.6389307", "0.63826954", "0.63826954", "0.63729995", "0.63657653", "0.63220936", "0.62074715", "0.6111014", "0.60398626", "0.6007683", "0.5962305", "0.588...
0.6830989
1
Take a first and last name and format it to return the title case version of the name.
def T37t(knSv, FOIu): if knSv == '' or FOIu == '': return "You didn't provide valid inputs." FtXI = knSv.title() TYyx = FOIu.title() return f'Result: {FtXI} {TYyx}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1yb(c9ua, zp3f):\n eHMM = f'{c9ua} {zp3f}'\n return eHMM.title()", "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()", "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()", "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.t...
[ "0.8673775", "0.86134124", "0.86134124", "0.86134124", "0.8580511", "0.85708284", "0.8551684", "0.8551684", "0.8551684", "0.85449964", "0.85438037", "0.8518748", "0.85064423", "0.8500691", "0.8484864", "0.84470373", "0.84470373", "0.84401643", "0.84316254", "0.8410574", "0.83...
0.6969862
61
Get the Wisconsin Breast Cancer classification dataset, formatted as a DataFrame
def CInH(pan_='diagnosis'): nPrm = BliY() jQ3Z = rLdf.DataFrame(data=nPrm.data, columns=[bGrB.replace(' ', '_') for bGrB in nPrm.feature_names]) jQ3Z[pan_] = nPrm.target return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lx9W(Rci7: str) -> x3i3:\n ZLJ_ = ['id', 'target']\n sB1G = ['radius', 'texture', 'perimeter', 'area', 'smoothness', 'compactness', 'concavity', 'concave_points', 'symmetry', 'fractal_dimension']\n for y0cW in ['mean', 'sd', 'worst']:\n for yDqo in sB1G:\n ZLJ_.append(f'{y0cW}_{yDqo}...
[ "0.66557175", "0.66050845", "0.6479283", "0.5993223", "0.59222287", "0.5885735", "0.57678545", "0.57595885", "0.564008", "0.55762273", "0.54982054", "0.5498182", "0.5492114", "0.5474977", "0.5462391", "0.54474795", "0.5431308", "0.5430017", "0.54200256", "0.54114246", "0.5409...
0.6683395
0
Wrapper around `sklearn.datasets.make_classification` to produce a `pandas.DataFrame`
def v3xp(pan_='target', cDK5=300, TFPw=2, hXNa=True, t3eI=32, **B2fa): WKvO, LVAh = Y95X(n_samples=cDK5, n_classes=TFPw, shuffle=hXNa, random_state=t3eI, **B2fa) x4W3 = rLdf.DataFrame(data=WKvO, columns=range(WKvO.shape[1])) x4W3[pan_] = LVAh return x4W3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S2U3(YKHO) -> rLdf.DataFrame:\n pass", "def SIrG(yLaY, N6Z1, Zg0d='test_pandas.csv', LaRC=None):\n import pandas as rLdf\n Crrw = OrFa(yLaY, N6Z1)\n rhd_, AOzf, UBgn, TW6e = YwIb(yLaY, N6Z1, labels=Crrw, average=None)\n FCYb = rLdf.DataFrame({'class': Crrw, 'precision': rhd_, 'recall': AOzf, '...
[ "0.72941816", "0.656385", "0.6490683", "0.64862895", "0.64564186", "0.6335214", "0.6283156", "0.6236503", "0.61995703", "0.6191694", "0.6066481", "0.60631585", "0.6056585", "0.60497206", "0.6041406", "0.60371906", "0.5975861", "0.59707016", "0.59195715", "0.5862174", "0.58394...
0.73247075
0
Get first and last day of specified year and month
def aheP(lO87, x0eS): WN0e, Sm0u = GRk0.monthrange(lO87, x0eS) cntZ = qcWV.date(year=lO87, month=x0eS, day=1) XVAW = qcWV.date(year=lO87, month=x0eS, day=Sm0u) return (cntZ, XVAW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fjgq(lO87, x0eS):\n wEtp = qcWV.date(lO87, x0eS, 1)\n ddKN = EUf4(wEtp, 1) - qcWV.timedelta(days=1)\n return (wEtp, ddKN)", "def t2U7(_c1T):\n FxRR = _c1T.replace(day=1)\n qjaP = _c1T.replace(day=GRk0.monthrange(_c1T.year, _c1T.month)[1])\n return (FxRR, qjaP)", "def n0jH(lO87=None, x0eS=...
[ "0.7275492", "0.70373744", "0.7026227", "0.6941622", "0.6793637", "0.6728882", "0.6716931", "0.66475904", "0.6627738", "0.6564959", "0.6518516", "0.65176165", "0.6491401", "0.64228636", "0.64092284", "0.63485146", "0.6272898", "0.6250001", "0.6247201", "0.62380534", "0.622719...
0.76028967
0
Extract initial value from fitargs dictionary.
def CxGC(Fg_i): return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in Fg_i.items() if l8yh(G1Hx)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RqgG(YKHO):\n return YKHO.args[3]", "def rJDh(YKHO, **B2fa):\n zCTP = {}\n zCTP['pinit'] = B2fa['pinit']\n zCTP['limits'] = B2fa['limits']\n zCTP['fix'] = B2fa['fix']\n zCTP['error'] = U8Lr()\n for G1Hx in B2fa['limits'].keys():\n zCTP['error'][G1Hx] = B2fa['pinit'][G1Hx] * B2fa['...
[ "0.6410786", "0.5693868", "0.5662911", "0.56538963", "0.5606293", "0.5606293", "0.55113983", "0.551042", "0.5474696", "0.5402391", "0.5388093", "0.53398776", "0.5336224", "0.53161585", "0.53048015", "0.530335", "0.5277424", "0.5277099", "0.52699244", "0.52174664", "0.521338",...
0.0
-1
Extract limit from fitargs dictionary.
def qAo9(Fg_i): return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in Fg_i.items() if G1Hx.startswith('limit_')))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ziTB(*qIxc):\n return qIxc[0].Limit.PTLimit.pt_limit", "def K3hO(bAmk, MpXb, qsUc, ViGg, GsRs):\n uxij = GsRs[bAmk][MpXb][qsUc]\n return (uxij[ViGg]['Usl'], uxij[ViGg]['Lsl'], uxij['Units'])", "def qoqK(YKHO) -> qe4Y.Input[float]:\n return qe4Y.get(YKHO, 'limit')", "def UN2h(**B2fa):\n mzA...
[ "0.6350013", "0.58575", "0.58348966", "0.57527745", "0.5735538", "0.57276535", "0.55588186", "0.54599136", "0.53663504", "0.5362824", "0.53354406", "0.5322988", "0.53138024", "0.5308602", "0.52922285", "0.52894396", "0.52843624", "0.52843624", "0.5281722", "0.52688295", "0.52...
0.65352356
0
convert the month format input a integer; output a string;
def Nvlf(mLGw): if mLGw < 10: return '00%s' % str(mLGw) elif 10 <= mLGw < 100: return '0%s' % str(mLGw) else: return '%s' % str(mLGw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pL8v(vIwR):\n pdbK = qcWV.datetime.strptime(vIwR, '%B')\n ZR0n = pdbK.month\n return ZR0n", "def _UKW(mLGw) -> str:\n return dict([(1, 'JAN'), (2, 'FEB'), (3, 'MAR'), (4, 'APR'), (5, 'MAY'), (6, 'JUN'), (7, 'JUL'), (8, 'AUG'), (9, 'SEP'), (10, 'OCT'), (11, 'NOV'), (12, 'DEC')])[mLGw]", "def kpx...
[ "0.75571626", "0.7355818", "0.73017186", "0.72119343", "0.71637565", "0.7111653", "0.7099535", "0.70975775", "0.7004239", "0.6971996", "0.69585353", "0.6923429", "0.68679816", "0.686378", "0.683121", "0.680282", "0.67763066", "0.6650608", "0.66478276", "0.6620904", "0.6619736...
0.0
-1
Returns the transport used by the client instance.
def PdI0(YKHO) -> x0t8: return YKHO._client.transport
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PdI0(YKHO):\n return YKHO._transport", "def PdI0(YKHO) -> XLc3:\n return YKHO._client.transport", "def PdI0(YKHO) -> WYqF:\n return YKHO._client.transport", "def PdI0(YKHO) -> PaEF:\n return YKHO._client.transport", "def PdI0(YKHO) -> JKRZ:\n return YKHO._client.transport", "def PdI0(Y...
[ "0.82946277", "0.7887542", "0.773594", "0.773068", "0.76806635", "0.7674273", "0.76357967", "0.7558095", "0.7551682", "0.74958986", "0.7488142", "0.7436853", "0.7423566", "0.7368433", "0.73340607", "0.721926", "0.7109823", "0.7102308", "0.68808985", "0.68144", "0.6671675", ...
0.75303864
9
r"""Request detailed information about the execution status of the job. EXPERIMENTAL. This API is subject to change or removal without notice.
async def get_job_execution_details(YKHO, QePW: metrics.GetJobExecutionDetailsRequest=None, *, ZFzw: retries.Retry=uMLX.method.DEFAULT, vYBr: float=None, yIVm: Sequence[Tuple[str, str]]=()) -> yX0M.GetJobExecutionDetailsAsyncPager: QePW = Wbxz.GetJobExecutionDetailsRequest(QePW) lTaB = uMLX.method_async.wrap_me...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLTN(YKHO):\n bD7m = 'data_request?id=jobstatus&job=%d&plugin=zwave' % YKHO.id\n return YKHO.vera.get(bD7m)", "def U34r(YKHO):\n _hkX = YKHO.server.request('get', '/jobs/%s/%s' % (YKHO.sessionid, YKHO.name))\n return YKHO.server.json_body(_hkX)", "def VLTN(YKHO):\n return gTEQ('PrlJob_GetSta...
[ "0.7364049", "0.7077297", "0.70637745", "0.7020381", "0.69225526", "0.6827289", "0.68070465", "0.6789452", "0.67428255", "0.67225164", "0.6605939", "0.65959287", "0.65711933", "0.6569383", "0.6522878", "0.64846224", "0.6450781", "0.64492077", "0.64393055", "0.64249057", "0.64...
0.0
-1
Generates a subsetted dataframe with only the change records that occur in or before the specified max interval year
def tco1(jQ3Z, Gkhw=3, HxJm='Change_Year', Vvy4='Current_Project_Year', ulNk=True): FHnm = jQ3Z.copy().loc[(jQ3Z[HxJm] <= Gkhw) & (jQ3Z[Vvy4] >= Gkhw if ulNk else jQ3Z[Vvy4] > Gkhw)] return FHnm.set_index('Record_ID')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qb89(jQ3Z: pd.DataFrame, rjW2: int) -> AzJI[rLdf.DataFrame, rLdf.DataFrame]:\n return (jQ3Z[jQ3Z.year >= rjW2], jQ3Z[jQ3Z.year < rjW2])", "def JstZ(bOBl, yKcO, Os4s):\n jbXL = bOBl\n jbXL = jbXL[(yKcO <= jbXL['year'].astype(int)) & (jbXL['year'].astype(int) <= Os4s)]\n return jbXL", "def HlqJ(j...
[ "0.6334108", "0.6170329", "0.5933685", "0.59188503", "0.5736273", "0.5733603", "0.57267964", "0.559577", "0.55346745", "0.5508034", "0.5436531", "0.5411411", "0.54014665", "0.53851557", "0.5383787", "0.5379187", "0.5366586", "0.53607756", "0.533567", "0.53301597", "0.5328392"...
0.75006086
0
Creates dataframe joining the df_details and df_endstate dataframes by PID
def qbzn(AAf0, ichO, UAE4='inner'): PlSz = rLdf.merge(AAf0, ichO, how=UAE4, left_index=True, right_index=True) return PlSz.reset_index()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aRQP(Xz0Q='data/output.psv', J7Cn=None):\n with open(Xz0Q, encoding='utf-8') as eHNT:\n SkMm = eHNT.read()\n _6qt = ZbWC.sub('\\\\n(?![0-9])', ' ', SkMm)\n jQ3Z = rLdf.read_csv(xDSY.StringIO(_6qt), sep='|', error_bad_lines=False)\n jQ3Z.art_arttitle = oyIN.where(jQ3Z.art_arttitle.isnull() & ...
[ "0.5896843", "0.57282", "0.5638434", "0.56246525", "0.55947655", "0.5526413", "0.55151004", "0.54422283", "0.53904057", "0.5363028", "0.53598756", "0.53485715", "0.5291043", "0.5278683", "0.5234996", "0.5222538", "0.52222776", "0.52187043", "0.5215274", "0.5214937", "0.521404...
0.66262615
0
Return a list of models whose definitions we'll be storing. This method should be updated when new models are added. List of model classes.
def lc7v(): FYrf = [nNXP.v1.models.job.Job] return FYrf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BtSN(YKHO):\n return _VfD.CompSBMLDocumentPlugin_getListOfModelDefinitions(YKHO)", "def FYrf(YKHO):\n return YKHO._base.classes", "def FYrf(YKHO) -> a1PO.List[wOed]:\n QVOl: a1PO.List[wOed] = [ZfUD for ZfUD in YKHO._deployables if isinstance(ZfUD, wOed)]\n return QVOl", "def FYrf(YKHO) -> lis...
[ "0.752933", "0.74305487", "0.7028396", "0.69965434", "0.6849996", "0.682566", "0.6821897", "0.6786676", "0.67638946", "0.6760213", "0.673613", "0.6699694", "0.6684607", "0.6635074", "0.6635074", "0.6635074", "0.6635074", "0.66291624", "0.6536095", "0.6502046", "0.6498738", ...
0.66071135
18
Converts token indices to tokens according to the vocabulary
def dP1x(YKHO, _0VL: Union[int, List[int]]) -> uLKX[str, x1iM[str]]: if isinstance(_0VL, list): return [YKHO._idx_to_token[or8S] for or8S in _0VL] else: return YKHO._idx_to_token[_0VL]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bBjF(YKHO, s2mk):\n xDYK = []\n for on8l in s2mk:\n if on8l in YKHO.wtoi.keys():\n xDYK.append(YKHO.wtoi[on8l])\n else:\n xDYK.append(1)\n for bGrB in range(YKHO.sentence_max_length - len(xDYK)):\n xDYK.append(0)\n if len(xDYK) > YKHO.sentence_max_length:\...
[ "0.70589805", "0.70489985", "0.68942523", "0.67755663", "0.6762148", "0.6761509", "0.672319", "0.6701188", "0.6640891", "0.66361594", "0.66308856", "0.66288143", "0.6539368", "0.65276235", "0.6516318", "0.6461576", "0.6384107", "0.63554364", "0.63355064", "0.6315199", "0.6290...
0.690335
2
Gets the installment_amount of this InstallmentRequest.
def SwxF(YKHO) -> PED3: return YKHO._installment_amount
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SwxF(YKHO, SwxF: Amount):\n YKHO._installment_amount = SwxF", "def Z5kt(YKHO) -> int:\n return YKHO._amount", "def Z5kt(YKHO) -> float:\n return YKHO._amount", "def Z5kt(YKHO) -> float:\n return YKHO._amount", "def Z5kt(YKHO):\n return YKHO._amount", "def Z5kt(YKHO):\n return YKHO._...
[ "0.6890494", "0.64384854", "0.6419224", "0.6419224", "0.6401451", "0.6342668", "0.6342668", "0.6113577", "0.6050067", "0.5947469", "0.5939226", "0.5939226", "0.5933829", "0.5803442", "0.5754238", "0.57280535", "0.5687066", "0.56561255", "0.562179", "0.56195", "0.55670965", ...
0.85997385
0
Sets the installment_amount of this InstallmentRequest.
def SwxF(YKHO, SwxF: Amount): YKHO._installment_amount = SwxF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SwxF(YKHO) -> PED3:\n return YKHO._installment_amount", "def FIMM(YKHO, A1xg: int=None, SwxF: Amount=None):\n YKHO.swagger_types = {'number_of_installments': int, 'installment_amount': PED3}\n YKHO.attribute_map = {'number_of_installments': 'numberOfInstallments', 'installment_amount': 'installmentA...
[ "0.6914071", "0.6215847", "0.61169434", "0.6109385", "0.6109385", "0.6109385", "0.6109385", "0.6109385", "0.6109385", "0.6109385", "0.6109385", "0.6109385", "0.6043576", "0.5714027", "0.5704154", "0.5675099", "0.55384195", "0.54185444", "0.53882074", "0.5315161", "0.5315161",...
0.88170856
0
Returns a list of the atoms in the LHS and RHS of this expression
def RR8p(YKHO): return Hs6x.chain(YKHO.rhs_atoms, YKHO.lhs_atoms)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YnoQ(YKHO):\n return Hs6x.chain(YKHO.rhs_names, YKHO.rhs_funcs)", "def SEyk(YKHO):\n return YKHO.lhslist", "def gp1E(YKHO):\n return My8R(YKHO.expression)", "def eNAM(Emd4, zLC2):\n return [tuple(Fg_i.atoms) for Fg_i in zLC2.bonds]", "def e3AR(YKHO):\n kPgw = []\n for eNCK in YKHO.cha...
[ "0.7470139", "0.71660554", "0.63593775", "0.63531566", "0.63177925", "0.62172973", "0.6053584", "0.605323", "0.6045466", "0.5989777", "0.5933623", "0.5856164", "0.5853774", "0.5803101", "0.5741664", "0.57365817", "0.5712201", "0.57089585", "0.56866074", "0.56844807", "0.55967...
0.773672
0
Return the independent variable
def Sq9r(YKHO): return YKHO._independent_variable
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TxP0(YKHO):\n return YKHO.x", "def cjU4(YKHO):\n return YKHO._independent_variables", "def SRYB(YKHO, YRbF):\n return RELP(YRbF, YKHO.dims[YRbF])", "def KeBf(YKHO):\n return YKHO.y", "def LeTJ(WKvO):\n return WKvO.cuda()", "def pWDN(YKHO):\n return YKHO._dependent_variable", "def ...
[ "0.8070098", "0.70679766", "0.64576", "0.6426048", "0.63628656", "0.63345295", "0.6317649", "0.62160623", "0.6196762", "0.60668665", "0.60254407", "0.5995482", "0.598136", "0.5965164", "0.5939327", "0.5936174", "0.592209", "0.5905915", "0.5862706", "0.5856919", "0.5852582", ...
0.8211715
0