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
Take the derivative of all terms in a line.
def DEGk(YKHO, WKvO, *eHNT): epBp = ncGu([]) for YRbF in YKHO: Csk6 = YRbF.derive(WKvO, *eHNT) epBp = epBp.add(Csk6) return epBp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VVyp(YKHO, WKvO):\n epBp = oyIN.asarray(WKvO)\n return YKHO._der(epBp.flatten()).reshape(epBp.shape)", "def MC1R(WKvO):\n return VVyp(zfS_, WKvO, dx=1e-06)", "def LyOx(WKvO):\n return VVyp(MC1R, WKvO, dx=1e-06)", "def LyOx(WKvO):\n return VVyp(MC1R, WKvO, dx=1e-06)", "def LFRa(YKHO, WKvO...
[ "0.6287603", "0.61329365", "0.6008896", "0.6008896", "0.5989533", "0.5962894", "0.5962894", "0.59107757", "0.58821136", "0.5873872", "0.5873872", "0.58654827", "0.5865048", "0.5852337", "0.58336663", "0.5831153", "0.58310574", "0.58284545", "0.5736531", "0.57330865", "0.57132...
0.5657521
27
Get a list of all generated filenames.
def iumf(YKHO): return YKHO._filenames
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jyA3(YKHO):\n IznC = YKHO.__get_output_filename()\n return [IznC] if IznC else []", "def I3lW(YKHO):\n return YKHO.filenames", "def iumf(YKHO):\n pass", "def a7k4():\n d0zu = Hy7s.path.join(vPBo.dataset_dir, vPBo.src_dir)\n iumf = [Hy7s.path.join(d0zu, eHNT) for eHNT in Hy7s.listdir(d0z...
[ "0.7120013", "0.71136034", "0.709146", "0.7070363", "0.7036274", "0.6967207", "0.6900933", "0.68958753", "0.68431044", "0.67486537", "0.67199856", "0.66551083", "0.66414446", "0.65621424", "0.6533204", "0.6533204", "0.6530925", "0.65155405", "0.6512312", "0.6483414", "0.64816...
0.66828895
11
Reads a requirements.txt file into a list suitable for ``setuptools.setup(requires=)``
def Ks_v(VqRE): with open(VqRE, 'r') as Gcbu: return Gcbu.read().split('\n')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ks_v():\n with open('requirements.txt') as eHNT:\n fA3L = eHNT.readlines()\n return [U6D_.strip() for U6D_ in fA3L]", "def Ks_v():\n VGiD = Hy7s.path.join('.', 'requirements.txt')\n with open(VGiD, 'r') as eHNT:\n fA3L = [zFiD.rstrip() for zFiD in eHNT]\n return fA3L", "def Ks_...
[ "0.8712549", "0.8589721", "0.8544314", "0.8525965", "0.8253816", "0.8195003", "0.8180286", "0.81278795", "0.80979496", "0.8074025", "0.80606693", "0.80096936", "0.79112613", "0.7896535", "0.78825325", "0.7814512", "0.77679354", "0.77166635", "0.7705078", "0.76865953", "0.7667...
0.7595991
24
Generate a unique name for a saved file to avoid overwrites.
def _kQf(aPr_=Hy7s.getcwd()): IznC, ZI14 = aPr_.split('.') Byc2 = 1 yxfZ = IznC while Hy7s.path.exists(yxfZ + '.' + ZI14): yxfZ = IznC + '_{}'.format(Byc2) Byc2 += 1 return yxfZ + '.' + ZI14
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CAta(nPrm):\n nUeQ = nPrm\n DJty = nUeQ.filename.split('.')[-1]\n Dokz = '%s.%s' % (qxeD.uuid4().hex, DJty)\n return Dokz", "def pcWg(Ux0P: str) -> str:\n return f'{str(qxeD.uuid4())}.{oIn5(Ux0P)}'", "def g_2H() -> str:\n import uuid\n sI06 = uuid.uuid4().hex\n return 'LOCAL_STORAGE...
[ "0.8086954", "0.78277636", "0.77388144", "0.76284075", "0.76215976", "0.7591074", "0.7485252", "0.74615246", "0.7311994", "0.72838324", "0.7258553", "0.72120106", "0.71622866", "0.71607673", "0.7114579", "0.7099688", "0.70991296", "0.7091899", "0.70764697", "0.7071191", "0.70...
0.77003443
3
Write a function that takes a list of numbers and returns the cumulative sum; that is, a new list where the ith element is the sum of the first i + 1 elements from the original list. For example, the cumulative sum of [1, 2, 3] is [1, 3, 6].
def IJGg(qw7D): Ylbp = [] wEf2 = 0 for LihS in qw7D: wEf2 += LihS Ylbp.append(wEf2) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJGg(YKHO, qgK3):\n S06t = []\n for YRbF in range(len(qgK3)):\n if YRbF == 0:\n S06t.append(qgK3[YRbF])\n else:\n S06t.append(S06t[YRbF - 1] + qgK3[YRbF])\n return S06t", "def IJGg(hcfj):\n for YRbF in range(len(hcfj)):\n S06t = hcfj\n if YRbF > 0...
[ "0.87080795", "0.86282575", "0.85666066", "0.8363793", "0.8022101", "0.7844182", "0.76689416", "0.7634356", "0.71416485", "0.702023", "0.6729737", "0.6720263", "0.66220856", "0.6580383", "0.6511649", "0.64146245", "0.6407156", "0.6315912", "0.62652194", "0.6246582", "0.624586...
0.74776244
8
Return a list of protein groups a protein is associated with.
def ubVI(YKHO, ZnQW): return [YKHO.groups[htPo] for htPo in YKHO._proteinToGroupIds[ZnQW]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ubVI(YKHO):\n return [Oa1e[0] for Oa1e in C4gk.getgrall()]", "def mqfT(YKHO):\n return YKHO.groups[:]", "def _Fmd():\n return yH7Q('group', dbpath=wY5Z)", "def MvIi(YKHO):\n return [YKHO.primary_group] + list(YKHO.secondary_groups)", "def moMn(YKHO):\n return YKHO.get_data('groups')", ...
[ "0.7153447", "0.70841604", "0.7017662", "0.7016201", "0.685909", "0.68354905", "0.68280405", "0.6819234", "0.6796967", "0.6726868", "0.67224044", "0.66879076", "0.6670025", "0.6670025", "0.6670025", "0.6607211", "0.6554282", "0.64675397", "0.6448855", "0.64235014", "0.6411004...
0.7562836
0
Add one or multiple leading proteins to one or multiple protein groups.
def WkGO(YKHO, OrEf, YxzV): for e7pw in yxXI.toList(YxzV): YKHO.groups[e7pw].addLeadingProteins(OrEf) YKHO._addProteinIdsToGroupMapping(OrEf, e7pw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G3Kb(YKHO, OrEf):\n YKHO._addProteins(OrEf, ['leading', 'proteins'])", "def JJDe(YKHO, OrEf, e7pw):\n for ZnQW in yxXI.toList(OrEf):\n YKHO._proteinToGroupIds[ZnQW].add(e7pw)", "def c45M(YKHO, OrEf, wNA3):\n OrEf = yxXI.toList(OrEf)\n for hGhT in wNA3:\n BnvN = getattr(YKHO, hGhT)...
[ "0.68329895", "0.60061306", "0.57841706", "0.577669", "0.5611458", "0.5516802", "0.5475791", "0.5260264", "0.52597487", "0.5190181", "0.5178887", "0.51755285", "0.50693446", "0.50645876", "0.4942627", "0.4940593", "0.49352676", "0.49300286", "0.4896917", "0.48905212", "0.4844...
0.7079097
0
Returns the next internal groupId and increments the counter.
def p78c(YKHO): e7pw = YKHO._nextGroupId YKHO._nextGroupId += 1 return str(e7pw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzg2(YKHO):\n if not hasattr(YKHO.space, '_group_ctr'):\n YKHO.space._group_ctr = 999\n YKHO.space._group_ctr += 1\n return YKHO.space._group_ctr", "def ftcK(BatK, r0ef):\n for d6pt in range(3):\n xULG = tuKI.randint(klU0, Vo08)\n if BatK in r0ef:\n Hq2u = int(r0ef...
[ "0.7152024", "0.64310133", "0.6405861", "0.6389663", "0.6352671", "0.6313296", "0.61774427", "0.6155733", "0.61249375", "0.61249375", "0.60826427", "0.6037825", "0.60137016", "0.60137016", "0.60105896", "0.6003749", "0.5992368", "0.59866065", "0.58806545", "0.5871946", "0.586...
0.8108161
0
Add a groupId to one or multiple entries of the internal proteinToGroupId mapping.
def JJDe(YKHO, OrEf, e7pw): for ZnQW in yxXI.toList(OrEf): YKHO._proteinToGroupIds[ZnQW].add(e7pw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WyNh(YKHO, DVCd, y2ZR=True):\n veBe = YKHO._getGroups(DVCd)\n YKHO.groups += [Fshn(YKHO, uOe2, y2ZR) for uOe2 in veBe]\n YKHO.groups.sort()", "def H2v5(YKHO, jzdc, Fg_i):\n jzdc, Fg_i = (jzdc, Fg_i) if jzdc in YKHO.node_id else (Fg_i, jzdc)\n MCsb = YKHO.node_id[jzdc]\n YKHO.node_id[Fg_i] =...
[ "0.6505434", "0.6502199", "0.638876", "0.62030345", "0.6127925", "0.60878056", "0.60856", "0.6071917", "0.6064421", "0.59816664", "0.595114", "0.59260875", "0.58793247", "0.58689415", "0.5852348", "0.5851047", "0.58351773", "0.58269143", "0.5816413", "0.57963073", "0.57308006...
0.78623873
0
Get one item. This will rotate the deque one step. Repeated gets will return different items.
def NMoC(YKHO): YKHO.index += 1 if YKHO.index == len(YKHO): YKHO.shuffle() YKHO.rotate(1) try: return YKHO[0] except: return u'hello ~ 舰长'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cntZ(YKHO):\n return YKHO.deque[0]", "def T7C_(YKHO):\n ZfUD = YKHO._items[-1]\n return ZfUD", "def T7C_(YKHO):\n if YKHO.is_empty():\n raise ValueError('Queue underflow')\n return YKHO.first.item", "def xkOA(YKHO):\n if YKHO.empty():\n raise Dh08\n ZfUD = YKHO._get()\n...
[ "0.67795146", "0.6533779", "0.6528439", "0.65144086", "0.651334", "0.64991754", "0.64320713", "0.64269346", "0.641288", "0.63819003", "0.63639784", "0.63631314", "0.6351612", "0.63202024", "0.6311225", "0.6298258", "0.627027", "0.627027", "0.6265918", "0.6265918", "0.6264064"...
0.73699236
0
Returns the python module for this library.
def JEuV(YKHO): return YKHO.module
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yR_P(YKHO):\n return YKHO.lib.module", "def JEuV(YKHO):\n yR_P = YKHO.__class__.__module__.split('.')\n yR_P = '.'.join(yR_P[:-1])\n yR_P = yR_P + '.' + YKHO._get_valid_version().module\n return yR_P", "def JEuV(Emd4, yR_P=None):\n return yR_P or HwRy.modules[Emd4.module_name()]", "def ...
[ "0.7852293", "0.77059126", "0.7625606", "0.7234615", "0.7234615", "0.7234615", "0.7234615", "0.7234615", "0.7111186", "0.6996061", "0.68998426", "0.68946356", "0.67999965", "0.65673196", "0.6536385", "0.65166086", "0.6503895", "0.6482639", "0.64548534", "0.6449049", "0.642943...
0.79615414
0
Returns the file name for this library. On posix systems is something
def g_2H(YKHO): return YKHO.file_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gIsw(YKHO):\n return YKHO.lib.file_name", "def yFjF(YKHO):\n return YKHO.get_package_name() + '-' + YKHO.os + '-' + YKHO.arch + UAGg", "def g_2H(YKHO):\n return str(YKHO.get_file())", "def Ux0P(YKHO):\n return YKHO.system.fileName()", "def ZwTD(Emd4, zZcM, mWFP):\n c4Um = VMxB.GetBinPath...
[ "0.8210723", "0.75665444", "0.74804133", "0.72818094", "0.7270882", "0.7152885", "0.71524477", "0.7128114", "0.71276426", "0.71158856", "0.7100908", "0.70900345", "0.70674473", "0.7005694", "0.7005694", "0.7005694", "0.7005694", "0.7005694", "0.70040685", "0.6959892", "0.6953...
0.69469357
21
Returns a serializable object describing this object.
def Napc(YKHO, *qIxc, **B2fa): B2fa = sDc3.serialize(YKHO, *qIxc, **B2fa) B2fa['id'] = 0 B2fa['module'] = YKHO.name B2fa['file_path'] = YKHO.file_path B2fa['file_name'] = YKHO.file_name B2fa['path'] = YKHO.path B2fa['description'] = YKHO.description B2fa['elements'] = YKHO.meta_classes.k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n return {'id': YKHO.id, 'name': YKHO.name, 'description': YKHO.description, 'is_private': YKHO.is_private}", "def Napc(YKHO) -> laHg.Any:\n return YKHO._serialize(YKHO.__dict__)", "def Napc(YKHO):\n return {'name': YKHO.name, 'id': YKHO.id, 'description': YKHO.description, 'kind_of_th...
[ "0.761259", "0.75956404", "0.7552096", "0.75315344", "0.75187767", "0.75187767", "0.75187767", "0.74859875", "0.7475048", "0.742996", "0.7374561", "0.73203784", "0.73203784", "0.7305236", "0.72353387", "0.7223113", "0.7222535", "0.7222535", "0.7222535", "0.72205114", "0.72136...
0.0
-1
Returns the python module for this class.
def yR_P(YKHO): return YKHO.lib.module
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JEuV(YKHO):\n return YKHO.module", "def JEuV(YKHO):\n yR_P = YKHO.__class__.__module__.split('.')\n yR_P = '.'.join(yR_P[:-1])\n yR_P = yR_P + '.' + YKHO._get_valid_version().module\n return yR_P", "def JEuV(Emd4, yR_P=None):\n return yR_P or HwRy.modules[Emd4.module_name()]", "def B5hb...
[ "0.8341583", "0.8191045", "0.78112113", "0.77874863", "0.7774635", "0.7774635", "0.7774635", "0.7774635", "0.7774635", "0.72978395", "0.71206445", "0.70541406", "0.70354307", "0.6999073", "0.69264346", "0.6819247", "0.67822075", "0.66766346", "0.663886", "0.6605249", "0.65190...
0.79102623
2
Returns the module name for this class.
def LCet(YKHO): return YKHO.lib.get_module_name()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(Emd4):\n return hEr3", "def LCet(Emd4):\n return __name__.split('.')[0]", "def LCet(YKHO):\n return YKHO.name()", "def LCet(YKHO):\n return YKHO.name", "def ivvY(YKHO):\n return YKHO.module_name", "def LCet(YKHO):\n if hasattr(YKHO, 'module'):\n return YKHO.module.__name...
[ "0.89180976", "0.8897475", "0.882349", "0.8695065", "0.8651567", "0.83481526", "0.80154145", "0.78851616", "0.7716188", "0.7623199", "0.75662667", "0.75462943", "0.754315", "0.7518905", "0.75170743", "0.75109535", "0.7388758", "0.7372971", "0.7368837", "0.73498005", "0.733565...
0.87291855
3
Returns a serializable object describing this object.
def Napc(YKHO, *qIxc, **B2fa): B2fa = sDc3.serialize(YKHO, *qIxc, **B2fa) B2fa['id'] = 0 B2fa['module'] = YKHO.module_name B2fa['file_name'] = YKHO.file_name B2fa['file_path'] = YKHO.file_path B2fa['path'] = YKHO.path B2fa['description'] = YKHO.description return B2fa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n return {'id': YKHO.id, 'name': YKHO.name, 'description': YKHO.description, 'is_private': YKHO.is_private}", "def Napc(YKHO) -> laHg.Any:\n return YKHO._serialize(YKHO.__dict__)", "def Napc(YKHO):\n return {'name': YKHO.name, 'id': YKHO.id, 'description': YKHO.description, 'kind_of_th...
[ "0.761259", "0.75956404", "0.7552096", "0.75315344", "0.75187767", "0.75187767", "0.75187767", "0.74859875", "0.7475048", "0.742996", "0.7374561", "0.73203784", "0.73203784", "0.7305236", "0.72353387", "0.7223113", "0.7222535", "0.7222535", "0.7222535", "0.72205114", "0.72136...
0.0
-1
Convert a L{record} to a tuple.
def j6Ny(Mkmy): return tuple((getattr(Mkmy, exwG) for exwG in Mkmy.__names__))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bQ3v(AIu6):\n return (float(AIu6['base_volume']), float(AIu6['counter_volume']), int(AIu6['trade_count']))", "def Ja3g(Mkmy):\n if not Mkmy:\n return Mkmy\n else:\n return (Mkmy['token'], Mkmy['value'], Mkmy['code'], Mkmy['address'])", "def pTc2(YKHO):\n return (YKHO.oid, YKHO.typ...
[ "0.7962865", "0.6654116", "0.6608842", "0.6607423", "0.6399004", "0.6359191", "0.62505084", "0.62459433", "0.62459433", "0.620528", "0.61858755", "0.6147639", "0.6113435", "0.61000526", "0.60798705", "0.6047295", "0.60368234", "0.6013061", "0.59914297", "0.59846646", "0.59631...
0.5311043
98
Compare this L{Identifier} to another object.
def Aicm(YKHO, Elif): if not isinstance(Elif, vd32): return NotImplemented return eHkp(j6Ny(YKHO), j6Ny(Elif))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif: Any) -> bool:\n return YKHO.__class__ is Elif.__class__ and YKHO.identifier == Elif.identifier", "def xa14(YKHO, Elif):\n return YKHO.__id == Elif.get_id()", "def xa14(YKHO, Elif):\n return YKHO.id == Elif.id", "def xa14(YKHO, Elif):\n return int(YKHO.id) == int(Elif.id)", ...
[ "0.7613467", "0.73919475", "0.729312", "0.7189139", "0.7182862", "0.7074292", "0.7066712", "0.7054335", "0.70412564", "0.70384395", "0.69441146", "0.69272095", "0.6917301", "0.69004875", "0.6890769", "0.6868562", "0.68551683", "0.6843604", "0.68287414", "0.6764007", "0.676400...
0.7335498
2
Get an attribute present on my original using L{object.__getattribute__}, not the overridden version.
def nWc_(YKHO, mWFP): return object.__getattribute__(object.__getattribute__(YKHO, 'orig'), mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nWc_(YKHO, mWFP):\n if mWFP in ['pget', 'pobj', '_delegate', '_wrap', '_get', '__class__', '__array_finalize__', 'view', '__tr_getattr__']:\n return object.__getattribute__(YKHO, mWFP)\n try:\n return YKHO.__tr_getattr__(mWFP)\n except:\n pass\n if hasattr(YKHO.pobj, mWFP):\n ...
[ "0.73325664", "0.7204367", "0.7201408", "0.71996015", "0.7081709", "0.69220114", "0.69220114", "0.6912224", "0.6906659", "0.6832913", "0.6832913", "0.68126696", "0.6788057", "0.6788057", "0.6768665", "0.6762959", "0.66953063", "0.6662164", "0.66131824", "0.6606904", "0.660072...
0.81448066
0
Return a pretty string representation of this shared proxy.
def wHJl(YKHO): _GNN = Ym26(YKHO) return 'SharedProxy(%r, %r, %r)' % (_GNN._sharedItem, _GNN._sharedInterfaces, _GNN._shareID)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2bK(YKHO) -> str:\n ...", "def gTzM(YKHO) -> str:\n return CgYo.pformat(YKHO.dict())", "def gTzM(YKHO) -> str:\n return CgYo.pformat(YKHO.dict(by_alias=True))", "def gTzM(YKHO) -> str:\n return CgYo.pformat(YKHO.dict(by_alias=True))", "def gTzM(YKHO) -> str:\n return CgYo.pformat(YKHO.d...
[ "0.6798372", "0.6589531", "0.65779144", "0.65779144", "0.65779144", "0.65779144", "0.65779144", "0.65779144", "0.65779144", "0.65779144", "0.6564236", "0.6556112", "0.65506226", "0.6533494", "0.6533494", "0.65001035", "0.65001035", "0.65001035", "0.65001035", "0.65001035", "0...
0.6984575
0
Retrieve the accessible facet of an Item previously shared with L{shareItem}. This method is pending deprecation, and L{Role.getShare} should be preferred in new code.
def BZ2r(VUF1, LmAn, r8Ng): qmLP.warn('Use Role.getShare() instead of sharing.getShare().', PendingDeprecationWarning, stacklevel=2) return LmAn.getShare(r8Ng)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R9dh(YKHO) -> bdIy['outputs.ShareInfoElementResponse']:\n return qe4Y.get(YKHO, 'share_info')", "def TZu9(YKHO):\n return YKHO.manager.shared_collection_api", "def LlS2(YKHO):\n return YKHO._social_sharing", "def BZ2r(YKHO, r8Ng):\n iTlw = list(YKHO.store.query(HM6D, Z9bE(HM6D.shareID == r8Ng...
[ "0.5414987", "0.5402015", "0.53589326", "0.531219", "0.5251348", "0.50909126", "0.5075707", "0.50412065", "0.5027736", "0.4995015", "0.4995015", "0.4967636", "0.49635834", "0.4960695", "0.4908804", "0.48811117", "0.4878411", "0.48185477", "0.48083395", "0.47731107", "0.476296...
0.56569755
0
We appear to store naive datetimes in our database. Formats the date, and if the user has a timezone that's different from the naive date, will append the naive date below appended with UTC. See Also
def e7Me(tTee, BWXx): return DfCi(BWXx.strftime('%Y-%m-%d %H:%M:%S %Z'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eEdw(_c1T):\n if not _c1T:\n return None\n if _c1T.tzinfo:\n _c1T = _c1T.replace(tzinfo=None) - _c1T.tzinfo.utcoffset(_c1T)\n return min(_c1T, qcWV.utcnow())", "def SbIN(YKHO):\n return YKHO.datetime.replace(tzinfo=None)", "def FnGM(*qIxc):\n Csk6 = LtOa(*qIxc)\n if gCuF.USE...
[ "0.6349727", "0.6274802", "0.62356776", "0.6058223", "0.6015221", "0.5976928", "0.5881073", "0.5810626", "0.5795711", "0.57900864", "0.5766811", "0.57390475", "0.57345355", "0.5730581", "0.56867456", "0.5682629", "0.56777465", "0.5674636", "0.56625026", "0.56511986", "0.56466...
0.0
-1
return titles and ids for the supported licenses.
def v1dR(YKHO, QpfX): _AKB = getattr(QpfX.aq_inner, 'getECParent', None) if _AKB: return _AKB() else: return QpfX.portal_url
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KbHS(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'licenses')", "def lWZB(YKHO, WmM4=[{}]):\n jbXL = YKHO.data.get('metadata', {}).get('license', WmM4)\n return [mHCs.LicenseObject(YRbF) for YRbF in jbXL]", "def NqNg(KbHS):\n for license in KbHS:\n print('{0}: {name} {ver} ({url})'.format...
[ "0.73316306", "0.7179589", "0.7109132", "0.6685185", "0.658079", "0.6448003", "0.64212185", "0.63854104", "0.62915444", "0.6290833", "0.6290791", "0.62705463", "0.62624806", "0.6160942", "0.6026945", "0.5984909", "0.58310753", "0.58131284", "0.5782989", "0.57809716", "0.56910...
0.0
-1
Initialization of the FOFOutput class.
def FIMM(YKHO, hKn5: Cluster, Ux0P: str=None, nPrm: dict=None, o8Kj: dict=None): super(xkzz.SimulationOutput, YKHO).__init__(simulation_name=hKn5.simulation_name) assert Ux0P.endswith('.hdf5'), f'Filename must end with `.hdf5` extension. Got {Ux0P} instead.' YKHO.filename = Ux0P YKHO.data = nPrm YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, kmfe):\n YKHO.output_dir = Hy7s.path.abspath(kmfe)\n Hy7s.makedirs(YKHO.output_dir, exist_ok=True)\n YKHO.f = None\n YKHO.data = None\n YKHO.L = None", "def FIMM(YKHO, *qIxc):\n PZpo.TFOut_swiginit(YKHO, PZpo.new_TFOut(*qIxc))", "def FIMM(YKHO, input, hlel):\n YKHO.input = i...
[ "0.6855387", "0.666841", "0.6530019", "0.6491809", "0.646928", "0.644379", "0.6440801", "0.6434948", "0.6407483", "0.6326809", "0.62422556", "0.6209445", "0.6186162", "0.6165987", "0.6163473", "0.61602205", "0.61500394", "0.61314946", "0.6059849", "0.6053706", "0.6048689", ...
0.5958055
32
Computes the dynamical index based on the centre of potential coordinates, the centre of mass coordinates and the aperture radius. dynamical_merging_index = || CoM(r) CoP(r) || / r
def sjPs(YKHO): NeBv = oyIN.zeros((0,), dtype=oyIN.float) hH86 = oyIN.zeros((0,), dtype=oyIN.float) oiSM = oyIN.zeros((0,), dtype=oyIN.float) qStE = oyIN.zeros((0,), dtype=oyIN.float) kZYY = oyIN.zeros((0,), dtype=oyIN.float) for Mkmy in YKHO.cluster.generate_apertures(): SCnE = YKHO.clu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y5ve(YKHO):\n hLED = oyIN.zeros((0,), dtype=oyIN.float)\n for Mkmy in YKHO.cluster.generate_apertures():\n VLlx = YKHO.cluster.group_thermodynamic_merging_index(aperture_radius=Mkmy)\n hLED = oyIN.concatenate((hLED, [VLlx]), axis=0)\n nPrm = {'/Total_therm_mergindex': oyIN.array(hLED), '...
[ "0.5675415", "0.5569395", "0.5440724", "0.5301245", "0.52487296", "0.5228787", "0.5155387", "0.514043", "0.51373374", "0.5133302", "0.51305324", "0.51305324", "0.5104006", "0.5094573", "0.50914013", "0.5036405", "0.503412", "0.50299007", "0.5026742", "0.4996907", "0.49870914"...
0.6354316
0
Test http_get_metadata to retrieve an amiid with 200 success status.
def rLrG(YKHO, eWPX): ZG9D = FM6F(name='Always 200 Status Code') ZG9D.getcode.return_value = 200 ZG9D.read.return_value = 'ami-12345678' eWPX.return_value = ZG9D geh0 = JyjW.http_get_metadata('ami-id') YKHO.assertEquals(geh0, 'ami-12345678')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BDGe(YKHO):\n geh0 = YKHO.client.get('/metadata/', format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def EEVT(YKHO, eWPX):\n ZG9D = FM6F(name='Always non-200 Status Code')\n ZG9D.getcode.return_value = 400\n eWPX.return_value = ZG9D\n with YKHO.assertRaises(IOError) a...
[ "0.75779855", "0.6805666", "0.6623137", "0.6545572", "0.6437217", "0.6426005", "0.6350381", "0.62982124", "0.6262865", "0.62071073", "0.61562735", "0.61562735", "0.6125547", "0.6111051", "0.6029073", "0.6022605", "0.601564", "0.6006211", "0.59418243", "0.5940177", "0.5936501"...
0.768372
0
Test http_get_metadata to retrieve amiid and get a non 200 status code.
def EEVT(YKHO, eWPX): ZG9D = FM6F(name='Always non-200 Status Code') ZG9D.getcode.return_value = 400 eWPX.return_value = ZG9D with YKHO.assertRaises(IOError) as AJ5d: JyjW.http_get_metadata('ami-id') YKHO.assertIn('Non-200 response', str(AJ5d.exception))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rLrG(YKHO, eWPX):\n ZG9D = FM6F(name='Always 200 Status Code')\n ZG9D.getcode.return_value = 200\n ZG9D.read.return_value = 'ami-12345678'\n eWPX.return_value = ZG9D\n geh0 = JyjW.http_get_metadata('ami-id')\n YKHO.assertEquals(geh0, 'ami-12345678')", "def BDGe(YKHO):\n geh0 = YKHO.clien...
[ "0.7826973", "0.7264393", "0.6828735", "0.635326", "0.62976724", "0.6259239", "0.6165205", "0.61643386", "0.60959566", "0.60825104", "0.60825104", "0.60561824", "0.6034044", "0.6025319", "0.6020339", "0.6013202", "0.6006456", "0.5995805", "0.59902817", "0.5963846", "0.5957231...
0.7405036
1
Tests http_get_instance_env to see if it raises an exception by mocking the metadata to be invalid
def ykRt(YKHO, KEs5): KEs5.return_value = 'No data' with YKHO.assertRaises(Exception) as AJ5d: JyjW.http_get_instance_env() YKHO.assertIn('Error looking up metadata:iam/info', str(AJ5d.exception))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mdTP(YKHO, KEs5):\n KEs5.return_value = '{\"InstanceProfileArn\": \"arn:aws:iam::1234:role/alpha-server\"}'\n sEAN = JyjW.http_get_instance_env()\n YKHO.assertEquals(sEAN, 'alpha')", "def Cuwg(YKHO, KEs5):\n KEs5.return_value = 'No data'\n with YKHO.assertRaises(Exception) as AJ5d:\n Jy...
[ "0.73725545", "0.6683631", "0.66758925", "0.6634937", "0.60822856", "0.6058627", "0.60159963", "0.60053426", "0.5979642", "0.59435177", "0.5937713", "0.59209186", "0.5914992", "0.589523", "0.588254", "0.5879712", "0.58775365", "0.5875359", "0.5840063", "0.58120835", "0.580879...
0.8272518
0
Ensures that function fails when passed a nonbase64 encoded secret
def mEW4(YKHO): with YKHO.assertRaises(SystemExit): JyjW.kms_decrypt(YKHO.mock_kms, YKHO.secret)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N4Kw(YKHO):\n with YKHO.assertRaises(SystemExit):\n JyjW.kms_re_encrypt(YKHO.mock_kms, YKHO.service, YKHO.env, YKHO.secret)", "def DXni() -> None:\n pass", "def wsl_():\n try:\n LXo7.get_secret('somethingnonexistent')\n except ValueError:\n pass", "def GfdN(DXni: bytes, p...
[ "0.69113064", "0.6741777", "0.6651852", "0.6463648", "0.6372781", "0.63505137", "0.62417364", "0.6200265", "0.6162774", "0.61592686", "0.60682577", "0.60156107", "0.60153365", "0.5869156", "0.5814341", "0.57879525", "0.5784026", "0.5750023", "0.57148176", "0.571403", "0.56618...
0.6582789
3
Ensures that function fails when passed a nonbase64 encoded secret
def N4Kw(YKHO): with YKHO.assertRaises(SystemExit): JyjW.kms_re_encrypt(YKHO.mock_kms, YKHO.service, YKHO.env, YKHO.secret)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DXni() -> None:\n pass", "def wsl_():\n try:\n LXo7.get_secret('somethingnonexistent')\n except ValueError:\n pass", "def mEW4(YKHO):\n with YKHO.assertRaises(SystemExit):\n JyjW.kms_decrypt(YKHO.mock_kms, YKHO.secret)", "def GfdN(DXni: bytes, pH_K: str, hkxX: Dict[str, A...
[ "0.67405766", "0.6650491", "0.6582376", "0.6463589", "0.6371734", "0.6348644", "0.62405276", "0.6201331", "0.6162869", "0.615881", "0.6069192", "0.6014681", "0.60146195", "0.5868509", "0.5814141", "0.57875323", "0.5782568", "0.5750265", "0.5715314", "0.5712218", "0.56611323",...
0.69104105
0
1x1>3x3>1x1 convolution block for ResNet with layers >= 50. implemented with preactivation ResNet.
def RzcG(YKHO, WKvO, JPZV, IaI0=(1, 1), XgsO=False): yphq = [1, 1, WKvO.get_shape().as_list()[-1], JPZV] jM8m = list(IaI0) yzQ0 = YKHO._get_weight_variable(yphq) if XgsO: j2cC = ZylS.nn.conv2d(WKvO, yzQ0, strides=[1, jM8m[0], jM8m[1], 1], padding='SAME') else: j2cC = YKHO._bn_relu_co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZLzW(g4y1, gt4n=16, Ot1W=3, FEri=1, YDYE='relu', RIw7=True):\n if RIw7:\n WKvO = yHwh(gt4n, kernel_size=Ot1W, strides=FEri, padding='same', kernel_initializer='he_normal', kernel_regularizer=V70B(0.0001))(g4y1)\n WKvO = GVKG()(WKvO)\n if YDYE:\n WKvO = MroH(YDYE)(WKvO)\n ...
[ "0.76637167", "0.7649281", "0.7590377", "0.7511075", "0.7463879", "0.745512", "0.7435111", "0.738462", "0.7283081", "0.7256428", "0.723934", "0.7230144", "0.7213023", "0.7203457", "0.7181358", "0.71809983", "0.71688", "0.71650547", "0.715636", "0.7155947", "0.7139126", "0.7...
0.0
-1
shortcut between input and residual block, add input and residual
def phGw(YKHO, WKvO, Ylbp): GhuM = WKvO.get_shape().as_list() A1s9 = Ylbp.get_shape().as_list() hMIr = int(round(GhuM[1] / A1s9[1])) Pggg = int(round(GhuM[2] / A1s9[2])) _dAg = GhuM[3] == A1s9[3] PWHU = WKvO if hMIr > 1 or Pggg > 1 or (not _dAg): yphq = [1, 1, GhuM[3], A1s9[3]] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yskf(input, KlKP, mQG_, j5sH, GuN5, ISIR, EtM5, eje_=False):\n for YRbF in range(ISIR):\n if YRbF == 0 and eje_ is True:\n input = mQG_(j5sH, GuN5, EtM5, YRbF, input, stride=(1, 1))\n elif YRbF == 0 and eje_ is False:\n input = mQG_(j5sH, GuN5, EtM5, YRbF, input)\n ...
[ "0.7116578", "0.7039944", "0.6951191", "0.6949172", "0.6918019", "0.68874985", "0.6702776", "0.6611943", "0.66089076", "0.6586705", "0.65778625", "0.6577556", "0.65171915", "0.6506083", "0.6461162", "0.6440608", "0.64220506", "0.6356645", "0.634493", "0.63258153", "0.6302098"...
0.0
-1
Compute and return the geodesic difference between 2 native states. This is a generalization of the Euclidean operation ``x1 x0``.
def KkFs(YKHO, o4D3, nJ9F): return o4D3 - nJ9F
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yk4i(YKHO, o4D3, ajwV):\n return YKHO.State.diff(o4D3, ajwV)", "def yk4i(YKHO, o4D3, ajwV):\n return ajwV - o4D3", "def yk4i(YKHO, nJ9F, o4D3):\n pjBH, rkoI, jHsn = (YKHO.model.nq, YKHO.model.nv, YKHO.nx)\n assert nJ9F.shape == (jHsn,) and o4D3.shape == (jHsn,)\n cJsZ = nJ9F[:pjBH]\n hbUd...
[ "0.62492424", "0.616117", "0.60946375", "0.608049", "0.5819084", "0.5795322", "0.57833993", "0.5779807", "0.57748646", "0.5672292", "0.5671611", "0.566528", "0.5664878", "0.5648212", "0.5642972", "0.5634906", "0.5583027", "0.55803967", "0.55593216", "0.5541531", "0.5541531", ...
0.8060574
0
Split a homogeneous transform into its matrix and vector components. The transformation must be represented in homogeneous coordinates. It is split into its linear transformation matrix and translation vector components. This function does not normalize the matrix. This means that for it to be the inverse of from_matri...
def piPo(SZFh): UbzH = SZFh.shape[0] - 1 ZdCB = SZFh.shape[1] - 1 SppC = SZFh[0:UbzH, 0:ZdCB] iArr = SZFh[0:UbzH, ZdCB] return (SppC, iArr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def miBC(SZFh):\n N6QS.shape.check(locals(), 'transform', (4, 4))\n\n def dRO0(LTIa, Pip9=False, QE9U=False):\n LTIa, KQoh, zDkg = qD5e(LTIa, (-1, 3), name='points')\n B_fw = 0 if QE9U else 1\n GTFz = oyIN.pad(LTIa, ((0, 0), (0, 1)), mode='constant', constant_values=B_fw)\n G7GC =...
[ "0.61296785", "0.6049385", "0.6015939", "0.59878314", "0.59634924", "0.5846709", "0.58177125", "0.5695629", "0.56629103", "0.5630592", "0.5629113", "0.5604731", "0.55802673", "0.5574957", "0.5514165", "0.5500477", "0.54808736", "0.54271924", "0.54090846", "0.5388018", "0.5365...
0.7084087
0
Combine a matrix and vector into a homogeneous transform. Combine a rotation matrix and translation vector into a transform in homogeneous coordinates. matrix is (numpy.ndarray (N, N)) an array representing the rotation matrix. vector is (numpy.ndarray (1, N)) an array representing the translation. Return xform (numpy....
def k6aL(SppC, iArr): dzpA, KR2F = SppC.shape a1PO = oyIN.zeros((dzpA + 1, KR2F + 1), SppC.dtype) a1PO[0:dzpA, 0:KR2F] = SppC a1PO[dzpA, KR2F] = 1.0 a1PO[0:dzpA, KR2F] = iArr return a1PO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ubes(bULF, U3qI):\n U5O4 = oyIN.identity(4)\n U5O4[:3, :3] = bULF\n U5O4[:3, 3] = U3qI\n return U5O4", "def c4ad(yJOC, cQNg):\n yJOC = oyIN.array(yJOC)\n if yJOC.shape == (3, 3):\n if LQfE(yJOC):\n zSY9 = yJOC\n else:\n assert EOFError\n a1PO = oyI...
[ "0.7052506", "0.69832456", "0.6480391", "0.63829464", "0.63681525", "0.63143265", "0.61927545", "0.6142442", "0.61084884", "0.602533", "0.59983695", "0.5990146", "0.5970693", "0.5936469", "0.5918288", "0.5880593", "0.58441025", "0.58435035", "0.5824641", "0.5818625", "0.57935...
0.5492913
56
return neighbors, that have direct connection to node
def AAbN(YKHO, Q6kx): return YKHO.__graph[Q6kx]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_IW(YKHO, Q6kx):\n return list(YKHO.graph.neighbors(Q6kx))", "def BTfj(YKHO, Q6kx):\n A_IW = set()\n for AAbN in UVzi[Q6kx.pos[0], Q6kx.pos[1]]:\n if YKHO.board[AAbN[0]][AAbN[1]].color == Q6kx.color:\n A_IW.add(AAbN)\n else:\n continue\n return A_IW", "def A...
[ "0.7985458", "0.79120773", "0.77653587", "0.7730794", "0.7706017", "0.7706017", "0.7706017", "0.7706017", "0.76437503", "0.756117", "0.75570416", "0.75180954", "0.7503989", "0.74792856", "0.74592644", "0.74551034", "0.7443921", "0.7438346", "0.74373496", "0.7425079", "0.74124...
0.7148697
34
Just like 'get_previous_month'... >>> tm = TimeMachine() >>> n = datetime.datetime(2010, 7, 5) >>> tm.get_next_month(n) (datetime.datetime(2010, 8, 1, 0, 0), datetime.datetime(2010, 8, 31, 0, 0))
def HvQm(YKHO, gepq, FMLJ=None): tAtI = GRk0.monthrange(gepq.year, gepq.month)[1] jytZ = gepq + qcWV.timedelta(days=tAtI - gepq.day + 1) Rv6v = GRk0.monthrange(jytZ.year, jytZ.month)[1] bPHL = jytZ + qcWV.timedelta(days=Rv6v - 1) xD8K = (jytZ, bPHL) return xD8K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xD8K(_c1T):\n return _c1T + qcWV.timedelta(days=GRk0.monthrange(_c1T.year, _c1T.month)[1])", "def xD8K(tUMc):\n S_sJ, i1GJ = divmod(tUMc.month, 12)\n return qcWV.date(tUMc.year + S_sJ, i1GJ + 1, 1)", "def xD8K(lO87, x0eS):\n if x0eS < 12:\n x0eS += 1\n else:\n x0eS = 1\n ...
[ "0.75928694", "0.72055995", "0.71940637", "0.7025149", "0.69246", "0.6854916", "0.6799196", "0.6707417", "0.6687636", "0.6529367", "0.65155107", "0.6509033", "0.64449877", "0.64072305", "0.6370075", "0.62864655", "0.625168", "0.6157059", "0.60295385", "0.59899735", "0.5932177...
0.6986648
4
computes euclidean distance between two points.
def Ayfi(YKHO, Xf84): return epAf.sqrt((YKHO.x - Xf84.x) ** 2 + (YKHO.y - Xf84.y) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usGr(lCHq, ANJu):\n return epAf.sqrt(sum([(WKvO - LVAh) ** 2 for WKvO, LVAh in zip(lCHq, ANJu)]))", "def usGr(QxIi, Mo0Q):\n return oyIN.linalg.norm(QxIi - Mo0Q)", "def usGr(lCHq, ANJu):\n return oyIN.linalg.norm(oyIN.array(lCHq) - oyIN.array(ANJu))", "def usGr(o4D3, ajwV):\n return oyIN.sqrt...
[ "0.8585355", "0.85434055", "0.8533992", "0.8531748", "0.85289264", "0.84283817", "0.83754504", "0.83676386", "0.8302687", "0.8296662", "0.8274053", "0.8259767", "0.8255504", "0.82459474", "0.8182393", "0.80667907", "0.80414104", "0.80373055", "0.80324614", "0.8014853", "0.801...
0.0
-1
Get the descendant types of the repository.
def REz2(YKHO): WvO9 = LVt8(YKHO.url, YKHO.user, YKHO.pwd, binding=YKHO.binding, **YKHO.ext_args) boHx = WvO9.getDefaultRepository() GCbx = boHx.getTypeDescendants() YOkl = None for eSe2 in GCbx: if eSe2.getTypeId() == 'cmis:folder': YOkl = eSe2 break assert YOkl ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B5QF(YKHO, type: str):\n return list(B5QF(YKHO.type_tree, type))", "def G9u7(YKHO):\n geh0 = Ixx7(YKHO, tq_1.stack()[0][3])\n if not geh0:\n return geh0\n B5QF = jHsn.descendants(YKHO.se.full_class_only_graph, YKHO.uri)\n Aofo = Ctfd(YKHO, B5QF, tq_1.stack()[0][3], YKHO.output_type)\n ...
[ "0.70970374", "0.6927095", "0.6725228", "0.66589224", "0.6454622", "0.6399909", "0.63603675", "0.62666017", "0.6209375", "0.6148118", "0.60867864", "0.60806507", "0.602022", "0.59600925", "0.595459", "0.59227866", "0.5870273", "0.58138597", "0.5810782", "0.5792086", "0.572370...
0.6033101
12
Fetches the DataLoader object for each type in types from data_dir.
def BHQB(SnBA, h_xa, Irmt, d8cP=None, IlWe=None): hxDW = {} if d8cP is not None: JBMS, M1Jx = mjrD(pVAc(g9it(PVIY(str(GkAb(h_xa) / 'train_heart_scans'), Irmt.endo_or_epi), d8cP))) Irmt.mean = JBMS.item() Irmt.std = M1Jx.item() elif 'train' in SnBA: JBMS, M1Jx = mjrD(pVAc(PVIY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BHQB(SnBA, tETI, NArs):\n hxDW = {}\n J0EE = {}\n for lpha in ['train', 'val', 'test']:\n if lpha in SnBA:\n pmON = Hy7s.path.join(tETI, '{}'.format(lpha))\n if lpha == 'train':\n XxFT = x_b5(pmON, UmpV)\n RFg8 = None\n if NArs....
[ "0.7628377", "0.7392654", "0.6985222", "0.6829625", "0.6752641", "0.6674151", "0.6666698", "0.6626962", "0.6609424", "0.65914035", "0.650442", "0.645624", "0.64486384", "0.6421723", "0.6416939", "0.64039534", "0.636915", "0.6348583", "0.6340944", "0.63406587", "0.63213974", ...
0.6811214
4
Class constructor for the GlacierFlowModel class.
def FIMM(YKHO, pSYS: str, ZGE9: Optional[str]=None, KID8: int=2850, r8hN: float=0.006, kj9G: bool=True) -> None: m4fP = open(pSYS) _pUq = m4fP.read(1).astype(oyIN.float32) YKHO.model_name = GkAb(pSYS).stem if ZGE9 is None else ZGE9 YKHO.dem_path = pSYS YKHO.m = r8hN YKHO.ela_start = KID8 YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.num_examples_per_epoch = None\n YKHO.optimizer = 'SGD'\n YKHO.initial_learning_rate = 2.0\n YKHO.learning_rate_decay_factor = 0.8\n YKHO.num_epochs_per_decay = 4\n YKHO.clip_gradients = 5.0\n YKHO.max_checkpoints_to_keep = 2", "def FIMM(YKHO, C3ST, mmRm=0.5, YPaw=None,...
[ "0.6707179", "0.6540691", "0.6308594", "0.6292083", "0.62833816", "0.62316", "0.62292904", "0.61949176", "0.61710435", "0.61570704", "0.614974", "0.6130316", "0.61287063", "0.61190385", "0.6102243", "0.6091251", "0.6090082", "0.60884124", "0.6060459", "0.60603875", "0.6060387...
0.0
-1
Setup statistics Resets the model statistics internally. Returns None
def S5IL(YKHO) -> None: YKHO.mass = oyIN.array([0]) YKHO.mass_balance = oyIN.array([0]) YKHO.mass_balance_trend = oyIN.array([0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO) -> None:\n YKHO.statistics = oRi_(float)", "def ka5c(YKHO):\n YKHO.use_gpu = ht2j.cuda.is_available()\n if YKHO.use_gpu:\n YKHO.model = YKHO.model.cuda()\n YKHO.hist_train_psnr = []\n YKHO.hist_val_psnr = []\n YKHO.hist_loss = []", "def Tf3z(YKHO):\n YKHO.stats.reset(...
[ "0.69237405", "0.68888366", "0.6833342", "0.6833342", "0.6782082", "0.6643688", "0.662342", "0.6580364", "0.6580364", "0.6580364", "0.6549227", "0.65234023", "0.6436499", "0.6422394", "0.6357125", "0.6347837", "0.6334065", "0.6317044", "0.62431806", "0.62333614", "0.6225967",...
0.7638026
0
Helper method for file name generation
def pcWg(u46J): mWFP = u46J.split() Ux0P = '_'.join(mWFP).lower() return Ux0P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ux0P(YKHO):\n bBb2 = {ord(' '): '_', ord(','): None}\n return f'{YKHO._full_name.translate(bBb2)}.txt'", "def loba(YKHO):\n assert YKHO.__patient_name and YKHO.__location_name, 'New filename could not be determined, one or more needed arguments is empty!'\n q0MN = YKHO.__patient_name.split(' ')\n...
[ "0.81416047", "0.806872", "0.8013965", "0.79332143", "0.77915025", "0.76896065", "0.7672714", "0.76719147", "0.76164114", "0.7602426", "0.7587805", "0.7581145", "0.7580742", "0.7531197", "0.75131893", "0.746537", "0.74548", "0.7448345", "0.74443036", "0.7429431", "0.7421147",...
0.7790568
5
Server environment function return temp dir
def NbRb(cqpO, bZLm=None): if bZLm: ycBG = bZLm else: ycBG = BfDw.tempdir() @fnfy._ffi.register_func('tvm.rpc.server.workpath', override=True) def ckwA(pmON): return ycBG.relpath(pmON) @fnfy._ffi.register_func('tvm.rpc.server.load_module', override=True) def rPFS(gIsw):...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKzN():\n return Hy7s.getcwd() + '/temp/'", "def wQf6():\n return gCuF.FILE_STORE_TEMP_DIR", "def yvOI():\n pass", "def RPAr():\n return yvOI()", "def U9hK():\n return gbPf.mkdtemp()", "def MvcU(n294):\n return n294.newstr('/tmp')", "def wQf6():\n return gbPf.mkdtemp()", "def...
[ "0.77344215", "0.7733155", "0.76899856", "0.74815845", "0.7475217", "0.74692005", "0.7466822", "0.7413609", "0.73884815", "0.7367963", "0.73464113", "0.7335123", "0.7273327", "0.7203387", "0.71492493", "0.7146576", "0.71058017", "0.710517", "0.7082079", "0.70255464", "0.70129...
0.0
-1
Returns a string of the format "YYYYMMDD"
def slWZ(): wzkt = qcWV.now() KCHu = '%s%s%s' % (wzkt.year, str(wzkt.month).zfill(2), str(wzkt.day).zfill(2)) return (wzkt, KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "def JvEs(_c1T):\n CjKC = _c1T.day\n x0eS = _c1T.month\n lO87 = _c1T.year\n quSE = str(x0eS) + '/'\n quSE += str(CjKC) + '/'\n ...
[ "0.70711315", "0.70711315", "0.70565915", "0.6907323", "0.6851431", "0.68303746", "0.67259073", "0.67067593", "0.67067593", "0.67067593", "0.6664928", "0.66508895", "0.66241825", "0.65715253", "0.6567238", "0.6524766", "0.65114707", "0.6500419", "0.6489683", "0.6425538", "0.6...
0.6143214
38
Returns a string of the format "YYYYMMDDHHMMSS"
def ItX3(): wzkt, KCHu = slWZ() return (wzkt, '%s%s%s%s' % (KCHu, str(wzkt.hour).zfill(2), str(wzkt.minute).zfill(2), str(wzkt.second).zfill(2)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RW01():\n from time import strftime\n return strftime('%d-%m-%Y__%H-%M-%S')", "def dFdi():\n return JRYC.strftime(JRYC.now(), '%Y %m %d, %H:%M:%S')", "def Kzzc(JRYC=None, stBs=True, C6wh=True):\n if JRYC is None:\n JRYC = qcWV.utcnow()\n FMLJ = '%y%m%d'\n if stBs:\n FMLJ += ...
[ "0.716447", "0.7081778", "0.6892127", "0.68545336", "0.68287265", "0.6811297", "0.6801381", "0.6801381", "0.67941815", "0.67524284", "0.66983336", "0.6653973", "0.66532123", "0.6638595", "0.6627038", "0.6609734", "0.65749466", "0.6568749", "0.6543145", "0.6482635", "0.6464811...
0.6205362
44
Adds the specified amount of time to the input iso date >>> now, nowstr=utc_iso_now() >>> t, tstr=iso_string_add_delta(nowstr, days=1, hours=12) >>> print t.daynow.tm_mday 2 >>> print t.hournow.tm_hour 12
def X_sW(pKvt, Sm0u=0, Wave=0, O66n=0): JRYC = YArA(pKvt) g75m = fCoM(days=Sm0u, hours=Wave, minutes=O66n) Mkmy = JRYC + g75m return (Mkmy, Mkmy.isoformat())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(JRYC, Sm0u=0, C6wh=0):\n return JRYC + qcWV.timedelta(days=Sm0u, seconds=C6wh)", "def fMOs(Sm0u: int):\n return HMRb + qcWV.timedelta(days=Sm0u)", "def z6g6():\n JRYC = qcWV.datetime.combine(qcWV.date.today(), qcWV.time(12, 30, 5)) + qcWV.timedelta(hours=1)\n a1PO = JRYC.time()\n print(...
[ "0.67235225", "0.63886726", "0.6160399", "0.5976546", "0.59673977", "0.5959721", "0.59490824", "0.5847826", "0.5682331", "0.5662518", "0.56134", "0.55774474", "0.5569534", "0.554239", "0.5494722", "0.5476432", "0.5426143", "0.53896475", "0.53830934", "0.53197247", "0.52657586...
0.7462182
0
Separates networks based on netmask.
def azaT(yKcO, Os4s, yf3m): UziS = [] e215 = E6SK(f'{yKcO}/{yf3m}') Os4s = E6SK(f'{Os4s}/{yf3m}') AKMT = e215 na1r.info(f'Start net: {e215}') while AKMT < Os4s + 1: na1r.debug(f'Adding network {AKMT}') UziS.append(AKMT) AKMT = AKMT + 1 return UziS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khVi(YKHO):\n XWCm(YKHO.nodes[1], 2)\n XWCm(YKHO.nodes[2], 1)\n YKHO.sync_all([YKHO.nodes[:2], YKHO.nodes[2:]])", "def QQZO(JHDS, AdfU, PRIJ, PJWX=None):\n se2i = PRIJ\n cHiT = []\n LWmK = [[mAB6.pins[0].component.idx, mAB6.pins[1].component.idx] for mAB6 in JHDS]\n BaLS = len(LWmK)\n ...
[ "0.59076715", "0.57285815", "0.55886644", "0.55668724", "0.55377454", "0.5427373", "0.54249966", "0.53642166", "0.5351759", "0.5346307", "0.5319889", "0.5317294", "0.52475166", "0.5241851", "0.5241715", "0.5222947", "0.51951456", "0.519175", "0.5187799", "0.5182572", "0.51571...
0.6704049
0
The `Tensor` containing the embedding value of source data loaded from file. `None` if embedding is not specified.
def Do1L(YKHO): if YKHO._src_embedding is None: return None return YKHO._src_embedding.word_vecs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ocQg(WbAn, jXxl, q4ee):\n wjQX = ZylS.Variable(ZylS.random_uniform((jXxl, q4ee), -1, 1))\n Q1PJ = ZylS.nn.embedding_lookup(wjQX, WbAn)\n return Q1PJ", "def IP7V(YKHO, nPrm):\n ACia = nPrm['cat']\n return YKHO.one_hot_embed(ACia)", "def ocQg(WbAn, jXxl, q4ee):\n wjQX = ZylS.Variable(ZylS.r...
[ "0.6687915", "0.6681542", "0.6586427", "0.6551568", "0.6449814", "0.6447883", "0.64341676", "0.62937164", "0.619119", "0.6188297", "0.61782414", "0.6171893", "0.6116227", "0.6067139", "0.60647935", "0.60514444", "0.60303444", "0.6014424", "0.5989234", "0.59347796", "0.5932315...
0.6959536
0
The `Tensor` containing the embedding value of target data loaded from file. `None` if embedding is not specified.
def mWV0(YKHO): if YKHO._tgt_embedding is None: return None return YKHO._tgt_embedding.word_vecs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ocQg(WbAn, jXxl, q4ee):\n wjQX = ZylS.Variable(ZylS.random_uniform((jXxl, q4ee), -1, 1))\n Q1PJ = ZylS.nn.embedding_lookup(wjQX, WbAn)\n return Q1PJ", "def IP7V(YKHO, nPrm):\n ACia = nPrm['cat']\n return YKHO.one_hot_embed(ACia)", "def ocQg(WbAn, jXxl, q4ee):\n wjQX = ZylS.Variable(ZylS.r...
[ "0.6910456", "0.68283606", "0.6819838", "0.6656896", "0.6621073", "0.65046245", "0.6475189", "0.6447745", "0.64297354", "0.6423037", "0.63795143", "0.6343661", "0.6331678", "0.63218105", "0.6279203", "0.6218182", "0.6207835", "0.62042105", "0.615037", "0.6091137", "0.60866755...
0.68819803
1
A pair of `Tensor` containing the embedding values of source and target data loaded from file.
def Xc9P(YKHO): PCwS = YKHO.source_embedding_init_value XR7V = YKHO.target_embedding_init_value return (PCwS, XR7V)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nmay():\n Lcqa = oyIN.load('./train_embeddings.npy')\n VJv0 = oyIN.load('./train_labels.npy')\n ST5j = oyIN.load('./valid_embeddings.npy')\n ZjFy = oyIN.load('./valid_labels.npy')\n Z5wO = oyIN.load('./test_embeddings.npy')\n H96n = oyIN.load('./test_labels.npy')\n return (Lcqa, VJv0, ST5j...
[ "0.6594973", "0.6207968", "0.615632", "0.61540973", "0.61186045", "0.6111447", "0.59927243", "0.5981888", "0.5914344", "0.58947676", "0.587922", "0.58782613", "0.58506346", "0.58497345", "0.5838301", "0.5828864", "0.58239895", "0.5818007", "0.5797594", "0.57732666", "0.574968...
0.5526436
42
The name of the target text index tensor, "target_text_ids" by default.
def ZKCt(YKHO): mWFP = yB8M._connect_name(YKHO._data_spec.name_prefix[1], YKHO._tgt_decoder.text_id_tensor_name) return mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yrEO(YKHO):\n mWFP = yB8M._connect_name(YKHO._data_spec.name_prefix[1], YKHO._tgt_decoder.text_tensor_name)\n return mWFP", "def zorm(YKHO):\n return YKHO._src_decoder.text_tensor_name", "def z65p(YKHO):\n return YKHO._src_decoder.text_id_tensor_name", "def XNHl(YKHO):\n return YKHO._targe...
[ "0.75566405", "0.6720147", "0.66973954", "0.62795675", "0.61196536", "0.6099356", "0.59899354", "0.596544", "0.5919752", "0.59093666", "0.590803", "0.5823442", "0.57816195", "0.5770372", "0.5715195", "0.5711518", "0.57091826", "0.56058526", "0.559237", "0.55872494", "0.556493...
0.7445436
1
Return the absolute path in the spool directory.
def WQbV(YKHO, *qIxc): return Hy7s.path.join(YKHO._spool, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rci7(YKHO):\n XP5J = Hy7s.path.abspath(xAKo)\n KXdC = Hy7s.path.split(XP5J)\n return KXdC", "def Cy6_(YKHO):\n return Hy7s.path.join(gCuF.PRIVATE_STORAGE_ROOT, YKHO.get_relative_pathname())", "def gf6V():\n sWmO = Hy7s.path.dirname(xAKo)\n weUZ = Hy7s.path.join(sWmO, '../share')\n retu...
[ "0.7285387", "0.69716847", "0.6892377", "0.6817823", "0.6789732", "0.6721964", "0.6721203", "0.6607326", "0.6591513", "0.65789753", "0.6532148", "0.6471268", "0.6470814", "0.64540136", "0.6442977", "0.6439162", "0.6405376", "0.63548315", "0.63503426", "0.6340459", "0.6307459"...
0.7534521
0
list of product API
def cfQO(tvqc, QpfX): UBfQ = [{'title': 'BETTER UTILITY THAN A TRUCK WITH MORE PERFORMANCE THAN A SPORTS CAR', 'description': 'Cybertruck is built with an exterior shell made for ultimate durability and passenger protection. Starting with a nearly impenetrable exoskeleton, every component is designed for superior s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dum_():\n return 'http://api.tcgplayer.com/catalog/products'", "def uQsB(dp9S):\n V_D6 = ['id', 'name', 'price', 'barcode', 'active', 'countable', 'purchase_sum', 'replenishment_sum', 'balance_score', 'revocable', 'imagename', 'tags', 'creation_date']\n xDcj = J4lW(msfn, QePW.args, V_D6)\n Aofo, ...
[ "0.7821359", "0.77743584", "0.77348274", "0.76724327", "0.75341254", "0.75027376", "0.74895924", "0.74677163", "0.7447481", "0.7445761", "0.7363891", "0.7336866", "0.73028356", "0.72757137", "0.722965", "0.72205323", "0.720798", "0.7196412", "0.71729386", "0.71490794", "0.707...
0.0
-1
Standardize matrix to have row sum to 1
def Q8c9(tjUW): return oyIN.true_divide(tjUW, tjUW.sum(axis=1)[:, oyIN.newaxis])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO, SppC):\n for YRbF in range(YKHO.N):\n SppC[YKHO.N - 1][YRbF] = 0\n for YRbF in range(YKHO.n):\n SppC[YKHO.N - 1][YKHO.index(YRbF, YRbF)] = 1\n return SppC", "def NkkI(mXr4):\n FtBq = mXr4.sum(axis=1)\n try:\n assert oyIN.count_nonzero(FtBq) == oyIN.shape(FtBq)[0...
[ "0.7587961", "0.7495382", "0.7265026", "0.7126664", "0.7027731", "0.6931721", "0.6893698", "0.68914115", "0.6753268", "0.6650346", "0.6629948", "0.6612378", "0.65708685", "0.6533232", "0.65329546", "0.65231365", "0.6432375", "0.6409746", "0.63635635", "0.63422436", "0.6339263...
0.58033854
61
Return a boolean indicating whether given items are in sorted order.
def mwCj(DumB): for d6pt, ZfUD in enumerate(DumB): if d6pt + 1 < len(DumB): if ZfUD > DumB[d6pt + 1]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mwCj(DumB):\n for WKvO in range(len(DumB)):\n if WKvO < len(DumB) - 1:\n if DumB[WKvO + 1] < DumB[WKvO]:\n return False\n return True", "def mwCj(DumB):\n jvSB = 0\n _tIi = 1\n while _tIi < len(DumB):\n if DumB[jvSB] > DumB[_tIi]:\n return Fal...
[ "0.8399997", "0.8205169", "0.7429377", "0.7397837", "0.72624296", "0.719834", "0.7079605", "0.7042038", "0.69722396", "0.69721365", "0.6947615", "0.69461095", "0.6945057", "0.6896894", "0.6850171", "0.68397534", "0.6748492", "0.6716146", "0.67125356", "0.66798353", "0.6599598...
0.8217482
1
Return the number of connections, neurons and layers.
def ZaPa(Zxma): return (Zxma.get_num_connections(), Zxma.num_neurons, len(Zxma.neurons_in_layer))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XZgE(YKHO):\n hXtV = 0\n for vb7U in YKHO.weights:\n hXtV += vb7U.size\n return hXtV", "def JJ4i(YKHO):\n return YKHO.loader.getNeuronCount()", "def iT_a(YKHO):\n return YKHO.proxy.getconnectioncount()", "def CLda(YKHO):\n return YKHO._num_layers", "def CLda(YKHO):\n ...", ...
[ "0.80663395", "0.7873851", "0.7417619", "0.73689264", "0.7368765", "0.73490614", "0.73001015", "0.72830814", "0.7262748", "0.72521555", "0.7231166", "0.71783644", "0.7177988", "0.7161636", "0.7160563", "0.7156314", "0.71337104", "0.7121219", "0.7081046", "0.70445263", "0.7039...
0.743822
2
Assert that the change_activation mutation changes one activation function and doesn't add neurons, connections or layers.
def QOCk(K33b): Zxma = UTnE(10, 2, 0.5) for bGrB in range(K33b): Zxma.mutate() while len(Zxma.neurons_in_layer) == 2: Zxma.add_node() ySPM, lymy, x3Db = ZaPa(Zxma) mGRJ = oyIN.array(Zxma.activation_names) Zxma.change_activation() assert Zxma.get_num_connections() == ySPM ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DAsY(K33b):\n Zxma = UTnE(10, 2, 0.5)\n for bGrB in range(K33b):\n Zxma.mutate()\n assert len(Zxma.activation_names) == Zxma.num_neurons", "def IXFA(YKHO):\n Aofo = siRN.activ(YKHO, 12)\n YKHO.assertEqual(0.9999938558253978, Aofo)", "def xHlQ(YKHO):\n if Hy7s.getcwd().split('\\\\')...
[ "0.62303793", "0.6100476", "0.60129935", "0.601173", "0.5973453", "0.5944913", "0.5915913", "0.58371866", "0.57917196", "0.576593", "0.5683681", "0.56569105", "0.56283814", "0.5618786", "0.56126124", "0.5538658", "0.54949737", "0.54945266", "0.5469223", "0.54421014", "0.54371...
0.78134084
0
create new database table if one doesn't exist
def Y85O(YKHO): xDcj = f'CREATE TABLE IF NOT EXISTS {tp0w}(\n bookID VARCHAR(50) UNIQUE NOT NULL,\n title VARCHAR(250),\n authors VARCHAR(100),\n avg_rating FLOAT,\n ratings_count INT,\n lang_code VARCH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OTTF(YKHO):\n xDcj = \"SELECT name FROM sqlite_master WHERE type='table'\"\n dixj = YKHO._cursor.execute(xDcj)\n pu8V = [mWFP for Mkmy in dixj for mWFP in Mkmy]\n if YKHO.table_name not in pu8V:\n tyNF = 'CREATE TABLE {}\\n (media TEXT PRIMARY KEY,\\n th...
[ "0.79754525", "0.79227084", "0.7847587", "0.7847587", "0.7783588", "0.757039", "0.75697625", "0.75447345", "0.74852335", "0.74561787", "0.7388642", "0.73777175", "0.7377475", "0.7364073", "0.73605543", "0.7345272", "0.73295605", "0.73091805", "0.72967553", "0.72684354", "0.72...
0.0
-1
Returns a list of all bags which can contain a bag of a given color.
def _49j(pan_: str, kGys: dict[str, dict[str, int]]) -> list[str]: NMLV = [pan_] deVW = set() while NMLV: QgFl = NMLV.pop() for Jn93 in kGys: if Jn93 not in deVW and QgFl in kGys[Jn93]: deVW.add(Jn93) NMLV.append(Jn93) return list(deVW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8R0(U2r0, qfpW, pSDG=1):\n KLhD = sum([pSDG * Ty9i for Ty9i in U2r0[qfpW].values()])\n for zGKt, Z5kt in U2r0[qfpW].items():\n KLhD += P8R0(U2r0, zGKt, multiplier=Z5kt * pSDG)\n return KLhD", "def d8sN(j11U: dict, hmRQ: str) -> x1iM:\n return [qfpW for qfpW, f0c1 in j11U.items() if f0c1.g...
[ "0.7423417", "0.7346918", "0.7209278", "0.66376936", "0.6514914", "0.6193138", "0.61403704", "0.60070693", "0.59931505", "0.59820616", "0.5841828", "0.5816011", "0.5697509", "0.5650188", "0.56328374", "0.56295043", "0.56144387", "0.5586055", "0.55437475", "0.5416026", "0.5283...
0.5391291
20
validate deleting an existing product.
def LSbE(YKHO): tTee = BExY.as_view({'delete': 'destroy'}) j8eK = gxEw('products:delete-product', kwargs={'pk': YKHO.product_id}) QePW = YKHO.factory.delete(j8eK, HTTP_AUTHORIZATION='Token {}'.format(YKHO.token_admin.key)) QePW.user = YKHO.user['admin'] geh0 = tTee(QePW, pk=YKHO.product_id) YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W_kM(YKHO):\n Lx3t = YKHO.create_product()\n Ldyl = YKHO.product_obj.search([])\n YKHO.assertIn(Lx3t, Ldyl)\n Lx3t.unlink()\n YKHO.assertNotIn(Lx3t.exists(), Ldyl)", "def wL2u(YKHO):\n id = YKHO.lineEdit_id.text()\n if len(YKHO.lineEdit_name.text()) != 0 and len(YKHO.lineEdit_desc.text()...
[ "0.76426965", "0.7477778", "0.74602026", "0.73163056", "0.72420865", "0.70223963", "0.70190156", "0.6898183", "0.6881677", "0.6877174", "0.6877017", "0.68625927", "0.685783", "0.68279326", "0.67841387", "0.6779664", "0.6770064", "0.67239505", "0.6688254", "0.6686147", "0.6661...
0.7063762
5
Least Common Multiple of a and b. The least common multiple of two positive integers a and b is the least positive integer m that is divisible by both a and b.
def BsJX(jzdc, Fg_i): return jzdc * Fg_i // ML2l(jzdc, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h9pL(jzdc, Fg_i):\n return jzdc * Fg_i // ML2l(jzdc, Fg_i)", "def BsJX(jzdc: int, Fg_i: int):\n return jzdc * Fg_i // bJun(jzdc, Fg_i)", "def uMYb(jzdc, Fg_i):\n return jzdc * Fg_i / Bu5e(jzdc, Fg_i)", "def BsJX(jzdc, Fg_i):\n return abs(jzdc * Fg_i) / ML2l(jzdc, Fg_i) if jzdc and Fg_i else 0...
[ "0.8679255", "0.8211393", "0.8137886", "0.81373256", "0.8121919", "0.8112367", "0.8087941", "0.80727714", "0.80687964", "0.80687964", "0.80687964", "0.80687964", "0.80687964", "0.80687964", "0.80687964", "0.80687964", "0.80687964", "0.8066457", "0.80591285", "0.80482334", "0....
0.8125678
4
Initializes m_weights, v_weights, m_biases, v_biases according to weights and biases dimentions and sets the current iteration to 0
def mh2U(YKHO, usfD, Ziit): YKHO.m_weights = oyIN.zeros((usfD, Ziit)) YKHO.v_weights = oyIN.zeros((usfD, Ziit)) YKHO.m_biases = oyIN.zeros(Ziit) YKHO.v_biases = oyIN.zeros(Ziit) YKHO.curr_iter = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C0Lv(YKHO):\n pass", "def vB93(YKHO) -> None:\n U78l.init.kaiming_normal_(YKHO._U)\n U78l.init.kaiming_normal_(YKHO._W)\n U78l.init.kaiming_normal_(YKHO._V)\n U78l.init.normal_(YKHO._b)", "def C0Lv(YKHO, r8hN):\n YKHO.w_ = oyIN.zeros(1 + r8hN)\n YKHO.w_initialized = True", "def C0Lv(...
[ "0.7441898", "0.73451114", "0.7278521", "0.7278521", "0.7278521", "0.7272563", "0.7251541", "0.72242284", "0.72219175", "0.7210114", "0.7209816", "0.7175173", "0.7175173", "0.7175173", "0.7160395", "0.71547914", "0.7153239", "0.71311426", "0.7092733", "0.70820993", "0.7023957...
0.7203464
11
Find the nearest value index from an array
def uiJA(qw7D, BWXx): if isinstance(qw7D, list): qw7D = oyIN.array(qw7D) or8S = oyIN.abs(qw7D - BWXx).argmin() return or8S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uiJA(qw7D, BWXx):\n or8S = oyIN.abs(qw7D - BWXx).argmin()\n return or8S", "def QmQF(qw7D: np.array, BWXx: float) -> int:\n return oyIN.abs(qw7D - BWXx).argmin()", "def uiJA(qw7D, BWXx):\n or8S = oyIN.abs(qw7D - BWXx).argmin()\n return or8S", "def RPwp(qw7D, BWXx):\n or8S = oyIN.abs(qw7D...
[ "0.8567435", "0.85022753", "0.8484308", "0.84608865", "0.84575343", "0.8433944", "0.8351435", "0.82760674", "0.82760674", "0.82612824", "0.81367546", "0.8132653", "0.81197953", "0.81131786", "0.81131786", "0.800732", "0.8004003", "0.799297", "0.7933887", "0.789005", "0.784901...
0.8358439
6
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None ZTNs = jT7V.models.price.Price.from_dictionary(cmPJ.get('LowestNewPrice')) if cmPJ.get('LowestNewPrice') else None jAkK = jT7V.models.price.Price.from_dictionary(cmPJ.get('LowestUsedPrice')) if cmPJ.get('LowestUsedPrice') else None Iylw = jT7V.m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.83181584", "0.8168118", "0.8168118", "0.8118749", "0.8089047", "0.79787344", "0.7949278", "0.79231393", "0.7898951", "0.78923255", "0.788838", "0.7882321", "0.7882212", "0.7876749", "0.78585315", "0.7836853", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407",...
0.74903727
86
Converts given value for use in the widget
def _nf8(YKHO, BWXx): if BWXx is YKHO.field.missing_value: return BWXx else: nPrm = [] for fGC9 in BWXx: TDnD = nCkL() for H5ew, BWXx in fGC9.items(): if isinstance(BWXx, list): TDnD[ztXv(H5ew)] = [ztXv(WKvO) for WKvO in BWXx] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a8Pe(YKHO, BWXx):\n return BWXx", "def a8Pe(YKHO, BWXx):\n return BWXx", "def a8Pe(YKHO, BWXx, QpfX):\n return BWXx", "def a8Pe(YKHO, BWXx):\n return QXkI.convert(YKHO, BWXx)", "def NkkI(YKHO, BWXx):\n return str(BWXx)", "def YWvJ(YKHO, BWXx):\n return BWXx", "def dBCl(YKHO, BWXx)...
[ "0.76880765", "0.75497836", "0.746449", "0.74414104", "0.68323237", "0.67999184", "0.67927843", "0.6689034", "0.66229886", "0.65819585", "0.65364873", "0.6501344", "0.6471905", "0.6471905", "0.6434586", "0.6427342", "0.6376426", "0.6369545", "0.6358129", "0.6313347", "0.62573...
0.59693724
48
this method will test the first method of the chain with mocking the __init__ of the class, the requests.get and the next method considering a valid query
def SP3s(Ehsq): QOe9 = locH.Request('fake 200 valid query') def WUbh(YKHO, xDcj): YKHO.query = xDcj def ryQO(*qIxc, **B2fa): return HiyZ('fake response') def iNya(YKHO, *qIxc, **B2fa): pass Ehsq.setattr('app.requester.Request.__init__', WUbh) Ehsq.setattr('app.requeste...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bg_X(YKHO, jqSP):\n Mkmy = B373.get_next_to_arrive(YKHO.a, YKHO.b)\n NArs = {'req1': YKHO.a, 'req2': YKHO.b}\n YKHO.assertTrue(TMAJ.call.get(B373.SEPTA_NEXTTOARRIVE_URL, params=NArs) in jqSP.mock_calls)", "def IGmd(YKHO):\n Ow0d = {'meta': {'result_count': 500, 'next_token': 1}}\n mFeZ = {'met...
[ "0.7153497", "0.65910876", "0.6259994", "0.6258339", "0.6214596", "0.6194545", "0.6175602", "0.6156215", "0.6143936", "0.6139012", "0.61091727", "0.60963815", "0.60780597", "0.60770303", "0.60722196", "0.6063753", "0.60624844", "0.60479254", "0.6042937", "0.6020803", "0.59961...
0.63450795
2
this method will test the first method of the chain with mocking the __init__ of the class,the requests.get and the next method considering a unvalid query
def y8Xs(Ehsq): QOe9 = locH.Request('fake 404 failed query') def WUbh(YKHO, xDcj): YKHO.query = xDcj def ryQO(*qIxc, **B2fa): return HiyZ() def iNya(YKHO, *qIxc, **B2fa): pass Ehsq.setattr('app.requester.Request.__init__', WUbh) Ehsq.setattr('app.requester.requests.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bg_X(YKHO, jqSP):\n Mkmy = B373.get_next_to_arrive(YKHO.a, YKHO.b)\n NArs = {'req1': YKHO.a, 'req2': YKHO.b}\n YKHO.assertTrue(TMAJ.call.get(B373.SEPTA_NEXTTOARRIVE_URL, params=NArs) in jqSP.mock_calls)", "def IGmd(YKHO):\n Ow0d = {'meta': {'result_count': 500, 'next_token': 1}}\n mFeZ = {'met...
[ "0.6960064", "0.66197014", "0.64656806", "0.63962525", "0.6243967", "0.62168324", "0.6210141", "0.62093574", "0.62089974", "0.62079006", "0.6179353", "0.6170297", "0.6169571", "0.6157531", "0.6154305", "0.61253697", "0.60497373", "0.6040484", "0.6032881", "0.6014947", "0.6009...
0.5798694
36
this method will test the second method of the chain with mocking the requests.get and the next method considering a valid query
def _GNV(Ehsq): QOe9 = locH.Request('fake 200 valid query') def ryQO(*qIxc, **B2fa): return HiyZ('fake response') def ut5U(YKHO, *qIxc, **B2fa): pass Ehsq.setattr('app.requester.Request.second_request_wiki', ut5U) Ehsq.setattr('app.requester.requests.get', ryQO) WADM = HiyZ('fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bg_X(YKHO, jqSP):\n Mkmy = B373.get_next_to_arrive(YKHO.a, YKHO.b)\n NArs = {'req1': YKHO.a, 'req2': YKHO.b}\n YKHO.assertTrue(TMAJ.call.get(B373.SEPTA_NEXTTOARRIVE_URL, params=NArs) in jqSP.mock_calls)", "def IGmd(YKHO):\n Ow0d = {'meta': {'result_count': 500, 'next_token': 1}}\n mFeZ = {'met...
[ "0.7531691", "0.68969166", "0.66501355", "0.6648642", "0.65456724", "0.6498797", "0.6451031", "0.6370288", "0.63341796", "0.6313422", "0.6266577", "0.61984414", "0.61879575", "0.6183478", "0.61769164", "0.61555403", "0.61354494", "0.61063915", "0.6066242", "0.60654193", "0.60...
0.0
-1
this method will test the third method of the chain with mocking the requests.get and the two next method considering a valid query
def Vs_T(Ehsq): QOe9 = locH.Request('fake 200 valid query') def ryQO(*qIxc, **B2fa): return HiyZ('fake response') def UYSe(YKHO, *qIxc, **B2fa): pass def FCuB(YKHO, *qIxc, **B2fa): pass Ehsq.setattr('app.requester.Request.get_wiki_coordinates', FCuB) Ehsq.setattr('app....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bg_X(YKHO, jqSP):\n Mkmy = B373.get_next_to_arrive(YKHO.a, YKHO.b)\n NArs = {'req1': YKHO.a, 'req2': YKHO.b}\n YKHO.assertTrue(TMAJ.call.get(B373.SEPTA_NEXTTOARRIVE_URL, params=NArs) in jqSP.mock_calls)", "def TwPl(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = 'some/url/'\n wit...
[ "0.720318", "0.70497185", "0.6997919", "0.6746541", "0.66230947", "0.65962815", "0.6595422", "0.65837204", "0.65819067", "0.65683794", "0.65054697", "0.64601046", "0.64520365", "0.64432365", "0.63848823", "0.63764083", "0.6374502", "0.635349", "0.634235", "0.63338727", "0.632...
0.62017024
24
Take a palette name and return the corresponding colourmap.
def pLK7(VIaY): if hasattr(QrM1.cm, VIaY): iMGt = getattr(QrM1.cm, VIaY) elif VIaY in list(WBZl.cmap_d.keys()): iMGt = WBZl.get_cmap(VIaY) else: print("Error, color option '", VIaY, "' not a valid option") HwRy.exit(1) return iMGt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XTKI(mWFP):\n if mWFP in F3ep:\n return F3ep[mWFP]\n cCuI = QrM1.get_cmap(mWFP)(oyIN.linspace(0, 1, 256))\n tn62 = [XJC0(qfpW) for qfpW in cCuI]\n return tn62", "def aE3h(VIaY):\n if not VIaY in e2tZ:\n raise KeyError('%s is not a valid palette name. To see a list of available pa...
[ "0.80763704", "0.73092914", "0.704474", "0.7037782", "0.6744903", "0.6744903", "0.6699717", "0.6699717", "0.6699717", "0.6640652", "0.65734845", "0.65506434", "0.65444183", "0.6544148", "0.6384101", "0.6269896", "0.62587166", "0.62587166", "0.6209537", "0.6183368", "0.6156963...
0.78392684
1
This method gets the welcome page
def uthR(YKHO): if YKHO.user: return YKHO.render('welcome.html') YKHO.redirect('/register')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j3Yc(YKHO):\n return YKHO.properties.get('WelcomePage', None)", "def uthR():\n print(\"Server received request for 'Home' page...\")\n return f'Available Routes:<br/>/api/v1.0/names<br/>/api/v1.0/passengers'", "def j3Yc():\n return vKnz('/static/welcome.html')", "def uthR():\n return TvZl(...
[ "0.77525425", "0.74715835", "0.7460399", "0.73100877", "0.7177252", "0.7156549", "0.7148812", "0.7118779", "0.7036043", "0.7036043", "0.7034031", "0.70175457", "0.70073533", "0.70053893", "0.6999022", "0.6994165", "0.6944998", "0.6927468", "0.69186425", "0.6916222", "0.689255...
0.7014802
12
Return a vector in the direction of 'vec' with unit length
def fwyd(he6J): return oyIN.divide(he6J, oyIN.linalg.norm(he6J))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aHVb(iArr):\n return iArr / oyIN.linalg.norm(iArr)", "def u54L(he6J):\n return oyIN.linalg.norm(he6J)", "def NkkI(he6J):\n return he6J / u54L(he6J)", "def V1IO(he6J):\n return he6J / CkYf(he6J)", "def NkkI(YKHO, he6J):\n u54L = epAf.sqrt(he6J[0, 0] * he6J[0, 0] + he6J[0, 1] * he6J[0, 1] ...
[ "0.7383862", "0.73525465", "0.7315463", "0.7258197", "0.71091825", "0.70620215", "0.7043874", "0.7010452", "0.6984904", "0.6906915", "0.6906915", "0.6906915", "0.6906915", "0.6906915", "0.6906915", "0.6906915", "0.6906915", "0.6906915", "0.6906915", "0.6906915", "0.6905818", ...
0.77137476
0
Apply a homogeneous transformation to a 3D vector
def mA_2(kI_B, AbJb): return oyIN.dot(kI_B, [AbJb[0], AbJb[1], AbJb[2], 1])[:3]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EfdJ(YKHO, *qIxc):\n return yhEC.itkTranslationTransformD3_TransformVector(YKHO, *qIxc)", "def UnGo(Ty9i, J8oL, Cwt5=1):\n jToN = AbJb(0, 0, 0)\n Job3 = AbJb(0, 0, 0)\n yzQ0 = len(J8oL) * [None]\n R4i3 = 0\n for YRbF in range(len(J8oL)):\n g2zq = J8oL[YRbF]\n WKvO = g2zq[0].x ...
[ "0.73900336", "0.7227296", "0.6863764", "0.68626654", "0.67235494", "0.6709751", "0.6707198", "0.66791666", "0.6561118", "0.6550098", "0.65411556", "0.6533062", "0.65247077", "0.64007276", "0.6381204", "0.6350983", "0.6320885", "0.6318782", "0.6313302", "0.62968826", "0.62954...
0.5957064
46
to check if n is prime or not
def ffYW(exwG): I1mm = 1 for YRbF in range(2, exwG): if exwG % YRbF == 0: I1mm = 0 break else: I1mm = 1 return I1mm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBNJ(exwG):\n return T1qg(exwG)", "def FBNJ(exwG):\n return T1qg(exwG)", "def T1qg(exwG):\n return kU5Q(exwG)", "def FBNJ(exwG):\n if exwG % 2 == 0:\n return False\n return all((exwG % YRbF for YRbF in range(3, int(exwG ** 0.5) + 1, 2)))", "def FBNJ(exwG=936):\n if exwG < 3:\n ...
[ "0.8761939", "0.8706716", "0.8503951", "0.8470171", "0.83648175", "0.8347432", "0.8344202", "0.83406746", "0.83374983", "0.83235896", "0.83199227", "0.8302876", "0.8301317", "0.8284464", "0.82840675", "0.8283061", "0.82821894", "0.8276817", "0.8258277", "0.82549274", "0.82339...
0.7744011
70
Generate an equivalent serializable representation of an object. Subclasses must implement this method to define how the attributes of the object are converted into a serializable representation. A common solution is to construct a list containing device buffer attributes in a welldefined order that can be reinterprete...
def Napc(YKHO): raise NotImplementedError('Subclasses of Serializable must implement serialize')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n return (YKHO.handle, YKHO.gramps_id, YKHO.type.serialize(), r4Ld(YKHO.name), z29M.serialize(YKHO), aQhY.serialize(YKHO), rsU_.serialize(YKHO), YKHO.change, Gw_5.serialize(YKHO), YKHO.private)", "def guoM(YKHO):\n WBPg, VIPT = YKHO.serialize()\n assert all((isinstance(eHNT, (Y3tb.core.b...
[ "0.6444403", "0.62524545", "0.6160626", "0.6039067", "0.595093", "0.5891838", "0.5854981", "0.58467513", "0.5834254", "0.5832779", "0.57270455", "0.56893736", "0.5674179", "0.5636401", "0.5623319", "0.56225854", "0.5620773", "0.5563261", "0.5563192", "0.55605626", "0.55594206...
0.0
-1
writes the JSON string representation
def AHFl(Emd4, Nkld): jbXL = [] GkpK = '{}.json'.format(Emd4.__name__) if Nkld is not None: for YRbF in range(len(Nkld)): jbXL.append(Emd4.to_dictionary(Nkld[YRbF])) with open(GkpK, mode='w', encoding='utf-8') as wM3v: wM3v.write(Emd4.to_json_string(jbXL))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lsrz(YKHO):\n YKHO.json_o.write()", "def VacN(YKHO):\n with open(YKHO._file_path, 'w') as eHNT:\n qQXR.dump(YKHO._content, eHNT, indent=4, separators=None, encoding='utf-8', sort_keys=False)", "def Lsrz(YKHO):\n with open(YKHO.filename + '.json', mode='w') as wM3v:\n qQXR.dump(YKHO.d...
[ "0.82436025", "0.791761", "0.7664976", "0.75298595", "0.7348734", "0.7306143", "0.72687876", "0.7207324", "0.71442467", "0.7110311", "0.7084889", "0.70559585", "0.70559585", "0.70413476", "0.70283824", "0.7023981", "0.69812334", "0.69609225", "0.69597715", "0.6942405", "0.692...
0.0
-1
Calls load_file for all YAML files in the specified directory
def GwO0(pmON: str) -> x1iM[object]: if not Hy7s.path.isdir(pmON): raise ValueError('{} is not a directory'.format(pmON)) p9NO: x1iM[object] = list() for gIsw in Hy7s.listdir(pmON): if Hy7s.path.splitext(gIsw)[1].lower() in ['.yaml', '.yml']: p9NO = p9NO + DMrX(Hy7s.path.join(pmO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WheD(xtX7):\n for ZfUD in teCm(xtX7 + '/*.yaml'):\n KAfx = Hy7s.path.join(xtX7, ZfUD)\n nPrm = eJb6.load(open(KAfx))\n UlWi(nPrm)", "def sbff(YKHO, qIxc):\n QQka = []\n for nUeQ in qIxc:\n with open(nUeQ, 'r') as wOb_:\n QQka.append(wOb_.read())\n HIk3 = ''\...
[ "0.7393813", "0.67493814", "0.6624139", "0.6580748", "0.6528954", "0.6520884", "0.6506958", "0.6492721", "0.64034003", "0.63696957", "0.63428295", "0.63298845", "0.6302418", "0.61687", "0.61636394", "0.6133865", "0.61258173", "0.6125415", "0.61113685", "0.6109315", "0.6075709...
0.57214713
56
Setter method for name, mapped from YANG variable /username/name (string)
def omp9(YKHO, Ty9i, tyeH=False): _AKB = getattr(YKHO, '_parent', None) if _AKB is not None and tyeH is False: raise AttributeError('Cannot set keys directly when' + ' within an instantiated list') if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVPL(YKHO, mWFP):\n YKHO.username = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe\n return YKHO.name", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP...
[ "0.78475374", "0.7802067", "0.7708397", "0.7688577", "0.7688577", "0.7688577", "0.7688577", "0.7688577", "0.7597841", "0.75922644", "0.75854", "0.7569418", "0.7548202", "0.7528875", "0.7528875", "0.7523668", "0.7523668", "0.7482492", "0.7452747", "0.7452747", "0.74065095", ...
0.0
-1
Getter method for expire, mapped from YANG variable /username/expire (date)
def NtdQ(YKHO): return YKHO.__expire
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z1Yb(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_dict={'pattern': u'((19(0[2-9]|[1-9][0-9])|20([012][0-9]|3[0-7]))-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))|never', 'length': [u'0 .. 10']}...
[ "0.76188356", "0.7044235", "0.7044235", "0.7044235", "0.7036163", "0.6975539", "0.6955771", "0.68616277", "0.68616277", "0.67522556", "0.67522556", "0.6727505", "0.6559635", "0.6528554", "0.6478075", "0.6245541", "0.6227931", "0.61245537", "0.6114268", "0.6083079", "0.5951619...
0.70141
5
Setter method for expire, mapped from YANG variable /username/expire (date)
def z1Yb(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_dict={'pattern': u'((19(0[2-9]|[1-9][0-9])|20([012][0-9]|3[0-7]))-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))|never', 'length': [u'0 .. 10']}), defaul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PiTA(YKHO, PiTA):\n YKHO._expire_date = PiTA", "def pg_u(YKHO, pg_u):\n YKHO._expire = pg_u", "def yxS0(YKHO, BWXx):\n BWXx = gnPz.parse_valid_date(BWXx)\n YKHO._set_attr('expires', BWXx)", "def e2iN(YKHO, e2iN):\n YKHO._expire_time = e2iN", "def b2y6(YKHO) -> qcWV:\n return YKHO.firs...
[ "0.7711341", "0.75170135", "0.69485503", "0.67902404", "0.67082125", "0.66365373", "0.66365373", "0.66365373", "0.6530478", "0.6502717", "0.6416505", "0.6416505", "0.63527805", "0.63527805", "0.62913805", "0.62809604", "0.62454695", "0.62362653", "0.62360734", "0.6212032", "0...
0.7949183
0
Getter method for end_time, mapped from YANG variable /username/end_time (string)
def P_sM(YKHO): return YKHO.__end_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C7pn(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'end_time')", "def C7pn(YKHO) -> str:\n return YKHO._end_time", "def i2c0(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QMSQ, default=QMSQ(''), is_leaf=True, yang_n...
[ "0.762062", "0.75642556", "0.7561646", "0.75503886", "0.7470221", "0.7465202", "0.7396361", "0.7215351", "0.7215351", "0.7215351", "0.7215351", "0.7215351", "0.7215351", "0.71548927", "0.71262026", "0.7107578", "0.7107578", "0.70767576", "0.704823", "0.70347464", "0.6862669",...
0.7388154
7
Setter method for end_time, mapped from YANG variable /username/end_time (string)
def i2c0(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=QMSQ, default=QMSQ(''), is_leaf=True, yang_name='end-time', rest_name='to', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, extensions=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C7pn(YKHO, C7pn: str):\n if C7pn is None:\n raise ValueError('Invalid value for `end_time`, must not be `None`')\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n if C7pn is None:\n raise ValueError('Invalid value for `end_time`, must not be `None`')\n YKHO._end_time = C7pn", "de...
[ "0.83282036", "0.8000734", "0.7899427", "0.7899427", "0.7853007", "0.7853007", "0.7853007", "0.7465363", "0.7253499", "0.7229665", "0.7226798", "0.70488954", "0.7007945", "0.6976283", "0.6891042", "0.6816906", "0.6816906", "0.6816906", "0.6816906", "0.6816906", "0.6816906", ...
0.8278087
1
Create a palette without components.
def WfjU(): tn62 = KZBZ() SjMt(len(tn62), 0) SjMt(list(tn62.list()), []) SjMt(list(tn62.keys()), []) SjMt(tn62.uses(), []) SjMt(tn62.provides(), []) LSgU = tn62.find_provider('air__temperature') SjMt(LSgU, []) DW23 = tn62.find_user('air__temperature') SjMt(DW23, []) siZ_ = tn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VDVO(YKHO):\n Rg3T = llYN.Color.Red\n jCRz = llYN.Color(100, 150, 200)\n ZfdO = '#aaa'\n tn62 = llYN.Palette((Rg3T, jCRz, ZfdO))", "def qX_5(YKHO):\n LuXF = (0, 0, 0)\n for YRbF in range(1, 256):\n LuXF += (YRbF, YRbF, YRbF)\n if YKHO._displayPjt:\n YKHO._displayPjt.setColo...
[ "0.64988106", "0.63412833", "0.6200862", "0.619595", "0.6145095", "0.6128511", "0.611447", "0.61126995", "0.5961688", "0.59141797", "0.5734073", "0.5552622", "0.5552622", "0.5534682", "0.551732", "0.5457936", "0.53198415", "0.52857536", "0.52847344", "0.52245754", "0.52120876...
0.6948724
0
Combines two dictionaries of nerds format.
def Xk8C(AjzU, _sQW): BdN0 = AjzU['host']['nmap_services_py'] gv2B = _sQW['host']['nmap_services_py'] aeG7 = BdN0['addresses'][0] gv2B['hostnames'].extend(BdN0['hostnames']) gv2B['hostnames'] = list(set(gv2B['hostnames'])) gv2B['addresses'].append(aeG7) gv2B['addresses'] = list(set(gv2B['add...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rudf(AjzU, _sQW):\n if AjzU is None:\n return _sQW\n if _sQW is None:\n return AjzU\n else:\n assert set(AjzU.keys()) == set(_sQW.keys())\n return {G1Hx: oyIN.concatenate([AjzU[G1Hx], _sQW[G1Hx]], axis=0) for G1Hx in AjzU}", "def roQF(AjzU, _sQW):\n return {**AjzU, **_...
[ "0.71161026", "0.7025145", "0.7015011", "0.6916082", "0.69091713", "0.68061185", "0.68061185", "0.6791349", "0.669834", "0.669833", "0.6632675", "0.6624483", "0.6590203", "0.6577066", "0.65582", "0.6557606", "0.65174127", "0.64803475", "0.6478962", "0.6455222", "0.64274365", ...
0.0
-1
Represent instance object as a string.
def zAg0(YKHO): return YKHO.__class__.__name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__dict__['_obj'])", "def zAg0(YKHO):\n return str(YKHO.obj)", "def zAg0(YKHO):\n return repr(YKHO)", "def wHJl(YKHO) -> str:\n return '{:s}({!r})'.format(YKHO.__class__.__name__, YKHO.getvalue())", "def wHJl(YKHO) -> str:\n return '{:s}({!r})'.format(YKHO.__...
[ "0.79262424", "0.78617835", "0.77674437", "0.7744228", "0.7744228", "0.7744228", "0.77402246", "0.7715433", "0.7715433", "0.7674428", "0.76251364", "0.76251364", "0.76251364", "0.76251364", "0.76251364", "0.76128346", "0.76128346", "0.7598418", "0.7598418", "0.7598418", "0.75...
0.0
-1
Test the Service not authorized exception page by having an invalid service in the url
def t6oz(YKHO, E_qD): E_qD.get(gCuF.CAS_DOMAIN + '/login?service=https://noservice.osf.io/') KsLL = QhHO(E_qD, verify=True) assert KsLL.navbar_brand.text == 'OSF HOME' assert KsLL.status_message.text == 'Service not authorized'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L6yC(YKHO):\n bD7m = gxEw('users:activate-from-email', args=(1, 1))\n Ylbp = YKHO.client.get(bD7m)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_503_SERVICE_UNAVAILABLE)", "def SPoH(YKHO):\n YKHO.attempt_login(403, return_to='http://apps.cs50.edx.or')", "def yy5L(YKHO):\n raise NotImplement...
[ "0.72131354", "0.71713096", "0.6962753", "0.6951849", "0.6906081", "0.68302125", "0.6827762", "0.68010426", "0.6780323", "0.6772179", "0.6757207", "0.67228466", "0.67155784", "0.6702117", "0.6691955", "0.6691955", "0.66904575", "0.6679768", "0.6670282", "0.6656693", "0.663219...
0.77528536
0
The "Improved" evaluation function discussed in lecture that outputs a score equal to the difference in the number of moves available to the two players.
def nubr(BH3N, oyg0): if BH3N.is_loser(oyg0): return float('-inf') if BH3N.is_winner(oyg0): return float('inf') NE4c = len(BH3N.get_legal_moves(oyg0)) HJCe = len(BH3N.get_legal_moves(BH3N.get_opponent(oyg0))) return float(NE4c - HJCe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xdA4(BH3N, oyg0):\n if BH3N.is_loser(oyg0):\n return float('-inf')\n if BH3N.is_winner(oyg0):\n return float('inf')\n xzj7 = BH3N.get_opponent(oyg0)\n return float(len(BH3N.get_legal_moves(oyg0))) - 2.0 * float(len(BH3N.get_legal_moves(xzj7)))", "def RToP(BH3N, oyg0):\n if BH3N.i...
[ "0.75373995", "0.7414996", "0.71765894", "0.71744704", "0.7060742", "0.69603145", "0.688566", "0.6884995", "0.68621206", "0.6841008", "0.6834105", "0.6824816", "0.6812625", "0.6743744", "0.6722594", "0.6717529", "0.6708427", "0.6693943", "0.6677058", "0.6661206", "0.66367656"...
0.6830242
11
Calculate the heuristic value of a game state from the point of view of the given player.
def CDl2(BH3N, oyg0): if BH3N.is_loser(oyg0): return float('-inf') if BH3N.is_winner(oyg0): return float('inf') Lmgh = {'heuristic_1_center': EjfE, 'heuristic_2_reflection': orKZ, 'heuristic_3_partition': VRwW, 'heuristic_combined_1_2': wtvV, 'heuristic_combined_1_3': _UZ4, 'heuristic_combin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7Dd(YKHO, QTBn, oyg0):\n if QTBn.isWin() or QTBn.isLose():\n return QTBn.getScore()\n if oyg0 == z5IR:\n return r51j\n else:\n return -r51j", "def tL3w(QTBn, oyg0):\n Vyql = oyg0\n if QTBn.winner() == (not Vyql):\n return -_6fB\n if QTBn.winner() == Vyql:\n ...
[ "0.7160494", "0.71279645", "0.68393725", "0.68169177", "0.67995226", "0.6591217", "0.6582479", "0.6451468", "0.64507467", "0.64382285", "0.6435121", "0.6434234", "0.6422215", "0.64143264", "0.64071846", "0.6401376", "0.6351839", "0.634163", "0.63405424", "0.63129526", "0.6308...
0.60757005
34
Initialize an operator object.
def FIMM(YKHO, usfD, t9WU): YKHO._qargs = None YKHO._input_dims = None YKHO._output_dims = None YKHO._input_dim = None YKHO._output_dim = None YKHO._set_dims(usfD, t9WU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lFt3(YKHO, seET=None, SppC=False, WB7U=False):\n if seET is None:\n YKHO._operator = lambda Ziit, Vo9x, bTKY=None: pSfY((1, Ziit.shape[1])) if bTKY[0] == bTKY[1] else VNqG((1, Ziit.shape[1]))\n elif SppC is False:\n YKHO._operator = lambda Ziit, Vo9x, bTKY=None: seET(Ziit, entry=bTKY)\n ...
[ "0.7534934", "0.7277081", "0.7208654", "0.7132559", "0.71047", "0.7066889", "0.7004515", "0.69264996", "0.6914285", "0.6899614", "0.6853921", "0.6782948", "0.6726909", "0.67100734", "0.66096175", "0.6584175", "0.642268", "0.6403391", "0.6395536", "0.6390766", "0.6386302", "...
0.0
-1
Check dimensions are compatible for composition.
def Ieb4(YKHO, Elif, W2IT, VnzS): if VnzS: t9WU = YKHO._output_dims if W2IT is None: if Elif._output_dim != YKHO._input_dim: raise eP6a('Other operator combined output dimension ({}) does not match current combined input dimension ({}).'.format(Elif._output_dim, YKHO._inp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fz8m(YKHO) -> None:\n Htse = (YKHO.y_dim, YKHO.x_dim)\n SG6Y = YKHO._obj[YKHO.vars[0]] if isinstance(YKHO._obj, zuVY.Dataset) else YKHO._obj\n _xz6 = [tpio for tpio in SG6Y.dims if tpio not in Htse]\n if len(_xz6) == 1:\n Htse = tuple(_xz6) + Htse\n YKHO.set_attrs(dim0=_xz6[0])\n e...
[ "0.72302943", "0.6962035", "0.6776989", "0.67757374", "0.6720028", "0.6700879", "0.6651606", "0.6590849", "0.6516346", "0.64986134", "0.64938146", "0.64015824", "0.6401012", "0.6331507", "0.6268126", "0.62629926", "0.6260721", "0.6245882", "0.62390643", "0.6230982", "0.623063...
0.0
-1
>>> cumulative_sum([1,3,5]) [1, 4, 9] >>> cumulative_sum([2,8,1]) [2, 10, 11] >>> cumulative_sum([7,4,5,11]) [7, 11, 16, 27] >>> cumulative_sum([0,1,0,1,0,1]) [0, 1, 1, 2, 2, 3] >>> cumulative_sum([9,8,7,6,5,4,3]) [9, 17, 24, 30, 35, 39, 42]
def IJGg(hcfj): for YRbF in range(len(hcfj)): S06t = hcfj if YRbF > 0: S06t[YRbF] += S06t[YRbF - 1] else: pass return S06t
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJGg(WKvO):\n wjRY = 0\n sum = []\n for mLGw in WKvO:\n wjRY += mLGw\n sum.append(wjRY)\n return sum", "def IJGg(YKHO, qgK3):\n S06t = []\n for YRbF in range(len(qgK3)):\n if YRbF == 0:\n S06t.append(qgK3[YRbF])\n else:\n S06t.append(S06t[YR...
[ "0.7863399", "0.7848273", "0.7776899", "0.7526346", "0.7474757", "0.7440402", "0.7352551", "0.7215611", "0.688607", "0.6859997", "0.67267317", "0.65744424", "0.6475167", "0.63234305", "0.63023156", "0.63023156", "0.63023156", "0.62055314", "0.6198173", "0.61843693", "0.615042...
0.77226686
3
>>> average([0,1,2,3,4]) 2.0 >>> average([4,2,1,0,3]) 2.0 >>> average([3,3,3]) 3.0 >>> average([9,1,2,7,8]) 5.4 >>> average([3,7,0,1,0,0,0,0]) 1.375
def S8vG(hcfj): Aofo = 0 for YRbF in hcfj: Aofo += YRbF return Aofo / len(hcfj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qqgr(list):\n return sum(list) / len(list)", "def S8vG(hkxX):\n return sum(hkxX) / len(hkxX)", "def S8vG(hkxX):\n return sum(hkxX) / len(hkxX)", "def S8vG(hkxX):\n return sum(hkxX) / len(hkxX)", "def ewCO(mSrU):\n return sum(mSrU) / len(mSrU)", "def S8vG(yv6U):\n return sum(yv6U) / ...
[ "0.8240112", "0.8237379", "0.8237379", "0.8231759", "0.8170897", "0.81608766", "0.81197166", "0.8097608", "0.8075575", "0.8056841", "0.8056817", "0.80526024", "0.7975543", "0.7940974", "0.7893937", "0.78939366", "0.7893566", "0.787835", "0.78650254", "0.7857104", "0.7818166",...
0.7631283
31
>>> centered_average([1,2,3,4,5]) 3.0 >>> centered_average([3,5,1,4,2]) 3.3333333333333335 >>> centered_average([2,2,2,2]) 2.0 >>> centered_average([4,7,1,8,13,5]) 7.25 >>> centered_average([67,21,34,52]) 27.5
def inaQ(hcfj): sorted(hcfj) hcfj.remove(hcfj[0]) hcfj.remove(hcfj[-1]) Aofo = 0 for YRbF in hcfj: Aofo += YRbF return Aofo / len(hcfj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def inaQ(xYvp):\n wCw7 = xYvp[0]\n emQY = xYvp[0]\n sum = 0\n for WKvO in xYvp:\n wCw7 = max(wCw7, WKvO)\n emQY = min(emQY, WKvO)\n sum += WKvO\n return (sum - wCw7 - emQY) / (len(xYvp) - 2)", "def S8vG(vC9B):\n return float(sum(vC9B) / len(vC9B))", "def bZzU(xYvp):\n ...
[ "0.80570865", "0.7098046", "0.70641696", "0.7064145", "0.70507234", "0.7030994", "0.69553214", "0.69218624", "0.68955857", "0.68845123", "0.6878914", "0.68340933", "0.68144995", "0.68144995", "0.68020886", "0.67867416", "0.677926", "0.67781657", "0.67625004", "0.67548656", "0...
0.84538496
0
>>> reverse_pair("I am your father") 'father your am I' >>> reverse_pair("Lion king") 'king Lion' >>> reverse_pair("Rotten tomato") 'tomato Rotten' >>> reverse_pair("Oscar goes to") 'to goes Oscar' >>> reverse_pair("May the sleep be with you") 'you with be sleep the May'
def dHeW(V1HT): j4hX = V1HT.split(' ') j4hX.reverse() return ' '.join(j4hX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dHeW(l5Ny):\n _jcb = l5Ny.split(' ')\n _jcb = _jcb[-1::-1]\n return ' '.join(_jcb)", "def clRt(rRr2):\n return str(rRr2)[::-1]", "def AW1Q(KCHu: List[str]) -> None:\n LFlW = 0\n _tIi = len(KCHu) - 1\n while LFlW < _tIi:\n KCHu[LFlW], KCHu[_tIi] = (KCHu[_tIi], KCHu[LFlW])\n ...
[ "0.80731803", "0.6365779", "0.62356395", "0.62336266", "0.6150611", "0.61459965", "0.61204916", "0.61090857", "0.60870504", "0.60702914", "0.6005606", "0.59895563", "0.5987198", "0.5981315", "0.59698915", "0.59504884", "0.5950281", "0.59333485", "0.59192765", "0.59133667", "0...
0.8463772
0
Indicate if the specified instruction is some kind of branch instruction.
def mROp(YKHO, ai1o): return ai1o in FSkM or ai1o in Cqyf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j3oT(qelL: ModuleIdentifierOpInfo):\n khtY = nenD.get_all_ops()[qelL.module_name]\n mNal = True\n Lx3t = khtY.output\n if 'branch' not in Lx3t.name:\n bo34.error('branch not in product name')\n mNal = False\n if len(Lx3t.consumers) > 1:\n bo34.error(\"branch op is not parent...
[ "0.6647614", "0.60634774", "0.6017458", "0.5948353", "0.58842415", "0.58089924", "0.5786722", "0.56478924", "0.56377935", "0.55377215", "0.5530692", "0.5480178", "0.5465409", "0.5441071", "0.53631157", "0.53228205", "0.51282257", "0.5120216", "0.5118946", "0.5117764", "0.5113...
0.7609793
0
Converts an input 1D vector of integers into an output 2D array of onehot vectors, where an i'th input value of j will set a '1' in the i'th row, j'th column of the output array.
def YQH4(iArr, jTqs=None): assert isinstance(iArr, oyIN.ndarray) assert len(iArr) > 0 if jTqs is None: jTqs = oyIN.max(iArr) + 1 else: assert jTqs > 0 assert jTqs >= oyIN.max(iArr) Aofo = oyIN.zeros(shape=(len(iArr), jTqs)) Aofo[oyIN.arange(len(iArr)), iArr] = 1 retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj8B(Ty9i):\n exwG = len(Ty9i)\n r8hN = max(Ty9i) + 1\n yvT9 = oyIN.zeros((exwG, r8hN))\n yvT9[oyIN.arange(exwG), Ty9i] = 1\n return yvT9", "def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r845] = 1\n return hlel", "def V...
[ "0.8490464", "0.81970894", "0.79858154", "0.79749566", "0.79484224", "0.79404193", "0.7874772", "0.78690064", "0.7857135", "0.7820589", "0.7688938", "0.76876134", "0.76716435", "0.7646574", "0.763763", "0.7597432", "0.75806373", "0.75799024", "0.75782335", "0.7577251", "0.757...
0.78766453
6
List unique elements, preserving order. Remember all elements ever seen.
def oHYj(OxJJ, H5ew=None): """unique_everseen('AAAABBBCCDAABBB') --> A B C D""" "unique_everseen('ABBCcAD', str.lower)" PwWw = set() aygV = PwWw.add if H5ew is None: for U6D_ in nmsr(PwWw.__contains__, OxJJ): aygV(U6D_) pass else: for U6D_ in OxJJ: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ONhe(BDwY):\n return list(set(BDwY))", "def kcwm(WKvO):\n return list(set(WKvO))", "def a4ZY(UqER):\n bypm = set()\n U5bT = []\n for tTpl in UqER:\n if tTpl not in bypm:\n U5bT.append(tTpl)\n bypm.add(tTpl)\n return U5bT", "def kcwm(BDwY):\n PwWw = set()\...
[ "0.7985526", "0.7511163", "0.7475624", "0.74650085", "0.74642", "0.7422897", "0.73317474", "0.7278778", "0.7207954", "0.7056807", "0.69874877", "0.69584966", "0.693136", "0.6916241", "0.69129115", "0.6895722", "0.6893571", "0.68864334", "0.6871151", "0.6870085", "0.68142843",...
0.0
-1
Set the Bing API key.
async def apikey_bing(YKHO, OaeV, H5ew): gCuF = O_Fa() gCuF['apikey'] = H5ew gEt_(gCuF) return await YKHO.bot.say('Bing API key saved.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA", "def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA", "def Dma5(YKHO, rJDA):\n YKHO.api_key = rJDA\n YKHO.session.auth = ('api', rJDA)", "def yElH(YKHO, rJDA):\n YKHO._analyzer.SetAPIKey(rJDA)", "def Dma5(rJDA):\n H4Ej.__api_key = rJDA", "def rJD...
[ "0.7751074", "0.7751074", "0.7162988", "0.7158943", "0.7072972", "0.70573306", "0.70489466", "0.70076543", "0.7007088", "0.6718328", "0.67137533", "0.66995245", "0.66331214", "0.66152644", "0.64943737", "0.64687663", "0.63760793", "0.6343091", "0.6255109", "0.6236419", "0.619...
0.7269278
2
Method to be override by users. In this method, the user should register the model, optimizer, criterion, and data loaders to the operator class via the `register()` method.
def eCGt(YKHO, XEfW): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gr_i(YKHO, *, C3ST, K0do, OPAs, **B2fa):\n raise NotImplementedError()", "def FIMM(YKHO):\n super(XdTZ, YKHO).__init__()", "def OVQ9(IPme, C3ST):\n ...", "def FIMM(YKHO, K0do):\n super(zKuh, YKHO).__init__(K0do, name='ShardedOptimizer')", "def Q8sm(YKHO):\n raise NotImplementedError()", ...
[ "0.6899107", "0.66595286", "0.6124426", "0.6026871", "0.59907895", "0.5983626", "0.58599967", "0.58491737", "0.58475566", "0.58451897", "0.5803376", "0.57841396", "0.57816666", "0.5777081", "0.57398814", "0.5711376", "0.56904393", "0.5654849", "0.5644213", "0.5643954", "0.561...
0.61587465
2