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
Given two dicts, merge them into a new dict as a shallow copy.
def yQxF(WKvO, LVAh): epBp = WKvO.copy() epBp.update(LVAh) return epBp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hOKH(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def roQF(m2Vb, g6HL):\n jMyi = m2Vb.copy()\n jMyi.update(g6HL)\n return jMyi", "def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(WKvO, LVAh):\n epBp = WKvO.cop...
[ "0.85017794", "0.844714", "0.844019", "0.8431087", "0.8428637", "0.83497995", "0.83497995", "0.83497995", "0.82089055", "0.81897765", "0.81889284", "0.81889284", "0.80835843", "0.79899365", "0.7989572", "0.77450234", "0.7715417", "0.76676947", "0.76344365", "0.7631627", "0.76...
0.83831346
10
Create an instance of the argument parser to parse commandline arguments.
def qSYu() -> j1Jz.ArgumentParser: wvEv = j1Jz.ArgumentParser(prog='pyrasaeco-render', description=__doc__) nIh5 = wvEv.add_subparsers(help='Commands', dest='command') nIh5.required = True ljnF = nIh5.add_parser('once', help='Render once the scenarios and the scenario ontology') hA44 = nIh5.add_pars...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lHBs() -> j1Jz.ArgumentParser:\n wvEv = j1Jz.ArgumentParser(description=JBZA(), epilog=QY6I(), formatter_class=j1Jz.RawDescriptionHelpFormatter)\n return wvEv", "def lHBs() -> j1Jz.ArgumentParser:\n wvEv = j1Jz.ArgumentParser(description=JBZA(), epilog=QY6I(), formatter_class=j1Jz.RawDescriptionHelp...
[ "0.79516953", "0.79516953", "0.7793543", "0.77724344", "0.76279485", "0.762619", "0.7541328", "0.75262517", "0.74987364", "0.74830705", "0.7477329", "0.74327964", "0.7391257", "0.7389797", "0.7389039", "0.7387323", "0.73850703", "0.73850703", "0.73850703", "0.73828155", "0.73...
0.0
-1
Checks if the password is valid for the user. Returns True if the correct user and password are specfied. Returns False if the incorrect password was specified. Returns None if the user doesn't exist in this password store.
def EvfH(YKHO, CBIr, jTXt): NCls = YKHO.env.get_db_cnx() N1p7 = NCls.cursor() if not YKHO.check_prereqs(): return None xDcj = YKHO.create_query(YKHO.sql_all_users_query + " WHERE %(username_field)s='%(username)s'", {'password_field': YKHO.sql_password_field, 'username_field': YKHO.sql_username_f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bqkU(YKHO, CBIr, jTXt):\n deVW, T9m5 = YKHO.pwd_context.verify_and_update(str(jTXt), CBIr['users_auth'])\n if not deVW:\n bo34.error('Invalid password for %(users_name)s', CBIr)\n raise iKio('Invalid password for %(users_name)s' % CBIr)\n if T9m5:\n bo34.warning(\"User %(users_nam...
[ "0.7352755", "0.7308574", "0.72344023", "0.71757793", "0.71466535", "0.7125477", "0.7092447", "0.7087123", "0.70738995", "0.70558167", "0.7029138", "0.7023926", "0.7010453", "0.69839305", "0.6966104", "0.6948761", "0.6933265", "0.69229424", "0.6921262", "0.68990165", "0.68989...
0.6929865
17
Return the absolute path of a directory containing additional static resources (such as images, style sheets, etc).
def pBYU(YKHO): return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _e8X():\n return Hy7s.path.abspath(Hy7s.path.dirname(xAKo)) + '/_static'", "def wBSp():\n return Hy7s.path.join(XSj5, 'static')", "def xWMM():\n return Hy7s.path.join(bMpe, 'static')", "def qU5e(Emd4) -> str:\n return Hy7s.path.join(Hy7s.path.realpath(Hy7s.path.dirname(xAKo)), Hy7s.pardir, Hy...
[ "0.7699183", "0.7484297", "0.71711624", "0.7002741", "0.6919561", "0.68631667", "0.6814634", "0.6772552", "0.66359985", "0.6633253", "0.6631425", "0.6540469", "0.65200806", "0.6490266", "0.6407987", "0.6387298", "0.6354448", "0.63465554", "0.63328606", "0.6332715", "0.6321645...
0.0
-1
Return the absolute path of the directory containing the provided ClearSilver templates.
def kTZQ(YKHO): from pkg_resources import resource_filename return [resource_filename(__name__, 'templates')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VQOr():\n return Hy7s.path.join(EcEz.getProjectRootDir(), h4QA)", "def vi15(YKHO):\n ckRy = [pmON for pmON, hGN5 in YKHO._templates]\n if len(ckRy) == 1:\n return Hy7s.path.dirname(ckRy[0])\n return nV7c(ckRy)", "def bMoe(YKHO):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'defaul...
[ "0.6999529", "0.688431", "0.68323845", "0.6820741", "0.662565", "0.6617785", "0.66054684", "0.65744185", "0.63397247", "0.6332294", "0.63302666", "0.6284764", "0.6281997", "0.6201685", "0.60613346", "0.60517365", "0.6047509", "0.6045947", "0.60384876", "0.6030832", "0.5977111...
0.5836341
33
Returns True if groupname exists.
def Mkql(YKHO, MjBJ): if not YKHO.check_prereqs(): return False NCls = YKHO.env.get_db_cnx() N1p7 = NCls.cursor() xDcj = YKHO.create_query(YKHO.sql_get_groups_query + " WHERE $groupname_field$='$groupname$'", {'groupname': MjBJ, 'groupname_field': YKHO.sql_groupname_field}) YKHO.log.debug('s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cTKt(YKHO):\n return V0S5().group_exists(ZWCE.group_name(YKHO))", "def Kagf(YKHO, IXKo):\n return IXKo in YKHO._group", "def cTKt(YKHO, ykO7, MjBJ):\n YKHO.open_db()\n try:\n uOe2 = YKHO.h5file.get_node(ykO7, name=MjBJ)\n except V2zj.NoSuchNodeError:\n uOe2 = False\n return ...
[ "0.82153803", "0.80166024", "0.7890802", "0.78811616", "0.7502196", "0.73832816", "0.73511165", "0.72888064", "0.724438", "0.72358394", "0.722957", "0.7107118", "0.70923513", "0.70068115", "0.6947857", "0.6881629", "0.68646014", "0.6832601", "0.68314654", "0.6675531", "0.6635...
0.799018
2
Ensure some basic normalization on fqdn values
def mclc(lLIo): if not lLIo: return None if lLIo.endswith('/'): lLIo = lLIo.strip('/') if not lLIo.startswith('http'): lLIo = 'http://%s' % lLIo return lLIo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWKa(YKHO, mWFP):\n if mWFP[-1:] != '.':\n return '%s.' % mWFP\n else:\n return mWFP", "def PrW6(WKvO: Text) -> AzJI[I2jr, I2jr]:\n return ('fqdn', WKvO.lower())", "def WZlT(YKHO):\n YKHO.mock_getaddrinfo.return_value = ([0, 1, 2, 3, ['take_me', 'not_me']],)\n YKHO.mock_gethost...
[ "0.70267797", "0.677371", "0.677342", "0.66205776", "0.6529146", "0.6458251", "0.6415377", "0.64141905", "0.63974714", "0.6053728", "0.60362595", "0.6026839", "0.5912228", "0.5901264", "0.5893297", "0.5874915", "0.586321", "0.58477634", "0.5844477", "0.58164537", "0.5760108",...
0.751114
0
generate a random string
def BWvy(): G1Hx = tuKI.randint(5, 10) return ''.join(tuKI.choices(vIwR.ascii_letters + vIwR.digits, k=G1Hx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KpEQ():\n return ''.join(QMfv(rU7A(32)).decode('utf-8'))", "def e7Tf():\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(16)))", "def tEgU():\n return kxTZ().hex[:6].upper()", "def Q_QB():\n yvT9 = ''\n for bGrB in range(24):\n yvT9 += Acvy(C1SZ)\n...
[ "0.850504", "0.84503955", "0.8107285", "0.8030303", "0.79917127", "0.7966936", "0.7955794", "0.783599", "0.7833559", "0.7833183", "0.7817233", "0.7802888", "0.7779429", "0.7768785", "0.7746513", "0.77311516", "0.7703917", "0.77027106", "0.7688608", "0.7673507", "0.7664003", ...
0.76068896
26
Check if two models are the same. To check equivalence, we first verify the modules are the same in each model by checking the list of attributes for each module. This checks if the same set of modules are used and if any module has been marked by adding an attribute. Next, we directly iterate over the state dict and v...
def df9e(gxeW: torch.nn.Module, ob0C: torch.nn.Module, IzcV: bool=True): with QZXY.nullcontext() if IzcV else trZe.raises(Exception): if isinstance(gxeW, hS_z) and isinstance(ob0C, hS_z): RjKm = list(gxeW.module.modules()) RJpE = list(ob0C.module.modules()) assert len(RjK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDLW(YHJ7: nn.Module, exSq: nn.Module, oCYP: bool, PJWX: bool=False) -> bool:\n F4nI = YHJ7.state_dict()\n S4M2 = exSq.state_dict()\n if F4nI.keys() != S4M2.keys():\n raise ValueError('Parameter length mismatch. Ensure the modules share the same architecture.')\n TX60 = []\n for _N6A, Q0D...
[ "0.6601647", "0.65560275", "0.6379691", "0.63324845", "0.6269184", "0.62691426", "0.61538935", "0.6138805", "0.6012644", "0.6011246", "0.6002995", "0.5967212", "0.5855237", "0.5847934", "0.58476907", "0.58285075", "0.58118963", "0.5765182", "0.575569", "0.5744717", "0.5743028...
0.65358245
2
Create a dictionary of possible ambiguous annotations for all forms.
def aG2q(H6V6, RRlC): if not type(H6V6) in [list, tuple]: H6V6 = [H6V6] VsHT = oRi_(list) for jQJk in RRlC: with open(jQJk, 'r') as KAfx: for zFiD in KAfx: IcHj = zFiD[:3] if IcHj == 'URL': IULY = zFiD.split('\t') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XgyP(Emd4, SnBA: dict) -> dict:\n return {mWFP: h8nf[Emd4.type_map[SnBA[mWFP]]] for mWFP in SnBA if SnBA[mWFP] in Emd4.type_map}", "def l3kp(oICI: Any) -> dict[str, ImMB]:\n m1Fw = HwRy.modules.get('annotated_types')\n r9y0: list[gAeI] = []\n hLRM, *yIVm = rwTO(oICI)\n B2fa = {}\n for ZfUD ...
[ "0.5872695", "0.5405484", "0.5387594", "0.51252747", "0.5100902", "0.5068358", "0.5062797", "0.50354344", "0.50258124", "0.49863327", "0.4986224", "0.49853978", "0.49570417", "0.49537036", "0.49482334", "0.49482334", "0.4947191", "0.49415976", "0.49348265", "0.49348265", "0.4...
0.64361227
0
urllib.parse.unquote acts only once. in case quotes are nested it is necessary to unquote until no further changes occur.
def dcEV(KCHu): rRy_ = uRlK.parse.unquote(KCHu) Z9rn = 0 while rRy_ != KCHu: KCHu = rRy_ rRy_ = uRlK.parse.unquote(KCHu) Z9rn += 1 assert Z9rn <= 10 return rRy_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tnoA(KCHu, tZ2K='utf-8'):\n return uRlK.unquote(KCHu).decode(tZ2K)", "def tnoA(zZcM, tZ2K='utf-8'):\n return uRlK.unquote(zZcM).decode(tZ2K)", "def O5gF(KCHu):\n if not hasattr(KCHu, 'strip'):\n return KCHu\n return KCHu.strip('\"\\'')", "def O5gF(KCHu):\n if not hasattr(KCHu, 'stri...
[ "0.7474205", "0.72840935", "0.704781", "0.7034386", "0.6998035", "0.69909346", "0.67545295", "0.6747634", "0.67144144", "0.6706207", "0.6685859", "0.66546404", "0.6631628", "0.66138816", "0.66035944", "0.65744543", "0.6513085", "0.6497575", "0.64781386", "0.62992907", "0.6138...
0.70385575
3
Get k most popular annotations for ambiguous_entity.
def v6sH(Njo1, G1Hx=2): QTg7 = [(H5ew, len(BWXx)) for H5ew, BWXx in Njo1.annotated_corpus.items()] QTg7 = sorted(QTg7, key=lambda WKvO: WKvO[1], reverse=True) return [WKvO[0] for WKvO in QTg7[:G1Hx]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mufw(HUjF, RRlC, gwAu=5, bsGc=2):\n\n def O6nM(G1Hx, WhY1):\n PCtO = (WKvO for WKvO in WhY1 if WKvO)\n Z9rn = 0\n for bGrB in PCtO:\n Z9rn += 1\n if Z9rn >= G1Hx:\n return True\n return False\n l7iB = oRi_(lambda: oRi_(int))\n SB_A = set...
[ "0.6170952", "0.59580594", "0.5890428", "0.5704015", "0.56922567", "0.5654448", "0.5620149", "0.5618692", "0.5597631", "0.5583861", "0.5576103", "0.55653495", "0.555302", "0.55428547", "0.5519606", "0.5496979", "0.5474896", "0.5456552", "0.5420822", "0.5401969", "0.5383488", ...
0.8690574
0
Provides the location of our migration directory.
def r9_q(YKHO) -> str: with Hwza.path(f'PyFunceble.data.{EOaO.cli.storage.ALEMBIC_DIRECTORY_NAME}', '__init__.py') as qaEx: Aofo = Hy7s.path.split(qaEx)[0] if EOaO.storage.CONFIGURATION.cli_testing.db_type == 'postgresql': return Hy7s.path.join(Aofo, 'postgresql') return Hy7s.path.join(Aofo,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def te8u():\n return gzes(TLI7(TLI7(TLI7(OH_j.__file__))), 'migrations')", "def XfeN():\n return dYkI", "def GOQM(YKHO):\n return Hy7s.path.expanduser(YKHO.sqlfluff_config.get_section((YKHO.templater_selector, YKHO.name, 'project_dir')) or Hy7s.getcwd())", "def B8u3(YKHO):\n return YKHO.mainmanag...
[ "0.8210593", "0.77217036", "0.69344693", "0.68802124", "0.6846819", "0.68090975", "0.6728393", "0.67240715", "0.6706829", "0.66650563", "0.6602771", "0.6588322", "0.65797484", "0.6578663", "0.64803314", "0.64764637", "0.64659077", "0.6464724", "0.64325905", "0.6429245", "0.64...
0.8473635
0
Gets the html file that is closest to but not less than size.
def ALy3(YKHO, zNig): Ux0P = None RRlC = filter(lambda WKvO: 'html' in WKvO[0], UBqu(YKHO.data_dir, reverse=True)) if RRlC[0][1] < zNig: Ux0P = RRlC[0][0] else: YRbF = 0 while YRbF < len(RRlC): if RRlC[YRbF][1] < zNig: YRbF -= 1 break ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TtdW(MVVZ):\n MMHh = []\n for nUeQ in MVVZ:\n if Hy7s.path.getsize(nUeQ) > 50000000:\n MMHh.append(nUeQ)\n return MMHh", "def pA51(YKHO, okZi=10):\n for eHNT in YKHO.filelist:\n if eHNT['size_bytes'] > okZi * (1024 * 1024):\n yield (eHNT['size_bytes'] / (1024 *...
[ "0.57499677", "0.56974775", "0.5668597", "0.5480971", "0.5343371", "0.53272206", "0.52781385", "0.5263578", "0.51291496", "0.508535", "0.5023082", "0.5001185", "0.4997149", "0.4995383", "0.49509308", "0.4875535", "0.48720494", "0.48057058", "0.4761702", "0.47232074", "0.47137...
0.64351505
0
The AccessConfigurationName of the Access Configuration. The name of the resource. The name can be up to `32` characters long and can contain letters, digits, and hyphens ().
def Rpsx(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'access_configuration_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rpsx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'access_configuration_name')", "def Rpsx(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'access_configuration_name')", "def mWFP(YKHO) -> str:\n mWFP = YKHO._config['name']\n assert isinstance(mWFP, str)\n return mWFP", "def ...
[ "0.7486358", "0.7206645", "0.6774528", "0.67367065", "0.6373976", "0.6373976", "0.6282175", "0.6279026", "0.62782085", "0.62528276", "0.6235453", "0.6207555", "0.6175268", "0.6173986", "0.60689837", "0.5976686", "0.5957733", "0.5912934", "0.5826887", "0.5790978", "0.57530236"...
0.7530321
0
The ID of the Directory.
def TDPX(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'directory_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDPX(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'directory_id')", "def TDPX(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'directory_id')", "def TDPX(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'directory_id')", "def TDPX(YKHO) -> h8nf[qe4Y.Input[str]]:\n return...
[ "0.86193115", "0.84758145", "0.81507504", "0.81507504", "0.81507504", "0.80275583", "0.66744995", "0.65655196", "0.6565149", "0.6513468", "0.650948", "0.64971465", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.64780...
0.83013237
2
The Policy List. See `permission_policies` below.
def e3j0(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['AccessConfigurationPermissionPolicyArgs']]]]: return qe4Y.get(YKHO, 'permission_policies')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def som_(YKHO):\n return YKHO._data.get('policies')", "def som_(YKHO):\n return YKHO._policies", "def e3j0(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.AccessConfigurationPermissionPolicy']]]:\n return qe4Y.get(YKHO, 'permission_policies')", "def OKeV(YKHO):\n return YKHO.con.list_policies(Scope='Loca...
[ "0.7772358", "0.7656785", "0.7444302", "0.7368247", "0.7306872", "0.72549087", "0.7231609", "0.7137215", "0.7131873", "0.7088239", "0.69799507", "0.6941363", "0.68438494", "0.6827397", "0.6746049", "0.6687032", "0.6623487", "0.65835625", "0.65711325", "0.65711325", "0.6571132...
0.7465447
2
The AccessConfigurationId of the Access Configuration.
def CLEu(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'access_configuration_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CLEu(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'access_configuration_id')", "def S8MR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'config_id')", "def S8MR(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'config_id')", "def vL7e(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'au...
[ "0.85105073", "0.7337781", "0.709119", "0.7068753", "0.7039614", "0.7039614", "0.7039614", "0.7039614", "0.6994155", "0.6778734", "0.6778734", "0.6778734", "0.67664045", "0.67664045", "0.6760845", "0.6697583", "0.6677596", "0.66682535", "0.6607399", "0.6607399", "0.6606919", ...
0.84858364
1
The AccessConfigurationName of the Access Configuration. The name of the resource. The name can be up to `32` characters long and can contain letters, digits, and hyphens ().
def Rpsx(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'access_configuration_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rpsx(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'access_configuration_name')", "def Rpsx(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'access_configuration_name')", "def mWFP(YKHO) -> str:\n mWFP = YKHO._config['name']\n assert isinstance(mWFP, str)\n return mWFP", "def mWFP(Y...
[ "0.7529133", "0.7205792", "0.67749125", "0.6736788", "0.6373572", "0.6373572", "0.628117", "0.62788445", "0.6277833", "0.62517685", "0.6234087", "0.62066066", "0.6174251", "0.6173419", "0.60693014", "0.5975449", "0.5957667", "0.591256", "0.58262837", "0.57914597", "0.5752966"...
0.74854743
1
The ID of the Directory.
def TDPX(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'directory_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDPX(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'directory_id')", "def TDPX(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'directory_id')", "def TDPX(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'directory_id')", "def id(YKHO) -> Zkm5:\n M56f: list[kDLT] = []\n GSuR...
[ "0.86193115", "0.84758145", "0.83013237", "0.80275583", "0.66744995", "0.65655196", "0.6565149", "0.6513468", "0.650948", "0.64971465", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069...
0.81507504
3
The Policy List. See `permission_policies` below.
def e3j0(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['AccessConfigurationPermissionPolicyArgs']]]]: return qe4Y.get(YKHO, 'permission_policies')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def som_(YKHO):\n return YKHO._data.get('policies')", "def som_(YKHO):\n return YKHO._policies", "def e3j0(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.AccessConfigurationPermissionPolicy']]]:\n return qe4Y.get(YKHO, 'permission_policies')", "def OKeV(YKHO):\n return YKHO.con.list_policies(Scope='Loca...
[ "0.7772358", "0.7656785", "0.7444302", "0.7368247", "0.7306872", "0.72549087", "0.7231609", "0.7137215", "0.7131873", "0.7088239", "0.69799507", "0.6941363", "0.68438494", "0.6827397", "0.6746049", "0.6687032", "0.6623487", "0.65835625", "0.65711325", "0.65711325", "0.6571132...
0.7465447
3
Get an existing AccessConfiguration resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, CLEu: Optional[pulumi.Input[str]]=None, Rpsx: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, TDPX: Optional[pulumi.Input[str]]=None, LFGZ: Optional[pulumi.Input[bool]]=None, e3j0: Optional[pulumi.Input[Seq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, Fp6V: Optional[pulumi.Input[int]]=None, rioO: Optional[pulumi.Input[bool]]=None, OAti: Optional[pulumi.Input[str]]=None, eNtK: Optional[pulumi.Inpu...
[ "0.5611114", "0.54699504", "0.5446683", "0.5433451", "0.5365181", "0.53162813", "0.5223345", "0.52209836", "0.52125925", "0.51883566", "0.51233906", "0.5088257", "0.50758934", "0.5060097", "0.5048961", "0.5011356", "0.5004265", "0.5002715", "0.49953216", "0.49871352", "0.4982...
0.7243762
0
The AccessConfigurationId of the Access Configuration.
def CLEu(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'access_configuration_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CLEu(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'access_configuration_id')", "def S8MR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'config_id')", "def S8MR(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'config_id')", "def vL7e(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO...
[ "0.84858364", "0.7337781", "0.709119", "0.7068753", "0.7039614", "0.7039614", "0.7039614", "0.7039614", "0.6994155", "0.6778734", "0.6778734", "0.6778734", "0.67664045", "0.67664045", "0.6760845", "0.6697583", "0.6677596", "0.66682535", "0.6607399", "0.6607399", "0.6606919", ...
0.85105073
0
The AccessConfigurationName of the Access Configuration. The name of the resource. The name can be up to `32` characters long and can contain letters, digits, and hyphens ().
def Rpsx(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'access_configuration_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rpsx(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'access_configuration_name')", "def Rpsx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'access_configuration_name')", "def mWFP(YKHO) -> str:\n mWFP = YKHO._config['name']\n assert isinstance(mWFP, str)\n return mWFP", "def m...
[ "0.7530321", "0.7486358", "0.6774528", "0.67367065", "0.6373976", "0.6373976", "0.6282175", "0.6279026", "0.62782085", "0.62528276", "0.6235453", "0.6207555", "0.6175268", "0.6173986", "0.60689837", "0.5976686", "0.5957733", "0.5912934", "0.5826887", "0.5790978", "0.57530236"...
0.7206645
2
The ID of the Directory.
def TDPX(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'directory_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDPX(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'directory_id')", "def TDPX(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'directory_id')", "def TDPX(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'directory_id')", "def TDPX(YKHO) -> h8nf[qe4Y.Input[str]]:\n return ...
[ "0.84758145", "0.83013237", "0.81507504", "0.81507504", "0.81507504", "0.80275583", "0.66744995", "0.65655196", "0.6565149", "0.6513468", "0.650948", "0.64971465", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.6478069", "0.64780...
0.86193115
0
The Policy List. See `permission_policies` below.
def e3j0(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.AccessConfigurationPermissionPolicy']]]: return qe4Y.get(YKHO, 'permission_policies')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def som_(YKHO):\n return YKHO._data.get('policies')", "def som_(YKHO):\n return YKHO._policies", "def e3j0(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['AccessConfigurationPermissionPolicyArgs']]]]:\n return qe4Y.get(YKHO, 'permission_policies')", "def e3j0(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['Acce...
[ "0.7772358", "0.7656785", "0.7465447", "0.7465447", "0.7368247", "0.7306872", "0.72549087", "0.7231609", "0.7137215", "0.7131873", "0.7088239", "0.69799507", "0.6941363", "0.68438494", "0.6827397", "0.6746049", "0.6687032", "0.6623487", "0.65835625", "0.65711325", "0.65711325...
0.7444302
4
Allows intelligent sorting of plugin versions, for example when minor version of a plugin is 11, sort numerically so that 11 > 10, instead of alphabetically so that 2 > 11
def WnM0(DpZH): def HLZr(YEnM): try: return int(YEnM) except ValueError: return YEnM return [HLZr(Q7me) for Q7me in DpZH.split('.')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLty(yjvs):\n return yjvs.order", "def S86_(YKHO):\n assert xDro(['1', '5', '10', '50']) == ['1', '5', '10', '50']", "def SWl9(PzoZ, gxEw=True):\n PzoZ = [WKvO.replace('v', '') for WKvO in PzoZ]\n tu39 = sorted(PzoZ, key=lambda WKvO: int(WKvO.split('.')[2]), reverse=gxEw)\n tu39.sort(key=lam...
[ "0.73744696", "0.69762975", "0.6932507", "0.65762275", "0.6557709", "0.65229607", "0.6307488", "0.6294604", "0.6267091", "0.60009575", "0.587323", "0.5861463", "0.58593124", "0.5835316", "0.582079", "0.5772454", "0.57694155", "0.5751435", "0.57473147", "0.5712717", "0.5667721...
0.6877737
3
Helper method for converting snake to camel case
def kCQi(vIwR: str): return ''.join((dMQI.title() for dMQI in vIwR.split('_')))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hr_R(BQoY):\n qWBe = BQoY.split('_')\n return ' '.join(qWBe).title()", "def kCQi(BQoY: str) -> str:\n V22M = BQoY.strip('_').split('_')\n return V22M[0] + ''.join((GIN8[:1].upper() + GIN8[1:] for GIN8 in V22M[1:]))", "def kCQi(BWXx):\n V22M = BWXx.strip('_').split('_')\n return V22M[0].lo...
[ "0.8377386", "0.83744806", "0.82713926", "0.82631797", "0.8181906", "0.8135152", "0.81007415", "0.8098992", "0.8006989", "0.797442", "0.797442", "0.79307777", "0.7920477", "0.78635794", "0.7862867", "0.7781951", "0.7767076", "0.7728743", "0.7725505", "0.7723914", "0.76886004"...
0.7717249
20
Tests that 'attendant' cannot sale a product thats not in the Inventory
def nP_l(YKHO): Amyp = YKHO.admin_add_product() _hkX = YKHO.admin_create_user() Amyp = YKHO.attendant_login() eOtH = Amyp['token'] RsIL = dict(products=[{'prod_name': 'Paris_heels', 'quantity': 10}]) _hkX = YKHO.client.post('/api/v1/sales', content_type='application/json', data=qQXR.dumps(RsIL),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wp0u(YKHO):\n _hkX = YKHO.admin_add_product()\n Amyp = YKHO.admin_login()\n eOtH = Amyp['token']\n RsIL = dict(products=[{'prod_name': 'NY_denims', 'quantity': 10}])\n _hkX = YKHO.client.post('/api/v1/sales', content_type='application/json', data=qQXR.dumps(RsIL), headers={'Authorization': 'Bear...
[ "0.7248152", "0.6875464", "0.6853225", "0.6754782", "0.6526692", "0.6388353", "0.6356063", "0.6256405", "0.61947715", "0.6130376", "0.6106835", "0.60571367", "0.6025639", "0.60199517", "0.5946594", "0.5914017", "0.5894062", "0.58458245", "0.58246976", "0.5822454", "0.58029085...
0.7103742
1
Tests that 'attendant' cannot sale a product thats out of stock
def ia9B(YKHO): Amyp = YKHO.admin_add_product() _hkX = YKHO.admin_create_user() Amyp = YKHO.attendant_login() eOtH = Amyp['token'] RsIL = dict(products=[{'prod_name': 'NY_denims', 'quantity': 20}]) _hkX = YKHO.client.post('/api/v1/sales', content_type='application/json', data=qQXR.dumps(RsIL), h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def REUp(YKHO):\n Amyp = YKHO.admin_add_product()\n _hkX = YKHO.admin_create_user()\n Amyp = YKHO.attendant_login()\n eOtH = Amyp['token']\n RsIL = dict(products=[{'prod_name': 'NY_denims', 'quantity': 10}])\n _hkX = YKHO.client.post('/api/v1/sales', content_type='application/json', data=qQXR.dum...
[ "0.7425415", "0.7088633", "0.68254536", "0.6818089", "0.6790874", "0.6755759", "0.67325425", "0.67019695", "0.6675774", "0.6602238", "0.65940475", "0.65272397", "0.6438217", "0.6368901", "0.6306197", "0.627452", "0.6274079", "0.6263499", "0.6237906", "0.62328583", "0.6210398"...
0.77287453
0
Tests that attendant can only view a sale they made
def b4xc(YKHO): Amyp = YKHO.admin_add_product() _hkX = YKHO.admin_create_user() Amyp = YKHO.attendant_login() eOtH = Amyp['token'] RsIL = dict(products=[{'prod_name': 'NY_denims', 'quantity': 10}]) _hkX = YKHO.client.post('/api/v1/sales', content_type='application/json', data=qQXR.dumps(RsIL), h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wp0u(YKHO):\n _hkX = YKHO.admin_add_product()\n Amyp = YKHO.admin_login()\n eOtH = Amyp['token']\n RsIL = dict(products=[{'prod_name': 'NY_denims', 'quantity': 10}])\n _hkX = YKHO.client.post('/api/v1/sales', content_type='application/json', data=qQXR.dumps(RsIL), headers={'Authorization': 'Bear...
[ "0.7438804", "0.6890383", "0.6851862", "0.68414295", "0.66387415", "0.6299387", "0.6226778", "0.60637724", "0.60226434", "0.5988831", "0.5970717", "0.59398246", "0.59026456", "0.5873979", "0.58102363", "0.5799189", "0.579879", "0.5768878", "0.5744502", "0.57388747", "0.573233...
0.79987586
0
Tests that cannot view sales, if there no sales created yet
def v5Xz(YKHO): Amyp = YKHO.admin_add_product() _hkX = YKHO.admin_create_user() Amyp = YKHO.attendant_login() eOtH = Amyp['token'] _hkX = YKHO.client.get('/api/v1/sales/1', headers={'Authorization': 'Bearer {}'.format(eOtH)}) Amyp = qQXR.loads(_hkX.data.decode()) YKHO.assertEqual(Amyp['messa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T4r5(YKHO):\n geh0 = YKHO.client.get('/self.base_url/sales', headers=dict(Authorization='Bearer ' + YKHO.attendant_token), content_type='application/json')\n Bv0m = qQXR.loads(geh0.data)\n YKHO.assertEqual(Bv0m['message'], 'You dont have rights to list all sales, contact the system admin')\n YKHO.a...
[ "0.7195016", "0.7113635", "0.6890449", "0.6749435", "0.665207", "0.6623715", "0.6588043", "0.65789324", "0.6469925", "0.6447932", "0.64235264", "0.64192915", "0.64105976", "0.640397", "0.6343122", "0.6301237", "0.62086207", "0.61448246", "0.6143056", "0.6122524", "0.61056334"...
0.7666679
0
Tests that attendant cannot view sale records they didnot make
def mE65(YKHO): Amyp = YKHO.admin_add_product() _hkX = YKHO.admin_create_user() Amyp = YKHO.attendant_login() eOtH = Amyp['token'] RsIL = dict(products=[{'prod_name': 'NY_denims', 'quantity': 10}]) _hkX = YKHO.client.post('/api/v1/sales', content_type='application/json', data=qQXR.dumps(RsIL), h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b4xc(YKHO):\n Amyp = YKHO.admin_add_product()\n _hkX = YKHO.admin_create_user()\n Amyp = YKHO.attendant_login()\n eOtH = Amyp['token']\n RsIL = dict(products=[{'prod_name': 'NY_denims', 'quantity': 10}])\n _hkX = YKHO.client.post('/api/v1/sales', content_type='application/json', data=qQXR.dum...
[ "0.6870149", "0.6765387", "0.67329925", "0.67074823", "0.65558386", "0.618115", "0.6172162", "0.60706395", "0.6048232", "0.6041283", "0.6004212", "0.59842944", "0.597364", "0.5951023", "0.58633673", "0.58607644", "0.58261186", "0.5825871", "0.579768", "0.57842404", "0.5775081...
0.7339037
0
Compute angular error as in [18] (Section 3.1).
def ChAq(Ssqa, gWz7): assert Ssqa.shape == gWz7.shape return 1 / O05v * oyIN.arccos(oyIN.sum(Ssqa * gWz7))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KjnH(YKHO):\n RA_F = YKHO.Y - YKHO.T\n P1dF = RA_F.dot(RA_F) / YKHO.N\n P1dF = format(P1dF, '.5f')\n YKHO.errors.append(P1dF)", "def qixE(YKHO):\n YKHO.e_of_e = YKHO.azimuth_error - YKHO.altitude_error\n return YKHO.e_of_e", "def EkHl(YKHO, NArs):\n return YKHO.endog - YKHO.predict(NAr...
[ "0.669958", "0.6560642", "0.64285576", "0.63889897", "0.6341878", "0.6322742", "0.6294606", "0.6274744", "0.626024", "0.6233737", "0.62297297", "0.6209812", "0.6175042", "0.6161818", "0.61436087", "0.6127013", "0.61130244", "0.608749", "0.60786134", "0.6073097", "0.60330784",...
0.73857546
0
Get a collection of boards.
def tBvd(YKHO, *qIxc, **B2fa): qIxc = list(qIxc) for d7pR in qIxc: if 'column_values' in d7pR: qIxc.append('columns.id') qIxc.append('columns.type') qIxc.append('columns.settings_str') break e7JE = nNXP.get_boards(*qIxc, api_key=YKHO.__creds.api_key_v2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4lo(YKHO):\n return DsEw(YKHO)", "def n8zX():\n return [iBIi for iBIi in J3Nq.find('board')]", "def lV4b(YKHO, *nxKm: str) -> bdIy[dy9P.models.Board]:\n try:\n nNXP = YKHO.__wekan_api(YKHO.__url, credentials=dict(username=YKHO.__username, password=YKHO.__password))\n except Exception as...
[ "0.82174194", "0.8085691", "0.71364635", "0.7132878", "0.6797441", "0.6682836", "0.6315482", "0.61737037", "0.6132699", "0.60354275", "0.59992874", "0.59893596", "0.5982978", "0.59424716", "0.59404004", "0.59322995", "0.59211534", "0.5847197", "0.5822571", "0.5820194", "0.577...
0.7324157
2
Get the connected user's account.
def AmjW(YKHO, *qIxc): mLBM = nNXP.get_account(*qIxc, api_key=YKHO.__creds.api_key_v2) return _e0y.Account(creds=YKHO.__creds, **mLBM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_user_account(YKHO):\n i8WE = bWeC.get_cur_timestamp_ms()\n NArs = {'timestamp': str(i8WE)}\n nyyK, P1dF = await YKHO.request('GET', '/api/v3/account', NArs, auth=True)\n return (nyyK, P1dF)", "def AmjW(YKHO):\n return YKHO._account", "def AmjW(YKHO):\n return YKHO._account", "...
[ "0.78352773", "0.77708846", "0.77708846", "0.76120067", "0.7258302", "0.7151977", "0.7125791", "0.7097977", "0.699248", "0.6977265", "0.6965043", "0.69506735", "0.6940226", "0.68822527", "0.684672", "0.68452924", "0.68409795", "0.6840239", "0.68373096", "0.68373096", "0.68183...
0.62058
91
Test autogenerated CSS urls
def xvYq(YKHO): YKHO.assertEquals(AQSv.get_css_url(), '%s%s' % (gCuF.STATIC_URL, 'css')) with YKHO.settings(MEDIABRUTE_USE_STATIC=False): YKHO.assertEquals(AQSv.get_css_url(), '%s%s' % (gCuF.MEDIA_URL, 'css')) with YKHO.settings(MEDIABRUTE_CSS_URL_PATH='heyo/yoyo'): YKHO.assertEquals(AQSv.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OgxX():\n return NMfI()", "def wXuG(YKHO):\n YKHO.create_files({'foo/css': 'h1{background: url(\"file1\"), url(\"file2\")}'})\n YKHO.mkbundle('css', filters='cssrewrite', output='out').build()\n assert YKHO.get('media/out') == 'h1{background: url(\"file1\"), url(\"file2\")}'", "def DtlB(YKHO):\...
[ "0.6696154", "0.6524445", "0.6505052", "0.63023394", "0.62804943", "0.6252605", "0.618983", "0.61001724", "0.6083529", "0.60507435", "0.60363334", "0.6010044", "0.6002027", "0.5936329", "0.5922343", "0.5872907", "0.58418113", "0.5796644", "0.57851654", "0.57712543", "0.575598...
0.73966014
0
First, look for an APP_CSS setting, otherwise, default to "css"
def rPOZ(YKHO): try: YBcr = gCuF.APP_CSS except AttributeError: YBcr = muwo.APP_CSS for P4t4, AGPF in AQSv.APP_CSS_DIRS: YKHO.assertIn('/%s' % YBcr, AGPF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Op2E(YKHO):\n pass", "def Op2E(YKHO):\n pass", "def azbL(YKHO):\n return YKHO.pt_app.style", "def In6N(mWFP):\n with htTT(FileNotFoundError):\n with open(lABK / mWFP, 'rt') as OWwr:\n _Cnz = OWwr.read().replace('@Path', (d0De / gCuF.value(pe5E.Theme)).as_posix())\n re...
[ "0.5712834", "0.5712834", "0.5547178", "0.5495658", "0.5470872", "0.5428618", "0.5428425", "0.5419717", "0.54098415", "0.53688014", "0.5325875", "0.52418923", "0.52158815", "0.51791346", "0.5175356", "0.5165978", "0.51632684", "0.5148056", "0.5135586", "0.5124514", "0.5053612...
0.52900356
11
Returns the name of this proxy
def E6Xg(): return 'junos'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gg7S(YKHO):\n return YKHO.proxyName", "def govX(YKHO):\n return YKHO.__proxysockname", "def govX(YKHO):\n return YKHO.__proxysockname", "def govX(YKHO):\n return YKHO.__proxysockname", "def W0tD(YKHO):\n raise Ro1i('You should implement the get_name method of classes that inherit from \"...
[ "0.8833641", "0.7890554", "0.7890554", "0.7808405", "0.76843923", "0.7568221", "0.7496598", "0.74675167", "0.7454763", "0.74429435", "0.74429435", "0.74429435", "0.7406573", "0.7406573", "0.7406573", "0.7406573", "0.7387529", "0.7338878", "0.7338878", "0.73284036", "0.7316832...
0.0
-1
Assert that actual equals expected while ignoring key order and extra keys not present in expected. Expected mappings may be a subset of actual mappings this can be useful to make tests less fragile so that they don't incorrectly fail when new keys are added.
def RLTK(aEqx, n5sN, nUW0): if isinstance(aEqx, GySg): for arV3 in aEqx.keys(): assert arV3 in n5sN.keys(), nUW0 RLTK(aEqx[arV3], n5sN[arV3], nUW0 + f'["{arV3}"]') else: assert aEqx == n5sN, nUW0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hXq9(sjXb, aEqx, pXt1=True):\n if not pXt1:\n v3uw = aEqx - sjXb\n assert not v3uw, 'missing keys: %s' % v3uw\n dDGN = sjXb - aEqx\n assert not dDGN, 'extraneous keys: %s' % dDGN", "def LXMU(YKHO, aEqx, n5sN, tO9_=None):\n v3uw = []\n Hp5j = []\n for H5ew, BWXx in aEqx.iterite...
[ "0.76098824", "0.7550261", "0.73840624", "0.7268214", "0.7154876", "0.7144536", "0.7124943", "0.7054011", "0.7030045", "0.6715128", "0.6682607", "0.66637194", "0.6498881", "0.648767", "0.6460296", "0.6395172", "0.6361551", "0.6341401", "0.63289285", "0.6317566", "0.6312966", ...
0.72953427
3
Return absolute path with leading ~ expanded
def cz5J(pmON): pmON = Hy7s.path.expanduser(pmON) pmON = Hy7s.path.abspath(pmON) return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9ps(pmON):\n if '~' in pmON:\n return pmON.replace('~', hIOi('~'))\n else:\n return pmON", "def SOoY(pmON):\n pmON = ZbWC.sub('~', Hy7s.environ['HOME'], str(pmON))\n if pmON[0] != '/':\n pmON = str(lWrn.pwd()).strip() + '/' + pmON\n return pmON", "def dg8x(YKHO, pmON: P...
[ "0.76966226", "0.70892733", "0.6866002", "0.6820123", "0.66921955", "0.6604635", "0.6601054", "0.65875393", "0.6555216", "0.65448976", "0.6465076", "0.6437381", "0.64303565", "0.63877475", "0.6386826", "0.6376812", "0.63711154", "0.6361652", "0.63268846", "0.629416", "0.62493...
0.59627086
48
Quote an argument for the shell
def L9lW(d7pR): if ZbWC.match('^[-_.:/=a-zA-Z0-9]*$', d7pR): return d7pR else: return "'%s'" % d7pR.replace("'", "'\\''")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HDLy(YKHO, d7pR):\n d7pR = d7pR.replace('\\\\', '\\\\\\\\')\n d7pR = d7pR.replace('\"', '\\\\\"')\n return '\"%s\"' % d7pR", "def b1qH(d7pR):\n return \"'\" + str(d7pR).replace(\"'\", \"'\\\\''\") + \"'\"", "def AB7u(d7pR):\n return d7pR.replace('\"', '\\\\\"')", "def Lv2u(d7pR):\n for ...
[ "0.77673554", "0.76793677", "0.76440316", "0.7537206", "0.7503303", "0.73312765", "0.6972545", "0.6837365", "0.68200713", "0.6779207", "0.6711798", "0.66048396", "0.6591173", "0.65714985", "0.6532162", "0.65079796", "0.6494683", "0.6461761", "0.64036244", "0.6383636", "0.6380...
0.8021843
0
Builds the operators calling BEMPP routines, according to the rules for building a block operator from the accompanying paper. Each operator is also accompanies with a key (usually just default) in case there is more than one operator in a cell. This allows them to be differentiated later on. Returns these operators as...
def MdEa(YKHO, SGPK, o_xu): PYpn = YKHO.wave_numbers[0] YSA3 = YKHO.wave_numbers[1] BOse = YKHO.wave_numbers[2:] yGTL = 1 p9IR = YKHO.cavities IPme = {} def H2v5(YRbF, r845, khtY, H5ew='default'): if (YRbF, r845) not in IPme: IPme[YRbF, r845] = {H5ew: khtY} elif ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JuVm(YKHO):\n if YKHO.op >= AmeX and YKHO.op <= K8V8 or (YKHO.op >= WLwz and YKHO.op <= UAlX) or YKHO.op == BmJg:\n return {'x': YKHO.x, 'y': YKHO.y}\n elif YKHO.op == n6FM:\n return {'x': YKHO.x, 'y': YKHO.y, 'z': YKHO.z}\n elif YKHO.op in [V_x0, aADT, EYOM] or (YKHO.op >= jdHm and YKHO...
[ "0.5893202", "0.5735879", "0.5481861", "0.53870815", "0.53514844", "0.5330947", "0.5285688", "0.5281344", "0.5264745", "0.51900685", "0.5186409", "0.5170233", "0.5168371", "0.5160872", "0.51132566", "0.50995725", "0.50847685", "0.50779724", "0.5052127", "0.5023777", "0.502245...
0.59664774
0
Creates a Block Operator from the boundary operators of the system, but it only contains the block diagonal components.
def WyUJ(YKHO, SGPK=None, o_xu='default'): Maem = YKHO.get_ops(SGPK, o_xu) lWPh = C1Uq.BlockedOperator(YKHO.N * 2, YKHO.N * 2) for (rdlD, fvDH), n5Rs in Maem.items(): if rdlD == fvDH: IPme = list(n5Rs.values()) NfPn = sum(IPme[1:], IPme[0]) Qf9i(lWPh, NfPn, rdlD, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jD8L(gmOx, _BAe, G1Hx, yGTL):\n k0lF = C1Uq.BlockedOperator(2, 2)\n k0lF[0, 0] = gmOx\n k0lF[0, 1] = yGTL / G1Hx * _BAe\n k0lF[1, 0] = -G1Hx / yGTL * _BAe\n k0lF[1, 1] = gmOx\n return k0lF", "def KoHn(YKHO):\n if len(YKHO) == 1:\n return YKHO.get_operator()\n khtY = YKHO._get_a...
[ "0.63582325", "0.61143786", "0.60582596", "0.5910971", "0.5883823", "0.5854873", "0.5760708", "0.5665299", "0.56312656", "0.55951005", "0.5582301", "0.55224216", "0.54668546", "0.5331099", "0.53071433", "0.52994144", "0.5283294", "0.52762717", "0.52339995", "0.5209892", "0.51...
0.5751354
7
Returns the operator in the space required of the preconditioner. For the Default System this is exactly the same as the normal operator.
def yqRW(YKHO, HnlW): return YKHO.operator
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def seET(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'operator')", "def seET(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'operator')", "def seET(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'operator')", "def seET(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'operator')", "def seET(YKHO) -> h8nf[...
[ "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "0.7059218", "...
0.7006569
24
Wrapper to the blockoperator constructor for this system.
def YHFY(YKHO, G1Hx, yGTL, P8oC, pan_=None, SGPK=None, o_xu='default'): if pan_ is None: pan_ = P8oC return BHfV(P8oC, pan_, G1Hx, yGTL, SGPK, o_xu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jD8L(gmOx, _BAe, G1Hx, yGTL):\n k0lF = C1Uq.BlockedOperator(2, 2)\n k0lF[0, 0] = gmOx\n k0lF[0, 1] = yGTL / G1Hx * _BAe\n k0lF[1, 0] = -G1Hx / yGTL * _BAe\n k0lF[1, 1] = gmOx\n return k0lF", "def wIU9(NHn2):\n yrqc = None\n if NHn2[0] == '!':\n yrqc = rFdf if NHn2[1] == '!' els...
[ "0.6583789", "0.64062196", "0.63646835", "0.63283795", "0.6318583", "0.6276932", "0.6276723", "0.6237882", "0.6216725", "0.6196809", "0.61807066", "0.61598444", "0.6150931", "0.6139331", "0.613865", "0.6109183", "0.6097381", "0.6092743", "0.6046292", "0.60405976", "0.6030784"...
0.0
-1
Gets the diagonal of the operator in weak form.
def WyUJ(YKHO, SGPK, o_xu='preconditioner'): return super(XgLG, YKHO).get_diagonal(SGPK, o_xu).weak_form()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IjIm(YKHO):\n return YKHO.rep.diagonal()", "def KTrH(YKHO):\n return zRLp.HypreParMatrix_OwnsDiag(YKHO)", "def WyUJ(SppC):\n bfKS = ZylS.reduce_sum(SppC, 1)\n IjIm = ZylS.diag(bfKS, name='diagonal')\n return IjIm", "def pWUg(YKHO, *qIxc):\n return zRLp.HypreParMatrix_GetDiag(YKHO, *qIxc...
[ "0.7419739", "0.7196712", "0.7038815", "0.68381894", "0.6638823", "0.65074354", "0.65070236", "0.6460818", "0.6440337", "0.64398414", "0.64100885", "0.63857585", "0.6349503", "0.63473094", "0.6269284", "0.6225267", "0.61805403", "0.6162216", "0.6158724", "0.6146115", "0.61372...
0.72286934
1
Assigns the 4 elements of a to the 2x2 block of A specified by the indexes i and j.
def Qf9i(k0lF, jzdc, YRbF, r845): U5h4 = 2 * YRbF qYbV = 2 * r845 k0lF[U5h4, qYbV] = jzdc[0, 0] k0lF[U5h4, qYbV + 1] = jzdc[0, 1] k0lF[U5h4 + 1, qYbV] = jzdc[1, 0] k0lF[U5h4 + 1, qYbV + 1] = jzdc[1, 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uAkW(YRbF: int, r845: int, ezWE: List[int]) -> None:\n ezWE[YRbF], ezWE[r845] = (ezWE[r845], ezWE[YRbF])", "def LLat(YKHO, YRbF, r845, BWXx):\n if YKHO.coeffPattern[0] == None:\n r8hN, exwG = (YKHO.m, YKHO.n)\n YKHO.coeffPattern[0] = [[None] * r8hN for YRbF in range(r8hN)]\n YKHO.coeff...
[ "0.5988163", "0.5719772", "0.5670304", "0.56104136", "0.56104136", "0.56097054", "0.55601346", "0.5555983", "0.55024356", "0.55021626", "0.5471639", "0.54603964", "0.54194343", "0.5392315", "0.5317444", "0.53152883", "0.5305633", "0.5291478", "0.52861106", "0.52719754", "0.52...
0.7977656
0
Shows a figure, illustrating the placement of the cavities.
def dHK4(YKHO): dHK4(YKHO.system.cavity_gri)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUHY():\n QrM1.show()", "def nUHY():\n eCGt()\n QrM1.show()", "def nUHY():\n QrM1.show()", "def nUHY():\n QrM1.show()", "def nUHY():\n QrM1.show()", "def O3ZI(YKHO):\n qjJM.show()", "def nUHY(YKHO):\n QrM1.show()", "def W8mS(YKHO, nUHY=True):\n LZpg = QrM1.figure(figsiz...
[ "0.66921693", "0.6588608", "0.6574683", "0.6574683", "0.6574683", "0.6488894", "0.6481582", "0.64786506", "0.6208725", "0.62080896", "0.61660254", "0.61351764", "0.6129275", "0.61184", "0.6108316", "0.6047591", "0.6044118", "0.6038729", "0.6038435", "0.5998007", "0.5991908", ...
0.0
-1
The header level of this section. For example, ``1`` corresponds to an "H1" section.
def tyc_(YKHO) -> int: return len(YKHO.headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyc_(zFiD):\n YRbF = 0\n leAC = zFiD + 'e'\n while leAC[0] == '#':\n YRbF += 1\n leAC = leAC[1:]\n return YRbF", "def maG7(YKHO, pmON):\n AIGu = len(pmON) - 1\n XLMv = pmON[AIGu][0]\n _R2e = f'Section {XLMv.roman_numeral}: {XLMv.title.capitalize()}'\n return _R2e", "de...
[ "0.6788258", "0.66003263", "0.6525944", "0.6445729", "0.6410488", "0.64026666", "0.64026666", "0.6395351", "0.6395351", "0.6395351", "0.6395351", "0.63431275", "0.6257601", "0.6240129", "0.6240129", "0.6228456", "0.62196475", "0.6211855", "0.6211855", "0.6155049", "0.6126309"...
0.7229805
0
Merge two deep dicts nondestructively Uses a stack to avoid maximum recursion depth exceptions
def PPYP(jzdc, Fg_i): assert os6y(jzdc), os6y(Fg_i) zr3f = jzdc.copy() E5BI = [(zr3f, Fg_i)] while E5BI: jI6L, C413 = E5BI.pop() for H5ew in C413: if H5ew not in jI6L: jI6L[H5ew] = C413[H5ew] elif os6y(C413[H5ew]) and os6y(jI6L[H5ew]): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p4Qt(YKHO):\n tMxp = {'key': {'deep_key_1': 'original_value_1', 'deep_key_2': 'original_value_2'}}\n LxWn = {'key': {'deep_key_2': 'new_value_2', 'deep_key_3': 'new_value_3'}}\n Aofo = p0Kn(tMxp, LxWn)\n assert tMxp == {'key': {'deep_key_1': 'original_value_1', 'deep_key_2': 'original_value_2'}}\n ...
[ "0.77183336", "0.7539621", "0.7457451", "0.7411913", "0.7409686", "0.7375019", "0.7363719", "0.7346429", "0.73255676", "0.73252344", "0.72771823", "0.7269041", "0.72622204", "0.7188361", "0.71485114", "0.70634043", "0.7060802", "0.7043696", "0.7031465", "0.7011736", "0.699662...
0.7919061
0
Returns the sign of a number (0 if number == 0)
def VGrK(YKHO, FGW3): return eHkp(FGW3, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zihr(mLGw: float):\n return 1 if mLGw >= 0 else -1", "def Zihr(WKvO):\n if WKvO >= 0:\n return 1\n else:\n return -1", "def Zihr(WKvO):\n if WKvO >= 0:\n return 1\n return -1", "def Zihr(exwG):\n return (exwG > 0) - (exwG < 0)", "def Zihr(exwG: float) -> int:\n ...
[ "0.8846393", "0.8253473", "0.82252234", "0.81191397", "0.8048113", "0.78813577", "0.7646705", "0.75298065", "0.75174963", "0.75102514", "0.7491994", "0.74387145", "0.72314626", "0.7026278", "0.6858945", "0.6849571", "0.68468064", "0.6693261", "0.65666646", "0.65666646", "0.64...
0.8269828
1
Returns the sigmoid likelihood p(y=label|features; weights)
def bCfl(YKHO, WKvO, UXqs): pw4I = m1Hg(oyIN.dot(WKvO, YKHO.weights)) if UXqs == 0: return 1 - pw4I elif UXqs == 1: return pw4I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IGQs(LVAh, UXqs):\n N8L0 = -oyIN.log(LVAh + AdZA) * UXqs - oyIN.log(1.0 - LVAh + AdZA) * (1.0 - UXqs)\n return N8L0", "def m1Hg(WKvO):\n return 1 / (1 + r8hN.exp(-WKvO))", "def m1Hg(EcVT, XcU5, Fg_i):\n sdgB = oyIN.dot(EcVT, XcU5) + Fg_i\n return 1.0 / (1.0 + oyIN.exp(-sdgB))", "def m1Hg(W...
[ "0.729855", "0.69825923", "0.69369835", "0.69181186", "0.69181186", "0.69135976", "0.69070375", "0.69070375", "0.68618244", "0.6859569", "0.6858837", "0.6856167", "0.6856167", "0.6856167", "0.6856167", "0.6856167", "0.6856167", "0.6845131", "0.68388313", "0.6837727", "0.68328...
0.8198142
0
Returns a JSON string of the numpy array.
def waqd(qw7D): return qQXR.dumps(d7j_(qw7D))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dtW3(jzdc: np.ndarray) -> str:\n return qQXR.dumps(jzdc.tolist())", "def giWH(YKHO, qw7D):\n NRcB = xDSY.BytesIO()\n oyIN.save(NRcB, qw7D)\n return NRcB.getvalue()", "def oD7C(YKHO) -> str:\n Mjw9 = YKHO._to_list_dict()\n return qQXR.dumps(Mjw9, indent=4, cls=l3dz)", "def Napc(YKHO, nPr...
[ "0.799594", "0.7397114", "0.7389336", "0.6879777", "0.6696065", "0.6653273", "0.6613344", "0.65226185", "0.6520773", "0.6504252", "0.6500195", "0.6465842", "0.6430254", "0.638252", "0.6379951", "0.63638395", "0.6360075", "0.6359046", "0.6354674", "0.63410234", "0.63245213", ...
0.86472636
1
Turns a JSONified numpy array back into a regular numpy array.
def YYeh(Lbmv): return qQXR.loads(Lbmv, object_hook=byED)[uwaB.NUMPY_JSON_KEY]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def waqd(qw7D):\n return qQXR.dumps(d7j_(qw7D))", "def waqd(qw7D):\n return qQXR.dumps(d7j_(qw7D))", "def nhxO(fK8P):\n if isinstance(fK8P, dict) and '__ndarray__' in fK8P:\n nPrm = WR89.b64decode(fK8P['__ndarray__'])\n return oyIN.frombuffer(nPrm, fK8P['dtype']).reshape(fK8P['shape'])\n...
[ "0.76810354", "0.76810354", "0.728426", "0.72562265", "0.72562265", "0.72562265", "0.7108978", "0.7102766", "0.6881204", "0.68316835", "0.68022573", "0.67565626", "0.663613", "0.66238236", "0.66061014", "0.6459423", "0.644984", "0.6412981", "0.640372", "0.636493", "0.63274676...
0.7598423
3
Convert a string from camel case (``StringsThatLookLikeThis``) to snake case (``strings_that_look_like_this``). This is useful for matching names of
def QG_m(l5Ny): j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\1_\\2', l5Ny) return ZbWC.sub('([a-z0-9])([A-Z])', '\\1_\\2', j93S).lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def taD7(GPn9):\n j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\\\1_\\\\2', GPn9)\n Nqp_ = ZbWC.sub('([a-z0-9])([A-Z])', '\\\\1_\\\\2', j93S).lower()\n return Nqp_.replace('__', '_')", "def taD7(vIwR: str) -> str:\n j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\\\1_\\\\2', vIwR)\n S3dM = ZbWC.sub('([a-z0-9])([A...
[ "0.82583845", "0.8144382", "0.81090605", "0.808966", "0.8071609", "0.8065401", "0.80421495", "0.8038782", "0.8017019", "0.79698503", "0.7966784", "0.79185176", "0.7909839", "0.7893667", "0.7890556", "0.7866909", "0.78602934", "0.7840908", "0.77912164", "0.77760285", "0.773191...
0.74763054
31
Saves dictionary to `path`.
def xkzz(YKHO, pmON='dict.pic'): with open(pmON, 'wb') as eHNT: t2lc.dump(YKHO.__dictionary, eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO, pmON):\n with open(pmON, 'wb') as eHNT:\n LK4N.dump(YKHO, eHNT)", "def xkzz(YKHO, pmON: Path, nPrm: dict):\n YKHO.info(nPrm)\n Hy7s.makedirs(pmON.parent, exist_ok=True)\n for G1Hx in nPrm.keys():\n if not isinstance(nPrm[G1Hx], str):\n nPrm[G1Hx] = str(nPrm[G1H...
[ "0.7953801", "0.768384", "0.7581396", "0.7581248", "0.75155604", "0.7381979", "0.7381979", "0.7381979", "0.73681736", "0.7358943", "0.73051476", "0.7278362", "0.7254895", "0.7218447", "0.7218447", "0.7218447", "0.7216866", "0.72022194", "0.7089567", "0.7060961", "0.6965888", ...
0.8284187
0
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in Ni9Y(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.0
-1
Returns true if the final state in `x_tape` is close to the upright equilibrium.
def yUr1(yFU3): return wl3s(yFU3) < 0.001
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pd5y(YKHO):\n vsFU = YKHO.swarmie.get_home_odom_location()\n _k01 = YKHO.swarmie.get_odom_location().get_pose()\n pImw = epAf.sqrt((vsFU.x - _k01.x) ** 2 + (vsFU.y - _k01.y) ** 2)\n if pImw > 1.5:\n return True\n AD6e = YKHO.get_angle_to_face_point(vsFU)\n if abs(AD6e) < epAf.pi / 2:\n...
[ "0.62607926", "0.62046903", "0.604087", "0.6008538", "0.60054195", "0.5994796", "0.59558123", "0.58947736", "0.5797723", "0.57893115", "0.578242", "0.57633156", "0.5754844", "0.57171524", "0.56903493", "0.56660575", "0.5647655", "0.5628699", "0.5611879", "0.56039697", "0.5602...
0.62455726
1
Returns the empirical distribution function of a sample
def Zt0j(jzdc): fUYa = oyIN.sort(oyIN.array(jzdc)) bEXe = oyIN.arange(1, len(fUYa) + 1) / float(len(fUYa)) return (fUYa, bEXe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(WKvO):\n Ylbp = oyIN.real(oyIN.exp(-1j * WKvO[1]) * sum((cQCM[G1Hx + ekHH] * oyIN.exp(1j * G1Hx * WKvO[0]) for G1Hx in range(-ekHH, ekHH + 1))))\n Ylbp = -Ylbp / oyIN.sqrt(2 * ekHH + 1)\n return Ylbp", "def kzAT(WKvO):\n return -oyIN.exp(YKHO.ks_gaussian.score_samples(WKvO.reshape(1, -1)))",...
[ "0.6741654", "0.66404825", "0.66323036", "0.6623222", "0.6461853", "0.64487815", "0.63817114", "0.6344847", "0.63335454", "0.62851405", "0.62846255", "0.62623703", "0.62606734", "0.62429696", "0.62148833", "0.6214822", "0.62119687", "0.6165578", "0.6149329", "0.61365724", "0....
0.0
-1
Convert dictionaries to dataframes.
def qsqa(YKHO): YKHO._atmDF = rLdf.DataFrame.from_dict(YKHO._atmDict, orient='index') YKHO._clientDF = rLdf.DataFrame.from_dict(YKHO._clientDict, orient='index') YKHO._clientDF['longAccount'] = YKHO._clientDF.client.map(str) + '_' + YKHO._clientDF.account.map(str) YKHO._transactionDF = rLdf.DataFrame.fr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1P1(nPrm):\n return rLdf.DataFrame.from_dict(nPrm)", "def fIqG(eKJ3, WfCS):\n uncH = rLdf.DataFrame.from_dict(eKJ3, orient='index', columns=WfCS)\n uncH = uncH.reset_index()\n uncH = uncH.drop(columns=['index'])\n return uncH", "def _5Vq(YKHO, A3TQ=None):\n if type(A3TQ) is not dict:\n ...
[ "0.7666539", "0.7529991", "0.7466553", "0.7443088", "0.7405587", "0.7254434", "0.7221952", "0.71460557", "0.714324", "0.7060138", "0.7048105", "0.6971769", "0.6824629", "0.6794479", "0.6704474", "0.65304077", "0.6463527", "0.6449462", "0.64297295", "0.6354926", "0.6323553", ...
0.6145735
28
Initialize this hash table with the given initial size.
def FIMM(YKHO, WkIM=8): YKHO.buckets = [_sfu() for bGrB in range(WkIM)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.size = 1000\n YKHO.hash_table = [None] * YKHO.size", "def FIMM(YKHO, WkIM=8):\n YKHO.size = 0\n YKHO.buckets = [_sfu() for YRbF in range(WkIM)]", "def FIMM(YKHO):\n YKHO.size = 997\n YKHO.hash_set = [None] * YKHO.size", "def FIMM(YKHO):\n YKHO.size = 10000\n YKH...
[ "0.74037224", "0.7025798", "0.69059783", "0.68911815", "0.68485546", "0.6660078", "0.65367204", "0.650115", "0.650115", "0.6499438", "0.646832", "0.64589006", "0.6457175", "0.6432366", "0.6424357", "0.6424357", "0.6424357", "0.64176285", "0.63766193", "0.632741", "0.6280732",...
0.6865993
4
Return a formatted string representation of this hash table.
def zAg0(YKHO): DumB = ['{!r}: {!r}'.format(H5ew, wEf2) for H5ew, wEf2 in YKHO.items()] return '{' + ', '.join(DumB) + '}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n XoRw = MAtg.get_n_best(YKHO._table, max(len(YKHO._table), 1))\n Aofo = []\n for H5ew, BWXx in XoRw.items():\n Aofo.append('P(%s):=%f\\n' % (str(H5ew), BWXx))\n return ''.join(Aofo)[:-1] if len(Aofo) > 0 else ''", "def wHJl(YKHO):\n return 'HashTable({!r})'.format(YKHO.item...
[ "0.77814215", "0.75057065", "0.7503586", "0.74861544", "0.7359343", "0.7330707", "0.7242706", "0.7209188", "0.7207309", "0.71858925", "0.7178411", "0.7178411", "0.7178411", "0.7178411", "0.7178411", "0.7178411", "0.7178411", "0.7178411", "0.7178411", "0.7178411", "0.7178411",...
0.0
-1
Return a string representation of this hash table.
def wHJl(YKHO): return 'HashTable({!r})'.format(YKHO.items())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n jbXL = ''\n for mWFP, BWXx in YKHO.__table__.items():\n jbXL += str(mWFP) + '\\n' + str(BWXx) + '\\n'\n return jbXL", "def wHJl(YKHO):\n return 'HashTable({})'.format(str(YKHO.buckets))", "def zAg0(YKHO):\n XoRw = MAtg.get_n_best(YKHO._table, max(len(YKHO._table), 1))\n ...
[ "0.7585399", "0.7550028", "0.75045323", "0.7424399", "0.7365568", "0.73169637", "0.71784306", "0.71053326", "0.7104455", "0.7056047", "0.7031742", "0.7026082", "0.7025677", "0.7016113", "0.700521", "0.69940746", "0.69775313", "0.69716567", "0.69681686", "0.6953906", "0.693674...
0.79319084
0
Return a list of all values in this hash table.
def hkxX(YKHO): IC2L = [] for mcM9 in YKHO.buckets: for sVq9 in mcM9.items(): IC2L.append(sVq9[1]) return IC2L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hkxX(YKHO):\n return [YKHO[G1Hx] for G1Hx in YKHO.keys()]", "def hkxX(YKHO):\n WKvO = []\n for G1Hx in list(YKHO.keys()):\n WKvO.append(YKHO[G1Hx])\n return WKvO", "def hkxX(YKHO):\n hkxX = []\n for H5ew in YKHO.keys():\n hkxX.append(YKHO[H5ew])\n return hkxX", "def hkx...
[ "0.8135252", "0.8112594", "0.8085648", "0.80784297", "0.80784297", "0.80784297", "0.7986978", "0.7927104", "0.7842868", "0.7802295", "0.7759052", "0.77515906", "0.77483326", "0.7736613", "0.7705094", "0.7681643", "0.76603836", "0.764805", "0.7502727", "0.7489405", "0.7457833"...
0.753664
18
Return a list of all items (keyvalue pairs) in this hash table.
def DumB(YKHO): RZ9F = [] for WE7e in YKHO.buckets: RZ9F.extend(WE7e.items()) return RZ9F
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DumB(YKHO):\n WKvO = []\n for G1Hx in list(YKHO.keys()):\n WKvO.append((G1Hx, YKHO[G1Hx]))\n return WKvO", "def DumB(YKHO):\n return list(zip(YKHO.keys(), YKHO.values()))", "def DumB(YKHO):\n return list(zip(YKHO.keys(), YKHO.values()))", "def DumB(YKHO):\n return [(G1Hx, YKHO[G1...
[ "0.7969277", "0.78762543", "0.78762543", "0.7839336", "0.78322667", "0.78322667", "0.7790361", "0.7790361", "0.7766233", "0.7694919", "0.7624244", "0.7619145", "0.75920576", "0.75920576", "0.75920576", "0.75565696", "0.7553456", "0.7504629", "0.75040257", "0.7496775", "0.7476...
0.7871284
3
calculate area of polygon
def XzAL(j5tF): bNKA = ai9l.partial(EaSx.transform, EaSx.Proj(init='epsg:4326'), EaSx.Proj('+proj=eck4 +lat_0=' + str(j5tF.centroid.y) + ' +lon_0=' + str(j5tF.centroid.x))) RpvI = SZFh(bNKA, j5tF) return oTcM.Uom(RpvI.area, oTcM.SquareMeter)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gdLg(j5tF):\n z1Rg = Rgf5(j5tF)\n P6bq = f4Oi(j5tF[-1], z1Rg)\n Ty9i = f4Oi(j5tF[0], z1Rg)\n jzdc = 0.5 * L3jt(Mxem(P6bq, Ty9i))\n for YRbF in range(0, len(j5tF) - 1):\n P6bq = Ty9i\n Ty9i = f4Oi(j5tF[YRbF + 1], z1Rg)\n jzdc += 0.5 * L3jt(Mxem(P6bq, Ty9i))\n return jzdc",...
[ "0.838024", "0.8332946", "0.83119696", "0.8278338", "0.8132351", "0.7852854", "0.7851663", "0.78332025", "0.78132635", "0.7791441", "0.7746361", "0.77407634", "0.7718457", "0.7704755", "0.7689313", "0.7669272", "0.76399606", "0.75400877", "0.74397665", "0.73758876", "0.737582...
0.78732973
5
Return the interval to the next unavailability check.
def QweG(LeQ0: int) -> float: return fCoM(minutes=LeQ0, seconds=OFkQ).total_seconds()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TfsW(YKHO):\n return int(YKHO.config['interval_of_checking'])", "def boFc():\n pass", "def b_X0(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'check_interval')", "def b_X0(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'check_interval')", "def b_X0(YKHO) -> h8nf[qe4Y.Input[int...
[ "0.7202929", "0.71089166", "0.68150556", "0.66477007", "0.66477007", "0.65991896", "0.64958453", "0.6446387", "0.6409852", "0.6235484", "0.618871", "0.6148308", "0.61434907", "0.61312264", "0.60922515", "0.60757303", "0.607292", "0.60189104", "0.59787947", "0.59632504", "0.59...
0.70462584
2
Create the attributes dict from a SIAEvent.
def EuCu(tvqc: SIAEvent) -> dict[str, ImMB]: E3oo = tvqc.timestamp if tvqc.timestamp else wj6w() return {a_EK: tvqc.ri, _CDy: tvqc.code, EkNM: tvqc.message, Su_7: tvqc.id, Yi1q: E3oo.isoformat() if isinstance(E3oo, qcWV) else E3oo}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IiQB(tvqc: SIAEvent) -> dict[str, ImMB]:\n return {'message_type': tvqc.message_type.value if isinstance(tvqc.message_type, oUog) else tvqc.message_type, 'receiver': tvqc.receiver, 'line': tvqc.line, 'account': tvqc.account, 'sequence': tvqc.sequence, 'content': tvqc.content, 'ti': tvqc.ti, 'id': tvqc.id, '...
[ "0.69846684", "0.6902529", "0.6494896", "0.64512265", "0.6432297", "0.6313962", "0.6125665", "0.61175746", "0.5924921", "0.5920397", "0.58662486", "0.5862455", "0.5812077", "0.58101314", "0.5782121", "0.57471323", "0.573764", "0.5722068", "0.57152414", "0.5710958", "0.5690977...
0.8124081
0
Initialize the ImageTranslator class. Use default test options but could be via commandline. Load and setup the model
def FIMM(YKHO, FsW3=True): y7GR = Vlxd if FsW3 else qfUV y7GR.checkpoints_dir = Hy7s.path.join(oAb3.Path(xAKo).parent.absolute(), y7GR.checkpoints_dir) JHdS = {'load_size': y7GR.load_size, 'crop_size': y7GR.crop_size, 'preprocess': y7GR.preprocess, 'mask': Hy7s.path.join(Hy7s.path.dirname(xAKo), y7GR.mask),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n sWmO = Hy7s.path.join(Hy7s.path.dirname(xAKo), GPtr.vosk_model_dir)\n YKHO.model = wOed(sWmO)\n bo34.info(f'Loaded speech recognition model from {sWmO}')", "def FIMM(YKHO, uqvc: str=None):\n YKHO.img_size = 128\n YKHO.tranform = Ymkf.Compose([Ymkf.Resize((YKHO.img_size, YKHO.img_...
[ "0.70468384", "0.68506277", "0.68373543", "0.6638725", "0.6598074", "0.65940535", "0.6571226", "0.653568", "0.6527748", "0.64348656", "0.63723695", "0.6302592", "0.6269127", "0.62652797", "0.6223265", "0.62133527", "0.6193632", "0.6188107", "0.6173518", "0.6154471", "0.612056...
0.0
-1
Constructs a line in the robot's coordinate system to represent the wall. The line connects the estimated front and back points. This line is published to the /Marker rostopic
def eytH(YKHO): lCHq = PvyL() lCHq.x = epAf.cos(-epAf.pi / 4) * YKHO.front_point lCHq.y = epAf.sin(-epAf.pi / 4) * YKHO.front_point ANJu = PvyL() ANJu.x = epAf.cos(-3 * epAf.pi / 4) * YKHO.back_point ANJu.y = epAf.sin(-3 * epAf.pi / 4) * YKHO.back_point igoX = BatR(type=BatR.LINE_STRIP) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OO4O(YKHO):\n OL_r = YKHO.ids.mapview.get_window_xy_from(igSk, GgQG, YKHO.ids.mapview.zoom)\n ibm2 = YKHO.ids.mapview.get_window_xy_from(TGuP, tk0B, YKHO.ids.mapview.zoom)\n VX1z = [OL_r[0], OL_r[1], ibm2[0], ibm2[1]]\n with YKHO.ids.line.canvas:\n YKHO.ids.line.canvas.clear()\n HRmL(...
[ "0.6869763", "0.64922535", "0.6442461", "0.60172665", "0.59739035", "0.5932236", "0.59138554", "0.59116477", "0.58740014", "0.58395725", "0.5784475", "0.5784208", "0.5781963", "0.57784486", "0.57567674", "0.57567674", "0.57533145", "0.57519233", "0.57227993", "0.57163435", "0...
0.67118496
1
Remove m from untriedMoves and add a new child node for this move. Return the added child node
def WMc8(YKHO, r8hN, KCHu): mWFP = '' if str(r8hN[0]).find('playItem') != -1: if len(r8hN) > 2: if r8hN[1] == 'p': mWFP = KCHu.playerHand[r8hN[2]].Name elif str(r8hN[0]).find('playSupporter') != -1: if len(r8hN) > 2: if r8hN[1] == 'p': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M4sg(YKHO, r8hN, KCHu):\n exwG = o7DN(move=r8hN, parent=YKHO, state=KCHu)\n YKHO.untried_moves.remove(r8hN)\n YKHO.child_nodes.append(exwG)\n return exwG", "def ZIWp(YKHO, r8hN, KCHu):\n exwG = o7DN(move=r8hN, parent=YKHO, state=KCHu)\n YKHO.untriedMoves.remove(r8hN)\n YKHO.childNodes.ap...
[ "0.8013249", "0.795096", "0.795096", "0.74227214", "0.7070273", "0.70642006", "0.6815417", "0.6320943", "0.6197757", "0.5786182", "0.5729174", "0.56762654", "0.5616453", "0.55719686", "0.5411102", "0.53162205", "0.52886", "0.5279109", "0.5279109", "0.5279109", "0.5279109", ...
0.70220196
6
format given timestamp, if no timestamp is given, return a call time string
def DjT6(auAJ=None): if auAJ is None: auAJ = qcWV.datetime.now() return auAJ.strftime('%Y-%m-%d_%H-%M-%S')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ct8j(E3oo=None, format='%Y%m%d-%H%M%S'):\n jmHs = ITS7.strftime(format, ITS7.localtime(E3oo if E3oo else ITS7.time()))\n return jmHs", "def E3oo(FMLJ, E6p5=None):\n return MK1i.strftime(FMLJ, E6p5 or MK1i.gmtime())", "def bpfo(Emd4, E3oo):\n return FdZ9(E3oo).strftime('%Y-%m-%d %H:%M:%S')", "...
[ "0.76393425", "0.7556399", "0.74862665", "0.7289302", "0.71907604", "0.71815753", "0.7058068", "0.69569105", "0.69532424", "0.6924186", "0.68380827", "0.68307835", "0.6799542", "0.677661", "0.67738104", "0.67638355", "0.67638355", "0.6761985", "0.67580783", "0.6744854", "0.67...
0.68645257
10
Create a JWT token representing an access claim to any Django object, discovered by id and ContentType.
def D4q2(YEnM, h9HD=None): if not h9HD: h9HD = gCuF.JWT_AUTH['JWT_EXPIRATION_DELTA'] wzkt = qcWV.utcnow() iWzb = wzkt + h9HD m5r4 = DDS9.objects.get_for_model(YEnM).model eOtH = DvJO.encode({'id': YEnM.id, 'content_type': m5r4, 'permission': 'rw', 'exp': iWzb, 'iat': wzkt, 'nbf': wzkt, 'jti'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fx1x(QePW, CBIr, ihMv):\n RIvc = HZ2G()\n NT__ = fluE(QePW, CBIr, RIvc, expires_in=ihMv, scopes=['user_id', 'email', 'profile'])\n return XphG(NT__, MyjZ(), use_asymmetric_key=True)", "def Cy1J(_E99):\n if _E99 == 'admin':\n Tf5Y = 'admin'\n else:\n Tf5Y = 'peasant'\n wzkt = q...
[ "0.673689", "0.6488388", "0.6478574", "0.6410467", "0.6391189", "0.6283191", "0.62827283", "0.6232166", "0.61912197", "0.6102086", "0.6083244", "0.606837", "0.60568225", "0.5983197", "0.5964632", "0.5957673", "0.5955177", "0.58575815", "0.58516276", "0.58512706", "0.58381796"...
0.76091444
0
This give admins the ability to unban a user. The bot must be a Channel Operator for this command to work.
def JAFo(P_jm, input): if not input.admin: return l5Ny = input.group().split() o1uN = len(l5Ny) if o1uN < 2: return y7GR = l5Ny[1] HHqx = y7GR YwkQ = input.sender if y7GR.startswith('#'): if o1uN < 3: return YwkQ = y7GR HHqx = l5Ny[2] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def unban(YKHO, OaeV, mWFP: str):\n try:\n l_0t = await YKHO.bot.get_bans(OaeV.message.server)\n CBIr = ZOrr.utils.get(l_0t, name=mWFP)\n if CBIr is not None:\n await YKHO.bot.unban(OaeV.message.server, CBIr)\n except ZOrr.Forbidden:\n await YKHO.bot.say('I do not...
[ "0.79887706", "0.75836766", "0.7536529", "0.7529073", "0.7448535", "0.73961204", "0.7323483", "0.7179153", "0.71239245", "0.70542496", "0.7051835", "0.70358706", "0.6873853", "0.68292934", "0.68262166", "0.678508", "0.67546624", "0.67374307", "0.6670195", "0.66440004", "0.663...
0.7174649
8
This gives admins the ability to change the topic.
def rlUa(P_jm, input): if not input.admin: return l5Ny = input.group().split() rlUa = ' '.join(l5Ny[1:]) if rlUa == '': return YwkQ = input.sender P_jm.write(['PRIVMSG', 'ChanServ'], 'TOPIC %s %s' % (input.sender, rlUa)) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rlUa(YKHO, tO9_):\n YKHO.make_topic(tO9_, new_topic=tO9_.args[0])\n YKHO.bot.log.info('Topic changed by ' + tO9_.user)", "def rlUa(YKHO, rlUa):\n YKHO.connection.topic(str(YKHO), rlUa)", "def H2WO():\n rlUa = NCls.topic(QePW.args(0))\n L03z = PZ8r(NCls.topic, record=rlUa)\n L03z.vars.desc...
[ "0.7685089", "0.7295342", "0.7213926", "0.7022198", "0.70087504", "0.6961861", "0.68993086", "0.687016", "0.6716526", "0.6615837", "0.6596852", "0.6591815", "0.64925885", "0.6425334", "0.63696593", "0.6319757", "0.6251143", "0.6229887", "0.6223174", "0.6183888", "0.6155036", ...
0.6542836
12
Turn the light off.
def Z_rv(YKHO, **B2fa): YKHO._client.set_brightness(YKHO._id, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, False)", "def V8X5(YKHO):\n YKHO.turnOff()", "def fnTm(YKHO):\n YKHO._light = 'OFF'", "def Z_rv(YKHO, **B2fa):\n YKHO._light.set_color(0, 0, 0, 0)", "def fnTm(YKHO):\n YKHO._light = 'OFF'", "def Z_rv(YKHO, **B2fa: Any) -> None:\n YKHO._light.turn...
[ "0.9158525", "0.88893706", "0.88740003", "0.8852116", "0.8842971", "0.87965184", "0.864986", "0.85981315", "0.85843927", "0.85641575", "0.8526551", "0.8403609", "0.83990663", "0.8292084", "0.82411224", "0.81950665", "0.8189084", "0.8162265", "0.8066985", "0.8010293", "0.80100...
0.8271316
14
Return the state attributes.
def R1i3(YKHO): nPrm = {} if YKHO._is_dimmable and YKHO._brightness_pct: nPrm = {mRNu: YKHO._brightness_pct} nPrm.update({'operation_mode': YKHO.operation_mode, 'rssi': YKHO._rssi, 'occupancy': YKHO._occupancy, 'wattage_override': YKHO._wattage_override, 'id': YKHO._id}) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._attributes", "def upgy(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._attributes", "def upgy(YKHO)...
[ "0.8953404", "0.8953404", "0.85239846", "0.8366765", "0.8366765", "0.8363429", "0.83362615", "0.8334551", "0.8310377", "0.8292682", "0.8289349", "0.8289349", "0.82871646", "0.82871646", "0.82871646", "0.82871646", "0.82871646", "0.82871646", "0.82871646", "0.82871646", "0.828...
0.7612127
58
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, vhjv): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Retrieves the value from the WindowedValue. The Python SDK passes elements as WindowedValues, which may not match the coder for that particular PCollection.
def QKDj(YKHO, geyT: Union[WindowedValue, Any]) -> ImMB: while isinstance(geyT, ILH6): geyT = geyT.value return geyT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def umPh(YKHO):\n return YKHO._value", "def UnfG(YKHO):\n return YKHO._value", "def Zmkp(YKHO):\n return YKHO._value", "def Zmkp(YKHO):\n return YKHO._value", "def Zmkp(YKHO):\n return YKHO._value", "def Zmkp(YKHO):\n return YKHO._value", "def Zmkp(YKHO):\n return YKHO._value", "...
[ "0.5928007", "0.5877326", "0.5872794", "0.5872794", "0.5867571", "0.5867571", "0.5867571", "0.5794031", "0.5769353", "0.5764415", "0.5751704", "0.5751704", "0.5751704", "0.57337356", "0.57337356", "0.57228184", "0.57213354", "0.5714421", "0.5714421", "0.5714421", "0.5714421",...
0.6499704
0
Returns the OutputSampler for the given output.
def os6c(YKHO, rDf7: str, wqHq: int) -> h8nf[FlqT]: try: with YKHO._samplers_lock: o4Jx = YKHO._samplers_by_output[rDf7] return o4Jx[wqHq] except KeyError: vzeF.warning(f'Out-of-bounds access for transform "{rDf7}" ' + 'and output "{output_index}" OutputSampler. This may ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vHuM(YKHO):\n return YKHO.sampler", "def cpZI(YKHO, *qIxc):\n return hPFK.Channel_getSampler(YKHO, *qIxc)", "def kkFl(YKHO):\n return None", "def hlel(YKHO):\n try:\n return YKHO.outputs[-1]\n except IndexError:\n pass\n raise ValueError('The sample method has not been cal...
[ "0.6972826", "0.634131", "0.59927243", "0.59617037", "0.58354443", "0.57917243", "0.557195", "0.5525515", "0.5446687", "0.54157025", "0.54050374", "0.540233", "0.5353887", "0.53054255", "0.53054255", "0.53054255", "0.53054255", "0.53054255", "0.53054255", "0.52717966", "0.524...
0.7226501
0
Creates the OutputSamplers for the given PTransform. This initializes the samplers only once per PCollection Id. Note that an OutputSampler is created per PCollection and an ElementSampler is created per OutputSampler. This means that multiple ProcessBundles can and will share the same ElementSampler for a given PColle...
def gsHh(YKHO, rDf7: str, jXCX: beam_fn_api_pb2.ProcessBundleDescriptor, zc1k) -> x1iM[FlqT]: Bv2b = jXCX.transforms[rDf7] with YKHO._samplers_lock: if rDf7 in YKHO._samplers_by_output: return YKHO._samplers_by_output[rDf7] for ZX7Y in Bv2b.outputs.values(): if ZX7Y in YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zn34(YKHO, J0EE):\n YKHO._derived_properties['samplers'] = J0EE\n YKHO.nsamplers = len(YKHO.samplers)", "def ITwS(YKHO, g4y1, x6A0, Nj_R=None, m8RV=None, pnDX=None, VYzn=None, MdXR=None, KWkP=None, fFFw=None, XZ81=None):\n pass", "def baUB(YKHO):\n raise NotImplementedError", "def UWbX(QOe9, ...
[ "0.5575458", "0.55535567", "0.54327726", "0.5358295", "0.5299804", "0.52995074", "0.5276758", "0.5269046", "0.5239582", "0.5227583", "0.5167421", "0.5124479", "0.50449735", "0.497701", "0.4879007", "0.48534706", "0.48281923", "0.48171192", "0.47992283", "0.4791926", "0.477551...
0.7684812
0
make a horizontal line at the given height and return.
def DAMg(a1PO, exwG, H2v2): DvkA(a1PO, exwG * H2v2) gc7J(a1PO, exwG) DvkA(a1PO, -exwG * H2v2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QB4v(YKHO, WKvO, LVAh, TVTK, qfpW):\n YKHO.rect(WKvO, LVAh, TVTK, 1, qfpW, fill=True)", "def QB4v(YKHO, WKvO, LVAh, u54L, qfpW):\n YKHO.fill_rect(WKvO, LVAh, u54L, 1, qfpW)", "def uVpQ(a1PO, exwG, MKlR):\n D5g7(a1PO)\n euzn(a1PO)\n Gcbu(a1PO, MKlR)\n rLdf(a1PO)\n D5g7(a1PO)\n Gcbu(a...
[ "0.7865199", "0.73905563", "0.7142556", "0.6694721", "0.6600058", "0.6524005", "0.6522874", "0.640309", "0.6377431", "0.6368514", "0.6286061", "0.6259979", "0.62285596", "0.61624163", "0.61415577", "0.6021781", "0.6020568", "0.6005226", "0.59550995", "0.5948636", "0.5909656",...
0.0
-1
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.CompletedActivitiesModel(id=YKHO.USER_1_ID, exploration_ids=YKHO.EXPLORATION_IDS_1, collection_ids=YKHO.COLLECTION_IDS_1, story_ids=YKHO.STORY_IDS_1, learnt_topic_ids=YKHO.TOPIC_IDS_1).put() PeTa.CompletedActivitiesModel(id=YKHO.USER_2_ID, exploration_ids=YKHO.EX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431468", "0.72336006", "0.7151766", "0.7148876", "0.7084903", "0.70493686", "0.7039855", "0.7011619", "0.69870436", "0.6986593", "0.6972773", "0.69417924", "0.69251126", "0.68905944", "0.68863076", "0.6883448", "0.68774414", "0.6876042", "0.6874921", "0.6874583", "0.68645...
0.0
-1
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.IncompleteActivitiesModel(id=YKHO.USER_1_ID, exploration_ids=YKHO.EXPLORATION_IDS_1, collection_ids=YKHO.COLLECTION_IDS_1, story_ids=YKHO.STORY_IDS_1, partially_learnt_topic_ids=YKHO.TOPIC_IDS_1).put() PeTa.IncompleteActivitiesModel(id=YKHO.USER_2_ID, exploration...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431468", "0.72336006", "0.7151766", "0.7148876", "0.7084903", "0.70493686", "0.7039855", "0.7011619", "0.69870436", "0.6986593", "0.6972773", "0.69417924", "0.69251126", "0.68905944", "0.68863076", "0.6883448", "0.68774414", "0.6876042", "0.6874921", "0.6874583", "0.68645...
0.0
-1
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.LearnerGoalsModel(id=YKHO.USER_1_ID, topic_ids_to_learn=YKHO.TOPIC_IDS, topic_ids_to_master=[]).put() PeTa.LearnerGoalsModel(id=YKHO.USER_2_ID, topic_ids_to_learn=YKHO.TOPIC_IDS, topic_ids_to_master=[], deleted=True).put()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431993", "0.72342557", "0.71516097", "0.71499354", "0.70848846", "0.70497024", "0.70391804", "0.7012227", "0.6987798", "0.69866395", "0.69731295", "0.6942106", "0.6925338", "0.689116", "0.6885926", "0.68834615", "0.68768346", "0.6876335", "0.68754286", "0.68749166", "0.68...
0.0
-1
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.LearnerPlaylistModel(id=YKHO.USER_ID_1, exploration_ids=YKHO.EXPLORATION_IDS_1, collection_ids=YKHO.COLLECTION_IDS_1).put() PeTa.LearnerPlaylistModel(id=YKHO.USER_ID_2, exploration_ids=YKHO.EXPLORATION_IDS_1, collection_ids=YKHO.COLLECTION_IDS_1, deleted=True).pu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431468", "0.72336006", "0.7151766", "0.7148876", "0.7084903", "0.70493686", "0.7039855", "0.7011619", "0.69870436", "0.6986593", "0.6972773", "0.69417924", "0.69251126", "0.68905944", "0.68863076", "0.6883448", "0.68774414", "0.6876042", "0.6874921", "0.6874583", "0.68645...
0.6496369
73
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() YKHO.signup(YKHO.USER_A_EMAIL, YKHO.USER_A_USERNAME) YKHO.user_a_id = YKHO.get_user_id_from_email(YKHO.USER_A_EMAIL) YKHO.signup(YKHO.USER_B_EMAIL, YKHO.USER_B_USERNAME) YKHO.user_b_id = YKHO.get_user_id_from_email(YKHO.USER_B_EMAIL) YKHO.save_new_valid_ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431468", "0.72336006", "0.7151766", "0.7148876", "0.7084903", "0.70493686", "0.7039855", "0.7011619", "0.69870436", "0.6986593", "0.6972773", "0.69417924", "0.69251126", "0.68905944", "0.68863076", "0.6883448", "0.68774414", "0.6876042", "0.6874921", "0.6874583", "0.68645...
0.0
-1
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.UserEmailPreferencesModel(id=YKHO.USER_ID_1).put() PeTa.UserEmailPreferencesModel(id=YKHO.USER_ID_2, deleted=True).put() PeTa.UserEmailPreferencesModel(id=YKHO.USER_ID_3, site_updates=False, editor_role_notifications=False, feedback_message_notifications=Fals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431468", "0.72336006", "0.7151766", "0.7148876", "0.7084903", "0.70493686", "0.7039855", "0.7011619", "0.69870436", "0.6986593", "0.6972773", "0.69251126", "0.68905944", "0.68863076", "0.6883448", "0.68774414", "0.6876042", "0.6874921", "0.6874583", "0.68645203", "0.68444...
0.69417924
11
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.UserSettingsModel(id=YKHO.USER_ID_1, email='some@email.com').put() PeTa.UserSettingsModel(id=YKHO.USER_ID_2, email='some_other@email.com').put() PeTa.UserSubscriptionsModel(id=YKHO.USER_ID_1).put() for ebWO in YKHO.CREATOR_IDS: PeTa.UserSettingsMo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431468", "0.72336006", "0.7151766", "0.7148876", "0.7084903", "0.70493686", "0.7039855", "0.7011619", "0.69870436", "0.6986593", "0.6972773", "0.69417924", "0.69251126", "0.68905944", "0.68863076", "0.6883448", "0.68774414", "0.6876042", "0.6874921", "0.6874583", "0.68645...
0.66472024
49
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.UserSettingsModel(id=YKHO.USER_ID_1, email='some@email.com').put() PeTa.UserSettingsModel(id=YKHO.USER_ID_2, email='some_other@email.com').put() PeTa.UserSubscribersModel(id=YKHO.USER_ID_1, subscriber_ids=[YKHO.USER_ID_3]).put() PeTa.UserSubscribersModel(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431468", "0.72336006", "0.7151766", "0.7148876", "0.7084903", "0.70493686", "0.7039855", "0.7011619", "0.69870436", "0.6986593", "0.6972773", "0.69417924", "0.69251126", "0.68905944", "0.68863076", "0.6883448", "0.68774414", "0.6876042", "0.6874921", "0.6874583", "0.68645...
0.6750266
38
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.UserRecentChangesBatchModel(id=YKHO.USER_ID_1).put() PeTa.UserRecentChangesBatchModel(id=YKHO.USER_ID_2, deleted=True).put()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431219", "0.72328997", "0.71506834", "0.7148078", "0.70840037", "0.7049671", "0.7038679", "0.70115983", "0.69866675", "0.6986276", "0.6972337", "0.694187", "0.6925343", "0.68907785", "0.68858373", "0.6881855", "0.6876031", "0.68754953", "0.6875467", "0.68742645", "0.68656...
0.0
-1
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.UserStatsModel(id=YKHO.USER_ID_1, impact_score=YKHO.USER_1_IMPACT_SCORE, total_plays=YKHO.USER_1_TOTAL_PLAYS, average_ratings=YKHO.USER_1_AVERAGE_RATINGS, num_ratings=YKHO.USER_1_NUM_RATINGS, weekly_creator_stats_list=YKHO.USER_1_WEEKLY_CREATOR_STATS_LIST).put() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.74295896", "0.7232164", "0.7149358", "0.71476305", "0.7083519", "0.7049069", "0.7038129", "0.7011422", "0.6986197", "0.6985603", "0.6972157", "0.69410336", "0.69240844", "0.688938", "0.6885475", "0.6881373", "0.687593", "0.6874517", "0.687417", "0.687369", "0.68645084", ...
0.0
-1
Test if export_data works when user is in data store.
def Ulr8(YKHO) -> None: gFsc = PeTa.UserStatsModel.export_data(YKHO.USER_ID_1) Zwka = {'impact_score': YKHO.USER_1_IMPACT_SCORE, 'total_plays': YKHO.USER_1_TOTAL_PLAYS, 'average_ratings': YKHO.USER_1_AVERAGE_RATINGS, 'num_ratings': YKHO.USER_1_NUM_RATINGS, 'weekly_creator_stats_list': YKHO.USER_1_WEEKLY_CREATOR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sugy(YKHO) -> None:\n gFsc = PeTa.LearnerPlaylistModel.export_data(YKHO.USER_ID_1)\n AZHA = {'exploration_ids': YKHO.EXPLORATION_IDS_1, 'collection_ids': YKHO.COLLECTION_IDS_1}\n YKHO.assertEqual(AZHA, gFsc)", "def kppX(YKHO) -> None:\n gFsc = PeTa.UserSubscriptionsModel.export_data(YKHO.USER_ID_...
[ "0.6838902", "0.65668905", "0.655504", "0.6553854", "0.65019727", "0.6487359", "0.63924736", "0.6354943", "0.6343474", "0.6339543", "0.63308877", "0.6321284", "0.63162756", "0.62883615", "0.62426114", "0.6226335", "0.6204801", "0.6124794", "0.6095454", "0.6032656", "0.6020608...
0.6661535
1
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.UserQueryModel(id=YKHO.QUERY_1_ID, submitter_id=YKHO.USER_ID_1).put() PeTa.UserQueryModel(id=YKHO.QUERY_2_ID, submitter_id=YKHO.USER_ID_2, deleted=True).put() PeTa.UserQueryModel(id=YKHO.QUERY_3_ID, submitter_id=YKHO.USER_ID_1).put()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431562", "0.7233536", "0.7152321", "0.71499455", "0.70850384", "0.70485115", "0.7039308", "0.7010934", "0.6987078", "0.69863683", "0.6971666", "0.6941314", "0.69256526", "0.68903524", "0.68852496", "0.6883963", "0.6876665", "0.68765515", "0.6875273", "0.6874537", "0.68642...
0.0
-1
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.UserBulkEmailsModel(id=YKHO.USER_ID_1).put() PeTa.UserBulkEmailsModel(id=YKHO.USER_ID_2, deleted=True).put()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431468", "0.72336006", "0.7151766", "0.7148876", "0.7084903", "0.70493686", "0.7039855", "0.7011619", "0.69870436", "0.6986593", "0.6972773", "0.69417924", "0.69251126", "0.68905944", "0.68863076", "0.6883448", "0.68774414", "0.6876042", "0.6874921", "0.6874583", "0.68645...
0.0
-1
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.UserContributionProficiencyModel(id='%s.%s' % (YKHO.SCORE_CATEGORY_1, YKHO.USER_1_ID), user_id=YKHO.USER_1_ID, score_category=YKHO.SCORE_CATEGORY_1, score=1.5, onboarding_email_sent=False).put() PeTa.UserContributionProficiencyModel(id='%s.%s' % (YKHO.SCORE_CATEG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.7431219", "0.72328997", "0.71506834", "0.7148078", "0.70840037", "0.7049671", "0.7038679", "0.70115983", "0.69866675", "0.6986276", "0.6972337", "0.694187", "0.6925343", "0.68907785", "0.68858373", "0.6881855", "0.6876031", "0.68754953", "0.6875467", "0.68742645", "0.68656...
0.0
-1
Set up user models in datastore for use in testing.
def FCbF(YKHO) -> None: super().setUp() PeTa.PendingDeletionRequestModel(id=YKHO.USER_1_ID, email=YKHO.USER_1_EMAIL).put()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}", "def FCbF(YKHO):\n NCls.create_all()\n YKHO.user = mv1M(user_name='john_doe', email='johndoe@example.com', passwor...
[ "0.74295896", "0.7232164", "0.7149358", "0.71476305", "0.7083519", "0.7049069", "0.7038129", "0.7011422", "0.6986197", "0.6985603", "0.6972157", "0.69410336", "0.69240844", "0.688938", "0.6885475", "0.6881373", "0.687593", "0.6874517", "0.687417", "0.687369", "0.68645084", ...
0.0
-1
checks if the user is admin user
def _Kb1(YKHO, NtEF): hAVj = tqlg() DpUl = hAVj.cursor() DpUl.execute('SELECT * FROM my_users WHERE username=%(username)s', {'username': NtEF}) Ylbp = DpUl.fetchone() if Ylbp[5].lower() == 'admin': return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Kb1(CBIr):\n return CBIr.is_authenticated and CBIr.id == P4t4.config.get('ADMIN')", "def ECYw(YKHO):\n if 'is_admin' in YKHO._properties and YKHO.is_admin == 'YES':\n return True\n return False", "def Jo_v(CBIr):\n return CBIr in PDtd", "def _Kb1(YKHO, CBIr):\n return CBIr.name in ...
[ "0.84816617", "0.846122", "0.84474593", "0.8412896", "0.8309198", "0.8298666", "0.82882744", "0.8285803", "0.8263293", "0.8252171", "0.8246116", "0.81974447", "0.81812996", "0.81782997", "0.8167891", "0.8167891", "0.8163231", "0.8129034", "0.81184965", "0.80910105", "0.807883...
0.7789352
36