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
Gets a collection of `InputExample`s for the train set.
def rNg5(YKHO, h_xa): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vGUt(YKHO, PU1l):\n return PU1l", "def rNg5(YKHO):\n raise NotImplementedError()", "def rNg5(YKHO, eZ_W):\n raise NotImplementedError()", "def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UX...
[ "0.73499966", "0.7173421", "0.7126833", "0.65602446", "0.64204013", "0.64052176", "0.63422555", "0.6290186", "0.6282746", "0.625262", "0.62499267", "0.6233708", "0.62225735", "0.62225735", "0.6205607", "0.6205607", "0.6205607", "0.6205607", "0.6205607", "0.6205607", "0.620560...
0.62466323
20
Gets a collection of `InputExample`s for the dev set.
def JdXm(YKHO, h_xa): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JdXm(YKHO, eZ_W):\n raise NotImplementedError()", "def vGUt(YKHO, PU1l):\n return PU1l", "def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)", "def JdXm(YKHO):\n raise NotImplementedError()", "def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):...
[ "0.680984", "0.6586721", "0.6557458", "0.65529203", "0.64259696", "0.6381688", "0.625446", "0.6191522", "0.61163276", "0.6092532", "0.60542095", "0.60498804", "0.5990785", "0.5926057", "0.5921287", "0.59205073", "0.5918335", "0.5916085", "0.5916085", "0.5916085", "0.5916085",...
0.59952354
18
Gets a collection of `InputExample`s for the dev set.
def syTc(YKHO, h_xa): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JdXm(YKHO, eZ_W):\n raise NotImplementedError()", "def vGUt(YKHO, PU1l):\n return PU1l", "def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)", "def JdXm(YKHO):\n raise NotImplementedError()", "def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):...
[ "0.68112403", "0.6588688", "0.655683", "0.6552607", "0.64272827", "0.63816285", "0.6255956", "0.61930686", "0.61160946", "0.6094262", "0.6054992", "0.6051947", "0.5994604", "0.5994604", "0.5994604", "0.5994604", "0.5994604", "0.5994604", "0.5994604", "0.5994604", "0.5994604",...
0.0
-1
Return a random color as c4d.Vector
def MP1f(): def mCpO(): """ Return a random value between 0.0 and 1.0 """ return ajWY(0, 255) / 256.0 return lNLu(mCpO(), mCpO(), mCpO())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yTL5():\n Mkmy = tuKI(0.0, 1.0)\n Oa1e = tuKI(0.0, 1.0)\n Fg_i = tuKI(0.0, 1.0)\n return he6J(Mkmy, Oa1e, Fg_i)", "def MP1f():\n\n def mCpO():\n \"\"\" Return a random value between 0.0 and 1.0 \"\"\"\n return ajWY(0, 255) / 256.0\n return lNLu(mCpO(), mCpO(), mCpO())", "def...
[ "0.83026356", "0.8255743", "0.7439888", "0.7107803", "0.70549285", "0.7053493", "0.70376676", "0.7015442", "0.69945", "0.69569045", "0.6873321", "0.6841347", "0.6841197", "0.6791249", "0.6758189", "0.67249537", "0.6690875", "0.65709573", "0.65383506", "0.65089667", "0.6360487...
0.81792206
2
This function reads the text file and returns it as a string.
def Nwr9(qaEx: str) -> str: try: with open(file=qaEx, mode='r', encoding='utf8') as eHNT: return eHNT.read() except FileNotFoundError: raise FileNotFoundError(f'No text file was found at location {qaEx}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qKJz(gIsw):\n eHNT = open(gIsw, 'r')\n l5Ny = eHNT.read()\n return l5Ny", "def Np1T(YNHG: str):\n hGN5: str = ''\n with open(YNHG, mode='r', encoding='utf-8') as nUeQ:\n print('file being read: ' + YNHG + '\\n')\n hGN5 = nUeQ.read()\n return hGN5", "def uEFG(uRP3):\n yKwe...
[ "0.828257", "0.8251012", "0.8209594", "0.8208901", "0.8119222", "0.8033638", "0.8028715", "0.8016483", "0.7973762", "0.7953504", "0.7953002", "0.7890296", "0.786301", "0.7840378", "0.78059036", "0.77927315", "0.77896625", "0.7770816", "0.7729257", "0.7713118", "0.7699153", ...
0.7464258
35
Transform a raw result into a result object.
def OsWw(YKHO, cmPJ: dict) -> NJHK: Aofo = NJHK(uri=cmPJ.get('uri'), pref_label=cmPJ.get('prefLabel'), alt_label=cmPJ.get('altLabel'), hidden_label=cmPJ.get('hiddenLabel'), definition=cmPJ.get('definition')) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yp4f(YKHO, Mkmy):\n return YKHO._return_type._make(Mkmy)", "def Thcv(Emd4, Aofo: JSON) -> nC76:\n ...", "def PA9F(YKHO, Aofo: Any) -> None:\n raise NotImplementedError()", "def v5qE(Emd4, Aofo: JSON) -> nC76:\n ...", "def E1ZX(YKHO, xDcj: Any, nPrm: Any=None):\n assert isinstance(xDcj, s...
[ "0.73860013", "0.6576357", "0.64620686", "0.6302396", "0.62909645", "0.6290217", "0.6190322", "0.61591643", "0.61179495", "0.5933553", "0.58802587", "0.5862519", "0.5812644", "0.58100003", "0.5792762", "0.5790362", "0.5717754", "0.5670863", "0.56573755", "0.5607943", "0.55663...
0.52212816
50
Set words as JSKOS concept scheme. If the words are not yet a JSKOS concept scheme, they are transformed into one.
def JtCe(YKHO, V22M: Union[list, str, _ConceptScheme], rQow) -> pC5Z: if type(V22M) is list: ht58 = iu3p.words2scheme(words=V22M, language=rQow) elif type(V22M) is pC5Z: ht58 = V22M else: ht58 = iu3p.load_file(V22M) print(f'{V22M} loaded successfully, {len(ht58.concepts)} words d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tFlQ(YKHO):\n g68O = []\n for GIN8 in YKHO.words:\n zmME = ZbWC.sub('\\\\b(istj|istp|isfj|isfp|infj|infp|intj|intp|estp|estj|esfp|esfj|enfp|enfj|entp|entj)', '', GIN8)\n if zmME != '':\n g68O.append(zmME)\n YKHO.words = g68O\n return YKHO", "def AnVs(YKHO, GIN8, dhx_=None...
[ "0.5699493", "0.564014", "0.560305", "0.54181963", "0.53393966", "0.53358144", "0.5321427", "0.53053606", "0.52888644", "0.5262378", "0.5233003", "0.5190377", "0.51499665", "0.51386184", "0.51318175", "0.5058953", "0.50381505", "0.5018874", "0.5000191", "0.49968395", "0.49815...
0.5830779
0
Return the best vector of a vector. The best vector has the best score for each search word.
def aGKL(Emd4, iArr: _LevenshteinVector, BYBV: int) -> h8nf[hyaK]: XLEQ = iArr.get_vector() if XLEQ is None: return None else: K3US = set((p1kx.comparandum.get_pref_label() for p1kx in XLEQ)) Qer4 = [] for GIN8 in K3US: cCrA = [p1kx for p1kx in XLEQ if p1kx.comparandum.get_pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BD0M(Ty9i, F_On, u_JH=0.0):\n POsX = u_JH\n udb1 = None\n for yzQ0 in F_On:\n Csk6 = esB7(Ty9i, yzQ0)\n if Csk6 > POsX:\n POsX = Csk6\n udb1 = yzQ0\n return udb1", "def KRJa(dixj, Ynj4, pan_):\n zXjM = -1\n RcmB = 10 ** 10\n with DMju() as cb_Q:\n ...
[ "0.6942959", "0.6580758", "0.6432847", "0.6397034", "0.6383685", "0.6131921", "0.59491545", "0.5905546", "0.5899086", "0.5862022", "0.5852791", "0.5837495", "0.5833848", "0.5821429", "0.57959634", "0.5783312", "0.5774312", "0.57693887", "0.5760407", "0.5734421", "0.57002914",...
0.77227366
0
Return the suggestion's score type.
def LNZU(YKHO) -> z34d: return YKHO._score_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HXX0(YKHO):\n return Fv2L.lib.clang_getTypeKindSpelling(YKHO.value)", "def OBJg(YKHO, BYBV: int, xtPI: ScoreType, PJWX: bool=False) -> C_jR:\n if PJWX is True:\n print('Calculating suggestions...', end=' ')\n vB5Y = False\n if xtPI is Zefm:\n vB5Y = True\n bE81 = []\n g2ur = [...
[ "0.6271617", "0.62667257", "0.6072", "0.59333915", "0.5900365", "0.58527637", "0.5820442", "0.57752943", "0.57273537", "0.5711135", "0.5660256", "0.5659784", "0.56346226", "0.56205094", "0.5610557", "0.55933857", "0.55762625", "0.55731374", "0.5572404", "0.55374163", "0.55249...
0.75565815
0
Get as pandas DataFrame. If keys is a list, return only the specified values, otherwise all.
def Hbal(YKHO, sjXb=None) -> rLdf.DataFrame: yv6U = YKHO.as_list(sjXb) jQ3Z = rLdf.DataFrame(yv6U) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hxoQ(BkYD):\n sjXb = BkYD.keys()\n vC9B = []\n for H5ew in sjXb:\n Ty9i = BkYD[H5ew]\n assert type(Ty9i) is oyIN.ndarray and Ty9i.ndim <= 2 and (Ty9i.ndim >= 1), '%s must be np.ndarray with 1 <= ndim <= 2 !' % H5ew\n if Ty9i.ndim == 1:\n p6S0 = rLdf.MultiIndex.from_prod...
[ "0.6490659", "0.62247443", "0.6186467", "0.6035148", "0.5992372", "0.58087355", "0.5792262", "0.5729693", "0.5648439", "0.5643608", "0.5581647", "0.5577575", "0.55186385", "0.5496193", "0.54955506", "0.54705286", "0.5462627", "0.5449187", "0.5407251", "0.53933865", "0.5385375...
0.79539824
0
Extract the list of values for the specified key as a list.
def R0LI(YKHO, H5ew) -> list: return [Ylbp[H5ew] for Ylbp in YKHO.list]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nBVR(YKHO, H5ew):\n try:\n T6S7 = mZXz(YKHO, H5ew.lower())\n except KeyError:\n return []\n else:\n if isinstance(T6S7, tuple):\n return [T6S7[1]]\n else:\n return T6S7[1:]", "def nBVR(YKHO, H5ew):\n BWXx = YKHO.get(H5ew, [])\n if BWXx is None ...
[ "0.8320048", "0.8208394", "0.8032018", "0.7949522", "0.7643262", "0.7641804", "0.72907823", "0.72817355", "0.72678703", "0.69285166", "0.6918752", "0.68843967", "0.68769276", "0.6870262", "0.6771129", "0.6693715", "0.6649705", "0.6641438", "0.6641438", "0.6598585", "0.6556997...
0.7920585
4
Using the validator method to keep the `n_wind_directions` attribute up to date.
def mLw0(YKHO, KAOR: attrs.Attribute, BWXx: NDArrayFloat) -> None: YKHO.n_wind_directions = BWXx.size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Epc9(YKHO, KAOR: attrs.Attribute, BWXx: list | None) -> None:\n if BWXx is None:\n return\n if YKHO.n_wind_directions != oyIN.array(BWXx).shape[0]:\n raise ValueError(\"The het_map's wind direction dimension not equal to number of wind directions.\")", "def a78l(YKHO, KAOR: attrs.Attribut...
[ "0.6396236", "0.57463574", "0.53125423", "0.52856094", "0.5280262", "0.51764774", "0.51656985", "0.515253", "0.514733", "0.49225286", "0.49214053", "0.49155375", "0.48704457", "0.48037454", "0.47837922", "0.47748974", "0.47602305", "0.47600368", "0.47496325", "0.47486392", "0...
0.78646344
0
Returns current level of indentation inside pushed tags.
def jEzb(YKHO): return len(YKHO._tagstack) - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ISiG(YKHO):\n return YKHO._indentation_levels[-1]", "def c31X(YKHO):\n return YKHO.options.indentation_char * sum(YKHO._indentation_levels)", "def Mz4p(YKHO):\n if YKHO.current.tokenum != _l5i and YKHO.current.value == '\\n':\n YKHO.current.tokenum = _l5i\n if YKHO.current.tokenum == rzB...
[ "0.70961106", "0.6695327", "0.66165316", "0.6539523", "0.64611006", "0.6391528", "0.62671214", "0.6253822", "0.6246255", "0.6241332", "0.6204868", "0.6121867", "0.6121867", "0.6107544", "0.6107544", "0.6104235", "0.6103745", "0.610004", "0.6092902", "0.6080785", "0.6071802", ...
0.7837296
0
Given a sequence, embeds the symbols and runs it through a RNN.
def qXts(YKHO, VmPb, SqHK, cbXH, JaMp, CJGY=None, rrBf='RNN'): with ZylS.variable_scope(rrBf, reuse=CJGY) as cmJd: RKD7(cmJd.name + '/Encoding sequences') with ZylS.device('/cpu:0'): zhTA = ZylS.get_variable('emb', [YKHO.vocab_size, YKHO.hidden_size], dtype=ZylS.float32) c_ft...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T__e(aWuw, LZew, xtRp, ZXSL=0.0):\n Ep8u = 1\n ABwA = []\n for unC1 in LZew:\n wjbX = unC1.weight_hh.size()[1]\n if unC1.weight_hh.is_cuda:\n NgLN = ht2j.cuda.FloatTensor(Ep8u, wjbX).fill_(0)\n K5j2 = ht2j.cuda.FloatTensor(Ep8u, wjbX).fill_(0)\n else:\n ...
[ "0.63551354", "0.63127804", "0.60661817", "0.5897372", "0.5684063", "0.55718404", "0.55567276", "0.55235744", "0.55009085", "0.54807246", "0.5479477", "0.54235196", "0.54058605", "0.5362318", "0.5346911", "0.5321391", "0.5312344", "0.53047484", "0.5285546", "0.5284771", "0.52...
0.6237607
2
Given a target sentence (and length) and unnormalized probabilities (logits) for predicted sentence, computes the cross entropy, excluding the padded symbols.
def GaC7(YKHO, KeL5, pan_, tsWk, ZM6q, IotL=True): pSfY = ZylS.ones_like(tsWk) TUlM = ZylS.ones_like(tsWk, dtype=ZylS.float32) VNqG = TUlM * 0 gkQC = [ZylS.select(ZylS.less_equal(pSfY * YRbF, tsWk - 1), TUlM, VNqG) for YRbF in range(ZM6q - 1)] YKHO._weights = ZylS.transpose(ZylS.pack(gkQC)) rUIe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CqbS(N6Z1, x6A0):\n NzrI = x6A0 * oyIN.log(N6Z1)\n return -oyIN.sum(NzrI) / N6Z1.shape[0]", "def CqbS(input: Tensor, pan_: Tensor) -> llWB:\n YsU7 = h_oU(input, 1)\n pECJ = oyIN.eye(input.shape[1])[pan_.data]\n qmY0 = vhpA(pECJ, 'one-hot', False, True)\n ZHfW = -YsU7 * qmY0\n Mpgr = sum(...
[ "0.6959594", "0.6780298", "0.67594975", "0.67403674", "0.6668072", "0.6663409", "0.658034", "0.6557828", "0.6520188", "0.6482352", "0.64746106", "0.6470134", "0.64606", "0.64569986", "0.643825", "0.6423755", "0.6421237", "0.63987577", "0.6395123", "0.6391207", "0.6387115", ...
0.6001862
72
cpe22() returns a string containing the cpe2.2 ID of a cpe2.3 input
def l_Wr(YKHO, xqoZ): nPrm = YKHO._http_get('cpe2.2', query=xqoZ) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lO42(YKHO, xqoZ):\n nPrm = YKHO._http_get('cpe2.3', query=xqoZ)\n return nPrm", "def pJG9(BOE9):\n bhRh = BOE9.split(':')\n if bhRh and len(bhRh) == 13:\n return p_xV(part=bhRh[2], vendor=bhRh[3], product=bhRh[4], version=bhRh[5], update=bhRh[6], edition=bhRh[7], language=bhRh[8], sw_editi...
[ "0.6630935", "0.57633036", "0.5497087", "0.541257", "0.53960246", "0.52237415", "0.52049315", "0.5098695", "0.50515145", "0.5013887", "0.5013887", "0.5013887", "0.5013887", "0.50137585", "0.4998508", "0.49531776", "0.49024463", "0.48953226", "0.4893831", "0.4865647", "0.48622...
0.6938188
0
cpe23() returns a string containing the cpe2.3 ID of a cpe2.2 input
def lO42(YKHO, xqoZ): nPrm = YKHO._http_get('cpe2.3', query=xqoZ) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l_Wr(YKHO, xqoZ):\n nPrm = YKHO._http_get('cpe2.2', query=xqoZ)\n return nPrm", "def pJG9(BOE9):\n bhRh = BOE9.split(':')\n if bhRh and len(bhRh) == 13:\n return p_xV(part=bhRh[2], vendor=bhRh[3], product=bhRh[4], version=bhRh[5], update=bhRh[6], edition=bhRh[7], language=bhRh[8], sw_editi...
[ "0.6695368", "0.6105126", "0.5437129", "0.54323643", "0.539157", "0.5294149", "0.5223644", "0.52232444", "0.519648", "0.51849777", "0.51523095", "0.5075818", "0.50738186", "0.50570905", "0.50485784", "0.50404114", "0.5039948", "0.5033781", "0.5031555", "0.5031555", "0.5031555...
0.7180104
0
KL divergence loss for label smoothing.
def stdy(KeL5, mwMq, IZxK='uniform', UQAb=False): Ep8u, v3sF, jTqs = KeL5.size() if IZxK == 'uniform': pImw = iQnE(ht2j.FloatTensor(Ep8u, v3sF, jTqs).fill_(1 / jTqs * mwMq)) elif IZxK == 'normal': raise NotImplementedError else: raise NotImplementedError if KeL5.is_cuda: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KkJQ(YKHO):\n ZgBa = 0\n if YKHO.Bayesian:\n for YRbF in range(YKHO.num_layers):\n ZgBa += getattr(YKHO, 'LSTMCell%i' % (YRbF + 1)).get_KL_divergence()\n return ZgBa", "def KkJQ(YKHO):\n QGJ6 = yVfW.get_KL_divergence_Samples(YKHO.mu_weight, yVfW.softplus(YKHO.rho_weight), YKHO.w...
[ "0.77631253", "0.7735856", "0.7184239", "0.7123723", "0.711008", "0.70951635", "0.7029459", "0.69768727", "0.69391775", "0.690529", "0.68863285", "0.6854387", "0.68506134", "0.66968983", "0.65498596", "0.65129983", "0.6460759", "0.6449841", "0.6434856", "0.64336187", "0.64048...
0.6847771
13
Sets the type of this PointSource.
def type(YKHO, type): YKHO._type = type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zEt5(YKHO, zEt5):\n YKHO._source_type = zEt5", "def TG_K(YKHO, type):\n YKHO.type = type", "def TG_K(YKHO, type):\n YKHO.type = type", "def TG_K(YKHO, type):\n YKHO._type = type", "def TG_K(YKHO, type: int):\n YKHO.type = type\n YKHO.canvas.itemconfig(YKHO.item, image=YKHO._get_image(...
[ "0.7472811", "0.71074206", "0.71074206", "0.6988086", "0.6758271", "0.6690656", "0.6690656", "0.66478246", "0.6629015", "0.6601621", "0.6508255", "0.64502424", "0.6424808", "0.6424808", "0.6410846", "0.6401368", "0.63896066", "0.63896066", "0.63896066", "0.62326574", "0.62187...
0.6666249
24
Sets the device_group_full_path of this PointSource.
def GvGs(YKHO, GvGs): if GvGs is None: raise ValueError('Invalid value for `device_group_full_path`, must not be `None`') YKHO._device_group_full_path = GvGs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def smW4(YKHO, BWXx):\n YKHO._device_path = BWXx", "def zNz2(YKHO):\n pass", "def ysQc(YKHO, BWXx):\n YKHO.full_path_of_file = BWXx", "def scR9(YKHO, uOe2):\n YKHO._group = uOe2", "def QYWb(YKHO, uOe2):\n YKHO.config.GROUP = uOe2", "def scR9(YKHO, uOe2):\n if YKHO.get_group_metadata().i...
[ "0.6343813", "0.62400657", "0.5573039", "0.5414609", "0.5374962", "0.5300541", "0.52986115", "0.5293769", "0.5293769", "0.5293769", "0.52903366", "0.52903366", "0.52903366", "0.52788424", "0.52788424", "0.52788424", "0.5253133", "0.5171468", "0.51232606", "0.50944954", "0.501...
0.7744933
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, wQdj): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8456082", "0.83912885", "0.81436425", "0.81406975", "0.8131807", "0.8093013", "0.80912536", "0.80912536", "0.80912536", "0.8084505", "0.8084505", "0.8075543", "0.8075543", "0.8065009" ]
0.0
-1
Learning Rate Schedule Learning rate is scheduled to be reduced after 80, 120, 160, 180 epochs. Called automatically every epoch as part of callbacks during training. Arguments
def ZT_s(qtWj): tspZ = 0.001 if qtWj > 180: tspZ *= 0.0005 elif qtWj > 160: tspZ *= 0.001 elif qtWj > 120: tspZ *= 0.01 elif qtWj > 80: tspZ *= 0.1 return tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vHc8(__n6):\n C3ST, y0cW = tcIP(non_negative=True)\n print('Baseline RNN')\n G3Ta(__n6, C3ST)\n print('RNN with decay')\n C3ST.set_params(**{y0cW + 'lr_decay': 'DecreasingLearningRateScheduler'})\n G3Ta(__n6, C3ST)", "def ZT_s(qtWj):\n tspZ = 0.001\n if qtWj > 180:\n tspZ *= 0....
[ "0.752296", "0.7497643", "0.7485013", "0.74808353", "0.74690914", "0.74690914", "0.74690914", "0.74690914", "0.74073625", "0.7365968", "0.73530453", "0.73473936", "0.7266955", "0.7263914", "0.7227353", "0.72229457", "0.71963936", "0.7189921", "0.7098155", "0.7085787", "0.7077...
0.73345053
12
Returns a intermediary_institution_account as string
def v6AQ(YKHO): if YKHO.use_operations_xml: af7M = Kwhc.get_value_from_xml_tag(YKHO.swift_metadata_xml_dom, ['SWIFT', 'INTERMEDIARY_INSTITUTION_ACCOUNT'], ignore_absence=True) else: af7M = YKHO.acm_obj.CounterpartyAccountRef().Account3() return af7M
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dbE0(YKHO):\n return 'A'", "def ZcDx(YKHO, wEf2):\n af7M = wEf2.get('ACCOUNT')\n tzM0 = wEf2.get('BIC')\n if tzM0:\n if af7M:\n wEf2 = '/' + str(af7M) + '\\n' + str(tzM0)\n else:\n wEf2 = str(tzM0)\n return wEf2", "def P4Ll(YKHO):\n if YKHO.use_oper...
[ "0.74852425", "0.7026253", "0.69231075", "0.66851497", "0.6650424", "0.6355309", "0.6355309", "0.63351065", "0.62996703", "0.62567073", "0.60395676", "0.603254", "0.5992339", "0.5976033", "0.5953705", "0.5926193", "0.5912343", "0.5912343", "0.5912343", "0.5891503", "0.5858354...
0.7071799
1
Returns a account_with_institution as string
def P4Ll(YKHO): if YKHO.use_operations_xml: n9Dp = Kwhc.get_value_from_xml_tag(YKHO.swift_metadata_xml_dom, ['SWIFT', 'ACCOUNT_WITH_INSTITUTION_ACCOUNT'], ignore_absence=True) else: n9Dp = YKHO.acm_obj.CounterpartyAccountRef().Account2() return n9Dp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dbE0(YKHO):\n return 'A'", "def TKLx(YKHO, wEf2):\n ZrNc = wEf2.get('ACCOUNT')\n mWFP = wEf2.get('NAME')\n UTX6 = wEf2.get('ADDRESS')\n if mWFP and UTX6:\n mWFP = Kwhc.split_text_and_prefix(mWFP, 35)\n UTX6 = Kwhc.split_text_and_prefix(UTX6, 35)\n wEf2 = Kwhc.allocate_spac...
[ "0.79085237", "0.71209055", "0.7116753", "0.6686492", "0.6606173", "0.6602766", "0.65014666", "0.6361041", "0.6361041", "0.6360945", "0.63221234", "0.6292849", "0.6226572", "0.6211359", "0.6132382", "0.6098485", "0.6067252", "0.60392857", "0.5984762", "0.5975751", "0.5971634"...
0.70420367
3
Set mac address of the GW
def wQNd(YKHO, qIxc): _2Oo = I33c(qIxc.ip) F6kg = atWB() F6kg.update_mac(str(_2Oo)) print('set Default gw mac to %s' % F6kg.get_gw_mac())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pp4r(YKHO, Pp4r):\n YKHO._mac = Pp4r", "def SuKo(YKHO):\n if not YKHO.macaddr:\n return\n try:\n HCmI = [LV2M.syspaths.nsenter, '--net=' + YKHO.netns, 'ip', 'link', 'set', YKHO.final_guest_dev, 'address', YKHO.macaddr]\n U5bT, yvT9, XObx = YKHO.vcall(HCmI)\n except aTqo.excEr...
[ "0.71729046", "0.7159784", "0.70309013", "0.67942315", "0.6734158", "0.66908026", "0.66329217", "0.66329217", "0.66055304", "0.6560975", "0.65444046", "0.6398119", "0.63839704", "0.6369574", "0.6321455", "0.62182325", "0.6161446", "0.60670227", "0.60637647", "0.6042741", "0.5...
0.6788908
4
r""" Subset this storm by any of its parameters and return a new storm object.
def iz5W(YKHO, ITS7=None, QnmL=None, FDPT=None, n4wC=None, PxCY=None, neXK=None, fYcg=None, GaRq=None, NKcE='exact'): TDnD = jth9.deepcopy(YKHO.dict) TDnD['subset'] = True WZzN = C8EZ(TDnD) cUVk = oyIN.arange(len(YKHO.time)) if ITS7 is None: or8S = jth9.copy(cUVk) elif isinstance(ITS7, J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Aiy(YKHO, WXkz=None, ATIY=None):\n if WXkz is None:\n BkYD = YKHO.ix[:, ATIY]\n WXkz = YKHO.times\n elif ATIY is None:\n BkYD = YKHO.ix[WXkz, :]\n ATIY = YKHO.varids\n else:\n BkYD = YKHO.ix[WXkz, ATIY]\n VP40 = _Bzj(dat=BkYD, times=WXkz, varids=ATIY)\n return...
[ "0.51926243", "0.5164726", "0.49006388", "0.4888185", "0.4854767", "0.48165447", "0.47978213", "0.4771015", "0.47611147", "0.47568908", "0.4678229", "0.46702403", "0.46543923", "0.46446857", "0.46317798", "0.46272188", "0.46257833", "0.46257833", "0.46247217", "0.46183324", "...
0.5258843
0
Return a string representation of this ``GrammaticalRelationship``.
def wHJl(YKHO): return str(YKHO.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n RUh6 = []\n for Q6kx in YKHO.getNodes():\n RUh6.append('->'.join((str(Q6kx), str(YKHO.graph[Q6kx]))))\n return str(RUh6)", "def CZBi(YKHO):\n return YKHO.__repr__()", "def str(YKHO):\n yvT9 = '{0}:'.format(YKHO.gtype) if YKHO.gtype else ''\n yvT9 += '{0}'.format(repr(...
[ "0.7214608", "0.6988957", "0.69162846", "0.6897084", "0.688025", "0.6878735", "0.68773913", "0.6821063", "0.6779741", "0.6764794", "0.67634404", "0.6757524", "0.6731559", "0.6726188", "0.6726188", "0.6726188", "0.6726188", "0.67154616", "0.67097163", "0.6705135", "0.670298", ...
0.0
-1
Converter(specfile=None) The Converter class. Please always use kwargs in the constructor.
def FIMM(YKHO, **B2fa): super(QXkI, YKHO).__init__() YKHO._specfile = B2fa.get('specfile', None) YKHO._parsed = False YKHO._columns = [] YKHO._offsets = [] YKHO._fixed_with_encoding = keum.default_fixedwidth_enc() YKHO._included_header = False YKHO._delimited_encoding = keum.default_deli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, aDxC, uiGr):\n YKHO.converter = aDxC\n YKHO.requirement = uiGr", "def a8Pe(YKHO, aDxC=None):\n if aDxC is not None:\n YKHO.converter = aDxC\n YKHO.code(YKHO.prepare)", "def aDxC(YKHO):\n return YKHO._converter", "def aDxC(YKHO):\n return YKHO._converter", "def vCNq(Y...
[ "0.7133057", "0.6230327", "0.60882884", "0.60403347", "0.5980006", "0.588067", "0.57713234", "0.567245", "0.554401", "0.5527527", "0.5527276", "0.54790145", "0.5454005", "0.54209125", "0.5415735", "0.53968847", "0.53966653", "0.5384133", "0.5369916", "0.5369248", "0.5350384",...
0.7016629
1
Calculate the context vector and attention distribution from the decoder state.
def v2uf(vkAz, vFZ1=None, HXeF=None, YPaw=None): with jj4W.variable_scope('Attention'): QHji = z8o0(vkAz, cshM, True) QHji = ZylS.expand_dims(ZylS.expand_dims(QHji, 1), 1) def MNre(tTpl, q5_r): if VUc4 is not None: q5_r = ZylS.reshape(VUc4, [Ep8u, -1]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v2uf(YKHO, vkAz, vFZ1=None):\n with ZylS.variable_scope('attention_compute'):\n je7f = 2 * YKHO.hidden_dim\n Ep8u = ZylS.shape(YKHO.encoder_states)[0]\n TYj5 = ZylS.expand_dims(YKHO.encoder_states, axis=2)\n cshM = je7f\n ZTDW = ZylS.get_variable('W_h', [1, 1, je7f, cshM])...
[ "0.6434249", "0.6233957", "0.61137545", "0.60123605", "0.5962933", "0.5948498", "0.5918534", "0.58688605", "0.58655345", "0.5805446", "0.5757829", "0.57023203", "0.5693168", "0.5652662", "0.56198937", "0.55608445", "0.55564976", "0.55499417", "0.5531495", "0.5504834", "0.5496...
0.59904397
4
Return a JSON list of stations from the dataset
def aYsY(): cuiw = DMju(eHpk) Oj45 = cuiw.query(njvh).count() return pz3A(Oj45)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _TQ3():\n cuiw = DMju(eHpk)\n dixj = cuiw.query(njvh.name).all()\n cuiw.close()\n Oj45 = list(oyIN.ravel(dixj))\n return pz3A(Oj45)", "def Oj45():\n IeOM = cuiw.query(Ny6I.station).distinct().all()\n E1r2 = list(oyIN.ravel(IeOM))\n return pz3A(E1r2)", "def Oj45():\n cuiw = DMju(e...
[ "0.8867414", "0.87507737", "0.87348944", "0.8479086", "0.8459233", "0.84159815", "0.8383141", "0.83756554", "0.8370773", "0.8342128", "0.83401954", "0.83253753", "0.83172154", "0.83020216", "0.8295474", "0.82855445", "0.82437897", "0.82358885", "0.8235545", "0.8217311", "0.82...
0.6496607
52
True if user can access this object; False otherwise.
def eBIn(YKHO, CBIr): if YKHO.shared_with_everyone: return True if YKHO.user == CBIr or YKHO.users_allowed.filter(pk=CBIr.pk).exists(): return True for uOe2 in YKHO.groups_allowed.all(): if CBIr.groups.filter(pk=uOe2.pk).exists(): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m4il(YKHO, QePW, tTee, CBIr):\n return CBIr == QePW.user or QePW.user.is_superuser", "def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method in w0rQ.SAFE_METHODS:\n return True\n return fAV7(YEnM.user, QePW)", "def Pn7U(YKHO):\n return YKHO.user_has_access(DW23.get_current_user())", "def J...
[ "0.7959666", "0.7952186", "0.79096836", "0.78710836", "0.78279006", "0.777003", "0.7769477", "0.77049124", "0.7677851", "0.7675242", "0.76722986", "0.7662701", "0.76429915", "0.76398176", "0.7635179", "0.762465", "0.76206577", "0.76137763", "0.761245", "0.75964516", "0.759453...
0.770132
8
Check that this instance has the same access as the specified one.
def MJJI(YKHO, _P6x): if YKHO.user != _P6x.user: raise sUXu('Instances have different users: %s, %s' % (YKHO.user, _P6x.user), code='different_user') edke = set(YKHO.users_allowed.all()).symmetric_difference(_P6x.users_allowed.all()) if len(edke) > 0: raise sUXu('Instances allow different us...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yzEd(YKHO, OK_1: M, CU1e: M, Uvf2: str):\n if not Uvf2:\n return True\n if CU1e is None:\n raise UAju.NotAllowed('Accessor not found')\n if OK_1 != CU1e:\n raise UAju.NotAllowed(\"Access not allowed for permission '%s'\" % Uvf2)\n return True", "def eBIn(YKHO, CBIr):\n if ...
[ "0.64721394", "0.64028245", "0.6292976", "0.6201501", "0.61991817", "0.61333936", "0.61254597", "0.60791415", "0.6075571", "0.6075571", "0.60622823", "0.60192996", "0.6009531", "0.60060424", "0.5997356", "0.5977503", "0.5961192", "0.59605944", "0.59377265", "0.59370846", "0.5...
0.6901076
0
Retrieve a QuerySet of all records of this class that are visible to the specified user.
def secH(Emd4, CBIr, _Kb1=False, SR0I=None): if SR0I is None: SR0I = Emd4.objects.all() if _Kb1: if not WtkF(CBIr): raise Exception('User is not an administrator.') else: fdpw = FlaD.kiveify(CBIr) p_ee = SR0I.filter(fdpw.access_query()) SR0I = SR0I.filter(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mac6(Emd4, CBIr):\n return Emd4.objects.filter(PKta.Q(CBIr))", "def t1hT(YKHO, CBIr):\n return YKHO.get_query_set().filter(owner=CBIr)", "def Aw6w(YKHO, CBIr):\n return YKHO.filter(T8ck(user=CBIr) | T8ck(is_hidden=False) | T8ck(is_deleted=False))", "def k66M(YKHO):\n SR0I = super(ZKb9, YKHO)....
[ "0.7256512", "0.70785433", "0.7036385", "0.7015327", "0.69669425", "0.6945848", "0.69389695", "0.6904424", "0.6883395", "0.67637265", "0.67520493", "0.67520493", "0.67520493", "0.6735269", "0.6695591", "0.66943914", "0.66933215", "0.6614238", "0.6604871", "0.65982264", "0.656...
0.64682233
28
Run task(input) for each input in the queue. Returns when it encounters an _AllTasksComplete object on the queue. If exceptions occur, save them off and reraise them as a BackgroundFailure once we've finished processing the items in the queue.
def eAm2(gGq6, D5gV, cMcD=None, S_Ea=None, H2PZ=None): if S_Ea is None: S_Ea = [] elif not isinstance(S_Ea, list): S_Ea = list(S_Ea) if H2PZ is None: H2PZ = {} UAju = [] while True: WKvO = gGq6.get() if isinstance(WKvO, KGhw): break elif no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZriL(YKHO):\n for ub0_ in YKHO.async_femags:\n ub0_.start()\n for D5gV in YKHO.job.tasks:\n YKHO.queue.put(D5gV)\n return len(YKHO.job.tasks)", "def iXC1(YKHO):\n assert YKHO.queue is not None, 'Must specify queue or override run()'\n while not YKHO.terminated():\n umWR = ...
[ "0.6819832", "0.65894973", "0.6578102", "0.64337426", "0.62576807", "0.6184687", "0.6181251", "0.615293", "0.60969037", "0.5947114", "0.59376866", "0.5930255", "0.5909812", "0.5877334", "0.58508605", "0.5836818", "0.5826121", "0.5815489", "0.5794974", "0.5792711", "0.5775146"...
0.5452192
48
Test that completely invalid tags generate an error.
def G9Br(YKHO): JzMr = chr(EXW0._Encoder.NUMERIC) YKHO.assertErrorIs(yEHD.DecodeError, 'Invalid tag value 0', EXW0.decode_message, DPTn.OptionalMessage, JzMr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HJwp(YKHO):\n hYqm = 'tag1, tag2, tag3!'\n with YKHO.assertRaisesRegexp(Exception, \"invalid tag 'tag3!': only numbers, letters, and commas are allowed in tags\"):\n nNXP.parse_tags(hYqm)", "def SDs6(YKHO):\n with YKHO.assertRaises(Exception):\n YKHO.check_group('invalid', 'choice', 'c...
[ "0.78688735", "0.7615075", "0.7474957", "0.7404492", "0.72889", "0.72382516", "0.72381175", "0.7211844", "0.7204049", "0.7197362", "0.71946955", "0.7172774", "0.7116077", "0.706652", "0.7043109", "0.6953482", "0.69004554", "0.6894062", "0.6892188", "0.68717426", "0.6838426", ...
0.0
-1
Serialize object properties as dict.
def oD7C(YKHO): return {'revision': YKHO.revision, 'active': YKHO.active, 'archived_at': YKHO.archived_at}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0L1(YEnM):\n co6n = {}\n co6n.update(YEnM.__dict__)\n return co6n", "def MNRr(YKHO):\n return YKHO.properties", "def MNRr(YKHO):\n return YKHO.properties", "def qQXR(YKHO):\n im04 = {QWcs: getattr(YKHO, QWcs) for QWcs in YKHO.__properties__ if QWcs in vars(YKHO)}\n im04.update(YKHO....
[ "0.7212848", "0.7106636", "0.7106636", "0.70032656", "0.6981998", "0.6981998", "0.6981998", "0.6971889", "0.6893788", "0.67685044", "0.67685044", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.65729594", "0.65646374", "0.6562366"...
0.0
-1
Serialize object properties as dict.
def oD7C(YKHO): return {'id': YKHO.id, 'date_created': YKHO.date_created, 'date_modified': YKHO.date_modified, 'link': YKHO.link, 'vulnerability_details_id': YKHO.vulnerability_details_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0L1(YEnM):\n co6n = {}\n co6n.update(YEnM.__dict__)\n return co6n", "def MNRr(YKHO):\n return YKHO.properties", "def MNRr(YKHO):\n return YKHO.properties", "def qQXR(YKHO):\n im04 = {QWcs: getattr(YKHO, QWcs) for QWcs in YKHO.__properties__ if QWcs in vars(YKHO)}\n im04.update(YKHO....
[ "0.7212872", "0.71077454", "0.71077454", "0.70044136", "0.6982981", "0.6982981", "0.6982981", "0.6976068", "0.68956447", "0.6770523", "0.6770523", "0.67119175", "0.67119175", "0.67119175", "0.67119175", "0.67119175", "0.67119175", "0.67119175", "0.6574118", "0.6567268", "0.65...
0.0
-1
Serialize object properties as dict.
def oD7C(YKHO): return {'commit_link': YKHO.commit_link, 'repo_owner': YKHO.repo_owner, 'repo_name': YKHO.repo_name, 'repo_url': YKHO.repo_url, 'commit_hash': YKHO.commit_hash, 'relevant_files': YKHO.get_relevant_files()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0L1(YEnM):\n co6n = {}\n co6n.update(YEnM.__dict__)\n return co6n", "def MNRr(YKHO):\n return YKHO.properties", "def MNRr(YKHO):\n return YKHO.properties", "def qQXR(YKHO):\n im04 = {QWcs: getattr(YKHO, QWcs) for QWcs in YKHO.__properties__ if QWcs in vars(YKHO)}\n im04.update(YKHO....
[ "0.7212848", "0.7106636", "0.7106636", "0.70032656", "0.6981998", "0.6981998", "0.6981998", "0.6971889", "0.6893788", "0.67685044", "0.67685044", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.65729594", "0.65646374", "0.6562366"...
0.0
-1
Serialize object properties as dict.
def NHd8(YKHO): nPrm = YKHO.to_json() nPrm['commits'] = [Z9rn.to_json() for Z9rn in YKHO.commits if YKHO.commits is not None] nPrm['nvd'] = YKHO.nvd._to_json_full() if YKHO.nvd is not None else None nPrm['creator'] = YKHO.creator.to_json() if YKHO.creator is not None else None nPrm['date_created'] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0L1(YEnM):\n co6n = {}\n co6n.update(YEnM.__dict__)\n return co6n", "def MNRr(YKHO):\n return YKHO.properties", "def MNRr(YKHO):\n return YKHO.properties", "def qQXR(YKHO):\n im04 = {QWcs: getattr(YKHO, QWcs) for QWcs in YKHO.__properties__ if QWcs in vars(YKHO)}\n im04.update(YKHO....
[ "0.7212872", "0.71077454", "0.71077454", "0.70044136", "0.6982981", "0.6982981", "0.6982981", "0.6976068", "0.68956447", "0.6770523", "0.6770523", "0.67119175", "0.67119175", "0.67119175", "0.67119175", "0.67119175", "0.67119175", "0.67119175", "0.6574118", "0.6567268", "0.65...
0.0
-1
Serialize object properties as dict.
def oD7C(YKHO): return {'vendor': YKHO.vendor, 'product': YKHO.product}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0L1(YEnM):\n co6n = {}\n co6n.update(YEnM.__dict__)\n return co6n", "def MNRr(YKHO):\n return YKHO.properties", "def MNRr(YKHO):\n return YKHO.properties", "def qQXR(YKHO):\n im04 = {QWcs: getattr(YKHO, QWcs) for QWcs in YKHO.__properties__ if QWcs in vars(YKHO)}\n im04.update(YKHO....
[ "0.7212848", "0.7106636", "0.7106636", "0.70032656", "0.6981998", "0.6981998", "0.6981998", "0.6971889", "0.6893788", "0.67685044", "0.67685044", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.6710124", "0.65729594", "0.65646374", "0.6562366"...
0.0
-1
Get the builtin validation error message for when the user's real name is invalid in some way (we wonder how).
def wSZv(mWFP): return '' if mWFP else L8Py.REQUIRED_FIELD_NAME_MSG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k0nI(NtEF):\n return sBY3(UBVo, UAju.AccountUsernameInvalid, NtEF)", "def P2YO(YKHO):\n if hasattr(YKHO, 'ui_name'):\n return YKHO.parent.get_error_name() + '.' + YKHO.ui_name\n elif YKHO.name == '':\n return YKHO.parent.get_error_name() + '.' + YKHO.cls + '-' + str(YKHO.id)\n else:...
[ "0.6745288", "0.66275007", "0.65634394", "0.6563082", "0.65543866", "0.6501537", "0.645665", "0.6401832", "0.6296059", "0.6296059", "0.6263373", "0.62539154", "0.6233126", "0.6163527", "0.61590856", "0.6152952", "0.6089771", "0.60815257", "0.60779625", "0.6065481", "0.6049547...
0.8224604
0
Get the builtin validation error message for when the email is invalid in some way.
def NPNg(D3lj, clva='v1'): return sBY3(cxgF, UAju.AccountEmailInvalid, D3lj, clva)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhwM(YKHO, eqiP=None, **B2fa):\n if eqiP:\n return 'Validation failed in Validator \"{}\" on field \"{}\"'.format(YKHO.__class__.__name__, eqiP)\n return 'Validation failed in Validator \"{}\"'.format(YKHO.__class__.__name__)", "def rhwM(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'erro...
[ "0.7202891", "0.70885843", "0.70771116", "0.70256305", "0.7020628", "0.6998897", "0.6998897", "0.69935715", "0.6958218", "0.69105977", "0.6897067", "0.6897067", "0.6897067", "0.6897067", "0.6897067", "0.6897067", "0.6897067", "0.68439925", "0.68439925", "0.68439925", "0.68187...
0.7410913
0
Get the builtin validation error message for when the email is invalid in some way.
def n8yE(D3lj): return sBY3(aj0W, UAju.AccountEmailAlreadyExists, D3lj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NPNg(D3lj, clva='v1'):\n return sBY3(cxgF, UAju.AccountEmailInvalid, D3lj, clva)", "def rhwM(YKHO, eqiP=None, **B2fa):\n if eqiP:\n return 'Validation failed in Validator \"{}\" on field \"{}\"'.format(YKHO.__class__.__name__, eqiP)\n return 'Validation failed in Validator \"{}\"'.format(YKHO...
[ "0.74101675", "0.7203478", "0.708985", "0.7078327", "0.70276797", "0.70005935", "0.70005935", "0.6992388", "0.69596136", "0.6911951", "0.6898979", "0.6898979", "0.6898979", "0.6898979", "0.6898979", "0.6898979", "0.6898979", "0.68454856", "0.68454856", "0.68454856", "0.682052...
0.70199513
5
Get the builtin validation error message for when the confirmation email is invalid in some way.
def DWP4(izyB, D3lj): return sBY3(bL0t, UAju.AccountEmailInvalid, izyB, D3lj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jv0C(YKHO):\n return YKHO.error_message.get_error_message()", "def rhwM(YKHO):\n return YKHO._error_message", "def rhwM(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'error_message')", "def jv0C(YKHO):\n return YKHO.err_message", "def rhwM(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4...
[ "0.7080343", "0.6855695", "0.6824975", "0.68098694", "0.67597026", "0.67597026", "0.6711665", "0.6693669", "0.6693669", "0.6693669", "0.6693669", "0.6693669", "0.6693669", "0.6693669", "0.6676684", "0.6676684", "0.6676684", "0.6665815", "0.66506976", "0.66319674", "0.6622552"...
0.771496
0
Get the builtin validation error message for when the email has an existence conflict.
def Ik9Q(D3lj, clva='v1'): return sBY3(Nw5a, UAju.AccountEmailAlreadyExists, D3lj, clva)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8yE(D3lj):\n return sBY3(aj0W, UAju.AccountEmailAlreadyExists, D3lj)", "def wSZv(mWFP):\n return '' if mWFP else L8Py.REQUIRED_FIELD_NAME_MSG", "def rhwM(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'error_message')", "def rhwM(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKH...
[ "0.7197901", "0.6924127", "0.6875918", "0.6875918", "0.684771", "0.6800336", "0.6800336", "0.6800336", "0.6800336", "0.6800336", "0.6800336", "0.6800336", "0.6783709", "0.6751165", "0.67285943", "0.6663464", "0.65940493", "0.65119123", "0.65119123", "0.65119123", "0.6492984",...
0.62586075
30
Validate the confirmation email field.
def bL0t(izyB, D3lj): if not izyB or izyB != D3lj: raise UAju.AccountEmailInvalid(L8Py.REQUIRED_FIELD_CONFIRM_EMAIL_MSG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YBiq(YKHO):\n tTpl = YKHO.cleaned_data['email']\n try:\n CBIr = mv1M.objects.get(email=tTpl)\n if not CBIr.is_active:\n tO9_ = 'This user account has not been confirmed yet'\n raise H6V6.ValidationError(tO9_)\n except mv1M.DoesNotExist:\n pass\n return tTp...
[ "0.74468267", "0.71829784", "0.71473795", "0.7134303", "0.7126468", "0.70673615", "0.70560724", "0.70451635", "0.69587725", "0.6955144", "0.6952478", "0.6951607", "0.6941736", "0.6939369", "0.69358456", "0.69358456", "0.6930824", "0.6920938", "0.69191915", "0.6910414", "0.690...
0.80466354
0
Validate the format of the user's password. Passwords cannot be the same as the username of the account, so we create a temp_user using the username and email to test the password against. This user is never saved.
def bqkU(jTXt, NtEF=None, D3lj=None): try: x3K5(jTXt, str, L8Py.PASSWORD_BAD_TYPE_MSG) Uzfl = mv1M(username=NtEF, email=D3lj) if NtEF else None tg18(jTXt, user=Uzfl) except UAju.AccountDataBadType as invalid_password_err: raise UAju.AccountPasswordInvalid(str(zWs3)) except sU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lY9I(YKHO):\n Ylbp = YKHO.client.post(CKgv, {**YKHO.mock_user, 'password': 'pw'})\n _gH8 = egNl().objects.filter(email=YKHO.mock_user['email'])\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertFalse(_gH8)", "def xWi2(YKHO, jTXt, **wdCM):\n try:\n CBIr = YKHO....
[ "0.6959427", "0.68843", "0.68593246", "0.68046296", "0.6782172", "0.677297", "0.6764933", "0.6745001", "0.67395645", "0.6738005", "0.6719614", "0.66970253", "0.6672124", "0.6665926", "0.66619354", "0.6658467", "0.664195", "0.6629181", "0.66160953", "0.6604389", "0.6603167", ...
0.73186624
0
Validate that the username is not associated with an existing user.
def HbOr(NtEF, clva='v1'): if clva == 'v1': rhwM = L8Py.USERNAME_CONFLICT_MSG.format(username=NtEF) else: rhwM = L8Py.AUTHN_USERNAME_CONFLICT_MSG if NtEF is not None and azSy(NtEF): raise UAju.AccountUsernameAlreadyExists(bGrB(rhwM))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z3WL(YKHO, NtEF):\n if NtEF.data != c5ow.username:\n CBIr = mv1M.query.filter_by(username=NtEF.data).first()\n if CBIr:\n raise sUXu('That username already exists. Please choose another username.')", "def Z3WL(YKHO, NtEF):\n CBIr = mv1M.query.filter_by(username=NtEF.data).first...
[ "0.79264224", "0.788833", "0.7857764", "0.7713789", "0.759303", "0.75770164", "0.74394166", "0.7434979", "0.74019057", "0.7369904", "0.73297596", "0.7326043", "0.73005134", "0.7291905", "0.72757536", "0.7228625", "0.71075684", "0.71051383", "0.7090531", "0.7084921", "0.707932...
0.73520076
10
Validate that the email is not associated with an existing user.
def Nw5a(D3lj, clva='v1'): if clva == 'v1': rhwM = L8Py.EMAIL_CONFLICT_MSG.format(email_address=D3lj) else: rhwM = L8Py.AUTHN_EMAIL_CONFLICT_MSG if D3lj is not None and YK2f(D3lj): raise UAju.AccountEmailAlreadyExists(bGrB(rhwM))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bt7w(YKHO, D3lj):\n CBIr = mv1M.query.filter_by(email=D3lj.data).first()\n if CBIr is not None:\n raise sUXu('Please use a different email address.')", "def Bt7w(YKHO, D3lj):\n CBIr = mv1M.query.filter_by(email=D3lj.data).first()\n if CBIr:\n raise sUXu('That email already exists. P...
[ "0.7622503", "0.7576384", "0.75638884", "0.7538433", "0.75290483", "0.7498994", "0.7498994", "0.74380535", "0.7427728", "0.7298709", "0.728917", "0.7278938", "0.72762215", "0.7275117", "0.72700775", "0.7259042", "0.7256856", "0.72393715", "0.722484", "0.72218716", "0.7209648"...
0.69935536
33
Validate that the email is not associated as a secondary email of an existing user.
def aj0W(D3lj): if D3lj is not None and lvgd.objects.filter(secondary_email=D3lj).exists(): raise UAju.AccountEmailAlreadyExists(L8Py.EMAIL_CONFLICT_MSG.format(email_address=D3lj))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bt7w(YKHO, D3lj):\n if D3lj.data != c5ow.email:\n CBIr = mv1M.query.filter_by(email=D3lj.data).first()\n if CBIr:\n raise sUXu('That email already exists. Please choose another email.')", "def gcVv(D3lj):\n if Y8oe.objects.filter(email=D3lj.lower(), is_primary_email=False):\n ...
[ "0.75216126", "0.7493076", "0.7376358", "0.73585933", "0.7305623", "0.7224461", "0.720515", "0.71921426", "0.7190707", "0.71699005", "0.7147553", "0.71441454", "0.70908356", "0.70818067", "0.70818067", "0.7056136", "0.7031503", "0.70081663", "0.70032525", "0.6857315", "0.6849...
0.771862
0
Checks if queen can be placed in coord of board. Returns True if can, else False
def Qazr(jNOo, rdlD, fvDH): usx6 = [] WfCS = [] rKP_ = [] rKEB = [] for Fyji in jNOo: usx6.append(Fyji[0]) WfCS.append(Fyji[1]) rKP_.append(Fyji[0] + Fyji[1]) rKEB.append(Fyji[1] - Fyji[0]) if rdlD in usx6 or fvDH in WfCS: return False if rdlD + fvDH i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GQko(YKHO, IxS8, LKdJ):\n PWAz = YKHO.board[IxS8][LKdJ] != 1\n jRDl = YKHO.num_queens_placed < YKHO.size\n gdBX = YKHO.attack(IxS8, LKdJ)\n return PWAz and jRDl and gdBX", "def IQjl(YKHO, Ykgi, VVqd, a7DU, E7tN):\n if abs(Ykgi - a7DU) != abs(VVqd - E7tN):\n if Ykgi != a7DU and VVqd == E...
[ "0.75600076", "0.7476879", "0.7469598", "0.7058161", "0.6982227", "0.6973553", "0.6898411", "0.6878389", "0.68669605", "0.68514156", "0.6845991", "0.6833959", "0.6813208", "0.6784895", "0.67800766", "0.67558897", "0.6745045", "0.67351043", "0.67252624", "0.6723145", "0.672232...
0.0
-1
True if the `hashlock` is known and the correspoding secret is not.
def HSDI(YKHO, hMyU): return hMyU in YKHO.hashlocks_to_pendinglocks
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def klcK(YKHO, hMyU):\n return hMyU in YKHO.hashlocks_to_pendinglocks or hMyU in YKHO.hashlocks_to_unclaimedlocks", "def qgYx(YKHO):\n return YKHO.secret != '' and YKHO.key != ''", "def FYXB(YKHO, hMyU):\n return hMyU in YKHO.locked", "def XhF2(DXni: str, r7hv: bytes, nupV: bytes) -> bool:\n dOXr...
[ "0.7481523", "0.74292755", "0.68880725", "0.68790513", "0.6695643", "0.65044403", "0.6492829", "0.6405243", "0.63108724", "0.6293218", "0.6278153", "0.6277934", "0.6273595", "0.62690306", "0.62690306", "0.62474954", "0.62374246", "0.622471", "0.6149292", "0.61217475", "0.6111...
0.68200606
4
Returns a transform_fn that converts features to dense Tensors.
def bOKr(YKHO): return YKHO._transform_fn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zd4T(YKHO, vhpA: tf.Tensor, oLRV: tf.TensorShape) -> ZylS.Tensor:\n return ZylS.scatter_nd(YKHO.observations_index, vhpA, oLRV)", "def meuU(YKHO, FRUf, a6Jb, _Ycl=None, mWFP=None):\n return ZylS.layers.dense(FRUf, a6Jb, activation=_Ycl, kernel_initializer=ZylS.contrib.layers.variance_scaling_initialize...
[ "0.60267717", "0.60228837", "0.583659", "0.58034605", "0.56381494", "0.56356347", "0.5622732", "0.558097", "0.5571176", "0.55235296", "0.5497506", "0.5487674", "0.5484177", "0.54734063", "0.5394181", "0.5347578", "0.5347049", "0.5337681", "0.5332883", "0.5322231", "0.5316981"...
0.0
-1
Update the learning rate at the end of the given epoch.
def YPaw(YKHO, qtWj, AIKr=None): super().step(qtWj, AIKr) return YKHO.optimizer.get_lr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fggk(YKHO):\n YKHO.scheduler.step(YKHO.clock.epoch)", "def fggk(YKHO, dSIW, qtWj):\n if YKHO.start_decay_at is not None and qtWj >= YKHO.start_decay_at:\n YKHO.start_decay = True\n if YKHO.last_ppl is not None and dSIW > YKHO.last_ppl:\n YKHO.start_decay = True\n if YKHO.start_decay...
[ "0.829928", "0.7959232", "0.77151215", "0.7655542", "0.7543744", "0.7535445", "0.7508489", "0.7440509", "0.7433783", "0.7422781", "0.73838586", "0.734689", "0.7339895", "0.72872365", "0.72806436", "0.72749454", "0.72695", "0.72695", "0.7240118", "0.72216266", "0.7218098", "...
0.6946832
77
Update the learning rate after each update.
def uvW0(YKHO, YWFm): n2fR = epAf.floor(YWFm / (2 * YKHO.stepsize)) zFxR = YKHO.lr_shrink ** n2fR PsQ8 = YKHO.max_lr * zFxR if YKHO.shrink_min: IF_C = YKHO.min_lr * zFxR else: IF_C = YKHO.min_lr WKvO = abs(YWFm / YKHO.stepsize - 2 * (n2fR + 1) + 1) YKHO.lr = IF_C + (PsQ8 - IF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fggk(YKHO):\n YKHO.scheduler.step(YKHO.clock.epoch)", "def fggk(YKHO):\n YKHO.scheduler.step()\n tspZ = YKHO.optimizer.param_groups[0]['lr']\n print('learning rate = %.7f' % tspZ)", "def WVy8(YKHO):\n YKHO.n_steps += 1\n tspZ = YKHO.factor * YKHO._get_lr_scale()\n for Lwm5 in YKHO._opt...
[ "0.8525054", "0.8246478", "0.81739384", "0.80492413", "0.7949033", "0.7949033", "0.78992677", "0.7889223", "0.78623694", "0.7703854", "0.7637969", "0.76320887", "0.7508339", "0.7478694", "0.73086154", "0.72947234", "0.7267212", "0.7239035", "0.7234639", "0.72077906", "0.71868...
0.6647708
47
Return the position of parent for the node currently at pos
def _AKB(YKHO, oeNL): return oeNL // 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AKB(YKHO, oeNL):\n return oeNL // 2", "def _AKB(YKHO, oeNL):\n if oeNL == 0:\n return None\n return int(epAf.ceil(oeNL / YKHO.dary) - 1)", "def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._parent)", "def _AKB(YKHO, XP5J):\n Q6kx = YKHO._vali...
[ "0.8049816", "0.7924812", "0.7788302", "0.7748893", "0.7723466", "0.76427776", "0.75885135", "0.75885135", "0.75885135", "0.7426", "0.73305357", "0.7240945", "0.71970475", "0.71769404", "0.7124077", "0.7090402", "0.70792645", "0.70089245", "0.69986284", "0.6955013", "0.6926",...
0.82917905
0
Return the position of the left child for the node at pos
def zqXl(YKHO, oeNL): return 2 * oeNL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cdj0(YKHO, oeNL):\n return 2 * oeNL", "def cdj0(YKHO, dQgj):\n aUGN = 2 * dQgj + 1\n if aUGN > len(YKHO.table) - 1:\n return None\n return aUGN", "def L0tW(YKHO):\n return YKHO._leftchild", "def cdj0(YKHO, d6pt):\n return 2 * d6pt + 1", "def LFlW(YKHO, XP5J):\n Q6kx = YKHO._...
[ "0.83649325", "0.77543384", "0.7542705", "0.7532445", "0.7519663", "0.7494396", "0.74940205", "0.7462934", "0.7410025", "0.7403213", "0.7351628", "0.7351628", "0.73404413", "0.73026854", "0.72264564", "0.719699", "0.7176353", "0.7129563", "0.7113563", "0.71097285", "0.7037362...
0.85475385
0
Return the position of the right child for the node at pos
def T4m8(YKHO, oeNL): return 2 * oeNL + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def esTa(YKHO, oeNL):\n return 2 * oeNL + 1", "def esTa(YKHO, dQgj):\n aUGN = 2 * dQgj + 2\n if aUGN > len(YKHO.table) - 1:\n return None\n return aUGN", "def cdj0(YKHO, oeNL):\n return 2 * oeNL", "def zqXl(YKHO, oeNL):\n return 2 * oeNL", "def zqXl(YKHO, oeNL):\n return 2 * oeN...
[ "0.8484954", "0.7701789", "0.74027514", "0.737924", "0.737924", "0.73578656", "0.7300604", "0.7287597", "0.7003468", "0.697581", "0.69145036", "0.6903219", "0.6882952", "0.687527", "0.6845948", "0.6826754", "0.67674875", "0.67378074", "0.6710584", "0.6709652", "0.6697389", ...
0.8660321
0
Heapify the nodes of the heap
def rt1o(YKHO, oeNL): if not YKHO.isLeaf(oeNL): if YKHO.heap[oeNL] > YKHO.heap[YKHO.leftChild(oeNL)] or YKHO.heap[oeNL] > YKHO.heap[YKHO.rightChild(oeNL)]: if YKHO.heap[YKHO.leftChild(oeNL)] < YKHO.heap[YKHO.rightChild(oeNL)]: YKHO.swap(oeNL, YKHO.leftChild(oeNL)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENpy(YKHO):\n for bGrB in range(len(YKHO.elements)):\n for YRbF in range(len(YKHO.elements) - 1, 0, -1):\n OPk1 = (YRbF - 1) / 2\n if OPk1 < 0:\n OPk1 = 0\n if YKHO.elements[YRbF] < YKHO.elements[OPk1]:\n YKHO.elements[YRbF], YKHO.element...
[ "0.7913199", "0.75706446", "0.7525651", "0.7484029", "0.7321969", "0.722133", "0.71462405", "0.69940126", "0.6975017", "0.68887526", "0.6831776", "0.67708695", "0.67708695", "0.6751752", "0.6710631", "0.6699381", "0.6693417", "0.6671732", "0.66262996", "0.66081", "0.659091", ...
0.6295602
48
Build the min heap using the minHeapify API
def ZZ3d(YKHO): for oeNL in range(YKHO.size // 2, 0, -1): YKHO.minHeapify(oeNL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yryI(YKHO):\n for oeNL in range(YKHO.size // 2, 0, -1):\n YKHO.min_heapify(oeNL)", "def Npt8(YKHO):\n exwG = int(len(YKHO.array) / 2 - 1)\n while exwG >= 0:\n YKHO.heapify_top_down(exwG)\n exwG -= 1", "def igRZ(YKHO) -> None:\n E0w5 = 0\n utLT = 1\n CYtZ = 2\n u54L...
[ "0.69671273", "0.6824578", "0.6581896", "0.6572531", "0.6492673", "0.6490563", "0.648365", "0.6456313", "0.6446993", "0.6384518", "0.6370518", "0.6331525", "0.63174963", "0.6293025", "0.62891895", "0.6278671", "0.6271318", "0.6253797", "0.6251365", "0.62431824", "0.6240821", ...
0.6852612
1
Return the position of parent for the node at pos
def _AKB(YKHO, oeNL): return oeNL // 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AKB(YKHO, oeNL):\n return oeNL // 2", "def _AKB(YKHO, oeNL):\n if oeNL == 0:\n return None\n return int(epAf.ceil(oeNL / YKHO.dary) - 1)", "def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._parent)", "def _AKB(YKHO, XP5J):\n Q6kx = YKHO._vali...
[ "0.7847527", "0.780028", "0.7652363", "0.75889504", "0.75780976", "0.74631405", "0.74168783", "0.74168783", "0.74168783", "0.730651", "0.713375", "0.6982931", "0.6903372", "0.6878589", "0.6857189", "0.6848456", "0.6848456", "0.68437505", "0.6842571", "0.6777982", "0.6679119",...
0.8129807
1
Return the position of the left child for the node at pos
def zqXl(YKHO, oeNL): return 2 * oeNL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cdj0(YKHO, oeNL):\n return 2 * oeNL", "def cdj0(YKHO, dQgj):\n aUGN = 2 * dQgj + 1\n if aUGN > len(YKHO.table) - 1:\n return None\n return aUGN", "def L0tW(YKHO):\n return YKHO._leftchild", "def cdj0(YKHO, d6pt):\n return 2 * d6pt + 1", "def LFlW(YKHO, XP5J):\n Q6kx = YKHO._...
[ "0.83649325", "0.77543384", "0.7542705", "0.7532445", "0.7519663", "0.7494396", "0.74940205", "0.7462934", "0.7410025", "0.7403213", "0.7351628", "0.7351628", "0.73404413", "0.73026854", "0.72264564", "0.719699", "0.7176353", "0.7129563", "0.7113563", "0.71097285", "0.7037362...
0.85475385
1
Return the position of the right child for the node at pos
def T4m8(YKHO, oeNL): return 2 * oeNL + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def esTa(YKHO, oeNL):\n return 2 * oeNL + 1", "def esTa(YKHO, dQgj):\n aUGN = 2 * dQgj + 2\n if aUGN > len(YKHO.table) - 1:\n return None\n return aUGN", "def cdj0(YKHO, oeNL):\n return 2 * oeNL", "def zqXl(YKHO, oeNL):\n return 2 * oeNL", "def zqXl(YKHO, oeNL):\n return 2 * oeN...
[ "0.84850544", "0.7701583", "0.7401799", "0.7378563", "0.7378563", "0.73593533", "0.73007065", "0.7287842", "0.70040214", "0.6976616", "0.6915747", "0.6904748", "0.68832076", "0.6876537", "0.68465513", "0.6826893", "0.67691547", "0.6739458", "0.67110103", "0.6710301", "0.66989...
0.86608
1
Heapify the node at pos
def rwSx(YKHO, oeNL): if not YKHO.isLeaf(oeNL): if YKHO.heap[oeNL] < YKHO.heap[YKHO.leftChild(oeNL)] or YKHO.heap[oeNL] < YKHO.heap[YKHO.rightChild(oeNL)]: if YKHO.heap[YKHO.leftChild(oeNL)] > YKHO.heap[YKHO.rightChild(oeNL)]: YKHO.swap(oeNL, YKHO.leftChild(oeNL)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l6g0(YKHO, oeNL):\n if not YKHO.is_leaf(oeNL):\n if YKHO.Heap[oeNL] > YKHO.Heap[YKHO.left_child(oeNL)] or YKHO.Heap[oeNL] > YKHO.Heap[YKHO.right_child(oeNL)]:\n if YKHO.Heap[YKHO.left_child(oeNL)] < YKHO.Heap[YKHO.right_child(oeNL)]:\n YKHO.swap(oeNL, YKHO.left_child(oeNL))\...
[ "0.76383394", "0.7330325", "0.70202285", "0.6923834", "0.69188905", "0.68685764", "0.6774794", "0.6666314", "0.66532457", "0.65860367", "0.651174", "0.6423579", "0.64198744", "0.6386632", "0.6374525", "0.63470495", "0.6328869", "0.6273219", "0.62544084", "0.61942303", "0.6193...
0.7186695
2
Finds the common divisors of num1 and num2 Assumes that num1 and num2 are positive integers Returns a tuple containing the common divisors of num1 and num2
def bdCO(_1qI, zDMu): oCcr = (1,) for YRbF in range(2, min(_1qI, zDMu) + 1): if _1qI % YRbF == 0 and zDMu % YRbF == 0: oCcr += (YRbF,) return oCcr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bdCO(MxXY, cWFu):\n oCcr = ()\n for YRbF in range(1, min(MxXY, cWFu) + 1):\n if MxXY % YRbF == 0 and cWFu % YRbF == 0:\n oCcr = oCcr + (YRbF,)\n return oCcr", "def GBBX(YKHO, dOhY, OZPZ) -> [None, int]:\n oCcr = []\n for di96 in range(2, max(dOhY, OZPZ)):\n if max(dOhY...
[ "0.782692", "0.75875294", "0.74997914", "0.7308669", "0.7297279", "0.7229542", "0.7125726", "0.6939252", "0.69323885", "0.68859977", "0.68319964", "0.6783142", "0.6771212", "0.67570996", "0.67326087", "0.6690231", "0.66641575", "0.6654265", "0.6618124", "0.65867084", "0.65749...
0.83219117
0
Extract the version string from the file at the given relative path fragments.
def kaPv(*xXFf): Ux0P = Hy7s.path.join(Hy7s.path.dirname(xAKo), *xXFf) hiHK = open(Ux0P).read() I61V = ZbWC.search('^__version__ = [\'\\"]([^\'\\"]*)[\'\\"]', hiHK, ZbWC.M) if I61V: return I61V.group(1) raise RuntimeError('Unable to find version string.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(XNWQ: str) -> str:\n for zFiD in Ueki(XNWQ).splitlines():\n if zFiD.startswith('VERSION'):\n SAEY = '\"' if '\"' in zFiD else \"'\"\n return zFiD.split(SAEY)[1]\n raise RuntimeError('Unable to find version string.')", "def kaPv(XNWQ):\n for zFiD in Ueki(XNWQ).splitl...
[ "0.7298898", "0.7062011", "0.69600326", "0.67041105", "0.65719867", "0.653963", "0.6510022", "0.6506127", "0.64883304", "0.646948", "0.6449268", "0.6435933", "0.64012104", "0.63219714", "0.6284646", "0.6275555", "0.6259175", "0.62124336", "0.6194351", "0.6193877", "0.6187067"...
0.66895586
5
Runs through categorical features and transform them into embeding based on the `emb_szs` passed in the layer constructor. It then concatenates the remaining continuous features if any with the embeddings.
def KVH6(YKHO, _2OE, azUb=None): if YKHO.n_emb != 0: WKvO = [tTpl(_2OE[:, YRbF]) for YRbF, tTpl in enumerate(YKHO.embeds)] WKvO = ht2j.cat(WKvO, 1) if YKHO.n_cont != 0: WKvO = ht2j.cat([WKvO, azUb], 1) if YKHO.n_emb != 0 else azUb return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PzO7(Wc9F, fA6H):\n for eHNT in range(PSrQ.num_feature):\n fSOu = Wc9F[:, eHNT]\n mI7d = PSrQ.schema[eHNT]\n if eHNT == 0:\n if mI7d == 1:\n iArr = ZylS.reshape(fSOu, [-1, 1])\n else:\n iArr = ZylS.nn.embedding_lookup(T7pw[eHNT], ZylS....
[ "0.6440913", "0.6353511", "0.62025", "0.6025154", "0.60213983", "0.5978514", "0.5974704", "0.59275705", "0.5859687", "0.5819828", "0.5779351", "0.57464707", "0.57448894", "0.57263297", "0.57234025", "0.5722951", "0.56878304", "0.568084", "0.5665628", "0.5628793", "0.5609683",...
0.5753647
11
Tests to see if we can get 200 OK from the mainpage
def wM61(YKHO): bD7m = YKHO.baseurl + '/main' qv1X = dTAH.urlopen(bD7m, None, 3) YKHO.assertTrue(qv1X.getcode() == 200, '200 OK Not FOUND!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J7B2(YKHO):\n QHA5 = YKHO.client.get('/why/')\n YKHO.assertEqual(QHA5.status_code, 200)", "def J7B2(YKHO):\n vja_ = YKHO.client.get('/')\n YKHO.assertEqual(vja_.status_code, 200)", "def RS_x(YKHO):\n YKHO.assertEqual(200, YKHO.response.status_code)", "def amML():\n assert gILS.validate_...
[ "0.81059605", "0.8093917", "0.7981172", "0.78545433", "0.77842534", "0.7735612", "0.76078093", "0.76078093", "0.76078093", "0.76078093", "0.76078093", "0.76078093", "0.76078093", "0.76078093", "0.76078093", "0.76078093", "0.76078093", "0.76078093", "0.76078093", "0.76078093", ...
0.7327486
45
This tests for a 404 error for a page that dosent exist
def v4ew(YKHO): bD7m = YKHO.baseurl + '/do-not-implement-this-page-it-is-not-found' try: qv1X = dTAH.urlopen(bD7m, None, 3) YKHO.assertTrue(False, 'Should have thrown an HTTP Error!') except dTAH.HTTPError as e: YKHO.assertTrue(tTpl.getcode() == 404, '404 Not FOUND! %d' % tTpl.getcod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQ_b(YKHO):\n geh0 = YKHO.client.get('/testPage404')\n YKHO.assertEqual(geh0.status_code, 404)", "def r2Q6(YKHO):\n geh0 = YKHO.testapp.get('/notexistentpage/', expect_errors=True)\n YKHO.assertEqual(404, geh0.status_int)\n YKHO.assertIn('Page Not Found', geh0.normal_body)\n YKHO.assertEqua...
[ "0.8607289", "0.85733163", "0.8306053", "0.82206005", "0.81887835", "0.81649923", "0.81640923", "0.8119994", "0.80908245", "0.80429465", "0.80290645", "0.79893774", "0.79575026", "0.79219836", "0.7892429", "0.7892429", "0.7892429", "0.7892429", "0.7892429", "0.7892429", "0.78...
0.841503
2
Return a string expression equivalent of the operator on a dict (k=v arguments)
def OW5J(InUh=None, **B2fa): InUh = InUh or {} InUh.update(B2fa) return ', '.join((f'{G1Hx}={Ty9i}' for G1Hx, Ty9i in InUh.items()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W2ox(seET: str, UXsi: str, c163: str) -> str:\n Ujka: str = UXsi + seET + c163\n Aofo: str = str(MhEZ(Ujka))\n return Aofo", "def y8LK(seET):\n jzdc = int(QePW.args.get('a'))\n Fg_i = int(QePW.args.get('b'))\n return str(ZZSa[seET](jzdc, Fg_i))", "def lsX7(YKHO):\n Aofo = u'{}({}'.form...
[ "0.6099945", "0.60630375", "0.60050005", "0.59406036", "0.59213394", "0.58801216", "0.58591205", "0.57290256", "0.569687", "0.56651497", "0.5652674", "0.5607448", "0.5551745", "0.551428", "0.55024385", "0.5476369", "0.543353", "0.5427718", "0.5426144", "0.5398727", "0.5374343...
0.0
-1
Text vectorizer, create tokens
def zYum(oxOY): lFl6 = O5m4(standardize=QrZ9, split='whitespace', max_tokens=eQwX - 1, output_mode='int', output_sequence_length=Vk0V) lFl6.adapt(oxOY.map(lambda l5Ny, UXqs: l5Ny)) return lFl6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JE4J(l5Ny):\n\n def yri_(l5Ny):\n \"\"\"Removes special characters from text.\"\"\"\n return ZbWC.sub('[,.?\";:\\\\-!@#$%^&*()]', '', l5Ny)\n\n def RMQS(VOOV):\n \"\"\"Removes 50 most common words in the uk english.\n\n source: http://www.bckelk.ukfsn.org/words/uk1000n.html\n\...
[ "0.7171441", "0.7099546", "0.6921746", "0.68335986", "0.68323505", "0.6825057", "0.6809375", "0.67709047", "0.67664814", "0.67639273", "0.67632264", "0.6733125", "0.67215675", "0.670457", "0.6693301", "0.66904026", "0.6685953", "0.6656549", "0.66560495", "0.6651877", "0.66500...
0.6772762
7
Registers all BlobStore implementations in blob_store.REGISTRY.
def Dxi7(): Vx0q.REGISTRY[ZdTb.DbBlobStore.__name__] = ZdTb.DbBlobStore
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xy87(Fv2L=SAs9):\n WTmQ = 0\n zUWp = {}\n for N5gr, KeN9, gW_h in sgLf(Fv2L):\n try:\n dDK_ = KeN9.get_schemes()\n KeN9.configure(re_raise_bsc=False)\n except NotImplementedError:\n continue\n if not dDK_:\n raise Bx6I.BackendException(b...
[ "0.5639379", "0.5461694", "0.53282493", "0.53150374", "0.52821636", "0.52692735", "0.5258954", "0.5236919", "0.5226494", "0.52073973", "0.5133915", "0.51137054", "0.51076144", "0.50989604", "0.50717545", "0.5064849", "0.50588286", "0.5055358", "0.5029635", "0.50282997", "0.50...
0.8349487
0
Set up SDK testing environment (does not init datastore stubs, they are initialized in derived classes).
def FIMM(YKHO, *qIxc, **B2fa): YKHO.maxDiff = None Hy7s.environ['APPLICATION_ID'] = ygUe N7UL.apiproxy = N7UL.APIProxyStubMap() KClu = wCty.MemcacheServiceStub() N7UL.apiproxy.RegisterStub('memcache', KClu) B0PD = uBH1() N7UL.apiproxy.RegisterStub('user', B0PD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.runtime = h0Zx()\n YKHO.runtime.getEnvVarsService().set('DATAWIRE_TOKEN', 'something')\n YKHO.mdk = yFhB(YKHO.runtime)\n YKHO.mdk.start()\n YKHO.session = YKHO.mdk.session()", "def FCbF(YKHO):\n SGZM()\n from espresso import app\n from espresso import db\n from e...
[ "0.7519421", "0.74487585", "0.742547", "0.74189186", "0.73610145", "0.7332514", "0.7283132", "0.72267556", "0.722675", "0.7220677", "0.71995413", "0.71789145", "0.7175522", "0.71481407", "0.714493", "0.71327853", "0.7110181", "0.7109041", "0.70885736", "0.7081445", "0.7079823...
0.0
-1
Checks if a list of coordinates encloses a space Assumes that the there are lines connecting the points
def kG6d(Uqbu, jzdc=1): LkaD = set() ZSml = jzdc for YRbF in range(3, len(Uqbu)): ftz7, kYGz, pHXX, XOOk = (Uqbu[YRbF][1], Uqbu[YRbF - 1][1], Uqbu[YRbF][0], Uqbu[YRbF - 1][0]) for r845 in range(ZSml, YRbF): skBL, si3g, ajwV, o4D3 = (Uqbu[r845][1], Uqbu[r845 - 1][1], Uqbu[r845][0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qazr(jNOo, rdlD, fvDH):\n usx6 = []\n WfCS = []\n rKP_ = []\n rKEB = []\n for Fyji in jNOo:\n usx6.append(Fyji[0])\n WfCS.append(Fyji[1])\n rKP_.append(Fyji[0] + Fyji[1])\n rKEB.append(Fyji[1] - Fyji[0])\n if rdlD in usx6 or fvDH in WfCS:\n return False\n ...
[ "0.6867008", "0.66428745", "0.6635541", "0.66346705", "0.65911156", "0.6590678", "0.65286434", "0.64843804", "0.6444948", "0.6386605", "0.63792586", "0.6351182", "0.6337786", "0.6331208", "0.63113666", "0.63027155", "0.6301313", "0.629786", "0.629184", "0.6272483", "0.6263107...
0.0
-1
Checks if two line segments intersect
def LYA9(o4D3, si3g, ajwV, skBL, XOOk, kYGz, pHXX, ftz7): o4D3, ajwV, si3g, skBL = (o4D3, ajwV, si3g, skBL) if o4D3 < ajwV else (ajwV, o4D3, skBL, si3g) XOOk, pHXX, kYGz, ftz7 = (XOOk, pHXX, kYGz, ftz7) if XOOk < pHXX else (pHXX, XOOk, ftz7, kYGz) if o4D3 > XOOk: if o4D3 > pHXX or XOOk == pHXX: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9Pl(YKHO, cnXz, Ijzj):\n return YKHO._lines_overlap_on_x_axis(cnXz, Ijzj) and YKHO._lines_overlap_on_y_axis(cnXz, Ijzj)", "def E043(YKHO, EBgd, HpuQ):\n EBgd = P8oC.getvector(EBgd)\n if len(EBgd) == 2:\n EBgd = oyIN.r_[EBgd, 1]\n HpuQ = P8oC.getvector(HpuQ)\n if len(HpuQ) == 2:\n ...
[ "0.8074795", "0.8035403", "0.7889417", "0.78724647", "0.77725", "0.77366865", "0.77267706", "0.76940405", "0.7592977", "0.7549426", "0.75296545", "0.7434191", "0.7433662", "0.7384167", "0.73487717", "0.734032", "0.73243034", "0.72873294", "0.72332656", "0.7213088", "0.7196308...
0.7604079
8
Updates book_stats table with recently quoted books. Alternatively, this function is also used to remove book counts that were added by a comment that has been edited/deleted.
def qAa9(fDJq, ci1m=False): for jI4j in fDJq.items(): with b64E.cursor() as DpUl: if ci1m: DpUl.execute("UPDATE book_stats SET count = count - %d WHERE book = '%s'" % (jI4j[1], jI4j[0])) else: DpUl.execute("UPDATE book_stats SET count = count + %d WHER...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qAa9(fDJq, ci1m=False):\n for jI4j in fDJq.items():\n with b64E.cursor() as DpUl:\n if ci1m:\n DpUl.execute('UPDATE book_stats SET count = count - %s WHERE book = %s', [jI4j[1], jI4j[0]])\n else:\n DpUl.execute('UPDATE book_stats SET count = count +...
[ "0.6546895", "0.6453667", "0.5324176", "0.5258598", "0.49910733", "0.49900368", "0.4938874", "0.49354044", "0.4896993", "0.48550552", "0.48390737", "0.4838978", "0.48186976", "0.47816008", "0.47746855", "0.4727369", "0.47143131", "0.47093877", "0.46954587", "0.46913052", "0.4...
0.6523884
1
Sets the range (min, max, step) for a given axis (dimension)
def rVdw(YKHO, jDK_: int, range: Sequence[Union[int, float]]): if jDK_ < 0: jDK_ += YKHO.ndim if jDK_ < 0: raise ValueError(f'axis is negative, expected positive, got {jDK_}') if YKHO.range[jDK_] != range: YKHO._range[jDK_] = range YKHO.events.range(axis=jDK_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVdw(YKHO, jDK_: Union[int, Sequence[int]], wiDV: Union[Sequence[Union[int, float]], Sequence[Sequence[Union[int, float]]]]):\n if isinstance(jDK_, wpGN):\n jDK_ = YgVy(jDK_, YKHO.ndim)\n if YKHO.range[jDK_] != wiDV:\n lmzA = list(YKHO.range)\n lmzA[jDK_] = wiDV\n ...
[ "0.74639446", "0.6926373", "0.6769952", "0.67676216", "0.6681346", "0.666439", "0.66623724", "0.65573645", "0.6480818", "0.6307268", "0.6303263", "0.6168003", "0.611051", "0.60913205", "0.6055209", "0.60120696", "0.596351", "0.59462875", "0.5917372", "0.59132725", "0.5903167"...
0.7837815
0
Creates button images which will be drawn, so that button is displayed.
def ch2T(YKHO) -> None: YKHO._images = [a9eO.Surface((YKHO.rect.width, YKHO.rect.height)), a9eO.Surface((YKHO.rect.width, YKHO.rect.height))] YKHO._images[XjUD.DEFAULT_IMAGE.value].fill(YKHO.notClickedBtnColor) YKHO._images[XjUD.CLICKING_IMAGE.value].fill(YKHO.clickedBtnColor) YKHO.textSurface = YKHO.fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jHsu(YKHO):\n YKHO.easy_button = D04X(YKHO.ai_game, 'Easy', -1, 0)\n YKHO.normal_button = D04X(YKHO.ai_game, 'Normal', 0, 0)\n YKHO.hard_button = D04X(YKHO.ai_game, 'Hard', 1, 0)\n YKHO.quit_button = D04X(YKHO.ai_game, 'Quit', 0, 1)\n YKHO.buttons = (YKHO.easy_button, YKHO.normal_button, YKHO.ha...
[ "0.7276746", "0.72022796", "0.7180665", "0.7122168", "0.7083346", "0.7032445", "0.697748", "0.6973028", "0.6954986", "0.6950718", "0.6934626", "0.69233984", "0.6882736", "0.6857016", "0.68257254", "0.6672876", "0.6626077", "0.66205865", "0.66105074", "0.66083956", "0.6555704"...
0.7017815
6
Get the comparator for the canonicalized vectors. The normal ordering operation will be performed according to this comparator. It will be called with two canonicalized vectors for a boolean value. True should be returned if the first given vector is less than the second vector. The two vectors will be attempted to be ...
def GFDZ(YKHO) -> laHg.Callable[[Cd5b, Cd5b, aw0m], bool]: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qk7K(hQHm, jlSq):\n lIFM = NkkI(hQHm)\n q4ic = NkkI(jlSq)\n if lIFM < q4ic:\n return -1\n if lIFM > q4ic:\n return 1\n return 0", "def jmxi(YKHO, Elif):\n vsyK = sorted(YKHO.vector, reverse=True)\n DHHb = sorted(Elif, reverse=True)\n AFpR = False\n for S34b, rhw3 in z...
[ "0.6056182", "0.5581698", "0.5528394", "0.54842395", "0.546406", "0.5439525", "0.53201336", "0.5227858", "0.52059835", "0.51993674", "0.51711875", "0.51606274", "0.5146533", "0.5144471", "0.51360923", "0.5101601", "0.5080244", "0.5079309", "0.50661", "0.5050741", "0.5039348",...
0.6531568
0
A "subpath" may end but not start with a slash; it resembles a relative filesystem path >>> url_subpath('one/../two/./three/') 'two/three' Characters which you won't reasonably use for filesystem names
def uiaE(KCHu): e_b4 = Pmux.intersection(KCHu) if e_b4: e_b4 = ''.join(sorted(e_b4)) raise ValueError('%(s)r contains forbidden characters (%(forbidden)r)' % locals()) EESs = ENtY(KCHu).lstrip(VWe_) if EESs == LiBE: return '' if VWe_ != '/': return EESs.replace(VWe_, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NJ4L(pmON):\n if pmON.startswith('/'):\n pmON = pmON[1:]\n return pmON", "def WYgf(YKHO) -> str:\n return YKHO._sub_path", "def aPr_(pmON):\n return pmON.rpartition('/')[2]", "def aPr_(pmON):\n return pmON.replace('\\\\', '/').split('/')[-1]", "def T8mP(pmON):\n sdCG, J3uN = Om...
[ "0.66456586", "0.6506", "0.6364249", "0.6353511", "0.63010335", "0.62903214", "0.62415975", "0.6104406", "0.6095026", "0.60816115", "0.6044421", "0.6034333", "0.60331887", "0.60020095", "0.5974379", "0.597392", "0.5956679", "0.5952404", "0.59503317", "0.59230536", "0.5905778"...
0.8132422
0
Return the default processing scripts folder.
def MqBx(YKHO): if dCxt() < 21600: return SXv8.scriptsFolder() else: return SXv8.defaultScriptsFolder()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TCZx():\n return Hy7s.path.dirname(xAKo)", "def Hp8l():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))", "def aOrN(YKHO):\n return Hy7s.path.dirname(YKHO._modules['default'].path)", "def aPag(YKHO):\n return Hy7s.path.join(YKHO.path, 'Scripts' if HwRy.platform == 'win32' else 'bin')", ...
[ "0.75275505", "0.7366935", "0.6958117", "0.68545467", "0.67660016", "0.66449887", "0.66126776", "0.6573791", "0.6573791", "0.65540874", "0.6549097", "0.65199965", "0.64808655", "0.64676374", "0.6456232", "0.64434403", "0.644102", "0.6433796", "0.6427779", "0.642611", "0.64222...
0.7488148
1
Use this function to return True if the stock looks like a BUY, or False if it doesn't look like a BUY.
def GV6o(SYlA: yfinance.Ticker): uBhW = [Bp5D, gpVf] for IFUY in uBhW: try: if IFUY(SYlA): print(f'Buy rule function {IFUY} indicates a buy!') return True except ValueError as e: print(f'Problem examining the ticker: {tTpl}') re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GV6o(YKHO):\n return tBeC(1, YKHO.volume) > 0", "def zojr(YKHO) -> bool:\n return YKHO.on_hand == 0", "def nG7L(YKHO):\n return YKHO.producto.stock_disponible >= 0", "def GV6o(T4Wy):\n return tBeC(1, T4Wy.amount) >= 0", "def aW71(Emd4, yAX6: str) -> bool:\n raise NotImplementedError", ...
[ "0.7496954", "0.7030976", "0.69996554", "0.6902119", "0.68756086", "0.6839673", "0.6797274", "0.66290104", "0.6612863", "0.6494335", "0.639596", "0.63364214", "0.6320956", "0.6241624", "0.6163118", "0.6121584", "0.6096025", "0.6081908", "0.6066778", "0.60638624", "0.6054594",...
0.69308317
3
Return a formatted time string
def ct8j(E3oo=None, format='%Y%m%d-%H%M%S'): jmHs = ITS7.strftime(format, ITS7.localtime(E3oo if E3oo else ITS7.time())) return jmHs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bc_l():\n return ITS7.strftime(ix3z)", "def m7L9() -> str:\n return ITS7.strftime(mxlI)", "def m7L9() -> str:\n return F803('%H:%M:%S')", "def YCc8():\n return JRYC.strftime(JRYC.now(), '%H:%M:%S')", "def Px7F(YKHO):\n try:\n if not YKHO._time:\n raise ValueError\n ...
[ "0.8582728", "0.8326897", "0.8286512", "0.8136121", "0.8118602", "0.8112331", "0.7962648", "0.791475", "0.7895362", "0.7871704", "0.78638715", "0.7854737", "0.77074414", "0.76589286", "0.7644815", "0.7637068", "0.7629804", "0.7628805", "0.7626787", "0.7607554", "0.7582667", ...
0.7625369
19
Return a humanfriendly string of a timestamp e.g.
def cee0(E3oo=None): kJnN = str(ITS7.asctime(ITS7.localtime(E3oo if E3oo else ITS7.time()))) return kJnN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def saqZ():\n HVay = ITS7.time()\n _PYT = repr(HVay).split('.')[1]\n return ITS7.strftime('%Y-%m-%d-%H-%M-%S-{}'.format(_PYT), ITS7.gmtime(HVay))", "def pqi0():\n import time\n return str(time.strftime('%a %d %b %Y %I:%M:%S %p'))", "def DjT6(auAJ=None):\n if auAJ is None:\n auAJ = qcWV...
[ "0.8145433", "0.8096682", "0.7812531", "0.7723252", "0.7702962", "0.76912314", "0.76646864", "0.76629126", "0.7638235", "0.7635258", "0.763414", "0.7633164", "0.7626408", "0.7608596", "0.75712985", "0.7525881", "0.7518307", "0.75060904", "0.7489307", "0.7472612", "0.7417303",...
0.7154284
46
Return a humanfriendly string of ETA time and left time e.g.
def vkHD(vXWl): BlCl = cee0(ITS7.time() + vXWl) TK8C = qcWV.timedelta(seconds=int(vXWl)) return (str(BlCl), str(TK8C))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bAZe(vXWl):\n HPWe = vXWl // 60\n vXWl %= 60\n qEd2 = HPWe // 60\n HPWe %= 60\n XMGn = qEd2 // 24\n qEd2 %= 24\n\n def B0gN(r9Hf, mWFP):\n return '{} {}{}'.format(str(r9Hf), mWFP, 's' if r9Hf > 1 else '')\n if XMGn > 0:\n tO9_ = B0gN(XMGn, 'day')\n if qEd2 > 0:\n ...
[ "0.6953343", "0.6876315", "0.6664446", "0.666122", "0.65497065", "0.65098816", "0.6476624", "0.63067955", "0.62974834", "0.6281576", "0.626519", "0.6263413", "0.62253726", "0.61193764", "0.6117047", "0.61100626", "0.6107", "0.6055907", "0.60470474", "0.6043541", "0.601723", ...
0.74234664
0
The checkbox class draws an interactable checkbox on screen.
def FIMM(YKHO, WKvO, LVAh, mWFP): YKHO.x = WKvO YKHO.y = LVAh YKHO.width = 20 YKHO.height = 20 YKHO.name = mWFP YKHO.checked = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nsuM(*qIxc, **B2fa):\n return nAU3.RendererNative_DrawCheckBox(*qIxc, **B2fa)", "def AubB(dsHk):\n return FvrG.uiCheckboxChecked(dsHk)", "def uKt5(_AKB, UXqs='', oeNL=QCtM, zNig=Vjkb, _Cnz=0, wEf2=gJVE, mWFP='checkBox', id=tXeu, Ahgi=None, Y9ei=None):\n l69l = lnPd.CheckBox(_AKB, id, UXqs, oeNL, z...
[ "0.72254366", "0.6618406", "0.6598507", "0.63907", "0.63171124", "0.6294901", "0.6200432", "0.6115143", "0.61059535", "0.60366446", "0.5946683", "0.5944035", "0.5801725", "0.5790992", "0.57825196", "0.5747486", "0.5705817", "0.5701623", "0.5699198", "0.56629324", "0.5638513",...
0.5419606
34
Pack serialized bytes into buff starting at offset ``offset``
def rGon(YKHO, yxzR, vgXP): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rGon(YKHO, yxzR, vgXP):\n if YKHO.compression_type == mFeC.NONE:\n yEHD = YKHO._messages\n else:\n if YKHO._compressed is None:\n YKHO._compressed = YKHO._get_compressed()\n yEHD = [YKHO._compressed]\n for Ol8d in yEHD:\n pRxi = len(Ol8d)\n BlNT.pack_into(...
[ "0.7432984", "0.73541933", "0.6885543", "0.62027293", "0.62001574", "0.6142268", "0.61325747", "0.6128324", "0.6121664", "0.60242957", "0.60021704", "0.598969", "0.5961675", "0.5955226", "0.57715744", "0.57044", "0.5668511", "0.56669444", "0.5649528", "0.56240004", "0.5486048...
0.7774521
0
Test if `atoms1` and `atoms2` are clones of each other.
def q6Qb(T96C, Pn2m): for XOOk, pHXX in WhY1.zip_longest(T96C, Pn2m): assert XOOk is not pHXX assert XOOk.get_id() == pHXX.get_id() assert XOOk.get_charge() == pHXX.get_charge() assert XOOk.__class__ is pHXX.__class__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UqwJ(YKHO, hKx3):\n assert hKx3.clone() is hKx3", "def vnvo(g057):\n if isinstance(g057, str) and g057.strip().lower() in ('clone', 'cloned', 'same'):\n return True\n return False", "def pmXL(YKHO, zdPH, tyYw):\n from scipy.spatial import cKDTree as plLA\n from random import shuffle\n...
[ "0.687666", "0.628392", "0.616162", "0.59765905", "0.5909758", "0.5881605", "0.5853853", "0.58409965", "0.58334446", "0.58163756", "0.57761455", "0.5755352", "0.5750811", "0.5686123", "0.567154", "0.56668353", "0.5629731", "0.56280994", "0.56103307", "0.5609737", "0.5607436",...
0.75066185
0
Creates a new heapy object, sets it to begin profiling, and returns to caller.
def lsci(YKHO): A90d = XKps() A90d.setrelheap() return A90d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.heap = [None]", "def FIMM(YKHO):\n YKHO.heap = []", "def FIMM(YKHO):\n YKHO.heap = []", "def FIMM(YKHO):\n YKHO.heap = []", "def FIMM(YKHO):\n YKHO.heapList = [0]\n YKHO.currentSize = 0", "def FIMM(YKHO):\n YKHO.heap = []\n YKHO.stack = []", "def FIMM(YKHO...
[ "0.6061616", "0.6059884", "0.6059884", "0.6059884", "0.5938121", "0.58225906", "0.5751", "0.5707545", "0.56855077", "0.55966604", "0.55407274", "0.548235", "0.5480643", "0.54551744", "0.5432851", "0.542534", "0.53530663", "0.53280884", "0.5321047", "0.527236", "0.52706534", ...
0.7852354
0
Create OperatorConfig from json.
def pktP(Emd4, NArs: Dict) -> 'OperatorConfig': YfwU = NArs.get('type') if YfwU: NArs.pop('type') return Emd4(YfwU, NArs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lUPU(Emd4, If_q: str) -> 'ResolverOp':\n return Emd4.create(**vk_W.loads(If_q))", "def pktP(Emd4, _Fei):\n NArs = qQXR.loads(qQXR.dumps(_Fei), object_hook=LRn8)\n return Emd4(NArs.data, NArs.train, NArs.model)", "def jG8h(Emd4, KGvk):\n GPtr = Shbt()\n for H5ew, BWXx in KGvk.items():\n ...
[ "0.71167934", "0.66208285", "0.6053397", "0.5826495", "0.5809321", "0.58002776", "0.57553613", "0.5734468", "0.5697241", "0.56940156", "0.5616187", "0.55429226", "0.5535976", "0.5535966", "0.551536", "0.5514549", "0.54946846", "0.54946846", "0.54946846", "0.54847646", "0.5481...
0.78302073
0
Read a file in as a pandas dataframe
def KE7t(YKHO, Ux0P, **B2fa): B2fa['index_col'] = B2fa.pop('index_col', 0) B2fa['header'] = B2fa.pop('header', 0) sh0w = YKHO.file_format_settings.copy() sh0w.update(B2fa) if Ux0P in YKHO.file_format_overrides: sh0w.update(YKHO.file_format_overrides[Ux0P]) return rLdf.read_csv(YKHO.input...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eyt6(YKHO, qaEx: str) -> rLdf.DataFrame:\n return rLdf.read_csv(qaEx, sep='\\t')", "def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z", "def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z", "def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z", "def Nwr9(Izn...
[ "0.8326751", "0.7812918", "0.7812918", "0.7812918", "0.76886165", "0.75824964", "0.7562956", "0.7368797", "0.733999", "0.7331001", "0.7312223", "0.72934407", "0.7290116", "0.724696", "0.72234696", "0.7190916", "0.7159741", "0.71580565", "0.7145618", "0.71403086", "0.712144", ...
0.6754843
61
Getter. Returns current config dictionary
def lWpF(YKHO): return YKHO.cfg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO) -> dict:\n return PSrQ.get()", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return ...
[ "0.86454815", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837", "0.84618837"...
0.0
-1
Adds a copy of each Range or RangeSet in the given iterable to this RangeSet. Raises a `TypeError` if the argument is not iterable. This method works identically to `.add()` for RangeSets only.
def FJj_(YKHO, OxJJ: Iterable[Rangelike]) -> None: YKHO._ranges = Ly3T._merge_ranges(YKHO._ranges + (AVsp(Mkmy) for Mkmy in OxJJ))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, OxJJ):\n raise NotImplementedError()", "def FJj_(YKHO, OxJJ):\n for ZfUD in OxJJ:\n YKHO.append(ZfUD)", "def H2v5(YKHO, xlLU: Rangelike) -> None:\n if isinstance(xlLU, Ly3T):\n YKHO.extend(xlLU)\n return\n elif a0Kp(xlLU):\n raise ValueError('argument is i...
[ "0.6860782", "0.63996875", "0.6352269", "0.62559605", "0.609729", "0.60079956", "0.5936614", "0.5871992", "0.5822301", "0.58016634", "0.5793024", "0.56846607", "0.56760025", "0.56237525", "0.5505183", "0.54798245", "0.5439465", "0.5384353", "0.53824985", "0.5381993", "0.53804...
0.7217895
0
Removes the entire contents of the given RangeSet from this RangeSet. This method will only remove a single RangeSet (or Range) from this RangeSet at a time. To remove a list of Rangelike objects from this RangeSet, use .difference_update() instead.
def FaAz(YKHO, xlLU: Rangelike) -> None: if isinstance(xlLU, Ly3T): ycBG = YKHO.copy() for Mkmy in xlLU: ycBG.discard(Mkmy) YKHO._ranges = ycBG._ranges return xlLU = AVsp(xlLU) kMLo = YKHO._ranges.first while kMLo: Gw9i = kMLo.value.difference(xlLU) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E310(YKHO, t1_o: Union[Rangelike, Iterable[Rangelike]]) -> None:\n YKHO.discard(Ly3T._to_rangeset(t1_o))", "def by6d(YKHO, t1_o: Union[Rangelike, Iterable[Rangelike]]) -> 'RangeSet':\n sDMM = YKHO.copy()\n sDMM.difference_update(Ly3T(t1_o))\n return sDMM", "def _1fz(YKHO, t1_o: Union[Rangelike,...
[ "0.75519866", "0.7201307", "0.68198085", "0.6792012", "0.6649917", "0.6369244", "0.6320715", "0.6281404", "0.62113464", "0.61589414", "0.608959", "0.5980783", "0.58486617", "0.5833409", "0.5780234", "0.5638507", "0.5621895", "0.55278355", "0.5490301", "0.5468529", "0.54576856...
0.69272065
2
Returns `True` if there is no overlap between this RangeSet and the given RangeSet.
def d3QJ(YKHO, Elif: Union[Rangelike, Iterable[Rangelike]]) -> bool: Elif = Ly3T._to_rangeset(Elif) return all((zlBh.isdisjoint(Egs4) for zlBh in YKHO._ranges for Egs4 in Elif._ranges))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gfKO(YKHO, Elif):\n return not YKHO.overlaps(Elif)", "def oMcT(YKHO) -> bool:\n return YKHO._ranges.isempty() or all((Mkmy.isempty() for Mkmy in YKHO._ranges))", "def VCGG(YKHO):\n AJik = YKHO._get_atomic_overlaps()\n return len(AJik) > 0", "def PzH4(YKHO):\n return False", "def yHH9(N7s...
[ "0.6857287", "0.6833139", "0.64820707", "0.6352934", "0.62335783", "0.6205679", "0.6179725", "0.60719925", "0.60383254", "0.59528255", "0.59245557", "0.591833", "0.5908017", "0.5857745", "0.58318865", "0.5828083", "0.58174145", "0.5814212", "0.5803012", "0.5802183", "0.579712...
0.708128
0
Returns a RangeSet containing all items not present in this RangeSet
def y8ay(YKHO) -> 'RangeSet': return Ly3T(AVsp()) - YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def by6d(YKHO, t1_o: Union[Rangelike, Iterable[Rangelike]]) -> 'RangeSet':\n sDMM = YKHO.copy()\n sDMM.difference_update(Ly3T(t1_o))\n return sDMM", "def y8ay(YKHO, CBbI):\n return YKHO.all_n.difference(CBbI)", "def X6V3(YKHO) -> fHNa[riCw]:\n return set(YKHO.iter_unsolved_cells())", "def X6V3...
[ "0.6852944", "0.6513064", "0.6475641", "0.6475641", "0.6383193", "0.6335221", "0.63335925", "0.6311771", "0.6181002", "0.61671466", "0.6086708", "0.6085837", "0.6060088", "0.60333467", "0.6020219", "0.6004851", "0.596275", "0.59580046", "0.5935628", "0.59124553", "0.5909502",...
0.76605964
0
Returns True if this RangeSet contains no values, and False otherwise
def oMcT(YKHO) -> bool: return YKHO._ranges.isempty() or all((Mkmy.isempty() for Mkmy in YKHO._ranges))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsmZ(YKHO):\n return not YKHO.values", "def FBfn(YKHO):\n return not bool(YKHO.values)", "def oMcT(YKHO):\n if YKHO.values is None or YKHO.values.empty:\n return True", "def FBfn(YKHO):\n return len(YKHO.values) == 0", "def FBfn(YKHO):\n return not any(YKHO.counts)", "def FBfn(Y...
[ "0.8354014", "0.8135113", "0.8071426", "0.7933859", "0.7781738", "0.77647954", "0.7733816", "0.7577532", "0.74954623", "0.7395585", "0.7365703", "0.7360949", "0.7312283", "0.72111726", "0.7166532", "0.7166532", "0.7130271", "0.7123778", "0.7123778", "0.7123778", "0.7105078", ...
0.78404826
4
Returns a shallow copy of this RangeSet
def jth9(YKHO) -> 'RangeSet': return Ly3T(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return zGgl(YKHO)", "def jth9(YKHO):\n return set(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(*YKHO.sets)", "def _qLf(YKHO):\n return YKHO.copy()", "def jth9(YKHO):\n return jth9.deepcopy(YKHO)", "def jth9(YKHO):\n return jth9.deepcopy(YKHO)", "def jth9(YKHO):\n...
[ "0.8222557", "0.78674966", "0.7321405", "0.73209566", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", "0.73169273", ...
0.8991917
0
Returns True if this RangeSet's ranges exactly match the other RangeSet's ranges, or if the given argument is a Range and this RangeSet contains only one identical Range
def xa14(YKHO, Elif: Union[Range, 'RangeSet']) -> bool: if isinstance(Elif, Ly3T): return len(YKHO._ranges) == len(Elif._ranges) and all((j47j == nhLb for j47j, nhLb in zip(YKHO._ranges, Elif._ranges))) elif isinstance(Elif, AVsp): return len(YKHO._ranges) == 1 and YKHO._ranges[0] == Elif el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mkKD(YKHO, Elif):\n return YKHO.begin == Elif.begin and YKHO.end == Elif.end", "def d3QJ(YKHO, Elif: Union[Rangelike, Iterable[Rangelike]]) -> bool:\n Elif = Ly3T._to_rangeset(Elif)\n return all((zlBh.isdisjoint(Egs4) for zlBh in YKHO._ranges for Egs4 in Elif._ranges))", "def jmxi(YKHO, Elif: Unio...
[ "0.76933897", "0.7182602", "0.701377", "0.68410903", "0.6677893", "0.6616966", "0.65925187", "0.65873253", "0.65475404", "0.6537954", "0.65358895", "0.64484197", "0.64422154", "0.64335835", "0.6395189", "0.63891286", "0.6368546", "0.635968", "0.6357579", "0.6336377", "0.63142...
0.85723513
0