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
Init the use case with all the dependencies need it. The domain logic and the transformer.
def FIMM(YKHO, WdGy: GetMoviesService, oQC_: MoviesTransformer): YKHO.get_movies = WdGy YKHO.movies_transformer = oQC_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eCGt(YKHO):\n YKHO.setup_data()\n YKHO.setup_variables()\n YKHO.setup_constraints()\n YKHO.setup_objective()", "def bkPg(YKHO) -> None:\n if YKHO._model_class != VUcl:\n YKHO._logger.info('Building vocabulary')\n b0j5 = Tj6D(YKHO.hparams['tokenizer'], language=YKHO.hparams['token...
[ "0.6803811", "0.6514272", "0.6488271", "0.6377245", "0.6363092", "0.6285881", "0.62589127", "0.62589127", "0.62589127", "0.62589127", "0.62589127", "0.62589127", "0.62589127", "0.62589127", "0.62589127", "0.6251393", "0.62111557", "0.6205807", "0.6203268", "0.61846185", "0.61...
0.0
-1
Get first 4 bytes of a file, which contains the version of the scenario
def ibsJ(c2Yh: IncrementalGenerator): return c2Yh.get_bytes(4, update_progress=False).decode('ASCII')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(gIsw):\n return gIsw[20:-4]", "def kaPv():\n return open(z08f).read().strip()", "def gNlS(pmON: Path) -> int:\n with open(pmON, 'rt') as eHNT:\n DpZH = eHNT.read().strip()\n return int(DpZH, base=16)", "def NPvg(eHNT):\n return BlNT.unpack('>6lhhl', eHNT.read(32))", "def DpZH...
[ "0.6795004", "0.67111677", "0.6662023", "0.64873683", "0.6434583", "0.6428928", "0.6412599", "0.6356492", "0.63074577", "0.6302647", "0.6269213", "0.62643945", "0.6258687", "0.6238441", "0.6184877", "0.6182397", "0.6180539", "0.6158973", "0.6149793", "0.6122219", "0.61163485"...
0.75063956
0
Find the bytes of the retriever before the scenario variant bytes. Then use that reference to find out which variant it is. If it's unable to find it, None is returned.
def LUdj(c2Yh: IncrementalGenerator) -> Cmry | None: try: d6pt = c2Yh.file_content.index(b'\xe8\x03\x00\x00') except ValueError: return None BWXx = c2Yh.file_content[d6pt + 4:d6pt + 8] BWXx = PCNz(BWXx, signed=False) try: return Cmry(BWXx) except ValueError: retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ph6J(YKHO, pPTc):\n iDbB = (zFiD for zFiD in YKHO if zFiD.variant.pk == pPTc.pk)\n return next(iDbB, None)", "def B4GV(q7V9, dQgj, aC0l, WRty):\n NArs = {'chromosome': int(q7V9), 'position': int(dQgj), 'reference': aC0l, 'alternate': WRty}\n Mkmy = G4JS.get(url=NUHq, params=NArs)\n nPrm = Mkmy...
[ "0.5521496", "0.5496227", "0.52440983", "0.523816", "0.52353513", "0.5230971", "0.5224402", "0.51980686", "0.51288414", "0.51200354", "0.51181084", "0.51134956", "0.5005519", "0.5002608", "0.4976563", "0.4976563", "0.49730682", "0.49652728", "0.49531057", "0.4931189", "0.4928...
0.61671865
0
Get the path of the AoE2ScenarioParser/versions directory. Simply '../../versions' is not used as that is not OS friendly.
def AS54() -> GkAb: return GkAb(xAKo).parent.parent / 'versions'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Liik(YKHO) -> GkAb:\n return YKHO.env_dir / 'versions'", "def pEzh(YKHO) -> str:\n DpZH = YKHO.version().replace('.', '')\n return Hy7s.path.abspath(f'.riot/venv_py{DpZH}')", "def Kz2T() -> GkAb:\n return L59w() / yzPQ", "def HKtQ():\n cqDF = B5hb.ResourcePath('grr-response-core', 'version...
[ "0.78183126", "0.72009563", "0.71865225", "0.7078324", "0.69638246", "0.69381887", "0.6891316", "0.6656728", "0.65943897", "0.6582188", "0.64084995", "0.630165", "0.6282553", "0.62593424", "0.6192117", "0.61783344", "0.61587304", "0.611821", "0.6117908", "0.611062", "0.610999...
0.8375069
0
Creates and saves a User with the given email and password.
def xWi2(YKHO, D3lj, jTXt, WJxI, qMrd, **wdCM): wzkt = rIAI.now() if not D3lj: raise ValueError('The given email must be set') if qMrd: ZP0S = mv1M.UT_ADMIN else: ZP0S = mv1M.UT_PARENT D3lj = YKHO.normalize_email(D3lj) CBIr = YKHO.model(email=D3lj, is_staff=WJxI, is_activ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ...
[ "0.87203795", "0.8471124", "0.8462932", "0.84520763", "0.84274495", "0.84224284", "0.84208685", "0.84165066", "0.8410754", "0.8409538", "0.8409538", "0.8401648", "0.84014827", "0.8391565", "0.83900344", "0.83900344", "0.83900344", "0.83900344", "0.83900344", "0.83900344", "0....
0.0
-1
Returns the first_name plus the last_name, with a space in between.
def xpqj(YKHO): eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name) return eHMM.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM", "def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()", "def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')", "def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl...
[ "0.82872856", "0.8179012", "0.81130326", "0.80760396", "0.8034134", "0.8032392", "0.8030516", "0.80072623", "0.8006718", "0.8005418", "0.8000916", "0.7995176", "0.79901665", "0.79793483", "0.79790914", "0.79603624", "0.7952844", "0.7944558", "0.7944558", "0.79419315", "0.7941...
0.77470917
69
Test if this is a Tor exit node.
def i8g5(YKHO): return 'TOR' in YKHO.blackhat_tags
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Haga(YKHO):\n return YKHO.exit", "def uhY9(YKHO):\n return YKHO.exit", "def irkn(YKHO):\n return YKHO.server.should_exit", "def ResZ(YKHO):\n return YKHO.name in ['unreachable', 'return']", "def exit(YKHO, v2GW=None):\n return False", "def UpOi(YKHO, *qIxc):\n return PZpo.TUndirNet_...
[ "0.68865496", "0.6659645", "0.6629021", "0.636882", "0.6178848", "0.61756784", "0.60802454", "0.6071412", "0.60632503", "0.60239524", "0.6010783", "0.59742427", "0.59696627", "0.5961376", "0.5901164", "0.5859157", "0.58572364", "0.584958", "0.58356655", "0.5801757", "0.578245...
0.76630676
0
Creates a confMatrix when given a model and the X and y
def JBDk(C3ST, EcVT, LVAh): Q_RX, k8N0, e3Zm, LCkP = bHtP(EcVT, LVAh, test_size=0.2, random_state=10) C3ST.fit(Q_RX, e3Zm) fy0J = C3ST.predict(k8N0) vb7U = YsYU(LCkP, fy0J, labels=[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0]) print('Matrix is: ') print(vb7U)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vJCF(C3ST, EcVT, fuBA):\n kWgg = qzeP(C3ST, EcVT, fuBA, cv=3)\n w5sv = YsYU(fuBA, kWgg)\n QrM1.matshow(w5sv, cmap=QrM1.cm.gray)\n QrM1.show()\n return (w5sv, kWgg)", "def YsYU(EcVT, LVAh, C3ST, U3PI=None):\n Lcqa, Z5wO, VJv0, H96n = bHtP(EcVT, LVAh, test_size=0.2, random_state=hqJl)\n C3...
[ "0.67927384", "0.6190468", "0.6136098", "0.6029652", "0.58205414", "0.5543668", "0.5391454", "0.5333174", "0.5320744", "0.5317982", "0.5296158", "0.5288638", "0.5276857", "0.5251213", "0.52406996", "0.5239363", "0.51980364", "0.517964", "0.5169607", "0.51675147", "0.5149417",...
0.730542
0
Compute ``out = selffac self + otherfacother``, where `other` is a vector..
def fVGA(YKHO, JTyX, Elif, VMjF, yvT9, EPmQ=None, wOb_=None): assert YKHO.shape == Elif.shape if not YKHO.flags.forc or not Elif.flags.forc: raise RuntimeError('only contiguous arrays may be used as arguments to this operation') JfyU = mjGq.get_axpbyz_kernel(YKHO.dtype, Elif.dtype, yvT9.dtype) i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ui2_(YKHO, rEbr):\n return YKHO.to_normal_versor().vector_product(rEbr.to_normal_versor()).to_versor()", "def FOdN(YKHO, Elif):\n WKvO = YKHO.vector\n if isinstance(Elif, (int, float)):\n G1Hx = Elif\n return DKJk((WKvO[0] + G1Hx, WKvO[1] + G1Hx))\n else:\n LVAh = Elif.vector...
[ "0.62071663", "0.61513996", "0.615116", "0.61132187", "0.60887975", "0.60887975", "0.6085606", "0.6054991", "0.6031384", "0.6020247", "0.601922", "0.6016219", "0.5999778", "0.5985625", "0.5960038", "0.5922925", "0.5922925", "0.5922925", "0.58970356", "0.58798736", "0.5857397"...
0.53629935
92
Compute ``out = selffac self + other``, where `other` is a scalar.
def aX5w(YKHO, JTyX, Elif, yvT9, wOb_=None): if not YKHO.flags.forc: raise RuntimeError('only contiguous arrays may be used as arguments to this operation') JfyU = mjGq.get_axpbz_kernel(YKHO.dtype, yvT9.dtype) JfyU.prepared_async_call(YKHO._grid, YKHO._block, wOb_, JTyX, YKHO.gpudata, Elif, yvT9.gpu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iWIW(YKHO, JTyX, Elif, VMjF, EPmQ=None, wOb_=None):\n Aofo = YKHO._new_like_me(QHQf(YKHO, Elif))\n return YKHO._axpbyz(JTyX, Elif, VMjF, Aofo, EPmQ)", "def FOdN(YKHO, Elif):\n WKvO = YKHO.vector\n if isinstance(Elif, (int, float)):\n G1Hx = Elif\n return DKJk((WKvO[0] + G1Hx, WKvO[1...
[ "0.6428128", "0.636772", "0.6263802", "0.62503016", "0.62409925", "0.6217358", "0.6217358", "0.62108165", "0.61807257", "0.61663336", "0.61544037", "0.61402434", "0.6120367", "0.6120367", "0.6120367", "0.60965335", "0.60810614", "0.6055562", "0.5988862", "0.5987914", "0.59726...
0.0
-1
Return `selffac self + otherfacother`.
def iWIW(YKHO, JTyX, Elif, VMjF, EPmQ=None, wOb_=None): Aofo = YKHO._new_like_me(QHQf(YKHO, Elif)) return YKHO._axpbyz(JTyX, Elif, VMjF, Aofo, EPmQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOdN(YKHO, Elif):\n return YKHO", "def FOdN(YKHO, Elif):\n return YKHO.combine(Elif)", "def FOdN(YKHO, Elif):\n return YKHO", "def FOdN(YKHO, Elif):\n return OXAZ(elmts=[YKHO]) + Elif", "def FOdN(YKHO, Elif):\n return YKHO.merged(Elif)", "def FOdN(YKHO, Elif):\n return YKHO(Elif)", ...
[ "0.6881493", "0.68802345", "0.68401265", "0.6742886", "0.6732499", "0.6724809", "0.67075235", "0.6698219", "0.66719896", "0.66392875", "0.66299903", "0.6625038", "0.6625038", "0.66183543", "0.6607025", "0.6607025", "0.6607025", "0.659911", "0.65972686", "0.6576226", "0.657110...
0.0
-1
Returns a view of the array with dimensions of length 1 removed.
def MZMe(YKHO): EZd9 = tuple([tpio for tpio in YKHO.shape if tpio > 1]) _WiV = tuple([YKHO.strides[YRbF] for YRbF, tpio in enumerate(YKHO.shape) if tpio > 1]) return qpzU(shape=EZd9, dtype=YKHO.dtype, allocator=YKHO.allocator, strides=_WiV, base=YKHO, gpudata=int(YKHO.gpudata))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MZMe(YKHO):\n return XTiz.array(YKHO).squeeze()", "def MZMe(YKHO):\n or8S = [YRbF for YRbF, epBp in enumerate(YKHO.shape) if epBp != 1]\n UXqs = []\n for YRbF in or8S:\n UXqs.append(YKHO.label[YRbF])\n WKvO = YKHO.x.squeeze()\n return eXg7(WKvO, UXqs, validate=False)", "def vlzM(qw...
[ "0.6851613", "0.671031", "0.66079146", "0.65546423", "0.65214604", "0.65164566", "0.64474195", "0.63307667", "0.6288693", "0.6284887", "0.6246613", "0.6176127", "0.61347854", "0.6113694", "0.61097616", "0.6096659", "0.6070613", "0.6057988", "0.6054508", "0.6042354", "0.603742...
0.6206251
11
Gets all the groups that are configured in the db and returns a dict of everything.
def aSJg(): gbqO = [] Mkmy = GhOX.query(cQ68).all() for Oa1e in range(len(Mkmy)): mQYJ = Mkmy[Oa1e].get_all_assignments() if mQYJ: mQYJ = tuple(mQYJ) gbqO.append([Mkmy[Oa1e].group_name, mQYJ]) return gbqO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSJg(YKHO):\n return YKHO.conn.query(pMFV)", "def CKib(YKHO):\n return YKHO.session.query(xU0C.Group).all()", "def aSJg(YKHO):\n with CLDb() as YAg3:\n return YAg3.find_all()", "def MvIi():\n return u8YN()", "def aSJg(YKHO):\n pass", "def MvIi(YKHO):\n return HFY6(XP5J.alpm_d...
[ "0.79229444", "0.7767073", "0.7671771", "0.76397234", "0.7623225", "0.75211567", "0.7516138", "0.7477432", "0.7442126", "0.74167275", "0.7410228", "0.72964793", "0.7293113", "0.7271809", "0.7259101", "0.72273004", "0.7211148", "0.7185747", "0.7160596", "0.71464694", "0.712301...
0.6823875
52
Convert list of list of tokens to a padded LongTensor.
def zt74(BVyk, Ep8u): YnUw = max((len(WKvO) for WKvO in BVyk)) s2mk = ht2j.LongTensor(Ep8u, YnUw).fill_(si3H.PAD_ID) for YRbF, KCHu in enumerate(BVyk): s2mk[YRbF, :len(KCHu)] = ht2j.LongTensor(KCHu) return s2mk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WCko(qw7D, WPCf):\n G5jn = len(qw7D)\n dvgN = (WPCf - G5jn) * [0]\n wkK1 = [2]\n l3At = [3]\n return ht2j.LongTensor(wkK1 + qw7D + dvgN + l3At)", "def ybhY(nwEZ: torch.Tensor) -> ht2j.Tensor:\n H5Km = []\n eusk = 512\n for XuXy in nwEZ:\n loo_ = eusk - len(XuXy)\n if loo...
[ "0.6897962", "0.66958034", "0.6683311", "0.6672972", "0.6583143", "0.6557428", "0.64239717", "0.64198214", "0.6305269", "0.6178632", "0.6178632", "0.60528123", "0.60140353", "0.60055673", "0.60015696", "0.599964", "0.5936186", "0.59325445", "0.59271574", "0.5912417", "0.58925...
0.80694133
0
VGG 11layer model (configuration "A")
def wNbF(yzQ0=256, MKlR=256, TFPw=1): EYDd = True if TFPw == 2 or TFPw == 3 else False return s3br(AaDq(_Fei['A']), EYDd, w=yzQ0, h=MKlR, n_classes=TFPw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wNbF(**B2fa):\n C3ST = s3br(AaDq(_Fei['A']), **B2fa)\n return C3ST", "def wNbF():\n return s3br(AaDq(_Fei['A']))", "def CAz4():\n return s3br(AaDq(_Fei['A'], batch_norm=True))", "def ZsU2():\n return s3br(AaDq(_Fei['B']))", "def ZsU2(**B2fa):\n C3ST = s3br(AaDq(_Fei['B']), **B2fa)\n ...
[ "0.8561846", "0.8528357", "0.8266595", "0.8174459", "0.8169166", "0.81288993", "0.7844362", "0.7815675", "0.7798872", "0.7752156", "0.7752156", "0.77488863", "0.77369756", "0.77261806", "0.7652191", "0.76373684", "0.7524913", "0.7484841", "0.74788743", "0.74782026", "0.745866...
0.74696976
20
VGG 11layer model (configuration "A") with batch normalization
def CAz4(yzQ0=256, MKlR=256, TFPw=1): EYDd = True if TFPw == 2 or TFPw == 3 else False return s3br(AaDq(_Fei['A'], batch_norm=True), EYDd, w=yzQ0, h=MKlR, n_classes=TFPw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CAz4():\n return s3br(AaDq(_Fei['A'], batch_norm=True))", "def Cxkw():\n return s3br(AaDq(_Fei['B'], batch_norm=True))", "def CAz4(**B2fa):\n C3ST = s3br(AaDq(_Fei['A'], batch_norm=True), **B2fa)\n return C3ST", "def DTy7():\n a7Lb = ileL()\n a7Lb.add(Zlsf(lambda WKvO: WKvO / 255.0 - 0....
[ "0.7625577", "0.75265867", "0.7345912", "0.7283954", "0.72391117", "0.7218601", "0.72153735", "0.71929127", "0.71593374", "0.70889014", "0.7081512", "0.7056463", "0.70361775", "0.70166016", "0.7016175", "0.7004718", "0.6972465", "0.69601643", "0.69554317", "0.69446725", "0.68...
0.6523117
45
VGG 13layer model (configuration "B")
def ZsU2(yzQ0=256, MKlR=256, TFPw=1): EYDd = True if TFPw == 2 or TFPw == 3 else False return s3br(AaDq(_Fei['B']), EYDd, w=yzQ0, h=MKlR, n_classes=TFPw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cxkw():\n return s3br(AaDq(_Fei['B'], batch_norm=True))", "def ZsU2():\n return s3br(AaDq(_Fei['B']))", "def ZsU2(**B2fa):\n C3ST = s3br(AaDq(_Fei['B']), **B2fa)\n return C3ST", "def Cxkw(**B2fa):\n C3ST = s3br(AaDq(_Fei['B'], batch_norm=True), **B2fa)\n return C3ST", "def ZsU2(jTqs=1...
[ "0.8477868", "0.8465897", "0.8463193", "0.8337648", "0.8061902", "0.80160695", "0.7966153", "0.7870948", "0.78542745", "0.7847819", "0.78449655", "0.7840387", "0.7830252", "0.7802169", "0.77512956", "0.77200717", "0.7678957", "0.76687014", "0.7640897", "0.76353616", "0.761971...
0.7397329
31
VGG 16layer model (configuration "D")
def a7Lb(yzQ0=256, MKlR=256, TFPw=1): EYDd = True if TFPw == 2 or TFPw == 3 else False return s3br(AaDq(_Fei['D']), EYDd, w=yzQ0, h=MKlR, n_classes=TFPw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a7Lb(**B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n return C3ST", "def a7Lb():\n return s3br(AaDq(_Fei['D']))", "def XF5m():\n return s3br(AaDq(_Fei['D'], batch_norm=True))", "def a7Lb(jTqs=10):\n C3ST = s3br(_Fei['vgg16'], jTqs)\n return C3ST", "def a7Lb(jTqs=10):\n return s3br...
[ "0.8482543", "0.8453662", "0.83023703", "0.8240353", "0.81314003", "0.8079578", "0.7999773", "0.7996756", "0.7950659", "0.79101694", "0.79068863", "0.7885296", "0.78825146", "0.78825146", "0.78825146", "0.7827089", "0.7819219", "0.7813056", "0.77699214", "0.7759704", "0.77413...
0.75322944
37
VGG 19layer model (configuration "E")
def AndN(yzQ0=256, MKlR=256, TFPw=1): EYDd = True if TFPw == 2 or TFPw == 3 else False return s3br(AaDq(_Fei['E']), EYDd, w=yzQ0, h=MKlR, n_classes=TFPw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AndN(**B2fa):\n C3ST = s3br(AaDq(_Fei['E']), **B2fa)\n return C3ST", "def AndN():\n return s3br(AaDq(_Fei['E']))", "def bFDE():\n return s3br(AaDq(_Fei['E'], batch_norm=True))", "def bFDE(**B2fa):\n C3ST = s3br(AaDq(_Fei['E'], batch_norm=True), **B2fa)\n return C3ST", "def ZsU2():\n ...
[ "0.84032625", "0.8357504", "0.8207867", "0.80626094", "0.80340594", "0.8002266", "0.79124343", "0.78631854", "0.7821841", "0.77572435", "0.77047306", "0.7658324", "0.7656703", "0.76538116", "0.7615078", "0.7603496", "0.7598256", "0.75641656", "0.7563316", "0.7558401", "0.7551...
0.73539066
36
Creates a database connection to a SQLite database. Raises error when fails to connect.
def ky80(YKHO): w2B8 = None YKHO.print(f'INFO: database workspace is "{YKHO.__parent_dir}"') if Hy7s.path.isfile(YKHO.db_file): YKHO.print(f'INFO: connecting to existing "{YKHO.__db_basename}" database...') else: YKHO.print(f'INFO: file "{YKHO.__db_basename}" does not exists, new databas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dP1Q(NCls):\n try:\n w2B8 = iHv3.connect(NCls)\n return w2B8\n except Exception as e:\n print(tTpl)", "def HagN():\n QKV0 = 'db\\\\pythonsqlite.db'\n w2B8 = None\n try:\n w2B8 = iHv3.connect(QKV0)\n w2B8.text_factory = str\n w2B8.isolation_level = None...
[ "0.8089819", "0.8069937", "0.8045002", "0.79783475", "0.7946293", "0.79395837", "0.79303724", "0.79292125", "0.79257196", "0.79239887", "0.7912516", "0.7903459", "0.789163", "0.7891027", "0.7891027", "0.78796434", "0.7869407", "0.7868663", "0.7851533", "0.7849448", "0.7842995...
0.0
-1
Remove all None items from input_list.
def GNcJ(IqQl: List[Any], Xwve: bool=True) -> h8nf[x1iM]: iku2 = [ZfUD for ZfUD in IqQl if ZfUD is not None] if Xwve and len(iku2) == 0: iku2 = None return iku2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jtav(JTgH):\n return [ZfUD for ZfUD in JTgH if ZfUD is not None]", "def Xbam(IqQl):\n return [ZfUD for ZfUD in IqQl if ZfUD]", "def Bs9L(vC9B):\n return [WKvO for WKvO in vC9B if WKvO is not None]", "def uGtG(vC9B):\n return [tTpl for tTpl in vC9B if tTpl is not None]", "def rmUe(YKHO, m6Me...
[ "0.7686666", "0.7358411", "0.72885007", "0.728261", "0.72753316", "0.7060471", "0.7039369", "0.7013517", "0.68378884", "0.67892337", "0.6750655", "0.673443", "0.6679408", "0.66362226", "0.66308117", "0.6596859", "0.64529926", "0.6428384", "0.64207155", "0.63388836", "0.633126...
0.68834937
8
Return a user given a user (other SQLASession) or a user_id.
def NMoC(YKHO, uJjO=None, CBIr=None): if CBIr: if not isinstance(CBIr, mv1M.User): raise AttributeError('user provided is not a wb-User') return YKHO._dbsession.merge(CBIr) elif uJjO: return YKHO._dbsession.query(mv1M.User).filter(mv1M.User.id == uJjO).one() else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(cuiw, uJjO):\n return cuiw.query(mv1M).filter_by(id=uJjO).first()", "def PM_C():\n return mv1M.quey.filter(mv1M.user_id == uJjO).first", "def TKWP(uJjO):\n return mv1M.query.get(uJjO)", "def KVwN(uJjO):\n return mv1M.query.filter_by(id=uJjO).first()", "def bt8D(uJjO):\n return mv1M....
[ "0.7918156", "0.7838168", "0.7790216", "0.77805907", "0.77542317", "0.77378213", "0.77378213", "0.7725861", "0.7721285", "0.77176654", "0.7700462", "0.7678709", "0.7647434", "0.76357216", "0.7620241", "0.76115835", "0.76071155", "0.76071155", "0.7600029", "0.7587939", "0.7573...
0.71489567
82
Returns tokenized answer spans that better match the annotated answer.
def tWG5(oM5K, lfHv, YAcn, b0j5, AWHy): Ssmk = ' '.join(b0j5.tokenize(AWHy)) for rejw in range(lfHv, YAcn + 1): for g5RM in range(YAcn, rejw - 1, -1): DfjE = ' '.join(oM5K[rejw:g5RM + 1]) if DfjE == Ssmk: return (rejw, g5RM) return (lfHv, YAcn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EbZZ(l5Ny, wJDW):\n jB5X = -1.0\n FOCM = [0, len(l5Ny) - 1]\n for yKcO, gw6l in enumerate(l5Ny):\n if gw6l not in wJDW:\n continue\n for Os4s in range(len(l5Ny) - 1, yKcO - 1, -1):\n yiGU = VKB1(l5Ny[yKcO:Os4s + 1], wJDW)\n if yiGU > jB5X:\n ...
[ "0.7487715", "0.7099843", "0.6939355", "0.6918217", "0.69020367", "0.6887375", "0.68854153", "0.68854153", "0.6880317", "0.68322253", "0.6690234", "0.65346205", "0.6479434", "0.6409766", "0.6320964", "0.6268931", "0.6191757", "0.6177912", "0.6163893", "0.60901326", "0.608793"...
0.69911575
2
Exposes the docopt commandline arguments parser. Return a dictionary of arguments.
def dCXb(): return me7S(__doc__, version=BtDU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GSyo():\n qIxc = me7S(R2xZ, version='Docopt CLI Example 0.1')\n IOwY = {}\n IOwY['positional'] = qIxc['<positional_arg>']\n IOwY['optional'] = qIxc['--optional-arg']\n IOwY['flag'] = qIxc['--flag']\n print(IOwY)", "def dCXb():\n E0cB = HwRy.argv[1:]\n try:\n r2xR = E0cB.index('...
[ "0.78786486", "0.7775805", "0.753919", "0.7344901", "0.67687476", "0.674487", "0.66769147", "0.6668734", "0.66555053", "0.6647377", "0.6646621", "0.66338676", "0.6625209", "0.660935", "0.6591112", "0.6580258", "0.6577794", "0.6564206", "0.65638655", "0.65622425", "0.6554965",...
0.7704202
2
Check if the parentheses are replaced with underscores in the file name
def Syuo(YKHO): Ux0P = 'Kc.dMi-2(Q4443).wig_5.tdf' yGsg = 'Kc.dMi-2_Q4443_.wig_5.tdf' mi2q = Hy7s.path.join('/example/path', Ux0P) CXVf = _rEN.objects.create(datafile=IXDF(YKHO.filename, 'Coffee is delicious!'), source=mi2q, sharename=YKHO.sharename) QZH8 = TDhU('http://example.org/', Ux0P) tcVk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C4T0(YKHO, Ux0P):\n if len(Ux0P) == 68 and '_' not in Ux0P:\n return True\n else:\n return False", "def fUbN(gIsw):\n import string\n pmON = Hy7s.sep.join(gIsw.split(Hy7s.sep)[:-1])\n mWFP = gIsw.split(Hy7s.sep)[-1]\n tk5Y, YBcr = Hy7s.path.splitext(mWFP)\n Csk6 = {KCHu: '_...
[ "0.7420308", "0.6889376", "0.6800909", "0.6746556", "0.6726919", "0.6673598", "0.6587202", "0.65625596", "0.65339977", "0.64460665", "0.6431483", "0.64311725", "0.64042515", "0.6401256", "0.6383452", "0.6378418", "0.63768923", "0.63768923", "0.63479275", "0.63479275", "0.6338...
0.0
-1
Average the two radii for that tiny bit better accuracy.
def r1VO(YKHO) -> float: return (abs(YKHO.start - YKHO.centre) + abs(YKHO.end - YKHO.centre)) / 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQgV(MEia):\n return oyIN.mean([Wskb[-1].mean() for Wskb in MEia])", "def PrRK(MxXY, cWFu):\n if type(MxXY) != int or type(cWFu) != int:\n return 0\n jzdc = FWjY((MxXY + cWFu) / 2)\n return jzdc", "def S8vG(WKvO, LVAh):\n return (WKvO + LVAh) / 2", "def qqgr(WKvO, LVAh):\n return...
[ "0.6736722", "0.64230955", "0.6415069", "0.63840777", "0.636221", "0.6329755", "0.6272226", "0.62385744", "0.623717", "0.6219255", "0.6195314", "0.612197", "0.61160666", "0.60804194", "0.6052241", "0.6030175", "0.5927435", "0.5922739", "0.5909091", "0.58932877", "0.5886297", ...
0.0
-1
Decode the string and then load it as json.
def XWK6(YKHO, nPrm): return qQXR.loads(rtow(nPrm).decode('utf8'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x8I_(YKHO, zEKB):\n return qQXR.loads(zEKB)", "def YLmA(YKHO, vIwR):\n try:\n return qQXR.loads(vIwR)\n except (TypeError, YKHO.JSONDecodeError):\n return vIwR", "def H3LU(zEKB):\n return ITJE.decode(zEKB)", "def Ocrw(KCHu):\n return qQXR.loads(KCHu)", "def _1kr(KCHu):\n ...
[ "0.78088146", "0.768848", "0.7469155", "0.74418694", "0.7419725", "0.7419711", "0.7398048", "0.73958015", "0.7392685", "0.73556346", "0.72953117", "0.71943134", "0.7166265", "0.7148655", "0.7112087", "0.7105309", "0.70960623", "0.70951414", "0.70662785", "0.699314", "0.698554...
0.0
-1
Upload JSON as file and data with one task to project. Decorator pytest.mark.django_db means it will be clean DB setup_project_dialog for this test.
def _frX(NDsJ, Z1yi, xCjU, JBvl, Koa2, _IkP): if Z1yi == 'json_data' and _IkP > 1: trZe.skip('Senseless parameter combination') Mkmy = d6NW(NDsJ, Z1yi, qQXR.dumps(xCjU), 'none', _IkP) print(f'Create json {Z1yi} tasks result:', Mkmy.content) assert Mkmy.status_code == JBvl, f'Upload tasks failed....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qOEd(YKHO):\n fqcm.objects.create(File_Name='123.mp4', project_name='', Task_level='')", "def wRu9(NDsJ, xCjU, JBvl, Koa2, ybHo):\n Z1yi = 'json_file'\n _IkP = 1\n Mkmy = d6NW(NDsJ, Z1yi, qQXR.dumps(xCjU), 'none', _IkP)\n print('Create json tasks with annotations result:', Mkmy.content)\n a...
[ "0.6609774", "0.64316356", "0.6368075", "0.63618875", "0.6313969", "0.6263521", "0.61124176", "0.610845", "0.610845", "0.6080839", "0.606589", "0.59824115", "0.59707516", "0.5930337", "0.59013045", "0.589376", "0.5891934", "0.5890313", "0.58573616", "0.58563423", "0.58364266"...
0.69937503
0
Return a description of this node.
def TykX(a9EH, bFMd): return 'platform {}, python {}'.format(a9EH, '%s.%s.%s-%s-%s' % bFMd[:5])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBZA(YKHO):\n CQzo = 'Tree with ' + str(YKHO.n) + ' nodes and p = ' + str(YKHO.p)\n return CQzo", "def JBZA(YKHO):\n return YKHO.__description", "def JBZA(YKHO):\n return YKHO.__description", "def JBZA(YKHO):\n return YKHO.__description", "def JBZA(YKHO):\n return YKHO.__description",...
[ "0.8244109", "0.8183939", "0.81780535", "0.81780535", "0.81780535", "0.8169116", "0.81422406", "0.81422406", "0.81422406", "0.812785", "0.8100787", "0.8100787", "0.80866474", "0.8066641", "0.8041732", "0.8030345", "0.80170864", "0.80170864", "0.80170864", "0.80170864", "0.801...
0.0
-1
Amount of fiber in grams (g).
def SGVp(YKHO): return YKHO._response.get('fiber')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i5jP(Oa1e):\n return len(Oa1e)", "def n3i1(YKHO):\n return YKHO.dndm * YKHO.n_tot", "def I8va(YKHO):\n return len(YKHO.radii)", "def exwG(YKHO):\n return int(len(YKHO.G) + len(YKHO.E))", "def liH_(YKHO) -> float:\n return YKHO.fs / 2", "def nbe8(YKHO):\n return 5.0", "def J6WG(YKH...
[ "0.69871986", "0.68759567", "0.6631546", "0.64697874", "0.6334454", "0.63137144", "0.62873507", "0.62467164", "0.6219822", "0.6206644", "0.62064403", "0.619198", "0.617841", "0.6159232", "0.61447996", "0.6082169", "0.6073702", "0.60715985", "0.6027392", "0.6026158", "0.600299...
0.0
-1
Name of the product.
def mWFP(YKHO): return YKHO._response.get('name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO):\n return 'Product'", "def n8KJ(YKHO):\n return YKHO._product_name", "def os_e(YKHO):\n if YKHO._productName:\n return YKHO._productName\n else:\n return YKHO.name()", "def mWFP(YKHO) -> str:\n try:\n return YKHO._name\n except AttributeError:\n pa...
[ "0.916342", "0.8973801", "0.8898535", "0.85905904", "0.85870665", "0.85344046", "0.84312093", "0.83903414", "0.83680236", "0.8270644", "0.8157005", "0.81283176", "0.8117119", "0.8117119", "0.8100479", "0.80982935", "0.80395836", "0.80235595", "0.8007729", "0.78554475", "0.769...
0.0
-1
Name of the (book) publisher.
def nu3W(YKHO): return YKHO._response.get('publisher')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D5uW(YKHO):\n if 'publisherName' in YKHO._prop_dict:\n return YKHO._prop_dict['publisherName']\n else:\n return None", "def nu3W(YKHO) -> str:\n return qe4Y.get(YKHO, 'publisher')", "def nu3W(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'publisher')", "def nu3W(YKHO) -> h8nf[str]...
[ "0.86167276", "0.8286116", "0.8062453", "0.8062453", "0.7883454", "0.7883454", "0.7742904", "0.7637929", "0.7637929", "0.7637929", "0.7637929", "0.74550146", "0.7236965", "0.7000366", "0.69908375", "0.69329494", "0.67302704", "0.6699957", "0.65694976", "0.65592813", "0.654035...
0.75253135
11
Sign of a number
def Zihr(FGW3): if FGW3 > 0.0: return 1 elif FGW3 < 0.0: return -1 else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zihr(mLGw):\n if mLGw > 0:\n return 1\n elif mLGw < 0:\n return -1\n else:\n return 0", "def Zihr(FGW3):\n if FGW3 != 0:\n return FGW3 / abs(FGW3)\n else:\n return 0", "def VGrK(WKvO):\n if WKvO > 0:\n return 1\n elif WKvO == 0:\n return...
[ "0.81874365", "0.78364676", "0.7774832", "0.76521635", "0.76430935", "0.75513303", "0.7543391", "0.7514655", "0.7491919", "0.7450499", "0.7448393", "0.7437007", "0.74293435", "0.7319093", "0.7310327", "0.72560984", "0.72488666", "0.7225352", "0.7168709", "0.7123944", "0.71094...
0.742277
13
p'x = cos(angle) (pxox) sin(angle) (pyoy) + ox p'y = sin(angle) (pxox) + cos(angle) (pyoy) + oy
def N0Pp(jNOo, YylR, hgjH=(0, 0)): z2tq = [[YhSR(Y_1E(YylR)) * (BHsk[0] - hgjH[0]) - YUNn(Y_1E(YylR)) * (BHsk[1] - hgjH[1]) + hgjH[0], YUNn(Y_1E(YylR)) * (BHsk[0] - hgjH[0]) + YhSR(Y_1E(YylR)) * (BHsk[1] - hgjH[1]) + hgjH[1]] for BHsk in jNOo] return z2tq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N0Pp(inrG, ZlKq, q5JD, q2Ro, YylR):\n jCyH = inrG + epAf.cos(YylR) * (q5JD - inrG) - epAf.sin(YylR) * (q2Ro - ZlKq)\n PMVZ = inrG + epAf.sin(YylR) * (q5JD - inrG) + epAf.cos(YylR) * (q2Ro - ZlKq)\n return (jCyH, PMVZ)", "def Uj2t(WKvO, LVAh, tjON, hLRM):\n YRSS, rUT8 = hLRM\n Y_1E = -tjON * oy...
[ "0.71013117", "0.70901054", "0.70383865", "0.7010514", "0.6999806", "0.6966247", "0.6961457", "0.69480014", "0.69036084", "0.6880781", "0.6864032", "0.6808666", "0.6796836", "0.6794114", "0.6792652", "0.6791456", "0.6790342", "0.67858726", "0.6785315", "0.6784616", "0.6784616...
0.0
-1
create a logger to stdout
def oTQh(): RKD7 = G9jH.getLogger(__name__) CKon = G9jH.StreamHandler(HwRy.stdout) CKon.setFormatter(G9jH.Formatter('%(message)s')) CKon.setLevel(G9jH.DEBUG) RKD7.addHandler(CKon) RKD7.setLevel(G9jH.DEBUG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wVhU():\n RKD7 = G9jH.getLogger()\n RKD7.setLevel(G9jH.DEBUG)\n Npgh = G9jH.StreamHandler(HwRy.stdout)\n Npgh.setLevel(G9jH.DEBUG)\n uaPq = G9jH.Formatter('[%(asctime)s] [%(process)d] [%(levelname)s] %(message)s', '%Y-%m-%d %H:%M:%S %z')\n Npgh.setFormatter(uaPq)\n RKD7.addHandler(Npgh)\n ...
[ "0.7595152", "0.7520557", "0.7431402", "0.7303015", "0.72633415", "0.7237041", "0.72353196", "0.7175372", "0.71720505", "0.7160004", "0.7158924", "0.7158671", "0.70896864", "0.7085111", "0.70758384", "0.70459247", "0.7019877", "0.6977781", "0.6976476", "0.69738895", "0.692350...
0.7920701
0
Define the JSON Schema type for this field.
def s56A(YKHO): return {'type': 'number', 'format': 'integer'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _hiX(YKHO, YEnM, Jyyj, ViTO) -> laHg.Dict[str, laHg.Any]:\n ukzC = {'title': Jyyj.attribute or Jyyj.name or ''}\n for H5ew, wEf2 in kG9J[ViTO].items():\n ukzC[H5ew] = wEf2\n if Jyyj.dump_only:\n ukzC['readOnly'] = True\n if Jyyj.default is not v3uw and (not callable(Jyyj.default)):\n ...
[ "0.68970996", "0.6832241", "0.67470306", "0.6688337", "0.66164994", "0.6598227", "0.657131", "0.6531549", "0.6448662", "0.6448662", "0.6414815", "0.63882357", "0.63730544", "0.63651395", "0.63605446", "0.634486", "0.634486", "0.634486", "0.634486", "0.634486", "0.634486", "...
0.68251836
2
Return one of 32 evenly spaced byte values. This provides random colors that are fairly distinctive.
def zrbS(): return tuKI.randrange(0, 256, 16)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pph3():\n Mkmy = Oa1e = Fg_i = 0\n while Mkmy < 128 and Fg_i < 128 and (Oa1e < 128):\n Mkmy = int(tuKI.random() * 256)\n Oa1e = int(tuKI.random() * 256)\n Fg_i = int(tuKI.random() * 256)\n return (Mkmy, Oa1e, Fg_i)", "def pph3():\n return int(hex(ajWY(0, 16581375)), 0)", "d...
[ "0.76636463", "0.7633974", "0.7563339", "0.7563339", "0.74070996", "0.7380141", "0.73109424", "0.728572", "0.7233548", "0.7224641", "0.713405", "0.7124237", "0.7068347", "0.7057483", "0.7042463", "0.70119053", "0.6991539", "0.6974685", "0.69621235", "0.6943518", "0.6924884", ...
0.850923
0
Return a random color
def pph3(): Z5Q9 = zrbS() jlxe = zrbS() pPPK = zrbS() return (Z5Q9, jlxe, pPPK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pph3():\n Mkmy = ajWY(0, 255)\n Oa1e = ajWY(0, 255)\n Fg_i = ajWY(0, 255)\n return (Mkmy, Oa1e, Fg_i)", "def Q1j8():\n return ajWY(0, oIn1 - 1)", "def Q5jr():\n Mkmy = tuKI.randint(0, 255)\n Oa1e = tuKI.randint(0, 255)\n Fg_i = tuKI.randint(0, 255)\n return (Mkmy, Oa1e, Fg_i)", ...
[ "0.8936783", "0.892396", "0.8897846", "0.8845553", "0.87922066", "0.87304646", "0.8687672", "0.86848545", "0.865009", "0.86276644", "0.86191684", "0.8580175", "0.85497004", "0.85313624", "0.8509312", "0.84795636", "0.84782255", "0.8452218", "0.84506726", "0.8387713", "0.83775...
0.8613708
11
setup volume and mount volume calling GlusterBaseClass setUpClass
def Baw8(Emd4): Y8hn.setUpClass.im_func(Emd4) Oa1e.log.info('Starting to Setup and Mount Volume %s', Emd4.volname) U5bT = Emd4.setup_volume_and_mount_volume(mounts=Emd4.mounts) if not U5bT: raise z1P8('Failed to Setup_Volume and Mount_Volume %s' % Emd4.volname) Oa1e.log.info('Successful in S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Baw8(Emd4):\n Y8hn.setUpClass.im_func(Emd4)\n Oa1e.log.info('Starting volume setup process %s', Emd4.volname)\n U5bT = Emd4.setup_volume()\n if not U5bT:\n raise z1P8('Failed to setup and start volume %s' % Emd4.volname)\n Oa1e.log.info('Successfully created and started the volume: %s', E...
[ "0.811023", "0.7787921", "0.75442946", "0.73443896", "0.7250085", "0.7212678", "0.69380283", "0.6918784", "0.68564683", "0.6849712", "0.68442255", "0.6752539", "0.6721001", "0.6713876", "0.6705111", "0.67001075", "0.66983205", "0.6678859", "0.66639924", "0.6644836", "0.663530...
0.81316155
0
Test unsuccessful creation of a new model.
def Z9Dq(YKHO, YhFT, P4t4): pB3N = YhFT.copy() del pB3N['availability'] pB3N['id'] = 'e93b5902-c15e-4b47-8e01-a93df6ea7211' pB3N['project_id'] = '4a068a1b-3646-4acf-937d-15563853e388' QePW = P4t4.post_json(YKHO.base_path, pB3N, headers=YKHO.headers, status=403) assert QePW.status_code == 403 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZKuv(YKHO):\n YKHO.data['model'] = 'notamodel'\n YKHO.assertInvalid()", "def pqf1(YKHO):\n YKHO.assertNotEqual(YKHO._get_from_db(YKHO.model), None)", "def hgnd(YKHO):\n t7cw(gieF())(**YKHO.options)\n YKHO.assertEqual(YKHO.model.new_record, True)", "def nvgZ(YKHO):\n with YKHO.assertRais...
[ "0.772364", "0.7657923", "0.74481106", "0.73576176", "0.7324983", "0.7210847", "0.7018072", "0.7011041", "0.6927535", "0.690307", "0.68497777", "0.68388665", "0.68388665", "0.6787563", "0.6785786", "0.67789984", "0.67775565", "0.67676336", "0.6742215", "0.67349094", "0.670502...
0.6418951
86
Override the build_covariance method to read or generate the observed covariance
def Ioae(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ioae(YKHO):\n raise RuntimeError('Internal cosmosis error in SingleValueGaussianLikelihood')", "def bibf(YKHO):\n return YKHO.covariance", "def N0iN(YKHO):\n return YKHO.covariance", "def H5Dv(YKHO):\n RAs8 = jth9.deepcopy(YKHO.est_cov)\n RAs8 = oyIN.ravel(RAs8)\n PFC2 = _vFj()\n for...
[ "0.7911177", "0.7648499", "0.73759997", "0.70455354", "0.70182633", "0.70182633", "0.69325554", "0.6855794", "0.68409675", "0.6728609", "0.6666065", "0.66623414", "0.6628449", "0.66171795", "0.6613996", "0.6605762", "0.6584633", "0.65613264", "0.6547589", "0.65222174", "0.650...
0.8406404
0
Get the currently set email.
def RC0X(YKHO): return YKHO._email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RC0X(YKHO):\n return YKHO.email", "def RC0X(YKHO):\n return YKHO.email", "def RC0X(YKHO):\n return YKHO.email", "def NNlL(YKHO):\n return YKHO.__email", "def NNlL(YKHO):\n return YKHO.__email", "def RC0X(YKHO):\n return YKHO.email", "def RC0X(YKHO):\n if YKHO.email != '':\n ...
[ "0.84321755", "0.84321755", "0.84321755", "0.840786", "0.840786", "0.84054554", "0.8375089", "0.83191675", "0.8302252", "0.8296186", "0.82116014", "0.81950885", "0.8155864", "0.81156945", "0.81156945", "0.81156945", "0.81156945", "0.81156945", "0.81156945", "0.81156945", "0.8...
0.8520408
0
KullbackLeibler divergence D(P || Q) for discrete distributions
def bISY(XP5J, vexM): XP5J = oyIN.asarray(XP5J, dtype=oyIN.float) vexM = oyIN.asarray(vexM, dtype=oyIN.float) return oyIN.sum(oyIN.where(vexM > 1e-10, XP5J * oyIN.log(XP5J / vexM), 0)) * 20.0 / len(XP5J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dzAH(XP5J: np.ndarray, vexM: np.ndarray, SGf8: float=0.0) -> oyIN.ndarray:\n xFCy = oyIN.sum(XP5J * (oyIN.log(XP5J + SGf8) - oyIN.log(vexM + SGf8)), axis=1)\n return xFCy", "def dzAH(XP5J, vexM):\n return XP5J * RKD7(XP5J / vexM) + (1.0 - XP5J) * RKD7((1.0 - XP5J) / (1.0 - vexM))", "def PlVk(V6IE,...
[ "0.6974649", "0.6965577", "0.6862965", "0.67789036", "0.67278045", "0.6712727", "0.6703811", "0.6701677", "0.6701591", "0.66968185", "0.6649156", "0.663611", "0.6627308", "0.6611933", "0.6594801", "0.65688115", "0.6564932", "0.6483693", "0.6456402", "0.6388821", "0.6309784", ...
0.59497523
51
Returns the first_name plus the last_name, with a space in between.
def xpqj(YKHO): eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name) return eHMM.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM", "def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()", "def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')", "def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl...
[ "0.82872856", "0.8179012", "0.81130326", "0.80760396", "0.8034134", "0.8032392", "0.8030516", "0.80072623", "0.8006718", "0.8005418", "0.8000916", "0.7995176", "0.79901665", "0.79793483", "0.79790914", "0.79603624", "0.7952844", "0.7944558", "0.7944558", "0.79419315", "0.7941...
0.77470917
73
Choose between logging to a temporary file and to `sys.stdout`. The default is to log to a file.
def IMzU(wEf2: bool): global _redirect_output hTxZ = wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RKD7(*qIxc, **B2fa):\n if not Ke5A:\n return\n B2fa['file'] = HwRy.stderr\n print(*qIxc, **B2fa)", "def LRwC():\n mDpL = 'adjust_out.txt'\n Sivo('Redirecting output to %s' % mDpL)\n KFG2 = Hy7s.open(mDpL, Hy7s.O_RDWR | Hy7s.O_CREAT | Hy7s.O_TRUNC, 420)\n if not Hy7s.environ.get('T...
[ "0.6577606", "0.6397948", "0.6366785", "0.6236561", "0.61295706", "0.6077617", "0.60514754", "0.5978774", "0.5936215", "0.5933005", "0.5892917", "0.5831901", "0.58073336", "0.57866514", "0.5772025", "0.5759587", "0.57535934", "0.575304", "0.5745043", "0.5707246", "0.56819665"...
0.0
-1
Test handling bad arguments to Signal.
def Z4nx(): with trZe.raises(TypeError): H8kl(1) with trZe.raises(TypeError): H8kl(a=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJ6X(YKHO):\n YKHO.assertRaises(TypeError, YKHO.signalfd, -1, [object()])", "def Ro_e(YKHO):\n YKHO.assertRaises(TypeError, YKHO.signalfd, -1, object())", "def K00q(YKHO):\n try:\n nmxw.sigprocmask(nmxw.SIG_BLOCK, [object()])\n except TypeError:\n type, BWXx, wVCK = HwRy.exc_info(...
[ "0.7507732", "0.7472548", "0.7398384", "0.71873784", "0.7177706", "0.7086329", "0.7029937", "0.6936772", "0.6882725", "0.6872954", "0.68697625", "0.6691839", "0.66331536", "0.66047657", "0.6595381", "0.6590821", "0.65837216", "0.6559077", "0.6556333", "0.6555018", "0.6549855"...
0.75498724
0
split the list a into chuncks of maximum size n
def rz8T(jzdc, exwG): for G1Hx in range(0, len(jzdc), exwG): yield jzdc[G1Hx:G1Hx + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kzv7(ybN4, exwG):\n return list(eHxA(ybN4, exwG))", "def eibr(jzdc, exwG):\n G1Hx, r8hN = divmod(len(jzdc), exwG)\n return (jzdc[YRbF * G1Hx + min(YRbF, r8hN):(YRbF + 1) * G1Hx + min(YRbF + 1, r8hN)] for YRbF in range(exwG))", "def sehz(jzdc, exwG):\n G1Hx, r8hN = divmod(len(jzdc), exwG)\n t...
[ "0.7650983", "0.75319743", "0.74018615", "0.7384316", "0.7374198", "0.734306", "0.73159826", "0.7293472", "0.7293439", "0.7276422", "0.72710913", "0.7265912", "0.72515017", "0.72300935", "0.7226299", "0.7224226", "0.72016525", "0.7176309", "0.7176309", "0.71462846", "0.714052...
0.6942274
44
Filters weather data by start and end date.
def P6IV(nPrm, kepv, KhBf, EkOE): YdD0 = (kepv, KhBf) ljfJ, hg96 = [vuvg.to_timestamp(vuvg.lit(KCHu), 'MM/dd/yyyy') for KCHu in YdD0] T1c4 = nPrm.where((nPrm.date_time > ljfJ) & (nPrm.date_time < hg96)) T1c4 = T1c4.where(T1c4.end_station_id.isin(EkOE) & T1c4.start_station_id.isin(EkOE)) return T1c4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(YKHO, lGFN: int=None, XV6Z: int=None) -> None:\n if lGFN:\n Pxi6 = qcWV.fromtimestamp(lGFN).replace(minute=0, second=0)\n YKHO.data['daily'] = list(filter(lambda IYen: qcWV.fromtimestamp(IYen.get('dt')) >= Pxi6, YKHO.daily_data))\n if XV6Z:\n _W95 = qcWV.fromtimestamp(XV6Z).re...
[ "0.71785814", "0.7166617", "0.716313", "0.70345193", "0.69964767", "0.672089", "0.6664968", "0.66497606", "0.660409", "0.6494256", "0.6415992", "0.6415836", "0.6362389", "0.63553065", "0.6349862", "0.6321161", "0.63197184", "0.62917584", "0.62621", "0.6249711", "0.62318027", ...
0.7458096
0
Render a response to a C{GET} request to C{recent/about}
def DzOU(YKHO, QePW): Wb1A = (yield YKHO.facadeClient.getRecentAboutActivity(YKHO.session, YKHO.about)) TBsA = J_1z('application/json', Wb1A) QePW.setHeader('Content-length', str(len(TBsA))) QePW.setHeader('Content-type', 'application/json') QePW.setResponseCode(Xqgu.OK) BPmf(TBsA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n if QePW.method == 'GET':\n return TvZl('about.html')", "def vsuQ():\n bo34.info('User visited the about page.')\n return TvZl('about.html')", "def LOKq(QePW):\n return _1tc(QePW, 'about.html')", "def vsuQ(QePW):\n return SGJU('about.html')", "def NMoC(YKHO, *qIxc, **B2fa...
[ "0.7211169", "0.71029603", "0.70416474", "0.70364344", "0.7033003", "0.69159895", "0.69159895", "0.6900787", "0.6895055", "0.687803", "0.6871778", "0.6833613", "0.6780105", "0.6742084", "0.6742084", "0.6742084", "0.6742084", "0.6742084", "0.6742084", "0.6742084", "0.6742084",...
0.7139912
1
Render a response to a C{GET} request to C{recent/users}
def DzOU(YKHO, QePW): Wb1A = (yield YKHO.facadeClient.getRecentUserActivity(YKHO.session, YKHO.username)) TBsA = J_1z('application/json', Wb1A) QePW.setHeader('Content-length', str(len(TBsA))) QePW.setHeader('Content-type', 'application/json') QePW.setResponseCode(Xqgu.OK) BPmf(TBsA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DzOU(YKHO, QePW):\n e2h5 = nqEK.findUsage('recent', 'GET', GXnG)\n nqEK.checkRequest(e2h5, QePW)\n xDcj = QePW.args['query'][0]\n Wb1A = (yield YKHO.facadeClient.getRecentUserActivityForQuery(YKHO.session, xDcj))\n TBsA = J_1z('application/json', Wb1A)\n QePW.setHeader('Content-length', str(l...
[ "0.68518776", "0.67920417", "0.6774868", "0.668887", "0.65173113", "0.65083545", "0.6502732", "0.64635575", "0.6412424", "0.6374787", "0.6355649", "0.6352038", "0.6342962", "0.63190407", "0.6302006", "0.62871486", "0.62806374", "0.627828", "0.6268796", "0.6267262", "0.6259872...
0.70421743
0
Return a set of top level keys in this configuration.
def sjXb(YKHO): return set(YKHO.data.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjXb(YKHO):\n KCHu = set()\n for GPtr in YKHO.__configs:\n KCHu |= GPtr.keys()\n return KCHu", "def wqEJ(YKHO):\n return YKHO._get_all_prefixed_keys_from_nested_maps(YKHO, '')", "def sjXb(YKHO):\n return [G1Hx for G1Hx in YKHO._config.keys()]", "def sjXb(YKHO):\n return YKHO._con...
[ "0.77967757", "0.74991566", "0.74531186", "0.7432414", "0.73902214", "0.738416", "0.73726696", "0.7161214", "0.71002656", "0.710009", "0.7080365", "0.7076184", "0.70706415", "0.7064217", "0.7059008", "0.705225", "0.7026513", "0.7012937", "0.7002756", "0.7002756", "0.7002756",...
0.66056633
100
Return a merged set of top level keys from all configurations.
def sjXb(YKHO): KCHu = set() for GPtr in YKHO.__configs: KCHu |= GPtr.keys() return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tqDg(YKHO):\n Aofo = j_2z()\n for H5ew in bMlU:\n BWXx = YKHO.tree.get(H5ew)\n if BWXx:\n if isinstance(BWXx, NV8D):\n Aofo |= j_2z([YRbF.get_root_key() for YRbF in BWXx])\n else:\n Aofo |= j_2z([YRbF.get_root_key() for YRbF in BWXx.keys()...
[ "0.7092299", "0.7065913", "0.6418395", "0.6416664", "0.6357746", "0.6333296", "0.6311344", "0.6270808", "0.6212512", "0.61873645", "0.61828667", "0.61561793", "0.61487204", "0.61314195", "0.6102944", "0.6083946", "0.60555536", "0.60420847", "0.6038283", "0.6038283", "0.602416...
0.7470344
0
Creates a rectangular patch for the ground.
def TM82(YKHO): lnRy = [[(YKHO.h_min, YKHO.v_min), (YKHO.h_max, YKHO.v_min), (YKHO.h_max, 0), (YKHO.h_min, 0)]] Oa1e = PsOR(lnRy, facecolor=YKHO.ground_colour, edgecolor='none') return Oa1e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TM82():\n FQNo.setBlocks(127, ipJG, 127, -128, -64, -128, 1)\n FQNo.setBlocks(127, 63, 127, -128, ipJG, -128, 0)", "def s3bP(YKHO):\n Po4F = AKVf.Rectangle([YKHO.xc - YKHO.width / 2, YKHO.zc - YKHO.height / 2], YKHO.width, YKHO.height, edgecolor='red', facecolor='None')\n return Po4F", "def s3b...
[ "0.66973966", "0.6642409", "0.60469854", "0.6024613", "0.5942323", "0.5889769", "0.5883099", "0.58692527", "0.58692527", "0.57988316", "0.5795897", "0.5649343", "0.56404173", "0.56320983", "0.56069124", "0.56052196", "0.55974865", "0.55687374", "0.55687374", "0.5542451", "0.5...
0.69758594
0
Return the platforms that are using the specified board.
def W1vu(iBIi: Board) -> fHNa[zR2c]: global _MATCHERS i3kb = set() for a9EH, D9Ga in SPI8.items(): if iBIi in D9Ga.board_arguments: i3kb.add(a9EH) return i3kb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3kb(YKHO):\n return [WKvO.platform for WKvO in YKHO.target]", "def i3kb(YKHO):\n return YKHO.rpc.call(OMwV.ModulePlatforms)", "def pHhO(NPt0: int) -> list:\n cuiw = ouvA()\n i3kb = cuiw.query(zR2c).filter(zR2c.workspace_id == NPt0).all()\n cuiw.commit()\n return list(map(lambda WKvO: WKv...
[ "0.7393775", "0.6777472", "0.6745444", "0.6699744", "0.6689762", "0.6686639", "0.66427976", "0.66370875", "0.66090655", "0.65886545", "0.6230571", "0.62023354", "0.6194738", "0.6100485", "0.6060651", "0.6024103", "0.58952177", "0.58519775", "0.57598144", "0.57543415", "0.5731...
0.8250686
0
Plot the episode length and average rewards per episode
def kj9G(YKHO): LZpg = QrM1.figure(figsize=(20, 5)) oqIm = [YRbF for YRbF in YKHO.episode_length if YRbF != 0] xobV = rLdf.DataFrame(oqIm).rolling(100, min_periods=100) u6h8 = xobV.mean() UVuV = xobV.std() QrM1.plot(u6h8, color='red') QrM1.fill_between(x=UVuV.index, y1=(u6h8 - UVuV)[0], y2=(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj9G(YKHO):\n LZpg = QrM1.figure(figsize=(20, 5))\n oqIm = [YRbF for YRbF in YKHO.episode_len if YRbF != 0]\n xobV = rLdf.DataFrame(oqIm).rolling(100, min_periods=100)\n u6h8 = xobV.mean()\n UVuV = xobV.std()\n QrM1.plot(u6h8, color='red')\n QrM1.fill_between(x=UVuV.index, y1=(u6h8 - UVuV)...
[ "0.78177154", "0.71332085", "0.708265", "0.66081303", "0.6604311", "0.65405715", "0.64840436", "0.6431788", "0.63924044", "0.63654304", "0.63611203", "0.6233021", "0.62180334", "0.6193832", "0.6193832", "0.61904067", "0.61455554", "0.6125552", "0.6074656", "0.6048619", "0.603...
0.77868164
1
g(a,b,n) Returns the domain and range of the gaussian function stored as a pair of numpy arrays (x,g)
def Oa1e(jzdc, Fg_i, exwG): WKvO = oyIN.linspace(jzdc, Fg_i, exwG) def liMP(WKvO): return 1 / oyIN.sqrt(2 * oyIN.pi) * oyIN.exp(-WKvO ** 2 / 2) Oa1e = oyIN.array(liMP(WKvO)) return (WKvO, Oa1e)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oa1e(jzdc, Fg_i, exwG):\n\n def liMP(WKvO):\n \"\"\"Returns the Gaussian function dependent on the input float\"\"\"\n Z9rn = 1 / oyIN.sqrt(2 * oyIN.pi)\n liMP = Z9rn * oyIN.exp(-WKvO ** 2 / 2)\n return liMP\n a1PO = oyIN.linspace(jzdc, Fg_i, exwG)\n i912 = oyIN.vectorize(l...
[ "0.7931086", "0.76031506", "0.69396687", "0.690822", "0.68256444", "0.68032944", "0.68019825", "0.679314", "0.6792351", "0.6756766", "0.66749537", "0.664968", "0.6643147", "0.66331327", "0.6633024", "0.6621277", "0.6594282", "0.6547694", "0.6531592", "0.6529554", "0.65236247"...
0.83819497
0
utility for defining N evenly spaced colors across a color map
def fRt4(MYQr, exwG): iMGt = QrM1.get_cmap(MYQr) JnI8 = iMGt.N if exwG == 1: return [iMGt(int(0.5 * JnI8))] else: return [iMGt(int(G1Hx * JnI8 / (exwG - 1))) for G1Hx in range(exwG)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbde(ywwl, iMGt=None):\n import matplotlib.cm as FeRD\n vg0C = FeRD.ScalarMappable(cmap=iMGt)\n return vg0C.to_rgba(range(ywwl))", "def ZqJ4(nCHX, ryKj, exwG=256):\n iMGt = oyIN.zeros([exwG, 3])\n for YRbF in range(3):\n iMGt[:, YRbF] = oyIN.linspace(nCHX[YRbF], ryKj[YRbF], exwG)\n r...
[ "0.73647046", "0.73280686", "0.7237357", "0.72204256", "0.7195098", "0.7177255", "0.70744836", "0.7040898", "0.7040898", "0.70186704", "0.7004929", "0.698167", "0.698043", "0.6967752", "0.6958265", "0.69376385", "0.69097275", "0.6908995", "0.68963903", "0.68905365", "0.689053...
0.718182
5
Find closest depth. From vector of depths finds target depth, that is closest to desired depth, Also returns an index for the desired depth.
def IRqO(fz7m, rb7a): h_0b = abs(abs(fz7m) - abs(rb7a)).argmin() zyNx = fz7m[h_0b] bo34.debug('target_depth: %s', zyNx) return (zyNx, h_0b)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BysG(rb7a, m1NQ):\n return oyIN.abs(rb7a - m1NQ).argmin()", "def s4ms(k0lF, pan_):\n or8S = k0lF.searchsorted(pan_)\n or8S = oyIN.clip(or8S, 1, len(k0lF) - 1)\n LFlW = k0lF[or8S - 1]\n _tIi = k0lF[or8S]\n or8S -= pan_ - LFlW < _tIi - pan_\n return or8S", "def s4ms(P8oC, pan_):\n or8...
[ "0.7679551", "0.6436704", "0.6345185", "0.6282378", "0.6272728", "0.6251024", "0.62170076", "0.6214627", "0.6212057", "0.61778396", "0.61535037", "0.6112546", "0.61042964", "0.6072315", "0.6055907", "0.59641516", "0.5947672", "0.5930482", "0.5927175", "0.5902092", "0.5872065"...
0.7717706
0
Flattens a given tensor such that the channel axis is first.
def MKPt(YKHO, vhpA): Nq1b = vhpA.size(1) iQfg = (1, 0) + tuple(range(2, vhpA.dim())) NPTA = vhpA.permute(iQfg) return NPTA.contiguous().view(Nq1b, -1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(vhpA):\n Nq1b = vhpA.size(1)\n iQfg = (1, 0) + tuple(range(2, vhpA.dim()))\n NPTA = vhpA.permute(iQfg)\n return NPTA.contiguous().view(Nq1b, -1)", "def PWgb(vhpA):\n Nq1b = vhpA.size(1)\n iQfg = (1, 0) + tuple(range(2, vhpA.dim()))\n NPTA = vhpA.permute(iQfg)\n return NPTA.contig...
[ "0.800353", "0.800353", "0.800353", "0.800353", "0.8003502", "0.7951485", "0.78511745", "0.722179", "0.70215076", "0.69011575", "0.6888314", "0.672648", "0.6681228", "0.6602645", "0.65368813", "0.6509865", "0.6460445", "0.64334035", "0.63795364", "0.6367539", "0.63569695", ...
0.7919042
6
B = (PMT/R) x (1 (1/(1+R)^N)
def uoST(YKHO): C0cx = YKHO.calculate() LwQY = YKHO.term * 12 - YKHO.get_paid_months() p8e7 = YKHO.monthly_payment A3Vt = ZjSO(YKHO.interest_rate / 100 / 12) ywwl = LwQY wMl7 = p8e7 / A3Vt * (1 - 1 / (1 + A3Vt) ** ywwl) return YKHO.rental_property.estimated_value - wMl7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AGWm(kTwQ, Kt_s):\n return 10 ** 20 * jPeA.common.B(kTwQ, Kt_s)", "def gObJ(tjUW=loKj):\n return tjUW ** 2.0 / (8 * mM0K)", "def Fg_i(Kt_s):\n tjUW = oyIN.zeros(6)\n tjUW[0] = EcVT[19] / Kt_s ** 2 + EcVT[20] / Kt_s ** 3\n tjUW[1] = EcVT[21] / Kt_s ** 2 + EcVT[22] / Kt_s ** 4\n tjUW[2] = E...
[ "0.6997253", "0.69738126", "0.6804341", "0.6737402", "0.669841", "0.65764207", "0.6558609", "0.6481358", "0.6437022", "0.6426286", "0.6419122", "0.63876915", "0.63483495", "0.63482976", "0.6337246", "0.63265663", "0.6325261", "0.6310324", "0.6300329", "0.6251641", "0.6246434"...
0.0
-1
Load the model in preparation for one or more prediction calls.
def uyMl(YKHO, z_es): if YKHO.inf_learner is None: YKHO.print_options() yVGs = YKHO.backend_opts.model_uri uqvc = fcTc(yVGs, z_es) YKHO.inf_learner = GItM(TLI7(uqvc), aPr_(uqvc)) YKHO.device = ht2j.device('cuda:0' if ht2j.cuda.is_available() else 'cpu')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7RH(YKHO):\n for nPrm in YKHO.datasets:\n for C3ST in YKHO.models:\n C3ST.init_engine(nPrm)\n C3ST.load(model_dir=YKHO.model_dir)\n C3ST.predict(nPrm.test[0])", "def DZeY():\n C3ST = YrZb()\n C3ST = x2M3(C3ST)\n return C3ST", "def tyeH(YKHO):\n YKHO._...
[ "0.78820133", "0.7499491", "0.74343055", "0.7230004", "0.7198489", "0.7180625", "0.71747583", "0.71729326", "0.7155136", "0.71446705", "0.7107335", "0.7041722", "0.702436", "0.7009131", "0.70048743", "0.7002805", "0.7002805", "0.6999546", "0.699102", "0.6968845", "0.6962149",...
0.0
-1
wraps creation of new flask obj, loads it with configs using app.config, connects it with DB, returns it
def LUif(Zu8l): from app.models import Bucketlist, User, BucketActivities P4t4 = BscO(__name__, instance_relative_config=True) P4t4.config.from_object(dLQw[Zu8l]) P4t4.config.from_pyfile('config.py') P4t4.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False NCls.init_app(P4t4) def tPR3(eHNT): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif(suDX=PSrQ) -> L2w0:\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(suDX)\n P4t4.register_blueprint(vI3f)\n GGmw.init_app(P4t4, cors_allowed_origins='*')\n eoas.init_app(P4t4)\n obVI.init_app(eoas)\n return P4t4", "def LUif(GPtr):\n P4t4 = L2w0(__name__)\n mPbS = Hy7s.path.j...
[ "0.7153213", "0.71017134", "0.709732", "0.70667714", "0.69941247", "0.69829845", "0.69746226", "0.6946018", "0.6922997", "0.6912622", "0.69104004", "0.6902364", "0.6867305", "0.6860592", "0.6855059", "0.6852121", "0.68472445", "0.68230206", "0.6819885", "0.68055236", "0.68043...
0.0
-1
Creates a unique sequence of length `len_`
def Q6uT(YKHO, aAh7): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QBh3(u54L):\n return ''.join(tuKI.choices(WHRn, k=u54L))", "def IK2L(YKHO, u54L, Wr3E):\n YKHO.sequence = [tuKI.randint(1, Wr3E) for exwG in range(u54L)]\n return YKHO.sequence", "def KdFI(u54L):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for hcXw in rang...
[ "0.74998873", "0.7106606", "0.66618824", "0.6649101", "0.66021216", "0.65560764", "0.6509304", "0.6503266", "0.6503057", "0.64719105", "0.64482665", "0.643832", "0.64172757", "0.64000887", "0.63940156", "0.638575", "0.63850623", "0.63741326", "0.63401407", "0.6314354", "0.628...
0.65855575
5
(int, kwargs) > None Set the game state information to be sent to the AI thread with the given index. This method should be called for each AI, on every iteration of the game loop in run_game.
def rfxI(YKHO, h4C4, **Ov5A): for K5fJ in Ov5A: YKHO.gameStates[h4C4][K5fJ] = Ov5A[K5fJ]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hdXp(YKHO, HFkI: int=None, DdAx: dict=None) -> None:\n if HFkI is not None:\n YKHO.current_index = HFkI\n elif DdAx is not None:\n YKHO.delayed = DdAx", "def ylEx(YKHO, d6pt):\n YKHO.tileIndex = d6pt", "def fhE2(YKHO, d6pt):\n YKHO.abstract_obj.set_current_index(d6pt)", "def hdX...
[ "0.6242956", "0.60580295", "0.5779172", "0.5722485", "0.5722485", "0.56498903", "0.5641553", "0.56269836", "0.5589261", "0.5579268", "0.55759203", "0.55076927", "0.5503148", "0.5484272", "0.548272", "0.5479726", "0.54792064", "0.54654425", "0.5462124", "0.5453629", "0.5443609...
0.71634316
0
Takes a relative path as input and returns the absolute path of the same.
def hgmy(XNWQ): sWmO = Hy7s.getcwd() Yb80 = sWmO + XNWQ RKD7.debug('absolute path : %s', Yb80) return Yb80
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgmy(YKHO, t_yv):\n return pmON.abspath(t_yv)", "def Yb80(t_yv, oEge=sEAN['cwd']):\n return Hy7s.path.abspath(Hy7s.path.join(oEge, t_yv))", "def BpbB(t_yv):\n TLI7 = Hy7s.path.dirname(xAKo)\n Ux0P = Hy7s.path.join(TLI7, t_yv)\n return Ux0P", "def hgmy(Emd4, UIhB, t_yv):\n KTXh = pmON.di...
[ "0.85137224", "0.8457781", "0.83786464", "0.8260748", "0.8100694", "0.8031827", "0.79969925", "0.7974646", "0.79495853", "0.7949207", "0.7794017", "0.778605", "0.7758621", "0.77019227", "0.7688149", "0.7634162", "0.76172143", "0.7608638", "0.75616676", "0.7556041", "0.7541018...
0.78617
10
Calculates Mean Squared Error
def hkHB(A7hP=[], wdyK=[], exwG=1.0): E2V2 = sum([(pdhd - LTX_) ** 2 for pdhd, LTX_ in zip(A7hP, wdyK)]) return float(E2V2 / exwG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SDab(YKHO):\n r8hN = YKHO.y_actual.shape[0]\n hkHB = YKHO.sum_of_squares_of_residuals()\n return hkHB / r8hN", "def Z2Se(LVAh, JBMS):\n return (LVAh - JBMS).pow(2).sum()", "def Wk1P(YKHO) -> oyIN.float:\n try:\n return SDab(YKHO.u_exact, YKHO.u_numerical)\n except ValueError:\n ...
[ "0.7854396", "0.77508444", "0.76471174", "0.7588208", "0.75576484", "0.7524078", "0.751034", "0.7503858", "0.7429839", "0.7399993", "0.73443377", "0.7327451", "0.73261684", "0.7274853", "0.7272635", "0.72544044", "0.72524804", "0.7215907", "0.7200626", "0.71916133", "0.718676...
0.0
-1
Calculates Root Mean Squared Error
def iAxY(A7hP=[], wdyK=[], exwG=1.0): return PZyS(hkHB(A7hP, wdyK, exwG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())", "def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))", "def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))", "def DF3U(Y8eF, gjpc):\n return PZyS(SDab(Y8eF, gjpc))", "def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(oyIN....
[ "0.7990545", "0.76370704", "0.76363444", "0.7622829", "0.7394021", "0.7394021", "0.7388388", "0.7376146", "0.7337829", "0.7327282", "0.731647", "0.72911435", "0.7268467", "0.7119959", "0.7117565", "0.70924306", "0.7091928", "0.7001687", "0.69926065", "0.6946423", "0.68660337"...
0.62315553
80
Return a string representation of the object.
def wHJl(YKHO): a1PO = "{0.__class__.__name__}('{0.name}', {0.send_function.__qualname__})" return a1PO.format(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO) -> str:\n return lSJJ(YKHO)", "def zAg0(YKHO):\n return YKHO.object_repr", "def yLCI(YKHO):\n return YKHO.__str__()", "def zAg0(YKHO):\n return str(YKHO.obj)", "def yLCI(YKHO):\n return YKHO.__str__()", "def yLCI(YKHO):\n return str(YKHO)", "def yLCI(YKHO):\n return ...
[ "0.84559155", "0.8414828", "0.822777", "0.82250136", "0.8217563", "0.813535", "0.813535", "0.8127276", "0.81255686", "0.8119905", "0.81179637", "0.8101933", "0.8101933", "0.80709076", "0.80709076", "0.80391836", "0.80391836", "0.80391836", "0.8036725", "0.8034329", "0.8034329...
0.0
-1
API repr (JSON format) for entry.
def DlXK(YKHO): U34r = super(G9jH.entries.ProtobufEntry, YKHO).to_api_repr() U34r['protoPayload'] = YKHO.payload return U34r
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WjCg(YKHO, bTKY):\n fxLD = list()\n for H5ew, BWXx in bTKY.items():\n fxLD.append(f' {H5ew}: {BWXx}')\n return '\\n'.join(fxLD)", "def wHJl(YKHO):\n Csk6 = dict(YKHO)\n try:\n return qQXR.dumps(Csk6, indent=4)\n except Exception:\n return repr(Csk6)", "def wHJl(YKHO...
[ "0.6971829", "0.6824144", "0.66872156", "0.66870165", "0.6656469", "0.6637609", "0.6635131", "0.6566354", "0.6556012", "0.65366447", "0.65366447", "0.64760846", "0.64760846", "0.64760846", "0.64760846", "0.64636856", "0.64597267", "0.6449809", "0.63970166", "0.63310677", "0.6...
0.6774886
2
Name of the current input source.
def JZXy(YKHO): return YKHO._currentplaylist
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KoHv(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'source_name')", "def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_name')", "def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_name')", "def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y...
[ "0.88115805", "0.8352229", "0.8352229", "0.8352229", "0.82161313", "0.7646011", "0.7583743", "0.75818515", "0.75818515", "0.75818515", "0.7559096", "0.7555666", "0.7330288", "0.73110974", "0.7224072", "0.7217536", "0.72103053", "0.72103053", "0.7177751", "0.7177751", "0.71777...
0.0
-1
Return the list of available input sources.
def oOdw(YKHO): return YKHO._playlists
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oOdw(YKHO) -> x1iM[str]:\n if YKHO.mysources:\n return YKHO.mysources\n return YKHO._get_list('SI')", "def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')", "def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')", "def w1o0(YKHO):...
[ "0.76563215", "0.7656124", "0.7656124", "0.760102", "0.75234765", "0.7509566", "0.7446627", "0.7446627", "0.7388097", "0.7334769", "0.7322012", "0.73014027", "0.7288966", "0.7250002", "0.7233379", "0.7116907", "0.70987314", "0.70987314", "0.7093133", "0.708579", "0.70621824",...
0.65016574
65
Return the image url of current playing media.
def jlYN(YKHO): if YKHO._stream_image is None: return 'http://localhost:8180/static/icons/tile-win-310x150.png' return YKHO._stream_image
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jlYN(YKHO) -> str | None:\n if YKHO._currently_playing.get('item') is None or not YKHO._currently_playing['item']['album']['images']:\n return None\n return jL8T(YKHO._currently_playing['item']['album'])", "def jlYN(YKHO):\n if YKHO._source == 'AirPlay':\n return None\n return YKHO....
[ "0.8542474", "0.8397737", "0.8312899", "0.8167437", "0.8015665", "0.79685324", "0.7855088", "0.7648375", "0.75581837", "0.7550332", "0.74213207", "0.72419554", "0.72258514", "0.7213086", "0.7164402", "0.7146122", "0.7141634", "0.7108393", "0.7083663", "0.70833397", "0.7083339...
0.79329574
6
Return the title of current playing media.
def _0LT(YKHO): return YKHO._media_title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0LT(YKHO):\n return YKHO._player_dev.current_title", "def _0LT(YKHO) -> str | None:\n ZfUD = YKHO._currently_playing.get('item') or {}\n return ZfUD.get('name')", "def _0LT(YKHO):\n return YKHO.device.get_media_title()", "def sUzl(YKHO):\n return YKHO.title", "def _0LT(YKHO):\n retur...
[ "0.9114112", "0.9107664", "0.8724124", "0.87076867", "0.8554235", "0.8504418", "0.8455462", "0.84183717", "0.83919305", "0.8354455", "0.8352863", "0.83233356", "0.83104783", "0.82571775", "0.82231617", "0.8222676", "0.81771183", "0.8098112", "0.8097234", "0.8074074", "0.80343...
0.8579251
4
Return the specific state attributes of the player.
def R1i3(YKHO): hkS8 = {'device_ip': YKHO._device_ip} return hkS8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._state_attrs", "def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT", "def upgy(YKHO) -> cuzp[str, ImMB]:\n nPrm = super().state_attributes\n for hkS8 in [iMDp, iBza, GfQP, igLb...
[ "0.7399678", "0.7257425", "0.72506684", "0.72504616", "0.72089124", "0.7165875", "0.7120992", "0.7117754", "0.7109673", "0.7052501", "0.7052501", "0.70524335", "0.7047839", "0.7047839", "0.7038416", "0.7038416", "0.7038416", "0.7029905", "0.70163435", "0.69517595", "0.6943228...
0.0
-1
When was the position of the current playing media valid. Returns value from homeassistant.util.dt.utcnow().
def saDb(YKHO): return YKHO._media_status_received_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def saDb(YKHO) -> JRYC.datetime | None:\n if not YKHO._currently_playing:\n return None\n return d2O_(YKHO._currently_playing['timestamp'] / 1000)", "def saDb(YKHO):\n return YKHO._player_dev.media_position_updated_at", "def saDb(YKHO):\n return YKHO._media_position_updated_at", "def b8dk(...
[ "0.80555576", "0.7349835", "0.71687883", "0.70014536", "0.6991577", "0.68316466", "0.66068804", "0.6588224", "0.6587592", "0.6522058", "0.6491646", "0.6470978", "0.6445021", "0.64184356", "0.6395407", "0.6382011", "0.6286114", "0.62743604", "0.6261792", "0.6244537", "0.623498...
0.7617849
1
Send the media player the command for playing a media.
def YUWu(YKHO, tGci, OuuU, **B2fa): if tGci == 'ais_content_info': YRVf = qQXR.loads(OuuU) NEgJ.G_CURR_MEDIA_CONTENT = YRVf YKHO._media_content_id = YRVf['media_content_id'] YKHO._media_status_received_time = GhSD.utcnow() if 'media_position_ms' in YRVf: YKHO._med...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eIGz(YKHO):\n YKHO._send_command({SQuc: nSJF})", "def eIGz(YKHO):\n YKHO.send_media_passthrough_cmd(u_nz.CMD_MEDIA_PLAY, YKHO.sec_ad)", "def eIGz(YKHO, oUZx):\n YKHO.playid(oUZx)", "def AUDn(YKHO):\n YKHO.hass.services.call('ais_ai_service', 'publish_command_to_frame', {'key': 'pauseAudio', '...
[ "0.7641913", "0.7572961", "0.7552649", "0.7464692", "0.73707736", "0.7329764", "0.72524154", "0.7243078", "0.7232767", "0.716106", "0.7156525", "0.7124011", "0.7106739", "0.70710254", "0.70691967", "0.70061743", "0.69879234", "0.6971352", "0.6958515", "0.69099194", "0.6903888...
0.6441452
36
Get BaseQuery for all overdue loans of this user.
def o1Sq(YKHO): return TL_D.overdue_loan_query().filter(TL_D.user == YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HsvB(YKHO):\n return YKHO.overdue_loan_query().all()", "def Ct53(YKHO):\n return TL_D.query.filter(TL_D.user_id == YKHO.id, TL_D.status == TL_D.Status.approved)", "def qirl(YKHO):\n return YKHO.loan_query().all()", "def Rod8(YKHO, PObu):\n N1p7 = YKHO.conn.cursor()\n xDcj = f'select * from...
[ "0.72405434", "0.6733077", "0.67144454", "0.6054506", "0.5918365", "0.5914417", "0.56523925", "0.56163466", "0.56078506", "0.5458416", "0.5434687", "0.5360865", "0.49629498", "0.49505916", "0.49203423", "0.49030894", "0.48381072", "0.48352465", "0.48294288", "0.48289376", "0....
0.79965407
0
Get current overdue associated loans.
def HsvB(YKHO): return YKHO.overdue_loan_query().all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o1Sq(YKHO):\n return TL_D.overdue_loan_query().filter(TL_D.user == YKHO)", "def A3Zc(YKHO):\n return YKHO._overdue", "def reaV(YKHO):\n return YKHO.overdue_loan_query().count()", "def Jxsu(YKHO):\n DumB = []\n for ZfUD in YKHO.get_borrow_items():\n if ZfUD.get_due_date() < _c1T.toda...
[ "0.7626369", "0.66690874", "0.65247935", "0.6228717", "0.6129151", "0.609103", "0.59290236", "0.57406944", "0.561112", "0.5509364", "0.54935205", "0.54687995", "0.54583114", "0.54215765", "0.5361835", "0.53267366", "0.5320549", "0.5310876", "0.5296742", "0.5234046", "0.522863...
0.7900484
0
Get the amount of borrowed document copies.
def HtjV(YKHO): return YKHO.loan_query().count()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EIrV(YKHO) -> int:\n return YKHO._item.get('num_copies')", "def iOab(YKHO):\n Amyp = YKHO.query('sum(copied)')\n try:\n return eval(Amyp)\n except Exception:\n return 0", "def EIrV(YKHO, Elif):\n return len(YKHO.copies(Elif))", "def w7ki(YKHO):\n return YKHO.storage.refere...
[ "0.7888517", "0.74900645", "0.6830544", "0.643148", "0.6329563", "0.6262961", "0.6078355", "0.60699546", "0.5961781", "0.5942916", "0.59352475", "0.5912153", "0.5909741", "0.5896446", "0.5882021", "0.588014", "0.5877065", "0.58758557", "0.58673674", "0.58588636", "0.58548844"...
0.8348203
0
Function to calculate the mass from a mz value.
def E4sp(xruD: float, WJkG: int) -> float: if WJkG < 0: raise NotImplementedError('Negative Charges not implemented.') bMbF = xruD * WJkG - WJkG * h22q return bMbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b5E1(YOq2, Yu3k=1):\n from pyteomics import mass\n vqEY = []\n for _pUq in YOq2:\n xruD = mass.calculate_mass(formula=_pUq, charge=Yu3k)\n vqEY.append(xruD)\n return vqEY", "def azOQ(YKHO):\n return YKHO.mass_in / YKHO.F_mass_in", "def sAbn(YKHO, epBp):\n OCOs = YKHO.oml + Y...
[ "0.6783369", "0.6661428", "0.6653005", "0.66150177", "0.65699995", "0.65438193", "0.6536123", "0.65332955", "0.65115863", "0.6505044", "0.6480402", "0.64799744", "0.6433063", "0.64313585", "0.6414163", "0.6385497", "0.63803947", "0.63374126", "0.6329656", "0.63163555", "0.631...
0.82147616
0
largest possible phi at given radius and height
def EAYq(YKHO, A3Vt, epBp): if isinstance(A3Vt, XTiz.ndarray): if not isinstance(epBp, XTiz.ndarray): epBp = epBp + XTiz.zeros_like(A3Vt) return XTiz.array([YKHO._deltaphi_max_rad(x6aZ, Ud7_) for x6aZ, Ud7_ in zip(A3Vt, epBp)]) elif isinstance(epBp, XTiz.ndarray): if not isin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wTkI(YKHO) -> None:\n mawX = XC5k.minAreaRect(YKHO.largest_contour)\n WKvO = mawX[1][0]\n LVAh = mawX[1][1]\n DOkm = max(WKvO, LVAh)\n pydH = min(WKvO, LVAh)\n YKHO.phi = pydH / DOkm", "def rVnq(epBp):\n return 1.0 / epAf.sqrt(2.0 * O05v) * epAf.exp(-0.5 * epBp * epBp)", "def wTkI(kcH9...
[ "0.69654346", "0.66285765", "0.6608128", "0.65920913", "0.65153426", "0.6503406", "0.6473016", "0.6469398", "0.63758355", "0.63744676", "0.63624156", "0.63527566", "0.62638384", "0.6253555", "0.62381047", "0.6199187", "0.6172633", "0.6163994", "0.6141126", "0.6138251", "0.611...
0.61038274
21
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86416775", "0.8510436", "0.7853881", "0.7744098", "0.77114", "0.7697539", "0.7659996", "0.7637475", "0.76213473", "0.76074654", "0.7606779", "0.7606779", "0.7606779", "0.7598864", "0.7585116", "0.7582008", "0.75707483", "0.7567779", "0.7538827", "0.7538827", "0.7527744", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Return license key for MaxMind DB Retrieve license key for usage of MaxMindDb If it is not present print warning
def yXgY(aHkb): return TuoA.get_license_key(aHkb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X4fu(khjS):\n return khjS.getoption('license')", "def license(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('license')", "def GkVn(YKHO):\n geh0 = BDwY.get_license('015020')\n YKHO.assertEqual(type(geh0['results']), dict)\n YKHO.assertTrue('license_number' in geh0['results'].keys())...
[ "0.6432134", "0.6355075", "0.6320405", "0.62874454", "0.6279313", "0.62269187", "0.6171353", "0.6141749", "0.6129685", "0.61288303", "0.6119793", "0.6112617", "0.6112617", "0.6112617", "0.6028765", "0.59439206", "0.5903622", "0.5871394", "0.58708507", "0.5856667", "0.5852699"...
0.7782165
0
Returns the last plan completed.
def AkYI(): PJWX = BJsk.get_verbose() if PJWX: print('get_last_completed_plan') for XWXe in reversed(sorted(list(vCsh()))): qUyJ = fT9b.load(XWXe) if PJWX: print('plan:', qUyJ.name) print('plan.completed:', qUyJ.is_complete()) if qUyJ.is_complete(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IoaI(YKHO, yUes):\n HBeN = YKHO.stagelists[yUes]\n if HBeN != None:\n yKow, NIpL = HBeN[-1]\n return yKow.get_timing(NIpL)\n else:\n return (-1, -1)", "def g9mP(YKHO):\n if YKHO._completed:\n return YKHO._completed\n else:\n return None", "def E5db(YKHO):\n...
[ "0.6944871", "0.6900675", "0.6864284", "0.6800262", "0.6798104", "0.6521862", "0.6509142", "0.6483744", "0.6483744", "0.6483744", "0.647792", "0.64592826", "0.63851094", "0.63851094", "0.63851094", "0.63020253", "0.62978643", "0.6284071", "0.6284071", "0.6284071", "0.6284071"...
0.8637058
0
Returns true if there are plans for this role that have not been executed.
def TJzg(): PJWX = BJsk.get_verbose() XNrn = AkYI() if PJWX: print('last_completed plan:', XNrn) XVAW = fZre() if PJWX: print('last plan:', XVAW) print('eq:', XVAW == XNrn) return XVAW != XNrn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def agVN(YKHO) -> bool:\n return YKHO.role.permissions == YKHO.permissions_none", "def STMr(YKHO, qUyJ=None):\n qUyJ = qUyJ or YKHO._regular_plan\n wzkt = YKHO._clock.time()\n HX9S = list(qUyJ.running)\n CJ8h = list(qUyJ.runnable_at(wzkt))\n XRhM = list(qUyJ.waiting_at(wzkt))\n RKD7.debug('r...
[ "0.69087964", "0.65824383", "0.63768125", "0.61218584", "0.6114171", "0.60262126", "0.600491", "0.5980181", "0.59657496", "0.5953076", "0.59461564", "0.5926552", "0.5926061", "0.5921749", "0.5919448", "0.5887237", "0.588602", "0.5879333", "0.58734477", "0.58479095", "0.584436...
0.6646244
1
Retrieves a snapshot of the current code state.
def HJpA(LmAn=None, mWFP=None, IWqn=0, Mnhy=None): if mWFP == rWTL: mWFP = '0' * sEAN.plan_digits XVAW = KTyC() Mnhy = Mnhy or [] Mnhy = [bGrB.upper() for bGrB in Mnhy] nPrm = {} XQb3 = XVAW and XVAW.copy() or {} for maxk, JfyU in BJsk.manifest_recorder.iteritems(): maxk = ma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__stat...
[ "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "0.7016056", "...
0.0
-1
Prep output directories, move static files, and copy post category directory tree.
def EkNG(YKHO): if not Hy7s.path.exists(YKHO.settings.output): Hy7s.mkdir(YKHO.settings.output) try: RDuA.copytree(YKHO.settings.static, Hy7s.path.join(YKHO.settings.output, YKHO.settings.static)) except OSError as e: if tTpl.errno == d1hN.EEXIST and Hy7s.path.isdir(YKHO.settings.sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EkNG(YKHO):\n BrK6 = YKHO.params['target_dir']\n if not Hy7s.path.isdir(BrK6):\n Hy7s.makedirs(BrK6)\n mlch = Hy7s.path.join(YKHO.params['target_dir'], 'imgs')\n if not Hy7s.path.isdir(mlch):\n Hy7s.makedirs(mlch)\n R5in = Hy7s.path.join(BrK6, 'static')\n if Ke5A or not Hy7s.pat...
[ "0.74817073", "0.6521195", "0.64321065", "0.6423103", "0.6397475", "0.6372151", "0.6333459", "0.6246824", "0.6185798", "0.615218", "0.6131356", "0.6106348", "0.60983163", "0.60603654", "0.60123116", "0.6002823", "0.599191", "0.599191", "0.59509444", "0.59386414", "0.59227467"...
0.8438803
0
Get the auth string. If the token is expired and auto refresh enabled, a new token will be fetched
def xxQp(YKHO): if not YKHO._token: YKHO.execute() if not YKHO._token.expired: return 'Bearer {}'.format(YKHO._token.access_token) if YKHO.auto_refresh: YKHO.execute() return 'Bearer {}'.format(YKHO._token.access_token) raise RxDj()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eOtH(YKHO) -> str:\n if YKHO._expired_creds:\n try:\n YKHO._refresh_creds()\n except WOE1:\n YKHO._get_token()\n return YKHO.config_data['accessToken']", "def rxBR(YKHO) -> str | None:\n return YKHO._auth_token", "def eOtH(YKHO):\n if YKHO._auth_token is None...
[ "0.73268044", "0.72508943", "0.71612996", "0.71339405", "0.7087073", "0.6974587", "0.69590384", "0.6954045", "0.692733", "0.69158864", "0.689035", "0.6881275", "0.68807894", "0.68628925", "0.68480843", "0.6847192", "0.6837661", "0.6835986", "0.6835986", "0.68067867", "0.68052...
0.8597314
0
Gets the reference_label of this TransactionInfo.
def yR0S(YKHO) -> str: return YKHO._reference_label
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OSJW(YKHO):\n return str(YKHO._ref)", "def aC0l(YKHO) -> str:\n return YKHO._reference", "def aC0l(YKHO) -> str:\n return YKHO._reference", "def aC0l(YKHO) -> str:\n return YKHO._reference", "def DeTJ(YKHO):\n return YKHO._label", "def DeTJ(YKHO):\n return YKHO._label", "def Jpfi(...
[ "0.6806812", "0.6805162", "0.6805162", "0.6805162", "0.6793896", "0.6793896", "0.6774121", "0.6760686", "0.6737137", "0.6737137", "0.6732904", "0.6720759", "0.66558427", "0.66558427", "0.66511476", "0.6647699", "0.66473573", "0.66460127", "0.66460127", "0.66460127", "0.664601...
0.8244054
0
Gets the merchant_id of this TransactionInfo.
def aCFu(YKHO) -> str: return YKHO._merchant_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aCFu(YKHO):\n return YKHO._merchant_id", "def VkEM(YKHO):\n return YKHO._transaction_id", "def vkFH(YKHO):\n return YKHO._transaction_id", "def vkFH(YKHO):\n return YKHO._transaction_id", "def kPBw(YKHO):\n return YKHO._invoice_merchant_reference", "def aCFu(YKHO, aCFu: str):\n YKHO...
[ "0.8756613", "0.66829956", "0.66234154", "0.66117877", "0.6543015", "0.6534709", "0.6245227", "0.6245227", "0.6193257", "0.61854994", "0.61127114", "0.61043537", "0.6005988", "0.59004307", "0.58830047", "0.5725993", "0.5712781", "0.5709747", "0.57060856", "0.5697047", "0.5697...
0.85105747
1
Sets the merchant_id of this TransactionInfo.
def aCFu(YKHO, aCFu: str): YKHO._merchant_id = aCFu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aCFu(YKHO, aCFu):\n YKHO._merchant_id = aCFu", "def aCFu(YKHO, aCFu):\n YKHO._merchant_id = aCFu", "def aCFu(YKHO, aCFu):\n if aCFu is None:\n raise ValueError('Invalid value for `merchant_id`, must not be `None`')\n YKHO._merchant_id = aCFu", "def Il2k(YKHO, Il2k):\n YKHO._merchant...
[ "0.8624067", "0.8624067", "0.7940075", "0.75192815", "0.7424261", "0.73501307", "0.7229425", "0.7096332", "0.70312446", "0.66473013", "0.6633068", "0.65893996", "0.65893996", "0.65893996", "0.65893996", "0.63623726", "0.6224921", "0.6079734", "0.60122937", "0.59970766", "0.59...
0.86051804
2
Gets the terminal_id of this TransactionInfo.
def wei4(YKHO) -> str: return YKHO._terminal_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adF0(YKHO):\n if YKHO.terminal_exists():\n return None if YKHO.terminal_is_ignored() else YKHO.terminal_token\n else:\n raise QY5A", "def VkEM(YKHO):\n return YKHO._transaction_id", "def vkFH(YKHO):\n return YKHO._transaction_id", "def vkFH(YKHO):\n return YKHO._transaction_i...
[ "0.6548054", "0.6490003", "0.6481701", "0.6447302", "0.64104843", "0.6347126", "0.6347126", "0.62181914", "0.62181914", "0.6161659", "0.6123555", "0.60564", "0.5991647", "0.5991647", "0.59648097", "0.5944976", "0.59126735", "0.59015125", "0.5886524", "0.5864362", "0.58046156"...
0.83138937
0
Gets the authorization_code of this TransactionInfo.
def dZ03(YKHO) -> str: return YKHO._authorization_code
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t3GZ(YKHO):\n return YKHO._auth_code", "def t3GZ(YKHO, QePW):\n raise NotImplementedError()", "def fjd3(YKHO):\n return YKHO.__authorityCode", "def B9G4(YKHO, **B2fa):\n return YKHO.get_transaction_id(txn_type=YKHO.AUTH, **B2fa)", "def M_Of(YKHO) -> str:\n return YKHO._authentication_cod...
[ "0.8236667", "0.7101687", "0.70313543", "0.7009921", "0.69545025", "0.672713", "0.65683573", "0.64568704", "0.64250934", "0.64216805", "0.64216805", "0.62323576", "0.6186135", "0.6186135", "0.6183676", "0.6183676", "0.6183676", "0.6183676", "0.6183676", "0.6183676", "0.618367...
0.8113716
1
Sets the authorization_code of this TransactionInfo.
def dZ03(YKHO, dZ03: str): YKHO._authorization_code = dZ03
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qPTI(YKHO, Wxnj):\n YKHO._auth_code = Wxnj", "def M_Of(YKHO, M_Of: str):\n YKHO._authentication_code = M_Of", "def NVxE(YKHO, NVxE):\n YKHO._transaction_status_code = NVxE", "def swDI(YKHO, swDI):\n YKHO._authorization_info = swDI", "def F6w_(YKHO, dZ03):\n H5ew = YKHO._generate_cache_ke...
[ "0.7999047", "0.6678834", "0.6678129", "0.65421224", "0.6442132", "0.6387303", "0.6385767", "0.63123715", "0.6274167", "0.6235523", "0.62352973", "0.6159214", "0.6140165", "0.6138891", "0.6138891", "0.6138891", "0.6138891", "0.6138891", "0.6138891", "0.6138891", "0.6138891", ...
0.8199581
0
Gets the authentication_code of this TransactionInfo.
def M_Of(YKHO) -> str: return YKHO._authentication_code
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t3GZ(YKHO):\n return YKHO._auth_code", "def dZ03(YKHO) -> str:\n return YKHO._authorization_code", "def zYnI(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'auth_code')", "def fjd3(YKHO):\n return YKHO.__authorityCode", "def eWMI():\n pass", "def UeZQ(YKHO):\n if YKHO._pin ...
[ "0.76069254", "0.7043195", "0.69127065", "0.6831647", "0.6621471", "0.6608011", "0.6471316", "0.63791525", "0.63351375", "0.6314484", "0.63010967", "0.6299246", "0.6266203", "0.6266203", "0.62375396", "0.62375396", "0.6227941", "0.6227941", "0.6215789", "0.62113166", "0.61491...
0.8411025
0
Sets the authentication_code of this TransactionInfo.
def M_Of(YKHO, M_Of: str): YKHO._authentication_code = M_Of
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qPTI(YKHO, Wxnj):\n YKHO._auth_code = Wxnj", "def dZ03(YKHO, dZ03: str):\n YKHO._authorization_code = dZ03", "def M_Of(YKHO) -> str:\n return YKHO._authentication_code", "def Nd23(YKHO, Nd23):\n YKHO._authentication_value = Nd23", "def xGo7(YKHO, Wxnj):\n YKHO.code_hash = vT87(Wxnj)", ...
[ "0.74874073", "0.6892202", "0.66241324", "0.65277886", "0.6462794", "0.6429682", "0.633659", "0.6333911", "0.63172734", "0.6104545", "0.6094662", "0.6023747", "0.6023747", "0.59961903", "0.59654135", "0.59654135", "0.59654135", "0.59654135", "0.59654135", "0.59654135", "0.596...
0.83947676
0
Gets the host_nsu of this TransactionInfo.
def HUXj(YKHO) -> str: return YKHO._host_nsu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n7ym(YKHO):\n return YKHO._host_address", "def KcEq(YKHO):\n return YKHO._host", "def KcEq(YKHO):\n return YKHO._host", "def M2_F(YKHO):\n return YKHO._host", "def ok8c(YKHO):\n return YKHO.server.get_hostname()", "def KcEq(YKHO):\n try:\n GbKX = YKHO.authority_info()\n ex...
[ "0.6236643", "0.62172896", "0.62172896", "0.621283", "0.6194789", "0.6193959", "0.6193093", "0.6193093", "0.6193093", "0.6193093", "0.6193093", "0.6193093", "0.6193093", "0.6193093", "0.6193093", "0.6193093", "0.61789566", "0.61735743", "0.61735743", "0.6162177", "0.61578465"...
0.80638576
0
Sets the host_nsu of this TransactionInfo.
def HUXj(YKHO, HUXj: str): YKHO._host_nsu = HUXj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HUXj(YKHO) -> str:\n return YKHO._host_nsu", "def KcEq(YKHO, KcEq):\n try:\n YKHO._host = KcEq\n except Exception as e:\n raise tTpl", "def YlIs(YKHO, YlIs: str):\n YKHO._terminal_nsu = YlIs", "def KcEq(YKHO, BWXx):\n YKHO._host = BWXx", "def KcEq(YKHO, KcEq):\n YKHO._ho...
[ "0.64327514", "0.56539786", "0.56324136", "0.56299245", "0.56143427", "0.56143427", "0.56143427", "0.56143427", "0.56143427", "0.56143427", "0.55699104", "0.5566266", "0.55033195", "0.55033195", "0.5474548", "0.5474548", "0.5441554", "0.5434947", "0.5434947", "0.52966845", "0...
0.8426216
0
Gets the terminal_nsu of this TransactionInfo.
def YlIs(YKHO) -> str: return YKHO._terminal_nsu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YlIs(YKHO, YlIs: str):\n YKHO._terminal_nsu = YlIs", "def X7sP(YKHO):\n return YKHO._getInfo('/UserTerminalInfo', 'userTerminalInfo')", "def wei4(YKHO) -> str:\n return YKHO._terminal_id", "def aXA4(YKHO):\n return YKHO._Terminal", "def aXA4(YKHO):\n return YKHO._Terminal", "def MZJ8(Y...
[ "0.67739826", "0.62687474", "0.61081755", "0.60999614", "0.60999614", "0.6043162", "0.5882137", "0.5741932", "0.5741932", "0.5708139", "0.56837434", "0.5664032", "0.56483924", "0.56483924", "0.56360286", "0.563091", "0.5603626", "0.55351543", "0.5534879", "0.55269855", "0.552...
0.8431216
0