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
Returns a list with all the members of the current community.
def k66M(YKHO, *qIxc, **B2fa): v7nJ = YKHO.request.user.get_admin_community() Jyyj = 'date_joined' XSoh = 'desc' if qIxc and len(qIxc) == 2: Jyyj = qIxc[0] XSoh = qIxc[1] if XSoh not in ['asc', 'desc']: raise wPvU() if Jyyj not in ['last_name', 'first_name', 'business_nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ykOW(YKHO, v7nJ):\n if not v7nJ.get('peer'):\n DgAC = YKHO.personal_community_members(v7nJ)\n return filter(lambda CBIr: CBIr.is_present(), DgAC)\n DW23 = YKHO.activeusers.keys()\n FLlb = v7nJ.get('name')\n return filter(lambda CBIr: FLlb in CBIr.get('communities'), DW23)", "def ykO...
[ "0.7886884", "0.7585757", "0.74158657", "0.7413852", "0.7403807", "0.71273786", "0.7101358", "0.7031343", "0.70124793", "0.6995189", "0.69385105", "0.6867036", "0.6859794", "0.68594164", "0.68346053", "0.68176806", "0.6811423", "0.68026876", "0.68026876", "0.67532253", "0.674...
0.68449426
14
Returns a dictionary representation with column names as keys and column values as values.
def oD7C(YKHO): return YKHO.__getstate__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n return {iVRZ.name: getattr(YKHO, iVRZ.name) for iVRZ in YKHO.__table__.columns}", "def MNRr(YKHO):\n return {iVRZ.name: getattr(YKHO, iVRZ.name) for iVRZ in YKHO.__table__.columns}", "def MNRr(YKHO):\n return {Z9rn.name: getattr(YKHO, Z9rn.name) for Z9rn in YKHO.__table__.columns}", ...
[ "0.8087642", "0.8087642", "0.8042649", "0.8041632", "0.798367", "0.7945553", "0.7826809", "0.7788426", "0.7774653", "0.77393574", "0.75630844", "0.75509167", "0.7506928", "0.7490988", "0.74768794", "0.74673325", "0.7391008", "0.737587", "0.73109305", "0.72783834", "0.7276493"...
0.0
-1
Returns a dictionary representation with column names as keys and column values as values. Returns
def k8jS(YKHO): nPrm = {'header': YKHO.header} for d6pt, rdlD in enumerate(YKHO.evaluation_steps, start=1): yIVm = YKHO.step_metadata[d6pt - 1] nPrm[d6pt] = {'data': rdlD, 'metadata': yIVm} return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n return {iVRZ.name: getattr(YKHO, iVRZ.name) for iVRZ in YKHO.__table__.columns}", "def MNRr(YKHO):\n return {iVRZ.name: getattr(YKHO, iVRZ.name) for iVRZ in YKHO.__table__.columns}", "def MNRr(YKHO):\n return {Z9rn.name: getattr(YKHO, Z9rn.name) for Z9rn in YKHO.__table__.columns}", ...
[ "0.81382364", "0.81382364", "0.81020534", "0.8086186", "0.80199265", "0.7999797", "0.7867543", "0.78509194", "0.7821312", "0.7757747", "0.76241803", "0.76083314", "0.75912976", "0.7556717", "0.75489026", "0.7523429", "0.74728054", "0.7435913", "0.7360727", "0.73266417", "0.72...
0.0
-1
Writes the AnalysisModel to a `filename` file in json format, including both data and metadata values. Can be used to save the state of the analysis.
def nN8w(YKHO, Ux0P, *, Tuqy='w'): if not YKHO.export_enabled: return False with open(Ux0P, Tuqy) as nUeQ: qQXR.dump(YKHO.__getstate__(), nUeQ, indent=4) return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W1Sa(YKHO, Ux0P):\n with open(Ux0P, 'w') as eHNT:\n hlel = YKHO.to_json()\n eHNT.write(hlel)", "def xkzz(YKHO, Ux0P):\n with open(Ux0P, 'w') as eHNT:\n qQXR.dump(YKHO.json(), eHNT, indent=4)", "def xkzz(YKHO, Ux0P):\n uP8n(Ux0P, YKHO)", "def xkzz(YKHO, Ux0P):\n uP8n(Ux0P,...
[ "0.7589808", "0.7496117", "0.74633616", "0.74633616", "0.7461149", "0.7405448", "0.7389869", "0.73368657", "0.7324931", "0.73155135", "0.7219046", "0.71962774", "0.7174423", "0.7151013", "0.71419066", "0.70712733", "0.70546496", "0.70451546", "0.70414394", "0.7032569", "0.701...
0.64507437
88
Creates an instance of this client using the provided credentials file.
def eWUZ(Emd4, Ux0P: str, *qIxc, **B2fa): return SBHo.from_service_account_file.__func__(vg1X, Ux0P, *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adK6(Emd4, *, bD7m: str, NtEF: Union[str, StrStorage], jTXt: Union[str, StrStorage], emKz: Optional[FileTransfer]=None) -> i9zE:\n return i9zE(client=WX3b.from_credentials(url=bD7m, username=NtEF, password=jTXt), file_transfer=emKz)", "def vuB2(Nu1S=None, QpfX=None, mwuo=None, MYjm=None, QDug=None, NtEF=N...
[ "0.7249915", "0.7053171", "0.68975395", "0.68081045", "0.6802571", "0.6738844", "0.67199385", "0.6675532", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6646984", "0.6643617", "0.66432035",...
0.61933905
48
calculate normalized root meansquared error (NRMSE)
def Ag3P(kauQ, _YGI, J1Nm='min-max'): return b7J2(kauQ, _YGI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OHCj(Y8eF, aMgO):\n hkHB = SDab(Y8eF, aMgO)\n SRYB = oyIN.var(Y8eF)\n _TTN = oyIN.sqrt(hkHB / SRYB)\n return 1 - _TTN", "def o8jS(aEqx, Aofo):\n return oyIN.sqrt(oyIN.nanmean(oyIN.square(aEqx - Aofo)))", "def iAxY(UAju):\n return JBMS([P1dF ** 2 for P1dF in UAju]) ** 0.5", "def YNWb(cgm...
[ "0.7944717", "0.7683687", "0.7650531", "0.76228845", "0.75820667", "0.74689126", "0.74288636", "0.73820394", "0.73118687", "0.7229836", "0.72056204", "0.7193996", "0.71751535", "0.71685135", "0.71559626", "0.7127456", "0.708367", "0.7067829", "0.70369565", "0.70251817", "0.70...
0.6976558
25
Return the value of the tree.
def b7La(J_Es): cdj0 = J_Es.getLeftChild() esTa = J_Es.getRightChild() if cdj0 and esTa: khtY = BdaB.get_binary(J_Es.getRootVal()) return khtY(float(SIE7.evaluate(cdj0)), float(SIE7.evaluate(esTa))) else: return J_Es.getRootVal()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(J_Es):\n return J_Es[0]", "def BWXx(YKHO):\n if len(YKHO.children) == 0:\n return None\n if len(YKHO.children) == 1:\n return YKHO.children[0].value\n raise Exception('More than one value to return.')", "def Zmkp(YKHO, Q6kx):\n raise NotImplementedError", "def BWXx(YKHO)...
[ "0.8738521", "0.80863625", "0.7801962", "0.7650555", "0.7599195", "0.75781643", "0.75492567", "0.74046195", "0.7339081", "0.73308164", "0.73308164", "0.7245341", "0.7237202", "0.72285604", "0.71960413", "0.71922857", "0.71735704", "0.7154402", "0.7132064", "0.71319866", "0.71...
0.0
-1
Return the value of the tree.
def UcOS(J_Es, vars): cdj0 = J_Es.getLeftChild() esTa = J_Es.getRightChild() if cdj0 and esTa: if BdaB.is_unary(J_Es.getRootVal()): MCGS = BdaB.get_unary(J_Es.getRootVal()) return MCGS(float(SIE7.evaluate_vars(esTa, vars))) elif BdaB.is_binary(J_Es.getRootVal()): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(J_Es):\n return J_Es[0]", "def BWXx(YKHO):\n if len(YKHO.children) == 0:\n return None\n if len(YKHO.children) == 1:\n return YKHO.children[0].value\n raise Exception('More than one value to return.')", "def Zmkp(YKHO, Q6kx):\n raise NotImplementedError", "def BWXx(YKHO)...
[ "0.8738521", "0.80863625", "0.7801962", "0.7650555", "0.7599195", "0.75781643", "0.75492567", "0.74046195", "0.7339081", "0.73308164", "0.73308164", "0.7245341", "0.7237202", "0.72285604", "0.71960413", "0.71922857", "0.71735704", "0.7154402", "0.7132064", "0.71319866", "0.71...
0.0
-1
Get command line argument parser, crafted with argparse module
def xKuI(): wvEv = j1Jz.ArgumentParser(prog='t411') nIh5 = wvEv.add_subparsers(help='sub-command help', dest='command') TgwQ = nIh5.add_parser('search', help='search for a torrent') YXPh = nIh5.add_parser('bookmark', help='Use and manage your T411 bookmarks') gh48 = YXPh.add_subparsers(help='sub-com...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xuJu():\n return j1Jz.ArgumentParser()", "def z0ba(YKHO, **B2fa):\n import argparse\n VqfF = argparse.ArgumentParser(prog=B2fa['argv0'], description=YKHO.summary)\n return VqfF", "def SQzL():\n wvEv = j1Jz.ArgumentParser(description='Solve word paths problem')\n wvEv.add_argument('start',...
[ "0.83292454", "0.80638707", "0.80569434", "0.80050665", "0.79600835", "0.792639", "0.791141", "0.7886196", "0.7868625", "0.785744", "0.7856922", "0.7855078", "0.78118217", "0.779056", "0.77889395", "0.778702", "0.7770601", "0.7770601", "0.7770601", "0.7770601", "0.7770601", ...
0.0
-1
Converts to the WellKnown Text (WKT) representation of a Geometry. The Wellknown Text format is defined in the `OGC Simple Features
def U4IS(Fw8z, FnYX=6, O358=True, o38l=3, foRv=False, **B2fa): if not oyIN.isscalar(FnYX): raise TypeError('rounding_precision only accepts scalar values') if not oyIN.isscalar(O358): raise TypeError('trim only accepts scalar values') if not oyIN.isscalar(o38l): raise TypeError('outp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JuRN(Fw8z):\n return JfyU.ST_AsText(Fw8z)", "def PjZe(NZQz):\n if NZQz is None or NZQz._geom is None:\n raise ValueError('Null geometry supports no operations')\n return cSFl.GEOSGeomToWKT(NZQz._geom).decode('utf-8')", "def U4IS(YKHO):\n JfyU = cSFl.GEOSGeomToWKT\n\n def Uf4m(Aofo, Jf...
[ "0.72210735", "0.7034285", "0.6987451", "0.6597951", "0.64383256", "0.6431961", "0.6395475", "0.63840175", "0.62649137", "0.6190364", "0.6184561", "0.6153433", "0.6148273", "0.6116518", "0.6096286", "0.60916686", "0.60803264", "0.60792667", "0.6069259", "0.60662365", "0.59844...
0.56421936
39
r""" Converts to the WellKnown Binary (WKB) representation of a Geometry. The WellKnown Binary format is defined in the `OGC Simple Features
def ZzdC(Fw8z, hex=False, o38l=3, Ph3p=-1, E5_m=False, **B2fa): if not oyIN.isscalar(hex): raise TypeError('hex only accepts scalar values') if not oyIN.isscalar(o38l): raise TypeError('output_dimension only accepts scalar values') if not oyIN.isscalar(Ph3p): raise TypeError('byte_or...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZzdC(YKHO):\n JfyU = cSFl.GEOSGeomToWKB_buf\n zNig = J7AE()\n\n def Uf4m(Aofo, JfyU, crKa):\n if not Aofo:\n return None\n RI88 = TXhx(Aofo, zNig.value)[:]\n ftQ2(Aofo)\n return RI88\n JfyU.errcheck = Uf4m\n return JfyU(ojiJ(YKHO._geom), dWW6(zNig))", "de...
[ "0.74741554", "0.68380255", "0.67892706", "0.6766749", "0.67601454", "0.66706777", "0.66577786", "0.6619152", "0.65879905", "0.65879905", "0.6585486", "0.65487164", "0.65119326", "0.6430056", "0.63320506", "0.62017316", "0.6148533", "0.6148533", "0.6122986", "0.61123276", "0....
0.65353036
12
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Testing get all categories
def necy(YKHO, x0hE, JawI, V3q3): V3q3.save() geh0 = x0hE.get(f'{_RsZ}/categories') Ol8d = 'Categories successfully fetched' assert geh0.status_code == 200 assert geh0.json['status'] == 'success' assert geh0.json['message'] == Ol8d assert 'categories' in geh0.json['data'] assert len(geh0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _562(YKHO):\n pass", "def _562(YKHO):\n YKHO.assertTrue(len(YKHO.app.get_categories()) == 1)", "def Sqip(YKHO):\n geh0 = YKHO.client.get('/categories')\n GtGV = qQXR.loads(geh0.content)\n YKHO.assertEqual(len(GtGV), 1)\n YKHO.assertEqual(GtGV[0]['id'], 1)\n YKHO.assertEqual(GtGV[0]['na...
[ "0.89392054", "0.8470664", "0.8353447", "0.829395", "0.82499456", "0.822066", "0.8175233", "0.80634445", "0.8043755", "0.80018425", "0.7996048", "0.7982082", "0.78953135", "0.7872087", "0.7845314", "0.783904", "0.7818234", "0.78054804", "0.7804665", "0.7735274", "0.77336353",...
0.7889143
13
Return intersectionoverunion (Jaccard index) of boxes. Both sets of boxes are expected to be in (x1, y1, x2, y2) format.
def WHLW(knvf, IkxF): def ab__(FlUN): return (FlUN[2] - FlUN[0]) * (FlUN[3] - FlUN[1]) bzU2 = ab__(knvf.t()) Eq1k = ab__(IkxF.t()) C7_8 = (ht2j.min(knvf[:, None, 2:], IkxF[:, 2:]) - ht2j.max(knvf[:, None, :2], IkxF[:, :2])).clamp(0).prod(2) return C7_8 / (bzU2[:, None] + Eq1k - C7_8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nsm1(sOrw, sxK1, _0VL=[]):\n YrCQ = (sOrw[2] - sOrw[0]) * (sOrw[3] - sOrw[1])\n YrSr = (sxK1[2] - sxK1[0]) * (sxK1[3] - sxK1[1])\n FJ23 = max(sOrw[0], sxK1[0])\n cpky = max(sOrw[1], sxK1[1])\n lCRk = min(sOrw[2], sxK1[2])\n w871 = min(sOrw[3], sxK1[3])\n iQin = (lCRk - FJ23) * (w871 - cpky...
[ "0.7124575", "0.7057257", "0.70486635", "0.7025441", "0.6952608", "0.6945014", "0.69252306", "0.68645453", "0.6756582", "0.6710933", "0.6631741", "0.65892714", "0.6545765", "0.65361184", "0.65340453", "0.6519663", "0.6507455", "0.65021884", "0.6485507", "0.64815027", "0.64814...
0.0
-1
Readonly class property returning environment select variable name.
def WMky(Emd4): return Emd4.envMap.get(Emd4.envSelectProperty, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jvnp(YKHO):\n return f'AIRFLOW_VAR_{YKHO.name.upper()}'", "def i2I_(Emd4):\n raise NotImplementedError", "def Tqw4(Emd4, ZI14):\n return '%s_%s' % (Emd4.name.upper(), ZI14)", "def LZUN(YKHO, SRYB):\n H5ew = '%s' % str(SRYB).upper()\n return H5ew", "def i2I_(YKHO) -> str:\n return YKHO...
[ "0.71590364", "0.6989131", "0.69510293", "0.6886236", "0.6764928", "0.674247", "0.6606411", "0.65880567", "0.65494883", "0.6491297", "0.6489987", "0.6439465", "0.64040637", "0.6365118", "0.6359203", "0.63377804", "0.6282496", "0.62715065", "0.6223333", "0.6197746", "0.6189206...
0.785287
0
Returns selected environment configuration.
def EfUA(Emd4, H5ew=None): ojAX = H5ew or getattr(Emd4, Emd4.envSelectProperty) OLkz = Emd4.getClassName(ojAX) GPtr = getattr(Emd4.namespace, OLkz, Emd4) if GPtr.genericActiveConfigName: setattr(GPtr.namespace, GPtr.genericActiveConfigName, GPtr) return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ECuw(YKHO):\n j8eK = '{}/environmentalConfiguration'.format(YKHO.data['uri'])\n return YKHO._helper.do_get(j8eK)", "def I0_M(YKHO):\n GPtr = YKHO.get_config_data()\n return GPtr.get('environment', 'prod')", "def gcxI(YKHO):\n return Hy7s.getenv('DB_ENV', 'development')", "def I0_M(YKHO):\n...
[ "0.78570545", "0.7747782", "0.76707625", "0.74104255", "0.72798103", "0.72798103", "0.72798103", "0.72726756", "0.7228424", "0.7159116", "0.7150875", "0.7150875", "0.7141977", "0.7130248", "0.7119813", "0.7087309", "0.7070982", "0.70653486", "0.70441633", "0.7037222", "0.7020...
0.0
-1
Returns a configuration environment name for given configuration class name.
def Q5f0(Emd4, Um9M): return Um9M.replace('Config', '').lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pnQ7(Emd4, AaLu):\n return AaLu.capitalize() + 'Config'", "def i2I_(Emd4):\n raise NotImplementedError", "def ijiw(YKHO, mWFP) -> str:\n nPrm = {YRbF[0:YRbF.find('=')]: YRbF[YRbF.find('=') + 1:] for YRbF in YKHO.environment}\n return nPrm.get(mWFP)", "def Qq6Q():\n return Hy7s.environ.get(...
[ "0.8167667", "0.69390845", "0.67670137", "0.6758759", "0.67040753", "0.67038107", "0.6652326", "0.6650939", "0.6647909", "0.64170784", "0.63498783", "0.6255488", "0.6239933", "0.6193549", "0.6144674", "0.6144674", "0.6144674", "0.61232734", "0.61174846", "0.6105152", "0.60809...
0.8357474
0
Test that POST is not allowed on the me URL
def U69V(Yp0J): bGrB, x0hE = Yp0J Ylbp = x0hE.post(XiK1, {}) assert Ylbp.status_code == jGRS.HTTP_405_METHOD_NOT_ALLOWED
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U69V(YKHO):\n Ylbp = YKHO.client.post(XiK1)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)", "def U69V(YKHO):\n Ylbp = YKHO.client.post(BfDw.ME_URL, {})\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)", "def U69V(YKHO):\n Ylbp = YKHO.client.post...
[ "0.8533832", "0.84873927", "0.84709376", "0.8469472", "0.8469472", "0.8469472", "0.8431962", "0.8374487", "0.8334978", "0.8224419", "0.8224419", "0.78203225", "0.78025174", "0.7788441", "0.7788441", "0.7788441", "0.7788441", "0.7788441", "0.7788441", "0.7788441", "0.7788441",...
0.8209458
11
Returns the state object to be queried.
def f6tK(HUs2): x6nZ = Hy7s.path.join(HUs2, Y1xD) if Hy7s.path.exists(x6nZ): with open(x6nZ) as eHNT: NI2u = eJb6.safe_load(eHNT) return NI2u else: return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__stat...
[ "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "0.7383417", "...
0.0
-1
Check if the place (i.e. cell on a grid) is one of the expected state.
def JUcu(YKHO, Cs6h, i81p): if Cs6h[YKHO.yLoc + i81p[0], YKHO.xLoc + i81p[1]] == i81p[2]: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bkug(YKHO, QTBn: tuple) -> bool:\n for VmPb in QTBn:\n if YKHO.grid_map[VmPb] == 1:\n return False\n return True", "def lQcZ(YKHO, VmPb, Cs6h):\n if VmPb.row < 0:\n return False\n elif VmPb.col < 0:\n return False\n elif VmPb.row >= Cs6h.shape[0]:\n retur...
[ "0.75575674", "0.7431702", "0.7410987", "0.72579646", "0.7226164", "0.7153681", "0.71165943", "0.7063813", "0.70108944", "0.7003532", "0.70011276", "0.69836915", "0.6964859", "0.6946066", "0.69413865", "0.69403195", "0.69122434", "0.68500507", "0.68454516", "0.6827612", "0.68...
0.77726215
0
Initializes the backend. Gets as input a dictionary with settings.
def FIMM(YKHO, gCuF): YKHO.client = BZ6U(gCuF['SENDGRID_API_KEY'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, gCuF):\n if isinstance(gCuF, dict):\n from qtrl.settings import Settings\n Settings.setup = Settings.ONLINE\n for H5ew, BWXx in gCuF.items():\n setattr(Settings, H5ew, BWXx)\n gCuF = Settings\n YKHO._managers = gCuF.managers()\n for mWFP, p_z1 in YKHO....
[ "0.6643323", "0.655051", "0.6500013", "0.6483682", "0.64551705", "0.6425347", "0.63670343", "0.63506866", "0.63506866", "0.63288844", "0.6315869", "0.6278741", "0.62007016", "0.61726165", "0.61578035", "0.6154635", "0.61515373", "0.6118884", "0.61043", "0.6087109", "0.6085647...
0.0
-1
Return a list of the elements in s, but without duplicates. For example, unique([1,2,3,1,2,3]) is some permutation of [1,2,3], unique("abcabc") some permutation of ["a", "b", "c"], and unique(([1, 2], [2, 3], [1, 2])) some permutation of [[2, 3], [1, 2]]. For best speed, all sequence elements should be hashable. Then u...
def kcwm(KCHu): exwG = len(KCHu) if exwG == 0: return [] P6bq = {} try: for WKvO in KCHu: P6bq[WKvO] = 1 except TypeError: del P6bq else: return P6bq.keys() try: a1PO = list(KCHu) a1PO.sort() except TypeError: del a1PO ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kcwm(KCHu):\n exwG = len(KCHu)\n if exwG == 0:\n return []\n P6bq = {}\n try:\n for WKvO in KCHu:\n P6bq[WKvO] = 1\n except TypeError:\n del P6bq\n else:\n return P6bq.keys()\n try:\n a1PO = list(KCHu)\n a1PO.sort()\n except TypeError...
[ "0.8020299", "0.79997873", "0.744328", "0.7404761", "0.7373991", "0.732022", "0.7319941", "0.73164546", "0.72961015", "0.72961015", "0.72961015", "0.7289325", "0.7218573", "0.7129352", "0.71077055", "0.70881903", "0.70881903", "0.7058517", "0.7051331", "0.7049589", "0.7043085...
0.7971885
2
Collect all relationshisp into a `~pronto.RelationshipSet`.
def URoe(YKHO) -> 'RelationshipSet': from ..relationship import RelationshipSet with Zl0b.disabled(): jgD6 = RelationshipSet() jgD6._ontology = YKHO._ontology jgD6._ids.update(iter(YKHO._next_id, None)) return jgD6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KQdn(YKHO):\n return frozenset(YKHO.__relationships)", "def _o1z(YKHO):\n Aofo = set()\n for _x49 in YKHO.get_features():\n Aofo.add(_x49[1])\n return list(Aofo)", "def Ia6p(YKHO, _2sc: str) -> fHNa[str]:\n raise NotImplementedError", "def KQdn(YKHO):\n return list(YKHO._rels)", ...
[ "0.72553223", "0.6824871", "0.6813647", "0.6804124", "0.6732235", "0.6651695", "0.6540778", "0.6525741", "0.6525741", "0.6472927", "0.6421713", "0.6392406", "0.6337292", "0.6308271", "0.626473", "0.6258951", "0.62562746", "0.6163453", "0.61421967", "0.61340725", "0.6114256", ...
0.6993157
1
Checks that field is a valid S3 url.
def kAOV(L03z, Jyyj): if Jyyj.data == 's3n://': raise sUXu(u'This field must be an S3 url.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kAOV(L03z, Jyyj):\n if Jyyj.data == 's3://':\n raise sUXu(u'This field must be an S3 url.')", "def I010(bD7m):\n if ZbWC.match('^s3://([^/]+)/(.*?([^/]+))$', bD7m) is not None:\n return True\n return False", "def KSw8(**B2fa):\n if not _FIc.url(B2fa.get('file_url')):\n rais...
[ "0.9103721", "0.78557384", "0.69153035", "0.67459667", "0.66275525", "0.6594126", "0.64761186", "0.64233154", "0.64227587", "0.6393163", "0.6385479", "0.6379824", "0.6318631", "0.6315162", "0.63134474", "0.6248693", "0.6225243", "0.6202973", "0.6190131", "0.61665064", "0.6163...
0.9071031
1
Compare a pandas Series or DataFrame structure to specification limits defined by this spec class instance.
def cbvY(YKHO, nPrm): if isinstance(nPrm, CwDs.Series): W4Ip, kQOm = YKHO[nPrm.name] return nPrm.apply(lambda WKvO: WKvO >= W4Ip and WKvO <= kQOm) if isinstance(nPrm, CwDs.DataFrame): jLGW = CwDs.DataFrame(oyIN.ones(nPrm.shape, dtype=bool), columns=nPrm.columns) for r845 in Ni9Y(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n LyBz = uMob(YKHO.Note, Elif.Note)\n return shyE(YKHO, Elif) and LyBz", "def QEMg(YKHO):\n KAOR = CPOV(low='a', high='b')\n OYoO = rLdf.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6], 'c': [7, 8, 9]})\n KAOR.fit(OYoO)\n aEqx = OYoO['b'].dtype\n assert KAOR._dtype == aEqx", ...
[ "0.61328226", "0.6091207", "0.5840039", "0.5717786", "0.57072604", "0.56974065", "0.55686164", "0.5556244", "0.55016637", "0.549753", "0.5496904", "0.54953", "0.5494588", "0.54942936", "0.5491107", "0.54752094", "0.54474306", "0.54283005", "0.5419106", "0.5407827", "0.5400826...
0.0
-1
Test the instantiation of our Linked List.
def NCm5(): from linked_list import LinkedList yv6U = LinkedList() if yv6U.head is None: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def as4H():\n from linked_list import LinkedList\n v_nO = LinkedList()\n assert v_nO.head is None", "def VOmy(YKHO):\n qFa0 = rgas()\n YKHO.assertEqual((qFa0.head, qFa0.tail), (None, None))", "def I_He(YKHO):\n CLNC = RRVT()\n YKHO.assertIsNone(CLNC.head, None)", "def aWik(nPrm, hlel):\n...
[ "0.7830132", "0.777984", "0.7765889", "0.74770683", "0.7472896", "0.72657204", "0.72567797", "0.7217977", "0.7170241", "0.70769197", "0.7063648", "0.6994139", "0.6922726", "0.68672", "0.6804488", "0.6782928", "0.67662245", "0.6743515", "0.67265064", "0.67239696", "0.6719108",...
0.7427169
5
Test size method for empty linked list.
def lYA0(): from linked_list import LinkedList yv6U = LinkedList() assert yv6U.size() == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XfEZ(YKHO):\n YKHO.assertEqual(YKHO.empty_list.size(), 0)", "def pUo1(YKHO):\n CLNC = RRVT()\n YKHO.assertIsNone(CLNC.head, None)\n YKHO.assertTrue(CLNC.is_empty())\n YKHO.assertEqual(CLNC.size(), 0)\n CLNC.add(19)\n YKHO.assertFalse(CLNC.is_empty())\n YKHO.assertEqual(CLNC.size(), 1)...
[ "0.827055", "0.82278585", "0.8109892", "0.80150884", "0.79007477", "0.7871943", "0.7851531", "0.7793079", "0.76813763", "0.76744914", "0.75008523", "0.74908555", "0.74110323", "0.7368189", "0.731771", "0.72317076", "0.7213309", "0.7101179", "0.700008", "0.6972102", "0.6967538...
0.86550957
0
Returns True if the token in the request grants access to the given scope. The token is validated via the authTokenStorage singleton given to the TokenResource instance. If the token is invalid, does not grant access to the scope or was not send via a secure protocol, False is returned, an error is written to the reque...
def xmET(QePW, rrBf, jJsy=False): try: rrBf = rrBf if isinstance(rrBf, list) else [rrBf] if not (jJsy or QePW.isSecure()): raise hHAw() try: drFK = xMII(QePW) except ValueError: raise R0d6(rrBf) if drFK is None: raise tcVF(rrBf)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P3Bs(Emd4, qv1X, Ydxt):\n KkxT = Emd4._extract_token(qv1X)\n rrBf = Emd4._get_scope(KkxT)\n if rrBf == Ydxt:\n return True\n return False", "def HGn8(J2mD, U34r):\n try:\n assert J2mD['scope'] in U34r['scope']\n except AssertionError:\n bo34.error('Not the same scope as...
[ "0.73309374", "0.673421", "0.66335917", "0.65712273", "0.65367967", "0.65367967", "0.6535101", "0.6521397", "0.6509385", "0.6423098", "0.6282739", "0.62592703", "0.62096536", "0.6142286", "0.6116127", "0.6115654", "0.6089715", "0.604005", "0.6031663", "0.5992395", "0.5973936"...
0.7606854
0
Function decorator that checks the first argument, which must be a request object, with isAuthorized. If the request is authorized, the function is called, otherwise the request is closed and NOT_DONE_YET is returned.
def uthh(rrBf, jJsy=False): def mrMx(JfyU): @zaGL(JfyU) def h3Xc(YKHO, QePW, *qIxc, **B2fa): if not xmET(QePW, rrBf, jJsy): return TbBQ return JfyU(YKHO, QePW, *qIxc, **B2fa) return h3Xc return mrMx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oAWu(FYKK):\n\n def Suzb(*qIxc, **B2fa):\n if 'Authorization' not in QePW.headers:\n print('No token in header')\n eTsH(401)\n return None\n print('Checking token...')\n n10L = dvle(QePW.headers['Authorization'])\n if not n10L:\n print(...
[ "0.713506", "0.68679684", "0.66820693", "0.656759", "0.6455226", "0.63763714", "0.6355985", "0.62964135", "0.6290347", "0.6279274", "0.6268732", "0.6253849", "0.6249622", "0.6249092", "0.62370265", "0.6205128", "0.62034523", "0.6161649", "0.61561215", "0.613951", "0.6137028",...
0.686515
2
Creates and saves a User with the given email, date of birth and password.
def lYUQ(YKHO, D3lj, NtEF, JSoq, jTXt): if not D3lj: raise wW5c(detail='Email needed') if not NtEF: raise wW5c(detail='Username needed') if not JSoq: raise wW5c(detail='Phone Number needed') try: CBIr = YKHO.model(email=YKHO.normalize_email(D3lj), username=NtEF, phone_num...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def xWi2(YKHO, D3lj, c9ua, zp3f, jTXt, **wdCM):\n D3lj = YKHO.normalize_em...
[ "0.8398513", "0.8242539", "0.8222285", "0.8134031", "0.8112516", "0.8107438", "0.8089521", "0.80854213", "0.8078641", "0.8076671", "0.8072227", "0.806547", "0.80622184", "0.8059587", "0.8059416", "0.805927", "0.8057694", "0.8056086", "0.8049341", "0.8048753", "0.80471236", ...
0.0
-1
This tokenizer replaces punctuation to spaces and then tokenizes the tokens that are separated by whitespace (space, tab, newline).
def GRUm(l5Ny): if type(l5Ny) == str: rKmc = l5Ny.translate(str.maketrans('', '', vIwR.punctuation)) return rKmc.lower().split() else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dFss(l5Ny):\n for Npgh in l5Ny:\n if Npgh in pC3l:\n l5Ny = l5Ny.replace(Npgh, ' ' + Npgh + ' ')\n return l5Ny.split()", "def pG_y(l5Ny):\n Tj9d = ZbWC.sub('[.?\\\\-\\\\\",!;\\':()\\\\[\\\\\\\\]\\\\n+\\\\t+]', '', l5Ny, flags=ZbWC.I)\n Tj9d = ZbWC.sub('\\\\s{2,}', '', Tj9d, flag...
[ "0.7765665", "0.76300305", "0.7581898", "0.7482522", "0.7453101", "0.7328318", "0.72847706", "0.7236908", "0.7168105", "0.71270126", "0.71166325", "0.7110429", "0.70458525", "0.70458525", "0.70458525", "0.70458525", "0.70458525", "0.70458525", "0.70440954", "0.70369726", "0.7...
0.7001998
23
Get a named logger using python's logging module. This serves as a lightweight wrapper around python's logging module. The named logger may have a different configuration set in 'get_named_logger', additional stdout handler returned by 'get_stdout_handler' and formatters of all handlers changed to a verbose one returne...
def fZx2(mWFP=''): bo34 = L0lO.get_named_logger(mWFP) A7wQ = L0lO.get_stdout_handler(mWFP) if A7wQ: bo34.addHandler(A7wQ) ZMub = L0lO.get_verbose_formatter(mWFP) if ZMub: for DCgT in bo34.handlers: DCgT.setFormatter(ZMub) bo34 = L0lO.get_verbose_LoggerAdapter(bo34...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2(*, E70h):\n bo34 = G9jH.getLogger(E70h)\n bo34.setLevel(G9jH.INFO)\n bo34.addHandler(In9A())\n bo34.addHandler(oAuJ())\n bo34.propagate = False\n return bo34", "def fZx2(*, E70h):\n bo34 = G9jH.getLogger(E70h)\n bo34.setLevel(G9jH.INFO)\n bo34.addHandler(In9A())\n bo34.addH...
[ "0.8401335", "0.8401335", "0.8354834", "0.8307933", "0.8254406", "0.82229227", "0.8214475", "0.8206069", "0.8181776", "0.818046", "0.81773674", "0.812872", "0.81248856", "0.8119623", "0.8106942", "0.80760896", "0.80694777", "0.80568486", "0.80381244", "0.8022775", "0.8014296"...
0.86507607
0
1hot encodes a tensor
def fKLU(LVAh, jTqs): return oyIN.eye(jTqs, dtype='uint8')[LVAh]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(WKvO):\n return oyIN.eye(WKvO.max() + 1)[WKvO]", "def zGX0(WKvO):\n KLLm = []\n jzdc = oyIN.array([0, 0, 0, 0, 0, 0, 0, 0])\n jzdc[WKvO] = 1\n KLLm.append(jzdc)\n return oyIN.asarray(KLLm).astype('int32')", "def GpPk(or8S, tpio):\n ycBG = [0] * tpio\n ycBG[or8S] = 1\n return...
[ "0.8397239", "0.8342454", "0.82294697", "0.81629807", "0.8143967", "0.81028515", "0.809962", "0.8062199", "0.80533415", "0.8046785", "0.8038851", "0.8029096", "0.79069096", "0.7860194", "0.7850401", "0.7841131", "0.7838329", "0.78013283", "0.77874726", "0.7751093", "0.7746245...
0.0
-1
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) if fEKO != 'month' and fEKO != 'both': jQ3Z['month'] = jQ3Z['Start Time'].dt.month sve5 = jQ3Z['month'].mode()[0] print('Most...
{ "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 print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.79996175", "0.7920857", "0.7891767", "0.78612196", "0.785926", "0.7838814", "0.779974", "0.77848285", "0.7735119", "0.7723049", "0.771342", "0.7708436", "0.770453", "0.77017164", "0.7689714", "0.7685842", "0.7680146", "0.76788265", "0.76721054", "0.7661351", "0.7660023", ...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() _8rG = jQ3Z['Start Station'].mode()[0] print('Most Frequent Start Station:', _8rG) oFx8 = jQ3Z['End Station'].mode()[0] print('Most Frequent End Station:', oFx8) jQ3Z['Trip'] = jQ3Z['Start Stati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665365", "0.76264536", "0.7610902", "0.75852126", "0.7576492", "0.7567089", "0.75577486", "0.7538181", "0.75294757", "0.7502035", "0.74997437", "0.7496321", "0.74872565", "0.74840283", "0.7475714", "0.7472988", "0.7437631", "0.74366206", "0.7433223", "0.7428372", "0.74269...
0.7372408
30
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() pe8w = jQ3Z['Trip Duration'].sum() print('Total Travel Time:', pe8w) IEfE = jQ3Z['Trip Duration'].mean() print('Average Travel Time:', IEfE) print('\nThis took %s seconds.' % (ITS7.time() - SWox)) print('-' * 40...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.78674674
49
Tests that event detail endpoint returns the correct fields.
def DwKm(d4y1, tvqc): geh0 = THXy(d4y1, tvqc.pk) QYLa(geh0.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slsv(jmr2):\n Aofo = tvqc.EventDetailsRequest(event_id='24377').execute()\n assert isinstance(Aofo, aQyM)", "def duuf(YKHO):\n tvqc = QRWf.objects.get()\n Ylbp = YKHO.client.get(gxEw('event-detail', kwargs={'pk': tvqc.id}), format='json')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\...
[ "0.7547792", "0.728928", "0.72396415", "0.7139822", "0.7121302", "0.7041045", "0.6935942", "0.69199365", "0.6852103", "0.6824738", "0.6780942", "0.67806304", "0.67724353", "0.6717432", "0.6634117", "0.6613754", "0.65962654", "0.654419", "0.6534849", "0.65230393", "0.64722383"...
0.81634325
0
Get current scene name.
def XJhI(): iFGc = ccKF.file(query=True, sceneName=True, shortName=True) iFGc = BKva.splitext(iFGc)[0] return iFGc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hSt3(YKHO, or8S):\n F6jf = YKHO.scenes[or8S]\n return F6jf", "def ps_a():\n TD4F = FQNo.file(q=True, sceneName=True)\n return TD4F", "def mh0D(YKHO):\n return YKHO['name'].split('.')[0]", "def W0tD(YKHO):\n if YKHO.app:\n return YKHO.app.name", "def INes(*qIxc):\n cSv3 = ccK...
[ "0.7762217", "0.7736048", "0.72353405", "0.7135343", "0.7131514", "0.69576067", "0.68319696", "0.67839277", "0.6708167", "0.67057586", "0.6694968", "0.66912425", "0.6669727", "0.6646748", "0.66369253", "0.6597764", "0.6590293", "0.6590293", "0.6590293", "0.6590293", "0.659029...
0.8707556
0
Get name list of all available nodes in current scene/projects.
def ro25(vm5X=True): O70P = ccKF.ls(showType=vm5X) if not vm5X: O70P.sort() return O70P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RdSW(YKHO) -> bdIy[str]:\n return YKHO.__backend.get_nodes(True)", "def Ziit(YKHO) -> x1iM[str]:\n return YKHO.get_node_list()", "def cW0t(YKHO) -> list[eA6S]:\n return list(YKHO.nodes)", "def aAQH(YKHO):\n return YKHO._list_request('nodes')", "def qmh8(YKHO):\n return YKHO.nodes", "de...
[ "0.7660577", "0.73387396", "0.7262075", "0.71694005", "0.71393836", "0.70443016", "0.70273983", "0.69940335", "0.6976175", "0.69708604", "0.69384277", "0.69248533", "0.6871122", "0.6849582", "0.68447375", "0.6831554", "0.682604", "0.682604", "0.682604", "0.6803894", "0.680072...
0.0
-1
Return a 2dimensional Gaussian with rotation angle
def I393(WKvO, LVAh=0.0, vgXP=0.0, YylR=0.0, caa_=1.0, FKsd=0.0, mtDG=0.0, dnsz=1.0, Tovs=1.0): fsgT = (WKvO - FKsd) * oyIN.cos(YylR) - (LVAh - mtDG) * oyIN.sin(YylR) cEY3 = (WKvO - FKsd) * oyIN.sin(YylR) + (LVAh - mtDG) * oyIN.cos(YylR) return vgXP + caa_ * oyIN.exp(-1.0 / max(TYgv, 2 * 1) * ((fsgT / max(T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qPB9(nJ9F=0, nxyw=0, q7In=0, NTJI=10, W9fC=10):\n o0ZM = NTJI\n BhJz = W9fC\n q7In = q7In * oyIN.pi / 180\n\n def FYKK(WKvO, LVAh):\n jzdc = oyIN.cos(q7In) * WKvO - oyIN.sin(q7In) * LVAh\n Fg_i = oyIN.sin(q7In) * WKvO + oyIN.cos(q7In) * LVAh\n L1dM = oyIN.cos(q7In) * nJ9F - oyI...
[ "0.7031013", "0.7004903", "0.6691054", "0.66720504", "0.6666339", "0.6484365", "0.64728415", "0.63876575", "0.6372139", "0.6316934", "0.63093144", "0.6282089", "0.6276821", "0.62338734", "0.6217079", "0.6192164", "0.6182219", "0.61475646", "0.61450565", "0.61450565", "0.61450...
0.71132755
0
Draw the fps display.
def aDcr(YKHO): try: NmYP = YKHO.clock.get_fps() except ZeroDivisionError: return l5Ny = 'FPS: %.3d' % NmYP XuM1 = YKHO.factory.from_text(l5Ny, color=(127, 225, 127)) XuM1.topright = (YKHO.width, 0) YKHO.spriterenderer.render(XuM1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO):\n YKHO.board.draw(YKHO.display)\n YKHO.gui.draw()\n a9eO.display.update()", "def vIFK(YKHO):\n bW5R = str(int(YKHO.clock.get_fps()))\n lqj6 = YKHO.basicFont.render(bW5R, 1, a9eO.Color('coral'))\n YKHO.window.blit(lqj6, (20, 20))", "def aDcr(J20S, DZsB, DNwW='topright', qfpW='r...
[ "0.7812432", "0.7728773", "0.77287716", "0.768019", "0.7622039", "0.72914153", "0.7274451", "0.7242907", "0.72281766", "0.71833104", "0.71822953", "0.7174881", "0.7147497", "0.7129662", "0.71105504", "0.7108303", "0.70993274", "0.7074531", "0.70665294", "0.7066115", "0.705164...
0.8466709
0
Reference to sdl2.ext.SpriteFactory instance.
def i_PC(YKHO): return YKHO.manager.factory
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n a9eO.sprite.Sprite.__init__(YKHO)", "def uIcm(YKHO, BH3N, i_PC, L7eG):\n YKHO.__game = BH3N\n YKHO.factory = i_PC\n YKHO.__sprite_manager = L7eG", "def FYpq(oeNL=(0, 0)):\n _6NH = UP1P()\n _6NH.set_image('racecar.png')\n _6NH.set_pos(oeNL)\n return _6NH", "def FIMM(Y...
[ "0.6433235", "0.640099", "0.62487215", "0.61820024", "0.60791993", "0.60703087", "0.60691535", "0.6058207", "0.60519576", "0.59877396", "0.59873676", "0.5977087", "0.5940495", "0.5917915", "0.59173137", "0.5913933", "0.5908184", "0.59010583", "0.58759063", "0.58735245", "0.58...
0.5309662
98
(dict) > int Return the number of edges of a graph.
def L1_y(JFwB): return sum((len(A_IW) for A_IW in JFwB.values()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hSVo(pNZh):\n return rrLg.numEdges(pNZh)", "def fOCg(YKHO):\n return YKHO.graph.number_of_edges()", "def n8F9(YKHO):\n mLGw = 0\n for Ty9i in YKHO._structure:\n mLGw += len(YKHO._structure[Ty9i])\n return mLGw // 2", "def vi4d(YKHO):\n return YKHO._n", "def JdQB(YKHO):\n VRw...
[ "0.8515398", "0.8462027", "0.8376531", "0.8371717", "0.8334942", "0.82958144", "0.8292784", "0.8283462", "0.8249962", "0.82409525", "0.823035", "0.82287276", "0.8184911", "0.8184911", "0.81808895", "0.8143703", "0.8119247", "0.81172115", "0.80831015", "0.80831015", "0.8068592...
0.8186874
12
Go through all the units, and whenever there is a unit with a value that only fits in one box, assign the value to this box.
def rIvV(hkxX): for PXGI in dzni: for Ko6S in '123456789': S5Zo = [FlUN for FlUN in PXGI if Ko6S in hkxX[FlUN]] if len(S5Zo) == 1: zUz_(hkxX, S5Zo[0], Ko6S) return hkxX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qIMy(YKHO):\n for WKvO in range(9):\n for LVAh in range(9):\n exwG = YKHO.grid[WKvO][LVAh]\n if exwG != 0:\n YKHO._rows[LVAh].add(exwG)\n YKHO._columns[WKvO].add(exwG)\n YKHO._boxes[WKvO // 3][LVAh // 3].add(exwG)", "def rIvV(hkxX):...
[ "0.67293954", "0.6053721", "0.60490453", "0.603526", "0.58767766", "0.58422256", "0.58410436", "0.5828326", "0.5825331", "0.5750279", "0.5695658", "0.56799936", "0.5671624", "0.56356025", "0.562453", "0.5601167", "0.55875957", "0.55655086", "0.55625737", "0.55140024", "0.5490...
0.58011335
9
Iterate eliminate() and only_choice(). If at some point, there is a box with no available values, return False. If the sudoku is solved, return the sudoku. If after an iteration of both functions, the sudoku remains the same, return the sudoku.
def yimF(hkxX): SGTU = False while not SGTU: sF3i = len([FlUN for FlUN in hkxX.keys() if len(hkxX[FlUN]) == 1]) hkxX = zJeh(hkxX) hkxX = WqoA(hkxX) hkxX = rIvV(hkxX) cbJ8 = len([FlUN for FlUN in hkxX.keys() if len(hkxX[FlUN]) == 1]) SGTU = sF3i == cbJ8 if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgwQ(hkxX):\n hkxX = yimF(hkxX)\n if hkxX is False:\n return False\n if all((len(hkxX[KCHu]) == 1 for KCHu in oUSw)):\n return hkxX\n exwG, KCHu = min(((len(hkxX[KCHu]), KCHu) for KCHu in oUSw if len(hkxX[KCHu]) > 1))\n for BWXx in hkxX[KCHu]:\n dkel = hkxX.copy()\n d...
[ "0.7342298", "0.7338671", "0.7334678", "0.72860265", "0.7215535", "0.7201317", "0.71674895", "0.71658766", "0.71617115", "0.71610886", "0.7134933", "0.7132169", "0.7107693", "0.71046036", "0.7100456", "0.70837104", "0.70800173", "0.70696276", "0.70676666", "0.7064112", "0.704...
0.66119915
60
Given a collection of TensorFlow events data, display labeled loss plots.
def hJxM(uVQG): QrM1.figure(num=None, figsize=(15, 6), dpi=80, facecolor='w', edgecolor='k') for YRbF, X4Y8 in enumerate(uVQG): u3SP = [tvqc['wall_time'] for tvqc in X4Y8['events']] LzZl = min(u3SP) hrDT = [ug3y - LzZl for ug3y in u3SP] N8L0 = [tvqc['loss'] for tvqc in X4Y8['even...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ysuu(N8L0):\n WKvO = [YRbF for YRbF in range(len(N8L0))]\n QrM1.plot(WKvO, N8L0)\n QrM1.title('Loss per batch')\n QrM1.xlabel('Batch')\n QrM1.ylabel('Loss')\n QrM1.show()", "def Ysuu(N8L0):\n LZpg, aNZO = QrM1.subplots()\n N8L0 = oyIN.array(N8L0)\n QrM1.plot(N8L0.T[0], label='Discr...
[ "0.6927192", "0.67427593", "0.66088676", "0.6569981", "0.6548877", "0.65280116", "0.651449", "0.65128624", "0.64912724", "0.64491564", "0.6439943", "0.6414048", "0.63609767", "0.63600373", "0.63555646", "0.6354961", "0.6335854", "0.6289923", "0.6275239", "0.626573", "0.625652...
0.63553774
15
Given a small image, infer a large image using nonoverlapping patches.
def uYw3(d6hw, bKP2, u5Om, yoWH=8, a3bk=32, vgXP=0): raOl = oyIN.zeros(u5Om, dtype=oyIN.uint8) GhuM = oyIN.shape(d6hw) Rgyy = a3bk / yoWH with u2Ve.restore_variables_on_create(bKP2): qDF6 = GhuM[0] // yoWH for tE9M in range(0, qDF6): ZylS.logging.info('processing row %s of %s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CEes(LNo8, gqRb=96, ODP9=128, yAd3=128, f_Nw=128):\n l5eN, Kmi0 = LNo8.shape[:2]\n canL, Fa3k = oyIN.random.randint(gqRb, ODP9, size=2)\n LVAh = oyIN.random.randint(0, l5eN - canL)\n WKvO = oyIN.random.randint(0, Kmi0 - Fa3k)\n PkvC = LNo8.copy()\n PkvC[LVAh:LVAh + canL, WKvO:WKvO + Fa3k, 0] ...
[ "0.63208413", "0.6204878", "0.6197734", "0.6133309", "0.60754216", "0.6012609", "0.59534574", "0.5943978", "0.59410703", "0.58721966", "0.58269924", "0.5801747", "0.57730293", "0.57577777", "0.5740798", "0.57107484", "0.5701088", "0.5668268", "0.5662479", "0.5657158", "0.5653...
0.0
-1
Set the module in training mode, except for the target network.
def EvQg(YKHO): YKHO.training = True YKHO.actor.train()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EvQg(YKHO):\n YKHO.train_mode = True\n for yR_P in YKHO.modules():\n yR_P.train_mode = True", "def jO9f(yR_P: nn.Module, Tuqy: bool):\n LxOj = yR_P.training\n try:\n yR_P.train(Tuqy)\n yield yR_P\n finally:\n yR_P.train(LxOj)", "def lpIk(YKHO):\n if not YKHO._i...
[ "0.7598807", "0.73764336", "0.7337082", "0.7328746", "0.72622335", "0.72105026", "0.70221764", "0.699576", "0.6978205", "0.6978205", "0.6844988", "0.6844988", "0.6833881", "0.6787669", "0.67745745", "0.67677593", "0.67677593", "0.6752885", "0.6702376", "0.6693711", "0.6693711...
0.6049505
62
Set the module in evaluation mode, except for the target network.
def eval(YKHO): YKHO.training = False YKHO.actor.eval()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qYbd(YKHO):\n if YKHO._is_train:\n for r8hN in YKHO._models:\n r8hN.set_eval_mode()\n YKHO._is_train = False", "def eval(YKHO):\n YKHO.train_mode = False\n for yR_P in YKHO.modules():\n yR_P.train_mode = False", "def Hde5(Tuqy):\n pass", "def CcMJ(YKHO):\n YKHO....
[ "0.72899985", "0.72220147", "0.7119551", "0.6919997", "0.6644995", "0.6500244", "0.6388005", "0.6361461", "0.6361461", "0.63578045", "0.6348289", "0.6245427", "0.6149753", "0.61116403", "0.60761577", "0.60616755", "0.60525644", "0.6021557", "0.6012918", "0.60029304", "0.59898...
0.5985143
21
Returns the result of unpickling the file content.
def CWYp(Ux0P): with open(Ux0P, 'rb') as eHNT: return t2lc.load(eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WdQT(YKHO, Ux0P):\n apnW = open(Ux0P, 'rb')\n nPrm = _sei.load(apnW)\n apnW.close()\n return nPrm", "def Ueki(YKHO):\n with open(YKHO.path, 'rb') as okC2:\n return t2lc.load(okC2)", "def GcgO(YKHO, Ux0P):\n qaEx = YKHO._get_file_path(Ux0P)\n print('Loading data: ' + qaEx)\n w...
[ "0.69814074", "0.686091", "0.68283135", "0.672766", "0.66671836", "0.66671836", "0.66435164", "0.664069", "0.6623457", "0.6612676", "0.6589426", "0.64919794", "0.64878064", "0.64853895", "0.64069545", "0.64003503", "0.63882464", "0.63830435", "0.63800895", "0.6371544", "0.636...
0.6541512
11
Prepares batches of indices. Sequences are padded to match the longest sequence in the batch, if it's longer than max_len, then max_len is used instead.
def EtNN(Rhv4, r_WB, wzH_): j3n3 = min(max((len(KCHu) for KCHu in Rhv4)) + 1, wzH_) MWN_, GjHE = ([], []) for yAmx in Rhv4: A07C, hPH4 = VBt7(yAmx, r_WB, j3n3) MWN_.append(A07C) GjHE.append(hPH4) return (MWN_, GjHE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FHnj(YKHO, DNs0, wzH_):\n if len(DNs0) < wzH_:\n SXLe = wzH_ - len(DNs0)\n dvgN = [pA9D.PAD_WITH] * SXLe\n if YKHO._padding_type == pA9D.PAD_BEGINNING:\n return dvgN + DNs0\n else:\n return DNs0 + dvgN\n else:\n return DNs0[:wzH_]", "def KvXt(YKH...
[ "0.66240114", "0.6616077", "0.65637934", "0.6563726", "0.6510382", "0.64331055", "0.6363777", "0.6333101", "0.6319102", "0.6292702", "0.6235131", "0.62214804", "0.621574", "0.62114143", "0.6205896", "0.615751", "0.6117037", "0.6103009", "0.60816044", "0.60816044", "0.60583884...
0.0
-1
Converts dense matrix to sparse COO format tuple of numpy arrays (indices, data)
def _zVl(a1PO: torch.Tensor, A00a: Optional[torch.Tensor]=None) -> AzJI[oyIN.ndarray, ...]: if A00a is None: A00a = a1PO VpED = ht2j.nonzero(A00a, as_tuple=True) eafL = a1PO[VpED].flatten() return tuple([EHMB.cpu().numpy() for EHMB in VpED + (eafL,)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bh1F(k0lF: numpy.ndarray):\n Pfcj = []\n X0Yi = []\n hkxX = []\n for YRbF in range(0, k0lF.shape[0]):\n Pfcj.append(len(X0Yi))\n for r845 in range(0, k0lF.shape[1]):\n if k0lF[YRbF][r845] != 0:\n X0Yi.append(r845)\n hkxX.append(k0lF[YRbF][r845]...
[ "0.76695937", "0.73328507", "0.72578764", "0.722073", "0.7210289", "0.71901643", "0.71901643", "0.71901643", "0.71901643", "0.71901643", "0.71901643", "0.71901643", "0.71901643", "0.71901643", "0.71901643", "0.71898365", "0.71814644", "0.71814644", "0.71814644", "0.71814644", ...
0.6268733
82
Densify a sparse log prob COO data structure. Same as coo_matrix.todense() except it fills missing entries with np.inf instead of 0, since 0 is a very meaningful quantity for log prob.
def QMoN(fG81: sp.coo_matrix) -> oyIN.ndarray: return czi3(coo=fG81, fill_value=-oyIN.inf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fbPc():\n nPrm = oyIN.array([0, -1, -2, 0, -4, -2, 0])\n rdlD = oyIN.array([0, 0, 2, 2, 3, 3, 4])\n fvDH = oyIN.array([0, 1, 0, 1, 0, 1, 0])\n fG81 = H4yH.coo_matrix((nPrm, (rdlD, fvDH)), shape=[5, 2])\n print(fG81)\n print('scipy .todense()')\n print(fG81.todense())\n print('log prob d...
[ "0.7489978", "0.5969787", "0.5969787", "0.59488475", "0.587245", "0.58346975", "0.58341956", "0.58314365", "0.5722517", "0.5644722", "0.56422466", "0.5619514", "0.5579914", "0.55669504", "0.55491465", "0.55221206", "0.5519008", "0.55127", "0.5496533", "0.5484217", "0.54763407...
0.79195166
0
Densify a sparse COO matrix. Same as coo_matrix.todense() except it fills missing entries with fill_value instead of 0.
def czi3(fG81: sp.coo_matrix, xgWT: float) -> oyIN.ndarray: yMig = oyIN.nan if not oyIN.isnan(xgWT) else oyIN.inf cvLY = oyIN.isnan if oyIN.isnan(yMig) else oyIN.isinf fG81 = fG81.copy().astype(float) fG81.data[fG81.data == 0] = yMig yvT9 = oyIN.array(fG81.todense()).squeeze() yvT9[yvT9 == 0] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CPAw(wEf2):\n vb7U = oyIN.array([[0, 0, 0, 0], [1, 0, 0, 0], [0, 1, 2, 0], [1, 2, 3, 4]], dtype=float)\n fG81 = H4yH.coo_matrix(vb7U)\n print('original')\n print(vb7U)\n print('sparse version')\n print(fG81)\n print(f'densified using {wEf2}')\n A0RF = czi3(coo=fG81, fill_value=wEf2)\n ...
[ "0.733551", "0.70651263", "0.6907345", "0.68656045", "0.6821482", "0.67977226", "0.666134", "0.65872496", "0.65872496", "0.65761477", "0.6506185", "0.64876306", "0.64568025", "0.644462", "0.64112556", "0.6397661", "0.634595", "0.63356096", "0.6334933", "0.6332193", "0.6311788...
0.71024704
1
make sure no skills are above the Power level for the campaign. Reallocate skills which are too high
def AFrW(YKHO): gqr5 = {} WKvO = 0 LVAh = 0 for F5FK, BWXx in YKHO.modified_skills.items(): if BWXx > YKHO.power_level['max']: gqr5[F5FK] = YKHO.power_level['max'] - BWXx WKvO += YKHO.power_level['max'] - BWXx LVAh = abs(WKvO) while LVAh > 0: f94y = LVAh i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QpGS(YKHO):\n mGVB = []\n if YKHO.char_class['Name'] == 'Rogue':\n if YKHO.level < 6:\n ewCu = 2\n elif YKHO.level >= 6:\n ewCu = 4\n elif YKHO.char_class['Name'] == 'Bard':\n if YKHO.level < 3:\n ewCu = 0\n elif 3 <= YKHO.level < 10:\n ...
[ "0.6558855", "0.6393362", "0.6311746", "0.6286982", "0.62788033", "0.6178197", "0.6177735", "0.61382145", "0.6129626", "0.6082004", "0.60798454", "0.60737056", "0.59741807", "0.5944374", "0.587097", "0.5864224", "0.5852522", "0.5823361", "0.58157814", "0.5800553", "0.5776541"...
0.70224047
0
constructor for Magic World character
def FIMM(YKHO, A89K='Normal'): KUD2 = {'Normal': {'profession': [(1, 60), (3, 40), (4, 20)], 'other': [(1, 40), (3, 20)], 'POW': 0, 'stats': 0, 'spells': 3}, 'Veteran': {'profession': [(2, 60), (3, 40), (3, 20)], 'other': [(3, 40), (6, 20)], 'POW': 1, 'stats': 1, 'spells': 6}, 'Heroic': {'profession': [(1, 80), (2,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, WKvO, LVAh, hcXw='r'):\n YKHO.char = hcXw\n YKHO.x = WKvO\n YKHO.y = LVAh\n YKHO.meals = 0", "def FIMM(YKHO, dQgj, mWFP, Jqc7):\n YKHO.position = dQgj\n YKHO.name = mWFP\n YKHO.char = mWFP[0].lower()\n YKHO.sprite = Jqc7", "def FIMM(YKHO):\n YKHO.character_builder = No...
[ "0.6935289", "0.6877616", "0.68468714", "0.66124254", "0.6611052", "0.65847135", "0.6570019", "0.6566673", "0.6558505", "0.6484298", "0.6473918", "0.64678746", "0.6411149", "0.63871115", "0.63464266", "0.63302004", "0.6274374", "0.62721705", "0.62681645", "0.6235926", "0.6206...
0.0
-1
Put item into the queue.
def NpNj(YKHO, ZfUD): if YKHO.fliter_rep: if YKHO.__db.sismember(YKHO.key_sets, ZfUD) is False: YKHO.__db.lpush(YKHO.key, ZfUD) YKHO.__db.sadd(YKHO.key_sets, ZfUD) else: YKHO.__db.lpush(YKHO.key, ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NpNj(YKHO, ZfUD):\n YKHO.queue.put_nowait(ZfUD)", "def NpNj(YKHO, ZfUD):\n YKHO.dest_queue.put(ZfUD)", "def NpNj(YKHO, ZfUD):\n if YKHO.full():\n YKHO.get()\n g5js.Queue.put(YKHO, ZfUD)", "def NpNj(YKHO, ZfUD):\n if YKHO._size > 0 and len(YKHO._queue) >= YKHO._size:\n if YKHO...
[ "0.9183886", "0.8824567", "0.8736956", "0.83945376", "0.8376137", "0.82893014", "0.82816166", "0.82433844", "0.8224063", "0.82158685", "0.80245316", "0.8020417", "0.8020417", "0.800027", "0.7963874", "0.7959148", "0.7950684", "0.79399145", "0.7904753", "0.7904753", "0.7904753...
0.0
-1
Check that the given argument has the expected shape. Shape dimensions can be ints or 1 for a wildcard. The wildcard dimensions are returned, which allows them to be used for subsequent validation or elsewhere in the function.
def v_ry(jzdc, ROpF, **B2fa): def _591(tpio): return tpio == -1 if any((not isinstance(tpio, int) and (not _591(tpio)) for tpio in ROpF)): raise ValueError('Expected shape dimensions to be int') if 'name' in B2fa: uK8v = '{} must be an array'.format(B2fa['name']) else: u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v_ry(ezWE, ROpF, mWFP=None):\n\n def _591(tpio):\n return tpio == -1\n if any((not isinstance(tpio, int) and (not _591(tpio)) for tpio in ROpF)):\n raise ValueError('Expected shape dimensions to be int')\n if mWFP is None:\n uK8v = 'Expected an array'\n else:\n uK8v = f'...
[ "0.7360366", "0.7296201", "0.71948636", "0.71485794", "0.69895655", "0.69040453", "0.6902785", "0.68708754", "0.686003", "0.6787587", "0.6718756", "0.66812015", "0.6669688", "0.6605663", "0.6555259", "0.65527165", "0.65296054", "0.6468467", "0.64621925", "0.6458954", "0.64449...
0.7579764
0
Returns the name of the given Group with the current Site's hostname stripped off (for nonsuperusers).
def BTRj(uOe2, QePW): if QePW.user.is_superuser: return uOe2.name else: return uOe2.name.replace(QePW.site.hostname, '').strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XZ_F(YKHO):\n return ''", "def MitI(YKHO):\n return YKHO.client.server.get_group_data(YKHO.client.user['group_id'])['name']", "def MitI(YKHO):\n return YKHO.client.server.get_group_data(YKHO.client.user['group_id'])['name']", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "...
[ "0.71652377", "0.7142649", "0.7142649", "0.7108045", "0.7030574", "0.68433535", "0.6822544", "0.68119186", "0.67844474", "0.67659646", "0.67225385", "0.67086136", "0.6696863", "0.66750115", "0.664816", "0.66303146", "0.66290367", "0.66031665", "0.65976477", "0.65527606", "0.6...
0.86146504
0
Tests whether a given user has permission for a page.
def VW5G(QpfX, B2Dn): CBIr = QpfX['request'].user Gqqd = hHfl(CBIr) return B2Dn in Gqqd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Reai(YKHO):\n Aofo = YKHO.user.has_perm(YKHO.view, YKHO.page_1)\n YKHO.assertEqual(Aofo, False)\n w0rQ.utils.grant_permission(YKHO.page_1, YKHO.role_1, YKHO.view)\n Aofo = YKHO.user.has_perm('view', YKHO.page_1)\n YKHO.assertEqual(Aofo, True)", "def d0C1(YKHO, CBIr):\n return M1EP(CBIr, 'as...
[ "0.75293756", "0.735845", "0.70815676", "0.7077788", "0.707559", "0.7069899", "0.7069129", "0.69820744", "0.69795704", "0.6973815", "0.6971363", "0.6967639", "0.696541", "0.6941411", "0.69349855", "0.69343406", "0.6930234", "0.69252443", "0.6922376", "0.69150454", "0.6911668"...
0.68022144
40
Compare columns in upstream table to the table design file. It is an ERROR if the design lists columns that do not exist in the upstream table. Exceptions here are calculated columns (those starting with etl__) or columns that are marked as skipped. It causes a WARNING to have more columns in the upstream table than ar...
def t7N2(w2B8: Connection, tyNF: RelationDescription) -> None: Q79e = tyNF.source_table_name P8yM = IUXg.design.bootstrap.fetch_attributes(w2B8, Q79e) if not P8yM: raise NWEH("table '%s' is gone or has no columns left" % Q79e.identifier) bo34.info("Found %d column(s) in relation '%s'", len(P8yM)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pmvo(jQ3Z):\n print('Checking Dataframe Columns')\n SH6q = rLdf.read_csv('https://raw.githubusercontent.com/futres/fovt-data-mapping/master/Mapping%20Files/template_col_names.csv')\n dZeE = jQ3Z.columns\n P1dF = str(list(set(dZeE) - set(SH6q['Template Column Names'])))\n HEAq = ['eventID', 'coun...
[ "0.66324925", "0.646705", "0.62077063", "0.61716455", "0.6148873", "0.613818", "0.6136458", "0.6130883", "0.6081665", "0.6052466", "0.59919935", "0.59490335", "0.5943694", "0.5897029", "0.5877769", "0.58623976", "0.5861563", "0.58155173", "0.58071196", "0.58047837", "0.578250...
0.7598754
0
Returns a dict of config_pb2.RunOptions. This object should be unpacked and passed to session.run.
def B2fa(YKHO): if YKHO._run_metadata is None: raise Exception('TensorFlow is not found') return dict(run_metadata=YKHO._run_metadata, options=YKHO._options)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CdbF(YKHO) -> dict:\n return {mWFP: xAU6.to_dict() for mWFP, xAU6 in jKi7.iteritems(YKHO._config_options)}", "def Np0y(YKHO):\n return YKHO._runopts", "def tgzD(YKHO):\n YKHO.cfg.read(YKHO.configfile)\n if YKHO.profile_name not in YKHO.cfg.sections():\n raise dpZV('bad profile %s' % YKHO...
[ "0.65258956", "0.6381138", "0.634642", "0.61982113", "0.6178574", "0.61229986", "0.6118689", "0.6097443", "0.6054517", "0.605407", "0.605407", "0.60468906", "0.6028241", "0.59619856", "0.59157425", "0.5857542", "0.5854144", "0.5836621", "0.57596135", "0.5725709", "0.5725709",...
0.5711374
21
Create a Series from a single attribute, else make categorical
def Xs_y(YKHO, xC3W, T4Wy=None, yDqo=None): if yDqo is None or isinstance(xC3W, yDqo): return rLdf.Series([xC3W] * YKHO.n_samples, index=YKHO.samples) else: T4Wy = uuEx.utils.categorical_order(xC3W, T4Wy) xC3W = rLdf.Categorical(xC3W, categories=T4Wy, ordered=True) return rLdf.Se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIHM(nPrm, iVRZ):\n nPrm[iVRZ] = nPrm[iVRZ].astype('category')\n return nPrm", "def WbhK(KCHu, iVRZ=None):\n if iVRZ is not None:\n KCHu = KCHu[iVRZ]\n return KCHu.dtype.name == 'category'", "def IpBj(dy_H, vFN5):\n TFPw = len(vFN5)\n TDnD = {}\n for H5ew, BWXx in vFN5.items():\...
[ "0.66208464", "0.6286941", "0.606742", "0.60421294", "0.60291976", "0.5934585", "0.59295106", "0.59281415", "0.5923906", "0.5839464", "0.5799703", "0.5776423", "0.5775094", "0.57568866", "0.56866306", "0.5686188", "0.56834084", "0.5592349", "0.5571894", "0.55250746", "0.55244...
0.7117382
0
Add a dummy patch object so we can get legend data.
def P2VU(YKHO, aNZO, qfpW, UXqs): mawX = QrM1.Rectangle([0, 0], 0, 0, linewidth=YKHO.linewidth / 2, edgecolor=YKHO.gray, facecolor=qfpW, label=UXqs) aNZO.add_patch(mawX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s3bP(YKHO):\n Po4F = AKVf.Polygon(xy=YKHO.vertices, edgecolor='red', facecolor='None')\n return Po4F", "def P2VU(YKHO, aNZO, qfpW, UXqs):\n if len(qfpW) == 4:\n qfpW = qfpW[:3]\n mawX = QrM1.Rectangle([0, 0], 0, 0, linewidth=YKHO.linewidth / 2, edgecolor=YKHO.gray, facecolor=qfpW, label=UX...
[ "0.6304089", "0.6293981", "0.596473", "0.5913081", "0.5699871", "0.56964725", "0.56722593", "0.56689924", "0.5634006", "0.5603089", "0.5539396", "0.5529892", "0.55089915", "0.54768956", "0.54412633", "0.5386356", "0.53725815", "0.53343564", "0.5333831", "0.5320934", "0.532093...
0.6366043
0
Correlation Matrix Heat Map
def Ypvb(): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pFEU():\n uuEx.heatmap(jQ3Z.corr())\n QrM1.title('Correlation Matrix')\n QrM1.tight_layout()\n QrM1.show()", "def zfTQ():\n bSmD = Qj6W.corr()\n QrM1.figure()\n iMGt = uuEx.diverging_palette(220, 10, as_cmap=True)\n uuEx.heatmap(bSmD, cmap=iMGt, vmax=0.3, center=0, square=True, linewi...
[ "0.8055765", "0.794783", "0.75726527", "0.75314987", "0.7488192", "0.7433543", "0.7415585", "0.7326499", "0.7325317", "0.72829866", "0.716299", "0.7156663", "0.71106553", "0.7090759", "0.6969156", "0.696904", "0.6948479", "0.69158554", "0.69057095", "0.6895603", "0.6892991", ...
0.6102633
80
Retrieve Access Token using Refresh Token
def m8z6(YKHO): RZVq = _Zgp() RZVq['username'] = Zul5() yxS0 = qcWV.timedelta(days=1) NT__ = VuvO(identity=RZVq, expires_delta=yxS0) return {'access_token': NT__}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DpaD(YKHO):\n bD7m = YKHO.create_url('api/login/refresh')\n print('URL: %s') % bD7m\n pB3N = {'refresh_token': YKHO.offref_token_userid_primary}\n Mkmy = G4JS.post(bD7m, headers={'Content-Type': 'application/json'}, data=qQXR.dumps(pB3N))\n return YKHO.extract_value('token.access_token', Mkmy)",...
[ "0.8175045", "0.77848995", "0.7784896", "0.76677144", "0.7610918", "0.7566601", "0.751685", "0.7488717", "0.74505407", "0.7448049", "0.743778", "0.7407608", "0.73721474", "0.73449224", "0.7340928", "0.73280704", "0.7323059", "0.73228896", "0.7305868", "0.72715765", "0.7265183...
0.0
-1
Returns a SearchStrategy for a Conv1d layer plus maybe the kwargs.
def plYQ(JmFt, sZua: bool=False) -> uLKX[aevO.SearchStrategy[KE1M.Conv1d], aevO.SearchStrategy[AzJI[KE1M.Conv1d, cuzp]]]: B2fa = {} B2fa['output_channels'] = JmFt(aevO.integers(1, 32)) B2fa['kernel_time'] = JmFt(aevO.integers(1, 7)) B2fa['stride_time'] = JmFt(aevO.integers(1, 7)) B2fa['padding_mode'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sksN(YKHO, jIvx):\n EbXT = YKHO._hparams.num_conv_layers\n if len(jIvx) != EbXT:\n raise ValueError('`pool_hparams` must be of length %d' % EbXT)\n KUnM = _Jar(YKHO._hparams.filters, 'filters', EbXT)\n if EbXT == 1:\n Ot1W = _Jar(YKHO._hparams.kernel_size)\n if not isinstance(O...
[ "0.58555555", "0.52919513", "0.52388984", "0.5193411", "0.5179204", "0.5177361", "0.5146993", "0.51417077", "0.5098601", "0.50555265", "0.50524986", "0.5049422", "0.50468636", "0.50447476", "0.50447476", "0.5030183", "0.5029159", "0.5012874", "0.49935633", "0.4979747", "0.497...
0.67589104
0
Returns a SearchStrategy for a Conv2d layer plus maybe the kwargs.
def EYEn(JmFt, sZua: bool=False) -> uLKX[aevO.SearchStrategy[KE1M.Conv2d], aevO.SearchStrategy[AzJI[KE1M.Conv2d, cuzp]]]: B2fa = {} B2fa['output_channels'] = JmFt(aevO.integers(1, 32)) B2fa['kernel_time'] = JmFt(aevO.integers(1, 7)) B2fa['kernel_feature'] = JmFt(aevO.integers(1, 7)) B2fa['stride_tim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adXX(K8MZ, *qIxc, **B2fa):\n B2fa['use_bias'] = K8MZ.use_bias\n B2fa['kernel_regularizer'] = K8MZ.l2_regularizer\n return yHwh(*qIxc, **B2fa)", "def fN14(YKHO, *qIxc, **B2fa):\n FYKK, ZI14 = YKHO._get_function_and_suffix('separable_conv2d')\n Fxgs = YKHO._get_num_outputs_kwarg_name(FYKK)\n ...
[ "0.6337557", "0.59272814", "0.5883976", "0.5739575", "0.5714883", "0.5671167", "0.55503446", "0.5486614", "0.54543746", "0.5387702", "0.5387702", "0.5372681", "0.5371484", "0.5358632", "0.53248096", "0.53209865", "0.5313364", "0.5306297", "0.5306297", "0.5306297", "0.5293593"...
0.63216865
1
Load the model using the method appropriate for its type ("keras" or other).
def uyMl(pmON, DMw4): if DMw4 == 'keras': S0MI.info('Loading Keras model') C3ST = uAe1(pmON) S0MI.info('Model loading complete') else: S0MI.info('Loading model with joblib') C3ST = k6eJ.load(pmON) S0MI.info('Model loading complete') return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wX8m(YKHO, mWFP):\n YKHO.model = bdPE.models.load_model(mWFP)", "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl(YKHO, C3ST):\n raise NotImplementedError()", "def uyMl(YKHO, pmON):\n YKHO.model = ZylS.keras.models.load_model(pmON)", "def uyMl(pmON):\n return tMkk(pmON)", "def...
[ "0.7905518", "0.7858664", "0.7858664", "0.7767831", "0.7757298", "0.7713738", "0.76966417", "0.7674346", "0.7662369", "0.7578219", "0.7575095", "0.7570805", "0.7533416", "0.7526605", "0.7512552", "0.74992734", "0.748198", "0.746776", "0.7459762", "0.7447434", "0.7412786", "...
0.8099623
0
Generate a random string of fixed length
def TJC9(FVpJ=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))", "def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]", "def BWvy(a__r):\n return Hy7s.urandom(a__r)", "def MiNk(u54L):\n gLiZ = vIwR.ascii...
[ "0.8746205", "0.87138057", "0.86634374", "0.8589632", "0.85856813", "0.85634226", "0.8558564", "0.85515654", "0.853908", "0.8533391", "0.8508468", "0.85072726", "0.84704083", "0.84667903", "0.84667903", "0.84504145", "0.8449424", "0.8428432", "0.84244287", "0.8423231", "0.841...
0.0
-1
Return a readable string describing the positioner.
def zAg0(YKHO): vSlG = "Positioner object '%s' " % YKHO.name if YKHO.column is not None and YKHO.row is not None: vSlG += '[%d,%d] ' % (YKHO.column, YKHO.row) lIxr = epAf.degrees(YKHO.theta_centre_focal) vSlG += 'located on the focal plane at (r=%.3f, theta=%.3f deg) ' % (YKHO.r_centre_focal, lI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NaFG(YKHO):\n return f'{YKHO.location.x},{YKHO.location.y},{YKHO.direction.get_label()}'", "def wHJl(YKHO):\n return str(YKHO.position)", "def zAg0(YKHO):\n Ebev = ', '.join(['latitude_deg: ' + str(YKHO.latitude_deg), 'longitude_deg: ' + str(YKHO.longitude_deg), 'absolute_altitude_m: ' + str(YKHO....
[ "0.7270957", "0.7254973", "0.71392816", "0.7098998", "0.70509577", "0.7031054", "0.7017059", "0.68849653", "0.68521655", "0.68074197", "0.68074197", "0.68023247", "0.67919683", "0.6765988", "0.6728938", "0.6726894", "0.6715296", "0.6714264", "0.67121863", "0.66947013", "0.667...
0.771615
0
Determine whether this positioner is in conflict with any of its neighbours, given their current targets.
def HGgf(YKHO, Fh0m=True, zUPz=NCOZ, fwUF=True): wypW = False for _Wdu in YKHO.near_neighbours: bo34.debug('Check for conflict between %s and near neighbour %s' % (YKHO.name, _Wdu.name)) if YKHO.in_conflict_with(_Wdu, safety=zUPz, symmetrical=fwUF): wypW = True if v4VH: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yprr(YKHO):\n return YKHO.from_grid == YKHO.to_grid", "def Gz8N(YKHO):\n JbSN = set()\n for mrj1 in YKHO.pieces:\n if (mrj1.x, mrj1.y) in JbSN:\n return True\n else:\n JbSN.add((mrj1.x, mrj1.y))\n return False", "def Yprr(YKHO):\n return YKHO.from_grid == ...
[ "0.66847306", "0.6679559", "0.6673965", "0.66656214", "0.6551968", "0.6373842", "0.6357901", "0.63420427", "0.63295996", "0.63267475", "0.6323205", "0.6228917", "0.6216263", "0.6182906", "0.6180315", "0.617218", "0.6149477", "0.6143581", "0.61093783", "0.6073764", "0.6071012"...
0.6714937
0
Return the positioner in the grid at the given row and column location.
def JMDM(YKHO, rdlD, iVRZ): if rdlD >= 0 and rdlD < YKHO.max_rows and (iVRZ >= 0) and (iVRZ < YKHO.max_columns): vEq1 = YKHO.grid[rdlD][iVRZ] if vEq1 is not None: return YKHO.positioners[vEq1] else: return None else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rpqO(rdlD, fvDH):\n gzmx = 86 + 11\n _q28 = 98 + 8\n zojy = 50\n A2Jf = 50\n return (A2Jf + fvDH * gzmx, zojy + rdlD * _q28)", "def hhcg(YKHO, rdlD, fvDH):\n WKvO = fvDH * YKHO.resolution + 0.5 * YKHO.resolution + YKHO.origin_x\n LVAh = rdlD * YKHO.resolution + 0.5 * YKHO.resolution + YK...
[ "0.72912985", "0.7286215", "0.7280519", "0.7280519", "0.7280519", "0.7280307", "0.72544163", "0.72544163", "0.71835667", "0.7106304", "0.7102195", "0.70765567", "0.7059778", "0.7037348", "0.70019954", "0.69523793", "0.6893212", "0.68698823", "0.68681085", "0.6824491", "0.6817...
0.7682699
0
Initialise the conflict counters
def IZ6P(YKHO): YKHO.counters = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gVUC(YKHO, jDK_):\n YKHO.intersection_counters[jDK_] = []", "def PObR(YKHO):\n YKHO.counter = 0", "def gW6m(YKHO):\n YKHO.counters = ISZL()\n YKHO.counters.title = 'word'", "def mLOp(UzPC):\n (print >> UzPC, mLRD().conflict_errors)", "def jogG(YKHO):\n for WhQ6 in YKHO.allAtoms():\n ...
[ "0.6459486", "0.6393679", "0.62326235", "0.615164", "0.61036", "0.6033182", "0.6001151", "0.5995646", "0.59949845", "0.58399254", "0.5768285", "0.5762296", "0.57325953", "0.5705321", "0.5699446", "0.5676781", "0.5630187", "0.5623248", "0.558666", "0.5585922", "0.558353", "0...
0.6759178
0
Dump instance to JSON string
def PjZe(YKHO): import json return json.dumps(YKHO.__json__())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1Ec(YKHO) -> str:\n YEnM = YKHO.as_dict()\n return qQXR.dumps(YEnM)", "def PjZe(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)", "def PjZe(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def oD7C(YKHO):\n return qQXR.dumps(YKHO, default=n5rA.serialize_instance, sort_keys=True, indent=4)", ...
[ "0.8648521", "0.81037396", "0.80637956", "0.7840573", "0.78229624", "0.7745729", "0.7745729", "0.7745729", "0.77296424", "0.77144223", "0.76892996", "0.76832795", "0.76723963", "0.7668456", "0.7668456", "0.7668456", "0.7668456", "0.7668456", "0.7668456", "0.76655483", "0.7665...
0.0
-1
Convinience wrapper for cv2.imread() that can return result in RGB order
def KjgY(*qIxc, qkPu='RGB'): qkPu = qkPu.lower() assert qkPu == 'rgb' or qkPu == 'bgr', "'output_channel_order' has to be either 'RGB' or 'BGR' (case-insensitive)" Xn71 = XC5k.imread(*qIxc) assert Xn71 is not None, '%s not existent' % qIxc[0] if Xn71.ndim == 3 and qkPu == 'rgb': if Xn71.shap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q5aE(Ux0P):\n return XC5k.imread(Ux0P, 0)", "def yIp6(VXjJ):\n return XC5k.cvtColor(oyIN.flip(VXjJ, 1), XC5k.COLOR_BGR2RGB)", "def tsdv(Ux0P):\n j3Lh = XC5k.imread(Ux0P)\n d7Eb = j3Lh[:, :, ::-1]\n return d7Eb", "def Wpj5(pmON: str):\n VXjJ = XC5k.imread(pmON, XC5k.IMREAD_UNCHANGED)\n ...
[ "0.71845275", "0.7130289", "0.7021559", "0.69628644", "0.69564945", "0.69286597", "0.68477255", "0.68148535", "0.67693084", "0.6762246", "0.6738945", "0.6731769", "0.6718299", "0.6706006", "0.6706006", "0.6689142", "0.66547376", "0.6650046", "0.66489047", "0.6646987", "0.6638...
0.7153065
1
Generate all spans, sorted bottomup. Returns a list all spans [i,j) where 0 <= i < j <= n, sorted by the length of the span (j i).
def LojT(exwG): SNvq = lambda twK4: twK4[1] - twK4[0] return sorted([(YRbF, r845) for YRbF in range(exwG) for r845 in range(YRbF + 1, exwG + 1)], key=SNvq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def COpk(LcBo: TaggedSequence, exwG: int) -> jd6F[AzJI[AzJI[int, int], mrgj], None, None]:\n yKcO = 0\n Os4s = exwG\n while Os4s <= len(LcBo):\n if all([s5Wk.tag == jr1U for s5Wk in LcBo[yKcO:Os4s]]):\n yield ((yKcO, Os4s), LcBo[yKcO:Os4s])\n yKcO += 1\n Os4s += 1", "def ...
[ "0.63681084", "0.6088616", "0.60715586", "0.6017826", "0.5722686", "0.5715106", "0.5678877", "0.56493044", "0.56333447", "0.5608111", "0.55950487", "0.55567044", "0.5555632", "0.5542409", "0.55046237", "0.5503608", "0.54899466", "0.54897", "0.546235", "0.54311043", "0.5423809...
0.745586
0
Deleting of dr_rules table (inbound routes only)\n Partially Supports rule definitions for Kamailio Drouting module\n
def Rikg(): try: if not cuiw.get('logged_in'): return vKnz(nKyW('index')) if gCuF.DEBUG: rAXI() L03z = TZ5O(QePW.form.to_dict()) kFBW = L03z['ruleid'] Csk6 = NCls.query(U_a0).filter(U_a0.ruleid == kFBW) Csk6.delete(synchronize_session=False) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RoLj(Fv2L, VQ8W):\n RHOI(VQ8W)\n PJDR = zpzu(Fv2L)\n ktg_ = qQXR.dumps(guJG(VQ8W))\n Mkmy = G4JS.post(PJDR, auth=Fv2L['auth'], data=ktg_)\n if not Mkmy.status_code in range(200, 300):\n lYY4 = \"HTTP Response Code: %s, Text: '%s'\" % (str(Mkmy.status_code), Mkmy.text)\n raise p4Ai(...
[ "0.7041329", "0.6963139", "0.6842142", "0.67742527", "0.6730659", "0.67003465", "0.6673654", "0.6660925", "0.6640847", "0.66203237", "0.6618592", "0.6608341", "0.6517757", "0.6507787", "0.64165735", "0.6366381", "0.6360001", "0.6347346", "0.6311217", "0.62554765", "0.62482077...
0.5676307
55
Deleting of dr_rules table (outbound routes only)\n Supports rule definitions for Kamailio Drouting module\n
def L9gg(): try: if not cuiw.get('logged_in'): return vKnz(nKyW('index')) if gCuF.DEBUG: rAXI() L03z = TZ5O(QePW.form.to_dict()) kFBW = L03z['ruleid'] ziL0 = NCls.query(kJ0l).filter(kJ0l.ruleid == kFBW).first() AjzU = NCls.query(dmwH).filter(dm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RoLj(Fv2L, VQ8W):\n RHOI(VQ8W)\n PJDR = zpzu(Fv2L)\n ktg_ = qQXR.dumps(guJG(VQ8W))\n Mkmy = G4JS.post(PJDR, auth=Fv2L['auth'], data=ktg_)\n if not Mkmy.status_code in range(200, 300):\n lYY4 = \"HTTP Response Code: %s, Text: '%s'\" % (str(Mkmy.status_code), Mkmy.text)\n raise p4Ai(...
[ "0.7098492", "0.6981313", "0.6844463", "0.6818512", "0.6788148", "0.6731877", "0.6724674", "0.6716601", "0.668792", "0.6687149", "0.66241145", "0.6535322", "0.64685786", "0.6457173", "0.6442728", "0.63741004", "0.63419545", "0.6290291", "0.6247515", "0.62451506", "0.6238976",...
0.61709225
24
Handle configuration of web server loggers
def YvEM(q9Fz): for DCgT in jth9(G9jH.getLogger('werkzeug').handlers): G9jH.getLogger('werkzeug').removeHandler(DCgT) DCgT.close() for DCgT in jth9(G9jH.getLogger('sqlalchemy').handlers): G9jH.getLogger('sqlalchemy').removeHandler(DCgT) DCgT.close() G9jH.getLogger('werkzeug')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fQIj(YKHO):\n pass", "def fQIj(YKHO):\n pass", "def ePvI():\n return {'version': 1, 'disable_existing_loggers': False, 'filters': {}, 'formatters': {'standard': {'format': '%(asctime)s\\t%(levelname)s\\t%(name)s\\t%(message)s'}, 'verbose': {'format': '%(asctime)s\\t%(levelname)s\\t%(name)s\\t%(pat...
[ "0.706022", "0.706022", "0.67811584", "0.67439103", "0.67411983", "0.66980994", "0.6651017", "0.6633969", "0.6619436", "0.65897316", "0.65782636", "0.6546964", "0.65264475", "0.65072566", "0.6501332", "0.64997166", "0.6498204", "0.64635986", "0.64598036", "0.645304", "0.64291...
0.6004924
74
Test the _handle_search method of the oef_search handler where the number of agents found is 0.
def E5mh(YKHO): c39l = ('agent_1', 'agent_2') P5_8 = YKHO.prepare_skill_dialogue(dialogues=YKHO.oef_search_dialogues, messages=YKHO.list_of_messages[:1]) lm8u = YKHO.build_incoming_message_for_skill_dialogue(dialogue=P5_8, performative=J41X.Performative.SEARCH_RESULT, agents=c39l, agents_info=J41X.AgentsInf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E5mh(YKHO):\n ozso = 'alice'\n c39l = (ozso, 'bob')\n P5_8 = YWvJ(D83E, YKHO.prepare_skill_dialogue(dialogues=YKHO.oef_search_dialogues, messages=YKHO.list_of_oef_search_messages[:1]))\n lm8u = YWvJ(J41X, YKHO.build_incoming_message_for_skill_dialogue(dialogue=P5_8, performative=J41X.Performative.S...
[ "0.74288946", "0.7345116", "0.7322146", "0.6471655", "0.63233924", "0.61079043", "0.5996115", "0.5971272", "0.5971272", "0.5971272", "0.5971272", "0.59370357", "0.5936358", "0.58698094", "0.5858691", "0.58474964", "0.581572", "0.57794803", "0.5758331", "0.575091", "0.57417166...
0.74362695
0
Test the _handle_search method of the oef_search handler where the number of agents found is 0.
def RlBu(YKHO): c39l = tuple() P5_8 = YKHO.prepare_skill_dialogue(dialogues=YKHO.oef_search_dialogues, messages=YKHO.list_of_messages[:1]) lm8u = YKHO.build_incoming_message_for_skill_dialogue(dialogue=P5_8, performative=J41X.Performative.SEARCH_RESULT, agents=c39l, agents_info=J41X.AgentsInfo({'agent_1': {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E5mh(YKHO):\n c39l = ('agent_1', 'agent_2')\n P5_8 = YKHO.prepare_skill_dialogue(dialogues=YKHO.oef_search_dialogues, messages=YKHO.list_of_messages[:1])\n lm8u = YKHO.build_incoming_message_for_skill_dialogue(dialogue=P5_8, performative=J41X.Performative.SEARCH_RESULT, agents=c39l, agents_info=J41X.A...
[ "0.74306333", "0.7423863", "0.7316479", "0.6478108", "0.6320005", "0.6109449", "0.59923637", "0.5974285", "0.5974285", "0.5974285", "0.5974285", "0.59430367", "0.5935342", "0.58714455", "0.5859445", "0.5849098", "0.5816677", "0.57792634", "0.57647425", "0.5758904", "0.5743423...
0.7339879
2
A string expression of the coordinate as deg min sec with hemisphere applied (if one exists)
def _qax(YKHO): if YKHO.get_hemisphere(): yvT9 = u'{0} {1} {2:.5f}{hemisphere}'.format(YKHO.degree, YKHO.minute, YKHO.second, hemisphere=YKHO.get_hemisphere()) else: yvT9 = YKHO._signed_unicode(u'{0} {1} {2:.5f}{hemisphere}', YKHO.degree, YKHO.minute, YKHO.second, hemisphere=YKHO.get_hemisphere(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uv2c(YKHO):\n return ''", "def BFM9(YKHO, PFAa):\n return ''", "def KJQp(Zihr, QqMc):\n if QqMc == aL26:\n if Zihr == -1:\n return 'W'\n elif Zihr == 1:\n return 'E'\n elif QqMc == hrWF:\n if Zihr == -1:\n return 'S'\n elif Zihr == 1:...
[ "0.6875637", "0.65586007", "0.6543189", "0.64124936", "0.57947767", "0.5792653", "0.5783454", "0.57246214", "0.5676675", "0.55649287", "0.5545911", "0.54750574", "0.54436463", "0.54403", "0.54276335", "0.54276335", "0.54175127", "0.54068065", "0.5405758", "0.5394164", "0.5392...
0.6653159
1
Convert an (R,G,B) tuple with floating point values to RRGGBB. If no rgb_tuple supplied, generate a random color.
def jiqi(YKHO, KFm3): if KFm3: CM9Z = (int(KFm3[0] * 255), int(KFm3[1] * 255), int(KFm3[2] * 255)) else: CM9Z = (tuKI.randrange(255), tuKI.randrange(255), tuKI.randrange(255)) jbQV = '#%02x%02x%02x' % CM9Z return jbQV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VHgz(qfpW: tuple) -> tuple:\n return (qfpW[0], qfpW[1], qfpW[2])", "def zLrJ(qfpW: tuple) -> tuple:\n return (qfpW[2], qfpW[1], qfpW[0])", "def BKj4() -> tuple[int, int, int]:\n return ';'.join((YJ7W() for bGrB in range(3)))", "def _VxI(d7Eb):\n if d7Eb[0] == '#':\n d7Eb = d7Eb[1:]\n ...
[ "0.69901145", "0.69532293", "0.6938874", "0.6883661", "0.6838166", "0.68053395", "0.6453889", "0.644883", "0.64475006", "0.6412581", "0.63844013", "0.63550603", "0.6352125", "0.632999", "0.6285356", "0.6256896", "0.62046534", "0.6164576", "0.61606926", "0.61606926", "0.616020...
0.6404478
10
Calculates slope of exp. regression normalized by rsquared
def H0zq(TDme): CuxP = oyIN.log(TDme) _0VL = oyIN.arange(len(CuxP)) VMex, bGrB, Mkmy, bGrB, bGrB = nZ2P(_0VL, CuxP) return (oyIN.exp(VMex) ** 252 - 1) * 100 * Mkmy ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t2U8(WKvO, LVAh):\n VMex, BlB8, t1VD, qpV3, LAz3 = Zxt2.stats.linregress(WKvO, LVAh)\n return (VMex, t1VD ** 2)", "def t2U8(WKvO, LVAh):\n VMex, BlB8, t1VD, qpV3, LAz3 = eQSh.linregress(WKvO, LVAh)\n return t1VD ** 2", "def VMex(uuHL):\n WKvO = oyIN.arange(len(uuHL))\n VMex, BlB8, t1VD, q...
[ "0.75155556", "0.74334747", "0.70840037", "0.6906839", "0.6841578", "0.6819871", "0.67466414", "0.66616166", "0.6656836", "0.66307986", "0.66182905", "0.6591637", "0.6522746", "0.6477596", "0.6409468", "0.63882625", "0.63816", "0.63741636", "0.6371281", "0.63596237", "0.63452...
0.0
-1
Returns an array storing the PSD of a WDM comb of raised cosine shaped channels at the input frequencies defined in array f
def VhZg(eHNT, *G0oh): AwYh = VNqG(ROpF(eHNT)) for pmjN in G0oh: GwCm = pmjN.frequency reDn = pmjN.power.signal / pmjN.baud_rate i8WE = 1 / pmjN.baud_rate Ka6p = (1 - pmjN.roll_off) / (2 / pmjN.baud_rate) qDWv = (1 + pmjN.roll_off) / (2 / pmjN.baud_rate) i_Or = ab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GN36(OOX3):\n ywwl = len(OOX3)\n Ni44 = oyIN.zeros(ywwl, dtype=oyIN.complex128)\n for G1Hx in range(ywwl):\n for exwG in range(ywwl):\n Ni44[G1Hx] += OOX3[exwG] * oyIN.exp(-2.0 * epAf.pi * 1j * exwG * G1Hx / ywwl)\n return Ni44", "def GN36(qoGx):\n Jw88 = len(qoGx)\n wOIx ...
[ "0.658292", "0.6483551", "0.640855", "0.6273153", "0.62566733", "0.61500835", "0.6132981", "0.6130746", "0.6114861", "0.61096466", "0.6100971", "0.60956603", "0.608212", "0.6080412", "0.60679775", "0.60679775", "0.6044197", "0.6040014", "0.60337937", "0.6029829", "0.5993953",...
0.5806333
42
Create an ElementTree element. The element tag name will be this qualified name's `QualifiedName.text` value.
def U6D_(YKHO, *afYC, **tqKV): return cFlk(YKHO.text, *afYC, **tqKV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DLhg(TZ9E, OuW8, BG2_, tqKV={}, **dDGN):\n LihS = LL_W.Element(TZ9E, tqKV, **dDGN)\n LL_W._namespace_map[BG2_] = OuW8\n return LihS", "def DLhg(TZ9E, OuW8, BG2_, tqKV={}, **dDGN):\n LihS = LL_W.Element(TZ9E, {OuW8: BG2_}, tqKV, **dDGN)\n return LihS", "def KN5H(tk5Y, mWFP, l5Ny=None):\n U...
[ "0.69508415", "0.6845715", "0.67449737", "0.663383", "0.6505181", "0.6388733", "0.6337878", "0.62418425", "0.6210535", "0.6209401", "0.61116636", "0.60973054", "0.60968536", "0.608727", "0.6086303", "0.60692805", "0.5960551", "0.59399843", "0.5923656", "0.58959574", "0.585910...
0.5699447
26
Create an ElementTree element.
def U6D_(YKHO, TZ9E, *afYC, **tqKV): if isinstance(TZ9E, QGpr.QName): TZ9E = TZ9E.text LihS = YKHO._makeelement(TZ9E) if tqKV: YKHO._set_attributes(LihS, tqKV) for aUGN in afYC: YKHO._handle_child(LihS, aUGN) return LihS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TaGd(YKHO, mWFP, _AKB=None, BWXx=None):\n U6D_ = YKHO.xml.createElement(str(mWFP))\n if _AKB:\n _AKB.appendChild(U6D_)\n if BWXx:\n eWhw = YKHO.xml.createTextNode(str(BWXx))\n U6D_.appendChild(eWhw)\n return U6D_", "def DLhg(TZ9E, OuW8, BG2_, tqKV={}, **dDGN):\n LihS = LL_...
[ "0.76286507", "0.7360201", "0.7330094", "0.7312134", "0.70937806", "0.69827604", "0.68799084", "0.67391527", "0.6585944", "0.6574943", "0.6485145", "0.6445199", "0.64300877", "0.6376015", "0.6363957", "0.6309087", "0.6303679", "0.6302103", "0.62777895", "0.6263203", "0.624925...
0.0
-1
Get the text of all matching `ElementTree` elements and optionally transform them. If `default` and `parse` are not `None`, `parse` will be called with `default`.
def o7dx(LihS, pmON, WmM4=None, hfK9=None): kXUa = Yv94(LihS, pmON) for tTpl in kXUa: if tTpl is None or tTpl.text is None: Aofo = WmM4 else: Aofo = QMSQ(tTpl.text).strip() if Aofo is not None and hfK9 is not None: Aofo = hfK9(Aofo) yield Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EsmR(YKHO, U6D_, PKko):\n if YKHO._defaultProcess:\n return YKHO._defaultProcess(U6D_, PKko, YKHO)\n else:\n return ''.join([YKHO.processElement(tTpl) for tTpl in U6D_.childNodes])", "def kp9c(YKHO, TZ9E, WmM4=''):\n geyT = YKHO.iterfind(TZ9E)\n if geyT is not None:\n if not ...
[ "0.61837256", "0.5770467", "0.5740666", "0.5727772", "0.559425", "0.547652", "0.5433611", "0.53684235", "0.5348222", "0.5319198", "0.531378", "0.5272562", "0.52421105", "0.51797205", "0.51797205", "0.5143125", "0.50689614", "0.5064094", "0.5037197", "0.50229096", "0.5011705",...
0.7076846
0
returns the User instance based on his email and password
def FB4A(YKHO, cHyp: str, HHox: str) -> tnwy('User'): if isinstance(cHyp, str) and isinstance(HHox, str): mv1M.load_from_file() MDkB = mv1M.search({'email': cHyp}) if MDkB: for CBIr in MDkB: if CBIr.is_valid_password(pwd=HHox): return CBIr ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(YKHO):\n try:\n CBIr = mv1M.objects.get(email=YKHO.email)\n except mv1M.DoesNotExist:\n try:\n CBIr = mv1M.objects.get(username=YKHO.username)\n except mv1M.DoesNotExist:\n CBIr = None\n return CBIr", "def TKWP(D3lj: str, jTXt: str) -> mv1M:\n gFsc ...
[ "0.8104375", "0.80723447", "0.8067682", "0.80511737", "0.78995", "0.78885233", "0.7880776", "0.7876838", "0.78625447", "0.78127086", "0.78127086", "0.78127086", "0.7789066", "0.7775078", "0.77685314", "0.7716276", "0.7695023", "0.76914084", "0.76496476", "0.76474327", "0.7631...
0.74844944
38
Test if API cannot create a shoppinglist with invalid token
def GSK3(YKHO): Ylbp = YKHO.client.post('/api/v1/shoppinglists', headers=dict(Authorization='fdfgdgfg'), data=YKHO.shoppinglist) YKHO.assertEqual(Ylbp.status_code, 401)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GSK3(YKHO):\n eOtH = YKHO.token + 'erhjddshehsjdjsdj'\n geh0 = YKHO.client().post('/bucketlist_api/v1.0/bucketlists/', data={'name': 'Go to mars'}, headers={'Authorization': eOtH})\n YKHO.assertEqual(geh0.status_code, 401)\n YKHO.assertIn('Please send a valid authentication token', str(geh0.data), ...
[ "0.74632514", "0.73900414", "0.7295209", "0.72267854", "0.7154078", "0.7083143", "0.707751", "0.70766217", "0.70748895", "0.70604485", "0.70560944", "0.7051379", "0.7036515", "0.70309913", "0.7020543", "0.7001403", "0.69991034", "0.6990442", "0.69572216", "0.69517213", "0.690...
0.82653713
0
Test if API can delete a shoppinglist
def d06S(YKHO): YKHO.get_access_token() CJuX = YKHO.client.post('/api/v1/shoppinglists', headers=dict(Authorization=YKHO.access_token), data=YKHO.shoppinglist) dixj = qQXR.loads(CJuX.data.decode()) C8lO = dixj['shoppinglist'] YKHO.client.delete('/api/v1/shoppinglist/{}'.format(C8lO['uuid']), headers...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VDEW(YKHO):\n YKHO.get_access_token()\n Ylbp = YKHO.client.delete('/api/v1/shoppinglist/1', headers=dict(Authorization=YKHO.access_token))\n YKHO.assertEqual(Ylbp.status_code, 404)", "def fG3K(YKHO):\n YKHO.shoppings.Shoppinglists = {}\n YKHO.shoppings.create('muthomi', 'muthomi@gmail.com')\n ...
[ "0.767274", "0.7548799", "0.74238765", "0.73848516", "0.7124926", "0.7001214", "0.6976839", "0.6971711", "0.6927097", "0.6910798", "0.68686813", "0.68592113", "0.6853254", "0.68509936", "0.67163754", "0.66862935", "0.6663852", "0.6651482", "0.6618327", "0.65927595", "0.658215...
0.76495165
1
Verifies that when generating an interleaved circuit, it will be identical to the original circuit up to additions of barrier and interleaved element between any two cliffords
def mM08(YKHO, HkU5: 'Gate', Hswb: list, u54L: int): kLQb = ITaO(qubits=Hswb, interleaved_element=HkU5, lengths=[u54L], num_samples=1) SFUt = kLQb.circuits() UmpE = SFUt[0] aTac = SFUt[1] if UmpE.metadata['interleaved']: UmpE, aTac = (aTac, UmpE) WWQr = UmpE.metadata['xval'] x6iS = 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tecG(YKHO):\n _ftn = vR29(2)\n O0Zx = vR29(2)\n fxEW = NCgL(3)\n H1dw = NCgL(1)\n PnGs = Rv0t(_ftn, O0Zx, fxEW, H1dw)\n PnGs.h(_ftn[0])\n PnGs.cx(_ftn[0], O0Zx[1])\n PnGs.h(O0Zx[0])\n PnGs.cx(O0Zx[0], _ftn[1])\n PnGs.x(_ftn[1])\n PnGs.measure(_ftn[0], H1dw[0])\n PnGs.measure...
[ "0.64997476", "0.63381404", "0.6311101", "0.6268009", "0.62625766", "0.6202658", "0.6149051", "0.61415577", "0.6138523", "0.6122451", "0.6082272", "0.60656285", "0.6057557", "0.60564625", "0.6052798", "0.60080415", "0.59815514", "0.5978347", "0.59733677", "0.5971093", "0.5932...
0.599484
16
Computes a gradient clipping coefficient based on gradient norm.
def MaHD(C3ST, AxoL): wxBC = 0 for XP5J in C3ST.parameters(): if XP5J.requires_grad and XP5J.grad is not None: gMJ6 = XP5J.grad.data.norm() wxBC += gMJ6 ** 2 wxBC = oyIN.sqrt(wxBC) CkYf = AxoL / max(wxBC, AxoL) for XP5J in C3ST.parameters(): if XP5J.requires_g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MaHD(C3ST, vJPk):\n wxBC = 0\n for XP5J in C3ST.parameters():\n gMJ6 = XP5J.grad.data.norm()\n wxBC += gMJ6 ** 2\n wxBC = epAf.sqrt(wxBC)\n return min(1, qIxc.clip / (wxBC + 1e-06))", "def MaHD(C3ST, AxoL):\n wxBC = 0\n for XP5J in C3ST.parameters():\n if XP5J.requires_...
[ "0.7778216", "0.7715578", "0.7637505", "0.72674763", "0.72143614", "0.67744315", "0.6731572", "0.66831964", "0.659277", "0.65663874", "0.65530854", "0.6529874", "0.6529874", "0.6529874", "0.6529874", "0.6529874", "0.6529874", "0.6529874", "0.6503968", "0.64580214", "0.6447606...
0.77879953
0
Sets the learning rate to the initial LR decayed by 0.5 every 20 epochs
def e_63(K0do, WMj5=0.1): for Lwm5 in K0do.param_groups: Lwm5['lr'] = WMj5 * Lwm5['lr']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(K0do, qtWj, DJmW=0.1, YPaw=30, WMj5=0.1):\n tspZ = DJmW * WMj5 ** (qtWj // YPaw)\n print('Learn...
[ "0.78923166", "0.78184336", "0.7812755", "0.779627", "0.77869684", "0.77834445", "0.77813137", "0.77718914", "0.7760721", "0.7760655", "0.7751042", "0.7740834", "0.77375", "0.7734531", "0.77182186", "0.7711905", "0.7707912", "0.7683834", "0.7680296", "0.7674225", "0.7671955",...
0.0
-1
This function obtain the prediction boxes based on the predicted deltas and proposals.
def SAM8(a1kB, eDGE, hUXG): if isinstance(a1kB, iQnE): if a1kB.data.is_cuda: fSHg = iQnE(a1kB.data.new(_Fei.TRAIN.BBOX_NORMALIZE_STDS).cuda()) aVpt = iQnE(a1kB.data.new(_Fei.TRAIN.BBOX_NORMALIZE_MEANS).cuda()) else: fSHg = iQnE(a1kB.data.new(_Fei.TRAIN.BBOX_NORMAL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xnQT(oUSw, yglJ):\n if oUSw.shape[0] == 0:\n return oyIN.zeros((0, yglJ.shape[1]))\n oUSw = oUSw.astype(oyIN.float, copy=False)\n _SEp = oUSw[:, 2] - oUSw[:, 0] + 1.0\n tsWE = oUSw[:, 3] - oUSw[:, 1] + 1.0\n hpig = oUSw[:, 0] + 0.5 * (_SEp - 1.0)\n HXha = oUSw[:, 1] + 0.5 * (tsWE - 1.0...
[ "0.7175034", "0.7118488", "0.7091256", "0.7083865", "0.7065913", "0.70335406", "0.6946465", "0.68380344", "0.67868066", "0.6783404", "0.6751288", "0.6747359", "0.6718073", "0.66667306", "0.65785944", "0.6564837", "0.64999497", "0.6392867", "0.63909596", "0.6350256", "0.629411...
0.6663113
14
Show an index page.
def t7ng(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EJFY():\n return oUsX(fOLk)", "def WqOD(YKHO, *qIxc):\n YKHO.print_head()\n YKHO.write_footer()", "def d6pt():\n return TvZl('index.html')", "def WqOD():\n return WsL5.render_template('index.html', **QpfX)", "def d6pt():\n return TvZl('index.html', short_url='')", "def d6pt():\n ...
[ "0.8860054", "0.7955538", "0.79429555", "0.7921236", "0.78184676", "0.7810441", "0.77827615", "0.77827615", "0.7755276", "0.77354825", "0.7716974", "0.77037185", "0.76709986", "0.76709986", "0.76709986", "0.76709986", "0.76709986", "0.76709986", "0.766807", "0.766807", "0.766...
0.76423943
25
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(p8Jz, YKHO).__init__(*qIxc, **c_sp) if YKHO.left is None: YKHO.left = False if YKHO.right is None: YKHO.right = False if YKHO.start is None: YKHO.start = False if YKHO.s2L is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.81645405", "0.77183473", "0.77183473", "0.7650878", "0.7572794", "0.7542492", "0.7485125", "0.7469581", "0.74573225", "0.744426", "0.7444072", "0.74321896", "0.7415316", "0.74081516", "0.73915523", "0.73746157", "0.7361855", "0.7324079", "0.73234046", "0.73234046", "0.7323...
0.0
-1
Fetches query results in a paginated manner using a generator.
def biYu(YKHO, npwY: QueryJob) -> jd6F[ImMB, ImMB, ImMB]: fk6_ = npwY.result(page_size=V75K, max_results=qNbj) while (usx6 := next(fk6_.pages, None)): yield usx6.to_dataframe()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JjFj(YKHO, xDcj, NKcE='get', NArs={}):\n exwG = 0\n while True:\n NArs.update({'limit': YKHO.pagesize, 'offset': exwG})\n Mkmy = YKHO.request(f'{YKHO.base}/{xDcj}', NKcE, NArs)\n Mkmy.raise_for_status()\n Mkmy = Mkmy.json()\n if not isinstance(Mkmy, list):\n ...
[ "0.7792375", "0.75293535", "0.74573445", "0.7419301", "0.7367658", "0.7272043", "0.7167941", "0.7028474", "0.7019103", "0.7012571", "0.69522446", "0.684862", "0.6848064", "0.6840357", "0.68387663", "0.6818348", "0.68094134", "0.6779296", "0.6778227", "0.6754151", "0.6743486",...
0.6407833
52