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
Numpy implementation of EMA
def tVz4(hkxX, KnxT): if KnxT >= len(hkxX): ch6h = oyIN.mean(oyIN.asarray(hkxX)) jzdc = [ch6h] * len(hkxX) else: _mSQ = oyIN.exp(oyIN.linspace(-1.0, 0.0, KnxT)) _mSQ /= _mSQ.sum() jzdc = oyIN.convolve(hkxX, _mSQ, mode='full')[:len(hkxX)] jzdc[:KnxT] = jzdc[KnxT] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RU5E(nPrm, ywwl):\n if ywwl > 1.0:\n Cwt5 = 2.0 / (ywwl + 1)\n else:\n Cwt5 = ywwl\n E6lE = oyIN.zeros_like(nPrm)\n P6bq = oyIN.zeros(nPrm.shape[1])\n for YRbF in range(nPrm.shape[0]):\n WWDz = nPrm[YRbF]\n P6bq = P6bq * (1 - Cwt5) + WWDz * Cwt5\n E6lE[YRbF] = ...
[ "0.7444644", "0.744436", "0.70300806", "0.671687", "0.6713028", "0.6621713", "0.65619296", "0.65619296", "0.65619296", "0.65619296", "0.65619296", "0.65473163", "0.65283304", "0.6510321", "0.6504755", "0.6491691", "0.6442865", "0.6398305", "0.6351705", "0.6327668", "0.6312576...
0.0
-1
Extended the original DeepLight model with ResNet10 as feature extractor backbone.
def f55J(**B2fa): return n5BB(**B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jm84():\n Wnjt = a7Lb.output\n ccFl = a7Lb.get_layer(Vglw['block5']).output\n Q62L = aPd6.Conv2D(filters=256, kernel_size=3, activation='relu', padding='same', kernel_initializer=DbxN.HeUniform())(Wnjt)\n Q62L = aPd6.MaxPool2D()(Q62L)\n IMLK = aPd6.Conv2D(filters=256, kernel_size=3, activation='...
[ "0.6285092", "0.6064645", "0.5929277", "0.5853709", "0.58443695", "0.5817681", "0.57951593", "0.5781686", "0.5731268", "0.57032436", "0.5701028", "0.5670522", "0.5661566", "0.56307954", "0.5616979", "0.55861694", "0.55760646", "0.55760646", "0.5555411", "0.55391896", "0.55102...
0.6718115
0
Clear the vertices and edges of the network, without clearing the other elements in the layer.
def Y7Bk(YKHO): YKHO.clear_vertices() YKHO.clear_edges()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7Bk(YKHO):\n YKHO.clear_nodes()\n YKHO.clear_edges()\n YKHO.clear_nodelabels()\n YKHO.clear_edgelabels()", "def Y7Bk(YKHO):\n YKHO.adj.clear()\n YKHO.node.clear()\n YKHO.graph.clear()", "def pSmj(YKHO):\n raise NotImplementedError", "def Y7Bk(YKHO):\n YKHO._adj.clear()\n YK...
[ "0.7627789", "0.7594358", "0.75439936", "0.75292146", "0.75006145", "0.74741495", "0.74680585", "0.74303335", "0.7401723", "0.7347235", "0.7326888", "0.73117095", "0.7195663", "0.71836275", "0.7165399", "0.71568465", "0.7141486", "0.7133484", "0.71067625", "0.70155054", "0.69...
0.80758464
0
Get a copy of the environment.
def M57o(YKHO): if YKHO._env: return qOJS.loads(qOJS.dumps(YKHO._env)) else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return YKHO.__class__(YKHO._environ.copy(), YKHO._cwd, **YKHO._specials)", "def i3ak(YKHO) -> 'Environment':\n jth9 = _qLf(YKHO)\n return jth9", "def E6J6(i2I_):\n global env\n AOBR = _qLf(sEAN)\n nhfz(i2I_)\n bmt5 = _qLf(sEAN)\n for H5ew, BWXx in bmt5.iteritems():\n ...
[ "0.7629378", "0.74810356", "0.7337513", "0.6786852", "0.6719404", "0.66741353", "0.6619953", "0.6614518", "0.65818244", "0.6505915", "0.6500579", "0.64301777", "0.6387283", "0.6376036", "0.63668513", "0.636502", "0.62965244", "0.62870294", "0.6240236", "0.6230593", "0.6230593...
0.76708
0
Convert an unformatted grid of single digit unspaced numbers into a list of ints
def VYta(lckU): rLWT = [] lckU = lckU.split('\n') for rdlD in lckU: rdlD = rdlD.strip() if rdlD is not '': for FGW3 in rdlD: rLWT.append(int(FGW3)) return rLWT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SN7X(zFiD):\n tpio, zFiD = zFiD.split(':')\n MEWY, l003 = map(int, tpio.split('x'))\n usx6 = (zFiD[YRbF * MEWY:(YRbF + 1) * MEWY] for YRbF in range(l003))\n return (MEWY * l003, [list(map(int, rdlD)) for rdlD in usx6])", "def QNlT(G1Hx):\n return list(map(int, str(G1Hx).replace('(', '').replac...
[ "0.67388356", "0.6436947", "0.6417458", "0.6398583", "0.63626444", "0.6322522", "0.63021994", "0.6301428", "0.625095", "0.62434274", "0.62345177", "0.619328", "0.61932737", "0.6185555", "0.61824155", "0.6127805", "0.61173373", "0.6115299", "0.6101215", "0.6096492", "0.6095754...
0.8235388
0
Produces a gaussian kernel
def S7wa(WTkW): zNig = int(oyIN.ceil(1 + 8 * WTkW)) zNig = zNig // 2 WKvO, LVAh = oyIN.mgrid[-zNig:zNig + 1, -zNig:zNig + 1] WZcn = oyIN.exp(-((WKvO ** 2 + LVAh ** 2) / (2 * WTkW ** 2))) k0lF = 1 / WZcn.sum() BB2m = k0lF * WZcn return BB2m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VU7a(EcVT, WTkW):\n return oyIN.exp(-EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(EcVT, WTkW):\n return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(Emd4, WKvO, epBp, WTkW):\n return oyIN.exp(-oyIN.dot(WKvO - epBp, WKvO - epBp) / (2 * WTkW ** 2))", "def VU7a(WKvO, LVAh, WTkW=5.0):\n ...
[ "0.84601617", "0.8259581", "0.79580235", "0.792036", "0.78395635", "0.7815432", "0.7814942", "0.7799896", "0.76318604", "0.7596371", "0.758906", "0.7582605", "0.7542962", "0.7505824", "0.75006366", "0.74948835", "0.74751717", "0.74592793", "0.74575114", "0.74479294", "0.74449...
0.7368286
30
Creates or updates (or deletes) the enrollment loss based on the reason for not passing the enrollment checklist.
def eaFx(YKHO, BEic): from bhp066.apps.bcpp_subject.models.subject_consent import SubjectConsent b3xd = [] dDEz = enlf(_c1T.today(), YKHO.dob).years if not SubjectConsent.objects.filter(household_member=YKHO.household_member): if not (dDEz >= 16 and dDEz <= 64): b3xd.append('Must be ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YIoF(YKHO, lo9Y):\n GSnR = YKHO.decisions = idka()\n GSnR.fail_workflow_execution(reason=str(lo9Y)[:l4AZ])\n YKHO.flush()", "def heju(YKHO):\n UXO9 = NqxT(removals=[1, 5, 6, 7, 40], additions=[(0, 666), (13, 667)])\n yrSN = YKHO.makeModifiedDatabase(UXO9)\n YKHO.assertNotEqual(yrSN, YKHO.or...
[ "0.521012", "0.5160748", "0.5136918", "0.5133788", "0.5115816", "0.51079404", "0.5092655", "0.5061971", "0.50371414", "0.501261", "0.50096524", "0.49342912", "0.4933545", "0.4906507", "0.48821843", "0.48754188", "0.48672917", "0.4856616", "0.48534372", "0.48456416", "0.484204...
0.46255088
65
Compute softmax values for each sets of scores in x. Rows are scores for each class. Columns are predictions (samples).
def N93T(WKvO): j1LR = oyIN.exp(oyIN.asarray(WKvO)) return j1LR / j1LR.sum(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye", "def N93T(WKvO):\n TK2h = []\n fo...
[ "0.7706358", "0.7482654", "0.7373793", "0.7301269", "0.7268573", "0.7191174", "0.71589243", "0.71560544", "0.7129373", "0.7116939", "0.71138245", "0.71108663", "0.7110128", "0.71066505", "0.7096354", "0.7088936", "0.7080777", "0.70762974", "0.7075441", "0.7075441", "0.7075441...
0.7761894
1
tokens_and_candidates is the return from a previous call to generate_sentence_entity_candidates. Converts the dict to a dict of fields usable with allennlp.
def CehE(YKHO, NsdH): V_D6 = {} V_D6['tokens'] = qp6h([_J2v(a1PO, text_id=YKHO.bert_tokenizer.vocab[a1PO]) for a1PO in NsdH['tokens']], token_indexers=YKHO._bert_single_id_indexer) V_D6['segment_ids'] = UwbD(oyIN.array(NsdH['segment_ids']), dtype=oyIN.int) PVvQ = {} for H5ew, pUau in NsdH['candidate...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DUdy(Novh, K9NE):\n A97Q = K9NE(Novh)\n j2zV = {}\n tJP2 = ['DATE', 'PERSON', 'ORG', 'MONEY', 'GPE']\n for Dd4V in tJP2:\n j2zV[Dd4V] = [LEXu.text for LEXu in A97Q.ents if LEXu.label_ in {Dd4V}]\n return j2zV", "def yQtQ(YKHO, Lo35: List[KBEntity]):\n oOHw = dict()\n dCXm = oRi_(s...
[ "0.57313466", "0.5663687", "0.5513647", "0.5423357", "0.53400415", "0.5319772", "0.5273736", "0.52478665", "0.5232568", "0.51782626", "0.517052", "0.516532", "0.51567733", "0.5148759", "0.5141991", "0.5122898", "0.5107655", "0.5065861", "0.506378", "0.5045578", "0.5037256", ...
0.78420985
0
generic_func.register(type, func) > func Registers a new implementation for the given `type` on a `generic_func`.
def gr_i(cM24, JfyU=None): if JfyU is None: return lambda eHNT: gr_i(cM24, eHNT) nqEK[vGEJ(cM24)] = JfyU return JfyU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gr_i(Emd4, JfyU):\n Emd4.functions[JfyU.__name__] = JfyU\n return JfyU", "def gr_i(JfyU):\n wOcm[JfyU.__name__] = JfyU\n return JfyU", "def gr_i(JfyU):\n wOcm[JfyU.__name__] = JfyU\n return JfyU", "def gr_i(JfyU):\n wOcm[JfyU.__name__] = JfyU\n return JfyU", "def gr_i(JfyU):\n ...
[ "0.73039937", "0.7073225", "0.7073225", "0.7073225", "0.7073225", "0.7073225", "0.7073225", "0.68088967", "0.6749332", "0.6724741", "0.6714468", "0.67019546", "0.6634439", "0.6625252", "0.6608019", "0.66045815", "0.65493613", "0.6546247", "0.6524438", "0.6490142", "0.6448713"...
0.754829
0
Check if callback is a callable or a list of callables.
def WDSK(db6b): if db6b is not None: if isinstance(db6b, xh3d): return [db6b] elif isinstance(db6b, list) and all([isinstance(Z9rn, xh3d) for Z9rn in db6b]): return db6b else: raise ValueError('callback should be either a class or a list of classes with in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WDSK(db6b):\n if db6b is not None:\n if isinstance(db6b, YrBT):\n return [db6b]\n elif isinstance(db6b, list) and all([isinstance(Z9rn, YrBT) for Z9rn in db6b]):\n return db6b\n else:\n raise ValueError('callback should be either a callable or a list of ...
[ "0.88769317", "0.7351346", "0.7254265", "0.71349674", "0.6845553", "0.666098", "0.6652051", "0.64984816", "0.64736265", "0.6457575", "0.6385125", "0.6374822", "0.6296866", "0.6285365", "0.6278854", "0.6274831", "0.62589496", "0.6252744", "0.61876416", "0.6180749", "0.6147973"...
0.7822212
1
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.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
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
Converts score to prediction.
def YEmv(YKHO, eHNT): eHNT = eHNT.reshape(-1, 1) return oyIN.sign(eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, jQ3Z):\n jQ3Z['score'] = jQ3Z['text'].map(YKHO.__polarity).map(YKHO.__predict_prob)\n return jQ3Z", "def o3Uj(YKHO, BWXx):\n return YKHO.model.predict(BWXx)", "def YEmv(YKHO, cCrA=[0, 0, 0]):\n return oyIN.array(YKHO.model.predict(cCrA)).argmax(axis=1)", "def YEmv(YKHO):\n wkQP,...
[ "0.70548254", "0.6898621", "0.68881893", "0.6760231", "0.67306197", "0.669976", "0.6646131", "0.6562402", "0.65582573", "0.6554876", "0.65364295", "0.6517999", "0.65139616", "0.6511356", "0.650821", "0.64960665", "0.64918774", "0.6482109", "0.6482109", "0.6482109", "0.6463355...
0.0
-1
Total area for the chain
def f0tD(YKHO): OgbE = 0 Aofo = 0 for tTpl, YRbF in YKHO: Aofo += len(YRbF) * (len(tTpl) - OgbE) OgbE = len(tTpl) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aw0V(YKHO):\n pass", "def f0tD(YKHO):\n return oyIN.sum(YKHO.areas)", "def df9S(YKHO):\n return YKHO._area_total", "def __AN(YKHO):\n pass", "def f0tD(YKHO):\n return YKHO.sl ** 2", "def Egj0(YKHO):\n return YKHO.class_area.sum()", "def GagE(YKHO):\n zOn6 = sum([YKHO.vertex[YRb...
[ "0.77423805", "0.7367454", "0.735779", "0.7331578", "0.7330339", "0.7328653", "0.7285104", "0.72661126", "0.71971846", "0.71703047", "0.7143965", "0.71306527", "0.7123953", "0.7119685", "0.7090606", "0.7090606", "0.7090606", "0.70866764", "0.70730305", "0.70618504", "0.701630...
0.0
-1
Instead of breaking invariant by direct removal of an entry, mark the entry as "REMOVED" in 'heap' and remove it from 'entry_finder'. Logic in 'pop()' properly takes care of the deleted nodes. Returns the priority.
def PTpj(YKHO, Q6kx): bTKY = YKHO.entry_finder.pop(Q6kx) bTKY[-1] = YKHO.REMOVED return bTKY[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN(YKHO):\n while YKHO.heap:\n Ey19, Q6kx = _eVy.heappop(YKHO.heap)\n if Q6kx != YKHO.REMOVED:\n del YKHO.entry_finder[Q6kx]\n return (Ey19, Q6kx)\n raise KeyError('pop from an empty priority queue')", "def BEuN(YKHO):\n while YKHO.heap:\n Ey19, Q6kx = _e...
[ "0.716957", "0.7117055", "0.6750602", "0.6650982", "0.66380906", "0.6624769", "0.6557733", "0.65140486", "0.64915043", "0.6423346", "0.64049184", "0.63040096", "0.6289347", "0.6279849", "0.62665033", "0.62521064", "0.6226989", "0.6224197", "0.622394", "0.6219638", "0.6204535"...
0.63119364
11
Get the best conceptchain.
def Jp5N(YKHO): n1jH = YKHO.preseriate() n1jH.fit(YKHO.data.values) EqBn = qQ_V(YKHO.data.index[n1jH.row_i], YKHO) return EqBn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jp5N(YKHO):\n tlxW = YKHO.conceptrec([])\n es2x = YKHO.conceptrec(YKHO.data.columns)\n for jvSB in YKHO.dijkstra_gen(tlxW):\n if jvSB.intent == es2x.intent:\n return fxti(jvSB)", "def Jp5N(YKHO):\n tlxW = YKHO.conceptrec([])\n es2x = YKHO.conceptrec(YKHO.data.columns)\n fo...
[ "0.7025106", "0.7025106", "0.6798377", "0.66443205", "0.6352845", "0.6338557", "0.62361765", "0.6190764", "0.61632013", "0.6141289", "0.6097586", "0.59687364", "0.5921478", "0.5895984", "0.5865161", "0.5852796", "0.5808191", "0.5796124", "0.5788636", "0.572884", "0.5700004", ...
0.6755826
3
Get the best conceptchain.
def Jp5N(YKHO): return YKHO.transformer.fit_transform(YKHO.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jp5N(YKHO):\n tlxW = YKHO.conceptrec([])\n es2x = YKHO.conceptrec(YKHO.data.columns)\n for jvSB in YKHO.dijkstra_gen(tlxW):\n if jvSB.intent == es2x.intent:\n return fxti(jvSB)", "def Jp5N(YKHO):\n tlxW = YKHO.conceptrec([])\n es2x = YKHO.conceptrec(YKHO.data.columns)\n fo...
[ "0.7025106", "0.7025106", "0.6798377", "0.6755826", "0.6352845", "0.6338557", "0.62361765", "0.6190764", "0.61632013", "0.6141289", "0.6097586", "0.59687364", "0.5921478", "0.5895984", "0.5865161", "0.5852796", "0.5808191", "0.5796124", "0.5788636", "0.572884", "0.5700004", ...
0.66443205
4
Returns the minimum depth of a leaf with value X in TREE, False if not found. >>> search([2, [3, 4], [1, [5, [3]]]], 3) 2 >>> search([2, [3, 4], [1, [5, [3]]]], 6) False
def TgwQ(J_Es, WKvO): def TgwQ(J_Es, WKvO, Csk6): if type(J_Es) != list: return Csk6 if J_Es == WKvO else float('inf') else: return min([TgwQ(YRbF, WKvO, Csk6 + 1) for YRbF in J_Es]) jbXL = TgwQ(J_Es, WKvO, 0) return False if jbXL == float('inf') else jbXL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fu2u(T_FL):\n u1M3 = T_FL.search(10)\n assert u1M3.value == 10\n Natw = T_FL.search(3)\n assert Natw.value == 3\n jC3a = T_FL.search(13)\n assert jC3a.value == 13", "def TgwQ(YKHO, wEf2):\n DpUl = YKHO.root\n while True:\n if DpUl.value == wEf2:\n return True\n ...
[ "0.6572512", "0.6571126", "0.6570186", "0.6519172", "0.6511859", "0.6394185", "0.6383849", "0.6374642", "0.635998", "0.6332078", "0.63315004", "0.63278484", "0.63242", "0.62880415", "0.6283621", "0.6239512", "0.62300146", "0.6207583", "0.61939853", "0.6191414", "0.61195934", ...
0.768809
0
Sets the active_from of this BlacklistParams.
def oJFe(YKHO, oJFe): YKHO._active_from = oJFe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LFjE(YKHO, LFjE):\n YKHO._active_to = LFjE", "def LFjE(YKHO, LFjE):\n YKHO._active_to = LFjE", "def kY59(YKHO, kY59):\n YKHO._valid_from = kY59", "def kY59(YKHO, kY59):\n YKHO._valid_from = kY59", "def kY59(YKHO, kY59):\n YKHO._valid_from = kY59", "def oJFe(YKHO):\n return YKHO._act...
[ "0.6456035", "0.6443187", "0.5588379", "0.5588379", "0.5588379", "0.5576719", "0.5542971", "0.5514074", "0.5514074", "0.54952943", "0.54952943", "0.54952943", "0.5395311", "0.53511745", "0.53511745", "0.53511745", "0.53511745", "0.53511745", "0.53511745", "0.53511745", "0.535...
0.7586207
0
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "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.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Splits `prop_expr` by `self.SEPARATOR` and returns the parts, with the comparison operator defaulting to a sensible value if it's not in `self.OPS` or if it's missing. >>> prop_expr = 'rating__lte' >>> self._split_filter(prop_expr) ['rating', 'lte'] >>> prop_expr = 'rating' >>> self._split_filter(prop_expr) ['rating', ...
def GNem(YKHO, KW5H): yhyn = 'exact' if YKHO.SEPARATOR in KW5H: YWBp, yhyn = KW5H.split(YKHO.SEPARATOR) if yhyn not in YKHO.OPS: yhyn = YKHO.DEFAULT_OP else: YWBp = KW5H return [YWBp, yhyn]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R9dF(wFnr):\n for S4zX in Maem:\n for seET in S4zX:\n if seET in wFnr:\n T3na, qoj3 = wFnr.split(seET, 1)\n mWFP = T3na[T3na.find('{') + 1:T3na.rfind('}')]\n qoj3 = qoj3.strip()\n T8d8 = qoj3[0]\n if T8d8 == qoj3[-1...
[ "0.6558334", "0.62647974", "0.59759367", "0.58076155", "0.54904246", "0.5384633", "0.53690875", "0.5240968", "0.5222297", "0.52044207", "0.5157727", "0.51521635", "0.51296276", "0.51158947", "0.5073297", "0.50504285", "0.4993705", "0.4986592", "0.4959052", "0.49556696", "0.49...
0.85544336
0
Return a new Q object with `self` and `other` as children joined by `conn`.
def cXJ9(YKHO, Elif, w2B8): YEnM = type(YKHO)() YEnM.add(YKHO) YEnM.add(Elif) YEnM.conn = w2B8 return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S7rp(YKHO, *qIxc, **B2fa):\n xDcj = nLIS(YKHO, *qIxc, **B2fa)\n if hasattr(YKHO, 'custom_joins'):\n xDcj.custom_joins = YKHO.custom_joins[:]\n return xDcj", "def viaA(YKHO, vexM, w2B8=None):\n if YKHO._gathered_q is None:\n YKHO._gathered_q = vexM\n return YKHO\n if not w2...
[ "0.56869733", "0.5679256", "0.56579524", "0.5593906", "0.5516489", "0.5447342", "0.5436553", "0.53910077", "0.53684527", "0.5345578", "0.5320574", "0.53103864", "0.52958", "0.5292024", "0.5252688", "0.5243976", "0.5237389", "0.5237389", "0.5218264", "0.5218264", "0.5171139", ...
0.5466642
5
This is how we get to the actual underlying querystring
def Ku9n(YKHO): return QMSQ(YKHO.build_query()).encode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R7S5(YKHO):\n if YKHO.pass_query_string:\n return YKHO.request.META['QUERY_STRING']\n return ''", "def Bsp2(YKHO):\n return YKHO.request.query", "def nv7O(Emd4, QePW):\n return QePW.GET", "def Xvcc(YKHO):\n return NoPH(YKHO.url).query", "def sYT1(YKHO, QePW, qagS=''):\n if QePW...
[ "0.8017915", "0.798999", "0.77775013", "0.7567", "0.73535013", "0.72668946", "0.7260914", "0.70400673", "0.70236033", "0.69841796", "0.69481915", "0.6938484", "0.68356496", "0.6816701", "0.6815832", "0.6761931", "0.67392665", "0.6724099", "0.6693087", "0.6689006", "0.6665971"...
0.0
-1
Get the search API querystring representation for the currently gathered keywords.
def lCmK(YKHO): if YKHO._keywords: return YKHO._clean(u' '.join(YKHO._keywords))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PlI_(YKHO) -> str:\n vexM = YKHO.request_params.get('q')\n if vexM is None or len(vexM) == 0:\n return ''\n else:\n try:\n vexM = jbpC(YKHO.session_key).decrypt(vexM.encode()).decode()\n except ArtZ:\n pass\n YKHO.feeling_lucky = vexM.startswith('! ')\n ...
[ "0.6553199", "0.65164334", "0.6515012", "0.64963454", "0.64790297", "0.64282376", "0.64095205", "0.64081115", "0.6392376", "0.63893676", "0.6329172", "0.63264376", "0.6272497", "0.6262622", "0.6240063", "0.6191214", "0.6189492", "0.6187054", "0.61577564", "0.6155767", "0.6154...
0.6018017
25
(Dataframe) > (Dict mapping df[column1] to df[column2])
def SLQb(jQ3Z, nyR6, Cl9Q, zQHC=False): if zQHC: return {G1Hx: Oa1e[Cl9Q].dropna().tolist() for G1Hx, Oa1e in jQ3Z.groupby(nyR6)} else: return {G1Hx: Oa1e[Cl9Q].tolist() for G1Hx, Oa1e in jQ3Z.groupby(nyR6)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _CY6(jQ3Z, b05n, Vxqj):\n WfCS = jQ3Z.select(b05n, Vxqj).toPandas()\n return dict(WfCS.to_numpy())", "def N39f(bOBl):\n Nws4 = {H5ew: '' for H5ew in bOBl.columns.to_list()}\n xJd4 = []\n for d6pt, rdlD in bOBl.iterrows():\n nTIn = {H5ew: rdlD[H5ew] for H5ew in Nws4.keys()}\n xJd4...
[ "0.7273169", "0.6189763", "0.61540544", "0.60725534", "0.60569805", "0.5965653", "0.594113", "0.594113", "0.59373695", "0.59177333", "0.58653873", "0.5856556", "0.58485556", "0.5825335", "0.58120936", "0.580453", "0.57974833", "0.57877177", "0.57853436", "0.5758806", "0.57510...
0.7167487
1
We select a licence, but do not pay it
def GLaF(YKHO): Mkmy = YKHO.c.get(gxEw('company_accounts:company_profile_select_plan', args=(YKHO.company.id,))) YKHO.assertContains(Mkmy, 'Basic') YKHO.assertContains(Mkmy, 'Professional') YKHO.assertContains(Mkmy, 'Enterprise') Mkmy = YKHO.c.post(gxEw('company_accounts:company_profile_select_plan'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rkad(Mc9N):\n pass", "def riqM(YKHO):\n pass", "def lCky(YKHO):\n if YKHO.settings.get('ACCEPT_GLUU_LICENSE') != 'Y':\n with open('./LICENSE') as eHNT:\n print(eHNT.read())\n YKHO.settings.set('ACCEPT_GLUU_LICENSE', VW_H('Do you accept the Gluu license stated above'))\n ...
[ "0.65939486", "0.6557105", "0.64767104", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", "0.6350493", ...
0.0
-1
Convert xr.DataArray of GEOMS times to a pd.DatetimeIndex.
def Hydk(WKvO): assert WKvO.VAR_UNITS == 'MJD2K' or WKvO.VAR_UNITS == 'MJD2000' return rLdf.to_datetime(oyIN.asarray(WKvO) + 2400000.5 + 51544, unit='D', origin='julian')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nHIC(EP1l):\n try:\n return rLdf.Timestamp(EP1l.values)\n except TypeError:\n return [rLdf.Timestamp(jzdc) for jzdc in EP1l.values]", "def _mc9(kM7L):\n oxOY = zuVY.open_dataset(kM7L)\n WXkz = oxOY.time.to_dataframe()\n del oxOY\n return WXkz", "def gGMl(Lc_L):\n dy_H = r...
[ "0.6558837", "0.64610314", "0.63324016", "0.6174458", "0.6157667", "0.61104", "0.6063677", "0.6063377", "0.6045137", "0.60291004", "0.60270053", "0.6001293", "0.5994102", "0.59748966", "0.5967808", "0.5954181", "0.5937027", "0.59294796", "0.5919002", "0.58458936", "0.5816217"...
0.0
-1
Returns model name which is string `modle_path` appended to `checkpoint_callback.dirpath`.
def k7z9(uqvc: str, InUL: 'ReferenceType[ModelCheckpoint]') -> str: ByYM = f'{InUL.dirpath}{Hy7s.path.sep}' if not uqvc.startswith(ByYM): raise ValueError(f'{uqvc} was expected to start with {ByYM}.') VqRE, bGrB = Hy7s.path.splitext(uqvc[len(ByYM):]) return VqRE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MymS(YKHO) -> str:\n return Hy7s.path.join(YKHO._checkpoin_dir, YKHO._checkpoints[-1].name)", "def JKto(YKHO):\n myz3 = Hy7s.path.join(YKHO.modelDir, YKHO.MODEL_NAME_BASE)\n if YKHO.args.keepAll:\n myz3 += '-' + str(YKHO.globStep)\n return myz3 + YKHO.MODEL_EXT", "def JKto(YKHO):\n my...
[ "0.69871587", "0.68056977", "0.68056977", "0.67613554", "0.67336416", "0.6634772", "0.66230637", "0.6521047", "0.64821434", "0.64519465", "0.64334667", "0.639728", "0.63880146", "0.63836634", "0.6374431", "0.6318077", "0.62901527", "0.6276679", "0.62600976", "0.6258352", "0.6...
0.7722596
0
Return the experiment version. It's Neptune Run's short_id
def DpZH(YKHO) -> str: return YKHO._run_short_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(YKHO):\n EV1I, ntLm = YKHO._get_field_indices('VERSION')\n return YKHO.lines[EV1I[0]][12:].split()[0]", "def mljj(YKHO) -> str:\n return qe4Y.get(YKHO, 'version_id')", "def DpZH(YKHO):\n return YKHO.v", "def T4H0(YKHO) -> str:\n return YKHO.reader.QueryInfoByName('version')", "def k...
[ "0.67934734", "0.67266", "0.6724957", "0.6689359", "0.6679044", "0.66358566", "0.66358566", "0.6618448", "0.659843", "0.6590712", "0.65726113", "0.65516746", "0.655068", "0.6540206", "0.65282094", "0.6517375", "0.65098304", "0.6508874", "0.6508874", "0.6508874", "0.6508874", ...
0.8104246
0
Annotate a list of samples
def SofA(YKHO, gGnb: List[SAMPLE], KgVA: STUDY=None) -> QHGM: eZIr = [] nveG = QHGM(reports=[]) for mvm2 in gGnb: nveG.reports.append(YKHO.annotate(mvm2, study=KgVA)) return nveG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3nu(YKHO, x6A0, Tuqy='hmm'):\n if isinstance(x6A0, t10e):\n x6A0 = [x6A0]\n for a1PO in x6A0:\n a1PO.features.extend(YKHO.getFeatures(a1PO))", "def J81A(XgyP):\n for jzdc in XgyP:\n yOml(jzdc)", "def QTm3(Knvy: str, SYEB: str, NCCI: str, ViLl: str) -> None:\n S6gb = D790()...
[ "0.6360198", "0.6173186", "0.60576105", "0.5989729", "0.5918912", "0.5902408", "0.58995783", "0.58767474", "0.57831776", "0.57768744", "0.575686", "0.5730133", "0.56486136", "0.5625196", "0.5606882", "0.5599648", "0.55901265", "0.5582521", "0.5581176", "0.55712175", "0.556146...
0.55991465
16
Test the ``compute_breakdown`` method when there are no relationships.
def Dz65(YKHO): yIVm = {'tables': {'tableA': {'columns': {'col1': {}}}, 'tableB': {'columns': {'col1': {}, 'col2': {}}}, 'tableC': {'columns': {'col2': {}}}}} BM1S = {'tableA': rLdf.DataFrame({'col1': [1, 2, 3, 4, 5]}), 'tableB': rLdf.DataFrame({'col1': [1, 1, 2, 3, 3, 5], 'col2': ['a', 'b', 'c', 'd', 'e', 'f']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ICFy(YKHO):\n YcIA = {'score': oyIN.nan}\n with Po4F.object(BdEP, 'compute_breakdown', return_value=YcIA):\n Aofo = BdEP.compute(real_data=FM6F(), synthetic_data=FM6F(), metadata=FM6F())\n assert oyIN.isnan(Aofo)", "def wwx3(z_hH):\n assert z_hH.nodes() == []", "def exfw(YKHO):\n yIVm...
[ "0.7181014", "0.6320018", "0.6177531", "0.58831793", "0.585169", "0.5755944", "0.5600129", "0.559775", "0.55270755", "0.54926974", "0.54622257", "0.54582787", "0.5454836", "0.54450935", "0.53922445", "0.5369194", "0.5320892", "0.52853", "0.5285073", "0.5282513", "0.5256778", ...
0.73510104
0
Converts normalized value pair to pixel coordinates.
def jsWQ(ED6E: float, qxBQ: float, Kmi0: int, l5eN: int) -> uLKX[None, AzJI[int, int]]: def r8Qk(BWXx: float) -> bool: return (BWXx > 0 or epAf.isclose(0, BWXx)) and (BWXx < 1 or epAf.isclose(1, BWXx)) if not (r8Qk(ED6E) and r8Qk(qxBQ)): max(0, ED6E * Kmi0) return None wtvW = min(ep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jsWQ(ED6E: float, qxBQ: float, Kmi0: int, l5eN: int) -> uLKX[None, AzJI[int, int]]:\n\n def r8Qk(BWXx: float) -> bool:\n return (BWXx > 0 or epAf.isclose(0, BWXx)) and (BWXx < 1 or epAf.isclose(1, BWXx))\n if not (r8Qk(ED6E) and r8Qk(qxBQ)):\n return None\n wtvW = min(epAf.floor(ED6E * K...
[ "0.6521792", "0.62237", "0.6218643", "0.6119246", "0.61063725", "0.6045363", "0.6025532", "0.6003338", "0.59886736", "0.59657294", "0.59613746", "0.5911256", "0.5908472", "0.59002984", "0.58940834", "0.5889875", "0.5884868", "0.5869969", "0.5851863", "0.58483726", "0.58421844...
0.6530254
0
Returns the charge transferred for a particular atom. Requires POTCAR to be supplied.
def cHeI(YKHO, ft9X): if YKHO.potcar is None: raise ValueError('POTCAR must be supplied in order to calculate charge transfer!') cog2 = [] for YRbF, Ty9i in enumerate(YKHO.natoms): cog2 += [YRbF] * Ty9i Yo5h = YKHO.potcar[cog2[ft9X]].nelectrons return YKHO.data[ft9X]['charge'] - Yo5h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cHeI(ft9X, g8x2, O_QF, KghR):\n if O_QF is None:\n raise ValueError('POTCAR must be supplied in order to calculate charge transfer!')\n cog2 = []\n for YRbF, b9sW in enumerate(KghR.natoms):\n cog2 += [YRbF] * b9sW\n Yo5h = O_QF[cog2[ft9X]].nelectrons\n return g8x2[ft9X].properties[...
[ "0.7719385", "0.68470144", "0.6179345", "0.61357117", "0.6123595", "0.60327554", "0.602077", "0.59703064", "0.5942349", "0.5849454", "0.58094907", "0.57692087", "0.5759525", "0.57513565", "0.570815", "0.56679195", "0.56622446", "0.56452113", "0.5627804", "0.5623517", "0.55902...
0.80518705
0
Sets the affinity of this PodRequest.
def t385(YKHO, t385): YKHO._affinity = t385
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t385(YKHO, t385):\n YKHO._affinity = t385", "def WkIA(YKHO, t385, WRhO):\n pass", "def WkIA(YKHO, t385, WRhO):\n YKHO.check_input(t385, WRhO)\n if not isinstance(YKHO.integration_type, OEoW):\n raise TypeError('integration_type must be a IntegrationType')\n elif YKHO.integration_type ...
[ "0.77458036", "0.6689873", "0.6534901", "0.5995773", "0.59515613", "0.59515613", "0.58273077", "0.58273077", "0.5737787", "0.5728819", "0.56902874", "0.56293553", "0.56293553", "0.56293553", "0.56293553", "0.56237626", "0.56200594", "0.56200594", "0.5594802", "0.5585415", "0....
0.77531487
0
Gets the configs of this PodRequest.
def b32v(YKHO): return YKHO._configs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b32v(YKHO) -> dict:\n return YKHO._req_configs", "def b32v(YKHO) -> dict:\n return YKHO._configs", "def oOia(YKHO):\n return YKHO.configs", "def oOia(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('get_configs'), B2fa)", "def oOia(YKHO):\n return YKHO.config.copy()", ...
[ "0.8253661", "0.7366091", "0.725157", "0.70423216", "0.7040869", "0.6910945", "0.6910945", "0.6910945", "0.6881249", "0.6688158", "0.66619223", "0.65617067", "0.65490294", "0.6371753", "0.63656986", "0.6331681", "0.62414783", "0.623978", "0.6226244", "0.6226244", "0.6225864",...
0.7319833
3
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.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
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 true if response from service is 200.
def rmlk(bD7m, HN3d): bD7m = f'{bD7m}/ready' ITS7.sleep(1) try: nfqd = HN3d.get_logs('fdk-fulltext-search') Nqlg = nfqd.decode('utf8').strip() for zFiD in Nqlg.split('\n'): print('docker-logs: {}'.format(zFiD)) geh0 = G4JS.get(bD7m) if geh0.status_code == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TTz0(_hkX) -> bool:\n if _hkX.status_code == 200:\n return True\n return False", "def Dw0n() -> bool:\n return Mi_a == 2000", "def nyyK(YKHO) -> bool:\n return 200 >= YKHO.response.status_code <= 299", "def j1x8(_hkX):\n return _hkX.status_code == 200", "def kKne(YKHO):\n bD7m ...
[ "0.8419228", "0.8057634", "0.78722304", "0.7770316", "0.77460814", "0.7741475", "0.7702328", "0.76321924", "0.76302975", "0.75866157", "0.75858253", "0.74166936", "0.739907", "0.734201", "0.7324629", "0.73165494", "0.7294838", "0.72456115", "0.7195893", "0.71945125", "0.71671...
0.0
-1
Returns a client for integration testing.
def x0hE(P4t4: Flask) -> QRbk: return P4t4.test_client()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxbw() -> i9zE:\n ngFw = wOGd('a', 'a', 'a', 'a')\n return i9zE(ngFw)", "def x0hE():\n x0hE = i9zE()\n return x0hE", "def x0hE():\n return i9zE()", "def x0hE():\n return iJSR()", "def x0hE():\n nNXP.app.config['TESTING'] = True\n with nNXP.app.test_client() as x0hE:\n yie...
[ "0.79424113", "0.792299", "0.7904899", "0.78554547", "0.7718179", "0.76907694", "0.7646788", "0.76080847", "0.75742525", "0.7569329", "0.7569329", "0.75643086", "0.7557056", "0.75507706", "0.75473756", "0.753588", "0.7519823", "0.74460524", "0.74010473", "0.7387609", "0.73823...
0.71478647
51
Get the sequence iterator.
def mAB6(YKHO): for dfHy in YKHO._iterations: yield dfHy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UDAb(YKHO):\n if YKHO.pos is not None:\n E_nZ(YKHO.iterator, n=YKHO.step)\n YKHO.pos += YKHO.step + 1\n else:\n E_nZ(YKHO.iterator, n=YKHO.start)\n YKHO.pos = YKHO.start + 1\n try:\n l81M = next(YKHO.iterator)\n while l81M.id == '':\n YKHO.n_skipped...
[ "0.7599973", "0.7491273", "0.7061472", "0.6699275", "0.6698397", "0.665425", "0.66006076", "0.6591229", "0.6582453", "0.6523401", "0.6492296", "0.6492296", "0.6467353", "0.6457944", "0.643189", "0.64042646", "0.64037126", "0.6394602", "0.6375659", "0.63675207", "0.6366044", ...
0.0
-1
Configures the logging using either basic filename + loglevel or passed config file path. This is performed separately from L{init_config()} in order to support the case where logging should happen independent of (usu. after) other aspects of the configuration initialization. For example, if logging may need to be init...
def TTn9(ojRq=None, NX0m=G9jH.INFO, mmls=None): B7rs = False if mmls and Hy7s.path.exists(mmls): T0RW = kwpV() Ueki = T0RW.read(mmls) B7rs = Ueki and T0RW.has_section('loggers') if B7rs: G9jH.config.fileConfig(mmls) if ojRq: tO9_ = 'Config file conflicts w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZD3O(YKHO):\n if 'logs' not in Hy7s.listdir(YKHO.config_path):\n Hy7s.mkdir(YKHO.config_path + '/logs')\n b9xm = 'logging' + str(qcWV.now().date()) + '.log'\n if b9xm not in Hy7s.listdir(YKHO.config_path + '/logs'):\n lwsi = open(YKHO.config_path + '/logs/' + b9xm, 'w')\n lwsi.clo...
[ "0.7638133", "0.75934", "0.7542088", "0.7540548", "0.74902076", "0.7468881", "0.74342924", "0.73353016", "0.72767776", "0.7254111", "0.7249048", "0.7228718", "0.7219674", "0.7216158", "0.7213329", "0.7180314", "0.7173049", "0.71572477", "0.71473515", "0.7134894", "0.7124665",...
0.64926285
100
Ensure the /ping route behaves correctly.
def zeVW(YKHO): geh0 = YKHO.client.get('/users/ping') nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertEqual(geh0.status_code, 200) YKHO.assertEqual('pong!', nPrm['message']) YKHO.assertEqual('success', nPrm['status'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BMCL(YKHO):\n geh0 = YKHO.client.get('/ping')\n YKHO.assert200(geh0)", "def BMCL(x0hE):\n geh0 = x0hE.get('/ping')\n assert geh0.data == b'Ping!'", "def BMCL(YKHO):\n x0hE = fUla.Client('vilfotestrouter', 'testtoken')\n h2IT.add(h2IT.GET, 'http://vilfotestrouter/api/v1/system/ping', json=...
[ "0.777479", "0.70533836", "0.69570583", "0.695673", "0.67540026", "0.6720369", "0.6682007", "0.6673324", "0.6634377", "0.6611171", "0.66073304", "0.6600694", "0.65949297", "0.65567964", "0.65567964", "0.65567964", "0.6546748", "0.65350163", "0.6524784", "0.6515431", "0.649419...
0.0
-1
Simple helper function to determine if all functions in a tuple are actually JS functions.
def DptA(ZZSa: tuple): return all((True if isinstance(f_8k, ITX4) else False for f_8k in ZZSa))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_Jy(KCHu):\n return KCHu in sY_m", "def rVKq(WKvO):\n return isinstance(WKvO, tuple) and len(WKvO) > 0 and callable(WKvO[0])", "def fxru(YKHO):\n assert vjnC(callable=True).typeof == 'function'", "def rVKq(Q6kx):\n if isinstance(Q6kx, jZ4I.FunctionDef) or isinstance(Q6kx, jZ4I.AsyncFunctionD...
[ "0.65317655", "0.65212893", "0.63179594", "0.6232534", "0.6224456", "0.6174337", "0.6015697", "0.59750557", "0.5920265", "0.58856356", "0.5866963", "0.58393806", "0.58298904", "0.57942647", "0.5757368", "0.57505405", "0.57454944", "0.57346964", "0.57258016", "0.5711226", "0.5...
0.7570182
0
Wrapper to numpy.asarray, force order to hysop.constants.ORDER and type to hysop.constants.HYSOP_REAL
def _lU_(Xg1X): return oyIN.asarray(Xg1X, order=Yp2b, dtype=Dr5c)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XTiz(YKHO, Tuqy=VZ87):\n return oyIN.asarray(YKHO.tolist(mode=Tuqy), dtype=float)", "def e3ma(YKHO):\n r8hN = LOM1(3, 2)\n jzdc = XTiz.asarray(r8hN)\n YKHO.assertEquals(jzdc.shape, (3, 2))\n YKHO.assertEquals(jzdc.dtype, XTiz.float64)", "def MF4b(Xg1X):\n return oyIN.asarray(Xg1X, order=Y...
[ "0.6531908", "0.6499668", "0.6467992", "0.6433604", "0.64256126", "0.64001465", "0.62270516", "0.61951053", "0.61770546", "0.61382395", "0.6081407", "0.6055655", "0.60126334", "0.60126334", "0.6009092", "0.6004681", "0.59937453", "0.59871715", "0.5980648", "0.598021", "0.5979...
0.62636334
6
Returns arrays of lidar data
def iuEz(YKHO, Mviy): WPdU = oyIN.array(Mviy.ranges) Bh5e = 10 YKHO.lidar['range'] = min(min(WPdU[:Bh5e]), min(WPdU[-Bh5e:])) YKHO.lidar['closest'] = min(WPdU) YKHO.lidar['closest angle'] = WPdU.argmin()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOMo(YKHO, Tuqy='blocking'):\n YKHO.lidar_data = []\n Mviy = [YKHO.env.read_lidar(WKvO, Tuqy)[2][1] for WKvO in YKHO.lidar_handles]\n YKHO.lidar_data = Mviy[0][1::2][0::4] + Mviy[1][1::2][0::4]\n del YKHO.lidar_data[68]\n del YKHO.lidar_data[0]\n return YKHO.lidar_data", "def CSWt(pmON):\n ...
[ "0.70380884", "0.6806139", "0.6502105", "0.64520395", "0.637767", "0.6348387", "0.63341856", "0.6282553", "0.62804186", "0.62132686", "0.6205332", "0.6173961", "0.6124543", "0.6084536", "0.6063702", "0.6063702", "0.6063702", "0.6063702", "0.6014454", "0.599866", "0.59910774",...
0.0
-1
Return the value of the config key
def DxOv(YKHO, H5ew: str, XLMv: str='global'): return YKHO.config.getint(XLMv, H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew):\n return YKHO.config.get(H5ew)", "def Zmkp(YKHO, H5ew):\n try:\n return YKHO.config[H5ew]\n except KeyError as e:\n print(\"Error, config key '%s' does not exist\" % tTpl)", "def NMoC(YKHO, H5ew):\n return YKHO._config[H5ew]", "def Zmkp(GPtr, H5ew):\n wUfe =...
[ "0.83173615", "0.8235014", "0.8196368", "0.81812686", "0.8162909", "0.8151157", "0.7958634", "0.79295796", "0.788837", "0.7839108", "0.7830295", "0.7806682", "0.7746352", "0.77176523", "0.77176523", "0.7702603", "0.76998377", "0.76998377", "0.76998377", "0.7694148", "0.766609...
0.0
-1
Return the value of the config key
def HRRg(YKHO, H5ew: str, XLMv: str='global'): return YKHO.config.get(XLMv, H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew):\n return YKHO.config.get(H5ew)", "def Zmkp(YKHO, H5ew):\n try:\n return YKHO.config[H5ew]\n except KeyError as e:\n print(\"Error, config key '%s' does not exist\" % tTpl)", "def NMoC(YKHO, H5ew):\n return YKHO._config[H5ew]", "def Zmkp(GPtr, H5ew):\n wUfe =...
[ "0.83173615", "0.8235014", "0.8196368", "0.81812686", "0.8162909", "0.8151157", "0.7958634", "0.79295796", "0.788837", "0.7839108", "0.7830295", "0.7806682", "0.7746352", "0.77176523", "0.77176523", "0.7702603", "0.76998377", "0.76998377", "0.76998377", "0.7694148", "0.766609...
0.71382713
44
Method of class Rectangle to calculate the area
def f0tD(YKHO): return YKHO.height * YKHO.width
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aw0V(YKHO):\n pass", "def KQVK(YKHO):\n J1b4 = x7Ls(3, 2)\n YKHO.assertEqual(J1b4.area(), 6)\n CYjz = x7Ls(2, 10)\n YKHO.assertEqual(CYjz.area(), 20)\n bpa0 = x7Ls(8, 7, 0, 0, 12)\n YKHO.assertEqual(bpa0.area(), 56)", "def f0tD(YKHO):\n f0tD = YKHO.length * YKHO.width\n return f0...
[ "0.8479314", "0.81334966", "0.8024926", "0.80057937", "0.79677916", "0.7931893", "0.792937", "0.79260886", "0.79057163", "0.7899839", "0.7889485", "0.785995", "0.78521824", "0.7816148", "0.78143567", "0.7799656", "0.7799656", "0.7794406", "0.77865994", "0.7776079", "0.7775265...
0.7523563
85
Pull a user object from the database. This is used for loading users from existing sessions.
def bAZm(n10L): return mv1M.query.get(int(n10L))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lyxB(id):\n return mv1M.query.get(id)", "def lyxB(id):\n return mv1M.query.get(id)", "def Gqah(YKHO):\n return mv1M.get_user(YKHO.user_email)", "def lyxB(id):\n return mv1M.query.get(id)", "def lyxB(uJjO):\n CBIr = NCls.session.query(FYrf.User).get(uJjO)\n return CBIr", "def lyxB(uJ...
[ "0.78278434", "0.78278434", "0.7739327", "0.7736616", "0.76947576", "0.769129", "0.769129", "0.76898116", "0.7685202", "0.7658994", "0.76066613", "0.75978446", "0.75877917", "0.75877917", "0.75852686", "0.75852686", "0.75852686", "0.75852686", "0.75852686", "0.75852686", "0.7...
0.0
-1
Helper function to extend a list with 'None' objects until it's the length of MAX_MIRRORS.
def YGrC(YKHO, id_0): H5Km = [] H5Km.extend(id_0) while len(H5Km) < S8xo: H5Km.append(None) return H5Km
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zded(qw7D: list, u54L: int) -> None:\n qw7D += [None] * (u54L - len(qw7D))", "def SoNk(D5g7, u54L, EsRC=None):\n MNuu = [D5g7[YRbF] if YRbF < len(D5g7) else EsRC for YRbF in range(u54L)]\n return MNuu", "def qM1n(qw7D, d6pt):\n while len(qw7D) <= d6pt:\n qw7D.append(None)\n if qw7D[d6...
[ "0.62226903", "0.60436743", "0.57201153", "0.56247187", "0.55002266", "0.54952955", "0.54668546", "0.53526074", "0.53191173", "0.5256319", "0.52556485", "0.52505904", "0.5247898", "0.52250916", "0.5208833", "0.52028966", "0.5188842", "0.5182887", "0.51701957", "0.5169138", "0...
0.6353235
0
Covert fractional part to binary with precision k.
def LtWr(wA3x: float, G1Hx: int) -> str: IWj_ = '' while G1Hx > 0: wA3x = wA3x * 2 wA3x, kAne = epAf.modf(wA3x) IWj_ = IWj_ + str(int(kAne)) G1Hx = G1Hx - 1 return IWj_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _RxE(exwG, G1Hx):\n \"\"\"I use the algorithm from the assignment instead of the numpy function,\n because now bases above 10 work easier (though they probably will not\n be used).\"\"\"\n assert exwG >= 0\n GPOS = []\n while exwG != 0:\n K0A_ = exwG % G1Hx\n exwG = exwG // G1Hx...
[ "0.6513625", "0.6391233", "0.62129706", "0.60814756", "0.6059797", "0.6056936", "0.6009362", "0.59935516", "0.59323734", "0.5899617", "0.5845597", "0.5812429", "0.5751775", "0.5747483", "0.56645983", "0.5652956", "0.55923307", "0.55911386", "0.5589123", "0.5578578", "0.557323...
0.7217165
0
Returns True is node is a loop helper e.g. {{ loop.index }} or {{ loop.first }}
def vD7S(Q6kx): return hasattr(Q6kx, 'node') and isinstance(Q6kx.node, Ziit.Name) and (Q6kx.node.name == 'loop')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FK10(hxjC: PETGraphX, DLiy: CUNode, XuY2: str) -> bool:\n QflN = [Ty9i.start_position() for Ty9i in hxjC.subtree_of_type(DLiy, CvW4.LOOP)]\n return hxjC.is_loop_index(XuY2, QflN, hxjC.subtree_of_type(DLiy, CvW4.CU))", "def g_tB(YKHO):\n return YKHO.name[0] == '#'", "def uSPi(YKHO):\n if YKHO.ne...
[ "0.6341544", "0.61838365", "0.5946099", "0.5925194", "0.5891203", "0.58240694", "0.57574236", "0.57271814", "0.5683201", "0.56647307", "0.56440943", "0.562883", "0.5596582", "0.55797416", "0.55695236", "0.553214", "0.5445574", "0.53656", "0.53345656", "0.53279316", "0.532071"...
0.8517855
0
Return a context manager for "with" blocks.
def UO8u(YKHO): return N3_l(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DMw_(YKHO):\n if getattr(YKHO, '_func', None) is None:\n raise AttributeError(f\"Can't use {YKHO!r} as a context manager because the '_func' attribute is not defined\")\n return YKHO", "def OBr8(YKHO) -> bDy6['MockFs']:\n with YKHO.mock():\n yield YKHO", "def DMw_(YKHO):\n return ...
[ "0.6915009", "0.67904514", "0.6784758", "0.6770274", "0.6670174", "0.65496427", "0.6431763", "0.63973486", "0.6238165", "0.61431617", "0.61424583", "0.61143076", "0.609928", "0.60761005", "0.60715646", "0.6069119", "0.6069119", "0.6069119", "0.6069119", "0.6069119", "0.606911...
0.0
-1
dp[i] = max(dp[i1], dp[i2] + nums[i]) if i > 2
def E4sZ(xYvp): if not xYvp: return -1 if len(xYvp) <= 2: return max(xYvp) TifC = [0 for bGrB in range(len(xYvp))] TifC[0] = xYvp[0] TifC[1] = max(xYvp[:2]) for r845 in range(2, len(xYvp)): TifC[r845] = max(TifC[r845 - 1], TifC[r845 - 2] + xYvp[r845]) return TifC[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ssKx(YKHO, xYvp):\n exwG = len(xYvp)\n TifC = [[0] * exwG for YRbF in range(2)]\n for r845 in range(exwG):\n TifC[0][r845] = max(TifC[0][r845 - 1], TifC[1][r845 - 1])\n TifC[1][r845] = TifC[0][r845 - 1] + xYvp[r845]\n return max(TifC[-1])", "def C4ft(xYvp: List[int]) -> int:\n yw...
[ "0.7501452", "0.72464263", "0.6913796", "0.6871482", "0.68612725", "0.6799918", "0.6769445", "0.6749712", "0.6749061", "0.6739976", "0.6679222", "0.6611797", "0.658995", "0.6473695", "0.6439527", "0.64073896", "0.63954234", "0.6348153", "0.633343", "0.63113993", "0.62796694",...
0.70934623
2
Takes a corpus in list format and applies basic preprocessing steps of word tokenization, removing of english stop words, lower case and lemmatization.
def MXOF(rrSk): tVNM = [] jlPM = set(Dhdw.corpus.words.words()) cYG5 = set(di0c.words('english')) P_zh = GFnk() b0j5 = M9Fq('[\\w|!]+') for rdlD in rrSk: DJGF = b0j5.tokenize(rdlD) pjn7 = [a1PO.lower() for a1PO in DJGF] n99c = [a1PO for a1PO in pjn7 if a1PO in jlPM or not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def okCT(YKHO, uzkY, cKm3=False, vlVk=None):\n if cKm3:\n uzkY = [yzQ0.lower() for yzQ0 in uzkY]\n if vlVk is not None:\n uzkY = [yzQ0 for yzQ0 in uzkY if yzQ0 not in vlVk]\n return uzkY", "def ajuu(YKHO, rrSk):\n rrSk = rrSk if isinstance(rrSk, list) else list(rrSk)\n YLQM = YKHO.cl...
[ "0.79312456", "0.732439", "0.7314852", "0.72398716", "0.7211394", "0.71662945", "0.7117847", "0.7062003", "0.7057738", "0.7056586", "0.7042162", "0.7037193", "0.70286787", "0.70106596", "0.7010405", "0.70045316", "0.7001067", "0.69795585", "0.6971041", "0.69504005", "0.691962...
0.80859214
0
Creates an edge between two nodes.
def FhOZ(YKHO, n7rZ, aS5z): if n7rZ == aS5z: print('SimpleGraph does not support self connecting nodes') return n7rZ.add_neighbour(aS5z) if not YKHO.directed: aS5z.add_neighbour(n7rZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F1KG(YKHO, i4Va, rUTj):\n pass", "def rz7z(YKHO, mNRh, GgkF):\n YKHO.nodes[mNRh].add_edge(GgkF)\n YKHO.nodes[GgkF].add_edge(mNRh)", "def rz7z(YKHO, Cr2W, DsyS):\n try:\n gtqQ = YKHO.nodes[Cr2W]\n except KeyError:\n gtqQ = Gb3y(Cr2W)\n YKHO.nodes[Cr2W] = gtqQ\n try:\n ...
[ "0.8094208", "0.7612918", "0.7570659", "0.7547042", "0.75278884", "0.74751294", "0.733049", "0.7273984", "0.72705", "0.7154484", "0.7154484", "0.70838374", "0.70818114", "0.7077122", "0.70689243", "0.7040716", "0.7006576", "0.7002566", "0.69198847", "0.6913617", "0.69078463",...
0.72412866
9
Initialises a new 'Agreement' instance.
def FIMM(YKHO, naGN='', _5TJ=None, *qIxc, **lcZy): YKHO.signDate = naGN YKHO.validityInterval = _5TJ super(ox6f, YKHO).__init__(*qIxc, **lcZy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.context = ox6f.Context()\n YKHO.agreement_id = ''\n YKHO.descriptionterms = {}\n YKHO.variables = {}\n ':type : dict[str,Agreement.Property]'\n YKHO.guaranteeterms = {}\n ':type : dict[str,Agreement.GuaranteeTerm]'", "def LL2E(YKHO):\n YKHO.assertTrue(all([ewlE, sfR...
[ "0.7241222", "0.59037167", "0.5798378", "0.5666403", "0.5581619", "0.5562596", "0.55136466", "0.5441526", "0.5437064", "0.5423882", "0.5388183", "0.538554", "0.53291917", "0.5320282", "0.5316014", "0.52907", "0.52613425", "0.5230399", "0.5227427", "0.5225571", "0.5208524", ...
0.68464094
1
Return the value sign(x) n^k such that n^k is the smallest value > |x| for integer k.
def oOzV(WKvO, exwG=2): WKvO = abs(WKvO) return g2zq.power(exwG, g2zq.floor(g2zq.log(WKvO, exwG)) + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lWPD(exwG, G1Hx):\n BHGE = spgl(exwG)\n FGW3 = 0\n for YRbF in sorted(BHGE)[:-G1Hx]:\n FGW3 *= 10\n FGW3 += YRbF\n return FGW3", "def FYKK(wEf2):\n if wEf2 < WKvO:\n return min(2 * wEf2 - 1, 2 * (WKvO - wEf2))\n G1Hx = int(RKD7(wEf2) // RKD7(WKvO))\n TK2h = G1Hx + FY...
[ "0.6651605", "0.6519453", "0.64649785", "0.6454932", "0.6348312", "0.63119805", "0.62798667", "0.6254473", "0.6250467", "0.623809", "0.6220607", "0.6220607", "0.6208999", "0.6200097", "0.61826354", "0.6182341", "0.6182336", "0.6181778", "0.61761963", "0.61663246", "0.61582714...
0.0
-1
Return the value sign(x) n^k such that n^k is the smallest value >= |x| for integer k.
def ZqIq(WKvO, exwG=2): WKvO = abs(WKvO) hMuD = g2zq.log(WKvO, exwG) if hMuD == g2zq.floor(hMuD): return WKvO return g2zq.power(exwG, g2zq.floor(hMuD) + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lWPD(exwG, G1Hx):\n BHGE = spgl(exwG)\n FGW3 = 0\n for YRbF in sorted(BHGE)[:-G1Hx]:\n FGW3 *= 10\n FGW3 += YRbF\n return FGW3", "def FYKK(wEf2):\n if wEf2 < WKvO:\n return min(2 * wEf2 - 1, 2 * (WKvO - wEf2))\n G1Hx = int(RKD7(wEf2) // RKD7(WKvO))\n TK2h = G1Hx + FY...
[ "0.66460884", "0.6488946", "0.64429104", "0.64057267", "0.63429284", "0.6297629", "0.6286164", "0.6282926", "0.62778324", "0.6217415", "0.6215297", "0.62059104", "0.62008256", "0.6200113", "0.6185505", "0.61811155", "0.6165203", "0.61542207", "0.6124481", "0.61239874", "0.610...
0.0
-1
Assert CRITICAL status if response is invalid or OK if response is valid
def THVP(W3x_, AZgw, geh0, jCCv, N0fv): VqPS = AZgw.Mock() VqPS.return_value.info.return_value = geh0 AZgw.patch('valve.source.a2s.ServerQuerier', side_effect=VqPS) yewu(capfd=W3x_, expected_code=jCCv, expected_message_part=N0fv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yTPt():\n nNXP = tRTV('http://foo.bar/api', 'a@b.c', username='foo', password='bar')\n AX4T = nNXP._AptlyApi__check_status_code(400)\n D0IF = nNXP._AptlyApi__check_status_code(401)\n Bmxp = nNXP._AptlyApi__check_status_code(403)\n honk = nNXP._AptlyApi__check_status_code(404)\n R4XW = nNXP._A...
[ "0.747204", "0.73428243", "0.7258782", "0.71804094", "0.71611285", "0.7110371", "0.707852", "0.7067229", "0.705703", "0.7016921", "0.7014432", "0.70066947", "0.70055", "0.6996109", "0.69826394", "0.69698703", "0.6960547", "0.6928945", "0.69261277", "0.69178957", "0.6916727", ...
0.0
-1
A set of common players in the top 50 players' current team in the world
def unKS(): IGjC = set() U1hz = {} geh0 = qv1X.get(dw5I.format(LEAGUE_ID=uEn6)) UPYI = Q9tm() cdKq = set() for oyg0 in geh0.json()['standings']['results']: cdKq.add(z6B1.get(QNUC.format(TEAM_ID=oyg0['id'], GAMEWEEK=UPYI))) h2IT = z6B1.map(cdKq) UHFx = 0 for geh0 in h2IT: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nSXT(YKHO, KekI=None):\n Bwa6 = z9kQ.objects.none()\n for cRax in (YKHO.home, YKHO.away):\n if KekI:\n if cRax != KekI:\n continue\n gI2c = ZGxj.get_squad(match=YKHO, club=cRax)\n EBgd = gI2c.get_first_players()\n HpuQ = gI2c.get_bench_players()\n ...
[ "0.6666239", "0.633611", "0.62473017", "0.6204185", "0.61923176", "0.6158499", "0.61554694", "0.6080617", "0.6051046", "0.5972776", "0.59673274", "0.5944539", "0.5941764", "0.5940338", "0.59113216", "0.59096056", "0.5895127", "0.5894888", "0.5879118", "0.5843922", "0.5818111"...
0.7887157
0
Function to randomly generate direction for UE along the road if the UE is on the road
def vAuc(aFKX): if aFKX == 'road': JxU2 = oyIN.around(oyIN.random.rand(), decimals=3) if JxU2 < 0.5: return 'NS' else: return 'WE' else: return 'random'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jJct(YKHO):\n J0cf = tuKI.randint(1, 6)\n nDfx = tuKI.randint(1, 90)\n if J0cf == 5:\n YKHO.look_around()\n else:\n for WKvO in range(nDfx):\n if J0cf == 1:\n YKHO.path.append('down')\n if J0cf == 2:\n YKHO.path.append('up')\n ...
[ "0.7396452", "0.7385165", "0.7193597", "0.6906246", "0.68209016", "0.6672906", "0.6659047", "0.64378667", "0.63597554", "0.6235626", "0.6222168", "0.6208971", "0.61535853", "0.60846484", "0.60454375", "0.6038283", "0.6029666", "0.5999628", "0.59748495", "0.5970031", "0.596642...
0.65348166
7
Function to randomly generate direction for UE along the road if the UE is on the road
def qF5w(Rzz_): X06W = Rzz_.direction if X06W == 'NS': JxU2 = oyIN.around(oyIN.random.rand(), decimals=3) if JxU2 < 0.5: return 'N' else: return 'S' elif X06W == 'WE': JxU2 = oyIN.around(oyIN.random.rand(), decimals=3) if JxU2 < 0.5: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jJct(YKHO):\n J0cf = tuKI.randint(1, 6)\n nDfx = tuKI.randint(1, 90)\n if J0cf == 5:\n YKHO.look_around()\n else:\n for WKvO in range(nDfx):\n if J0cf == 1:\n YKHO.path.append('down')\n if J0cf == 2:\n YKHO.path.append('up')\n ...
[ "0.7396452", "0.7385165", "0.7193597", "0.6906246", "0.68209016", "0.6672906", "0.6659047", "0.65348166", "0.64378667", "0.63597554", "0.6235626", "0.6222168", "0.6208971", "0.61535853", "0.60846484", "0.60454375", "0.6038283", "0.6029666", "0.5999628", "0.5970031", "0.596642...
0.59748495
19
Function to generate random (x, y) between min and max
def PHAT(h_4H, SkJr): MKAx = oyIN.random.randint(h_4H, SkJr) zPWo = oyIN.random.randint(h_4H, SkJr) return (MKAx, zPWo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xac_(min, max):\n return tuKI.random() * (max - min) + min", "def AZ3g(O2Zy, vvwy):\n WKvO = tuKI.randrange(O2Zy)\n LVAh = tuKI.randrange(vvwy)\n return (WKvO, LVAh)", "def bsvv(vELP, PtQX):\n o4D3 = tuKI.randint(vELP, PtQX)\n ajwV = tuKI.randint(vELP, PtQX)\n return max(o4D3, ajwV)", ...
[ "0.792769", "0.7756277", "0.7547605", "0.7474555", "0.74611676", "0.74469286", "0.7445453", "0.7437698", "0.73371655", "0.73247945", "0.7236622", "0.71900755", "0.71785545", "0.717093", "0.7167461", "0.7135246", "0.709282", "0.70592517", "0.7050593", "0.7050593", "0.7050593",...
0.76804423
2
Function to generate random x and y within 1.5scale of radius
def djy8(NXpY, ocAS): HmiB = sum(ocAS) / len(ocAS) h_4H = HmiB - 1.5 * NXpY SkJr = HmiB + 1.5 * NXpY return PHAT(h_4H, SkJr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _A_N(YKHO):\n gT7o = 2.0 * oyIN.pi * oyIN.random.random_sample()\n WKvO = YKHO.mid + (YKHO.particle_radius * YKHO.r_max + 2) * oyIN.cos(gT7o)\n LVAh = YKHO.mid + (YKHO.particle_radius * YKHO.r_max + 2) * oyIN.sin(gT7o)\n return (WKvO, LVAh)", "def BHsk(exwG):\n return round(PZyS(tuKI()), 3)", ...
[ "0.7778683", "0.74303705", "0.7325243", "0.7313338", "0.721273", "0.72013515", "0.7186256", "0.7117466", "0.7054052", "0.7048193", "0.69548947", "0.6941601", "0.6871199", "0.6868939", "0.68646646", "0.6832461", "0.68249905", "0.6813209", "0.67926514", "0.6772703", "0.677264",...
0.0
-1
Return ``True`` if ``self`` is smaller than ``other``.
def TPjt(YKHO, Elif: Union[Decimal, float, Rational, 'Grade']) -> bool: return YKHO < Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JWbp(YKHO, Elif) -> bool:\n if YKHO >= Elif:\n return False\n else:\n return True", "def JWbp(YKHO, Elif) -> bool:\n if YKHO.__class__ is Elif.__class__:\n return YKHO.value < Elif.value\n return NotImplemented", "def JWbp(YKHO, Elif):\n if YKHO._number < Elif.get_number...
[ "0.839147", "0.81725883", "0.81174064", "0.8102215", "0.8019536", "0.7993077", "0.7945161", "0.7919868", "0.7918932", "0.78925824", "0.7877177", "0.78587574", "0.78587574", "0.78587574", "0.78373086", "0.7834315", "0.78243023", "0.78243023", "0.78243023", "0.78170574", "0.777...
0.0
-1
Find the top ``limit`` students among the ``gradings``.
def tlxW(cTTs: List[Grading], qoqK: int) -> x1iM[VAKq]: Qsa_ = sorted(cTTs, key=lambda Yw5Q: Yw5Q.sum_grades(), reverse=True) return Qsa_[:qoqK]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eBJ6(YKHO):\n yTeO = []\n for OAvw in YKHO.__stud_repo.list_all_students():\n G1Hx = 0\n KCHu = 0\n for Oa1e in YKHO.__grades:\n for bD1G in YKHO.__assign_repo.list_all_assignments():\n if Oa1e.stud_id == OAvw.stud_id and Oa1e.assign_id == bD1G.assign_id and...
[ "0.62482935", "0.59516793", "0.5894325", "0.58366525", "0.5833273", "0.5753804", "0.5628121", "0.55373067", "0.5511633", "0.5462406", "0.53327763", "0.5318166", "0.52786714", "0.5230463", "0.5214237", "0.51873577", "0.5180135", "0.51320004", "0.5090445", "0.5082116", "0.50653...
0.7576171
0
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(L_dg, YKHO).__init__(*qIxc, **c_sp) if YKHO.control_mode is None: YKHO.control_mode = 0 if YKHO.joint_impedance is None: YKHO.joint_impedance = fwwF.msg.JointImpedanceControlMode() if YKHO.cartesian_impedan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8165841", "0.7719984", "0.7719984", "0.7652579", "0.75723845", "0.75442773", "0.7485476", "0.74710065", "0.7458108", "0.7446829", "0.744584", "0.7433617", "0.74152017", "0.7408084", "0.7391839", "0.7375146", "0.73632765", "0.7326098", "0.732388", "0.732388", "0.732388", ...
0.0
-1
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(ouTo, YKHO).__init__(*qIxc, **c_sp) if YKHO.success is None: YKHO.success = False if YKHO.error is None: YKHO.error = '' else: YKHO.success = False YKHO.error = ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8167532", "0.77219325", "0.77219325", "0.7654203", "0.75745815", "0.7546024", "0.7486399", "0.74713093", "0.745941", "0.7447673", "0.74459267", "0.74353653", "0.74162686", "0.7409403", "0.7392605", "0.7376858", "0.7364597", "0.732643", "0.7325172", "0.7325172", "0.7325172"...
0.0
-1
Returns the parameterization dict mapping op names to num_outputs.
def RgAy(YKHO): return YKHO._parameterization
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PRPF(YKHO, m2Zb):\n IuG9 = {WC0m.conv2d: 'filters', WC0m.separable_conv2d: 'filters', WC0m.dense: 'units'}\n return IuG9.get(m2Zb, ojGU)", "def kbHr(YKHO, yhyn, Fxgs, qIxc, B2fa):\n if YKHO._strict and yhyn not in YKHO._parameterization:\n raise KeyError('op_name \"%s\" not found in parameter...
[ "0.6925056", "0.67841643", "0.6695029", "0.65525556", "0.64086", "0.63936615", "0.6364757", "0.63612854", "0.6325358", "0.6294327", "0.6278967", "0.6130401", "0.60716265", "0.60291106", "0.5992488", "0.59592444", "0.59373355", "0.5909782", "0.5879291", "0.5878292", "0.5826975...
0.0
-1
Masks num_outputs from the function pointed to by 'conv2d'. The object's parameterization has precedence over the given NUM_OUTPUTS argument. The resolution of the op names uses tf.contrib.framework.get_name_scope() and kwargs['scope'].
def b_zE(YKHO, *qIxc, **B2fa): FYKK, ZI14 = YKHO._get_function_and_suffix('conv2d') return YKHO._mask(FYKK, ZI14, *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fN14(YKHO, *qIxc, **B2fa):\n I07O = qlx5(_wjS, 1, qIxc, B2fa, False)\n if I07O is None:\n ZylS.logging.warning('Trying to decorate separable_conv2d with num_outputs = None')\n B2fa[_wjS] = None\n FYKK, ZI14 = YKHO._get_function_and_suffix('separable_conv2d')\n return YKHO._mask(FYKK, ...
[ "0.68812877", "0.6857395", "0.65480626", "0.6517493", "0.61851895", "0.59906155", "0.5943146", "0.5904206", "0.5850914", "0.5846051", "0.5828228", "0.5756821", "0.57451814", "0.57297134", "0.56825614", "0.56361765", "0.5626607", "0.55992424", "0.5552564", "0.55431217", "0.552...
0.54098624
31
Masks NUM_OUTPUTS from the function pointed to by 'separable_conv2d'. The object's parameterization has precedence over the given NUM_OUTPUTS argument. The resolution of the op names uses tf.contrib.framework.get_name_scope() and kwargs['scope'].
def fN14(YKHO, *qIxc, **B2fa): FYKK, ZI14 = YKHO._get_function_and_suffix('separable_conv2d') Fxgs = YKHO._get_num_outputs_kwarg_name(FYKK) I07O = qlx5(Fxgs, 1, qIxc, B2fa, False) if I07O is None: ZylS.logging.warning('Trying to decorate separable_conv2d with num_outputs = None') B2fa[Fx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fN14(YKHO, *qIxc, **B2fa):\n I07O = qlx5(_wjS, 1, qIxc, B2fa, False)\n if I07O is None:\n ZylS.logging.warning('Trying to decorate separable_conv2d with num_outputs = None')\n B2fa[_wjS] = None\n FYKK, ZI14 = YKHO._get_function_and_suffix('separable_conv2d')\n return YKHO._mask(FYKK, ...
[ "0.75793535", "0.62272495", "0.60714334", "0.59223944", "0.58760273", "0.5782023", "0.5781732", "0.5743259", "0.57422763", "0.56710947", "0.56477374", "0.56453913", "0.55829483", "0.55388737", "0.5501727", "0.549816", "0.5443894", "0.5430826", "0.5426447", "0.5405014", "0.539...
0.7487891
1
Drops any tensors that are None or vanished and applies `fn` to result. Assumes the first argument to `fn` is the list of tensors.
def nhGQ(YKHO, kp35, hms3, *qIxc, **B2fa): if kp35 not in YKHO._function_dict: raise ValueError('Unrecognized function name %s' % kp35) FYKK = YKHO._function_dict[kp35] if qIxc: g4y1 = qIxc[0] qIxc = qIxc[1:] else: if hms3 not in B2fa: raise ValueError('Missin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mG6n(FYKK: Callable, zGKt: Union[torch.Tensor, Dict, List, Tuple, Set]) -> ImMB:\n return NQIF(ht2j.is_tensor, FYKK, zGKt)", "def mTje(FYKK: Callable, zGKt: Union[torch.Tensor, Dict, List, Tuple, Set, OrderedDict, PackedSequence]) -> ImMB:\n\n def dRO0(WKvO: Union[torch.Tensor, Dict, List, Tuple, Set, ...
[ "0.6285913", "0.61868566", "0.61664385", "0.59073293", "0.5798887", "0.57251626", "0.5702883", "0.56675917", "0.5539367", "0.55003864", "0.5434822", "0.540952", "0.53945625", "0.53832036", "0.53637683", "0.53388596", "0.53357863", "0.53232247", "0.52981097", "0.52700263", "0....
0.0
-1
The list of GX dependencies with version and install information. This does not return any dependencies that are not specified directly in either requirements.txt or any requirementsdev.txt files.
def SMAd(YKHO) -> x1iM[Ms2r]: return YKHO._dependencies
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def thyL(YKHO):\n return YKHO._get_deps('requirements', src_projects=True, check_versions=False)", "def Nt4a():\n with open(Hy7s.path.join(y8r7, 'requirements.txt')) as eHNT:\n fA3L = eHNT.read()\n Aofo = []\n fA3L = fA3L.split('\\n')\n for Mkmy in fA3L:\n if Mkmy == '# setup.py - ex...
[ "0.77696544", "0.7559147", "0.7344144", "0.72834414", "0.7209551", "0.7188257", "0.70954245", "0.7074512", "0.70597595", "0.70597595", "0.70492417", "0.70401525", "0.7034896", "0.7027162", "0.70174575", "0.6991882", "0.69622666", "0.6953517", "0.6946831", "0.69336873", "0.692...
0.70779276
7
Plot Accuracy and Loss curves given the model_history
def pTX5(ZuJM): LZpg, FgGO = QrM1.subplots(1, 2, figsize=(15, 5)) FgGO[0].plot(range(1, len(ZuJM.history['acc']) + 1), ZuJM.history['acc']) FgGO[0].plot(range(1, len(ZuJM.history['val_acc']) + 1), ZuJM.history['val_acc']) FgGO[0].set_title('Model Accuracy') FgGO[0].set_ylabel('Accuracy') FgGO[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qSo0(FLXQ):\n QrM1.plot(FLXQ.history['accuracy'])\n QrM1.plot(FLXQ.history['val_accuracy'])\n QrM1.title('Model Accuracy')\n QrM1.ylabel('Accuracy')\n QrM1.xlabel('Epoch')\n QrM1.legend(['Train', 'Validation'], loc='upper left')\n QrM1.show()", "def kj9G(C3ST):\n AC8I = C3ST.history.h...
[ "0.85670704", "0.84381545", "0.8309377", "0.8304358", "0.8274392", "0.8266392", "0.825881", "0.8238952", "0.8168802", "0.81129473", "0.80479914", "0.8031789", "0.80198187", "0.8013178", "0.8012152", "0.79670674", "0.795267", "0.7889701", "0.7877599", "0.7872947", "0.78685385"...
0.8089955
10
Given the HTML content of the details page, create a new Book object with all the necessary details.
def ciqB(uXvl, vQFd, Gkzq): _CYD = dl5x() Vtgx = sqRO(uXvl) _CYD.book_id = Gkzq _CYD.title = MZBh(Vtgx) _CYD.publisher = arDR(Vtgx) _CYD.worldcaturl = vQFd _CYD.page_count = fgis(Vtgx) _CYD.summary = hk82(Vtgx) _CYD.coverurl = ss7g(Vtgx) _CYD.authors = XM9Z(uXvl) Kf9a, Umkb =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QKUK():\n Z9JV = iEBQ(cGT4, 'html.parser')\n gT5U = Z9JV.find('div', class_='dotd-main-book-summary float-left')\n VLvf = Z9JV.find('div', class_='dotd-main-book-image float-left')\n leAC = Z9JV.h2.text.strip()\n JBZA = gT5U.find_all('div')[2].text.strip()\n LNo8 = VLvf.img['src']\n QZnA =...
[ "0.66631824", "0.64269024", "0.62373203", "0.61279655", "0.61125255", "0.5962008", "0.5945513", "0.59382784", "0.5910446", "0.59036356", "0.58736837", "0.5861582", "0.58164227", "0.5775703", "0.57710546", "0.5764803", "0.5760093", "0.57467914", "0.5736951", "0.5708558", "0.56...
0.7206165
0
create sublist from given indices
def EC_r(Uqbu, QyVM): return [Uqbu[YRbF] for YRbF in QyVM]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qrt_(ybN4, _0VL):\n return [ybN4[YRbF:r845] for YRbF, r845 in zip([0] + _0VL, _0VL + [None])]", "def Cgej(d6pt):\n if len(d6pt) == 0:\n return []\n QyVM = oyIN.asarray(d6pt, dtype=oyIN.int)\n U5bT = [[] for YRbF in range(QyVM.max() + 1)]\n kaID = oyIN.hstack((QyVM, QyVM[0] + QyVM[-1] + ...
[ "0.7252836", "0.7134071", "0.6938948", "0.68931377", "0.6817328", "0.67837286", "0.6713526", "0.67102534", "0.6662538", "0.6662538", "0.6658659", "0.6652891", "0.66479105", "0.6642192", "0.65766007", "0.6522608", "0.65155023", "0.64875025", "0.6458054", "0.64562577", "0.63859...
0.5935681
42
This function calculates the critical angle of incidence (marking the onset of total internal) to Medium 2 from Medium 1 in radians.
def G06l(xp91, lfuE): MxXY = xfan(xp91) cWFu = xfan(lfuE) if cWFu > MxXY: raise ValueError('Total internal reflection impossible for n1 < n2') else: return P099(cWFu / MxXY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G06l(MxXY: T.Sequence, cWFu: T.Sequence) -> Kt_s.Sequence:\n return oyIN.arcsin(cWFu / MxXY)", "def G06l(OAgx, MxXY, mghH=True):\n lbHk = oyIN.arcsin(OAgx / MxXY)\n if mghH:\n return oyIN.degrees(lbHk)\n return lbHk", "def yXR4(jtyf, V70B, x1fj, C7Ls):\n Vofl = iQin(jtyf, V70B)\n c...
[ "0.6605827", "0.62826204", "0.6126862", "0.60700464", "0.6008657", "0.595087", "0.5935428", "0.5935392", "0.5913352", "0.5898565", "0.5850872", "0.5849448", "0.58176786", "0.5778359", "0.57552", "0.5722785", "0.5704639", "0.5666764", "0.56484985", "0.5646979", "0.5644422", ...
0.79801273
0
This function calculates focal length of a lens. It follows cartesian sign convention.
def WAMs(bfXz, QdLz, J1b4, CYjz, Csk6=0): if isinstance(bfXz, jYhJ): bfXz = bfXz.refractive_index else: bfXz = gu1r(bfXz) if isinstance(QdLz, jYhJ): QdLz = QdLz.refractive_index else: QdLz = gu1r(QdLz) Csk6 = gu1r(Csk6) DDOk = 1 / ((bfXz - QdLz) / QdLz * (1 / J1b4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDOk(YKHO):\n return float(oPf3.gdpool('INS{}_FOCAL_LENGTH'.format(YKHO.ikid), 0, 1)[0])", "def DDOk(YKHO):\n return MJED[YKHO.instrument_id]", "def DDOk(YKHO):\n return MJED[YKHO.instrument_id]", "def DDOk(YKHO):\n return MJED[YKHO.instrument_id]", "def DDOk(YKHO):\n return MJED[YKHO.in...
[ "0.7322421", "0.6904188", "0.6904188", "0.6904188", "0.6904188", "0.6712938", "0.6655619", "0.66026956", "0.653259", "0.64998764", "0.6498675", "0.6426238", "0.6364635", "0.6269553", "0.62644887", "0.61878335", "0.6163018", "0.61629075", "0.61467534", "0.59418064", "0.5905831...
0.59532577
19
Updates the weights according to the output from the activation function and the groundtruth classification.
def FUu9(YKHO, mSWK, hlel, WKvO): for YRbF in range(len(WKvO)): x4Xv = YKHO.step * (mSWK - hlel) * WKvO[YRbF] YKHO.weights_[YRbF + 1] = YKHO.weights_[YRbF + 1] + x4Xv YKHO.weights_[0] += YKHO.step * (mSWK - hlel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO) -> gyIm:\n o3Uj = YKHO.get_prediction(YKHO.training_x)\n YKHO.weights -= 2 * YKHO.alpha * (oyIN.average(oyIN.matmul(o3Uj - YKHO.training_t, YKHO.training_x)) + oyIN.average(YKHO.reg * YKHO.weights))", "def MyUA(YKHO):\n for YRbF in range(len(YKHO.input)):\n if type(YKHO.input[YRbF]...
[ "0.76078504", "0.70120615", "0.68027973", "0.6784468", "0.6783467", "0.67230755", "0.6686346", "0.6682489", "0.66571677", "0.66444737", "0.66364944", "0.6617703", "0.6612334", "0.66057575", "0.65988153", "0.65890104", "0.6588899", "0.6548736", "0.64960766", "0.6494816", "0.64...
0.63561517
47
Computes dot product of weights_ and X.
def YDYE(YKHO, WKvO, LVAh): hlel = oyIN.dot(WKvO, YKHO.weights_[1:]) if hlel >= 0: return 1 else: return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LHIe(YKHO, EcVT):\n return oyIN.dot(EcVT, YKHO.w)", "def LHIe(YKHO, EcVT):\n return oyIN.dot(EcVT, YKHO.w[1:]) + YKHO.w[0]", "def gbT6(WKvO):\n _mSQ = WKvO[0]\n input = WKvO[1]\n SjyD = nMvt.expand_dims(_mSQ)\n LYKk = input * SjyD\n return nMvt.sum(LYKk, axis=1)", "def BJ1H(Ty9i, yzQ...
[ "0.8019999", "0.7762467", "0.7614674", "0.7316019", "0.7316019", "0.7316019", "0.7316019", "0.72935635", "0.72935635", "0.72302675", "0.72289264", "0.7223378", "0.710438", "0.70975494", "0.7059604", "0.691774", "0.68963206", "0.6863234", "0.68624836", "0.6862117", "0.6862117"...
0.0
-1
The area (sq kilometers) of our osm data bounding box along latitude and longitude axes (representing crude city bounds), divided by the number of nodes (e.g. intersections) in the city.
def Conz(YKHO): W0Eb = YKHO._osmid_to_coords.values() fAC5 = [BHsk[0] for BHsk in W0Eb] nwpL = [BHsk[1] for BHsk in W0Eb] Jvcr = max(fAC5) DunT = min(fAC5) dhGN = max(nwpL) bBXZ = min(nwpL) A3Vt = 6371.0 YKHO._city_area = epAf.pi / 180.0 * A3Vt ** 2 * abs(epAf.sin(Jvcr) - epAf.sin(Du...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return YKHO._n_edges * YKHO.edge_length * YKHO.apothem * 0.5", "def f0tD(YKHO):\n TLbF = YKHO.flatten()\n f0tD = 0\n for KCHu in TLbF.asSegments():\n f0tD = f0tD + (KCHu.start.x + KCHu.end.x) * (KCHu.end.y - KCHu.start.y)\n f0tD = f0tD / 2.0\n return abs(f0tD)", "def ...
[ "0.7528281", "0.7374941", "0.73158944", "0.7252468", "0.7216028", "0.71968716", "0.7147762", "0.71068215", "0.71068215", "0.71068215", "0.7093107", "0.7044561", "0.70372415", "0.7001662", "0.69686186", "0.6962755", "0.69595337", "0.69480234", "0.69362587", "0.69254637", "0.69...
0.7725566
0
Gets all the App instances.
def J72S(pmON=aM69.config.paths.apps_path): return vxoC(path=pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zvdG() -> x1iM[Z33s]:\n return BDu7(Z33s)", "def y5NJ(YKHO):\n return YKHO.client._perform_json('GET', '/apps/%s/instances/' % YKHO.app_id)", "def zvdG(YKHO) -> x1iM[VGkP]:\n return list(YKHO.apps.values())", "async def app_list(YKHO) -> x1iM[wohN.App]:\n return await YKHO.relay('app_list')()...
[ "0.8808057", "0.8272965", "0.7963488", "0.7676902", "0.766329", "0.75427246", "0.7516223", "0.74049324", "0.7400944", "0.7377243", "0.7375925", "0.73206645", "0.7234206", "0.72111607", "0.72111607", "0.71615064", "0.71585315", "0.71388566", "0.7131602", "0.7115594", "0.708901...
0.6648225
54
Handles linear scaling rule, gradual warmup, and LR decay. The learning rate starts at 0, then it increases linearly per step. After 5 epochs we reach the base learning rate (scaled to account for batch size). After 30, 60 and 80 epochs the learning rate is divided by 10. After 90 epochs training stops and the LR is se...
def FvGu(aOou, pSFx): qtWj = aOou + float(pSFx) / yOOw NEBI, hkDk = cAYu[0] if qtWj < hkDk: return ZGTz * NEBI * qtWj / hkDk for hObQ, aMlA in cAYu: if qtWj >= aMlA: b0Ix = ZGTz * hObQ else: break return b0Ix
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(tspZ, m_03, paSp, Ep8u, K0do, Wc9F):\n for YRbF in range(len(paSp)):\n NXpY = m_03[YRbF] if YRbF < len(m_03) else 1\n if Wc9F >= paSp[YRbF]:\n tspZ = tspZ * NXpY\n if Wc9F == paSp[YRbF]:\n break\n else:\n break\n for Lwm5 in K0do.p...
[ "0.7541002", "0.7449413", "0.7270198", "0.72036105", "0.71773493", "0.71644723", "0.7163424", "0.7143156", "0.7111354", "0.70655435", "0.7057014", "0.7055861", "0.7044746", "0.7040487", "0.7029417", "0.70214367", "0.70126355", "0.7009794", "0.7007583", "0.6978889", "0.6977839...
0.0
-1
Called if all forms are valid. Creates a Recipe instance along with associated Ingredients and Instructions and then redirects to a success page.
def lwXz(YKHO, L03z, yT3u): L03z.instance.updated_by = YKHO.request.user if L03z.changed_data: if 'vatin' in L03z.changed_data: L03z.instance.metadata['vat_identification_number'] = L03z.cleaned_data['vatin'] if 'phone' in L03z.changed_data: L03z.instance.metadata['phone'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QoQY(QePW):\n if QePW.method != 'POST':\n return vKnz('wine_recipes:index')\n else:\n return vKnz('wine_recipes:index')\n return vKnz('wine_recipes:index')", "def EPwd():\n L03z = dq3a()\n S0MI.debug('New recipe form.')\n if L03z.validate_on_submit():\n S0MI.debug('Vali...
[ "0.706777", "0.69840294", "0.68078554", "0.6786955", "0.6786955", "0.6584316", "0.6574571", "0.6544667", "0.6537903", "0.6409069", "0.6399569", "0.63868254", "0.63342804", "0.63257295", "0.62865233", "0.6264798", "0.6262804", "0.6245992", "0.6183754", "0.61608654", "0.6154945...
0.0
-1
Called if a form is invalid. Rerenders the context data with the datafilled forms and errors.
def ee9W(YKHO, L03z, yT3u): return YKHO.render_to_response(YKHO.get_context_data(form=L03z, additional_page_form=yT3u))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ee9W(YKHO, QePW, L03z, wL1m, mYto):\n return _1tc(QePW, YKHO.template_name, YKHO.get_context_data(form=L03z, status_form=wL1m, files_form=mYto))", "def ee9W(YKHO, L03z):\n return YKHO.render_to_response(YKHO.get_context_data())", "def ee9W(YKHO, L03z, **B2fa):\n QpfX = YKHO.get_context_data(**B2fa...
[ "0.8202664", "0.79836166", "0.7913726", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7870576", "0.7840268", "0.7816142", "0.7789248", "0.77881104", "0.7781492", "0.77720207", "0.7736866", "0.770091", "0.7684558", "0.76332664", ...
0.7264475
34
Called if all forms are valid. Creates a Recipe instance along with associated Ingredients and Instructions and then redirects to a success page.
def lwXz(YKHO, L03z, yT3u): L03z.instance.created_by = YKHO.request.user L03z.instance.updated_by = YKHO.request.user I1mm = L03z.cleaned_data.get('flag') L03z.instance.metadata = {'vat_identification_number': L03z.cleaned_data['vatin'], 'phone': L03z.cleaned_data['phone'], 'fax': L03z.cleaned_data['fax...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QoQY(QePW):\n if QePW.method != 'POST':\n return vKnz('wine_recipes:index')\n else:\n return vKnz('wine_recipes:index')\n return vKnz('wine_recipes:index')", "def EPwd():\n L03z = dq3a()\n S0MI.debug('New recipe form.')\n if L03z.validate_on_submit():\n S0MI.debug('Vali...
[ "0.706777", "0.69840294", "0.68078554", "0.6786955", "0.6786955", "0.6584316", "0.6574571", "0.6544667", "0.6537903", "0.6409069", "0.6399569", "0.63868254", "0.63342804", "0.63257295", "0.62865233", "0.6264798", "0.6262804", "0.6245992", "0.6183754", "0.61608654", "0.6154945...
0.0
-1
Called if a form is invalid. Rerenders the context data with the datafilled forms and errors.
def ee9W(YKHO, L03z, yT3u): MxLp = YKHO.get_context_data(form=L03z, additional_page_form=yT3u) return YKHO.render_to_response(MxLp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ee9W(YKHO, QePW, L03z, wL1m, mYto):\n return _1tc(QePW, YKHO.template_name, YKHO.get_context_data(form=L03z, status_form=wL1m, files_form=mYto))", "def ee9W(YKHO, L03z):\n return YKHO.render_to_response(YKHO.get_context_data())", "def ee9W(YKHO, L03z, **B2fa):\n QpfX = YKHO.get_context_data(**B2fa...
[ "0.8202664", "0.79836166", "0.7913726", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7870576", "0.7840268", "0.7816142", "0.7789248", "0.77881104", "0.7781492", "0.77720207", "0.7736866", "0.770091", "0.7684558", "0.76332664", ...
0.7299926
31
head The linked list's head. Note that the head is guaranteed to be not null, so it contains at least one node.
def FIMM(YKHO, sdCG: Optional[ListNode]): YKHO.list = [] while sdCG is not None: YKHO.list.append(sdCG.val) sdCG = sdCG.next YKHO.n = len(YKHO.list)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdCG(YKHO, Q6kx=None):\n if Q6kx:\n assert type(Q6kx) == o7DN\n YKHO._head = Q6kx", "def sdCG(YKHO) -> Msxl:\n raise NotImplementedError", "def qHHo(YKHO):\n return YKHO.head", "def _IVA(YKHO):\n if YKHO.head is None:\n return None\n if YKHO.head.nextNode is None:\n ...
[ "0.76400256", "0.7545239", "0.74670565", "0.74083126", "0.7392326", "0.73702055", "0.73619145", "0.7159841", "0.71379167", "0.69521284", "0.69521284", "0.69521284", "0.69521284", "0.6929107", "0.69181234", "0.6897932", "0.68669105", "0.6849052", "0.6779868", "0.67579246", "0....
0.64430374
47
Returns a random node's value.
def UIrZ(YKHO) -> int: return YKHO.list[ajWY(0, YKHO.n - 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RjKZ(YKHO):\n return YKHO[YKHO.random_key()]", "def UIrZ(YKHO):\n Q6kx = YKHO.head\n from random import randint\n for YRbF in Ni9Y(randint(0, YKHO.len - 1)):\n Q6kx = Q6kx.next\n return Q6kx.val", "def ALfI(YKHO):\n return tuKI.randint(1, 10)", "def RHmZ(YKHO):\n return YKHO.V...
[ "0.7683627", "0.765839", "0.74031866", "0.738855", "0.7353973", "0.7183241", "0.70771766", "0.7077015", "0.702326", "0.699212", "0.6940177", "0.6889105", "0.6845422", "0.6834654", "0.68165374", "0.67828757", "0.67084455", "0.6703253", "0.6688887", "0.664814", "0.66145146", ...
0.0
-1
Generate a random string of fixed length
def TJC9(YKHO, FVpJ=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))", "def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]", "def BWvy(a__r):\n return Hy7s.urandom(a__r)", "def MiNk(u54L):\n gLiZ = vIwR.ascii...
[ "0.8746205", "0.87138057", "0.86634374", "0.8589632", "0.85856813", "0.85634226", "0.8558564", "0.85515654", "0.853908", "0.8533391", "0.8508468", "0.85072726", "0.84704083", "0.84667903", "0.84667903", "0.84504145", "0.8449424", "0.8428432", "0.84244287", "0.8423231", "0.841...
0.80299705
88
/OPTIONS handler for preflight CORS checks. When a browser is making a CORS request, it may sometimes first send an OPTIONS request, to check whether the server understands the CORS protocol. This is optional, and doesn't happen for every request or in every browser. If an OPTIONS request does get sent, and is not then...
def xAU6(YKHO): YKHO.set_status(204) YKHO.finish()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ol6t(YKHO):\n YKHO.send_response(200)\n YKHO.send_header('Access-Control-Allow-Origin', '*')\n YKHO.send_header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE')\n YKHO.send_header('Access-Control-Allow-Headers', 'X-Requested-With, Content-Type, Accept')\n YKHO.end_headers()", "def Ol6...
[ "0.7926462", "0.79222614", "0.79222614", "0.7849409", "0.76065415", "0.74235004", "0.74003124", "0.7382572", "0.726104", "0.72580254", "0.72580254", "0.72580254", "0.72580254", "0.7252817", "0.72417927", "0.71870846", "0.7181115", "0.7181115", "0.71190745", "0.7100145", "0.70...
0.0
-1
/OPTIONS handler for preflight CORS checks.
def xAU6(YKHO): YKHO.set_status(204) YKHO.finish()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ol6t(YKHO):\n YKHO.send_response(200)\n YKHO.send_header('Access-Control-Allow-Origin', '*')\n YKHO.send_header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE')\n YKHO.send_header('Access-Control-Allow-Headers', 'X-Requested-With, Content-Type, Accept')\n YKHO.end_headers()", "def Ol6...
[ "0.7706996", "0.7674312", "0.7674312", "0.76131356", "0.73930943", "0.7375245", "0.7337656", "0.724682", "0.7222068", "0.71489227", "0.7075725", "0.7037063", "0.6990753", "0.6990753", "0.6990753", "0.6990753", "0.6989204", "0.69335234", "0.6928855", "0.6928855", "0.6902429", ...
0.0
-1
Returns the earliest created_at time, or None
def B_H8(Emd4): Aofo = Emd4.objects.aggregate(earliest_created_at=FYrf.Min('created_at')) return Aofo['earliest_created_at']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B_H8(Emd4):\n dixj = Emd4.objects.aggregate(earliest_created_at=FYrf.Min('created_at'))\n return dixj['earliest_created_at']", "def aJ2e(YKHO) -> h8nf[JRYC.datetime]:\n if YKHO.__desc.created_at is not None:\n return JRYC.datetime.utcfromtimestamp(YKHO.__desc.created_at / 1000.0)\n return ...
[ "0.8257112", "0.74304074", "0.72570527", "0.7244062", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", "0.7136301", ...
0.82289565
1
Creates tf.Example messages for decomposition.
def DTXV(D5gV, C4BN): YFIt = [[VN2L(pKvt) for VN2L in D5gV.program.expressions] for pKvt in D5gV.inputs] assert all((''.join(SQ3m) == yvT9 for SQ3m, yvT9 in zip(YFIt, D5gV.outputs))) dixj = [] for YRbF, VN2L in enumerate(D5gV.program.expressions): o4Jx = [''.join(SQ3m[YRbF:]) for SQ3m in YFIt] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f1zj(Mc9N, bAls, ANfV):\n PU1l = ZylS.train.Example()\n PU1l.features.feature['product_id'].bytes_list.value.append(Mc9N.encode('utf-8'))\n PU1l.features.feature['context'].bytes_list.value.append(bAls.encode('utf-8'))\n PU1l.features.feature['response'].bytes_list.value.append(ANfV.encode('utf-8')...
[ "0.6277878", "0.60070795", "0.5709714", "0.5704537", "0.5699721", "0.5659093", "0.5645308", "0.55400497", "0.55259174", "0.5508424", "0.54851794", "0.5484492", "0.5467552", "0.5433751", "0.54173595", "0.54162955", "0.53797346", "0.53578275", "0.5349631", "0.5335978", "0.53324...
0.5181043
56
Computes count (as a tuple) of positive and negative sentiment scores
def zWTy(BdPz): SAv9 = BdPz[aQda].apply(lambda WKvO: ((WKvO > 0).sum(), (WKvO < 0).sum())) SAv9 = rLdf.DataFrame(SAv9.tolist(), columns=(Zubo, c0Js), index=SAv9.index) SAv9[c5IT] = SAv9.index return SAv9.reset_index()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bT_l(Jqdh):\n dp80 = Jqdh.count(1)\n aQv2 = Jqdh.count(-1)\n return (dp80, aQv2)", "def p1kx(BEXq, xaWb, pHjB):\n XP5J, exwG = (0, 0)\n for GIN8 in BEXq:\n if GIN8 in xaWb:\n XP5J += 1\n elif GIN8 in pHjB:\n exwG += 1\n else:\n continue\n ...
[ "0.75324345", "0.7358202", "0.70889896", "0.7059803", "0.6960412", "0.6960412", "0.6913822", "0.6836323", "0.6835927", "0.68237233", "0.6706122", "0.6629574", "0.65984905", "0.6573402", "0.65472114", "0.6515203", "0.65068823", "0.6483498", "0.64656824", "0.64644045", "0.64628...
0.0
-1
Dynamic plotting function that works with upstream text data that has been tagged in some (numerical) way The provided functionality allows the user to pass in a dataframe including a date_col, source_col, and label_col, and then specify various options for producing summarized graphs that represent the given data. Mul...
def _3lc(ee8T: pd.DataFrame, WJFk: str, aQda: Optional[str]=None, QxIo: Optional[str]='mentions', xy5X: Optional[bool]=False, zbrO: Optional[bool]=False, yHH9: Optional[bool]=False, DDLl: Optional[str]='plotly'): QxIo = QxIo.casefold() if (QxIo := QxIo.casefold()) not in KowR: raise AttributeError(f'Got...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JotR(bOBl, AIkQ, pbzM='datetime', RvHf=True, dzKJ=IGhh):\n kaNW = pWhO(dzKJ, row=AIkQ)\n rLdf.options.mode.chained_assignment = None\n bOBl.loc[:, 'Datanum'] = bOBl.Data.map(lambda WKvO: tjvw(kaNW, WKvO, 'Data'))\n try:\n bOBl.loc[:, 'Graphcolor'] = bOBl.Data.map(lambda WKvO: tjvw(kaNW, WKvO...
[ "0.6315803", "0.6302055", "0.62121296", "0.6091516", "0.6068338", "0.5984878", "0.5958435", "0.58969074", "0.58801377", "0.5799426", "0.5753533", "0.57243615", "0.5682823", "0.56403804", "0.5638601", "0.55897194", "0.5559272", "0.5551484", "0.5541943", "0.553357", "0.5520498"...
0.698144
0
Generate YAML resource configuration.
def qMvY(QpfX): teP4 = QpfX.env['deployment'] + '-' + QpfX.env['name'] c0yN = teP4 Mu3O = teP4 + '-type' J5fB = teP4 + '-service-type' JKCy = [{'name': c0yN, 'type': 'gcp-types/container-v1beta1:projects.zones.clusters', 'properties': {'zone': QpfX.properties['zone'], 'cluster': {'name': c0yN, 'netw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eJb6(YKHO) -> dict:\n return YKHO._resource_yaml", "def qMvY(QpfX):\n hGN5 = {'resources': [l7Np(QpfX), onD_(QpfX)], 'outputs': [{'name': 'config-url', 'value': RdEz(QpfX)}, {'name': 'variable-path', 'value': L3vx}]}\n return eJb6.safe_dump(hGN5)", "def O1QX():\n import config\n config.CONFI...
[ "0.7029296", "0.69652635", "0.69553375", "0.68759745", "0.66428643", "0.6599097", "0.6465284", "0.6432028", "0.64064276", "0.6404919", "0.6351833", "0.63034064", "0.62702876", "0.62640995", "0.6224754", "0.6213228", "0.62074983", "0.61598814", "0.61567205", "0.61567205", "0.6...
0.6024075
33
A unique id by which the server knows this bot. We get it from the 'sid' of the web socket, for the default namespace. It might look something like '3r6InRBtgIE9McZNAAAn' and we can look up our own state from the entities list using this.
def CdNV(YKHO): return YKHO._my_entity_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A3l8(YKHO):\n return YKHO._bot_id", "def A3l8(YKHO):\n return YKHO._bot_id", "def unpH(YKHO):\n return YKHO.sid", "def unpH(YKHO):\n return YKHO._sid", "def ShR8(YKHO):\n return YKHO._channel.id", "def unpH(YKHO):\n return YKHO.server.get_id()", "def id(YKHO) -> str:\n return Y...
[ "0.6932987", "0.6932987", "0.67620206", "0.6708068", "0.6478169", "0.6458389", "0.6439478", "0.6378021", "0.63695097", "0.636834", "0.6331467", "0.6327248", "0.6310106", "0.6303824", "0.62980765", "0.6278768", "0.6270499", "0.62613887", "0.62613887", "0.6241799", "0.6240195",...
0.0
-1