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
return the time difference bewteen two datetime objects in seconds (incl. fractions). Exceptions (like on improper data types) fall through.
def TAxb(Pf1l, NwlP): RA_F = NwlP - Pf1l import datetime if not isinstance(RA_F, datetime.timedelta): raise TypeError("difference between '%s' and '%s' is not a .timedelta" % (type(Pf1l), type(NwlP))) C6wh = RA_F.seconds + RA_F.microseconds / 1000000.0 return C6wh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def krEI(nEj9: datetime.datetime, t0fp: datetime.datetime):\n yk4i = nEj9 - t0fp\n return yk4i.total_seconds()", "def C61p(YKHO, Elif):\n return (YKHO.datetime - Elif.datetime).total_seconds()", "def TAxb(YKHO, n2Q1, SpII):\n yk4i = abs(YKHO.time(SpII) - YKHO.time(n2Q1))\n return yk4i.seconds", ...
[ "0.7903466", "0.7829622", "0.77348053", "0.7671201", "0.7627727", "0.7588647", "0.7566857", "0.74054444", "0.73873615", "0.7349861", "0.73145807", "0.726665", "0.7169485", "0.7144512", "0.7060397", "0.7045482", "0.7023364", "0.70144457", "0.7013068", "0.6984239", "0.6963743",...
0.6116581
89
Compares two paths for equality after normalizing them with os.path.normpath
def xyid(daXS, AUB0): return Hy7s.path.normpath(daXS) == Hy7s.path.normpath(AUB0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eKGA(daXS, AUB0):\n daXS = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.path.normpath(daXS)))\n AUB0 = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.path.normpath(AUB0)))\n return daXS == AUB0", "def ZpEF(R7cN, RDvD):\n return 0", "def HlQ6(jzdc, Fg_i):\n D9cM = Hy7s.path.normpath(jzdc)\n edvT =...
[ "0.7679596", "0.719454", "0.68425304", "0.6810652", "0.6768181", "0.6730416", "0.6705668", "0.6621615", "0.6621615", "0.65844584", "0.65666604", "0.65086794", "0.64699715", "0.645009", "0.63849807", "0.63841933", "0.63459176", "0.63168657", "0.62586874", "0.62440246", "0.6237...
0.84637016
0
Return `repr(self)`, a computerreadable string. representation of this object.
def wHJl(YKHO): return f'NearEarthObject(designation={YKHO.designation!r},name={YKHO.name!r}, diameter={YKHO.diameter:.3f}, hazardous={YKHO.hazardous!r})'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return YKHO.__str__()", "def wHJl(YKHO):\n return repr(str(YKHO))", "def wHJl(YKHO) -> str:\n return YKHO.__str__()", "def wHJl(YKHO) -> str:\n return YKHO.__str__()", "def wHJl(YKHO) -> str:\n return YKHO.__str__()", "def wHJl(YKHO) -> str:\n return YKHO.__str__()", ...
[ "0.9033233", "0.89211714", "0.89140177", "0.89140177", "0.89140177", "0.89140177", "0.89140177", "0.89140177", "0.89140177", "0.89126605", "0.89126605", "0.890488", "0.88883185", "0.88883185", "0.88883185", "0.88711125", "0.88507843", "0.88507843", "0.8830939", "0.8830939", "...
0.0
-1
Return `repr(self)`, a computerreadable. string representation of this object.
def wHJl(YKHO): return f'CloseApproach(time={YKHO.time_str!r}, distance={{self.distance:.2f}}, velocity={YKHO.velocity:.2f}, neo={YKHO.neo!r})'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return YKHO.__str__()", "def wHJl(YKHO) -> str:\n return YKHO.to_string()", "def wHJl(YKHO) -> str:\n return YKHO.__str__()", "def wHJl(YKHO) -> str:\n return YKHO.__str__()", "def wHJl(YKHO) -> str:\n return YKHO.__str__()", "def wHJl(YKHO) -> str:\n return YKHO.__str...
[ "0.90195096", "0.8918114", "0.89180624", "0.89180624", "0.89180624", "0.89180624", "0.89180624", "0.89180624", "0.89180624", "0.89081377", "0.889862", "0.889862", "0.8876613", "0.8876613", "0.8876613", "0.8873204", "0.8873204", "0.8862635", "0.88493824", "0.88185316", "0.8818...
0.0
-1
Returns DraftInstrumentVersions that match the specified criteria.
def neBz(Emd4, vgXP=0, qoqK=None, CBIr=None, **jMtJ): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(YKHO, L6MF):\n for DpZH in L6MF:\n if YKHO.match(DpZH):\n yield DpZH", "def ZhLJ(Emd4):\n return '\\n SELECT card_id, edition.releaseDate\\n FROM card\\n INNER JOIN edition ON card.edition = edition.code\\n WHERE card.name = %(name)s\...
[ "0.573287", "0.56327736", "0.54601985", "0.5399662", "0.53961045", "0.52060163", "0.50637394", "0.50512934", "0.5001994", "0.4947207", "0.48961732", "0.4885575", "0.48843285", "0.48828256", "0.4875747", "0.48500675", "0.4846234", "0.4841417", "0.4840543", "0.48207355", "0.482...
0.0
-1
The Unique Identifier that represents this DraftInstrumentVersion in the datastore. Read only.
def PObu(YKHO): return YKHO._uid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qxeD(YKHO):\n return '{}-{}'.format(YKHO.document_version.uuid, YKHO.pk)", "def mljj(YKHO):\n return YKHO._version_id", "def mljj(YKHO) -> str:\n return qe4Y.get(YKHO, 'version_id')", "def unpH(YKHO):\n fUpG = YKHO.query('ver')\n return f'{YKHO.name} {fUpG}'", "def Gwav(YKHO):\n retur...
[ "0.7917463", "0.7759876", "0.7624611", "0.75177765", "0.7299866", "0.7299866", "0.7299866", "0.7259629", "0.72110575", "0.72022873", "0.7198608", "0.7198608", "0.7198608", "0.7198608", "0.7198608", "0.7195071", "0.7191265", "0.71716094", "0.71716094", "0.7163277", "0.71629804...
0.0
-1
The Common Instrument Definition of this Instrument.
def q_DO(YKHO): return YKHO._definition
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YKiD(YKHO):\n return YKHO.project_data['instrument']", "def rtzZ(YKHO):\n return YKHO.__instrument", "def pHIR(YKHO) -> str:\n return YKHO._instrument_name", "def JBZA(YKHO):\n return YKHO.__common_info.description", "def X7Bh(YKHO):\n raise NotImplementedError()", "def KB4z(YKHO):\n ...
[ "0.64155763", "0.62703687", "0.6050179", "0.6029724", "0.5975362", "0.5915839", "0.59143734", "0.5825838", "0.58125347", "0.5786569", "0.5786569", "0.5763115", "0.57469815", "0.56660014", "0.56644404", "0.5648408", "0.5645796", "0.564352", "0.56301683", "0.5612277", "0.560874...
0.0
-1
The Common Instrument Definition of this Instrument.
def GDFs(YKHO): if YKHO._definition: return HIV_(YKHO._definition) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YKiD(YKHO):\n return YKHO.project_data['instrument']", "def rtzZ(YKHO):\n return YKHO.__instrument", "def pHIR(YKHO) -> str:\n return YKHO._instrument_name", "def JBZA(YKHO):\n return YKHO.__common_info.description", "def X7Bh(YKHO):\n raise NotImplementedError()", "def KB4z(YKHO):\n ...
[ "0.6419149", "0.6273303", "0.60518086", "0.60295284", "0.597713", "0.5917703", "0.59166795", "0.5829151", "0.5814193", "0.5789031", "0.5789031", "0.5762258", "0.5748249", "0.56689256", "0.56669354", "0.5651353", "0.5645909", "0.5645598", "0.56324947", "0.5611892", "0.5611825"...
0.54104966
34
The Common Instrument Definition of this Instrument.
def yTDD(YKHO): if YKHO._definition: return R6W1(YKHO._definition) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YKiD(YKHO):\n return YKHO.project_data['instrument']", "def rtzZ(YKHO):\n return YKHO.__instrument", "def pHIR(YKHO) -> str:\n return YKHO._instrument_name", "def JBZA(YKHO):\n return YKHO.__common_info.description", "def X7Bh(YKHO):\n raise NotImplementedError()", "def KB4z(YKHO):\n ...
[ "0.64155763", "0.62703687", "0.6050179", "0.6029724", "0.5975362", "0.5915839", "0.59143734", "0.5825838", "0.58125347", "0.5786569", "0.5786569", "0.5763115", "0.57469815", "0.56660014", "0.56644404", "0.5648408", "0.5645796", "0.564352", "0.56301683", "0.5612277", "0.560874...
0.0
-1
The date this DraftInstrumentVersion was created. Read only.
def JjkJ(YKHO): return YKHO._date_created
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cbc0(YKHO):\n return YKHO.__create_date", "def Cbc0(YKHO):\n return YKHO._create_date", "def a0GP(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_date')", "def a0GP(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_date')", "def a0GP(YKHO):\n return YKHO._created_date", "def a0GP(YKHO):\n ...
[ "0.8075672", "0.8025181", "0.7809646", "0.7809646", "0.77311134", "0.77311134", "0.77311134", "0.77311134", "0.77311134", "0.77085906", "0.7701061", "0.77008253", "0.77008253", "0.77008253", "0.77008253", "0.76992023", "0.76896375", "0.76792836", "0.7669375", "0.76607025", "0...
0.7641
21
The username or application that last modified this DraftInstrumentVersion.
def YgMu(YKHO): return YKHO._modified_by
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TM74(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_modified_by')", "def TM74(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_modified_by')", "def TM74(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_modified_by')", "def TM74(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_modified_by')", "def TM74(YKHO) ...
[ "0.7202321", "0.7202321", "0.7202321", "0.7202321", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", "0.68684083", ...
0.64017606
53
The date the DraftInstrumentVersion was last modified.
def KK98(YKHO): return YKHO._date_modified
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lOhs(YKHO):\n return YKHO._modified_date", "def H89G(YKHO, YEnM):\n return YKHO.get_version(YEnM).modified", "def CHQE(YKHO):\n return YKHO._last_modified_date", "def CHQE(YKHO):\n return YKHO._last_modified_date", "def mfCm(YKHO):\n return YKHO.history.first().history_date", "def osIs...
[ "0.83205503", "0.8016598", "0.79815257", "0.79815257", "0.780935", "0.7681116", "0.7670457", "0.7629761", "0.7598254", "0.75696415", "0.75696415", "0.75696415", "0.75696415", "0.75556976", "0.7531761", "0.7517982", "0.7494686", "0.74938685", "0.74938685", "0.74757457", "0.747...
0.81066793
1
The CalculationSet associated with this DraftInstrumentVersion. Read only.
def QV4X(YKHO): from .draftcalculationset import DraftCalculationSet pij0 = DraftCalculationSet.get_implementation().find(draft_instrument_version=YKHO.uid, limit=1) if pij0: return pij0[0] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xeQH(YKHO):\n if not YKHO:\n return lOAY([YKHO])\n else:\n return KPxj([SV1q(YRbF) for YRbF in YKHO]).map(C52j.sum)", "def hevy(YKHO) -> x1iM[dict]:\n return YKHO.evaluation_set_client.get_evaluation_sets()", "def wDWA(YKHO) -> float:\n return YKHO._data_set", "def IyQN(YKHO):\n...
[ "0.6098007", "0.59112483", "0.58507603", "0.58066654", "0.56178004", "0.56178004", "0.56178004", "0.5542534", "0.5431419", "0.54309684", "0.5425665", "0.5399161", "0.5385734", "0.5349406", "0.5324104", "0.53051215", "0.52942234", "0.5290466", "0.5290466", "0.5289952", "0.5255...
0.7838129
0
Removes this DraftInstrumentVersion from the datastore.
def PTpj(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO, DpZH=None, **B2fa):\n raise NotImplementedError('delete not implemented')", "def Q7K7(YKHO) -> None:\n ...", "def PTpj(YKHO):\n if YKHO._is_draft:\n raise DDUq('Draft versions of structure sets cannot be deleted')\n YKHO._structure_set_versions.delete(YKHO._version_id)", "de...
[ "0.6053045", "0.59241927", "0.58853596", "0.58481026", "0.58262473", "0.5821716", "0.58213574", "0.57493633", "0.57040125", "0.5698102", "0.56557894", "0.5646688", "0.56231076", "0.5615851", "0.55795497", "0.55770147", "0.55610156", "0.5558653", "0.5527016", "0.5527016", "0.5...
0.0
-1
Returns a unicode string that represents this object, suitable for use in humanvisible places.
def y0hN(YKHO): if YKHO.definition: return brQJ(YKHO.definition['title']) else: return YKHO.uid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(YKHO) -> QMSQ:\n ...", "def Sa1R(YKHO) -> QMSQ:\n ...", "def zAg0(YKHO):\n if rIxU:\n return YKHO.__unicode__()\n else:\n return QMSQ(YKHO).encode(YKHO.call_args['encoding'])", "def zAg0(YKHO):\n return QMSQ(YKHO).encode('ascii')", "def zAg0(YKHO):\n return QMSQ(YKH...
[ "0.8214121", "0.8214121", "0.79631674", "0.7940475", "0.7940475", "0.79282755", "0.79255164", "0.79255164", "0.79255164", "0.7809833", "0.77629775", "0.7690603", "0.7690603", "0.7690603", "0.7690603", "0.7690603", "0.7690603", "0.7690603", "0.76772565", "0.76564574", "0.76134...
0.0
-1
It will return top 'k' profiles based on highest rating and number of ratings greated than the defined threshold irrespective of User ID, If value of K is greater than the number of profile which matches the given criteria, then it is just going to return maximum profile matching the given criteria.
def sLL9(d0Qf, u6lM, gwAu, G1Hx): return u6lM[(u6lM['number of rating'] > gwAu) & (u6lM['Rating'] > 9)].head(G1Hx).index
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F3b1(YKHO, uJjO, G1Hx=5, **B2fa):\n QpfX = None\n if 'context' in B2fa:\n QpfX = B2fa['context']\n elif 'timestamp' in B2fa:\n E3oo = B2fa['timestamp']\n QpfX = YKHO.ctxabs.retrieve_context(E3oo)\n nEME = YKHO.include_known\n if 'include_known' in B2fa:\n nEME = B2fa[...
[ "0.68795204", "0.64008206", "0.6377234", "0.63211215", "0.6277723", "0.62153745", "0.6076999", "0.6068659", "0.6045857", "0.6017989", "0.60060024", "0.59972864", "0.5979344", "0.5965066", "0.5909947", "0.5906465", "0.5889224", "0.58857775", "0.5870902", "0.58602875", "0.58238...
0.73464304
0
This function retrieves a specific forum.
def fbl9(Emd4, id): return GhOX.query(nWBk).filter(nWBk.forum_id == id).first()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N_aO(YKHO, Vadb):\n for Gddr in Vadb:\n YKHO.speak(Gddr.get_name(), wait=True)\n _hkX = YKHO.get_response(dialog='forum.discussions')\n if _hkX.lower() in ('si', 'sí', 'yes'):\n return Gddr\n return None", "def Gddr():\n AdpB = NCls.execute('SELECT topic FROM topics_f...
[ "0.7405555", "0.72958386", "0.7232337", "0.7211207", "0.6596101", "0.62677646", "0.61822975", "0.613689", "0.6104253", "0.5952089", "0.5950069", "0.58853227", "0.5880736", "0.5864017", "0.5645187", "0.5547888", "0.5523314", "0.55174154", "0.55000764", "0.5499892", "0.54860914...
0.7203822
4
Parse and return commandline arguments.
def YvUC(): wvEv = j1Jz.ArgumentParser(prog=TpAh, description=hAYH, add_help=False, formatter_class=j1Jz.RawDescriptionHelpFormatter) ZclI = wvEv.add_argument_group(title='player package/class specifications (positional arguments)') ZclI.add_argument('player_loc', metavar='player', help='location of your Pl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uvp4(E0cB):\n wvEv = j1Jz.ArgumentParser(description=__doc__)\n Ltpw = wvEv.parse_args(E0cB[1:])\n return Ltpw", "def dCXb():\n return wvEv.parse_args()", "def dCXb(YKHO):\n return YKHO.main_parser.parse_args()", "def gGZX(YKHO):\n return YKHO._parser.parse_args()", "def dCXb():\n ...
[ "0.7879982", "0.77798426", "0.7737394", "0.7698661", "0.7661945", "0.76037544", "0.7589702", "0.7528022", "0.75182015", "0.75092065", "0.75044215", "0.75029117", "0.74978155", "0.74640363", "0.74517053", "0.7436857", "0.74315125", "0.74038994", "0.74002624", "0.7395436", "0.7...
0.0
-1
Given a string, extracts only the numbers.
def wHxI(JZZu): OOlg = S3ys(JZZu, [':']) OOlg = ZbWC.match('[0-9]*', OOlg) if OOlg: return OOlg[0] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHxI(vIwR):\n return [int(KCHu) for KCHu in vIwR.split() if KCHu.isdigit()]", "def VAwO(vIwR, tW6W=False):\n if tW6W == False:\n _Gjm = ZbWC.compile('[0-9]+')\n else:\n _Gjm = ZbWC.compile('[0-9]')\n mSrU = ZbWC.findall(_Gjm, vIwR)\n return [int(GPal) for GPal in mSrU]", "def Y...
[ "0.87263876", "0.8198055", "0.7933477", "0.78818256", "0.7728537", "0.7654163", "0.76459014", "0.7644756", "0.7633428", "0.7537841", "0.7337762", "0.72242856", "0.71842355", "0.7178565", "0.7166436", "0.71338385", "0.7077122", "0.70408803", "0.6988688", "0.6939155", "0.690703...
0.76814556
5
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None hxyc = qRGs.models.destroy_cloned_entity_info_proto_cloned_entity.DestroyClonedEntityInfoProto_ClonedEntity.from_dictionary(cmPJ.get('clonedEntity')) if cmPJ.get('clonedEntity') else None ylk2 = cmPJ.get('clonedEntityStatus') VCGL = cmPJ.get('de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
Gets the replication group instance details.
def rMJv(YKHO, iCzB): return YKHO.conn.get(url='dashboard/replicationgroups/{0}'.format(iCzB))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rG_K(YKHO):\n HCmI = ['aws', 'elasticache', 'describe-replication-groups', '--region', YKHO.redis_region, '--replication-group-id', YKHO.name]\n zJsh, wIbz, CgsD = eLzR.IssueCommand(HCmI, raise_on_failure=False)\n if CgsD != 0:\n G9jH.info('Could not find cluster %s, %s', YKHO.name, wIbz)\n ...
[ "0.706919", "0.6373107", "0.6373107", "0.61636174", "0.61111987", "0.6091677", "0.602543", "0.59929544", "0.59301615", "0.5922403", "0.5887234", "0.5845251", "0.5835873", "0.5825118", "0.5820437", "0.5820437", "0.5820437", "0.5820437", "0.5820437", "0.5820437", "0.5820437", ...
0.6672319
1
Gets the replication group link instance details
def mxF8(YKHO, iCzB): return YKHO.conn.get(url='dashboard/rglinks/{0}'.format(iCzB))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BtKQ(YKHO, iCzB):\n return YKHO.conn.get(url='dashboard/replicationgroups/{0}/rglinks'.format(iCzB))", "def HpYn(YKHO):\n return YKHO._link_aggregation_group", "def QZnA(YKHO):\n return YKHO.container['link']", "def QZnA(YKHO):\n return YKHO.container['link']", "def rG_K(YKHO):\n HCmI = ...
[ "0.6338797", "0.6279337", "0.5961404", "0.5961404", "0.59135425", "0.5855752", "0.5798083", "0.57765967", "0.5676453", "0.56192887", "0.56192887", "0.56192887", "0.56151694", "0.56091183", "0.55330634", "0.55087996", "0.5466811", "0.5466811", "0.5425715", "0.5409643", "0.5399...
0.7033732
0
Gets the replication group instance associated link details.
def BtKQ(YKHO, iCzB): return YKHO.conn.get(url='dashboard/replicationgroups/{0}/rglinks'.format(iCzB))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mxF8(YKHO, iCzB):\n return YKHO.conn.get(url='dashboard/rglinks/{0}'.format(iCzB))", "def HpYn(YKHO):\n return YKHO._link_aggregation_group", "def QZnA(YKHO):\n return YKHO.container['link']", "def QZnA(YKHO):\n return YKHO.container['link']", "def ngwm(YKHO):\n return YKHO._link", "de...
[ "0.7145098", "0.6704464", "0.6576357", "0.6576357", "0.6444435", "0.6337738", "0.6337738", "0.6337738", "0.61198574", "0.61198574", "0.60694337", "0.60694337", "0.60694337", "0.60694337", "0.60231435", "0.5890954", "0.5800397", "0.5767808", "0.5767808", "0.5753915", "0.569976...
0.63843507
5
Binary cross entropy where any classes marked 0 are masked and then true labels are offset by minus 1 (i.e a label of 1 corresponds to index 0 in y_pred). Accepts predictions/true values as matrices.
def VSUg(Y8eF, aMgO): Y8eF = nMvt.flatten(Y8eF) aMgO = nMvt.flatten(aMgO) ZHfW = ZylS.not_equal(Y8eF, 0) Y8eF = ZylS.cast(Y8eF, aMgO.dtype) rtDd = ZylS.boolean_mask(Y8eF - 1, ZHfW) V276 = ZylS.boolean_mask(aMgO, ZHfW) NszA = nMvt.binary_crossentropy(rtDd, V276, from_logits=False) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Ufb(qI6z, WDHD):\n if qI6z.ndim == 1 and WDHD.ndim == 1:\n NqZs = oyIN.zeros((qI6z.shape[0], 2))\n vexM = qI6z == 1\n NqZs[vexM, 1] = 1\n NqZs[~vexM, 0] = 1\n JV73 = oyIN.zeros((qI6z.shape[0], 2))\n JV73[:, 0] = 1.0 - WDHD\n JV73[:, 1] = WDHD\n else:\n ...
[ "0.7656512", "0.7228492", "0.71189016", "0.700508", "0.700508", "0.69962466", "0.6967071", "0.68779045", "0.68563753", "0.6839916", "0.68299913", "0.6815913", "0.6789086", "0.6788924", "0.67790174", "0.67293847", "0.6723535", "0.6717259", "0.6696952", "0.6693315", "0.66923124...
0.7643483
1
Accuracy metric where classes marked 0 are masked and then true labels are offset by minus 1 (i.e a label of 1 corresponds to index 0 in y_pred).
def wRcc(Y8eF, aMgO): ZHfW = ZylS.not_equal(Y8eF, 0) rtDd = ZylS.boolean_mask(Y8eF - 1, ZHfW) V276 = ZylS.boolean_mask(aMgO, ZHfW) return Wbxz.binary_accuracy(rtDd, V276)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(N6Z1, Crrw):\n return 100.0 * oyIN.sum(N6Z1 == oyIN.argmax(Crrw, axis=1)) / N6Z1.shape[0]", "def DU0s(gkog, ifSr='acc'):\n\n def YAq3(Y8eF, aMgO):\n FScT = nMvt.argmax(Y8eF, axis=-1)\n yq4j = nMvt.argmax(aMgO, axis=-1)\n oGem = nMvt.stack([nMvt.not_equal(FScT, BB8N) for BB8N i...
[ "0.6987451", "0.69406027", "0.68950766", "0.6812371", "0.6802056", "0.6786732", "0.67410123", "0.6739971", "0.6736113", "0.6720457", "0.67090255", "0.66944456", "0.66943496", "0.6680935", "0.6653055", "0.6641217", "0.663382", "0.66287524", "0.6603153", "0.66031474", "0.658987...
0.78209174
0
Update Dirichlet parameters of the initial hidden state distribution (prior beliefs about hidden states at the beginning of the inference window).
def S4SN(UPfZ, umWR, tspZ=1.0, Llmz='all'): ZBvT = len(UPfZ) A81Y = jth9.deepcopy(UPfZ) if Llmz == 'all': Llmz = list(range(ZBvT)) for aM8h in Llmz: or8S = UPfZ[aM8h] > 0 A81Y[aM8h][or8S] += tspZ * umWR[aM8h][or8S] return A81Y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M0ln(YKHO):\n if YKHO.params['decay_exploration']:\n YKHO.params['alpha'] = YKHO.params['init_alpha'] / (1.0 + YKHO._step_counter / 2000000)\n YKHO.params['epsilon'] = YKHO.params['init_epsilon'] / (1.0 + YKHO._step_counter / 2000000)", "def M0ln(YKHO):\n if YKHO.params['decay_exploration...
[ "0.6761692", "0.6761692", "0.6684896", "0.66449064", "0.66449064", "0.6503545", "0.63984925", "0.63233656", "0.6277308", "0.6266307", "0.6260473", "0.6245389", "0.6245389", "0.6245389", "0.6245389", "0.61801213", "0.61801213", "0.61700785", "0.61546034", "0.61494756", "0.6140...
0.0
-1
Takes a string and randomly chooses letters to repeat. e.g. "job" => "jjoobbb". Returns a string with repeated errors.
def onug(GIN8): hlel = ZnQG.StringIO() for sZqf in GIN8: ggBY = tuKI.randint(1, 4) for WKvO in Ni9Y(ggBY): hlel.write(sZqf) kGys = hlel.getvalue() hlel.close() return kGys
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def We0S():\n return 'The last time I saw Richard it was Detroit in 68...'", "def TJC9(WKvO):\n FVpJ = 2\n KoG3 = vIwR.ascii_lowercase\n return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))", "def HKu2(pvEO, dYlE, ASFv=yPrR):\n FB6H = ''\n for d6pt in range(len(pvEO)):\n z8KU = ...
[ "0.7283304", "0.6903197", "0.68738365", "0.6839185", "0.6768852", "0.6752451", "0.6751433", "0.6737925", "0.6737925", "0.6728726", "0.6727709", "0.6718788", "0.6718788", "0.67170256", "0.67170256", "0.6706066", "0.67041254", "0.67012733", "0.6700928", "0.6700928", "0.6700928"...
0.79731506
0
Obtain the name of the last checkpoint in a directory.
def FW_I(AGPF): import os vauY = '' if not os.path.isdir(AGPF): return vauY XBvG = [] d6Nn = [] cLrK = os.listdir(AGPF) from glob import glob def buMk(nqO3, _nwm, VmZJ): shUF = glob(VmZJ) nqO3 += [nzu_ for nzu_ in shUF] _nwm += [nzu_.split('/')[-1] for nz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FW_I():\n bPTx = tiIF()\n deXY = [eHNT for eHNT in Koyk.ls(bPTx) if syzb in eHNT]\n goNN = sorted(deXY)[-1]\n return Hy7s.path.join(bPTx, goNN)", "def FW_I():\n bPTx = tiIF()\n deXY = [eHNT for eHNT in o98T.ls(bPTx) if syzb in eHNT]\n goNN = sorted(deXY)[-1]\n return Hy7s.path.join(bP...
[ "0.8638312", "0.8602977", "0.83910054", "0.8062883", "0.7738229", "0.7712541", "0.7695242", "0.7673592", "0.75313747", "0.74885374", "0.7473806", "0.74688303", "0.7446533", "0.7401468", "0.7393792", "0.73709726", "0.718999", "0.71337575", "0.7115813", "0.70856065", "0.7085389...
0.7270731
16
Test the GET request to foodtrucks with specific id 1. Send GET request to foodtrucks/ 2. Verify the status code as successful 3. Verify that no elements are returned
def V1hh(YKHO, x0hE): U5bT = x0hE.get('/foodtrucks/1') assert U5bT.status_code == 200 nPrm = U5bT.get_json() assert len(nPrm) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ztYK(YKHO, x0hE):\n qxeD = len(Zwka) + 1\n U5bT = x0hE.get('/foodtrucks/{}'.format(qxeD))\n assert U5bT.status_code == 200\n nPrm = U5bT.get_json()\n assert len(nPrm) == 0", "def szq7(YKHO, x0hE):\n for YRbF, tTpl in enumerate(Zwka):\n U5bT = x0hE.get('/foodtrucks/{}'.format(YRbF + 1...
[ "0.7956868", "0.730681", "0.708524", "0.7062396", "0.6759065", "0.66355664", "0.6635007", "0.658524", "0.65827656", "0.65773636", "0.65753734", "0.65650266", "0.654767", "0.6510711", "0.6493198", "0.6484451", "0.6479421", "0.64756775", "0.6447247", "0.6402121", "0.64009595", ...
0.74015504
1
Test the GET request to foodtrucks nearby location 1. Send GET request to foodtrucks/location/ with a predefined test location 2. Verify the status code as successful 3. Verify that no elements are returned
def jv5Q(YKHO, x0hE): QnmL = DQwt[0] FDPT = DQwt[1] U5bT = x0hE.get('/foodtrucks/location?longitude={}&latitude={}'.format(FDPT, QnmL)) assert U5bT.status_code == 200 nPrm = U5bT.get_json()['foodtrucks'] assert len(nPrm) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nXaj(YKHO, x0hE):\n QnmL = DQwt[0]\n FDPT = DQwt[1]\n U5bT = x0hE.get('/foodtrucks/location?longitude={}&latitude='.format(FDPT))\n assert U5bT.status_code == 400\n U5bT = x0hE.get('/foodtrucks/location?longitude=&latitude={}'.format(QnmL))\n assert U5bT.status_code == 400", "def oyOx(YKHO,...
[ "0.7743778", "0.7481586", "0.7450599", "0.740163", "0.73648775", "0.7338639", "0.7287368", "0.7266131", "0.71828973", "0.70855975", "0.70239925", "0.7011416", "0.6970308", "0.6958764", "0.695413", "0.67987436", "0.6743214", "0.6740721", "0.66777796", "0.65724295", "0.6527953"...
0.7578228
1
Test the GET request to foodtrucks with specific id 1. Send GET request to foodtrucks/ 2. Verify the status code as successful 3. Verify that the returned elements matches its predefined counterpart 4. Repeat for every element
def szq7(YKHO, x0hE): for YRbF, tTpl in enumerate(Zwka): U5bT = x0hE.get('/foodtrucks/{}'.format(YRbF + 1)) assert U5bT.status_code == 200 nPrm = U5bT.get_json() assert nPrm['uuid'] == YRbF + 1 assert nPrm['name'] == tTpl['name'] assert nPrm['latitude'] == tTpl['latit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I3FE(gTqx):\n zbvV = gTqx.get('api/v1/parcels/1')\n assert zbvV.status_code == 200\n assert 'Here is the delivery order of id 1' in str(zbvV.json)\n MQJs = gTqx.get('api/v1/parcels/5')\n assert MQJs.status_code == 200\n assert 'this delivery order of id 5 doesnt exist' in str(MQJs.json)", "...
[ "0.69920397", "0.6946612", "0.6935728", "0.653728", "0.64548385", "0.6443193", "0.6380137", "0.63476026", "0.63012207", "0.6292751", "0.6292246", "0.6289612", "0.62652", "0.6247192", "0.62132883", "0.620049", "0.6189537", "0.6180534", "0.61764663", "0.6168045", "0.6150119", ...
0.744683
0
Test the GET request to foodtrucks searched by lowercase name 1. Send GET request to foodtrucks/name/ with lowercase name 2. Verify the status code as successful 3. Verify that the correct amount of elements is returned 4. Verify that the name attribute of every returned element contains needle substring
def ytOZ(YKHO, x0hE): mWFP = MpXb[0].lower() U5bT = x0hE.get('/foodtrucks/name/{}'.format(mWFP)) assert U5bT.status_code == 200 nPrm = U5bT.get_json()['foodtrucks'] assert len(nPrm) == MpXb[1] for tTpl in nPrm: assert mWFP in tTpl['name'].lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oa9J(YKHO, x0hE):\n mWFP = MpXb[0].upper()\n U5bT = x0hE.get('/foodtrucks/name/{}'.format(mWFP))\n assert U5bT.status_code == 200\n nPrm = U5bT.get_json()['foodtrucks']\n assert len(nPrm) == MpXb[1]\n for tTpl in nPrm:\n assert mWFP in tTpl['name'].upper()", "def Avqq(YKHO, x0hE):\n ...
[ "0.7799419", "0.701135", "0.69739544", "0.6903343", "0.6827067", "0.67406285", "0.67043644", "0.65838426", "0.6496068", "0.63048273", "0.623367", "0.611648", "0.61063963", "0.60748833", "0.60638165", "0.6058812", "0.6008089", "0.6000574", "0.60001016", "0.59838575", "0.596129...
0.8041645
0
Test the GET request to foodtrucks searched by uppercase name 1. Send GET request to foodtrucks/name/ with uppercase needle 2. Verify the status code as successful 3. Verify that the correct amount of elements is returned 4. Verify that the name attribute of every returned element contains needle substring
def oa9J(YKHO, x0hE): mWFP = MpXb[0].upper() U5bT = x0hE.get('/foodtrucks/name/{}'.format(mWFP)) assert U5bT.status_code == 200 nPrm = U5bT.get_json()['foodtrucks'] assert len(nPrm) == MpXb[1] for tTpl in nPrm: assert mWFP in tTpl['name'].upper()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ytOZ(YKHO, x0hE):\n mWFP = MpXb[0].lower()\n U5bT = x0hE.get('/foodtrucks/name/{}'.format(mWFP))\n assert U5bT.status_code == 200\n nPrm = U5bT.get_json()['foodtrucks']\n assert len(nPrm) == MpXb[1]\n for tTpl in nPrm:\n assert mWFP in tTpl['name'].lower()", "def Avqq(YKHO, x0hE):\n ...
[ "0.7971751", "0.70598865", "0.7014765", "0.69113356", "0.6869255", "0.6771195", "0.676777", "0.6590868", "0.6568242", "0.6201626", "0.6192773", "0.61854064", "0.6158227", "0.6133735", "0.6071297", "0.60696805", "0.6064738", "0.60525465", "0.6046103", "0.60453326", "0.6032554"...
0.79780775
0
Test the GET request to foodtrucks searched by lowercase food items 1. Send GET request to foodtrucks/items/ with lowercase needle 2. Verify the status code as successful 3. Verify that the correct amount of elements is returned 4. Verify that the food_items attribute of every returned element contains needle substring
def Avqq(YKHO, x0hE): ZfUD = WtAL[0].lower() U5bT = x0hE.get('/foodtrucks/items/{}'.format(ZfUD)) assert U5bT.status_code == 200 nPrm = U5bT.get_json()['foodtrucks'] assert len(nPrm) == WtAL[1] for tTpl in nPrm: assert ZfUD in tTpl['food_items'].lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VWqs(YKHO, x0hE):\n ZfUD = WtAL[0].upper()\n U5bT = x0hE.get('/foodtrucks/items/{}'.format(ZfUD))\n assert U5bT.status_code == 200\n nPrm = U5bT.get_json()['foodtrucks']\n assert len(nPrm) == WtAL[1]\n for tTpl in nPrm:\n assert ZfUD in tTpl['food_items'].upper()", "def bE10(YKHO, P4...
[ "0.78352284", "0.68053085", "0.66849816", "0.66441476", "0.65840465", "0.6572375", "0.6565984", "0.6537813", "0.65133566", "0.6495056", "0.64868647", "0.64295214", "0.6289038", "0.62858707", "0.6243006", "0.6241004", "0.62183726", "0.62181926", "0.61777097", "0.6175816", "0.6...
0.80763143
0
Test the GET request to foodtrucks nearby location with missing parameters 1. Send GET request to foodtrucks/location/ with missing latitude 2. Verify the status code as bad request 3. Send GET request to foodtrucks/location/ with missing longitude 4. Verify the status code as bad request
def nXaj(YKHO, x0hE): QnmL = DQwt[0] FDPT = DQwt[1] U5bT = x0hE.get('/foodtrucks/location?longitude={}&latitude='.format(FDPT)) assert U5bT.status_code == 400 U5bT = x0hE.get('/foodtrucks/location?longitude=&latitude={}'.format(QnmL)) assert U5bT.status_code == 400
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hdq6(YKHO):\n bD7m = qSrn + '/location/37.7823601210175,-122.402095994563'\n try:\n dixj = qQXR.load(uRlK.urlopen(bD7m))['data']\n YKHO.assertTrue('applicant' in dixj[0] and 'fooditems' in dixj[0] and ('latitude' in dixj[0]))\n except ValueError:\n YKHO.fail(msg='JSON response not...
[ "0.7195144", "0.71128184", "0.6935801", "0.6910806", "0.6897197", "0.685649", "0.6804855", "0.67540747", "0.6614262", "0.6584129", "0.6526768", "0.64498705", "0.64190555", "0.64100933", "0.6404033", "0.6340877", "0.63204473", "0.6296937", "0.6263354", "0.6253987", "0.62445635...
0.82065594
0
Test the GET request to foodtrucks nearby location filtered by an item search 1. Send GET request to foodtrucks/location/ with a predefined test location and item search needle 2. Verify the status code as successful 3. Verify that the correct amount of elements is returned 4. Verify that every returned element is with...
def bE10(YKHO, P4t4, x0hE): QnmL = DQwt[0] FDPT = DQwt[1] ZfUD = WtAL[0] U5bT = x0hE.get('/foodtrucks/location?longitude={}&latitude={}&item={}'.format(FDPT, QnmL, ZfUD)) assert U5bT.status_code == 200 nPrm = U5bT.get_json()['foodtrucks'] assert len(nPrm) == WtAL[1] for YRbF, tTpl in enu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oyOx(YKHO, x0hE):\n QnmL = DQwt[0]\n FDPT = DQwt[1]\n for r1VO, (UHFx, A07C) in jcDt.items():\n U5bT = x0hE.get('/foodtrucks/location?longitude={}&latitude={}&radius={}'.format(FDPT, QnmL, r1VO))\n assert U5bT.status_code == 200\n nPrm = U5bT.get_json()['foodtrucks']\n asse...
[ "0.737884", "0.6955775", "0.67733616", "0.666161", "0.66239685", "0.65059197", "0.6489717", "0.64608413", "0.64436483", "0.6361793", "0.6319185", "0.6302789", "0.6286554", "0.6280769", "0.6268113", "0.6253456", "0.6231446", "0.62249947", "0.6189944", "0.61524624", "0.6104758"...
0.77662385
0
Test HTTP status code for listing posts.
def cr07(YKHO): YKHO.assertEqual(YKHO.response.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ByN4(YKHO):\n YKHO.assertEqual('success', YKHO.json_response['status'])", "def V7TM(YKHO):\n geh0 = x0hE.get(gxEw('post_list'))\n YKHO.assertEqual(geh0.status_code, 200)", "def Z5ZI(YKHO):\n YKHO.login()\n geh0 = YKHO.client.get(YKHO.url, follow=True)\n YKHO.assertEqual(geh0.status_code, ...
[ "0.8020916", "0.77617234", "0.7528083", "0.7497362", "0.7482805", "0.7326417", "0.71031684", "0.7068452", "0.70242816", "0.6978542", "0.6975646", "0.6941223", "0.6865288", "0.68216884", "0.674763", "0.6695588", "0.66284627", "0.6624416", "0.66230965", "0.66217434", "0.6619006...
0.88875395
0
Initialize a new domain tree with a single active block dimension number of dimensions in the input domain (typically 2 or 3) max_depth maximum level index of a block. Depth index starts at 0, so a max_depth of n means that there is a total of n + 1 levels.
def FIMM(YKHO, e_2d=2, qi10=10): YKHO.max_depth = qi10 YKHO.root = n3Kt([0] * e_2d + [1]) YKHO.root.parent = YKHO YKHO.children = [YKHO.root] YKHO.memoized_mean_error = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, d6pt=None, WmM4=None, **xAU6):\n if d6pt is None:\n d6pt = 0\n super().__init__('max_depth', d6pt, default=WmM4, **xAU6)", "def FIMM(YKHO, WLtg: int):\n ...", "def FIMM(YKHO, C9iO=1, PJWX=False):\n YKHO.leaf_size = C9iO\n YKHO.verbose = PJWX\n YKHO.max_depth = 20\n YK...
[ "0.64455795", "0.6333529", "0.62465376", "0.6170465", "0.61304945", "0.6120682", "0.61142504", "0.6072368", "0.60580236", "0.59889376", "0.58393574", "0.5825134", "0.58035904", "0.5771447", "0.5743901", "0.5731287", "0.5709903", "0.567729", "0.567729", "0.55994993", "0.558105...
0.7298715
0
Convert a global domain coordinate into (convert x into x_g and x_l, would say the paper) This method can be called either on a single domain coordinate or on an array of such, in which case local_coords has the same shape as the input and block_indices is a single BlockIndex object whose "raw" value is an array of coo...
def ag2n(YKHO, r8UC): CC5R = YKHO.find_active_block(r8UC) assert len(CC5R.center) == len(r8UC) tVoc = (r8UC - CC5R.center) / CC5R.radius return (CC5R, tVoc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzVX(dpzG, LQ3g, Hz0b=None):\n if Hz0b is None:\n Hz0b = [0.0, 0.0, 0.0]\n WxIR = [iArr.normalise(Ty9i) for Ty9i in LQ3g]\n return iArr.addVectors([iArr.addVectors(WxIR, dpzG), Hz0b])", "def nnoq(Emd4, CC5R, tVoc):\n if type(tVoc) == ht2j.Tensor:\n begE = tVoc.device\n hgjH =...
[ "0.6866468", "0.6653781", "0.60447806", "0.5988634", "0.59243554", "0.57342285", "0.56644034", "0.55267066", "0.54759985", "0.539833", "0.5392733", "0.53763735", "0.53507525", "0.53196514", "0.5314065", "0.5297667", "0.5239618", "0.5236048", "0.52311045", "0.52283776", "0.521...
0.60733736
2
Inverse of self.split_input_coordinate(). This method does not require to know the tree, it is a class method. block_indices instance of BlockIndex representing one or a batch of global coordinates (x_g) local_coords numpy array or torch tensor of one or a batch of local coordinates (x_l) (batch of) coordinates in the ...
def nnoq(Emd4, CC5R, tVoc): if type(tVoc) == ht2j.Tensor: begE = tVoc.device hgjH = ht2j.from_numpy(CC5R.center).float().to(begE) r1VO = ht2j.from_numpy(CC5R.radius).float().to(begE) return hgjH + tVoc * r1VO else: return CC5R.center + tVoc * CC5R.radius
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ag2n(YKHO, r8UC):\n CC5R = YKHO.find_active_block(r8UC)\n assert len(CC5R.center) == len(r8UC)\n tVoc = (r8UC - CC5R.center) / CC5R.radius\n return (CC5R, tVoc)", "def GOZd(YKHO, g4y1):\n xMux = ZylS.shape(g4y1)[YKHO.axis]\n o4D3, bGrB = ZylS.split(g4y1, [YKHO.slice, xMux - YKHO.slice], YKH...
[ "0.664194", "0.59803635", "0.5674214", "0.55932564", "0.54661214", "0.53497535", "0.52632135", "0.5240639", "0.52361536", "0.52255464", "0.52229875", "0.51705265", "0.5136509", "0.5107252", "0.5077567", "0.5076075", "0.5067591", "0.50633365", "0.505782", "0.5045357", "0.50430...
0.637974
1
Returns True to all type of card present on the pile.
def hHld(YKHO, dxhl): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MhX9(YKHO, dxhl: Card):\n for YRbF in YKHO.get_hand():\n if isinstance(YRbF, type(dxhl)):\n return True\n return False", "def loKM(YKHO, dxhl):\n return dxhl in YKHO.cards", "def gU2k(YKHO, khoC):\n khoC = set(khoC)\n return all((Z9rn.upper() in YKHO.cards for Z9rn in khoC)...
[ "0.703119", "0.6690337", "0.6665266", "0.65960556", "0.652023", "0.6500113", "0.6430464", "0.63382536", "0.63004637", "0.62846226", "0.6283254", "0.6268834", "0.6254798", "0.6247977", "0.6233626", "0.6211204", "0.6210214", "0.618419", "0.6179265", "0.61597425", "0.61251575", ...
0.64325017
6
Return the amount of cards in the deck
def ZXl_(YKHO): return len(YKHO._list_card)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gjWw(YKHO):\n return len(YKHO.deck)", "def UHFx(YKHO):\n return len(YKHO.deck)", "def Ql1p(YKHO) -> int:\n return len(YKHO.__deck)", "def V5yV(YKHO) -> int:\n return sum((dxhl.qty for dxhl in YKHO.cards))", "def H7Zb(YKHO):\n exwG = 0\n for dxhl in YKHO.cards:\n exwG += dxhl.co...
[ "0.8593781", "0.8435236", "0.83604705", "0.8267306", "0.81427777", "0.81250006", "0.8110863", "0.8080126", "0.7981761", "0.78734386", "0.7847376", "0.7847376", "0.7756086", "0.77540976", "0.77435076", "0.77190524", "0.7705795", "0.76561546", "0.7652768", "0.7601306", "0.73802...
0.7490293
20
Place a card on top of the deck.
def lACn(YKHO, dxhl): YKHO._list_card.append(dxhl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uln7(YKHO, dxhl, iBIi):\n pass", "def aL5p(YKHO, bGrB, oyg0):\n d6pt = 1\n xAU6 = []\n for dxhl in oyg0.piles[kAEc.HAND]:\n zTi3 = f'Put {dxhl.name} on top of your deck'\n xAU6.append({'selector': f'{d6pt}', 'print': zTi3, 'card': dxhl})\n d6pt += 1\n z1Rg = oyg0.user_inpu...
[ "0.7537447", "0.7480774", "0.7426391", "0.698703", "0.69250244", "0.6910052", "0.6787651", "0.6762283", "0.6761891", "0.67262125", "0.66725683", "0.6613643", "0.6593102", "0.65925235", "0.6573135", "0.6488217", "0.64524496", "0.64504576", "0.64370745", "0.6395741", "0.6393462...
0.0
-1
Place a list of card on top of deck.
def _ViK(YKHO, khoC): YKHO._list_card.extend(khoC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wjOP(YKHO, dxhl, Rci7='TOP'):\n if Rci7 == 'TOP':\n YKHO.deck.insert(0, dxhl)\n elif Rci7 == 'BOTTOM':\n YKHO.deck.append(dxhl)\n YKHO.deck_count += 1", "def zhoS(YKHO):\n YKHO.cards.sort()", "def aL5p(YKHO, bGrB, oyg0):\n d6pt = 1\n xAU6 = []\n for dxhl in oyg0.piles[kAE...
[ "0.6995473", "0.6932071", "0.6898456", "0.6727112", "0.66932476", "0.6630628", "0.66104627", "0.6548963", "0.6502467", "0.64962393", "0.6490125", "0.6397307", "0.63861996", "0.6383337", "0.638081", "0.6364858", "0.63393694", "0.63360775", "0.62903255", "0.6275353", "0.6256534...
0.6343449
16
Select the card to be played from the player's current deck and returns it
def j8Cy(YKHO, PZmt): for dxhl in YKHO._deck.get_cards(): if dxhl.matches(PZmt.top()): Y5J4 = dxhl YKHO._deck.get_cards().remove(dxhl) return Y5J4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j8Cy(YKHO, PZmt):\n H_rJ = []\n for YRbF in range(0, len(YKHO._deck.get_cards()) - 1):\n if YKHO._deck.get_cards()[YRbF].matches(PZmt.top()):\n H_rJ.append(YRbF)\n if len(H_rJ) == 0:\n return None\n else:\n N2BL = YKHO._deck.get_cards()[H_rJ[tuKI.randint(0, len(H_rJ)...
[ "0.7508679", "0.7408788", "0.7363366", "0.72582996", "0.72358865", "0.7205202", "0.7139631", "0.7139408", "0.71304756", "0.71121156", "0.7075292", "0.7064341", "0.7044169", "0.7029653", "0.69726247", "0.69726247", "0.6930892", "0.6802054", "0.6787678", "0.67569643", "0.672072...
0.6675893
27
Stops the current video.
def yPN4(YKHO): if YKHO.isPlaying is True: print('Stopping video:', YKHO.currentVideo.title) YKHO.isPlaying = False YKHO.isPaused = False else: print('Cannot stop video: No video is currently playing')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yPN4(YKHO):\n if YKHO._current_video is None:\n print('Cannot stop video: No video is currently playing')\n return\n print(f'Stopping video: {YKHO._current_video.title}')\n YKHO._current_video = None\n return", "def yPN4(YKHO):\n if YKHO.current == None:\n print('Cannot st...
[ "0.888218", "0.88274866", "0.8823462", "0.8755373", "0.8655501", "0.8629694", "0.85928404", "0.8550172", "0.85088044", "0.8437159", "0.84326243", "0.83948064", "0.83415765", "0.83387095", "0.82205945", "0.7904002", "0.7793583", "0.75543165", "0.7547233", "0.75007373", "0.7477...
0.8421711
11
Displays video currently playing.
def AgpD(YKHO): print('show_playing needs implementation')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AgpD(YKHO):\n if YKHO.current_video == None:\n print('No video is currently playing')\n else:\n YmUj = YKHO._video_library.get_video(YKHO.current_video.video_id)\n OvGC = YKHO.get_tag_string(YmUj)\n if YKHO.video_paused == False:\n print('Currently playing: ' + YmUj...
[ "0.7804789", "0.77452356", "0.7735895", "0.7679617", "0.7669143", "0.763395", "0.76144093", "0.7605698", "0.75713533", "0.75332505", "0.74989694", "0.7432058", "0.72621256", "0.69161344", "0.6833527", "0.67801243", "0.67571825", "0.67431927", "0.6726036", "0.67214197", "0.666...
0.6590141
22
Adds a video to a playlist with a given name.
def duLI(YKHO, RJf3, DYeJ): print('add_to_playlist needs implementation')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def duLI(YKHO, RJf3, DYeJ):\n f6W2 = YKHO._video_library.get_video(DYeJ)\n NvAR = None\n for XP5J in YKHO.playlists:\n if XP5J.name.lower() == RJf3.lower():\n NvAR = XP5J\n if NvAR is None:\n print(f'Cannot add video to {RJf3}: Playlist does not exist')\n return\n if ...
[ "0.83555114", "0.8271756", "0.8209371", "0.8168781", "0.81374156", "0.81151205", "0.8081428", "0.8074003", "0.8033341", "0.7938837", "0.79373133", "0.7936336", "0.7922703", "0.71152556", "0.6914022", "0.68555754", "0.6845014", "0.6811254", "0.6769141", "0.6742757", "0.6734767...
0.7905619
13
Display all videos in a playlist with a given name.
def Hvot(YKHO, RJf3): print('show_playlist needs implementation')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hvot(YKHO, RJf3):\n O4gE = []\n if RJf3.upper() not in [WKvO.upper() for WKvO in YKHO._playlist.playlist_names]:\n print('Cannot show playlist ' + str(RJf3) + ': Playlist does not exist')\n elif YKHO._playlist.playlists.get(RJf3.upper()) == []:\n print('Showing playlist: ' + str(RJf3) + ...
[ "0.8334166", "0.80632526", "0.79728866", "0.7859175", "0.7843135", "0.7767099", "0.7695971", "0.7684331", "0.7524048", "0.7484192", "0.73455036", "0.7097209", "0.7036206", "0.6997128", "0.6911681", "0.64607203", "0.6264941", "0.6257379", "0.62464875", "0.6245411", "0.6138931"...
0.69010794
15
Return the unit of measurement which this thermostat uses.
def xklW(YKHO): return hMVl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._sensor.unit", "def b82i(YKHO):\n PXGI = zx9u.get(YKHO.device[0])[2]\n if PXGI != '':\n return PXGI", "def b82i(YKHO):\n return YKHO.sensor_details[2]", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n ...
[ "0.88053805", "0.8785635", "0.87789285", "0.87716085", "0.87716085", "0.87716085", "0.87716085", "0.87716085", "0.87716085", "0.87716085", "0.87716085", "0.87716085", "0.87716085", "0.8763783", "0.8756681", "0.8755349", "0.8733238", "0.87274057", "0.87274057", "0.8717279", "0...
0.0
-1
Return the current temperature.
def CMHP(YKHO): if YKHO.controller.temperatures.status is None: return None return YKHO.controller.temperatures.status.indoor
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CMHP(YKHO):\n return YKHO._current_temp", "def CMHP(YKHO):\n return YKHO._cur_temp", "def CMHP(YKHO):\n return YKHO._cur_temp", "def CMHP(YKHO):\n return YKHO._temperature", "def CMHP(YKHO) -> float:\n return YKHO.device['sensors']['temperature']", "def CMHP(YKHO):\n return YKHO._cu...
[ "0.88459253", "0.8834011", "0.8834011", "0.8827252", "0.88014287", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8781482", "0.87779963", "0.877693", "0.87618834", "0.875637", "0.87354743", "0.8715311", ...
0.81674457
86
Get python logger instance
def fZx2(mWFP, PFAa='%(asctime)s [%(pathname)s:%(lineno)s - %(levelname)s ] %(message)s', x8us='%Y-%m-%d %H:%M:%S', nUeQ=False): bo34 = G9jH.getLogger(mWFP) bo34.setLevel(G9jH.INFO) DCgT = G9jH.StreamHandler() if not nUeQ else G9jH.FileHandler(mWFP) DCgT.setLevel(G9jH.INFO) uaPq = G9jH.Formatter(fmt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2():\n return bo34", "def bo34():\n return I45O", "def bo34():\n return bo34", "def fZx2():\n return vzeF", "def fZx2():\n return S0MI", "def bo34():\n return G9jH.getLogger(__name__)", "def bo34():\n return G9jH.getLogger(__name__)", "def bo34():\n return G9jH.getLogge...
[ "0.8796454", "0.85580224", "0.8549256", "0.8522863", "0.8510529", "0.84455734", "0.84455734", "0.84455734", "0.8372173", "0.8288936", "0.81215477", "0.811908", "0.80511975", "0.8032681", "0.8028665", "0.798758", "0.798758", "0.7983836", "0.79600567", "0.79427814", "0.79415834...
0.0
-1
Returns the model with the user id
def zAg0(YKHO): return YKHO.user_profile
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, uJjO):\n return Nc2H.query.get_or_404(uJjO)", "def NMoC(YKHO, id):\n CBIr = mv1M.query.filter_by(id=id).first_or_404()\n return CBIr", "def O5RJ(YKHO, PObu):\n return YKHO._user_service.find(pk=PObu)", "def PM_C():\n return mv1M.quey.filter(mv1M.user_id == uJjO).first", "def N...
[ "0.78730625", "0.77176714", "0.75861436", "0.7495788", "0.7475964", "0.74678653", "0.7453378", "0.7394879", "0.7390801", "0.7383791", "0.7382165", "0.7364919", "0.7326495", "0.7326495", "0.7309491", "0.7304624", "0.7304624", "0.7304624", "0.7304624", "0.7280898", "0.7257839",...
0.0
-1
Convolves the filters over 'x'
def iXC1(YKHO, WKvO, LT6S=True): if YKHO.weights is None: YKHO.weights = YKHO.initialize_weights((YKHO.units, WKvO.shape[1], *YKHO.filter_size)) YKHO.grads = YKHO._init_bias_weight_like() if LT6S: YKHO.cache['X'] = WKvO _MQ3, ylUq, MLxy, EKWI = YKHO.weights.shape GCiI, Npgh, MKlR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n YKHO.input = WKvO\n hlel = list()\n for eHNT in YKHO.filters:\n Mkmy = YKHO.convolve(WKvO, eHNT)\n print(Mkmy)\n hlel.append(Mkmy)\n return hlel", "def filter(YKHO, WKvO):\n return YKHO.slice(YKHO.blur(YKHO.splat(WKvO))) / YKHO.slice(YKHO.blur(YKHO.spla...
[ "0.7588737", "0.68779606", "0.68670857", "0.6840731", "0.683348", "0.68174666", "0.6712055", "0.6682111", "0.6641294", "0.65832144", "0.647857", "0.6476112", "0.6383063", "0.6380295", "0.6359488", "0.63357383", "0.63069", "0.63045233", "0.62582546", "0.62377584", "0.62198377"...
0.61914134
23
Solve u_tt=(c^2u_x)_x + f on (0,L)x(0,T].
def ykvB(pdhd, cAlv, eHNT, Z9rn, aPd6, JRYC, Nq1b, Kt_s, eI1A=None, KRnn=1.0): WCCm = int(round(Kt_s / JRYC)) a1PO = oyIN.linspace(0, WCCm * JRYC, WCCm + 1) if isinstance(Z9rn, (float, int)): p01r = Z9rn elif callable(Z9rn): p01r = max([Z9rn(A3mO) for A3mO in oyIN.linspace(0, aPd6, 101)]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ykvB(pdhd, cAlv, eHNT, Z9rn, aPd6, JRYC, Nq1b, Kt_s, eI1A=None, DpZH='vectorized'):\n WCCm = int(round(Kt_s / JRYC))\n a1PO = oyIN.linspace(0, WCCm * JRYC, WCCm + 1)\n Jw7X = JRYC * Z9rn / float(Nq1b)\n jWa5 = int(round(aPd6 / Jw7X))\n WKvO = oyIN.linspace(0, aPd6, jWa5 + 1)\n EI9L = Nq1b ** ...
[ "0.6922067", "0.6823536", "0.65993935", "0.6569449", "0.65209365", "0.64963007", "0.6483909", "0.6463618", "0.64146626", "0.63950783", "0.6385443", "0.6352335", "0.6342367", "0.6334822", "0.63344085", "0.6300993", "0.6285932", "0.62795067", "0.6277892", "0.6251541", "0.624423...
0.67137927
2
Gets the prediction of this Prediction.
def o3Uj(YKHO) -> str: return YKHO._prediction
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3Uj(YKHO):\n return YKHO._prediction", "def o3Uj(YKHO):\n return YKHO._prediction", "def u64o(YKHO):\n return YKHO._current_prediction", "def a8hJ(YKHO):\n return YKHO.params['predictor']", "def N6Z1(YKHO):\n if not YKHO.__predictions:\n YKHO.__load_predictions()\n return YKHO...
[ "0.8889192", "0.8889192", "0.78431606", "0.76305264", "0.7584525", "0.75712305", "0.7565337", "0.7565337", "0.74311376", "0.7336247", "0.7298638", "0.72979945", "0.7294883", "0.72474074", "0.72071105", "0.7199941", "0.71743894", "0.71730983", "0.71566933", "0.715395", "0.7140...
0.7817625
3
Test that all polling accounts for user are used when no provider_uuid is provided.
def OThe(YKHO, Yj3B): bGrB, frXV = xDZS.get_accounts() LSgU = uBwj.objects.all() for kT1P in LSgU: kT1P.polling_timestamp = None kT1P.save() Yj3B.crawl_account_hierarchy.return_value = True with YKHO.assertLogs('masu.celery.tasks', 'INFO') as nvc6: xCjU.crawl_account_hierarch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mz83(YKHO):\n pass", "def j6D6(YKHO):\n YKHO.identity_api.get_user(YKHO.users['userA']['id'])\n YKHO.identity_api.get_user(YKHO.users['userB']['id'])\n YKHO.identity_api.get_user(YKHO.users['userC']['id'])", "def i6CE(YKHO):\n YKHO.assert_status_and_user_list([])", "def D6Z6(YKHO):\n pa...
[ "0.60981834", "0.5906707", "0.58930594", "0.58415776", "0.5752421", "0.5752421", "0.57491606", "0.57327247", "0.5671021", "0.5671021", "0.5668696", "0.56623715", "0.5658396", "0.5655529", "0.56394327", "0.5632188", "0.56080335", "0.55988777", "0.5593316", "0.55375683", "0.553...
0.5864358
3
Test that all polling accounts are used when no provider_uuid is provided.
def a5MG(YKHO, stam): LSgU = uBwj.objects.filter(infrastructure_id__isnull=True, type=uBwj.PROVIDER_OCP).all() stam.cost_model_notification.return_value = True with YKHO.assertLogs('masu.celery.tasks', 'INFO') as nvc6: xCjU.check_cost_model_status() U2VU = 'Cost model status check found %s p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OThe(YKHO, Yj3B):\n bGrB, frXV = xDZS.get_accounts()\n LSgU = uBwj.objects.all()\n for kT1P in LSgU:\n kT1P.polling_timestamp = None\n kT1P.save()\n Yj3B.crawl_account_hierarchy.return_value = True\n with YKHO.assertLogs('masu.celery.tasks', 'INFO') as nvc6:\n xCjU.crawl_acc...
[ "0.5995274", "0.58667034", "0.58667034", "0.58004934", "0.57923025", "0.5771963", "0.57481223", "0.56655836", "0.5654681", "0.55752975", "0.5547013", "0.55290896", "0.55212355", "0.5494576", "0.5493388", "0.54912716", "0.5490155", "0.5486362", "0.5476935", "0.5473428", "0.546...
0.5310089
42
Test that all polling accounts are used when no provider_uuid is provided.
def zG9H(YKHO): JeSG = jiIF().get_last_manifest_upload_datetime() with YKHO.assertLogs('masu.celery.tasks', 'INFO') as nvc6: xCjU.check_for_stale_ocp_source() U2VU = 'Openshfit stale cluster check found %s clusters to scan' % len(JeSG) YKHO.assertIn(U2VU, nvc6.output[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OThe(YKHO, Yj3B):\n bGrB, frXV = xDZS.get_accounts()\n LSgU = uBwj.objects.all()\n for kT1P in LSgU:\n kT1P.polling_timestamp = None\n kT1P.save()\n Yj3B.crawl_account_hierarchy.return_value = True\n with YKHO.assertLogs('masu.celery.tasks', 'INFO') as nvc6:\n xCjU.crawl_acc...
[ "0.59986085", "0.58704376", "0.58704376", "0.58028764", "0.57931095", "0.57742506", "0.57491535", "0.5668357", "0.5657668", "0.5578137", "0.55478776", "0.5531945", "0.552423", "0.54949886", "0.5493509", "0.54929703", "0.54928327", "0.5485717", "0.5478713", "0.54743326", "0.54...
0.0
-1
Correctly replace all NaN values in a dataframe column with Nones
def I9jj(YKHO): k0lF = oyIN.array([1.2, 3.1, None]) tjUW = oyIN.array([4.6, 7.0, 7.3]) Nq1b = oyIN.array([None, 8.0, 2.5]) VaNq = oyIN.array([2.6, 9.2, 1.1]) nPrm = jQ3Z.Dataframe({'A': k0lF, 'B': tjUW, 'C': Nq1b, 'cheetah': VaNq}) nPrm.replace_None_w_nan('A') YKHO.assertTrue(oyIN.isnan(nPrm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P01N(bOBl):\n if bOBl.isnull().any().any():\n bOBl.replace({oyIN.nan: None}, inplace=True)", "def l_jv(YKHO, jQ3Z):\n for fvDH in jQ3Z.columns:\n if fvDH in YKHO._col_fillvalues.keys():\n for mcUg in YKHO._col_fillvalues[fvDH]:\n if YKHO.scale_factors is not None...
[ "0.7952866", "0.7789866", "0.77049845", "0.7638029", "0.75253", "0.75183296", "0.7470972", "0.7467087", "0.7435085", "0.7429301", "0.73842", "0.7318155", "0.72630656", "0.71501136", "0.71431834", "0.7142414", "0.7139854", "0.7120136", "0.69357514", "0.69315356", "0.69214326",...
0.70500004
18
Correctly replace all NaN values in dataframe with Nones
def WlDF(YKHO): k0lF = oyIN.array([1.2, 3.1, None]) tjUW = oyIN.array([4.6, 7.0, 7.3]) Nq1b = oyIN.array([None, 8.0, 2.5]) VaNq = oyIN.array([2.6, 9.2, 1.1]) nPrm = jQ3Z.Dataframe({'A': k0lF, 'B': tjUW, 'C': Nq1b, 'cheetah': VaNq}) nPrm.replace_None_w_nan_all() YKHO.assertTrue(oyIN.isnan(nPr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P01N(bOBl):\n if bOBl.isnull().any().any():\n bOBl.replace({oyIN.nan: None}, inplace=True)", "def l_jv(YKHO, jQ3Z):\n for fvDH in jQ3Z.columns:\n if fvDH in YKHO._col_fillvalues.keys():\n for mcUg in YKHO._col_fillvalues[fvDH]:\n if YKHO.scale_factors is not None...
[ "0.7965327", "0.78192943", "0.7747694", "0.7633645", "0.7626153", "0.7557828", "0.74261934", "0.739802", "0.7388057", "0.73872125", "0.73591864", "0.7241166", "0.7234664", "0.7219119", "0.7182356", "0.70597535", "0.70213705", "0.6989215", "0.69157857", "0.6911904", "0.6904927...
0.7528976
6
Instantiate all internal operators and connect them together.
def FIMM(YKHO, *qIxc, **B2fa): super(LFci, YKHO).__init__(*qIxc, **B2fa) YKHO.FreezePredictions.setValue(True) YKHO.opInputShapeReader = IaAy(JY7G, parent=YKHO, graph=YKHO.graph) YKHO.opLabelArray = IaAy(kjOi, parent=YKHO, graph=YKHO.graph) YKHO.predict = IaAy(b8SI, parent=YKHO, graph=YKHO.graph) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n for mWFP, seET in YKHO.__OPERATORS.items():\n wxYo.create_operator(mWFP, seET)", "def aV0p(Emd4):\n for khtY in jX6H:\n if khtY[0] != '#':\n\n def dfuf(YKHO, Elif=None, khtY=khtY):\n return Emd4(loQ4, op=khtY, a=YKHO, b=Elif)\n setattr(Em...
[ "0.79297465", "0.6878748", "0.68051", "0.67340297", "0.6576974", "0.65726554", "0.65412444", "0.6404925", "0.6385211", "0.6286706", "0.6262918", "0.62210375", "0.61952615", "0.6188635", "0.61302173", "0.6118779", "0.6089939", "0.6075145", "0.6058086", "0.6058086", "0.60161155...
0.0
-1
Generate node selector requirements based on the preconfigured node selector of the preemptible nodes. node selector operator represents a key's relationship to a set of values.
def gsCK(NbZl: str) -> laHg.List[WwwH.client.V1NodeSelectorRequirement]: C3XA = [] for bqNd, qTqu in HGRc.get_preemptible_node_selector().items(): C3XA.append(WwwH.client.V1NodeSelectorRequirement(key=bqNd, operator=NbZl, values=[qTqu])) return C3XA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mfAV() -> laHg.List[WwwH.client.V1NodeSelectorTerm]:\n cRlN = []\n QmMF = gsCK(PGBI.common.schemas.NodeSelectorOperator.node_selector_op_in.value)\n for lsX7 in QmMF:\n cRlN.append(WwwH.client.V1NodeSelectorTerm(match_expressions=[lsX7]))\n return cRlN", "def Xi9z(YKHO) -> 'NodeSelector':\...
[ "0.6593779", "0.58183974", "0.5802554", "0.5780637", "0.5494517", "0.54520863", "0.5437933", "0.54138285", "0.5329219", "0.5275049", "0.5275049", "0.5275049", "0.5275049", "0.52622336", "0.5146529", "0.5126971", "0.50767034", "0.5016643", "0.49930313", "0.49761513", "0.496330...
0.7800617
0
Gets the axis with which this error is concerned, or `None` if the error was not associated with any particlar axis.
def jDK_(YKHO): return YKHO._axis
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jDK_(YKHO) -> UznS:\n if len(YKHO.axes) != 1:\n _ye8 = f'Calling axis is only valid for one axis. There are {len(YKHO.axes)} axes.'\n raise ValueError(_ye8)\n return YKHO.axes[0]", "def QIui(YKHO, d7pR):\n if YKHO.enabled:\n l7Sm = YKHO._get_name(d7pR)\n if l7Sm in YKHO.a...
[ "0.75371975", "0.7453692", "0.71017635", "0.7025141", "0.69767815", "0.69661933", "0.69273984", "0.66803676", "0.6650266", "0.6571954", "0.65349334", "0.65299004", "0.6407893", "0.63904226", "0.63689554", "0.6292901", "0.6252087", "0.6252087", "0.6249413", "0.62141675", "0.61...
0.74617577
1
Show info on a single user.
def uC3Z(uJjO): CBIr = mv1M.query.get_or_404(uJjO) return TvZl('user_details.html', user=CBIr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUHY(CBIr):\n FpOe = hfLJ.show_user(CBIr)\n k8wH.echo(BGNz(FpOe))", "def VCCg(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('User_Detail.html', user=CBIr)", "def T6Tk(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('user-info.html', user=CBIr, posts=CBIr.posts)", "...
[ "0.8756716", "0.82645947", "0.82606316", "0.8088959", "0.8012237", "0.7999155", "0.7995442", "0.7987794", "0.7954354", "0.79064745", "0.79064745", "0.78883857", "0.78717387", "0.78481597", "0.7822701", "0.7814323", "0.7790182", "0.7782008", "0.77480036", "0.77259403", "0.7723...
0.7928824
9
Show user edit form.
def vvWA(uJjO): CBIr = mv1M.query.get_or_404(uJjO) return TvZl('user_edit.html', user=CBIr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rp69(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('edit_user.html', f_name=CBIr.first_name, l_name=CBIr.last_name, user_id=uJjO, url=CBIr.pic_url)", "def Z8kI(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('edit_user_info.html', user=CBIr)", "def anlB(uJjO):\n CBIr = ...
[ "0.84341294", "0.8382513", "0.8300282", "0.825908", "0.8170306", "0.8051776", "0.7957549", "0.7944251", "0.7872356", "0.7838161", "0.7823486", "0.7810361", "0.7691974", "0.76503783", "0.7643333", "0.7612879", "0.7434761", "0.7413502", "0.7354244", "0.73418695", "0.72786486", ...
0.85337806
0
Show new post form.
def XTN0(uJjO): CBIr = mv1M.query.get_or_404(uJjO) return TvZl('new_post_form.html', user=CBIr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XTN0(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('new-post.html', user=CBIr)", "def NMoC(YKHO, QePW):\n L03z = Ldpy\n OaeV = {'form': L03z}\n return _1tc(QePW, 'new.html', OaeV)", "def NMoC(YKHO, QePW):\n L03z = L39s()\n QpfX = {'form': L03z}\n return _1tc(QePW, 'blogs...
[ "0.79992944", "0.79291886", "0.7914565", "0.7832355", "0.78101337", "0.77704465", "0.76400614", "0.76293373", "0.76210093", "0.7503005", "0.73616916", "0.7358242", "0.73458564", "0.734259", "0.73270464", "0.7295593", "0.72629696", "0.72561884", "0.7232689", "0.72021085", "0.7...
0.785094
3
Show post edit form.
def C_pT(Fi3q): m8z6 = T97t.query.get_or_404(Fi3q) return TvZl('post_edit.html', post=m8z6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QbOF(Fi3q):\n m8z6 = T97t.query.get_or_404(Fi3q)\n return TvZl('blogPosts/post_edit.html', post=m8z6)", "def C_pT(Fi3q):\n m8z6 = T97t.query.get_or_404(Fi3q)\n return TvZl('edit-post.html', post=m8z6)", "def l08u(Fi3q):\n m8z6 = T97t.query.get_or_404(Fi3q)\n return TvZl('edit_post.html', ...
[ "0.8591011", "0.85620856", "0.85202134", "0.8190469", "0.803028", "0.80293626", "0.78980565", "0.78385943", "0.7804563", "0.77816486", "0.7754376", "0.77320635", "0.77127105", "0.75824434", "0.744766", "0.735717", "0.72974306", "0.72535145", "0.71442556", "0.7140717", "0.7109...
0.8593697
0
Take a string and return a valid filename constructed from the string.
def LWVQ(KCHu): jUwZ = '-_.() %s%s' % (vIwR.ascii_letters, vIwR.digits) Ux0P = ''.join((Z9rn for Z9rn in KCHu if Z9rn in jUwZ)) Ux0P = Ux0P.replace(' ', '_') return Ux0P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XZ66(KCHu):\n KCHu = str(KCHu).strip().replace(' ', '_')\n return ZbWC.sub('(?u)[^-\\\\w.]', '', KCHu)", "def XZ66(KCHu):\n KCHu = Qsf5(KCHu).strip().replace(' ', '')\n return ZbWC.sub('(?u)[^-\\\\w.]', '_', KCHu)", "def XZ66(KCHu):\n KCHu = Qsf5(KCHu).strip().replace(' ', '')\n return Zb...
[ "0.79506433", "0.7925172", "0.7925172", "0.7912397", "0.7907129", "0.787974", "0.78643614", "0.78582716", "0.78391373", "0.7833441", "0.7808528", "0.7706029", "0.7706029", "0.76997536", "0.76997536", "0.76920176", "0.76908684", "0.76805085", "0.7666094", "0.7548477", "0.75307...
0.77726614
11
Sets the contact_email of this PartnerCompact.
def LpCf(YKHO, LpCf): YKHO._contact_email = LpCf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LpCf(YKHO, LpCf):\n if LpCf is None:\n raise ValueError('Invalid value for `contact_email`, must not be `None`')\n if LpCf is not None and len(LpCf) > 254:\n raise ValueError('Invalid value for `contact_email`, length must be less than or equal to `254`')\n if LpCf is not None and len(Lp...
[ "0.77190226", "0.7597219", "0.6903445", "0.6878529", "0.6872188", "0.6845478", "0.6817319", "0.6798544", "0.67529595", "0.67529595", "0.6731548", "0.6731548", "0.6731548", "0.6731548", "0.6731548", "0.6731548", "0.6731548", "0.6731548", "0.6731548", "0.6731548", "0.6731548", ...
0.8187673
0
Initializes multilayer perceptron object.
def FIMM(YKHO, qepc, V06R, TFPw): YKHO.n_inputs = qepc YKHO.n_hidden = V06R YKHO.num_of_hidden = len(YKHO.n_hidden) YKHO.n_classes = TFPw ycBG = hPO2(qepc, YKHO.n_hidden[0]) YKHO.hiddenlayers = [ycBG] for YRbF in range(YKHO.num_of_hidden - 1): ycBG = hPO2(YKHO.n_hidden[YRbF], YKHO.n_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, fhcK: List[PerceptronLayer]):\n YKHO.hiddenlayers = fhcK\n YKHO.input = []\n YKHO.output = []", "def FCbF(YKHO):\n YKHO.p_or = Vzwv([1, 1], -0.5)", "def FIMM(YKHO, gqIb):\n YKHO.layer_size = gqIb\n YKHO.output_layer = []\n YKHO.num_hidden_layers = len(gqIb) - 2\n YKHO.hid...
[ "0.75949", "0.7366484", "0.73202544", "0.7238656", "0.7153311", "0.7142089", "0.71313816", "0.712452", "0.71009254", "0.70762223", "0.7072668", "0.7070784", "0.7052816", "0.703613", "0.7031848", "0.6958917", "0.69500786", "0.6922039", "0.68988466", "0.6886787", "0.682619", ...
0.0
-1
was published recently returns False for questions whose pub_date is in the future.
def GoiU(YKHO): ITS7 = rIAI.now() + qcWV.timedelta(days=30) vS5o = Y4Gy(pub_date=ITS7) YKHO.assertIs(vS5o.was_published_recently(), False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6Rv(YKHO):\n vS5o = pMQf.create_question('Past question', 30)\n Hz0M = vS5o.is_recent_publication()\n YKHO.assertFalse(Hz0M, 'Expected question from future to not be recent')", "def WC1_(YKHO):\n return rIAI.now() - qcWV.timedelta(days=1) <= YKHO.pub_date <= rIAI.now()", "def WC1_(YKHO):\n ...
[ "0.8271907", "0.8267813", "0.8249876", "0.8249876", "0.8249876", "0.8249876", "0.8184345", "0.8170756", "0.81613666", "0.8156377", "0.8149743", "0.81391567", "0.8135685", "0.81315017", "0.81230104", "0.810871", "0.81064105", "0.81064105", "0.81064105", "0.81064105", "0.810641...
0.79779667
38
was_published_recently() returns False for questions whose pub_date is older than 1 day.
def QPdK(YKHO): ITS7 = rIAI.now() - qcWV.timedelta(days=1, seconds=1) lPNG = Y4Gy(pub_date=ITS7) YKHO.assertIs(lPNG.was_published_recently(), False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_...
[ "0.8740735", "0.8740735", "0.8740735", "0.8740735", "0.86806405", "0.8242392", "0.8218473", "0.82146424", "0.81893593", "0.81765264", "0.8168311", "0.8168311", "0.8168311", "0.8168311", "0.8168311", "0.8168311", "0.8168311", "0.8168311", "0.8168311", "0.8168311", "0.8168311",...
0.8107407
36
was_published_recently() returns True for questions whose pub_date is within the last day.
def eC1B(YKHO): ITS7 = rIAI.now() - qcWV.timedelta(hours=23, minutes=59, seconds=59) m5xt = Y4Gy(pub_date=ITS7) YKHO.assertIs(m5xt.was_published_recently(), True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_...
[ "0.8752381", "0.8752381", "0.8752381", "0.8752381", "0.86442673", "0.8239811", "0.81569993", "0.8147649", "0.81429285", "0.81411886", "0.8135574", "0.8128395", "0.8118476", "0.8107376", "0.81010437", "0.8094815", "0.8085022", "0.80808157", "0.8066806", "0.7992036", "0.7985996...
0.81401086
13
was_published_recently() returns True for questions whose pub_date is within the last day.
def eC1B(YKHO): ITS7 = rIAI.now() - qcWV.timedelta(hours=23, minutes=59, seconds=59) m5xt = Y4Gy(pub_date=ITS7) YKHO.assertIs(m5xt.was_published_recently(), True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_...
[ "0.87533295", "0.87533295", "0.87533295", "0.87533295", "0.8645171", "0.8240212", "0.8157766", "0.8148206", "0.814349", "0.8141645", "0.81360996", "0.81285346", "0.8118918", "0.81085783", "0.8101447", "0.80952084", "0.8086462", "0.808123", "0.8067426", "0.799254", "0.7986198"...
0.8140573
12
If no questions exist, an appropriate message is displayed.
def SRut(YKHO): geh0 = YKHO.client.get(gxEw('polls:index')) YKHO.assertEqual(geh0.status_code, 200) YKHO.assertContains(geh0, 'No polls are available.') YKHO.assretQuerysetsetEqual(geh0.context['latest_question_list'], [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bAls():\n return 'Sure.'", "def oK9x(YKHO):\n geh0 = YKHO.client.get('/polls/')\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, '등록된 설문조사가 없습니다.')\n YKHO.assertQuerysetEqual(geh0.context['question_list'], [])", "def oK9x(YKHO):\n geh0 = YKHO.client.get(gxEw('polls:in...
[ "0.7096246", "0.69611084", "0.6905798", "0.68849754", "0.6874971", "0.6839377", "0.68210804", "0.68210804", "0.68210804", "0.68210804", "0.6804939", "0.6790296", "0.6753222", "0.6675118", "0.6671234", "0.6588695", "0.6539401", "0.6521559", "0.65041435", "0.64880913", "0.64779...
0.6502328
19
Questions with a pub_date in the past are displayed on the index page.
def MULS(YKHO): bAls = II0Q(question_text='Past question.', days=-30) geh0 = YKHO.client.get(gxEw('polls:index')) YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], [bAls])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lrPw(YKHO):\n II0Q(question_text='Past question.', days=-1)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question.>'])", "def hOEG(YKHO):\n II0Q(question_text='Past question.', days=-1)\n II0Q(question_text='Fu...
[ "0.7111883", "0.7096711", "0.7055578", "0.7043097", "0.703423", "0.700061", "0.6933953", "0.687205", "0.685686", "0.6852449", "0.68203026", "0.67839813", "0.6783746", "0.6761514", "0.6761061", "0.6759581", "0.6741319", "0.67342997", "0.67236876", "0.6699858", "0.6673771", "...
0.64122564
81
Get center coordinate of the face
def ah4A(RpU_): hgjH = lNLu((0.0, 0.0, 0.0)) for Ty9i in RpU_.verts: hgjH = hgjH + Ty9i.co return hgjH / len(RpU_.verts)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cX4W(YKHO):\n return (YKHO.x + YKHO.rect.width / 2, YKHO.y - YKHO.rect.height / 2)", "def cX4W(YKHO):\n NgpY = YKHO.get_geometry()\n return NgpY.get_center()", "def fEAa(RpU_):\n crDL = RpU_[1][0][0]\n xFf5 = RpU_[2]\n Cwt5 = crDL[1]\n UqYS = crDL[2]\n GOf2.angleInterpolation(['Head...
[ "0.799829", "0.7914345", "0.7904198", "0.78791636", "0.78640836", "0.78508586", "0.783123", "0.78303194", "0.77590287", "0.7752748", "0.7721967", "0.77103305", "0.7691286", "0.7669598", "0.765362", "0.76370925", "0.7620264", "0.76041645", "0.7602163", "0.76018727", "0.7595821...
0.8984805
0
Merges two dictionaries together (appends one to the other)
def roQF(WKvO, LVAh): if WKvO == None and LVAh == None: return None elif WKvO == None: return LVAh elif LVAh == None: return WKvO epBp = WKvO.copy() epBp.update(LVAh) return epBp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IYhE(jzdc, Fg_i):\n Aofo = jzdc.copy()\n Aofo.update(Fg_i)\n return Aofo", "def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def roQF(WbPA, S69B):\n epBp = WbPA.copy()\n epBp.update(S69B)\n return epBp", "def yQxF(WbPA, S69B):\n lXgg = WbPA.cop...
[ "0.8640889", "0.8585877", "0.8566267", "0.85628355", "0.8541418", "0.84638494", "0.8459962", "0.8459962", "0.8459962", "0.8459962", "0.8459962", "0.8459962", "0.8459962", "0.8459962", "0.8459962", "0.8459962", "0.8459962", "0.8459962", "0.8459962", "0.8459962", "0.8459962", ...
0.0
-1
Sanitize a given name such that it conforms to unix policy.
def DhAv(mWFP): if len(mWFP) == 0: raise Exception('Can not sanitize an empty field.') brhG = ZbWC.sub('[^a-z0-9\\+-\\.]', '-', mWFP.lower()) if brhG[0] in vIwR.digits: brhG = 'p' + brhG return brhG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPMQ(Emd4, mWFP):\n from chevah_compat.testing.testcase import ChevahTestCase\n ZVNn = IiPb.os_name\n LioG = ChevahTestCase.os_version\n if ZVNn in ['aix', 'hpux', 'freebsd', 'openbsd']:\n return z3nO(mWFP)\n elif LioG in ['osx-10.16']:\n F5xX = z3nO(mWFP)\n return F5xX.repl...
[ "0.814988", "0.7935318", "0.7587285", "0.75524795", "0.7469042", "0.7214276", "0.7134585", "0.71113896", "0.7079411", "0.704684", "0.6994827", "0.6993081", "0.69835234", "0.6969281", "0.69671756", "0.69413626", "0.69352645", "0.6934291", "0.6930202", "0.6911424", "0.68943655"...
0.7166575
6
Returns the cumulative sum of a timeseries (indexed over years), implements linear interpolation between years, ignores nan's in the range. The function includes the lastyear value of the series, and raises a warning if start_year or last_year is outside of the timeseries range and returns nan
def SCAk(WKvO, fVhC, hP5b): if min(WKvO.index) > fVhC: qmLP.warn('timeseries {} does not start by {}'.format(WKvO.name, fVhC)) return oyIN.nan if max(WKvO.index) < hP5b: qmLP.warn('the timeseries {} does not extend until {}'.format(WKvO.name, hP5b)) return oyIN.nan WKvO[fVhC]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PlwY(WKvO, lO87):\n WKvO = WKvO.dropna()\n if lO87 in WKvO.index and (not oyIN.isnan(WKvO[lO87])):\n return WKvO[lO87]\n else:\n THkp = [YRbF for YRbF in WKvO.index if YRbF < lO87]\n NlZ_ = [YRbF for YRbF in WKvO.index if YRbF > lO87]\n if THkp and NlZ_:\n XP5J =...
[ "0.64859986", "0.6334415", "0.5828416", "0.56607187", "0.56556183", "0.5468146", "0.5438651", "0.5434105", "0.5379445", "0.5344419", "0.53381747", "0.52805364", "0.525652", "0.52253723", "0.5190924", "0.5181931", "0.5166447", "0.5154975", "0.5115357", "0.5108433", "0.51031566...
0.82277435
0
Returns the number of items in the set object.
def szAg(YKHO): return len(YKHO.myList)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jm1s(YKHO):\n return YKHO.items.count()", "def fcYF(YKHO):\n UHFx = 0\n for bGrB in YKHO:\n UHFx += 1\n return UHFx", "def Jm1s(YKHO):\n return len(YKHO.items)", "def UHFx(YKHO):\n UHFx = 0\n for bGrB in YKHO:\n UHFx += 1\n return UHFx", "def szAg(YKHO):\n if YK...
[ "0.79484963", "0.791911", "0.7881071", "0.7859949", "0.7847487", "0.78372896", "0.7753148", "0.774751", "0.773895", "0.773895", "0.773895", "0.7735844", "0.7690724", "0.7685206", "0.7672779", "0.76574814", "0.7650985", "0.7644077", "0.76391166", "0.76332724", "0.76332724", ...
0.0
-1
Compute path under repo's gitdir.
def dMng(boHx: GitRepository, *pmON: str) -> GkAb: return boHx.gitdir.joinpath(*pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kl_y(boHx: str | GitRepo) -> str:\n if isinstance(boHx, KjAC):\n return str(boHx.dot_git)\n TAOK = GkAb(boHx)\n wkPL = Kt_5(TAOK, ok_missing=False)\n try:\n wkPL = wkPL.relative_to(TAOK)\n except ValueError:\n q1oD.debug('Path %r is not subpath of %r', wkPL, TAOK)\n retur...
[ "0.8241477", "0.8025501", "0.79717916", "0.79717916", "0.78847307", "0.78354967", "0.7787733", "0.7782538", "0.77377796", "0.7711158", "0.7709719", "0.7703609", "0.7626523", "0.7624773", "0.75609434", "0.75145996", "0.74643445", "0.7455753", "0.7438541", "0.7416281", "0.73243...
0.8045068
1
Same as repo_path, but create dirname(path) if absent. For example, repo_file(r, \"refs\" \"remotes\", \"origin\", \"HEAD\") will create .git/refs/remotes/origin.
def iHpw(boHx: GitRepository, *pmON: str, okOq: bool=False) -> GkAb: if ejh1(boHx, *pmON[:-1], mkdir=okOq): return dMng(boHx, *pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iHpw(boHx, *pmON, okOq=False):\n if ejh1(boHx, *pmON[:-1], mkdir=okOq):\n return dMng(boHx, *pmON)", "def iHpw(boHx, *pmON, okOq=False):\n if ejh1(boHx, *pmON[:-1], mkdir=okOq):\n return dMng(boHx, *pmON)", "def iHpw(boHx, *pmON, okOq=False):\n if ejh1(boHx, *pmON[:-1], mkdir=okOq):\...
[ "0.7587214", "0.7587214", "0.7521791", "0.70066106", "0.700498", "0.69520354", "0.69520354", "0.6906465", "0.68917453", "0.6836109", "0.682003", "0.6784188", "0.6639988", "0.6613665", "0.6498687", "0.6393204", "0.6271576", "0.62682647", "0.6231442", "0.6223708", "0.61484146",...
0.7793845
0
Run model on the data_loader and evaluate the metrics with evaluator. Also benchmark the inference speed of `model.forward` accurately. The model will be used in eval mode.
def J6d2(_Fei, C3ST, zQKy, W2ox, Okid=False): BL0z = OZRt() bo34 = G9jH.getLogger(__name__) bo34.info('Start inference on {} images'.format(len(zQKy))) wjRY = len(zQKy) if W2ox is None: W2ox = SZNQ([]) W2ox.reset() YWsF = min(5, wjRY - 1) SWox = ITS7.perf_counter() agvP = 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EvQg(qIxc, zQKy, C3ST, Zxvy):\n YbcW = BfDw.AverageMeter()\n p6zu = BfDw.Timer()\n for or8S, aTqo in enumerate(zQKy):\n Ep8u = aTqo[0].shape[0]\n N77f = C3ST.update(aTqo, 'train')\n YbcW.update(N77f[0], Ep8u)\n if or8S % qIxc.display_iter == 0:\n bo34.info('train...
[ "0.724599", "0.7241807", "0.7207333", "0.71901786", "0.7189673", "0.7183144", "0.718202", "0.717531", "0.71695656", "0.7160944", "0.7105809", "0.7092571", "0.7077517", "0.7075142", "0.7063043", "0.70602036", "0.70535266", "0.7052732", "0.7031655", "0.7025553", "0.70168597", ...
0.6941087
29
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, qtWj): tspZ = qIxc.lr * 0.2 ** (qtWj // 1000) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.0
-1
Save checkpoint and the current best model
def IRyE(QTBn, xWf0, C3ST=None): gXgy = './models/' + str(C3ST) if Hy7s.path.exists(gXgy) is False: Hy7s.makedirs(gXgy) k897 = gXgy + '/checkpoint_' + str(C3ST) + '.pth.tar' KRKG = gXgy + '/model_best_' + str(C3ST) + '.pth.tar' ht2j.save(QTBn, k897) if xWf0: RDuA.copyfile(k897, K...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IRyE(YKHO):\n if not Hy7s.path.isdir(DQyF):\n Hy7s.mkdir(DQyF)\n uqvc = Hy7s.path.join(DQyF, f'{YKHO.experiment_id}.pth')\n print(f'saved the model at {uqvc}')\n h00i = YKHO.model.state_dict()\n if YKHO.optimizer is not None:\n L5qv = YKHO.optimizer.state_dict()\n else:\n ...
[ "0.8428705", "0.8280736", "0.8209516", "0.8170222", "0.81381154", "0.80956584", "0.80940276", "0.80311805", "0.8027434", "0.7977929", "0.79770947", "0.7949127", "0.7946759", "0.79380935", "0.79312825", "0.7930002", "0.79034764", "0.78968453", "0.7890144", "0.7871782", "0.7870...
0.766438
47
Build a TF Dataset pipeline that returns padded batches. In distributed training, each GPU/process has a dataloader. In nondistributed training, there is only one dataloader for all GPUs.
def syqS(__n6, Wlc3, JHuQ=1, J9Qu=0, pImw=True, hXNa=True, **B2fa): Ep8u = Wlc3 if pImw: fdMZ, Yviu, zNig, YIjs = tQUY() if __n6.train: c2Yh = lMIx.DataGenerator(__n6, index=fdMZ, num_gpus=zNig, shuffle=hXNa) else: c2Yh = lMIx.DataGenerator(__n6, index=fdMZ, num_g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPIK(YKHO, __n6: tf.data.Dataset) -> ZylS.data.Dataset:\n if YKHO.config.builder != 'tfds' and YKHO.input_context and (YKHO.input_context.num_input_pipelines > 1):\n __n6 = __n6.shard(YKHO.input_context.num_input_pipelines, YKHO.input_context.input_pipeline_id)\n G9jH.info('Sharding the datase...
[ "0.68829185", "0.68640745", "0.6834533", "0.6723467", "0.6721305", "0.67103064", "0.6707208", "0.6680464", "0.6653374", "0.66448987", "0.66339517", "0.6608816", "0.65686387", "0.65598726", "0.6506966", "0.6503179", "0.64746964", "0.64746964", "0.64529186", "0.6442126", "0.643...
0.74487305
0
A getter method to get the path to the company's quote data.
def peQT(YKHO): return YKHO._quote.path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j0u4(YKHO):\n return YKHO._financial_data.path", "def OyQC(YKHO):\n return YKHO.data_path", "def NCC9(YKHO):\n return YKHO._quote.value", "def OyQC(YKHO):\n assert hasattr(YKHO, '__parent__'), 'get_path() can be called only for objects whose lineage is set by make_lineage()'\n UXsa = YKHO....
[ "0.6244029", "0.6085153", "0.6000188", "0.5934532", "0.58782345", "0.5877649", "0.58497155", "0.5834536", "0.5834536", "0.5834536", "0.5834536", "0.5834536", "0.5834536", "0.5834536", "0.5834536", "0.5834536", "0.5834536", "0.58283496", "0.5818747", "0.5812822", "0.5812322", ...
0.69237685
0
A getter method to get a company's quote data.
def NCC9(YKHO): return YKHO._quote.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vPYC(YKHO):\n nPrm = s9HI.objects.get(company_id=YKHO.company_id)\n if nPrm:\n return nPrm\n return None", "def szc3():\n geh0 = G4JS.get(bD7m).json()\n gTcu = LX6y(geh0.get('author'), geh0.get('description'))\n return gTcu", "def c2sL(YKHO):\n return YKHO.dm.get_company_details...
[ "0.6759472", "0.67416865", "0.6661279", "0.65868866", "0.6532582", "0.63360745", "0.62661886", "0.6234579", "0.6172883", "0.61397845", "0.6113804", "0.6113804", "0.6113804", "0.6113804", "0.6113804", "0.6113804", "0.6113804", "0.6113804", "0.6052193", "0.6035682", "0.6000287"...
0.6369833
5
Assign value to the tf.Variable storing the hyperparameter value.
def set(YKHO, BWXx: ArrayOrTensor): YKHO._internal_rewards.assign(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bD1G(YKHO, BWXx, cuiw):\n cuiw.run(ZylS.assign(YKHO.var, BWXx, validate_shape=False))\n YKHO.value = BWXx\n cuiw.run(YKHO.var_r.assign(True))\n YKHO.restored = True", "def bD1G(YKHO, BWXx):\n cb_Q = YKHO.get_current_session()\n return cb_Q.run(YKHO.assign_op, feed_dict={YKHO.placeholder: BW...
[ "0.802601", "0.72982424", "0.7167671", "0.71619403", "0.6675635", "0.66705406", "0.66176516", "0.6589977", "0.6554035", "0.6540304", "0.647202", "0.6439264", "0.64352536", "0.6385685", "0.63699573", "0.633074", "0.63271004", "0.63271004", "0.63271004", "0.63271004", "0.631827...
0.0
-1
Returns the tf.Variable storing the hyperparameter value.
def Es0b(YKHO) -> ZylS.Variable: return YKHO._internal_rewards
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Es0b(mWFP, ROpF, yDqo, MuED, XJsN):\n SRYB = ZylS.get_variable(mWFP, shape=ROpF, dtype=yDqo, initializer=MuED, trainable=XJsN)\n return SRYB", "def LeTJ(YKHO):\n return YKHO._variable", "def BWXx(YKHO):\n if YKHO._cached_value is not None:\n return YKHO._cached_value\n with IPme.coloc...
[ "0.7280766", "0.7062646", "0.69577795", "0.68380195", "0.6817146", "0.6755277", "0.6697957", "0.6697957", "0.6652399", "0.66445225", "0.6627557", "0.657534", "0.6549943", "0.6479398", "0.6458141", "0.6455182", "0.6454491", "0.63796335", "0.6370961", "0.63643855", "0.6311428",...
0.67544127
6
Get a string with current time now containing only numbers.
def wzkt(): wzkt = qcWV.datetime.now() return '{:4}{:2}{:2}{:2}{:2}{:2}'.format(wzkt.year, wzkt.month, wzkt.day, wzkt.hour, wzkt.minute, wzkt.second).replace(' ', '0')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V2LE():\n return vHj7", "def UkAc():\n return cDzk.timeutils.isotime(qcWV.datetime.utcnow())", "def m7L9():\n return str(qcWV.now()).split('.')[0]", "def rVsV():\n return str(WmcE())[:19]", "def HZSV() -> str:\n return qcWV.datetime.now().isoformat()[:21].replace('T', ' ')", "def fz29(...
[ "0.74755335", "0.7266444", "0.7253784", "0.7230369", "0.7224274", "0.7187241", "0.71108115", "0.709115", "0.7073952", "0.7029007", "0.70281506", "0.69845027", "0.6984253", "0.6964463", "0.69282335", "0.6926123", "0.6919971", "0.69195056", "0.69176304", "0.69160163", "0.690942...
0.7545826
0
Check whether an object is iterable.
def s_0d(YEnM): try: iter(YEnM) return True except: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfZ5(YEnM):\n return isinstance(YEnM, iu5r)", "def GfZ5(YEnM):\n try:\n iter(YEnM)\n except TypeError:\n return False\n else:\n return True", "def GfZ5(YEnM):\n try:\n iter(YEnM)\n return True\n except TypeError:\n return False", "def kUz6(YEnM)...
[ "0.86593556", "0.8632613", "0.8632433", "0.8581781", "0.85739005", "0.8557113", "0.85328674", "0.85062826", "0.85027117", "0.848846", "0.84857994", "0.8473966", "0.84014696", "0.84014696", "0.83744043", "0.83409476", "0.82978934", "0.8283227", "0.8248562", "0.82350546", "0.81...
0.7869917
29
Returns the index of the dealer.
def Y7DL(YKHO): return tuKI.randint(0, 3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn7Z(YKHO) -> int:\n return YKHO._index", "def d6pt(YKHO) -> int:\n return YKHO._index", "def d6pt(YKHO) -> int:\n return YKHO._index", "def d6pt(YKHO) -> int:\n return YKHO._index", "def d6pt(YKHO) -> int:\n return YKHO._index", "def d6pt(YKHO) -> int:\n return YKHO._index", "def...
[ "0.7198288", "0.6975695", "0.6975695", "0.6975695", "0.6975695", "0.6975695", "0.6935318", "0.6909878", "0.6909878", "0.6909878", "0.68768317", "0.6874639", "0.6815669", "0.6815669", "0.6815669", "0.6780521", "0.67267686", "0.67164344", "0.6677215", "0.6676299", "0.66693306",...
0.0
-1
A context manager to predefine the random state of all augmentations.
def RJCE(YKHO, yokr): UkFR = YKHO.seq.deepcopy() NbEU = YKHO.shift_seq.deepcopy() YKHO.seq.seed_(yokr) YKHO.shift_seq.seed_(yokr) yield YKHO.seq = UkFR YKHO.shift_seq = NbEU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TmLC(YKHO, yokr=None):\n if yokr is not None:\n oyIN.random.seed(yokr)\n for uOe2 in YKHO.groups:\n if uOe2 in YKHO.initializers.keys():\n dd6i = YKHO.initializers[uOe2]\n iKzK = YKHO.group_objects(uOe2)\n if 'positions' in dd6i.keys():\n FBNX...
[ "0.6481738", "0.6452724", "0.6396943", "0.6391438", "0.6378927", "0.63626534", "0.6300597", "0.6252388", "0.6251763", "0.623058", "0.6184932", "0.61639506", "0.610537", "0.60945195", "0.6034525", "0.6010263", "0.59965694", "0.599335", "0.5968319", "0.59682566", "0.5965201", ...
0.0
-1
Convert wkt srs to proj4
def B_Y5(CstC): IWsN = BYPk.SpatialReference() IWsN.ImportFromWkt(CstC) return IWsN.ExportToProj4()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wCi9(IDBL):\n return _qzM(IDBL).ExportToWkt()", "def apYU(YKHO, _fYl=False, xfQv=True):\n if xfQv:\n vIwR = '+proj=longlat %s %s +nodef' % (YKHO.datum.to_proj4(), YKHO.prime_mer.to_proj4())\n else:\n vIwR = '%s %s' % (YKHO.datum.to_proj4(), YKHO.prime_mer.to_proj4())\n if _fYl:\n ...
[ "0.76228064", "0.6824057", "0.6778076", "0.67437977", "0.6681241", "0.652417", "0.6467141", "0.6465461", "0.63621396", "0.63494617", "0.63154733", "0.6190487", "0.6157219", "0.6097014", "0.6096293", "0.60285646", "0.6011968", "0.60002524", "0.59874684", "0.5974934", "0.594775...
0.8011075
0
Sets the seed for this env's random number generator(s). Currently not implemented.
def yokr(YKHO, yokr: Any=None) -> None: return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fwb1(YKHO, yokr: int):\n tuKI.seed(yokr)\n oyIN.random.seed(yokr)\n PVng(yokr)", "def BpNF(YKHO, yokr):\n YKHO.env.seed(yokr)\n oyIN.random.seed(yokr)\n tuKI.seed(yokr)", "def e3of(YKHO, yokr):\n YKHO.seed = yokr\n YKHO._random = VDG3(seed=YKHO.seed)", "def Z9de(YKHO, yokr):\n ...
[ "0.84150374", "0.84037995", "0.8304143", "0.82458586", "0.8212742", "0.8211781", "0.81968933", "0.8156784", "0.81196415", "0.8117494", "0.8019468", "0.80026805", "0.8001214", "0.7962409", "0.7929058", "0.7929058", "0.79280674", "0.7918724", "0.791188", "0.791188", "0.791188",...
0.0
-1
Converts each column of a JointsDataframe to array.
def TNRc(YKHO, DQ35: pd.DataFrame): TKmK = DQ35['joint_x'].to_numpy() suHb = DQ35['joint_y'].to_numpy() i7Uj = DQ35['joint_z'].to_numpy() return (TKmK, suHb, i7Uj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sWRh(UoUA, iVRZ):\n SwzD = UoUA[iVRZ].values\n return SwzD", "def WTDd(YKHO):\n\n def a8Pe(jQ3Z):\n \"\"\"Convert `df` to NumPy array.\"\"\"\n if len(jQ3Z.columns == 1):\n jQ3Z = jQ3Z.iloc[:, 0]\n if isinstance(jQ3Z, Y3tb.Series):\n return cqkc.asnumpy(jQ3Z...
[ "0.7301634", "0.7211159", "0.7138797", "0.6937312", "0.687329", "0.6713319", "0.6666341", "0.66053253", "0.65670884", "0.6560879", "0.65596014", "0.6479278", "0.6472528", "0.6311879", "0.62961483", "0.62958324", "0.6290054", "0.62816465", "0.6244414", "0.6228367", "0.61910486...
0.7684711
0
compute the 2's complement of int value val
def h7al(YKHO, wEf2, UOVU): if wEf2 & 1 << UOVU - 1 != 0: wEf2 = wEf2 - (1 << UOVU) return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X1Vv(BWXx: int) -> int:\n assert BWXx.bit_length() <= 16, 'Value too large!'\n assert BWXx > 0, 'Value is negative!'\n return 2 ** 16 - BWXx", "def vGDI(YKHO, mLGw):\n Csk6 = bin(mLGw)[2:]\n if mLGw >= 0:\n return int('1' * len(Csk6), 2) - mLGw", "def pAWV(WKvO):\n assert type(WKvO...
[ "0.7631956", "0.7355158", "0.72981936", "0.7169025", "0.7107903", "0.69499755", "0.6924448", "0.6816031", "0.6761521", "0.67599815", "0.67399", "0.66093016", "0.65710974", "0.65677685", "0.65496564", "0.6534571", "0.6503414", "0.6438741", "0.6436792", "0.6415961", "0.6353164"...
0.63983244
20