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
The name of the Event.
def jkf2(YKHO): return dict.get(YKHO, 'event_name', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jkf2(YKHO):\n return YKHO._event_name", "def Q0HP(YKHO):\n return _VfD.Event_getName(YKHO)", "def Xq1e(YKHO):\n return YKHO.event_name", "def jkf2(YKHO, jkf2):\n YKHO['event_name'] = jkf2", "def oSgC(YKHO, *qIxc):\n return _VfD.Event_setName(YKHO, *qIxc)", "def uLFj(YKHO):\n return ...
[ "0.914251", "0.8779574", "0.8218363", "0.7748643", "0.7721498", "0.771181", "0.75794125", "0.7545769", "0.7544376", "0.7417364", "0.7392395", "0.73624647", "0.7352431", "0.72882885", "0.72882885", "0.72882885", "0.72882885", "0.72882885", "0.72882885", "0.72882885", "0.728828...
0.88853073
1
Set the event name.
def jkf2(YKHO, jkf2): YKHO['event_name'] = jkf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jkf2(YKHO, jkf2):\n YKHO._event_name = jkf2", "def oSgC(YKHO, *qIxc):\n return _VfD.Event_setName(YKHO, *qIxc)", "def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe", "def qGt7(YKHO, qGt7):\n YKHO._event_def_name = qGt7", "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def WZrJ(YKHO, mWFP):\n Y...
[ "0.8554447", "0.8545698", "0.7631831", "0.76218736", "0.76011735", "0.7582119", "0.7563849", "0.7563849", "0.75514656", "0.75162405", "0.7503605", "0.7490394", "0.7490394", "0.7490394", "0.7490394", "0.7490394", "0.7444846", "0.7444846", "0.74408394", "0.7368176", "0.7335487"...
0.87372917
0
Parses [(the VAR_TYPE) VAR_NAME] lines Returns the string and the type
def iVKX(zFiD: str, kc1W: dict, u3tA) -> (str, c67A.FiMVariable): PuwW = zFiD.split(' ') M_u8: str = '' qOCO: c67A.FiMVariableTypes = c67A.FiMVariableTypes.UNKNOWN IYtq = None MVws = False for d6pt in range(0, len(PuwW)): if PuwW[d6pt] in G6p1.Methods['Variable Initialization']: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qYLA(zFiD: str) -> (c67A.FiMVariableTypes, int):\n if zFiD.startswith(G6p1.Methods['Variable Boolean Array']):\n u54L = len(DZIA(G6p1.Methods['Variable Boolean Array'], lambda WKvO: zFiD.startswith(WKvO)))\n return (c67A.FiMVariableTypes.BOOL_ARRAY, u54L)\n if zFiD.startswith(G6p1.Methods['...
[ "0.72110385", "0.6684339", "0.6570947", "0.6499427", "0.6297661", "0.62916815", "0.6266233", "0.6097753", "0.6085287", "0.59952575", "0.5978942", "0.5960347", "0.58345133", "0.58036333", "0.5784733", "0.5764294", "0.576198", "0.5746267", "0.5746129", "0.57393914", "0.5738034"...
0.6406134
4
Load peak definitions. The method must assign a peak definition dictionary to the self._peak_definitions attribute. The dictionary must have the keys 'center', 'sigma', 'amplitude', 'gamma', with value of [value_P1, bounds_P1, (fraction, distance) wrt P1 for P2, ... (fraction, distance) wrt P1 for Pn] Examples self._pe...
def PpSH(YKHO, *qIxc, **B2fa): raise NotImplementedError('This method must be implemented when sub-classing')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zmVf():\n K6k3 = oyIN.arange(50, 90, 1)\n while True:\n fop2 = oyIN.random.choice(K6k3)\n t_gf = oyIN.random.choice(u5Dg, p=x59g)\n nigw = oyIN.random.choice(tFEe, p=agt7)\n hfRT = [fop2, t_gf, nigw]\n yield hfRT", "def t6qj(VcZZ, MVIL, Y7KK, WTkW):\n if Hy7s.path....
[ "0.63168603", "0.6046201", "0.5977809", "0.58854425", "0.58608097", "0.58536106", "0.5828217", "0.5789251", "0.5698267", "0.56628263", "0.56188095", "0.56003404", "0.5578688", "0.55731547", "0.556175", "0.5560203", "0.5547177", "0.5529511", "0.5503513", "0.5497738", "0.548399...
0.7050395
0
Create tree from sqlite data
def weij(bpNo='static/data/graph.json'): kdXA = None YfpN = oRi_(list) Jw9H = {} tiML = y9Xs.read_sqlite3_current(jsondata=True) YfpN['nodes'] = qQXR.loads(tiML) for Jn5R in YfpN['nodes']: if 'osfamily' in Jn5R and Jn5R['osfamily'] not in Jw9H: Z5Q9 = 0 jlxe = tuK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QCE1(Z9rn):\n JqV7 = dict()\n rT9S = list()\n Z9rn.execute('SELECT id, parent_id, title FROM node')\n WJZx = Z9rn.fetchall()\n for P4oG in WJZx:\n RIzB = P4oG[0]\n ZMAR = P4oG[1]\n My5O = P4oG[2]\n Q6kx = o7DN(RIzB, My5O)\n JqV7[RIzB] = Q6kx\n if not ZMA...
[ "0.69889605", "0.66388494", "0.6530566", "0.64830005", "0.64660484", "0.64467305", "0.6440712", "0.63859665", "0.63048893", "0.6299472", "0.6292835", "0.62872106", "0.62469125", "0.62220967", "0.62200874", "0.6200817", "0.6181151", "0.6166043", "0.6156164", "0.6149793", "0.61...
0.0
-1
Used to identify billing contact for stripe.
def D3lj(YKHO): qGfT = YKHO.owner.organization_user.user return qGfT.email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qGfT(YKHO):\n return YKHO._billing_contact", "def X5Kl(YKHO):\n if YKHO.billing_phone:\n return YKHO.billing_phone\n else:\n return YKHO.contact.phone", "def ZwgK(YKHO):\n if YKHO.billing_name:\n return YKHO.billing_name\n else:\n return YKHO.contact.name", "def...
[ "0.7473322", "0.70917904", "0.70506287", "0.67928725", "0.6522469", "0.6520297", "0.6471558", "0.64629865", "0.6441742", "0.62100846", "0.62100846", "0.62100846", "0.62068194", "0.6200433", "0.61957145", "0.61838496", "0.61838496", "0.61832756", "0.61832756", "0.6139515", "0....
0.5277616
44
This function receives information from the main screen and writes it to a file with the extension json
def ZMos(): global output_on_display, import_lst, column_names, data, new_data if kmps == '': RkfQ() else: Txl5 = Cc00 YPaw = len(Txl5) lR77 = _mj2(title='Select file', filetypes=(('JSON', '*.json'), ('all files', '*.*')), confirmoverwrite=True, defaultextension='.json') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AHFl(nPrm):\n try:\n UXEK = open('output.json', 'w')\n UXEK.write(qQXR.dumps(nPrm))\n except:\n print(rUyw.GREEN + 'File not found or path is incorrect')\n finally:\n print(rUyw.GREEN + 'Success go to output.json to look at the json')", "def xkzz(Ux0P, nPrm):\n nPrm = ...
[ "0.6821808", "0.6820264", "0.68076766", "0.67360204", "0.6712457", "0.66676414", "0.66601896", "0.6612663", "0.6594357", "0.6560248", "0.6553303", "0.65516794", "0.6528116", "0.65225524", "0.65145713", "0.6495577", "0.6492085", "0.6475345", "0.6475345", "0.6472494", "0.646146...
0.6361456
30
Calculates the atom density of a material given a material with atom densities defined.
def Qkkq(YKHO, g3U2=1.0): for Vx0b, lFwc in enumerate(YKHO.zaids): for qBv7, KI87 in YKHO.elementDict[lFwc].atomPercentDict.items(): if lFwc in YKHO.isotopicAtomPercents: print(YKHO.elementDict[lFwc].weightPercentDict[qBv7]) YKHO.atomPercent[qBv7] = YKHO.elementDi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MPRT(Mx95):\n if Mx95 == 'mild':\n return 7850.0\n elif Mx95 == 'al':\n return 2700.0\n else:\n raise ValueError('Invalid material `' + Mx95 + \"'\")", "def KhUB(*qIxc):\n return EdJ_.XCAFDoc_MaterialTool_GetDensityForShape(*qIxc)", "def kQud(*qIxc):\n return EdJ_.XCAFDo...
[ "0.7006211", "0.65377265", "0.64411473", "0.6376021", "0.6268337", "0.6262631", "0.6240578", "0.6213191", "0.6193817", "0.61501926", "0.6084178", "0.6075045", "0.60393673", "0.5935808", "0.5922256", "0.5920612", "0.5896682", "0.5895164", "0.58939546", "0.58643734", "0.5850352...
0.0
-1
Returns a smeared material for the coolant and wire wrap.
def ogjC(U34r): H2v2 = U34r[0] i7T4 = U34r[1] / 2 TBj5 = U34r[2] / 2 WIn2 = U34r[3] cRWo = U34r[4] t7YP = U34r[5] MG4n = U34r[6] NUa5 = SLdk.get_cylinder_volume(i7T4, H2v2) jJt9 = SLdk.get_toroidal_volume(i7T4, TBj5, WIn2, H2v2) lKF3 = SLdk.get_hexagonal_prism_volume(cRWo, H2v2) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AVj1(LSZ7, WZfZ='', g3U2=1.0):\n kfBf = {}\n for Mx95, eSf4 in LSZ7.items():\n EpXt = 1.0\n if Mx95 == 'Void':\n pass\n else:\n IOjM = DLSy()\n IOjM.set_material(Mx95)\n if IOjM.materialName == WZfZ:\n EpXt = g3U2\n ...
[ "0.66321373", "0.62594223", "0.60387546", "0.5944046", "0.5875552", "0.5739568", "0.56960857", "0.56770736", "0.564192", "0.55646825", "0.5525133", "0.5470988", "0.5465184", "0.54306227", "0.54144156", "0.5376519", "0.5360755", "0.5315837", "0.52805245", "0.52402693", "0.5233...
0.7692396
0
Returns the path of the local (downloaded) zip file
def w9BT(YKHO): bGrB, J3uN = Hy7s.path.split(YKHO.url) return YKHO.folder + '/' + J3uN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CTEG(YKHO):\n ND_u = YKHO.xbrl_download_dir + '\\\\Informes.zip'\n return ND_u", "def ZTYM(YKHO):\n if YKHO._mode == 'zip':\n return YKHO._rootExportPath + '.zip'\n return ''", "def CzsT(bD7m, yFgu):\n return Hy7s.path.join(yFgu, bD7m.split('/')[-1])", "def clgQ(YKHO):\n if vPBo....
[ "0.7133516", "0.709186", "0.7052304", "0.67431414", "0.6729529", "0.6682555", "0.6651933", "0.66154504", "0.65643615", "0.65585375", "0.64418876", "0.64405274", "0.6428813", "0.63516", "0.63464946", "0.6346317", "0.6336631", "0.62781155", "0.6277847", "0.6277847", "0.6265609"...
0.681256
3
Takes the URL and extracts the table name based on filename
def k9X4(YKHO): bGrB, J3uN = Hy7s.path.split(YKHO.url) return J3uN[:-4]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XrvQ(bD7m):\n try:\n return KVWQ(bD7m).path.strip('/').split('/')[1]\n except IndexError:\n return None", "def yeCQ(uRP3: str):\n if (r8hN := mXDZ.match(uRP3)):\n return r8hN.group('tableName')", "def qXTK(KTLx: str):\n return KTLx.split('.')[0].split('/')[-1]", "def gqn_...
[ "0.8116714", "0.6845925", "0.6461912", "0.6457437", "0.63222957", "0.6306733", "0.62379616", "0.6237906", "0.60564196", "0.6036914", "0.601242", "0.60033494", "0.59999204", "0.5986188", "0.58853424", "0.58568525", "0.581859", "0.5806277", "0.5776187", "0.57597035", "0.5732305...
0.7307592
1
Saves a reference picture and an accompanying difference picture to /saved_images/ in the current working directory.
def IDtS(C6lf, JNSk, JCN0, pf9Z): jb9c = './saved_images/' + JCN0 + pf9Z + '.jpg' Q4vj = './saved_images/' + JCN0 + pf9Z + 'diff.jpg' XC5k.imwrite(jb9c, C6lf) XC5k.imwrite(Q4vj, JNSk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PiiI(YKHO):\n YKHO.extract_info_from_file()\n Zvdt = Hy7s.path.join(YKHO.output_path, YKHO.field_id, YKHO.patient_id + YKHO.ext)\n RSD5 = Hy7s.path.join(YKHO.output_path, YKHO.field_id + '_' + YKHO.instance, YKHO.patient_id + YKHO.ext)\n if YKHO.shot == '0':\n if Hy7s.path.exists(Zvdt) or Hy...
[ "0.706071", "0.6954861", "0.6775793", "0.6679474", "0.63764745", "0.6267105", "0.62616324", "0.61953914", "0.6180397", "0.61716527", "0.6164669", "0.6147488", "0.61230916", "0.6097626", "0.6087242", "0.6083324", "0.601656", "0.5958957", "0.59300005", "0.59122884", "0.5903185"...
0.61618084
11
Will remove the blobs that are smaller than the specified amount in an image.
def uDpm(JNSk, EBJ9): dIng, AH8_ = R8ui(JNSk) LQ4c = G9lo(dIng, AH8_) BFA3 = list() for d6pt in range(len(LQ4c)): if LQ4c[d6pt] < EBJ9: BFA3.append(d6pt + 1) SSEP = oyIN.ndarray.copy(JNSk) for rdlD in range(len(dIng)): for iVRZ in range(len(dIng[rdlD])): i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _FsE(NCls, gwAu):\n D38U = []\n for YRbF, WKvO in NCls.iterrows():\n if WKvO['size'] < gwAu:\n D38U.append(YRbF)\n print('Numero de imagenes: ', len(NCls) - len(D38U), ' de ', len(NCls))\n return NCls.drop(D38U)", "def Dbnt(VXjJ, qonS=7500):\n _YGI = oyIN.copy(VXjJ)\n _YGI...
[ "0.70217144", "0.654012", "0.63129383", "0.63080096", "0.62526983", "0.61300766", "0.5933446", "0.59267145", "0.5919248", "0.59090453", "0.59090453", "0.588557", "0.5872041", "0.58580405", "0.5851809", "0.5838447", "0.56530607", "0.56007165", "0.5590379", "0.5580091", "0.5575...
0.6408585
2
Get the delta X from a right direction
def aYQg(YKHO): crOM = c_NS.findXCoordinateFromDirection(3) Ggta = 2 YKHO.assertEqual(crOM, Ggta)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YJQD(YKHO, WKvO=1):\n YKHO.x += WKvO\n return YKHO.pos(YKHO.x, YKHO.y)", "def vSAt(YKHO):\n return YKHO.board.length - 1 - YKHO.x", "def jtTB(YKHO):\n return mb3R([YKHO.x - 1, YKHO.y + 1])", "def Jmm7(YKHO):\n return YKHO.Direction['x']", "def aRqw(YKHO):\n return mb3R([YKHO.x + 1, YK...
[ "0.7264559", "0.7254064", "0.70186067", "0.69288874", "0.68650204", "0.6834055", "0.6834055", "0.68162286", "0.68127686", "0.6766622", "0.6632616", "0.6575811", "0.653798", "0.651622", "0.64885324", "0.6469153", "0.6453102", "0.64430046", "0.64377105", "0.6426004", "0.6399436...
0.6203853
28
Get the delta Y from a left direction
def gQpC(YKHO): crOM = c_NS.findYCoordinateFromDirection(7) Ggta = 0 YKHO.assertEqual(crOM, Ggta)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jtTB(YKHO):\n return mb3R([YKHO.x - 1, YKHO.y + 1])", "def gEGd(YKHO):\n return -YKHO.l_motor.get()", "def x2un(YKHO, LVAh=1):\n YKHO.y += LVAh\n return YKHO.pos(YKHO.x, YKHO.y)", "def lxK0(YKHO):\n return mb3R([YKHO.x - 1, YKHO.y - 1])", "def DppO(YKHO):\n return YKHO.Direction['y']"...
[ "0.735407", "0.7098737", "0.69108516", "0.6823766", "0.6746996", "0.6623058", "0.6428845", "0.6383905", "0.6308379", "0.63070005", "0.6301892", "0.6296186", "0.62940204", "0.6260142", "0.6233566", "0.6217046", "0.6187829", "0.61841154", "0.6119185", "0.6114301", "0.61121523",...
0.67268586
5
Get the delta Y from a right direction
def lhdz(YKHO): crOM = c_NS.findYCoordinateFromDirection(1) Ggta = 2 YKHO.assertEqual(crOM, Ggta)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DppO(YKHO):\n return YKHO.Direction['y']", "def iOZO(Emd4, v40M, XSoh):\n Emd4.raise_exception_if_invalid_direction(XSoh)\n return v40M + Emd4.DIRECTION_MAPPER[XSoh][1]", "def cHL3(YKHO):\n if len(YKHO.prevPositions) < 2:\n YKHO.velocity = (0, 0, 0)\n else:\n ITS7 = YKHO.positi...
[ "0.7415944", "0.7058163", "0.6893687", "0.6861486", "0.679843", "0.67935485", "0.67726815", "0.6753201", "0.6743264", "0.6693129", "0.6676823", "0.6672408", "0.6672115", "0.6671134", "0.66600674", "0.6654607", "0.6645873", "0.6626593", "0.66253406", "0.6601017", "0.65896916",...
0.6340395
45
Get the delta Y from a left direction
def ezVK(YKHO): crOM = c_NS.findYCoordinateFromDirection(4) Ggta = -2 YKHO.assertEqual(crOM, Ggta)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jtTB(YKHO):\n return mb3R([YKHO.x - 1, YKHO.y + 1])", "def gEGd(YKHO):\n return -YKHO.l_motor.get()", "def x2un(YKHO, LVAh=1):\n YKHO.y += LVAh\n return YKHO.pos(YKHO.x, YKHO.y)", "def lxK0(YKHO):\n return mb3R([YKHO.x - 1, YKHO.y - 1])", "def DppO(YKHO):\n return YKHO.Direction['y']"...
[ "0.735407", "0.7098737", "0.69108516", "0.6823766", "0.6746996", "0.67268586", "0.6623058", "0.6428845", "0.6383905", "0.6308379", "0.63070005", "0.6301892", "0.6296186", "0.62940204", "0.6260142", "0.6233566", "0.6217046", "0.6187829", "0.61841154", "0.6119185", "0.6114301",...
0.59450686
46
Initialize the graphics view.
def FIMM(YKHO, type, Z7L0): super(lYML, YKHO).__init__() YKHO.controller = Z7L0 YKHO.layout = x5x0.QHBoxLayout(YKHO) YKHO.leftSide = x5x0.QVBoxLayout(YKHO) YKHO.generateWidget = QVir(YKHO, YKHO.controller) YKHO.leftSide.addWidget(YKHO.generateWidget) YKHO.nodePickerWidget = DMvV(YKHO, YKHO.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tmd2(YKHO):\n YKHO.renderer = YU_E.vtkRenderer()\n YKHO.window = YU_E.vtkRenderWindow()\n YKHO.window.AddRenderer(YKHO.renderer)\n YKHO.renderer.SetBackground(1.0, 1.0, 1.0)\n YKHO.window.SetSize(1000, 1000)\n YKHO.interactor = YU_E.vtkRenderWindowInteractor()\n YKHO.interactor.SetInteract...
[ "0.738486", "0.7245235", "0.7245235", "0.71699125", "0.69324094", "0.6878057", "0.68248576", "0.67956203", "0.67449474", "0.67285466", "0.67102", "0.67010546", "0.66953194", "0.66546637", "0.6624726", "0.6610313", "0.6596297", "0.6591724", "0.6586789", "0.65769166", "0.655664...
0.0
-1
Return an operator given the path to a database.
def fH63(miHM, Q5Ud, Dnkx, kJSK=False): from armi import cases if not Hy7s.path.exists(miHM): raise ValueError(f'Specified database at path {miHM} does not exist. \n\nDouble check that escape characters were correctly processed.\nConsider sending the full path, or change directory to be the directory of...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def seET(YKHO):\n fvDH = YKHO.pos\n Maem = ['||', '&&', '>>', '<<', '!=', '>=', '<=', '==', '##'] + ['-', '+', '!', '*', '/', '|', '&', '^', '<', '>', '?', ':', '~', '#', '=', '%']\n try:\n d6pt = YKHO.match_any(Maem)\n khtY = uS0y(YKHO.line, fvDH, YKHO.prev_white, Maem[d6pt])\n retur...
[ "0.5361934", "0.5345323", "0.52730507", "0.5133861", "0.51303923", "0.5125685", "0.5095104", "0.5086308", "0.5076296", "0.50663847", "0.504918", "0.5047888", "0.5047888", "0.5047888", "0.5047888", "0.5047888", "0.5047888", "0.5047888", "0.5047888", "0.5047888", "0.5047888", ...
0.5978742
0
Load instance masks for the given image. Different datasets use different ways to store masks. Override this method to load instance masks and return them in the form of am array of binary masks of shape [height, width, instances].
def FEdX(YKHO, r8m5): ZHfW = oyIN.empty([0, 0, 0]) WEJA = oyIN.empty([0], oyIN.int32) return (ZHfW, WEJA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FEdX(YKHO, r8m5):\n F5V2 = YKHO.image_info[r8m5]\n if F5V2['source'] != 'vesicle':\n return super(YKHO.__class__, YKHO).load_mask(r8m5)\n U34r = YKHO.image_info[r8m5]\n ZHfW = oyIN.zeros([U34r['height'], U34r['width'], len(U34r['polygons'])], dtype=oyIN.uint8)\n for YRbF, XP5J in enumerat...
[ "0.7870074", "0.7866982", "0.78071177", "0.7536204", "0.7487115", "0.7484187", "0.74017537", "0.7394961", "0.73513556", "0.73370403", "0.7289716", "0.7251488", "0.7209784", "0.7201714", "0.711484", "0.71026736", "0.70940757", "0.6973878", "0.6933921", "0.68129724", "0.6784072...
0.7264167
11
Resizes a mask using the given scale and padding. Typically, you get the scale and padding from resize_image() to ensure both, the image and the mask, are resized consistently.
def vQmJ(ZHfW, NXpY, dvgN): MKlR, yzQ0 = ZHfW.shape[:2] ZHfW = Zxt2.ndimage.zoom(ZHfW, zoom=[NXpY, NXpY, 1], order=0) ZHfW = oyIN.pad(ZHfW, dvgN, mode='constant', constant_values=0) return ZHfW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vQmJ(ZHfW, NXpY, dvgN, NAnm=None):\n with qmLP.catch_warnings():\n qmLP.simplefilter('ignore')\n ZHfW = Zxt2.ndimage.zoom(ZHfW, zoom=[NXpY, NXpY, 1], order=0)\n if NAnm is not None:\n LVAh, WKvO, MKlR, yzQ0 = NAnm\n ZHfW = ZHfW[LVAh:LVAh + MKlR, WKvO:WKvO + yzQ0]\n else:\n ...
[ "0.7524376", "0.6026159", "0.60111076", "0.5996426", "0.59808886", "0.59013957", "0.58934987", "0.58934987", "0.58655715", "0.5847212", "0.5544648", "0.55316556", "0.551225", "0.55118865", "0.5439356", "0.5435618", "0.5432131", "0.5410762", "0.5406681", "0.5390748", "0.538310...
0.78870475
0
Compute bounding boxes from masks.
def p5Lc(ZHfW): oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32) for YRbF in range(ZHfW.shape[-1]): r8hN = ZHfW[:, :, YRbF] GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0] mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0] if GO_b.shape[0]: o4D3, ajwV = GO_b[[0, -1]] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p5Lc(ZHfW):\n oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32)\n for YRbF in range(ZHfW.shape[-1]):\n r8hN = ZHfW[:, :, YRbF]\n GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0]\n mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0]\n if GO_b.shape[0]:\n o4D3, ajwV = GO_...
[ "0.78467315", "0.78130674", "0.77246463", "0.7462639", "0.73268336", "0.7318628", "0.7165459", "0.70358133", "0.7027821", "0.6983254", "0.68408525", "0.6769498", "0.6769209", "0.6680738", "0.66408485", "0.6610212", "0.66068614", "0.6589283", "0.65518355", "0.64983237", "0.649...
0.7821438
1
Calculates IoU of the given box with the array of the given boxes.
def _xWy(FlUN, oUSw, ab__, p1Yn): o4D3 = oyIN.maximum(FlUN[0], oUSw[:, 0]) ajwV = oyIN.minimum(FlUN[2], oUSw[:, 2]) si3g = oyIN.maximum(FlUN[1], oUSw[:, 1]) skBL = oyIN.minimum(FlUN[3], oUSw[:, 3]) iQin = oyIN.maximum(ajwV - o4D3, 0) * oyIN.maximum(skBL - si3g, 0) b65I = ab__ + p1Yn[:] - iQin[:]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _xWy(FlUN, oUSw):\n RjuK = [FlUN.intersection(Fg_i).area / FlUN.union(Fg_i).area for Fg_i in oUSw]\n return oyIN.array(RjuK, dtype=oyIN.float32)", "def _xWy(FlUN, oUSw, ab__, p1Yn):\n si3g = oyIN.maximum(FlUN[0], oUSw[:, 0])\n skBL = oyIN.minimum(FlUN[2], oUSw[:, 2])\n o4D3 = oyIN.maximum(FlUN...
[ "0.8233654", "0.8116598", "0.8116598", "0.8116598", "0.80252707", "0.79859704", "0.7928408", "0.77582073", "0.77385104", "0.77119327", "0.7706524", "0.7639222", "0.7638932", "0.7638932", "0.76373506", "0.76087755", "0.76022065", "0.76022065", "0.75603807", "0.7515975", "0.721...
0.8128509
1
Computes IoU overlaps between two sets of boxes.
def I7Mo(wGB6, QFOH): bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1]) Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1]) PZIW = oyIN.zeros((wGB6.shape[0], QFOH.shape[0])) for YRbF in range(PZIW.shape[1]): IkxF = QFOH[YRbF] PZIW[:, YRbF] = _xWy(IkxF, wGB6, Eq1k[YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oZg1(Bsc6, IUcw, Tuqy='iou'):\n from icv.data.core.bbox import BBox\n assert Tuqy in ['iou', 'iof']\n Bsc6 = oyIN.array([oyIN.array(Fg_i.bbox) if isinstance(Fg_i, BBox) else Fg_i for Fg_i in Bsc6])\n IUcw = oyIN.array([oyIN.array(Fg_i.bbox) if isinstance(Fg_i, BBox) else Fg_i for Fg_i in IUcw])\n ...
[ "0.7990615", "0.7887685", "0.76905334", "0.76589406", "0.76580244", "0.75641197", "0.75641197", "0.7538061", "0.7536853", "0.75354326", "0.7535125", "0.75168645", "0.74753267", "0.7447682", "0.7441888", "0.74396497", "0.7353138", "0.733241", "0.7319857", "0.7306891", "0.72513...
0.81738555
1
Polynomial decay of learning rate
def oVri(K0do, DJmW, iter, y54n=1, SYxB=89280, naF9=0.9): qfrD = DJmW if iter % y54n or iter > SYxB: return qfrD for Lwm5 in K0do.param_groups: qfrD = DJmW * (1 - iter / SYxB) ** naF9 Lwm5['lr'] = qfrD return qfrD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qh2O(YPaw):\n return Cwt5 / (1 + f9Ey * YPaw)", "def PjIb(OmaG, YRbF, HQEm):\n return OmaG * oyIN.exp(-YRbF / HQEm)", "def TfYV(Cwt5, f9Ey, Aak1, BkRq):\n SMht = int(Aak1 / BkRq)\n Cwt5 /= 1 + f9Ey * SMht\n return Cwt5", "def fd7I(YKHO):\n if YKHO.lr_pi_decay_type == 'linear':\n ...
[ "0.7101829", "0.7059696", "0.6914346", "0.6776829", "0.67757654", "0.67602867", "0.67482287", "0.6728288", "0.67137057", "0.67137057", "0.6695183", "0.66131467", "0.65852076", "0.6568543", "0.6567431", "0.65560806", "0.6546024", "0.6538584", "0.65287113", "0.6522781", "0.6497...
0.5925285
62
r""" Calculates various metrics for each labeled region in a 3D image. This functions offers a few extras for 3D images that are not provided by the ``regionprops`` function in ``scikitimage``.
def lZjJ(Xn71): dixj = N409(Xn71) for YRbF, YEnM in enumerate(dixj): jzdc = dixj[YRbF] Fg_i = XnpV(jzdc.slice, jzdc.label, jzdc._label_image, jzdc._intensity_image, jzdc._cache_active) dixj[YRbF] = Fg_i return dixj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YdCH(teIL, UXqs, iQ0M=16, CgT6=10, OEzX=40000):\n LTIa = teIL[:, :2].copy()\n RsfQ, vb1j = (oyIN.min(LTIa[:, 0]), oyIN.max(LTIa[:, 0]))\n suhQ, wZ4y = (oyIN.min(LTIa[:, 1]), oyIN.max(LTIa[:, 1]))\n if RsfQ < 0:\n LTIa[:, 0] += oyIN.abs(RsfQ)\n print('Neg pos for {}'.format(UXqs))\n ...
[ "0.5946176", "0.5602765", "0.5601565", "0.5576514", "0.55764306", "0.5502203", "0.54844123", "0.5399035", "0.53916234", "0.53817475", "0.53667015", "0.5359348", "0.5357632", "0.53525645", "0.5342931", "0.53415495", "0.5309446", "0.5309116", "0.5304132", "0.53030264", "0.53002...
0.6498146
0
Set a new Plex Home PIN for a managed home user. This must be done from the Plex Home admin account.
def AVOZ(YKHO, CBIr, sxb1): CBIr = CBIr if isinstance(CBIr, T2eK) else YKHO.user(CBIr) bD7m = YKHO.MANAGEDHOMEUSER.format(userId=CBIr.id) NArs = {'pin': sxb1} return YKHO.query(bD7m, YKHO._session.post, params=NArs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q5cr(YKHO, sxb1, nVvV=None):\n bD7m = YKHO.HOMEUSER.format(userId=YKHO.id)\n NArs = {'pin': sxb1}\n if nVvV:\n NArs['currentPin'] = nVvV\n return YKHO.query(bD7m, YKHO._session.put, params=NArs)", "def KDbK(YKHO, KDbK):\n YKHO._home_phone_number = KDbK", "async def set_app_pin(YKHO, y...
[ "0.65767866", "0.57163674", "0.5661071", "0.5636177", "0.5433339", "0.5433339", "0.5417261", "0.5402434", "0.53720695", "0.53613627", "0.5345811", "0.53364843", "0.52735096", "0.5249116", "0.5218774", "0.5218737", "0.521368", "0.518866", "0.51820076", "0.51588714", "0.5135046...
0.7289205
0
Get all Play History for a user in all shared servers.
def FLXQ(YKHO, Lfe3=None, yjNU=None): QzFq = [] for N5z6 in YKHO.servers: QzFq.extend(N5z6.history(maxresults=Lfe3, mindate=yjNU)) return QzFq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FLXQ(YKHO, Lfe3=None, yjNU=None):\n HwSA = [WKvO for WKvO in YKHO.resources() if WKvO.provides == 'server' and WKvO.owned]\n QzFq = []\n for N5z6 in HwSA:\n w2B8 = N5z6.connect()\n QzFq.extend(w2B8.history(maxresults=Lfe3, mindate=yjNU, accountID=1))\n return QzFq", "def hhyi(YKHO, ...
[ "0.68091244", "0.66874796", "0.65401554", "0.6415962", "0.61404586", "0.60052866", "0.59981656", "0.5929341", "0.5906145", "0.5895015", "0.58845526", "0.58747715", "0.5853269", "0.57827127", "0.5767588", "0.5760741", "0.57576877", "0.57384866", "0.5734536", "0.57342786", "0.5...
0.64243823
3
Get all Play History for a user for this section in this shared server.
def FLXQ(YKHO, Lfe3=None, yjNU=None): N5z6 = YKHO._server._server.resource(YKHO._server.name).connect() return N5z6.history(maxresults=Lfe3, mindate=yjNU, accountID=YKHO._server.accountID, librarySectionID=YKHO.sectionKey)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BALD(uJjO):\n return LhkH.where('user_id', uJjO).get()", "def hhyi(YKHO, QePW):\n return FuWM.get_game_history(QePW.urlsafe_game_key)", "def hhyi(YKHO, qv1X):\n return FYrf.BattleShip.getByUrlKey(qv1X.url_key).getHistory()", "def FLXQ():\n xDcj = sMxI.query.filter_by(user_id=cuiw.get('user_id...
[ "0.6978014", "0.6969228", "0.6638498", "0.65219235", "0.6497225", "0.6410002", "0.6367215", "0.6261751", "0.6252674", "0.62357324", "0.62320465", "0.62255275", "0.619295", "0.6162945", "0.6137662", "0.61277443", "0.6118014", "0.611488", "0.6106509", "0.6078418", "0.6065834", ...
0.59333855
37
Get all Play History for a user in this shared server.
def FLXQ(YKHO, Lfe3=9999999, yjNU=None): N5z6 = YKHO._server.resource(YKHO.name).connect() return N5z6.history(maxresults=Lfe3, mindate=yjNU, accountID=YKHO.accountID)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hhyi(YKHO, QePW):\n return FuWM.get_game_history(QePW.urlsafe_game_key)", "def BALD(uJjO):\n return LhkH.where('user_id', uJjO).get()", "def hhyi(YKHO, qv1X):\n return FYrf.BattleShip.getByUrlKey(qv1X.url_key).getHistory()", "def P5MK(Gi6Q=None):\n Gi6Q = Gi6Q or Hy7s.environ['HISTORY_ID']\n ...
[ "0.7164864", "0.70367354", "0.697591", "0.66738105", "0.6545098", "0.65412354", "0.64714295", "0.645157", "0.63795525", "0.6374508", "0.6345612", "0.6320159", "0.6312117", "0.6295848", "0.6290764", "0.6258834", "0.6240537", "0.6216408", "0.6216408", "0.62016493", "0.6195327",...
0.60635304
38
Creates the ScheduledEvents table.
async def create_table_scheduled_events(YKHO, OaeV: commands.Context) -> None: mS46 = OaeV.author await OaeV.message.delete() if await YKHO.check_scheduled_events_exists(): return await OaeV.send(f'**Table `ScheduledEvents` already exists, {mS46.mention}!**') wxqk, NCls = await d9QL() await ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cdLC(YKHO):\n YKHO.c.execute('CREATE TABLE IF NOT EXISTS {table} (\\n id integer primary key,\\n {event} integer,\\n {desc} text,\\n {date} text,\\n {link} text)\\n '.format(table=tp0w, event=MEBn, desc=gUSg, date=naCA, link=YdR4))", "def n...
[ "0.6760438", "0.66445494", "0.6625416", "0.6529982", "0.64881086", "0.64517707", "0.64487267", "0.6446051", "0.62144834", "0.6160995", "0.61342657", "0.6047282", "0.6020282", "0.59020716", "0.58956474", "0.5894661", "0.5871112", "0.5869499", "0.5816645", "0.5795914", "0.57930...
0.8704623
0
Creates the ScheduledEvents table.
async def drop_table_scheduled_events(YKHO, OaeV: commands.Context) -> None: mS46 = OaeV.author await OaeV.message.delete() if not await YKHO.check_scheduled_events_exists(): return await OaeV.send(f"**Table `ScheduledEvents` doesn't exist, {mS46.mention}!**") wxqk, NCls = await d9QL() await...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def create_table_scheduled_events(YKHO, OaeV: commands.Context) -> None:\n mS46 = OaeV.author\n await OaeV.message.delete()\n if await YKHO.check_scheduled_events_exists():\n return await OaeV.send(f'**Table `ScheduledEvents` already exists, {mS46.mention}!**')\n wxqk, NCls = await d9QL()\...
[ "0.8704623", "0.6760438", "0.66445494", "0.6529982", "0.64881086", "0.64517707", "0.64487267", "0.6446051", "0.62144834", "0.6160995", "0.61342657", "0.6047282", "0.6020282", "0.59020716", "0.58956474", "0.5894661", "0.5871112", "0.5869499", "0.5816645", "0.5795914", "0.57930...
0.6625416
3
Creates the ScheduledEvents table.
async def reset_table_scheduled_events(YKHO, OaeV: commands.Context) -> None: mS46 = OaeV.author await OaeV.message.delete() if not await YKHO.check_scheduled_events_exists(): return await OaeV.send(f"**Table `ScheduledEvents` doesn't exist yet, {mS46.mention}!**") wxqk, NCls = await d9QL() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def create_table_scheduled_events(YKHO, OaeV: commands.Context) -> None:\n mS46 = OaeV.author\n await OaeV.message.delete()\n if await YKHO.check_scheduled_events_exists():\n return await OaeV.send(f'**Table `ScheduledEvents` already exists, {mS46.mention}!**')\n wxqk, NCls = await d9QL()\...
[ "0.8704623", "0.6760438", "0.66445494", "0.6625416", "0.6529982", "0.64517707", "0.64487267", "0.6446051", "0.62144834", "0.6160995", "0.61342657", "0.6047282", "0.6020282", "0.59020716", "0.58956474", "0.5894661", "0.5871112", "0.5869499", "0.5816645", "0.5795914", "0.579309...
0.64881086
5
Checks whether the advertising time is due.
async def check_advertising_time(YKHO, r6Z1: int, UbRR: str, WYWX: int) -> bool: wxqk, bGrB = await d9QL() await wxqk.execute('\n SELECT * from ScheduledEvents\n WHERE event_label = %s AND %s - event_ts >= %s\n ', (UbRR, r6Z1, WYWX)) o1NG = await wxqk.fetchone() await wxqk.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mq1C(YKHO):\n wzkt = ITS7.time() * 1000\n if YKHO.prev_time is None:\n return True\n else:\n Dw0H = YKHO.prev_time + YKHO.get_recharge\n if wzkt >= Dw0H:\n return True\n else:\n return False", "def ZTWy(YKHO):\n if YKHO.run_type.startswith('timed'...
[ "0.72752774", "0.6964547", "0.6849957", "0.6738011", "0.66971064", "0.6653395", "0.6607808", "0.657862", "0.6547221", "0.65231436", "0.6503476", "0.64633894", "0.64558476", "0.64554447", "0.645044", "0.6448048", "0.6444591", "0.6404285", "0.6402235", "0.6397026", "0.63682806"...
0.73352146
0
Time elapsed since data last received, in seconds as float.
def qB8Z(YKHO): return (qcWV.datetime.now() - YKHO._last_received).total_seconds()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NmYP(YKHO):\n return 1000 * YKHO.read()", "def bHWf(YKHO) -> float:\n return ln2D(YKHO.recv_timestamp)", "def eO3_(YKHO):\n return YKHO._elapsed_time_in_seconds", "def Mo6K(YKHO):\n RA_F = YKHO._now() - YKHO.start\n return RA_F.microseconds / 1000.0", "def JRmW(YKHO) -> float:\n vHj7 ...
[ "0.75423217", "0.73701847", "0.732486", "0.7265605", "0.7202403", "0.717337", "0.71578866", "0.7030599", "0.70195496", "0.69572425", "0.6928816", "0.69168377", "0.69168377", "0.69168377", "0.69168377", "0.69168377", "0.69168377", "0.69095606", "0.69031376", "0.6891059", "0.68...
0.64703196
65
Creates a new mapping for an object.
def DwJu(oLgC, tHKN): try: mpqj = nkvf(oLgC, tHKN.x, tHKN.y, tHKN.__class__.__name__) mpqj.save() return mpqj except (i48E.orm.exc.FlushError, i48E.exc.IntegrityError) as e: NCls.session.rollback() return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fOMu(YKHO):\n oq08 = x0hE.IndicesClient(YKHO.es)\n oq08.put_mapping(index=YKHO.es_main_index, doc_type=YKHO.es_main_type, body=YKHO.mapping)", "def HIMx(YKHO, sOaD: unicode, AE0s: java.lang.Class) -> RnTg.program.model.util.ObjectPropertyMap:\n ...", "def FIMM(YKHO, J8oL: Mapping[str, Any]) -> Non...
[ "0.6933795", "0.6713559", "0.64649796", "0.6422688", "0.6359902", "0.63087314", "0.61878854", "0.6184359", "0.61745393", "0.61547184", "0.6150395", "0.6137379", "0.61200297", "0.61163414", "0.60887134", "0.6078142", "0.60079116", "0.588799", "0.588419", "0.58624023", "0.58471...
0.6281971
6
Change from date to month
def FZ7f(_c1T): return ZbWC.sub('(\\d{4}-\\d{2})-\\d{2}', '\\1', _c1T)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ts0o(_c1T):\n return _c1T.month", "def sFG4(_c1T):\n return g6xZ(_c1T).month", "def ejDz(YKHO, *qIxc):\n return _VfD.Date_setMonth(YKHO, *qIxc)", "def VIcm(YKHO, fa8K):\n return fa8K.strftime('%B') + '-' + fa8K.strftime('%Y')", "def gCQ4(YKHO):\n x0eS: int = int(YKHO.month)\n x0eS -= ...
[ "0.77243966", "0.735111", "0.71769124", "0.71729517", "0.6849947", "0.6843161", "0.6707294", "0.66655874", "0.6617973", "0.661158", "0.6599854", "0.6599854", "0.65967923", "0.6558509", "0.65565616", "0.65458804", "0.6489243", "0.64884037", "0.63371634", "0.63212645", "0.63069...
0.7433812
1
Generate a month step of dates
def Pfix(Kx9c, vaI9): vC9B = list() mNSb = Vt2C(Kx9c) lPK6, X0Vn, bGrB = map(int, vaI9.split('-')) AFLh, o2Ej, bGrB = map(int, mNSb.split('-')) while lPK6 > AFLh or (lPK6 == AFLh and X0Vn >= o2Ej): vC9B.append(mNSb) o2Ej += 1 if o2Ej > 12: o2Ej = 1 AFL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kzJC(yKcO: datetime, Os4s: datetime, exwG: int=1):\n ZbOB = yKcO.replace(day=1, hour=0, minute=0, second=0, microsecond=0)\n while ZbOB < Os4s:\n V5BR = BqYp(ZbOB, exwG)\n yield (ZbOB, V5BR)\n ZbOB = V5BR", "def pZWh():\n gIjT = oyIN.array([31, 28, 31, 30, 31, 30, 31, 31, 30, 31...
[ "0.6915523", "0.65227723", "0.65222013", "0.6505257", "0.6489711", "0.64721024", "0.6427783", "0.63848954", "0.638474", "0.63519174", "0.6351915", "0.6335714", "0.6320129", "0.63189155", "0.6214998", "0.62080663", "0.6198794", "0.61806583", "0.6155854", "0.61311424", "0.61062...
0.5385918
98
Ensure an authenticated user cannot join a community that does not exists
def n84n(YKHO): bD7m = '/api/v1/communities/15/join_community/' geh0 = YKHO.client.post(bD7m, HTTP_AUTHORIZATION=YKHO.auth('user4')) YKHO.assertEquals(jGRS.HTTP_400_BAD_REQUEST, geh0.status_code) YKHO.assertEqual(15, J0qS.objects.all().count())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pq0x(YKHO):\n CBIr = vbsz()\n MOPg = pNmI(CBIr)\n g_7i = vbsz()\n v7nJ = zmVP(creator=g_7i, type='P')\n XEcM = v7nJ.name\n CBIr.join_community_with_name(XEcM)\n N_Lr = vbsz()\n bD7m = YKHO._get_url(community_name=v7nJ.name)\n geh0 = YKHO.client.post(bD7m, {'username': N_Lr.username},...
[ "0.7300854", "0.71112937", "0.70641446", "0.69880414", "0.6895106", "0.68399394", "0.6777246", "0.6458241", "0.6438161", "0.64138967", "0.63462913", "0.62895274", "0.6252131", "0.62423515", "0.61970246", "0.6186647", "0.6176099", "0.615934", "0.61395776", "0.61223435", "0.601...
0.69475484
4
Ensure a member can leave a community
def OPVl(YKHO): bD7m = '/api/v1/communities/3/leave_community/' geh0 = YKHO.client.post(bD7m, HTTP_AUTHORIZATION=YKHO.auth('user3')) YKHO.assertEquals(jGRS.HTTP_204_NO_CONTENT, geh0.status_code) YKHO.assertEqual(14, J0qS.objects.all().count())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BPKQ(YKHO):\n bD7m = '/api/v1/communities/5/leave_community/'\n geh0 = YKHO.client.post(bD7m, HTTP_AUTHORIZATION=YKHO.auth('user3'))\n YKHO.assertEquals(jGRS.HTTP_401_UNAUTHORIZED, geh0.status_code)\n YKHO.assertEqual(15, J0qS.objects.all().count())", "def KmKB(YKHO):\n CBIr = vbsz()\n MOPg...
[ "0.755527", "0.6848541", "0.68042284", "0.6512431", "0.6444627", "0.6382766", "0.6282716", "0.62807584", "0.626154", "0.61867917", "0.6175655", "0.6155387", "0.6050245", "0.6015117", "0.6000263", "0.59927756", "0.5978494", "0.597619", "0.5971745", "0.59683484", "0.5955255", ...
0.7604314
0
Gets the current head
def sdCG(YKHO): return YKHO._head
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cntZ(YKHO):\n return YKHO.__head", "def cntZ(YKHO):\n return YKHO.__head", "def kh7f(YKHO):\n return YKHO.repo.head.object", "def T7C_(YKHO):\n return YKHO.list.head", "def sdCG(YKHO) -> object:\n if not YKHO._head:\n raise mrLH('The list is empty.')\n return YKHO._head", "de...
[ "0.80130213", "0.7923789", "0.7821768", "0.75414413", "0.73890346", "0.73000383", "0.7205366", "0.7202247", "0.72009563", "0.71663415", "0.71562153", "0.71256787", "0.710123", "0.7087479", "0.7047039", "0.7027316", "0.7017254", "0.69998443", "0.69862455", "0.69797623", "0.697...
0.85257405
1
Gets the current tail
def J3uN(YKHO): return YKHO._tail
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fEPq(YKHO):\n return YKHO._readahead.getvalue()", "def fEPq(YKHO):\n lHJN = YKHO.head\n while lHJN.next_node:\n lHJN = lHJN.next_node\n return lHJN", "def EFwc(YKHO):\n if YKHO.is_empty():\n raise RuntimeError('Empty list')\n return YKHO.tail.data", "def P8oC(YKHO):\n r...
[ "0.7987476", "0.75084555", "0.7217858", "0.7078854", "0.70251787", "0.6993961", "0.69410443", "0.6919684", "0.6894651", "0.68824685", "0.6878774", "0.6853597", "0.68393075", "0.67811173", "0.6733288", "0.6732261", "0.6592453", "0.65848786", "0.65684897", "0.6545789", "0.65059...
0.864701
1
Adds a node to the front of the list
def LYLL(YKHO, nPrm): S06t = NSB4(nPrm) ycBG = YKHO._head if YKHO._head is None: YKHO._head = S06t YKHO._tail = S06t else: S06t.next = ycBG S06t.next.prev = S06t YKHO._head = S06t YKHO._size += 1
{ "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 j5ff(YKHO, ZfUD):\n YKHO.front = o7DN(ZfUD, YKHO.front)", "def dZVG(YKHO, H5ew, BWXx):\n Esd_ = RUvv(H5ew, BWXx)\n ...
[ "0.82249105", "0.7810608", "0.7768546", "0.7768546", "0.7755671", "0.7738799", "0.77328646", "0.7720509", "0.7625948", "0.7588103", "0.75430006", "0.752145", "0.7492182", "0.746664", "0.745477", "0.7394027", "0.7339842", "0.73390335", "0.73347354", "0.728799", "0.7265528", ...
0.7907306
1
Test whether we can delete a campaign.
def PoCj(YKHO): if YKHO.__class__.campaign2 is None: YKHO.testSaveCampaign() YKHO.assertEqual(YKHO.__class__.service.DeleteCampaign(YKHO.__class__.campaign2['id']), None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RUTR(YKHO):\n geh0 = YKHO.client.delete(f'{YKHO.endpoint_url}{YKHO.test_campaign.id}/', headers={'Authorization': YKHO.admin_token})\n Zjhd = geh0.get_json()\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertEqual(Zjhd['Success'], 'Campaign deleted')", "def pl9F(YKHO):\n return True", "...
[ "0.7160737", "0.6712778", "0.66537017", "0.6412838", "0.6403892", "0.6248027", "0.62260723", "0.6173202", "0.61620015", "0.61620015", "0.6158001", "0.6153437", "0.61174256", "0.61138195", "0.60950786", "0.606821", "0.60502833", "0.60258365", "0.59846985", "0.59573454", "0.591...
0.6538772
3
Test whether we can fetch a campaign.
def RPx2(YKHO): if YKHO.__class__.campaign1 is None: YKHO.testSaveCampaign() YKHO.assert_(isinstance(YKHO.__class__.service.GetCampaign(YKHO.__class__.campaign1['id']), tuple))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CUYx(YKHO, bD7m, VrxA='*'):\n bo34.debug('Checking if can fetch %s' % bD7m)\n return YKHO.rp.can_fetch(useragent=VrxA, url=bD7m)", "def ZI_B(YKHO, YWSi, bD7m):\n if not bD7m.startswith(YKHO.base_url):\n bD7m = TDhU(YKHO.base_url, bD7m)\n if YKHO.robot_parser:\n return YKHO.robot_par...
[ "0.6951294", "0.66682565", "0.6388986", "0.6277096", "0.6162821", "0.6039939", "0.5521341", "0.5516752", "0.5443673", "0.5427626", "0.53725314", "0.5343013", "0.53338003", "0.53287655", "0.5325066", "0.5308681", "0.5290137", "0.5257859", "0.52291495", "0.52203906", "0.5171033...
0.61979556
4
Test whether we can fetch landing pages for a campaign.
def ZVs7(YKHO): if YKHO.__class__.campaign1 is None: YKHO.testSaveCampaign() YKHO.assert_(isinstance(YKHO.__class__.service.GetLandingPagesForCampaign(YKHO.__class__.campaign1['id']), tuple))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yWbd(YKHO):\n cdj0 = YKHO.context.get_personal_fundraising_campaign_url()\n g057 = cdj0 == YKHO.context.absolute_url()\n rnmk = 'create-personal-campaign-page' in YKHO.request.URL\n return not g057 and (not rnmk)", "def fS1b(YKHO):\n tvXk = 'Make your FOIA request directly'\n tvXk += ' to t...
[ "0.67742693", "0.6306628", "0.62808394", "0.6120006", "0.59452415", "0.57627016", "0.5738992", "0.5561723", "0.5556827", "0.55112934", "0.54937756", "0.54576766", "0.5449263", "0.542853", "0.54040414", "0.53753954", "0.53047925", "0.53038776", "0.5275955", "0.5274629", "0.526...
0.67377996
1
Test whether we can create a campaign.
def o_Oq(YKHO): YKHO.testSaveLandingPage() JRYC = qcWV.datetime.now() j4i0 = {'advertiserId': YKHO.__class__.advertiser_id, 'archived': 'false', 'name': 'Campaign #%s' % LOnh.GetUniqueName(), 'defaultLandingPageId': YKHO.__class__.landing_page_id, 'endDate': '%s-01-31T12:00:00' % (JRYC.year + 1), 'startDate...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SXhK(YKHO):\n j4i0 = YKHO.campaign\n YKHO.assertTrue(isinstance(j4i0, Glze))\n YKHO.assertEqual(j4i0.name, 'Test Campaign')", "def uHrS(YKHO):\n I5Wu = uCiE()\n YKHO.test_org.campaign = [I5Wu]\n I5Wu.save()\n geh0 = YKHO.client.post(YKHO.endpoint_url, json={'logo': I5Wu.logo, 'name': I5W...
[ "0.7282776", "0.6861378", "0.6769927", "0.6562641", "0.6446506", "0.64025927", "0.63065374", "0.62620866", "0.61669487", "0.61126655", "0.6082157", "0.60696846", "0.60404605", "0.5802044", "0.5785592", "0.5767152", "0.5753982", "0.5717169", "0.5715338", "0.5704595", "0.567379...
0.52247524
54
Render home page of the site
def C_QL(): return TvZl('home/index.html', title='Welcome')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home/index.html')", "def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')", "def C_QL():\n return TvZl('home/ind...
[ "0.8892464", "0.8681746", "0.868129", "0.85841256", "0.8567517", "0.8564356", "0.8539393", "0.8536602", "0.8536602", "0.8527715", "0.85203385", "0.8516136", "0.8516136", "0.8516136", "0.8516136", "0.8516136", "0.8516136", "0.8516136", "0.8516136", "0.8516136", "0.8516136", ...
0.85693485
4
Converts from bitwise representation into an array of vertex indices
def gL6O(exwG): return [Ty9i for Ty9i in range(8) if 2 ** Ty9i & exwG > 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gRR7(YKHO, ff4x):\n return exwG.array([YRbF for YRbF, Ty9i in enumerate(ff4x) if Ty9i], dtype='int32')", "def _0VL(YKHO):\n if YKHO.num == 0:\n return []\n UOVU = []\n for YRbF in [0, 1, 2, 3, 4, 5, 6, 7]:\n rdlD = YKHO.num >> wgwu[YRbF] & F0Zk\n _0VL = yoDX[rdlD]\n fo...
[ "0.6880614", "0.66368663", "0.6283147", "0.61515015", "0.59993356", "0.5996714", "0.5987039", "0.597378", "0.58865625", "0.5886015", "0.58810294", "0.5878558", "0.5835041", "0.5816263", "0.57732755", "0.5763688", "0.57467073", "0.57454824", "0.57390153", "0.572041", "0.569220...
0.6249408
3
Test for overflow nmax_val/n = max_val
async def mean_overflow_test(k6pb): gGJp = int(k6pb.BUS_WIDTH.value) VO92 = int(k6pb.DATA_WIDTH.value) await CVJd(k6pb, [2 ** VO92 - 1] * gGJp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dAyY(wEf2, JCoA):\n if wEf2 < 0:\n wEf2 = 0\n elif wEf2 > JCoA:\n wEf2 = JCoA\n else:\n pass\n return wEf2", "def AZVC(wEf2):\n exwG = oyIN.log10(wEf2)\n if exwG < 0:\n exwG = int(exwG) - 1\n else:\n exwG = int(exwG)\n return exwG", "def l5uB(YKHO,...
[ "0.63276565", "0.6182196", "0.6137918", "0.6084422", "0.6055982", "0.6047039", "0.6044521", "0.5964492", "0.59547186", "0.5945219", "0.59124607", "0.5856389", "0.5852122", "0.5821489", "0.5820828", "0.5815797", "0.580666", "0.5793909", "0.5789581", "0.57884365", "0.5772079", ...
0.5406247
61
Given an OpenFF Interchange object, return singlepoint energies as computed by OpenMM.
def B2Fp(KYNY: Interchange, GedB: Optional[int]=None, pZd7: bool=True, Lp5E: bool=False, a9EH: str='Reference') -> G2wq: if 'VirtualSites' in KYNY.collections: if len(KYNY['VirtualSites'].key_map) > 0: if not pZd7: qmLP.warn('Collecting energies from split forces with virtual sit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ICuz(N9D1):\n try:\n qmUb = 1.0 / gT30(1, 'hartree', 'eV')\n Oa1e = hQb7.Gaussian(N9D1.calc.log, loglevel=50)\n Csk6 = Oa1e.parse()\n A3tM = oyIN.array(Csk6.oniomenergies)\n except AttributeError:\n return 0\n return (qmUb * A3tM * [-1, 1, 1]).sum(axis=1)", "def MI...
[ "0.69773567", "0.65272796", "0.64571553", "0.6419705", "0.63294005", "0.62931216", "0.6201568", "0.6199804", "0.6066136", "0.6042173", "0.6034497", "0.5962602", "0.5949897", "0.592898", "0.5925742", "0.5923861", "0.590306", "0.58978987", "0.5897633", "0.58953375", "0.588566",...
0.53286237
89
Gets the class_ref of this ExtraLink.
def GoPq(YKHO): return YKHO._class_ref
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZvYj(YKHO):\n return YKHO.CLASS", "def V8Gh(YKHO):\n return YKHO._class_id", "def g7Wb(YKHO):\n return YKHO.class_attr", "def PWg9(YKHO):\n return YKHO.__class", "def V8Gh(YKHO) -> str:\n return YKHO._class_id", "def V8Gh(YKHO) -> str:\n return YKHO._class_id", "def Pwv8(YKHO):\n ...
[ "0.65787274", "0.6499837", "0.6441003", "0.633477", "0.6297404", "0.6297404", "0.60447276", "0.6017914", "0.5997474", "0.5912678", "0.59080553", "0.5890727", "0.586411", "0.5799989", "0.5785895", "0.57600605", "0.57169163", "0.56916183", "0.5678962", "0.5666141", "0.56647825"...
0.81063294
0
Sets the class_ref of this ExtraLink.
def GoPq(YKHO, GoPq): YKHO._class_ref = GoPq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V8Gh(YKHO, V8Gh):\n YKHO._class_id = V8Gh", "def PWg9(YKHO, PWg9):\n YKHO.__class = PWg9", "def PWg9(YKHO, PWg9):\n YKHO.__class = PWg9", "def MT_V(YKHO, GjWL):\n YKHO.__ref = GjWL", "def GoPq(YKHO):\n return YKHO._class_ref", "def aC0l(YKHO, aC0l):\n YKHO._reference = aC0l", "def...
[ "0.66160256", "0.6506323", "0.6506323", "0.61303324", "0.5789517", "0.5653708", "0.5653708", "0.5644072", "0.56309736", "0.55408466", "0.55408466", "0.5468603", "0.54295385", "0.5406994", "0.53981334", "0.5388326", "0.5387655", "0.5356944", "0.5233787", "0.52302057", "0.51907...
0.8206257
0
Gets the name of this ExtraLink.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return XkGM(tOBu(YKHO._impl))", "def W0tD(YKHO):\n return YKHO.attributes['name']", "def W0tD(YKHO) -> str:\n return YKHO.name_", "def W0tD(YKHO):\n return YKHO.name", "def W0tD(YKHO):\n return YKHO.name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO)...
[ "0.79793715", "0.73502254", "0.7302598", "0.72630215", "0.72630215", "0.7255761", "0.7255761", "0.7251672", "0.7251672", "0.7251672", "0.7251672", "0.7251672", "0.7251672", "0.7251672", "0.7251672", "0.7251672", "0.7251672", "0.7250691", "0.7246036", "0.7225374", "0.7225374",...
0.0
-1
Sets the name of this ExtraLink.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP)...
[ "0.7728652", "0.77218515", "0.77218515", "0.77218515", "0.77218515", "0.77218515", "0.76941884", "0.76941884", "0.76355064", "0.76140046", "0.7613152", "0.76041967", "0.75440353", "0.7519226", "0.74782056", "0.74782056", "0.74360126", "0.74360126", "0.74360126", "0.74360126", ...
0.74247396
100
Sets the href of this ExtraLink.
def qvey(YKHO, qvey): YKHO._href = qvey
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wXJp(YKHO, wXJp):\n YKHO._item_href = wXJp", "def QZnA(YKHO, QZnA):\n YKHO._set_field('link', QZnA)", "def QZnA(YKHO, QZnA):\n YKHO._link = QZnA", "def QZnA(YKHO, QZnA):\n YKHO._link = QZnA", "def QZnA(YKHO, QZnA):\n YKHO._link = QZnA", "def QZnA(YKHO, QZnA):\n YKHO._link = QZnA", ...
[ "0.64866495", "0.641666", "0.6201337", "0.6201337", "0.6201337", "0.6201337", "0.6201337", "0.6201337", "0.6201337", "0.60863066", "0.60482925", "0.60482925", "0.5887726", "0.5863164", "0.57704544", "0.5733876", "0.5725257", "0.57206154", "0.57206154", "0.57206154", "0.572061...
0.8182388
3
Find the top 10 users with the highest number of activities
def MCHu(YKHO, DMdb): xDcj = 'SELECT user_id, COUNT(*) as Count FROM %s GROUP BY user_id ORDER BY Count DESC LIMIT 10' YKHO.cursor.execute(xDcj % DMdb) usx6 = YKHO.cursor.fetchall() print(W3a1(usx6, headers=YKHO.cursor.column_names)) return usx6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7uA(leAC, DW23, max=3):\n \"\"\" ten prolific users \"\"\"\n ' max : number of user with related followers '\n lVgX(DW23, ESns, WXHF, JIbD, max, R45P, leAC)\n for nPrm in WXHF:\n print(nPrm.id)", "def KQbM(exwG=10):\n Pe9W = l5Ny('SELECT \"user\".id, \"user\".name, \"user\".fullname, ...
[ "0.7368929", "0.7344022", "0.6710669", "0.66784954", "0.6555825", "0.6535713", "0.64940435", "0.6468146", "0.64122295", "0.6393935", "0.6384817", "0.6366222", "0.6358851", "0.63547736", "0.6283554", "0.6283363", "0.6254878", "0.6236455", "0.6217411", "0.6196639", "0.61705524"...
0.6007872
31
Find the number of users that have started the activity in one day and ended the activity the next day.
def jgDj(YKHO, GTA_): xDcj = 'SELECT user_id, COUNT(*) as NumActivites FROM %s WHERE DATEDIFF(start_date_time, end_date_time) = -1 GROUP BY user_id ' YKHO.cursor.execute(xDcj % GTA_) usx6 = YKHO.cursor.fetchall() print(W3a1(usx6, headers=YKHO.cursor.column_names)) return usx6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q3wz(YKHO, EUXm='', vY7F=''):\n snRL, XQax = YKHO._validate_input(EUXm, vY7F)\n UHFx = 0\n for YRbF in reversed(YKHO.events_by_seconds):\n if YRbF[0] >= XQax:\n continue\n if YRbF[0] < snRL:\n break\n UHFx += YRbF[1]\n return UHFx", "def emYg(YKHO):\n ...
[ "0.62942237", "0.6208868", "0.62016845", "0.6155571", "0.6101234", "0.59438586", "0.587805", "0.5864595", "0.5842169", "0.58003056", "0.5760895", "0.5736726", "0.57347304", "0.5697322", "0.566749", "0.5645066", "0.56308085", "0.56206423", "0.55819076", "0.5578228", "0.5560255...
0.57113695
13
Find activities that are registered multiple times. You should find the query even if you get zero results.
def mH1C(YKHO, DMdb): xDcj = 'SELECT user_id, transportation_mode, start_date_time, end_date_time, COUNT(*) AS NumDuplicates FROM %s GROUP BY user_id, transportation_mode, start_date_time, end_date_time HAVING NumDuplicates >1 ' YKHO.cursor.execute(xDcj % DMdb) usx6 = YKHO.cursor.fetchall() print(W3a1(u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mOMz(YKHO):\n pass", "def nZ2i(YKHO, uJjO=None, hE03=None, B7c0=None, P1UD=None, V_8U=0, UHFx=0):\n raise NotImplementedError()", "def dCYV(YKHO):\n return YKHO._activities", "def T9GZ(YKHO):\n O4qZ = YKHO.__person_service.get_existing_persons_ids()\n fhDS = int(input(f'Introduce the ID of...
[ "0.63341004", "0.57011014", "0.5677445", "0.56412303", "0.5640431", "0.5504351", "0.546893", "0.5462067", "0.5432692", "0.54266936", "0.5410815", "0.53793097", "0.53693116", "0.5323399", "0.5299379", "0.5280299", "0.5255576", "0.52236176", "0.52144575", "0.52102506", "0.52045...
0.5983168
1
a) Find the year and month with the most activities.
def KqQh(YKHO, DMdb): xDcj = 'SELECT YEAR(start_date_time) as Year, MONTH(start_date_time) as Month, COUNT(*) AS ActivityCount FROM %s GROUP BY YEAR(start_date_time), MONTH(start_date_time) ORDER BY ActivityCount DESC LIMIT 1 ' YKHO.cursor.execute(xDcj % DMdb) usx6 = YKHO.cursor.fetchall() print(W3a1(u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hFPs(jQ3Z):\n XYie = jQ3Z['month'].mode()[0]\n print('Most common month is {}.'.format(yZ3l(XYie)))", "def iUat(YdD0):\n bNpo = [YzVs.strftime('%Y-%m') for YzVs in YdD0]\n Xedf = g760.Counter(bNpo)\n return Xedf.most_common()[0][0]", "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequ...
[ "0.635691", "0.62816685", "0.5969048", "0.5869156", "0.58485764", "0.5803788", "0.57649577", "0.57571036", "0.57255596", "0.57208604", "0.5712416", "0.5706924", "0.5705092", "0.5695326", "0.56618917", "0.5649617", "0.5642169", "0.5630825", "0.5629095", "0.5619249", "0.5619231...
0.54729927
43
b) Which user had the most activities this year and month, and how many recorded hours do they have? Do they have more hours recorded than the user with the second most activities?
def wwGH(YKHO, DMdb): xDcj = "SELECT user_id, COUNT(*) AS ActivityCount, SUM(TIMESTAMPDIFF(HOUR, start_date_time, end_date_time)) as HoursActive FROM %s WHERE YEAR(start_date_time) = '2008' AND MONTH(start_date_time) = '11' GROUP BY user_id ORDER BY ActivityCount DESC LIMIT 10" YKHO.cursor.execute(xDcj % DMdb) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n if len(jQ3Z['Month'].unique()) != 1:\n jzdc = jQ3Z['Month'].mode()[0]\n print('The most popular month: ', jzdc)\n if len(jQ3Z['Day_of_week'].unique()) != 1:\n Fg_i = jQ3Z['Day_...
[ "0.6475652", "0.64616454", "0.64578974", "0.64363235", "0.64292324", "0.6413384", "0.6412211", "0.640618", "0.6394706", "0.6383782", "0.63697183", "0.6365011", "0.63590086", "0.63465524", "0.6344959", "0.6342446", "0.6331201", "0.6329994", "0.63283557", "0.6324795", "0.632194...
0.6653954
0
Find the total distance (in km) walked in 2008, by user with id=112.
def QxWE(YKHO, DMdb, LAvG): xDcj = "SELECT Activity.id,lat,lon FROM %s INNER JOIN %s on Activity.id = TrackPoint.activity_id WHERE user_id='112' and EXTRACT(YEAR FROM date_time) = 2008 and transportation_mode='walk' ORDER BY date_time ASC" YKHO.cursor.execute(xDcj % (DMdb, LAvG)) usx6 = YKHO.cursor.fetchall...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bae3(YKHO, uJjO: int):\n return YKHO._get_total_distance_by_user(uJjO, [Fo2q.Run, Fo2q.Walk])", "def K6ap(YKHO, uJjO: int):\n return YKHO._get_position_total_distance(uJjO, [Fo2q.Run, Fo2q.Walk])", "def sGHu(YKHO, uJjO: int):\n return YKHO._get_total_distance_by_user(uJjO, [Fo2q.Ride])", "def oy...
[ "0.74692726", "0.7009982", "0.6886206", "0.6750707", "0.66686654", "0.6530963", "0.62489533", "0.6235815", "0.6079774", "0.6079774", "0.6017214", "0.59642243", "0.58515024", "0.58402413", "0.5767565", "0.5739665", "0.57288766", "0.572131", "0.56991506", "0.5686757", "0.566886...
0.0
-1
show the index page
def IC8O(): return TvZl('blank-slate.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j4m5():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html', title='Index')", "def d6pt(YKHO):\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt...
[ "0.84962547", "0.8126018", "0.8078417", "0.80677384", "0.80667824", "0.80554676", "0.8025317", "0.8025317", "0.80098003", "0.79683125", "0.79594547", "0.79392713", "0.79071647", "0.7883275", "0.7883275", "0.7875503", "0.78479445", "0.7777909", "0.77555305", "0.7745303", "0.77...
0.0
-1
Get the latest refresh datetime of a cohort. Returns current time formatted as a string if the field is not found.
def JH6o(we3G): w2B8 = gzVs.Connector(instance=gCuF.__cohort_data_instance__) xDcj = ' SELECT utm_touched FROM usertags_meta WHERE utm_id = %s ' w2B8._cur_.execute(xDcj, int(we3G)) EPU8 = None try: EPU8 = w2B8._cur_.fetchone()[0] except ValueError: pass if not EPU8: G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iZaY(YKHO):\n if YKHO._process_type == 'full_gen':\n return qcWV.datetime(1900, 1, 1, 0, 0, 0)\n Ylbp = YKHO._db.Query('SELECT last_measurement_time\\n FROM last_dashboard_element_segment_value\\n WHERE\\n element_id = %s...
[ "0.62165296", "0.616487", "0.6088386", "0.60617465", "0.6045005", "0.5971621", "0.5926703", "0.5917341", "0.59016716", "0.58545", "0.5838771", "0.5812011", "0.57949024", "0.5793899", "0.57753074", "0.57753074", "0.5775221", "0.5765011", "0.5749749", "0.5748395", "0.5720312", ...
0.7260143
0
Generate grid representation of the state space. grid_params stores default values for bounds and grid density; the function constructs a grid with dimensionality dims from these defaults
def yGgQ(Ofyl, Htse): BgK2 = oyIN.array(object=Ofyl['orders'][:Htse], dtype=int) losU = oyIN.array(object=Ofyl['lower bounds'][:Htse], dtype=float) eZoG = oyIN.array(object=Ofyl['upper bounds'][:Htse], dtype=float) KR0Q = BgK2.prod() d6pt = oyIN.array(object=range(KR0Q)) Cs6h = {} for or8S i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZRJ2():\n k4fY = [32, 64, 128, 256, 512]\n fhcK = [2, 3, 4, 5, 6]\n HasU = [10, 25, 50, 75, 100]\n Ep8u = [32, 64, 96, 128, 160, 192, 224, 256]\n YDYE = ['softmax', 'softplus', 'softsign', 'relu', 'tanh', 'sigmoid', 'hard_sigmoid', 'linear']\n Tr56 = ['uniform', 'lecun_uniform', 'normal', 'ze...
[ "0.7363759", "0.7167829", "0.6743477", "0.6558941", "0.65435964", "0.6514001", "0.64314175", "0.63536054", "0.6307485", "0.6304103", "0.6289735", "0.62861055", "0.62022144", "0.6196542", "0.6194783", "0.61569643", "0.6149171", "0.61468774", "0.6132944", "0.6113889", "0.608744...
0.68191546
2
Calculate mean squared error. If ``x1`` and ``x2`` have different shapes, then they need to broadcast. This uses
def hkHB(o4D3, ajwV, jDK_=0): o4D3 = oyIN.asanyarray(o4D3) ajwV = oyIN.asanyarray(ajwV) return oyIN.mean((o4D3 - ajwV) ** 2, axis=jDK_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SDab(nJ9F, o4D3):\n return a929()(nJ9F, o4D3)", "def UYNJ(o4D3, ajwV, jDK_=0):\n o4D3 = oyIN.asanyarray(o4D3)\n ajwV = oyIN.asanyarray(ajwV)\n return oyIN.mean((o4D3 - ajwV) ** 2 / o4D3, axis=jDK_)", "def msfD(kauQ, _YGI):\n XObx = oyIN.sum((kauQ.astype('float') - _YGI.astype('float')) ** 2)...
[ "0.8226302", "0.7394932", "0.70136625", "0.70063365", "0.68697226", "0.67129135", "0.659804", "0.65663034", "0.65424967", "0.64867127", "0.64791524", "0.6449142", "0.64091104", "0.63836336", "0.62251514", "0.6153482", "0.6134623", "0.6100003", "0.60949916", "0.59974325", "0.5...
0.7577179
1
Calculate mean squared relative error. If ``x1`` and ``x2`` have different shapes, then they need to broadcast. This uses
def UYNJ(o4D3, ajwV, jDK_=0): o4D3 = oyIN.asanyarray(o4D3) ajwV = oyIN.asanyarray(ajwV) return oyIN.mean((o4D3 - ajwV) ** 2 / o4D3, axis=jDK_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SDab(nJ9F, o4D3):\n return a929()(nJ9F, o4D3)", "def W4jA(nJ9F, o4D3):\n return SNDC()(nJ9F, o4D3)", "def hkHB(o4D3, ajwV, jDK_=0):\n o4D3 = oyIN.asanyarray(o4D3)\n ajwV = oyIN.asanyarray(ajwV)\n return oyIN.mean((o4D3 - ajwV) ** 2, axis=jDK_)", "def msfD(kauQ, _YGI):\n XObx = oyIN.sum(...
[ "0.8137443", "0.73585516", "0.71538997", "0.69549376", "0.6705897", "0.6618502", "0.65939456", "0.6451038", "0.6431475", "0.641674", "0.64155227", "0.6316561", "0.6163102", "0.6124665", "0.6085341", "0.60831666", "0.6047767", "0.6047288", "0.60459423", "0.60148704", "0.592659...
0.7301853
2
Evaluate model using the validation set.
def b7La(): C3ST.eval() with ht2j.no_grad(): N77f, exwG = (0, 0) for TNF5, HWOi in N79k: exwG += len(TNF5) N77f += iQU3(C3ST(TNF5), HWOi) * len(TNF5) return N77f / exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzCw(YKHO):\n YKHO.set_model_mode('eval')\n YKHO.evaluator.reset()\n N8L0 = XdJR()\n print('Do evaluation on {} set'.format('valid set'))\n zQKy = YKHO.val_loader\n assert zQKy is not None\n for I7JW, Wc9F in enumerate(zQKy):\n input, UXqs = YKHO.parse_batch_test(Wc9F)\n N77f...
[ "0.7556931", "0.7128", "0.6986451", "0.69822556", "0.688941", "0.6866641", "0.68387544", "0.67861927", "0.6768624", "0.6768624", "0.6768624", "0.6747499", "0.6704247", "0.66950506", "0.6688258", "0.66860074", "0.66801274", "0.6664884", "0.66432977", "0.66401047", "0.65844405"...
0.6838491
7
Returns a path to a fixture via the given fname and label
def lt9K(IznC, UXqs='reference'): return Hy7s.path.join(lOlY, UXqs, IznC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PsA4(*pmON):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'fixtures', *pmON)", "def j1CD(IznC):\n pmON = wBA9()\n Zg0d = Hy7s.path.join(pmON, IznC)\n return Zg0d", "def yFjF(UXqs):\n return khtY.splitext(khtY.splitext(khtY.basename(UXqs))[0])[0]", "def JfA_():\n assert IznC('data', ...
[ "0.6520794", "0.6382769", "0.63656783", "0.6110005", "0.5983235", "0.5950241", "0.5911903", "0.59048057", "0.59048057", "0.59048057", "0.5869462", "0.5829332", "0.5817864", "0.58178484", "0.58095974", "0.5808435", "0.57983226", "0.57849145", "0.5742818", "0.5695899", "0.56913...
0.8895459
0
Retrieve an organization Return details on an individual organization including various details such as membership access, features, and teams. {method} {path}
def NMoC(YKHO, QePW, wbiw): FSxi = list(r2Kd.objects.filter(organization=wbiw, status=Ct95.VISIBLE)) V5XR = [] if bySB.has('organizations:sso', wbiw, actor=QePW.user): V5XR.append('sso') if getattr(wbiw.flags, 'allow_joinleave'): V5XR.append('open-membership') QpfX = Napc(wbiw, QePW....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zPWF(wbiw):\n return npru(kym7, wbiw)", "def GCTr(YKHO):\n pass", "def rdhS(YKHO):\n pass", "def jP5g(**RsAo):\n I1mm, U5bT = R60c.core.GetOrganizationName(RsAo['session'])\n ij1S = R60c._HandleExceptionAndUnauthorized(I1mm, U5bT, RsAo['session'])\n if ij1S is not None:\n return ...
[ "0.7148548", "0.7105574", "0.6952284", "0.65545195", "0.6552218", "0.64303905", "0.64210945", "0.63243663", "0.6256752", "0.6247144", "0.6243915", "0.6230795", "0.61991656", "0.6193295", "0.6187062", "0.6177847", "0.61678433", "0.6031752", "0.6031751", "0.6006261", "0.5959868...
0.64187884
7
Returns the underlying singlefile configs represented by this object.
def b32v(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b32v(YKHO):\n return YKHO._configs", "def b32v(YKHO):\n return YKHO.__configs", "def UIm1(YKHO):\n return YKHO._read_config()", "def GPtr(YKHO) -> dict:\n return YKHO._configs", "def GPtr(YKHO):\n return YKHO._cfg", "def GPtr(YKHO):\n return YKHO._config", "def GPtr(YKHO):\n re...
[ "0.71781963", "0.71364343", "0.70960563", "0.6913402", "0.69121945", "0.66923416", "0.6692044", "0.6692044", "0.6688849", "0.6688849", "0.6688849", "0.6674267", "0.6649714", "0.66398054", "0.65898687", "0.6565974", "0.65383905", "0.65109235", "0.65039575", "0.650033", "0.6458...
0.6552234
16
computes bounding box of warped image under homography, without actually warping the image
def n_ga(Dngr, yzQ0, MKlR): HjHK = oyIN.array([[0, 0], [0, MKlR], [yzQ0, 0], [yzQ0, MKlR]]) eOwI = AjBP(HjHK, Dngr) return oyIN.array([eOwI.min(axis=0), eOwI.max(axis=0)], dtype=oyIN.int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n_ga(Dngr, yzQ0, MKlR):\n i68B, ENeT = AjBP(oyIN.array([[0, 0]]), Dngr).transpose()\n MJon, ocGC = AjBP(oyIN.array([[yzQ0, 0]]), Dngr).transpose()\n uD9W, tTSX = AjBP(oyIN.array([[0, MKlR]]), Dngr).transpose()\n zxTu, OObS = AjBP(oyIN.array([[yzQ0, MKlR]]), Dngr).transpose()\n JRC0 = min([i68B, ...
[ "0.68395644", "0.68263465", "0.6565394", "0.65440303", "0.65215236", "0.63024795", "0.6185591", "0.6115287", "0.60751134", "0.6052541", "0.59913546", "0.5959734", "0.59432757", "0.59432757", "0.5937751", "0.59291124", "0.5924142", "0.59106493", "0.5907376", "0.59039426", "0.5...
0.6808969
2
The naming convention for a sequence of images is file_prefixN.jpg, where N is a running number 001, 002, 003...
def FIMM(YKHO, h_xa, T3qk, OQe7): YKHO.file_prefix = T3qk YKHO.files = [Hy7s.path.join(h_xa, '%s%03d.jpg' % (T3qk, YRbF + 1)) for YRbF in range(OQe7)] YKHO.files = list(filter(Hy7s.path.exists, YKHO.files)) YKHO.panoramas = None YKHO.homographies = None YKHO.images = [] YKHO.display_match = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qogn():\n import glob\n iumf = glob.glob(TiFS + '*.jpg')\n Brau = 0\n for Ux0P in iumf:\n SQ3m = iumf.split('_')\n if len(SQ3m) > 1:\n EYgm = OZOv(SQ3m[0])\n if EYgm > Brau:\n Brau = EYgm\n Brau += 1\n return '%04d' % Brau", "def RQ6H(AGPF)...
[ "0.769489", "0.73024964", "0.6996918", "0.695735", "0.6912876", "0.68801117", "0.6853592", "0.67820257", "0.6771336", "0.67199373", "0.6704712", "0.66808397", "0.6628377", "0.658693", "0.6585913", "0.65571696", "0.65143126", "0.6469766", "0.64489675", "0.64109373", "0.6376563...
0.58315897
73
Return a number of bins for this dataset using the FreedmanDiaconis rule.
def kAtl(nPrm, gqRb, ODP9): if len(nPrm) == 0: return 1 jZl0 = nPrm >= gqRb ORtl = nPrm < ODP9 zF1X = XTiz.logical_and(jZl0, ORtl) nPrm = nPrm[zF1X] if len(nPrm) == 0: return 10 nPrm.sort() hbUd = nPrm[int(epAf.floor(0.25 * len(nPrm)))] iv7Q = nPrm[int(epAf.floor(0.75...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ex3E(YKHO, ezWE):\n if len(ezWE) < 2:\n return 1\n YKHO.iqr(ezWE)\n MKlR = 2 * (YKHO.q3 - YKHO.q1) / len(ezWE) ** (1 / 3)\n if MKlR == 0:\n return int(oyIN.sqrt(ezWE.size))\n else:\n return int(oyIN.ceil((ezWE.max() - ezWE.min()) / MKlR))", "def jtTA(YKHO):\n return YKH...
[ "0.69271", "0.6696379", "0.6671535", "0.6590386", "0.6581825", "0.65656954", "0.6553514", "0.6543408", "0.6536041", "0.6536041", "0.65276605", "0.6514374", "0.6472568", "0.6446772", "0.64086914", "0.6390756", "0.6386423", "0.6348384", "0.6332559", "0.6332559", "0.6318721", ...
0.0
-1
Convert a time string or many time strings into a number(s) of seconds.
def CHc5(EtEX, format, o1FD=False, lGE9=0.0): if isinstance(lGE9, (mSrU.Number, XTiz.number)) or format is None: lGE9 = float(lGE9) else: if o1FD: z20w, B5ba = lGE9.split('.') B5ba = float('0.' + B5ba) else: z20w, B5ba = (lGE9, 0.0) jbXL = ITS7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R9kF(KrcE):\n Aofo = 0\n for YRbF in ZbWC.split('([0-9]+[a-z]+)', KrcE):\n jfrd = YRbF.strip().lower()\n if not jfrd:\n continue\n BHGE = ''.join([YRbF for YRbF in jfrd if YRbF.isdigit()])\n if len(jfrd) == len(BHGE):\n Aofo += int(BHGE)\n elif len...
[ "0.790042", "0.77960193", "0.7617983", "0.75185776", "0.7437581", "0.7420613", "0.735528", "0.731489", "0.72933215", "0.72796965", "0.72436625", "0.7190395", "0.71774894", "0.7173548", "0.7173548", "0.71201843", "0.7105515", "0.7100587", "0.70640224", "0.70492315", "0.7029429...
0.0
-1
Instantiates the Flask instance and associated parameters.
def LUif(AeFH): P4t4 = L2w0(__name__) P4t4.config.from_object(AeFH) from P4t4 import api_bp P4t4.register_blueprint(api_bp, url_prefix='/api') from Model import db with P4t4.app_context(): db.init_app(P4t4) db.create_all([None]) return P4t4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIcm():\n P4t4 = L2w0(__name__)\n lqQH = 'instance/config.py'\n if Hy7s.path.exists(lqQH):\n P4t4.config.from_pyfile(Hy7s.path.abspath(lqQH))\n JawI(P4t4.config['DB_USERNAME'], P4t4.config['DB_PASSWORD'], P4t4.config['DB_NAME'])\n return P4t4", "def DbxN():\n N5z6 = L2w0(__name__)\n ...
[ "0.7546474", "0.7465154", "0.7437626", "0.729399", "0.71954864", "0.71917486", "0.71597254", "0.70166236", "0.70074224", "0.69816077", "0.6921856", "0.6921187", "0.69106394", "0.6906584", "0.6897556", "0.6897512", "0.68827015", "0.68768495", "0.68698466", "0.6868935", "0.6865...
0.0
-1
Return the resource with the specified resource class.
def iBHN(rV9y): return lriE.get(rV9y, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u8IT(YKHO):\n dcbv = '.'.join(YKHO.resource_class_path.split('.')[:-1])\n hudV = YKHO.resource_class_path.split('.')[-1]\n return getattr(tF99(dcbv), hudV)", "def u8IT(YKHO):\n dcbv = '.'.join(YKHO.resource_class_path.split('.')[:-1])\n hudV = YKHO.resource_class_path.split('.')[-1]\n retur...
[ "0.7832141", "0.7832141", "0.7712705", "0.6950276", "0.68987846", "0.66122043", "0.6541201", "0.6495036", "0.6437813", "0.6411328", "0.6365627", "0.63542414", "0.6345779", "0.63337135", "0.6322805", "0.63152754", "0.62987596", "0.62941813", "0.62185717", "0.6204819", "0.62022...
0.8665222
0
Delete any whitespace in a given string
def Wdyj(deaU, l5Ny): return l5Ny.replace(' ', '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EQOQ(vIwR):\n return vIwR.replace(' ', '')", "def Yczo(YKHO, vIwR):\n return ZbWC.sub('\\\\s+', ' ', vIwR).strip()", "def QZsa(NPoT):\n return ZbWC.sub('\\\\s+', ' ', NPoT).strip()", "def Yczo(KCHu):\n return ZbWC.sub('\\\\s+', ' ', KCHu.strip())", "def AKyQ(l5Ny: str) -> str:\n return Z...
[ "0.8386853", "0.8282755", "0.8259965", "0.8231743", "0.82165647", "0.81852895", "0.8062439", "0.7945549", "0.79050696", "0.7848309", "0.7831649", "0.7806161", "0.7806161", "0.77685887", "0.77685887", "0.7742288", "0.76699007", "0.7577561", "0.7572943", "0.7553713", "0.7528789...
0.81443447
6
Uppercase all characer in a given string
def M1kB(YKHO, l5Ny): return l5Ny.upper()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CN9P(vIwR):\n st9m = ''\n for hcXw in vIwR:\n if hcXw.isalpha() and (not hcXw.isupper()):\n hcXw = chr(ord(hcXw) - 32)\n if hcXw.isalnum() or hcXw == ' ':\n st9m += hcXw\n return st9m", "def QmjV(str):\n return str.upper()", "def QmjV(vIwR):\n return str(v...
[ "0.790776", "0.7735673", "0.77356625", "0.7521186", "0.74673855", "0.74584377", "0.7438182", "0.7413072", "0.7411056", "0.73737097", "0.7281533", "0.7273776", "0.7201532", "0.7180221", "0.7129265", "0.70013803", "0.6978227", "0.6964081", "0.69567746", "0.6934419", "0.68477446...
0.7509662
4
Return a confusion matrix, classification report, and matplotlib.axes.Axes of confusion matrix in dictionary form
def sFcG(YKHO, EcVT=None, LVAh=None, t3eI=None, hKUR=None, aNZO=None): xqoZ = YKHO._set_data(EcVT, LVAh, t3eI, hKUR) EcVT = xqoZ['X'] LVAh = xqoZ['y'] oxOY = bHtP(EcVT, LVAh, test_size=YKHO.test_size, random_state=t3eI) Lcqa = oxOY[0] Z5wO = oxOY[1] VJv0 = oxOY[2] H96n = oxOY[3] with...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QUkc(C3ST, Lcqa, VJv0, Z5wO, H96n, EvQg=True):\n from sklearn.metrics import confusion_matrix\n import itertools\n if EvQg == True:\n MIyD = C3ST.predict(Lcqa)\n Bcwd = confusion_matrix(VJv0, MIyD)\n\n def wkOe(Bcwd, KndY, leAC='Confusion Matrix', iMGt=QrM1.cm.Reds):\n ...
[ "0.68781376", "0.68362397", "0.6781775", "0.6672712", "0.66222155", "0.6609204", "0.65948915", "0.6585669", "0.6573767", "0.65571666", "0.65413755", "0.6507808", "0.6453033", "0.64469814", "0.64313364", "0.6412364", "0.63966286", "0.6386278", "0.63823116", "0.6377449", "0.636...
0.0
-1
Function finds the negative mean squared distance from mean for point in Y (variance)
def CLmg(Dd_p): return -1 * hkHB(Dd_p)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hkHB(WKvO, LVAh):\n return (WKvO - LVAh).pow(2).sum(dim=1, keepdim=True).mean() / WKvO.size(1)", "def iAxY(WKvO: np.ndarray, LVAh: np.ndarray):\n WKvO, LVAh = (oyIN.copy(WKvO), oyIN.copy(LVAh))\n if WKvO.ndim > 1:\n return oyIN.sqrt(oyIN.nanmean((WKvO - LVAh) ** 2, axis=1))\n return oyIN.s...
[ "0.69241166", "0.69005483", "0.6845944", "0.67627764", "0.67190903", "0.66590434", "0.6627769", "0.6610583", "0.6524916", "0.65237314", "0.65040076", "0.64928967", "0.64775354", "0.64648354", "0.6457528", "0.6452227", "0.6450612", "0.6444482", "0.64413154", "0.64091843", "0.6...
0.0
-1
Convert a character into an array of 22 bytes.
def GdJj(Z9rn): nPrm = (gk2W.c_uint8 * 22)() U5bT = Yg1o.oled_click_get_char(Z9rn, gk2W.byref(nPrm)) if U5bT < 0: raise Exception('oled click get char failed') return [nPrm[YRbF] for YRbF in range(22)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YDxR(Fg_i):\n return '{ ' + ', '.join(('0x%02x' % WKvO for WKvO in Fg_i)) + ' }'", "def Ni1I(KCHu):\n if type(KCHu) != bytes:\n raise ValueError('Input to to_char_array function should be in bytes')\n cWgI = []\n s2mk = KCHu.split(b' ')\n for eOtH in s2mk:\n cWgI.append(ord(' '))...
[ "0.6772518", "0.64857394", "0.6455129", "0.6275554", "0.6080935", "0.6075504", "0.6041937", "0.6011441", "0.6011441", "0.60084045", "0.5997307", "0.59810466", "0.59715194", "0.59327745", "0.5909544", "0.5848634", "0.58313006", "0.58160806", "0.5803004", "0.5797645", "0.578704...
0.57538843
23
Returns a random hand containing n lowercase letters. At least n/3 the letters in the hand should be VOWELS. Hands are represented as dictionaries. The keys are letters and the values are the number of times the particular letter is repeated in that hand.
def bpr7(exwG): RZ8t = {} ovIg = exwG / 3 for YRbF in range(ovIg): WKvO = Moq7[tuKI.randrange(0, len(Moq7))] RZ8t[WKvO] = RZ8t.get(WKvO, 0) + 1 for YRbF in range(ovIg, exwG): WKvO = PnW6[tuKI.randrange(0, len(PnW6))] RZ8t[WKvO] = RZ8t.get(WKvO, 0) + 1 return RZ8t
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pVKW(exwG):\n RZ8t = {}\n xE2R = exwG // 3\n for YRbF in range(xE2R):\n WKvO = Moq7[tuKI.randrange(0, len(Moq7))]\n RZ8t[WKvO] = RZ8t.get(WKvO, 0) + 1\n for YRbF in range(xE2R, exwG):\n WKvO = PnW6[tuKI.randrange(0, len(PnW6))]\n RZ8t[WKvO] = RZ8t.get(WKvO, 0...
[ "0.78006905", "0.7678525", "0.7669588", "0.74499804", "0.6461991", "0.6153672", "0.60777944", "0.60667515", "0.60564005", "0.5998895", "0.59673965", "0.59573287", "0.59163105", "0.59163105", "0.59163105", "0.5879762", "0.58750254", "0.584636", "0.5825631", "0.58003813", "0.57...
0.76973146
1
Sets the learning rate to the initial LR decayed by 0.2 every steep step
def nbp5(qtWj, y7GR, K0do): paSp = oyIN.sum(qtWj > oyIN.asarray(y7GR.pt_lr_decay_epochs)) if paSp > 0: WVUz = y7GR.pt_learning_rate * y7GR.pt_lr_decay_rate ** paSp for Lwm5 in K0do.param_groups: Lwm5['lr'] = WVUz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sIgb(YKHO):\n if YKHO.FLAGS.learning_rate_decay is 'exponential':\n YKHO.learning_rate = ZylS.train.exponential_decay(YKHO.FLAGS.learning_rate, YKHO.global_step, YKHO.FLAGS.decay_steps, YKHO.FLAGS.decay_rate)\n else:\n YKHO.learning_rate = YKHO.FLAGS.learning_rate", "def fggk(YKHO) -> Non...
[ "0.79089844", "0.7856753", "0.7856753", "0.76767546", "0.75567615", "0.75240135", "0.75000376", "0.7454447", "0.7426672", "0.74171114", "0.7404257", "0.7401694", "0.7386987", "0.73657304", "0.7329806", "0.73260325", "0.73156565", "0.7304068", "0.73000455", "0.7264402", "0.725...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def YFT5(K0do, KAl9, qtWj, sOEb): WMj5 = 0.3 ** sum(qtWj >= oyIN.array(sOEb)) tspZ = KAl9 * WMj5 for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW", "def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L...
[ "0.79140896", "0.7908034", "0.7850816", "0.7776915", "0.7735598", "0.7732588", "0.7723862", "0.77235436", "0.77208304", "0.7710736", "0.76948273", "0.7675381", "0.76670265", "0.76670265", "0.76670265", "0.7657111", "0.76431805", "0.7640621", "0.7639109", "0.76275903", "0.7625...
0.7563326
36
Initializes the priority heap
def FIMM(YKHO, Oa1e): YKHO._data = [] YKHO.graph = Oa1e YKHO.pqLocator = {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.min_heap = []\n YKHO.max_heap = []\n YKHO.size_max, YKHO.size_min = (0, 0)", "def FIMM(YKHO):\n YKHO.min_heap = []\n YKHO.max_heap = []", "def FIMM(YKHO):\n YKHO.__max_heap = []\n YKHO.__min_heap = []", "def FIMM(YKHO):\n YKHO.minheap = []\n YKHO.maxheap = []...
[ "0.7895022", "0.78730625", "0.78242964", "0.7812003", "0.7795688", "0.77610606", "0.7727318", "0.7712711", "0.77093875", "0.7683902", "0.7657671", "0.764797", "0.76411146", "0.76411146", "0.76411146", "0.76315606", "0.76188815", "0.75978863", "0.75660425", "0.756221", "0.7523...
0.0
-1
Finds if heap is empty
def lsmZ(YKHO): return True if len(YKHO) == 0 else False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsmZ(gGCN):\n return zNig(gGCN) == 0", "def FBfn(YKHO):\n return YKHO.heap_size <= 0", "def FBfn(YKHO):\n return len(YKHO.__heap) == 0", "def FBfn(YKHO) -> bool:\n return YKHO.heap.length() == 0", "def FBfn(YKHO) -> bool:\n return YKHO.heap.length() == 0", "def lsmZ(YKHO):\n return ...
[ "0.87432164", "0.8080125", "0.80508566", "0.7974598", "0.7974598", "0.78623253", "0.7857394", "0.7734315", "0.7480083", "0.71097034", "0.69872475", "0.6981132", "0.6887114", "0.6812178", "0.67947066", "0.67928696", "0.6768594", "0.67281306", "0.6711304", "0.6684485", "0.66307...
0.0
-1
Finds the minimum child of the index
def RSt8(YKHO, d6pt): LFlW = YKHO._data[d6pt * 2 + 1] if d6pt * 2 + 1 < len(YKHO) else None _tIi = YKHO._data[d6pt * 2 + 2] if d6pt * 2 + 2 < len(YKHO) else None if LFlW and _tIi: if LFlW < _tIi: return d6pt * 2 + 2 return d6pt * 2 + 1 elif LFlW and _tIi is None: retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WwOV(YKHO, d6pt):\n if YKHO.empty():\n return None\n if YKHO._has_left(d6pt):\n LFlW = YKHO._left(d6pt)\n JuPx = LFlW\n if YKHO._has_right(d6pt):\n _tIi = YKHO._right(d6pt)\n if YKHO._data[_tIi] < YKHO._data[LFlW]:\n JuPx = _tIi\n ...
[ "0.80425453", "0.791862", "0.7847695", "0.7785256", "0.75363547", "0.7435741", "0.7424413", "0.73639077", "0.71918046", "0.71815383", "0.70990807", "0.7095202", "0.70832723", "0.70796996", "0.70733607", "0.7018999", "0.6948961", "0.69062304", "0.68996906", "0.6890181", "0.686...
0.67524004
26
Determines if natural number N is prime by trial division.
def yOpp(exwG: int) -> bool: if exwG == 1: return False YRbF = 2 while YRbF ** 2 <= exwG: if exwG % YRbF == 0: return False YRbF += 1 return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBNJ(exwG):\n return T1qg(exwG)", "def Fz37(exwG: int) -> bool:\n lfdS = set(range(2, int(epAf.sqrt(exwG) + 1)))\n UQUA = set(KcVV(lambda YRbF: exwG % YRbF != 0, lfdS))\n return lfdS == UQUA", "def Fz37(exwG: int) -> bool:\n lfdS = set(range(2, int(epAf.sqrt(exwG) + 1)))\n UQUA = set(KcVV...
[ "0.75904524", "0.7572783", "0.7572783", "0.7533633", "0.75022924", "0.74241966", "0.73947245", "0.73647577", "0.73487324", "0.7345413", "0.7342212", "0.72686034", "0.7251062", "0.72339666", "0.7232719", "0.72271216", "0.72271216", "0.7186987", "0.71865153", "0.7166788", "0.71...
0.7699925
0
Determines if Mersenne number 2^N 1 is prime via the LucasLehmer primality test.
def fgRZ(exwG: int) -> bool: if exwG <= 2 or not yOpp(exwG): return False Xusu = CH2n() for bGrB in range(exwG - 1): CLNC = next(Xusu) return CLNC % (2 ** exwG - 1) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T1qg(exwG):\n return kU5Q(exwG)", "def pZ6m(exwG):\n if q0b5[exwG]:\n return True\n else:\n return False", "def FBNJ(exwG):\n return T1qg(exwG)", "def FBNJ(exwG=936):\n if exwG < 3:\n return False\n for YRbF in range(2, exwG):\n if exwG % YRbF == 0:\n ...
[ "0.7239062", "0.7073942", "0.7019739", "0.70070904", "0.7005515", "0.6946308", "0.6864864", "0.68361056", "0.678722", "0.6734504", "0.6730105", "0.6687569", "0.66823626", "0.667622", "0.6668467", "0.6650945", "0.6643008", "0.6626922", "0.661976", "0.66106534", "0.6610468", ...
0.7341868
0
NYI returns true if W is a Wire standard. W must belong to the list returned by MakeBlock.
def BvVV(YKHO, *qIxc): return dndU.BRepAlgo_EdgeConnector_IsWire(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GdEj(YKHO):\n return _VfD.Unit_isWatt(YKHO)", "def SSLb(YKHO):\n Aofo = nicf('dn', KT_k())\n YKHO.assertEqual(Aofo, b'dn: wire\\n')", "def _GAd(YKHO) -> VJ79:\n return YKHO._wwn", "def IJ27(YKHO):\n try:\n Ctnb = YKHO._ExtraWaters()\n except IWat:\n return True\n return...
[ "0.5597362", "0.55873543", "0.5548783", "0.55013156", "0.54576916", "0.53746676", "0.5354919", "0.5347618", "0.52789843", "0.5266089", "0.51734984", "0.51449096", "0.513721", "0.50930214", "0.50891733", "0.5074785", "0.5068847", "0.50615853", "0.5049344", "0.50426847", "0.504...
0.6148025
0
For a projected edge, returns the corresponding initial face.
def X8Ij(YKHO, *qIxc): return dndU.BRepAlgo_NormalProjection_Couple(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y9zL(YKHO, D70y):\n assert isinstance(D70y, ndC_)\n return map(duMp, YKHO._top_exp.faces_from_edge(D70y.topods_shape()))", "def RpU_(YKHO):\n return YKHO.faceup", "def a51P(YKHO, LNo8):\n RpU_ = YKHO.__detect_face(LNo8)[0]\n o4D3, si3g, ajwV, skBL, bGrB, bGrB = (RpU_.left(), RpU_.top(), RpU_...
[ "0.6326266", "0.6022131", "0.59142417", "0.5786397", "0.56976974", "0.56215537", "0.56146854", "0.56094706", "0.5577278", "0.5577278", "0.55683047", "0.5539707", "0.55011696", "0.54858553", "0.5437727", "0.5425079", "0.5405903", "0.5399007", "0.5397073", "0.5339341", "0.53367...
0.0
-1
Indicates if the Pcurve must be (or not) performed on first part.
def NhFH(YKHO, *qIxc): return dndU.BRepAlgo_Section_ComputePCurveOn1(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f1RF(YKHO):\n return _VfD.ReactionGlyph_isSetCurve(YKHO)", "def f1RF(YKHO):\n return _VfD.GeneralGlyph_isSetCurve(YKHO)", "def f1RF(YKHO):\n return _VfD.ReferenceGlyph_isSetCurve(YKHO)", "def f1RF(YKHO):\n return _VfD.SpeciesReferenceGlyph_isSetCurve(YKHO)", "def Wcic(YKHO):\n if YKHO.in...
[ "0.66216546", "0.6554725", "0.64873916", "0.63525736", "0.6299431", "0.6262032", "0.61106616", "0.6055835", "0.6034955", "0.60219824", "0.5987621", "0.59857976", "0.59857976", "0.59446955", "0.5892998", "0.5862073", "0.5846161", "0.5800989", "0.5759518", "0.57186365", "0.5702...
0.0
-1
Computes the relative phase error of x_pred w.r.t. x_true. This is done by finding the locations of the zero crossings in both signals, then corresponding crossings are compared to each other.
def D5mA(AjxT, rfpI): bEC9 = NeDe(rfpI[:, 0]) IHmE = NeDe(AjxT[:, 0]) acPe = oyIN.mean(oyIN.diff(bEC9)) * 2 aynt = oyIN.mean(oyIN.diff(IHmE)) * 2 txiV = acPe / aynt - 1 if len(IHmE) < len(bEC9) - 2: txiV = oyIN.nan return txiV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hWcS(Y8eF, aMgO):\n yk4i = aMgO - Y8eF\n yk4i -= ZylS.multiply(ZylS.cast(ZylS.greater_equal(yk4i, gR1f.tf.pi), 'float32'), 2.0 * gR1f.tf.pi)\n yk4i += ZylS.multiply(ZylS.cast(ZylS.less(yk4i, -gR1f.tf.pi), 'float32'), 2.0 * gR1f.tf.pi)\n return yk4i", "def ermg(uVKC, AjxT):\n uVKC, AjxT = (uVKC...
[ "0.6281197", "0.59099185", "0.58893096", "0.5852402", "0.5812844", "0.57776743", "0.5741355", "0.571223", "0.5664011", "0.551934", "0.5496603", "0.5488607", "0.5486976", "0.5474592", "0.5464117", "0.5453587", "0.54014504", "0.53790504", "0.536854", "0.5364881", "0.533917", ...
0.80148506
0
Creates and saves a superuser with the given credentials.
def Zp54(YKHO, NtEF, D3lj: str=None, jTXt: str=None, **B2fa): B2fa.setdefault('is_staff', True) B2fa.setdefault('is_superuser', True) return YKHO._create_user(NtEF, email=D3lj, password=jTXt, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, fcCO, jBHA, D3lj, jTXt):\n CBIr = YKHO.create_user(username=NtEF, firstname=fcCO, lastname=jBHA, email=D3lj, password=jTXt)\n CBIr.is_admin = True\n CBIr.save(using=YKHO._db)\n return CBIr", "def Zp54(YKHO, NtEF, jTXt, **wdCM):\n wdCM.setdefault('is_staff', True)\n wdCM.set...
[ "0.7665751", "0.76599526", "0.7633325", "0.7613368", "0.7548139", "0.75175565", "0.75017494", "0.7498751", "0.7497807", "0.7497559", "0.7497241", "0.7488904", "0.7484993", "0.74615604", "0.74535567", "0.7444655", "0.7431043", "0.7430459", "0.7427848", "0.7412361", "0.74012953...
0.74214536
19
Get all valid knight's moves from location x0, y0 on the 9x9 sudoku grid.
def qeMg(nJ9F, nxyw): a1kB = [(-2, -1), (-2, +1), (+2, -1), (+2, +1), (-1, -2), (-1, +2), (+1, -2), (+1, +2)] To00 = [] for WKvO, LVAh in a1kB: qDom = nJ9F + WKvO Ur0F = nxyw + LVAh if 0 < qDom < 8 and 0 < Ur0F < 8: To00.append([qDom, Ur0F]) return To00
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dgbU(YKHO):\n oLdq = []\n if YKHO.player_locations[YKHO.whose_turn] is None:\n return YKHO.get_blank_locations()\n SppC = [(1, 0), (-1, 0), (0, 1), (0, -1), (1, 1), (1, -1), (-1, 1), (-1, -1)]\n for Jw7X, eUWA in SppC:\n WKvO, LVAh = YKHO.player_locations[YKHO.whose_turn]\n whi...
[ "0.7800498", "0.7416829", "0.73896676", "0.7355546", "0.72740203", "0.7235792", "0.71068656", "0.70652497", "0.6994112", "0.6918404", "0.6835368", "0.6831226", "0.68228096", "0.6809941", "0.67770463", "0.6734217", "0.67146814", "0.67090935", "0.6682379", "0.66746056", "0.6647...
0.73486286
4
Check that all cells in 'variales' have unique values.
def b2nK(kc1W): gWCW = [kc1W] exwG = len(kc1W) for YRbF in range(exwG): for r845 in range(YRbF + 1, exwG): hQHm = kc1W[YRbF] jlSq = kc1W[r845] gWCW.append([-hQHm, -jlSq]) return gWCW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mn4h(YKHO, jQ3Z):\n assert not jQ3Z.duplicated(YKHO.unique_cols).any()", "def llpl(YKHO):\n for maxk in ['var', 'raw.var']:\n with YKHO.subTest(component_name=maxk):\n YKHO.validator.adata = _73Q.adata.copy()\n YKHO.validator.errors = []\n UksD = uend.getattr_ann...
[ "0.63620746", "0.62129706", "0.6201802", "0.6193316", "0.61617726", "0.6146202", "0.61371833", "0.6137029", "0.5997458", "0.5884578", "0.58836", "0.5803739", "0.5782447", "0.5720199", "0.5682489", "0.56469285", "0.5644524", "0.56409854", "0.5598229", "0.55876446", "0.55558944...
0.0
-1
Ordering is set by a comma delimited ?ordering=... query parameter. The `ordering` query parameter can be overridden by setting the `ordering_param` value on the OrderingFilter or by specifying an `ORDERING_PARAM` value in the API settings.
def dJI4(YKHO, QePW, SR0I, tTee): mJZc = [] NArs = T5Of(QePW.query_params) if NArs: V_D6 = [xqoZ.strip() for xqoZ in NArs.split(',')] mJZc = YKHO.remove_invalid_fields(SR0I, V_D6, tTee, QePW) if mJZc: return mJZc return YKHO.get_default_ordering(tTee)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vyDJ(YKHO, W7M9):\n EoYe = {'name': E9re('name'), 'artist': E9re('artist__name'), 'avgRating': 'average_rating', 'year': 'year'}\n DeLa = YKHO.request.query_params.get('orderBy', None)\n if DeLa is not None and DeLa in EoYe:\n O_ts = EoYe[DeLa]\n XSoh = YKHO.request.query_params.get('dir...
[ "0.6548646", "0.6339288", "0.63350976", "0.6280332", "0.6231859", "0.60011864", "0.59715325", "0.5950593", "0.5941029", "0.58408827", "0.58376485", "0.5808046", "0.5758433", "0.57560813", "0.5746289", "0.57187814", "0.56474346", "0.56353605", "0.55608726", "0.554913", "0.5512...
0.5934701
9
Create an empty Message.
def FIMM(YKHO, lTu_=None): YKHO.args = {} YKHO.namespaces = SrJf() if lTu_ is None: YKHO._openid_ns_uri = None else: xIXH = lTu_ in ETYq YKHO.setOpenIDNamespace(lTu_, xIXH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K1ka(YKHO, *qIxc, **YSA3):\n return CWic(*qIxc, **YSA3)", "def LuKW(YKHO, *qIxc, **B2fa):\n return LuKW(YKHO, *qIxc, **B2fa)", "def Ol8d(YKHO, *qIxc, **B2fa) -> LuKW:\n return LuKW(YKHO.handle, *qIxc, **B2fa)", "def K1ka(YKHO, *qIxc, **YSA3):\n if not YSA3.has_key('charset'):\n YSA3['c...
[ "0.73098487", "0.7020393", "0.68267363", "0.6607929", "0.65662277", "0.65537304", "0.6550735", "0.64826477", "0.64555025", "0.6449307", "0.6400586", "0.6335153", "0.6331504", "0.6273631", "0.6228902", "0.61994874", "0.61625075", "0.6162155", "0.6099113", "0.6082046", "0.60644...
0.0
-1
Simplify a term using the convergent rewrite rules known.
def MhEZ(Emd4, WKvO: Term, mmRm: int=-1) -> h8nf[aw0m]: if not isinstance(WKvO, gQ0C): raise ValueError('simplify function expects a FuncTerm.') return mhAC(WKvO, Emd4.rules, mmRm)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MhEZ(OXAZ):\n Pq3j = OXAZ\n if isinstance(OXAZ, lQXZ):\n Pq3j = lQXZ(subject_term=MhEZ(OXAZ.get_subject_term()), predicate_term=MhEZ(OXAZ.get_predicate_term()), copula=OXAZ.get_copula(), interval=OXAZ.interval)\n elif isinstance(OXAZ, xAIx):\n if OXAZ.connector == zUaM.TermConnector.Nega...
[ "0.72734314", "0.6471595", "0.6139479", "0.6090935", "0.6069272", "0.5980187", "0.58624965", "0.5855295", "0.5781", "0.56962633", "0.5640727", "0.561756", "0.55975735", "0.55692387", "0.55635285", "0.55527335", "0.54700464", "0.5453202", "0.54434156", "0.54423153", "0.5435548...
0.5815264
8