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
Returns a matplotlib figure containing the plotted confusion matrix.
def LwSz(Bcwd, tGDF): JI1i = QrM1.figure(figsize=(8, 8)) QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues) QrM1.title('Confusion matrix') QrM1.colorbar() wIWT = oyIN.arange(len(tGDF)) QrM1.xticks(wIWT, tGDF, rotation=45) QrM1.yticks(wIWT, tGDF) Bcwd = oyIN.around(Bcwd.astype...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.colorbar()\n wIWT = oyIN.arange(len(tGDF))\n QrM1.xticks(wIWT, tGDF, rotation=45)\n QrM1.yticks(wIWT, tGDF)\n for YRbF, r845 ...
[ "0.78412247", "0.7717752", "0.7664576", "0.76329076", "0.75771934", "0.75757915", "0.7523076", "0.75182974", "0.75016636", "0.74832636", "0.746719", "0.7453887", "0.7453294", "0.74216324", "0.74176985", "0.7395515", "0.7386801", "0.73838943", "0.7383021", "0.73677856", "0.736...
0.77491516
1
Get the start and end time from the log data. This function will return a tuple of start and end time.
def vAiF(civC, lSi7): try: Vu19 = svyP(civC) jxZ2 = TgwQ('<(\\d{2}):(\\d{2})> [^d]* Loading level \\w+\\/\\w+, \\w+ \\w+', civC) SWox = Vu19.replace(minute=int(jxZ2.group(1)), second=int(jxZ2.group(2))) if SWox.minute < Vu19.minute: SWox += fCoM(hours=1) if lSi7: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mqd5(YKHO):\n nPrm = YKHO.simulate_file.readlines()\n nPrm = list(map(str.strip, nPrm))\n nPrm = list(map(float, nPrm))\n yKcO = nPrm[0]\n WXkz = nPrm[1:]\n return (yKcO, WXkz)", "def ITS7(YKHO):\n return YKHO.raw['logTime']", "def svyP(civC):\n try:\n RM3d = TgwQ('Log Starte...
[ "0.6859266", "0.6808932", "0.6611192", "0.6528971", "0.6301918", "0.62701046", "0.6230074", "0.6228107", "0.61802197", "0.6165671", "0.61075574", "0.60965973", "0.60938215", "0.60265505", "0.6009882", "0.594939", "0.5925774", "0.59253323", "0.5921582", "0.590829", "0.5852322"...
0.5976989
15
Provides all descendants of the given type. Includes klass.
def TPXT(YKHO, rV9y: TypeInfo) -> j_2z[Z4lX]: if rV9y not in YKHO._graph: return j_2z([rV9y]) Aofo: j_2z[Z4lX] = j_2z(jHsn.descendants(YKHO._graph, rV9y)) Aofo.add(rV9y) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B5QF(YKHO, type: str):\n return list(B5QF(YKHO.type_tree, type))", "def B5QF(Emd4):\n return Emd4.__subclasses__() + [Oa1e for KCHu in Emd4.__subclasses__() for Oa1e in KCHu.descendants()]", "def G9u7(YKHO):\n geh0 = Ixx7(YKHO, tq_1.stack()[0][3])\n if not geh0:\n return geh0\n B5QF =...
[ "0.81014854", "0.7003053", "0.68531823", "0.6478727", "0.6168609", "0.60948336", "0.6030036", "0.59735334", "0.5944309", "0.5937556", "0.5936306", "0.5920937", "0.59043145", "0.58937293", "0.58680224", "0.5865847", "0.582701", "0.5784753", "0.5776869", "0.5693442", "0.5679254...
0.65370834
3
Only an admin can post products
def i37P(YKHO): with YKHO.client: YKHO.client.post('/api/v1/auth/register', data=qQXR.dumps(dict(name='leticia', email='kokuleba@gmail.com', role='admin', username='ticia', password='password', confirm_password='password')), content_type='application/json') YKHO.client.post('/api/v1/auth/register', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uvf2(YKHO):\n return 'core.manage_products'", "def qexb(YKHO):\n _hkX = YKHO.admin_create_user()\n Amyp = YKHO.attendant_login()\n eOtH = Amyp['token']\n Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)\n _hkX = YKHO.client.post('/api/v1/products', content_type='ap...
[ "0.720782", "0.7153936", "0.64834005", "0.641502", "0.6325029", "0.6291831", "0.6291831", "0.62828994", "0.6260777", "0.6209634", "0.6175433", "0.6127744", "0.60628", "0.60407424", "0.6016531", "0.59795654", "0.59795654", "0.5943077", "0.592803", "0.5923449", "0.59109104", ...
0.0
-1
insert null byte before string >>> tamper("1 AND '1'='1") '%001 AND '1'='1'
def w0c3(pB3N, **B2fa): return pB3N + '%00' if pB3N else pB3N
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BaqQ(YKHO, input):\n return input.encode() + b'\\x00'", "def f_dI():\n assert r5ZL.hexlify('') == ''", "def lX6R(WKvO):\n return '\\x00' not in WKvO", "def KnrW(KCHu):\n if len(KCHu) < 8:\n KCHu += '\\x00' * (8 - len(KCHu))\n return KCHu", "def Ua4O(vIwR):\n return '\\x00'.join...
[ "0.6149872", "0.5950001", "0.55294305", "0.5508528", "0.55057997", "0.55035996", "0.5471932", "0.5471912", "0.5415258", "0.54004097", "0.5344739", "0.53436196", "0.5323801", "0.5323801", "0.5323801", "0.5316458", "0.53125095", "0.5280506", "0.52689606", "0.52674514", "0.52604...
0.52330613
23
Return a function to pad elements of a list.
def CTeo(hkWs, dDGN=0): u54L = max((len(str(KCHu)) for KCHu in hkWs)) + dDGN def hVLt(vIwR): vIwR = str(vIwR) dvgN = max(0, u54L - len(vIwR)) return vIwR + dvgN * ' ' return hVLt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RnIX(fUYa, KHPh=0.0, _C3A=False):\n lHmx = len(fUYa)\n gNly = max((WKvO.size(0) for WKvO in fUYa))\n CBXt = fUYa[0].new_zeros(lHmx, gNly, *fUYa[0].size()[1:]).fill_(KHPh)\n for Fg_i in range(lHmx):\n if len(fUYa[Fg_i]) == 0:\n continue\n if _C3A:\n CBXt[Fg_i, -fU...
[ "0.7674492", "0.76731604", "0.7416787", "0.7285273", "0.7239374", "0.72163254", "0.71986103", "0.69835824", "0.6923576", "0.66847235", "0.6625077", "0.6605411", "0.6583567", "0.6560094", "0.6545725", "0.6521352", "0.6475346", "0.64614195", "0.644858", "0.6372992", "0.6372992"...
0.706407
7
recordSymbolKind(int symbolId, SymbolKind symbolKind) > bool
def LoPX(p7pm, urvS): return shJo.recordSymbolKind(p7pm, urvS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ktDb(p7pm, O4gY):\n return shJo.recordSymbolDefinitionKind(p7pm, O4gY)", "def vXL0(Csk6):\n return V7qc.get(Csk6.type)", "def OnKH(YKHO, aDi_):\n return YKHO.symbols.has_key(aDi_)", "def GoVZ(YEnM):\n return isinstance(YEnM, wZLS)", "def JvdK(YKHO, o61b):\n if o61b.type == YKHO.scanner.E...
[ "0.75940293", "0.6315197", "0.6185989", "0.6089939", "0.56914717", "0.5552093", "0.5515827", "0.5426238", "0.5420301", "0.54181653", "0.5417435", "0.53692114", "0.53555936", "0.53093374", "0.5295296", "0.5277134", "0.5254358", "0.5250694", "0.5215313", "0.5192999", "0.5126858...
0.80896986
0
Shift 3D tensor forwards in time with padding.
def Tv7m(WKvO, DkWr, E6dX=0.0): if DkWr > 0: dvgN = ht2j.ones(WKvO.size(0), DkWr, WKvO.size(2)).to(WKvO.device) * E6dX return ht2j.cat((dvgN, WKvO[:, :-DkWr, :]), dim=1) elif DkWr < 0: dvgN = ht2j.ones(WKvO.size(0), -DkWr, WKvO.size(2)).to(WKvO.device) * E6dX return ht2j.cat((WKv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qcr6(WKvO, KHPh=None):\n if KHPh is None:\n dttp = ZylS.pad(WKvO, [[0, 0], [1, 0], [0, 0]])[:, :-1, :]\n else:\n dttp = ZylS.concat([KHPh, WKvO], axis=1)[:, :-1, :]\n return dttp", "def IINl(WKvO, F1vV=-1):\n WKvO = ZylS.transpose(WKvO, perm=[2, 3, 0, 1])\n Yjog = ZylS.shape(WKvO...
[ "0.6957321", "0.6896348", "0.68950534", "0.682579", "0.66471726", "0.6604212", "0.6572679", "0.6540047", "0.6455436", "0.6373999", "0.6373999", "0.6373999", "0.6373999", "0.63667166", "0.6301078", "0.6298633", "0.62869304", "0.6244009", "0.621644", "0.61963135", "0.61335826",...
0.6754037
4
Update a post if the current user is the author.
def QdZT(id): m8z6 = lFcq(id) if QePW.method == 'POST': leAC = QePW.form['title'] TBsA = QePW.form['body'] P1dF = None if not leAC: P1dF = 'Title is required.' if P1dF is not None: Dwep(P1dF) else: NCls = GGod() NCls...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, QePW, _sei=None):\n CBIr = Kqnp.objects.get(user=QePW.auth.user)\n m8z6 = T97t.objects.get(pk=_sei)\n m8z6.user = CBIr\n m8z6.title = QePW.data['title']\n m8z6.publication_date = QePW.data['publicationDate']\n m8z6.image_url = QePW.data['imageUrl']\n m8z6.content = QePW.data['co...
[ "0.64033383", "0.63095564", "0.6191704", "0.61885726", "0.615415", "0.61531925", "0.6136559", "0.6109247", "0.6064209", "0.59939826", "0.5925683", "0.59127086", "0.5905584", "0.5817421", "0.5781429", "0.5777928", "0.5773793", "0.5763027", "0.5746472", "0.57412624", "0.5732245...
0.57814234
15
Delete a post. Ensures that the post exists and that the logged in user is the author of the post.
def PTpj(id): lFcq(id) NCls = GGod() lFcq(id) NCls = GGod() NCls.execute('DELETE FROM post WHERE id = ?', (id,)) NCls.commit() return vKnz(nKyW('blog.index'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QcaM(QePW, Fi3q):\n m8z6 = T97t.objects.get(id=Fi3q)\n oyhy(QePW, m8z6)\n m8z6.delete()\n return vKnz('/posts')", "def QcaM(Fi3q):\n if n9tm not in cuiw:\n raise BlEM()\n m8z6 = T97t.query.get_or_404(Fi3q)\n CBIr = mv1M.query.get(cuiw[n9tm])\n if m8z6.user_id != cuiw[n9tm]:\n ...
[ "0.82036835", "0.8148285", "0.79966795", "0.7979907", "0.79518944", "0.78901106", "0.7819013", "0.78037083", "0.7792348", "0.77912194", "0.77896076", "0.76400936", "0.7621717", "0.7567783", "0.7484394", "0.7420754", "0.7403539", "0.7327933", "0.7295707", "0.7175031", "0.71616...
0.6984236
25
Is data cached at name less than max_age old?
def K6HI(mWFP, uqEL): ZJe_ = TzSz(mWFP) if not ZJe_: return False return ZJe_ < uqEL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzSz(mWFP):\n gLDJ = tUko('%s.cache' % mWFP)\n if not Hy7s.path.exists(gLDJ):\n return 0\n return ITS7.time() - Hy7s.stat(gLDJ).st_mtime", "def pL9a(YKHO, cb_Q):\n Mkmy = cb_Q.get(YKHO.url)\n assert YKHO.cache.get(YKHO.url) == Mkmy.raw\n Mkmy = cb_Q.get(YKHO.url, headers={'Cache-Cont...
[ "0.72965616", "0.7153269", "0.70713377", "0.70586544", "0.6953036", "0.6891018", "0.6786858", "0.6751199", "0.6621201", "0.6565467", "0.6547826", "0.65193224", "0.6484371", "0.64834225", "0.6409674", "0.63673294", "0.635884", "0.63153917", "0.6275169", "0.62646645", "0.616324...
0.88099766
0
Initializes ResponseGraphUCB instance. Assumes that all payoffs fall in the interval [0,1].
def FIMM(YKHO, BH3N, N5SR='uniform-exhaustive', krhe='ucb-standard', RA_F=0.01, ivG5=0, rmo7=True, C_dY=False): YKHO.exploration_strategy = N5SR YKHO.confidence_method = krhe YKHO.ucb_eps = ivG5 YKHO.G = BH3N YKHO.per_payoff_confidence = rmo7 YKHO.time_dependent_delta = C_dY if YKHO.per_payo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.counts = [0] * 10\n YKHO.values = [0] * 10\n YKHO.ucb_values = [0] * 10\n YKHO.minmax = 0", "def FIMM(Ro_8, *, iQOR: Optional[float]=None, Rs6E: Optional[float]=None, aK6G: Optional[str]=None):\n if iQOR is not None:\n qe4Y.set(Ro_8, 'count_of_downgrades', iQOR)\n ...
[ "0.57106537", "0.56416196", "0.5479917", "0.5332052", "0.5301096", "0.5290658", "0.52858675", "0.5282333", "0.52401644", "0.52161527", "0.5172802", "0.5168146", "0.5149063", "0.51293385", "0.51009285", "0.5100224", "0.50839627", "0.5072702", "0.5066358", "0.50627834", "0.5042...
0.49025044
43
Evaluates a strategy profile on the sampling queue.
def yA4u(YKHO, ATa1=False): if YKHO.profile_queue: KCHu = YKHO.profile_queue.pop(0) if KCHu not in YKHO.active_strategy_profiles: YKHO.active_strategy_profiles.append(KCHu) VKbQ = YKHO.G.observe_result(KCHu) if ATa1: yield (KCHu, VKbQ) YKHO.update_mean...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mkx5(YKHO, Xy6E, yokr):\n r8hN = Xy6E()\n OuMq = Itgq(seed=yokr).run(Uk18(seed=yokr))\n pgQE = oyIN.array(r8hN.result(OuMq))\n SKE2 = oyIN.array(OuMq.evaluate(r8hN))\n assert oyIN.equal(pgQE, SKE2).all()", "def DJ23(BH3N, m2Zb, QhXp, w31Z, *, SRY4=None, P3Cm=None):\n QhXp = QhXp.reshape((-1...
[ "0.5969119", "0.5633794", "0.538661", "0.5345422", "0.522462", "0.5210097", "0.5199366", "0.51986796", "0.519764", "0.51925373", "0.5109528", "0.5101279", "0.5093053", "0.50835174", "0.5083061", "0.50826895", "0.50613225", "0.50515187", "0.50392723", "0.5016928", "0.5011067",...
0.7300616
0
Returns upper confidence bound for proportion p successes of n trials. Uses exact ClopperPearson interval.
def XDRD(YKHO, XP5J, exwG, RA_F): if XP5J > 1 - 1e-06: return 1.0 else: CN9P = Zxt2.stats.beta.ppf(1.0 - RA_F / 2, XP5J * exwG + 1, exwG - XP5J * exwG) return CN9P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ULUO(XP5J, exwG, lwa0=95):\n Cwt5 = oyIN.round(1 - lwa0 / 100, 2)\n RLoG = oyIN.sqrt(XP5J * (1 - XP5J) / exwG)\n zaQm = oyIN.round(eQSh.norm.ppf(1 - Cwt5 / 2), 3)\n sfgS = oyIN.round(zaQm * RLoG, 2)\n aHzl = oyIN.round(XP5J - sfgS, 2)\n x67h = oyIN.round(XP5J + sfgS, 2)\n print('Margin Of ...
[ "0.6998814", "0.64962876", "0.595823", "0.5941224", "0.5918993", "0.5901527", "0.58296585", "0.57775664", "0.57620996", "0.5741478", "0.5741384", "0.5736505", "0.5735129", "0.5710484", "0.569269", "0.5689493", "0.5670027", "0.56609076", "0.5651708", "0.5647094", "0.56341124",...
0.5152565
58
Returns lower confidence bound for proportion p successes of n trials. Uses exact ClopperPearson interval.
def ZsWI(YKHO, XP5J, exwG, RA_F): if XP5J < 1e-06: return 0.0 else: LSh8 = Zxt2.stats.beta.ppf(RA_F / 2, XP5J * exwG, exwG - XP5J * exwG + 1) return LSh8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ULUO(XP5J, exwG, lwa0=95):\n Cwt5 = oyIN.round(1 - lwa0 / 100, 2)\n RLoG = oyIN.sqrt(XP5J * (1 - XP5J) / exwG)\n zaQm = oyIN.round(eQSh.norm.ppf(1 - Cwt5 / 2), 3)\n sfgS = oyIN.round(zaQm * RLoG, 2)\n aHzl = oyIN.round(XP5J - sfgS, 2)\n x67h = oyIN.round(XP5J + sfgS, 2)\n print('Margin Of ...
[ "0.6784953", "0.6666219", "0.638372", "0.5912771", "0.59070927", "0.5872947", "0.5866034", "0.5781815", "0.56731147", "0.56494725", "0.5635466", "0.56259406", "0.56119", "0.55895066", "0.55773395", "0.55713755", "0.5543089", "0.55124664", "0.5490302", "0.54796183", "0.5479553...
0.5224509
41
Returns kth player's payoff upperconfidencebound given profile s.
def XoBe(YKHO, KCHu, G1Hx): if YKHO.confidence_method == 'ucb-standard': KLzg = YKHO._ucb_standard_factor(KCHu, G1Hx) return YKHO.mu[G1Hx][KCHu] + KLzg elif YKHO.confidence_method == 'ucb-standard-relaxed': KLzg = YKHO._ucb_standard_factor(KCHu, G1Hx) - YKHO.ucb_eps return YKHO.m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UO6I(YKHO, G1Hx: int | str=1) -> float:\n MLMg, i8M3, v5Ic, PFVa = YKHO.pred_mat.shape\n vb7U = oRi_(b0ZQ.Variable)\n for dqxq in range(v5Ic):\n for GWt1 in range(PFVa):\n vb7U[dqxq, GWt1] = b0ZQ.Variable((MLMg, i8M3), name=f'M(a, b | {dqxq}, {GWt1})')\n H1EK = b0ZQ.Constant(0)\n ...
[ "0.5742807", "0.571121", "0.55681527", "0.553988", "0.54806167", "0.54524016", "0.538193", "0.5374032", "0.5372753", "0.53507614", "0.53410345", "0.53332704", "0.5329912", "0.5321811", "0.52907944", "0.5283707", "0.5260353", "0.5247896", "0.52271086", "0.5215809", "0.51892704...
0.5731787
1
Returns kth player's payoff lowerconfidencebound given profile s.
def nNu3(YKHO, KCHu, G1Hx): if YKHO.confidence_method == 'ucb-standard': KLzg = YKHO._ucb_standard_factor(KCHu, G1Hx) return YKHO.mu[G1Hx][KCHu] - KLzg elif YKHO.confidence_method == 'ucb-standard-relaxed': KLzg = YKHO._ucb_standard_factor(KCHu, G1Hx) + YKHO.ucb_eps return YKHO.m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhta(YKHO):\n if not YKHO.tours:\n raise Exception('No lower bound has been computed yet')\n P6Dd = max(YKHO.lower_bounds, key=YKHO.lower_bounds.get)\n print('The best lower bound is given by {} with score {}'.format(P6Dd, YKHO.lower_bounds[P6Dd]))\n return YKHO.lower_bounds[P6Dd]", "def Y...
[ "0.5595362", "0.5578217", "0.55689", "0.54349214", "0.54166657", "0.5412363", "0.53970104", "0.53970104", "0.53737116", "0.5349379", "0.5329898", "0.5287656", "0.5177802", "0.51716083", "0.5166101", "0.5150292", "0.51501316", "0.51461995", "0.513952", "0.5067333", "0.5011263"...
0.5800637
0
Updates grand total after each product addition
def FOQa(YKHO): YKHO.order_total = YKHO.lineitems.aggregate(zphJ('lineitem_total'))['lineitem_total__sum'] or 0 if YKHO.order_total < gCuF.FREE_DELIVERY_THRESHOLD: Xc0n = gCuF.STANDARD_DELIVERY_PERCENTAGE YKHO.delivery_cost = YKHO.order_total * Xc0n / 100 else: YKHO.delivery_cost = 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GBoj(YKHO):\n for T4Wy in YKHO:\n J09w = 0.0\n for zFiD in T4Wy.order_line_ids:\n J09w += zFiD.price_subtotal\n T4Wy.price_subtotal = J09w", "def VQn2(YKHO):\n UHFx = 0\n for Lx3t in YKHO.products:\n UHFx += Lx3t.price\n return UHFx", "def L7wS(YKHO):\n ...
[ "0.75299513", "0.73253286", "0.7230569", "0.705829", "0.6921791", "0.6753439", "0.67432326", "0.66982865", "0.6659161", "0.6509991", "0.6469508", "0.64573425", "0.6446052", "0.63694704", "0.6369132", "0.6358287", "0.63530296", "0.63383436", "0.6335633", "0.63332987", "0.63262...
0.6979133
4
Similar to save override in Order model, this sets the lineitem_total and updates the order total
def xkzz(YKHO, *qIxc, **B2fa): YKHO.lineitem_total = YKHO.product.price * YKHO.quantity super().save(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhrc(**B2fa):\n MZ8A = B2fa['instance']\n Xte0 = MZ8A.bill\n Xte0.update_cached_totals()", "def GBoj(YKHO):\n for T4Wy in YKHO:\n J09w = 0.0\n for zFiD in T4Wy.order_line_ids:\n J09w += zFiD.price_subtotal\n T4Wy.price_subtotal = J09w", "def FOQa(YKHO):\n YKHO...
[ "0.77101815", "0.75834686", "0.7514907", "0.74727106", "0.74727106", "0.7369916", "0.73158824", "0.71956384", "0.71045256", "0.70027614", "0.68427974", "0.6665695", "0.6463089", "0.63442713", "0.63174725", "0.6292446", "0.6232442", "0.62302035", "0.6142497", "0.6140944", "0.6...
0.83230525
0
Constructor depending of the elements past in parameters the constructor will init the cluster differently depending of
def FIMM(YKHO, UqER, t34p=None): if type(UqER) == bdIy: YKHO.cluster_elements = UqER YKHO.cluster_elements_str = UqER.to_string() YKHO.cluster_elements_labels = UqER.to_label() elif type(UqER) == list: YKHO.cluster_elements = UqER YKHO.cluster_elements_labels = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.clusters = {}\n YKHO.centroids = {}", "def FIMM(YKHO, **B2fa):\n MjEg = None\n mrUo = None\n d6pt = None\n if B2fa is not None:\n for H5ew, BWXx in B2fa.items():\n if H5ew == 'cluster1':\n MjEg = BWXx\n elif H5ew == 'cluster2':\...
[ "0.74846715", "0.7447633", "0.72179496", "0.7178606", "0.7153271", "0.7127128", "0.70745826", "0.69556785", "0.69498295", "0.69413424", "0.6898927", "0.68848985", "0.6858915", "0.68392634", "0.6837581", "0.68008965", "0.6800636", "0.67544585", "0.6750083", "0.6743469", "0.672...
0.7491525
0
Convert datetime object to string of YYYYMMDD.
def rxSt(ZjMU): try: return qcWV.strftime(ZjMU, Jse7) except ValueError: raise
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "def AoiR(doIl: datetime) -> str:\n return doIl.strftime('%Y-%m-%d')", "def QK8D(pdbK):\n if pdbK is None:\n return 'None'\n ...
[ "0.82302934", "0.82302934", "0.7655485", "0.72548306", "0.72238666", "0.7218908", "0.71954966", "0.7174997", "0.7092741", "0.70277184", "0.69947326", "0.693315", "0.6818119", "0.679778", "0.6784673", "0.67461944", "0.6680696", "0.66769797", "0.66748536", "0.6653088", "0.66345...
0.6347389
41
Verifies that Magpie returned an Unauthorized response. Validates that at the bare minimum, no underlying internal error occurred from the API or UI calls.
def ypVt(Pcn2, NKcE, pmON, cpuL=Xi5i, XZ2p=lTIZ): OrCf = jJGw(Pcn2) _hkX = TwPl(OrCf, NKcE, pmON, headers={'Accept': cpuL}, cookies=XZ2p if XZ2p is not lTIZ else Pcn2.cookies, expect_errors=True) if pmON.startswith('/ui'): oN1q(_hkX, expected_code=401, expected_type=cpuL) if cpuL == Xi5i: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N4J5(YKHO):\n YKHO._error_test(ODk9.HTTPUnauthorized)", "def xlNq(YKHO):\n geh0 = YKHO._mock_utility(get_kwargs=YKHO._data(), error=ODk9.HTTPUnauthorized)\n YKHO._check_response(geh0, 103)\n YKHO.assertEqual(FsoB.objects.count(), 0)", "def UDfU(YKHO):\n Ylbp = YKHO.client.get(XiK1)\n YKHO...
[ "0.76950675", "0.74877256", "0.7338133", "0.7314387", "0.7311925", "0.7311925", "0.72560763", "0.7189692", "0.71084464", "0.70742536", "0.70674336", "0.7059214", "0.7041926", "0.69873106", "0.6984639", "0.6975339", "0.6970429", "0.6959398", "0.69451344", "0.6939596", "0.69254...
0.0
-1
Validates that test resource nested immediately under test service does not exist. Skips validation if the test service does not exist.
def nkxH(Pcn2, ad78=lTIZ, qhuK=lTIZ): JKCy = ahiA.get_TestServiceDirectResources(Pcn2, override_service_name=ad78, ignore_missing_service=True) YRFO = [Ylbp['resource_name'] for Ylbp in JKCy] Q7ut(qhuK or Pcn2.test_resource_name, YRFO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uwjE(YKHO):\n mFeZ = YKHO.client.post(Wt3I + '5a2bc733791e4bbc9a26f7a5/service/', data=qQXR.dumps(YKHO.service_zero), headers=YKHO.my_header)\n YKHO.assertEqual(mFeZ.status, '404 NOT FOUND')\n YKHO.assertIn('That Store does not exist.', str(mFeZ.data))", "def VI_q(YKHO):\n raise NotImplementedErr...
[ "0.6071377", "0.6043958", "0.5994362", "0.58915544", "0.5721648", "0.56700635", "0.56522864", "0.55893904", "0.5578353", "0.5570871", "0.5556533", "0.5536094", "0.54679364", "0.5463218", "0.5454187", "0.5408944", "0.5393335", "0.5383498", "0.5376995", "0.5366523", "0.5359982"...
0.6714326
0
Validates that the test service does not exist.
def BU5c(Pcn2, ad78=lTIZ): ixs2 = ahiA.get_RegisteredServicesList(Pcn2) AMxQ = [TJdH['service_name'] for TJdH in ixs2] bSEa = ad78 if ad78 is not lTIZ else Pcn2.test_service_name Q7ut(bSEa, AMxQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uwjE(YKHO):\n mFeZ = YKHO.client.post(Wt3I + '5a2bc733791e4bbc9a26f7a5/service/', data=qQXR.dumps(YKHO.service_zero), headers=YKHO.my_header)\n YKHO.assertEqual(mFeZ.status, '404 NOT FOUND')\n YKHO.assertIn('That Store does not exist.', str(mFeZ.data))", "def lK3Q(YKHO):\n MILV = YKHO.client.post...
[ "0.71348107", "0.6864465", "0.671331", "0.667063", "0.6652851", "0.65822685", "0.65597785", "0.65354407", "0.65234494", "0.636613", "0.6362749", "0.6335114", "0.63140076", "0.6289238", "0.6287692", "0.628501", "0.622946", "0.6208283", "0.6185006", "0.61789393", "0.61514735", ...
0.7576391
0
Delete the test group. Skip operation if the group does not exist. Otherwise, proceed to delete it and validate its removal.
def Rtne(Pcn2, gugT=lTIZ, lkzJ=lTIZ, XZ2p=lTIZ): OrCf = jJGw(Pcn2) MOPg = lkzJ if lkzJ is not lTIZ else Pcn2.json_headers ku7L = XZ2p if XZ2p is not lTIZ else Pcn2.cookies moMn = ahiA.get_RegisteredGroupsList(Pcn2, override_headers=MOPg, override_cookies=ku7L) IXKo = gugT if gugT is not lTIZ else Pc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j3nB(YKHO):\n P0YW.step(JUtC, ZFEF)\n assert TbA1.run('delete', ZFEF)[0], \"Failed to delete group '%s'\" % ZFEF", "def BcnH(YKHO):\n pass", "def BcnH(YKHO):\n pass", "def EpEA(YKHO):\n P0YW.step('Removing group %s from group %s', l0wB, TP5k)\n assert RU7r.run('groupdel', l0wB, group=TP...
[ "0.82440627", "0.7965804", "0.7965804", "0.78738534", "0.78214514", "0.7813539", "0.76134014", "0.7527522", "0.75090754", "0.7498816", "0.7382029", "0.73272973", "0.72239107", "0.7188836", "0.7109205", "0.7085497", "0.70691955", "0.70497054", "0.700776", "0.700726", "0.700726...
0.7235654
12
Calculates the softmax of each row of X.
def N93T(YKHO, EcVT): cDK5, bGrB = EcVT.shape WFpy = oyIN.empty((cDK5, YKHO.n_classes_)) UNkP = 0 for YRbF, exwG in enumerate(YKHO.n_weights_per_class): NadD = int(UNkP + exwG + 1) WFpy[:, YRbF] = oyIN.dot(EcVT[:, UNkP:NadD], YKHO.weights_[UNkP:NadD]) UNkP = NadD eAqp = oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO: npt.NDArray) -> eQHC.NDArray:\n Z5xZ = oyIN.max(WKvO, axis=1).reshape(-1, 1)\n O48W = oyIN.exp(WKvO - Z5xZ)\n return O48W / oyIN.sum(O48W, axis=1).reshape(-1, 1)", "def N93T(YKHO, WKvO):\n yvT9 = oyIN.zeros(WKvO.shape)\n for YRbF in range(WKvO.shape[0]):\n IA3S = WKvO[YRbF] -...
[ "0.8534722", "0.8422346", "0.83319545", "0.82956815", "0.82828474", "0.82120085", "0.8192384", "0.8154918", "0.8147", "0.81244105", "0.811679", "0.8095815", "0.80748945", "0.8074718", "0.8060091", "0.8056744", "0.8044604", "0.8041348", "0.8032782", "0.80273956", "0.80273956",...
0.76877916
95
Display image using matplotlib.
def i5J1(LNo8, yArv=[1, 99], nlwp=None, iMGt='gray_r', rKst=False, **B2fa): if nlwp is None: wytA = B2fa.pop('figsize', (10, 10)) LZpg, aNZO = QrM1.subplots(figsize=wytA, subplot_kw=dict(xticks=[], yticks=[]), **B2fa) else: LZpg, aNZO = nlwp if yArv is not None: MynD, n4wC = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i5J1(pmON):\n VXjJ = SnjK.imread(pmON)\n gwMT = QrM1.imshow(VXjJ)\n QrM1.show()\n QrM1.close()", "def YGqK(VXjJ, leAC='Image', PTTL='gray'):\n QrM1.imshow(VXjJ, PTTL)\n QrM1.title(leAC)\n QrM1.xticks([])\n QrM1.yticks([])\n QrM1.show()", "def nUHY(LNo8):\n from matplotlib impo...
[ "0.8320322", "0.80858546", "0.7922074", "0.7922074", "0.7922074", "0.78919786", "0.7826738", "0.77931833", "0.7789232", "0.77763367", "0.7775491", "0.77748805", "0.77419996", "0.7630295", "0.7619223", "0.7575761", "0.7537007", "0.7455123", "0.74345255", "0.74185985", "0.74147...
0.0
-1
Histogram matching of the input image with the reference image using SimpleITK This function uses HistogramMatchingImageFilter implemented in SimpleITK/ITK.
def RO_t(R6ej, HRRf, g5FY, Kx2B=1024, K27j=7, Q4Ex=False): utav = MVjK.ReadImage(R6ej) G6T1 = MVjK.ReadImage(g5FY) HaKo = MVjK.HistogramMatchingImageFilter() HaKo.SetNumberOfHistogramLevels(Kx2B) HaKo.SetNumberOfMatchPoints(K27j) HaKo.SetThresholdAtMeanIntensity(Q4Ex) dZn4 = HaKo.Execute(uta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPAk(zm0G, kxDv):\n Jruh = 256\n wCY9, IvEe, b8px, A_7f = NSBL(zm0G, Jruh)\n sikz, RBk_, ThsG, nncX = NSBL(kxDv, Jruh)\n _ZYc = []\n for YRbF in range(Jruh):\n Ijgb = IvEe[YRbF]\n _ofV = oyIN.uint8(oyIN.abs(RBk_ - Ijgb).argmin())\n _ZYc.append(_ofV)\n H2v2, TVTK = zm0G.sh...
[ "0.74354124", "0.72736305", "0.67961675", "0.6701607", "0.6498471", "0.6409669", "0.63957417", "0.6384505", "0.6377174", "0.6369875", "0.6356987", "0.63000095", "0.6276054", "0.6253482", "0.6251662", "0.6236999", "0.62256294", "0.6183007", "0.6172917", "0.6147577", "0.6144441...
0.81811213
0
Create an empty dataframe with the columns required by this class.
def pCNl(Emd4) -> rLdf.DataFrame: Cqok = list(zip(Emd4._required_columns, Emd4._required_dtypes)) try: ezWE = oyIN.zeros(0, dtype=Cqok) return rLdf.DataFrame(ezWE) except TypeError as exc: raise TypeError('{exc}: {spec}') from BQDi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LAVE(YKHO):\n return rLdf.DataFrame()", "def UDCK(YKHO, WfCS=['DummyCol1', 'DummyCol2']):\n o8ZQ = '{0:s}.{1:s}: '.format(YKHO.__class__.__name__, HwRy._getframe().f_code.co_name)\n bo34.debug('{0:s}{1:s}'.format(o8ZQ, 'Start.'))\n try:\n jQ3Z = rLdf.DataFrame()\n for fvDH in WfCS:\...
[ "0.784695", "0.7412779", "0.7344918", "0.72827166", "0.7185767", "0.7124673", "0.7124673", "0.7124673", "0.7124673", "0.7124673", "0.7085299", "0.707741", "0.7072158", "0.7022713", "0.7018842", "0.69983715", "0.69759613", "0.69651383", "0.69609517", "0.6906332", "0.69019836",...
0.7803658
1
Create a new instance from a list of rows, as tuples or arrays.
def nCqC(Emd4, usx6: Iterable, ZLJ_: Optional[Sequence[str]]=None, vZGE: Optional[Mapping]=None): if ZLJ_ is None: ZLJ_ = Emd4._required_columns tyNF = rLdf.DataFrame.from_records(usx6, columns=ZLJ_) return Emd4(tyNF, vZGE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FHs4(Emd4, toEM, ROpF, zrIJ):\n return Emd4(toEM, ROpF, zrIJ)", "def FHs4(Emd4, usx6, zrIJ):\n HN6s = len(usx6)\n co3n = 0 if not HN6s else len(usx6[0])\n yIp6 = lambda tTpl: zrIJ(*tTpl) if isinstance(tTpl, tuple) else zrIJ(tTpl)\n is5q = [[yIp6(tTpl) for tTpl in rdlD] for rdlD in usx6]\n r...
[ "0.76973224", "0.72964895", "0.69260794", "0.6734386", "0.67300195", "0.6621048", "0.6571504", "0.6536043", "0.64729804", "0.6463493", "0.64256203", "0.6308479", "0.6214093", "0.62099075", "0.6186991", "0.61352205", "0.6107339", "0.6058422", "0.60131955", "0.600162", "0.59668...
0.6217184
12
Coerce `arraylike` to a Series with this instance's index.
def yznK(YKHO, v2rl: Iterable) -> rLdf.Series: return rLdf.Series(v2rl, index=YKHO.data.index)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yznK(YKHO) -> 'pd.Series':\n import pandas as rLdf\n nPrm = {'_row_id': YKHO.id, '_row_num': YKHO.num, **YKHO.as_dict()}\n dy_H = rLdf.Series(nPrm)\n return dy_H", "def asIs(ezWE, MwvJ=False):\n import pandas as rLdf\n return rLdf.Series(ezWE, copy=False)", "def rjaZ(YKHO) -> rLdf.Series:...
[ "0.70400625", "0.6879043", "0.68024653", "0.6728168", "0.6555522", "0.6550331", "0.6437792", "0.6294714", "0.6275131", "0.6194347", "0.6158122", "0.6119693", "0.609753", "0.6094025", "0.6086227", "0.6075753", "0.6052453", "0.60496277", "0.60222876", "0.5989694", "0.5961374", ...
0.83972543
0
Sort this array's bins inplace, with smart chromosome ordering.
def BA9O(YKHO): gpXh = YKHO.data.chromosome.apply(IMDf) YKHO.data = YKHO.data.assign(_sort_key_=gpXh).sort_values(by=['_sort_key_', 'start', 'end'], kind='mergesort').drop('_sort_key_', axis=1).reset_index(drop=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def McGQ(YKHO):\n YKHO._sorted = oyIN.argsort(YKHO.base[YKHO._array], kind='mergesort')\n YKHO._boundaries = gnPz.find_boundaries(YKHO.base[YKHO._array][YKHO._sorted])", "def C7qI(YKHO):\n YKHO.sorted_molecules = sorted(YKHO.values(), key=seET.attrgetter('criterion'))", "def wbrv(YKHO, or8S):\n yKc...
[ "0.62714213", "0.6004813", "0.5978882", "0.595729", "0.5924952", "0.58990234", "0.5776702", "0.57457966", "0.5661029", "0.56164414", "0.55334383", "0.5530408", "0.5521393", "0.5483534", "0.5468315", "0.5462785", "0.54391754", "0.54192376", "0.5418567", "0.53905886", "0.537014...
0.6727469
0
function for parsing the local hour angle
def zuwb(YKHO): kevw = YKHO.Calculations.local_hour_angle(YKHO.Longitude, YKHO.right_ascension) YKHO.LHA = kevw return kevw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JeXA(ROt1):\n if int(ROt1) == 0:\n return 12\n elif int(ROt1) > 12:\n return int(ROt1) - 12\n else:\n return ROt1", "def ROt1(YKHO):\n return '%s:00:00' % YKHO.timestamp[:13]", "def AAhp(YKHO, ROt1):\n if 0 <= ROt1 <= 5:\n return 'Early Morning'\n if 6 <= ROt1 ...
[ "0.6511776", "0.6272711", "0.6264724", "0.62330997", "0.6221382", "0.6206206", "0.59587604", "0.5957508", "0.5941786", "0.59351957", "0.58999026", "0.58870393", "0.58814335", "0.5861206", "0.5848067", "0.58216274", "0.5806287", "0.57736397", "0.5764118", "0.5747307", "0.57453...
0.61004585
6
Returns a UTC offset string of the current time suitable for use in the
def G0Uk(): E3oo = ITS7.time() JUFO = qcWV.fromtimestamp(E3oo) Vwer = qcWV.utcfromtimestamp(E3oo) UdQj = (JUFO - Vwer).total_seconds() YPkm = False if UdQj < 0: YPkm = True UdQj *= -1 if YPkm: UM06 = '-' else: UM06 = '+' UJxm = ITS7.gmtime(UdQj) OZ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VAxv(_szS):\n if _szS.tm_isdst == 1 and ITS7.daylight:\n UdQj = ITS7.altzone\n else:\n UdQj = ITS7.timezone\n Tvk5 = '-' if UdQj > 0 else '+'\n UdQj = abs(UdQj)\n msyo = UdQj / 60 % 60\n xGcH = UdQj / 3600\n return '%s%02d%02d' % (Tvk5, xGcH, msyo)", "def mVXc():\n fCoM ...
[ "0.7254286", "0.7167424", "0.70807934", "0.6761435", "0.67554796", "0.66784036", "0.6670253", "0.6656187", "0.6652087", "0.65509915", "0.65509915", "0.65272313", "0.6475465", "0.6464382", "0.6434502", "0.64007866", "0.6380021", "0.6363318", "0.6357447", "0.6331158", "0.632086...
0.83040845
0
Moves the character in given direction for the given duration arguments direction accepts "left", "right", "forward", "backward" and uses it as dict key for self.move_dir duration how long to hold the movement key
def BZN_(YKHO, XSoh='forward', WbTE=0.0): mp0y.press(YKHO.move_dir[XSoh]) if WbTE > 0.0: N5MO(WbTE) mp0y.release(YKHO.move_dir[XSoh])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def taBG(YKHO, XSoh, WbTE):\n print('Timed move ', end='')\n if XSoh == eq5B:\n print('forward')\n elif XSoh == YQWR:\n print('back')\n else:\n print('?')\n print('Duration:', WbTE)\n YKHO.moving_delay(WbTE)\n YKHO.move_stop()", "def BZN_(YKHO, XSoh):\n YKHO.stored_di...
[ "0.71435624", "0.70243645", "0.69156986", "0.6881963", "0.65851784", "0.65483314", "0.6538735", "0.6493119", "0.64872855", "0.6486142", "0.6428443", "0.637382", "0.63414377", "0.62614614", "0.62512434", "0.62193334", "0.6147643", "0.61280406", "0.61262244", "0.61262244", "0.6...
0.8135537
0
Turns a given number of degrees in the given direction arguments direction accepts "left" or "right" and uses it as dict key for self.turn_dir degrees number of degrees you wish to turn the character
def _ysM(YKHO, XSoh='left', _IXK=0): xIu_ = YKHO.degrees_to_duration(_IXK) mp0y.press(YKHO.turn_dir[XSoh]) if xIu_ > 0.0: N5MO(xIu_) mp0y.release(YKHO.move_dir[XSoh])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ysM(YKHO, dir):\n if dir.upper() == 'R':\n if YKHO.direction == 3:\n YKHO.direction = 0\n else:\n YKHO.direction += 1\n if dir.upper() == 'L':\n if YKHO.direction == 0:\n YKHO.direction = 3\n else:\n YKHO.direction -= 1", "def _ys...
[ "0.73210454", "0.69366246", "0.6679597", "0.6600808", "0.6551328", "0.6492578", "0.63753194", "0.63121635", "0.6305108", "0.6274639", "0.6269894", "0.6246395", "0.62227905", "0.61980975", "0.61158204", "0.60727537", "0.60574234", "0.6055724", "0.60330665", "0.597591", "0.5972...
0.7166694
1
Given an instance of a serializer, return a dictionary of metadata about its fields.
def qfBl(YKHO, ZMzz): if hasattr(ZMzz, 'child'): ZMzz = ZMzz.child ZMzz.fields.pop(widx.URL_FIELD_NAME, None) return {SO2j(vXX7): YKHO.get_field_info(Jyyj) for vXX7, Jyyj in ZMzz.fields.items()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TnMw(YKHO):\n return {hkS8: Jyyj['serializer'] for hkS8, Jyyj in YKHO._fields.items()}", "def TnMw(YKHO):\n V_D6 = {}\n IJxf = (XG0z, wsY0, p0CG)\n for hkS8 in dir(YKHO):\n if hkS8 == 'data':\n continue\n if isinstance(getattr(YKHO, hkS8), IJxf):\n V_D6[hkS8] =...
[ "0.7323075", "0.67004484", "0.6350399", "0.61360943", "0.6043718", "0.6036233", "0.59390324", "0.5927445", "0.5925667", "0.59210116", "0.5899225", "0.58932304", "0.5892627", "0.58893937", "0.58744884", "0.5859291", "0.5851844", "0.5841337", "0.58262753", "0.5823886", "0.57775...
0.7540421
0
Given an instance of a serializer field, return a dictionary of metadata about it.
def qxDD(YKHO, Jyyj): HOJN = {} ZMzz = Jyyj.parent if isinstance(Jyyj, IyFz.ManyRelatedField): HOJN['type'] = YKHO.type_lookup[Jyyj.child_relation] else: HOJN['type'] = YKHO.type_lookup[Jyyj] try: c700 = ZMzz.Meta.model HOJN['relationship_type'] = YKHO.relation_type_l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TnMw(YKHO):\n return {hkS8: Jyyj['serializer'] for hkS8, Jyyj in YKHO._fields.items()}", "def qfBl(YKHO, ZMzz):\n if hasattr(ZMzz, 'child'):\n ZMzz = ZMzz.child\n ZMzz.fields.pop(widx.URL_FIELD_NAME, None)\n return {SO2j(vXX7): YKHO.get_field_info(Jyyj) for vXX7, Jyyj in ZMzz.fields.items(...
[ "0.6593335", "0.6574828", "0.6190593", "0.6137806", "0.60714644", "0.59437436", "0.58842355", "0.5855818", "0.5844208", "0.5779441", "0.576801", "0.57314557", "0.57256305", "0.5712764", "0.57118374", "0.56983626", "0.56626946", "0.5615629", "0.5614134", "0.55997163", "0.55875...
0.6626879
0
getdefaultencoding() > string Return the current default string encoding used by the Unicode implementation.
def EcX4(): return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vuUb() -> str:\n return NCqB.getpreferredencoding() or 'UTF-8'", "def J8mI(YKHO, WmM4: str) -> str:\n ...", "def aG9_(mktQ, WmM4='latin1'):\n if not mktQ:\n return WmM4\n try:\n T_Uj.lookup(mktQ)\n return mktQ\n except LookupError:\n return WmM4", "def vuUb():\n...
[ "0.77499235", "0.7464563", "0.7405454", "0.71397215", "0.6966229", "0.6966229", "0.6901542", "0.6832482", "0.67906934", "0.6702058", "0.6618024", "0.6578314", "0.65594625", "0.6557166", "0.64743364", "0.63048446", "0.628028", "0.6259909", "0.6227286", "0.6214048", "0.6177194"...
0.86211926
0
getfilesystemencoding() > string Return the encoding used to convert Unicode filenames in operating system filenames.
def S9Af(): return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S9Af():\n tZ2K = HwRy.getfilesystemencoding()\n if tZ2K is None:\n tZ2K = c784\n return tZ2K", "def W6Qk():\n return HwRy.getfilesystemencoding()", "def RePC(Ux0P):\n with open(Ux0P, 'rb') as eHNT:\n eHNT.seek(0)\n if eHNT.read(2) == b'\\xff\\xfe':\n tZ2K = 'u...
[ "0.8229572", "0.7732857", "0.68935233", "0.6804994", "0.66989315", "0.6679651", "0.6638953", "0.6638953", "0.6610522", "0.65706474", "0.6460731", "0.6448716", "0.64475274", "0.6358718", "0.6299554", "0.62771094", "0.6254006", "0.62244594", "0.6206625", "0.61403924", "0.612931...
0.8575656
0
_current_frames() > dictionary Return a dictionary mapping each current thread T's thread id to T's current stack frame. This function should be used for specialized purposes only.
def zYt1(): return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ES7t(f4IJ, QpfX=1):\n ZPE6 = []\n while f4IJ:\n ZPE6.append((f4IJ,) + Md4O(f4IJ, QpfX))\n f4IJ = f4IJ.f_back\n return ZPE6", "def lYrb():\n return HwRy._getframe(3)", "def zLpA(V2zj, QpfX=1):\n ZPE6 = []\n while V2zj:\n ZPE6.append((V2zj.tb_frame,) + Md4O(V2zj, QpfX))...
[ "0.6090527", "0.608579", "0.6020393", "0.59718895", "0.59696347", "0.5962012", "0.59076893", "0.58308023", "0.5797438", "0.57722795", "0.5754105", "0.5646045", "0.5634119", "0.56302696", "0.5530798", "0.552655", "0.55195403", "0.5517164", "0.54991895", "0.54802054", "0.543477...
0.7780735
0
Return repr for the module. The method is deprecated. The import machinery does the job itself.
def NlD_(yR_P): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NlD_(*qIxc, **YSA3):\n pass", "def wHJl(YKHO) -> str:\n return f'<Module[{YKHO.path}]>'", "def wHJl(YKHO):\n Rci7 = hkS8(YKHO, '__spec__.origin', '__file__', '__package__')\n mWFP = hkS8(YKHO, '__name__', 'name')\n QNO6 = oeVg(YKHO, PkNZ) and 'class-module' or 'module'\n yvT9 = f'<{QNO6} ...
[ "0.77776474", "0.75011677", "0.7398434", "0.68957216", "0.67717457", "0.6583072", "0.6580197", "0.6529352", "0.65247625", "0.64683145", "0.6383973", "0.6343904", "0.6307563", "0.6304915", "0.6293533", "0.62484473", "0.6233853", "0.6174163", "0.61484087", "0.6123342", "0.60245...
0.81093186
0
Return TRELLO_API_KEY for use in templates.
def di7z(): return TI34
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CMrG() -> str | None:\n if gCuF.OT_API_KEY is not None:\n return gCuF.OT_API_KEY\n if gCuF.DEV_MODE or gCuF.UNIT_TEST_MODE:\n try:\n with open(f'{gCuF.ROOT_DIR}/ot_api_key.txt', 'r') as eHNT:\n gCuF.OT_API_KEY = eHNT.read().strip()\n return gCuF.OT_A...
[ "0.7462007", "0.7279564", "0.7271457", "0.72624266", "0.71599334", "0.71522397", "0.7141559", "0.7138159", "0.7132009", "0.7121057", "0.7048457", "0.7048186", "0.7041526", "0.7041526", "0.7041526", "0.7041526", "0.6997704", "0.6997344", "0.69490266", "0.69460964", "0.6924445"...
0.8414874
0
Returns the number of days (or months) between two dates
def Ckqt(kepv, KhBf, OBue=None, xWJ4=False): W9kc, Bxp4, wdiI = (kepv[0], kepv[1], kepv[2]) XT3O, V6yi, Thta = (KhBf[0], KhBf[1], KhBf[2]) if not OBue: OBue = wdiI yKcO, Os4s = (_c1T(wdiI, Bxp4, W9kc), _c1T(Thta, V6yi, XT3O)) if not xWJ4: DjXj = (yKcO - _c1T(OBue, Pd0P.January, 1)).d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fb4y(Ilc0, w0do):\n return abs(w0do - Ilc0).days", "def d7sE(cTWr, QWca, wvmP, rGZU, ZbjD, dzHS):\n Sm0u = 0\n while y32T(cTWr, QWca, wvmP, rGZU, ZbjD, dzHS):\n cTWr, QWca, wvmP = rmrb(cTWr, QWca, wvmP)\n Sm0u += 1\n return Sm0u", "def d7sE(cTWr, QWca, wvmP, rGZU, ZbjD, dzHS):\n ...
[ "0.79920995", "0.7896767", "0.7865328", "0.7825949", "0.7822661", "0.77921796", "0.77640855", "0.77548546", "0.7741251", "0.7739907", "0.77221966", "0.77145594", "0.7701616", "0.7640416", "0.7546257", "0.74441856", "0.73063666", "0.7245142", "0.72414124", "0.71676946", "0.714...
0.61686295
47
Returns the index of the element closest to value in array
def uiJA(qw7D, BWXx): qw7D = oyIN.asarray(qw7D) or8S = oyIN.abs(qw7D - BWXx).argmin() return or8S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mp07(qw7D, BWXx):\n or8S = oyIN.abs(qw7D - BWXx).argmin()\n return or8S", "def uiJA(qw7D, BWXx):\n or8S = oyIN.abs(qw7D - BWXx).argmin()\n return or8S", "def uiJA(qw7D, BWXx):\n or8S = oyIN.abs(qw7D - BWXx).argmin()\n return or8S", "def uiJA(qw7D, BWXx):\n if isinstance(qw7D, list):\...
[ "0.879006", "0.85460496", "0.84953326", "0.8494627", "0.8423116", "0.83981174", "0.8370991", "0.83250314", "0.8247083", "0.8207293", "0.81542456", "0.81378627", "0.8122104", "0.8122104", "0.8006899", "0.7977014", "0.7919829", "0.7834604", "0.7831902", "0.7628504", "0.7623822"...
0.83828336
7
Search for coincidences in a set of timestamps Given a set of timestamps, search for coincidences. That is, search for events which occured almost at the same time and thus might be the result of an extended air shower.
def Clve(M_Ra, KnxT=200000): C1Md = [] for YRbF in Ni9Y(len(M_Ra)): Z9rn = [YRbF] lGE9 = M_Ra[YRbF][0] for r845 in Ni9Y(YRbF + 1, len(M_Ra)): if M_Ra[r845][0] - lGE9 < KnxT: Z9rn.append(r845) else: break if len(Z9rn) > 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KyxE(M_Ra, C61p):\n M_Ra = sorted(set(M_Ra))\n DNMz = []\n for nX4v in M_Ra:\n if not DNMz or nX4v - DNMz[-1] > C61p:\n DNMz.append(nX4v)\n return DNMz", "def BaRo(nPrm, Oj45, lhq3, M_Ra, RtSf=False):\n YTVa = []\n for tvqc in lhq3:\n E3oo, gnAD, d6pt = M_Ra[tvqc]\n...
[ "0.6222778", "0.5719726", "0.5664501", "0.56395787", "0.55810034", "0.5558987", "0.5517311", "0.5501492", "0.54588217", "0.54234046", "0.5323761", "0.53221667", "0.5313011", "0.5302765", "0.5284599", "0.5281517", "0.5277219", "0.52509254", "0.5249739", "0.52426803", "0.521687...
0.7533535
0
Overrides the equality method implementation.
def zAg0(YKHO): return 'Region: ' + YKHO.name + ' with parent ' + YKHO.parent + ' and self code ' + YKHO.FHIRCode
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n raise NotImplementedError", "def xa14(YKHO, Elif):\n raise NotImplementedError", "def xa14(YKHO, Elif):\n raise NotImplementedError", "def xa14(YKHO, Elif):\n pass", "def xa14(YKHO, Elif):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n p...
[ "0.82993126", "0.82993126", "0.82993126", "0.8279628", "0.8279628", "0.827198", "0.827198", "0.827198", "0.827198", "0.827198", "0.827198", "0.827198", "0.827198", "0.827198", "0.827198", "0.827198", "0.82373226", "0.82373226", "0.82373226", "0.82373226", "0.82221377", "0.8...
0.0
-1
Test parsing invalid durations from TVMaze API.
def p8eI(xvDN: typing.Any, aEqx: Exception): with trZe.raises(aEqx): Edve.parsers.parse_duration(xvDN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SD1T(xvDN: int, aEqx: datetime.timedelta):\n assert Edve.parsers.parse_duration(xvDN) == aEqx", "def wafq(YKHO):\n wzkt = qcWV(2015, 2, 1, 0, 0, 0)\n YKHO.assert_TPVE(LrXp, '-0', wzkt)\n YKHO.assert_TPVE(LrXp, '-12', wzkt)\n YKHO.assert_TPVE(LrXp, '-12fortnights', wzkt)\n YKHO.assert_TPVE(L...
[ "0.7181432", "0.7092153", "0.70551395", "0.6774812", "0.6763515", "0.6763207", "0.668546", "0.65754163", "0.65632933", "0.6311343", "0.62748945", "0.6179953", "0.61337334", "0.6098421", "0.60370433", "0.60180724", "0.60137993", "0.5987067", "0.5965356", "0.5949888", "0.592722...
0.72819936
0
Get the current Amperage.
def rZz9(YKHO): return YKHO.json_state.get('charging').get('amps_current')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JV0_(YKHO):\n return YKHO.get_POW().getAIA()", "def N_N1(YKHO):\n return YKHO.glb[fxMu]", "def N_N1(YKHO):\n return YKHO.__age", "def tA1K(YKHO):\n return YKHO.__pillar_a", "def N_N1(YKHO):\n return YKHO._age", "def N_N1(YKHO):\n return YKHO._age", "def N_N1(YKHO):\n return YKH...
[ "0.6258013", "0.618623", "0.6124007", "0.60744244", "0.60626155", "0.60626155", "0.60626155", "0.5982053", "0.59755147", "0.5965359", "0.5933949", "0.5887052", "0.5869244", "0.5831793", "0.582333", "0.5811592", "0.57885647", "0.576356", "0.57578355", "0.5743405", "0.57138234"...
0.61620724
2
Get the current status.
def QtQ8(YKHO): return YKHO.json_state.get('state')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO):\n return YKHO.status", "def Jxmr(YKHO):\n return YKHO.__status", "def VLTN(YKHO):\n return YKHO._status", "def CHRo(YKHO):\n return YKHO.status", "def jGRS(YKHO):\n return YKHO._get(path...
[ "0.86927676", "0.86927676", "0.86927676", "0.8663911", "0.8661699", "0.86579514", "0.8573755", "0.8572048", "0.84423053", "0.8409137", "0.8408199", "0.8383405", "0.83805305", "0.8320583", "0.8267915", "0.82589805", "0.82589805", "0.82589805", "0.82589805", "0.82589805", "0.82...
0.0
-1
Set to override schedule or not.
def qmgq(YKHO, FoXW): lIFY = 0 yOwb = 0 Ariw = 0 if FoXW: YKHO.update_state(True) lIFY = YKHO.json_state['unit_time'] Ariw = YKHO.json_state['charging']['wh_energy_to_add'] u8Uq = YKHO.api.set_override(YKHO, lIFY, yOwb, Ariw) YKHO.update_state(True) return u8Uq['succe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b6Gq(YKHO, b6Gq):\n YKHO._schedule = b6Gq", "def b6Gq(YKHO, b6Gq):\n YKHO._schedule = b6Gq", "def b6Gq(YKHO, b6Gq):\n YKHO._schedule = b6Gq", "def ZlLO(L4A2, Be0L):\n pass", "def srPB(YKHO):\n pass", "def xyPJ(YKHO, wvq2):\n wvq2.deprecated = False\n if wvq2.started == None or wv...
[ "0.7215234", "0.7072425", "0.7072425", "0.68272793", "0.66678053", "0.66249335", "0.6472469", "0.643736", "0.6434246", "0.6341643", "0.6307422", "0.6188436", "0.61707866", "0.6164208", "0.6138029", "0.6123734", "0.6091858", "0.6066912", "0.60464257", "0.60464257", "0.59831524...
0.0
-1
Creates a vocabulary mapping from words to ids. Increasing integer ids are assigned by word frequency, using lexical sorting as a tie breaker. The only exception to this are special symbols such as the padding symbol (PAD).
def ZFlL(m5Tx: Iterable[str], utUF: Iterable[str], Ue1w: bool=False, ZGOk: int=50000, AVBV: int=50000, ICMI: int=1, Wm9t: int=1) -> (cuzp[str, int], cuzp[str, int]): ZBuQ = set(OLyK) if Ue1w: nPrm = eNCK(m5Tx, utUF) chiI = mBkc((eOtH for zFiD in nPrm for eOtH in thS1(zFiD) if eOtH not in ZBuQ)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e7yS(V22M):\n po2l = mBkc(V22M)\n Hg0V = sorted(po2l, key=po2l.get, reverse=True)\n lJV4 = {P2GO + 1: GIN8 for P2GO, GIN8 in enumerate(Hg0V)}\n vIPP = {GIN8: P2GO + 1 for P2GO, GIN8 in lJV4.items()}\n return (vIPP, lJV4)", "def _mwV():\n with open('public_data/stats/stats_train.pkl', 'rb') ...
[ "0.73699003", "0.72523075", "0.7189173", "0.7181838", "0.7174813", "0.70853657", "0.6934304", "0.6879009", "0.6858828", "0.6849512", "0.68144983", "0.6745805", "0.66091204", "0.6588328", "0.658411", "0.65822005", "0.65429914", "0.6530509", "0.6508405", "0.64926934", "0.649269...
0.0
-1
Load vocab from JSON
def d8Cb(pmON: str) -> cuzp: with open(pmON, encoding=PEHT) as pKvt: CtWL = qQXR.load(pKvt) bo34.info('Vocabulary (%d words) loaded from "%s"', len(CtWL), pmON) return CtWL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(Emd4, pmON: str) -> 'Vocab':\n with open(pmON, 'r', encoding='utf-8') as eHNT:\n return Emd4.from_json(eHNT.read())", "def xYxb(wIyo):\n pmON = Hy7s.path.join(kJNw.WORKING_PATH, 'vocab', ''.join([wIyo, '.json']))\n if Hy7s.path.exists(pmON):\n with open(pmON, 'r') as Rf_J:\n ...
[ "0.7383053", "0.72281736", "0.7153435", "0.7129347", "0.6920643", "0.6900413", "0.6892449", "0.68210644", "0.67851615", "0.6699833", "0.6654643", "0.6641702", "0.65374404", "0.64846003", "0.6436098", "0.64151007", "0.64074373", "0.6396858", "0.6322019", "0.62961197", "0.62947...
0.83683556
0
Checks if string contains a valid SMS code
def Sh8i(vIwR: str) -> uLKX[str, None]: r8hN = XP5J.search(vIwR.strip()) if r8hN: r8hN = r8hN.group().replace('-', '').replace('sms:', '') return r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FaSn(l5Ny=''):\n try:\n l5Ny.decode('ascii')\n except:\n return False\n if len(l5Ny) > 160:\n return False\n return True", "def Ya4O(HL10):\n if HL10[0:4] != '+989':\n raise sUXu('Invalid mobile')", "def RyGi(xGBp):\n return ZbWC.sub('[\\\\^w]', ' ', xGBp).spli...
[ "0.76758754", "0.6381424", "0.63430536", "0.6330676", "0.6277171", "0.6192343", "0.6120925", "0.6044895", "0.6044203", "0.5982672", "0.5957734", "0.59510475", "0.5949857", "0.5943442", "0.59111303", "0.58842593", "0.58581394", "0.5856176", "0.5844374", "0.58332616", "0.576246...
0.7208684
1
Convert arraylike data (list/numpy array/pandas) to 2D numpy array.
def OydO(EcVT): if isinstance(EcVT, oyIN.ndarray): if EcVT.ndim == 1: return EcVT.reshape((-1, 1)) if EcVT.ndim == 2: return EcVT if isinstance(EcVT, KUXB): EcVT = [EcVT] EcVT = oyIN.array(EcVT) EcVT = EcVT.reshape([-1, oyIN.prod(EcVT.shape) // EcVT.shape[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LzLs(nPrm):\n L_oh()\n if nPrm is None:\n raise ValueError('Cannot convert None data.')\n return None\n if not isinstance(nPrm, (gyIm, qHOR, hxoQ, oM6q, tTFA)):\n nPrm = oyIN.asarray(nPrm)\n if not oyIN.iterable(nPrm):\n nPrm = oyIN.atleast_1d(nPrm)\n return nPrm", ...
[ "0.7945745", "0.7721907", "0.74875873", "0.7299131", "0.7159762", "0.70749307", "0.7010113", "0.7003717", "0.7003717", "0.68570745", "0.6827771", "0.67900044", "0.6769252", "0.67586446", "0.6690123", "0.65906477", "0.6587689", "0.6585068", "0.6567797", "0.65086746", "0.647016...
0.69870424
9
Update the model with newX to transform the data Online version to do the fit transform with much faster speed.
def fxZW(YKHO, ZVQV): if YKHO.ts_data is None: raise ValueError('fit_transform_online can not be called in the very first time, should followed fit_transform.') r1VO = YKHO.radius NcIG = YKHO.exp_D dGJu = YKHO.ts_data t3UE = YKHO.filterd_out WljZ = YKHO.sigma_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gu0j(YKHO, EcVT, LVAh):\n pass", "def FaSl(YKHO, wRUF, Lhch):\n if YKHO.model is None:\n YKHO._create_model(wRUF, Lhch)\n else:\n YKHO.model.set_XY(wRUF, Lhch)\n if YKHO.max_iters > 0:\n if YKHO.optimize_restarts == 1:\n YKHO.model.optimize(optimizer=YKHO.optimizer...
[ "0.67725384", "0.6739249", "0.66024005", "0.65393645", "0.6527778", "0.64266586", "0.64266586", "0.64266586", "0.6399944", "0.63682306", "0.63518196", "0.63081616", "0.6281664", "0.62521887", "0.62060374", "0.6199304", "0.61987555", "0.61877036", "0.6174904", "0.61715114", "0...
0.0
-1
Update the model with newX to transform the data Online version to do the fit transform with much faster speed.
def fxZW(YKHO, ZVQV): if YKHO.ts_data is None: raise ValueError('fit_transform_online can not be called in the very first time, should followed fit_transform.') D2ZT = YKHO.adj_radius r1VO = YKHO.radius NcIG = YKHO.exp_D Bk95 = YKHO.exp_D_2s dGJu = YKHO.ts_dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gu0j(YKHO, EcVT, LVAh):\n pass", "def FaSl(YKHO, wRUF, Lhch):\n if YKHO.model is None:\n YKHO._create_model(wRUF, Lhch)\n else:\n YKHO.model.set_XY(wRUF, Lhch)\n if YKHO.max_iters > 0:\n if YKHO.optimize_restarts == 1:\n YKHO.model.optimize(optimizer=YKHO.optimizer...
[ "0.67710245", "0.67386675", "0.6601867", "0.6538586", "0.65259", "0.642643", "0.642643", "0.642643", "0.63996285", "0.6368339", "0.6350167", "0.6310121", "0.6283339", "0.6250899", "0.62085015", "0.61990243", "0.6198224", "0.61872256", "0.6175653", "0.6173606", "0.6146397", ...
0.0
-1
A function that takes a pandas dataframe as an input, tokenises the sentences and removes all the stopwords in the input using a stop words dictionary and returns a modified version of the pandas dataframe
def QXd6(jQ3Z): jQ3Z['Without Stop Words'] = jQ3Z['Tweets'].apply(str.lower).apply(str.split) for YRbF in range(len(vFPo)): jQ3Z['Without Stop Words'][YRbF] = [WKvO for WKvO in jQ3Z['Without Stop Words'][YRbF] if WKvO not in ljiF['stopwords']] return jQ3Z pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXd6(jQ3Z):\n hwHU = ljiF['stopwords']\n jQ3Z['Without Stop Words'] = [' '.join([yzQ0 for yzQ0 in WKvO.lower().split() if yzQ0 not in hwHU]) for WKvO in jQ3Z['Tweets'].tolist()]\n Aofo = []\n jtyf = jQ3Z['Without Stop Words']\n for Mau6 in jtyf:\n Aofo.append(Mau6.split(' '))\n jQ3Z['W...
[ "0.80349636", "0.7908949", "0.7395624", "0.7391324", "0.72956973", "0.7273814", "0.7258432", "0.72530496", "0.71138287", "0.6982694", "0.6910817", "0.6807659", "0.6760508", "0.66717595", "0.6670105", "0.66359085", "0.6602602", "0.6526728", "0.6450629", "0.6428185", "0.6427812...
0.7996187
1
Converts color(s) to the specified color type Takes a single color or an iterable of colors and outputs a list of the color(s) converted all to an rgb or tuple color type. If colors is a Plotly Scale name then the cooresponding colorscale will be outputted and colortype will not be applicable
def r7uj(Jw9H, iUEk='rgb'): N3hS = [] if isinstance(Jw9H, str): if Jw9H in dpAP: return dpAP[Jw9H] elif 'rgb' in Jw9H or '#' in Jw9H: N3hS = [Jw9H] else: raise Bx6I.PlotlyError('If your colors variable is a string, it must be a Plotly scale, an rgb col...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v_NN(Jw9H, iUEk='rgb'):\n for H5ew in Jw9H:\n if '#' in Jw9H[H5ew]:\n Jw9H[H5ew] = A2g6(Jw9H[H5ew], SDfS)\n Jw9H[H5ew] = A2g6(Jw9H[H5ew], zw3b)\n elif isinstance(Jw9H[H5ew], tuple):\n Jw9H[H5ew] = A2g6(Jw9H[H5ew], fZcQ)\n Jw9H[H5ew] = A2g6(Jw9H[H5ew]...
[ "0.778564", "0.6566585", "0.6505118", "0.6467339", "0.63705945", "0.6054577", "0.59893274", "0.59517163", "0.5943329", "0.59202266", "0.58056206", "0.5757748", "0.5723414", "0.5719189", "0.5718632", "0.5707927", "0.56753373", "0.5625021", "0.5619141", "0.5554289", "0.5542776"...
0.8730237
0
Converts color(s) to the specified color type Takes a single color or an iterable of colors and outputs a list of the color(s) converted all to an rgb or tuple color type. If colors is a Plotly Scale name then the cooresponding colorscale will be outputted
def v_NN(Jw9H, iUEk='rgb'): for H5ew in Jw9H: if '#' in Jw9H[H5ew]: Jw9H[H5ew] = A2g6(Jw9H[H5ew], SDfS) Jw9H[H5ew] = A2g6(Jw9H[H5ew], zw3b) elif isinstance(Jw9H[H5ew], tuple): Jw9H[H5ew] = A2g6(Jw9H[H5ew], fZcQ) Jw9H[H5ew] = A2g6(Jw9H[H5ew], zw3b) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r7uj(Jw9H, iUEk='rgb'):\n N3hS = []\n if isinstance(Jw9H, str):\n if Jw9H in dpAP:\n return dpAP[Jw9H]\n elif 'rgb' in Jw9H or '#' in Jw9H:\n N3hS = [Jw9H]\n else:\n raise Bx6I.PlotlyError('If your colors variable is a string, it must be a Plotly scal...
[ "0.85662997", "0.6990363", "0.67474616", "0.66939604", "0.66461027", "0.6259489", "0.60896623", "0.60689384", "0.59838325", "0.5879109", "0.5820348", "0.58060336", "0.57990676", "0.578778", "0.57405794", "0.5727918", "0.56719625", "0.5663443", "0.56379896", "0.5624054", "0.56...
0.74615693
1
Return a tuple where each element gets divided by 255 Takes a (list of) color tuple(s) where each element is between 0 and 255. Returns the same tuples where each tuple element is normalized to a value between 0 and 1
def _pAJ(Jw9H): FPM0 = (Jw9H[0] / 255.0, Jw9H[1] / 255.0, Jw9H[2] / 255.0) return FPM0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZcQ(Jw9H):\n return (Jw9H[0] * 255.0, Jw9H[1] * 255.0, Jw9H[2] * 255.0)", "def Ceav(YKHO):\n Mkmy, Oa1e, Fg_i = (NUGf.zeros(256), NUGf.zeros(256), NUGf.zeros(256))\n for YRbF in NUGf.arange(256):\n L749, gnxF, bfEg = YKHO.colfct(YRbF / 255.0)\n Mkmy[YRbF], Oa1e[YRbF], Fg_i[YRbF] = (in...
[ "0.7387007", "0.7329272", "0.72662413", "0.71194726", "0.69531566", "0.69138104", "0.68012786", "0.6800311", "0.67782444", "0.6737016", "0.6626885", "0.66244", "0.66198385", "0.654064", "0.6540106", "0.65297306", "0.65292233", "0.65098464", "0.6484736", "0.648232", "0.6480925...
0.6844516
6
Converts a colorscale into a list of colors
def Pg9L(GRWd): F4JO = [] for qfpW in GRWd: F4JO.append(qfpW[1]) return F4JO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hmkh(Jw9H, NXpY=None):\n GRWd = []\n if len(Jw9H) < 2:\n raise Bx6I.PlotlyError('You must input a list of colors that has at least two colors.')\n if not NXpY:\n kDHB = 1.0 / (len(Jw9H) - 1)\n return [[YRbF * kDHB, qfpW] for YRbF, qfpW in enumerate(Jw9H)]\n else:\n if le...
[ "0.7403445", "0.6880691", "0.6825099", "0.6779631", "0.66633695", "0.6608235", "0.66077864", "0.6604994", "0.66031563", "0.6576544", "0.64994454", "0.6487098", "0.64830196", "0.64828354", "0.6468766", "0.6462795", "0.64323926", "0.6422903", "0.6405151", "0.63881737", "0.63815...
0.88714296
0
Sets the id of this Invoice.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.__id = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def id(YKHO, id: int):\n if id is None:\n raise ValueError('Invalid value for `id`, must not be `None`')\n YKHO._id = id", "def id(YKHO, id: int):\n if id i...
[ "0.7600149", "0.7546821", "0.7493094", "0.72401494", "0.7239182", "0.72360134", "0.7201842", "0.71968675", "0.71739244", "0.7157821", "0.7157821", "0.7157821", "0.7157821", "0.7157821", "0.7157821", "0.7157821", "0.7157821", "0.7157821", "0.7157821", "0.7157821", "0.7157821",...
0.0
-1
Sets the account_id of this Invoice.
def Z31E(YKHO, Z31E): YKHO._account_id = Z31E
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def nPha(YKHO, Z31E):\n YKHO.data_struct['_setAccount'] = Z31E", "def Z31E(YKHO, Z31E):\n if Z31E is None:\n raise ValueError('Invalid value for `account_id`, must not be `None`')\n YKHO._account_id = Z31E", "def Z31E(YKHO, Z31E: str):\n ...
[ "0.81417274", "0.797933", "0.7322539", "0.7272648", "0.66879886", "0.66879886", "0.66879886", "0.66879886", "0.6639793", "0.6568327", "0.64952475", "0.63927525", "0.6270199", "0.6093832", "0.59998107", "0.59998107", "0.5957956", "0.594924", "0.5936459", "0.5825439", "0.581112...
0.81816703
5
Sets the created_by of this Invoice.
def tC0c(YKHO, tC0c): YKHO._created_by = tC0c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tC0c(YKHO, tC0c: 'str'):\n YKHO._attrs['createdBy'] = tC0c", "def tC0c(YKHO, tC0c: 'str'):\n YKHO._attrs['createdBy'] = tC0c", "def tC0c(YKHO, tC0c: 'str'):\n YKHO._attrs['createdBy'] = tC0c", "def tC0c(YKHO, tC0c: 'str'):\n YKHO._attrs['createdBy'] = tC0c", "def OvH5(YKHO, OvH5):\n YKHO...
[ "0.77844715", "0.77844715", "0.77844715", "0.77844715", "0.7106459", "0.70040953", "0.68863076", "0.66293925", "0.6558995", "0.6438006", "0.6438006", "0.6438006", "0.6438006", "0.6438006", "0.6438006", "0.6256636", "0.62313765", "0.62225956", "0.62225956", "0.62225956", "0.62...
0.8210472
4
Sets the created_on of this Invoice.
def i0wi(YKHO, i0wi): YKHO._created_on = i0wi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a0GP(YKHO, a0GP):\n YKHO._created_date = a0GP", "def a0GP(YKHO, a0GP):\n YKHO._created_date = a0GP", "def a0GP(YKHO, a0GP):\n YKHO._created_date = a0GP", "def a0GP(YKHO, a0GP):\n YKHO._created_date = a0GP", "def a0GP(YKHO, a0GP):\n YKHO._created_date = a0GP", "def a0GP(YKHO, a0GP):\n ...
[ "0.6808776", "0.6789699", "0.6789699", "0.6789699", "0.6789699", "0.6789699", "0.6708881", "0.67077106", "0.6689685", "0.6689685", "0.66508824", "0.66508824", "0.66508824", "0.6542428", "0.6489087", "0.6409075", "0.63969123", "0.63885856", "0.63855606", "0.63855606", "0.63855...
0.7875019
4
Sets the payment_id of this Invoice.
def q0JL(YKHO, q0JL): YKHO._payment_id = q0JL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQ1p(YKHO, tQ1p):\n YKHO._payment_reference_id = tQ1p", "def WPeW(YKHO, WPeW):\n YKHO._payment_type_id = WPeW", "def zhQ4(YKHO, zhQ4):\n YKHO._payor_id = zhQ4", "def Ywmj(YKHO, Ywmj):\n YKHO._payment_date = Ywmj", "def Ywmj(YKHO, Ywmj):\n YKHO._payment_date = Ywmj", "def aCFu(YKHO, aCF...
[ "0.7556409", "0.6852017", "0.6428344", "0.62794644", "0.62794644", "0.6126047", "0.5971838", "0.589281", "0.5844277", "0.5777966", "0.5700879", "0.5618178", "0.56067383", "0.55602574", "0.5533535", "0.55216354", "0.55216354", "0.5521394", "0.5469303", "0.5469303", "0.5419809"...
0.85541546
0
Sets the paid of this Invoice.
def yJhk(YKHO, yJhk): YKHO._paid = yJhk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z1sQ(YKHO, z1sQ):\n YKHO._paid_interest = z1sQ", "def b0AH(YKHO, b0AH):\n YKHO._transaction_amount_paid = b0AH", "def qXR_(YKHO, d_Cv, yJhk=True):\n YKHO._request('setInvoicePaymentStatus', data={'invoice_id': d_Cv, 'status': 'paid' if yJhk else 'not_paid'})", "def yJhk(YKHO):\n return YKHO.g...
[ "0.71118146", "0.68751043", "0.6470374", "0.6076682", "0.5806382", "0.57565767", "0.5673155", "0.54964036", "0.5486134", "0.5443263", "0.5386599", "0.5372043", "0.53404045", "0.5311332", "0.52929515", "0.5218374", "0.52046144", "0.51996523", "0.5167581", "0.5143295", "0.51186...
0.851411
0
Sets the line_items of this Invoice.
def AIXH(YKHO, AIXH): YKHO._line_items = AIXH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kI_D(YKHO, kI_D):\n YKHO._line_item_id = kI_D", "def aO9U(YKHO, aO9U):\n if YKHO.local_vars_configuration.client_side_validation and aO9U is None:\n raise ValueError('Invalid value for `invoice_lines`, must not be `None`')\n YKHO._invoice_lines = aO9U", "def W2ZR(YKHO, W2ZR):\n YKHO._lin...
[ "0.6666923", "0.6609244", "0.64970934", "0.6249937", "0.6206147", "0.60185146", "0.5922748", "0.58824813", "0.5765157", "0.570581", "0.57036614", "0.56830037", "0.56592447", "0.5638203", "0.5607459", "0.555337", "0.5523017", "0.5452432", "0.54291415", "0.5421177", "0.5401261"...
0.82457817
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, nB5K): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, nB5K): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Load a JSON file. Params ======
def lc9H(Sd0C): with open(Sd0C, 'r') as eHNT: return qQXR.load(eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc9H(gIsw):\n return qQXR.load(open(gIsw))", "def y4Mn(VqRE):\n with open(VqRE, 'r') as eHNT:\n return qQXR.load(eHNT)", "def lc9H(qaEx):\n with open(qaEx, 'r') as wM3v:\n cmPJ = qQXR.loads(wM3v.read())\n return cmPJ", "def lc9H(Ux0P):\n with open(Ux0P) as nUeQ:\n YEnM...
[ "0.80938023", "0.80891216", "0.7919483", "0.7908465", "0.7893987", "0.788293", "0.7835652", "0.7806246", "0.7806246", "0.7792857", "0.77920884", "0.77859575", "0.7730966", "0.7729283", "0.77256244", "0.77043283", "0.7686077", "0.76677114", "0.7661505", "0.76507187", "0.764839...
0.77560073
12
Load a JSON file. Params ======
def b8V_(qIxc): R518(qIxc.root)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc9H(gIsw):\n return qQXR.load(open(gIsw))", "def y4Mn(VqRE):\n with open(VqRE, 'r') as eHNT:\n return qQXR.load(eHNT)", "def lc9H(qaEx):\n with open(qaEx, 'r') as wM3v:\n cmPJ = qQXR.loads(wM3v.read())\n return cmPJ", "def lc9H(Ux0P):\n with open(Ux0P) as nUeQ:\n YEnM...
[ "0.80938023", "0.80891216", "0.7919483", "0.7908465", "0.7893987", "0.788293", "0.7835652", "0.7806246", "0.7806246", "0.7792857", "0.77920884", "0.77859575", "0.77560073", "0.7730966", "0.7729283", "0.77256244", "0.77043283", "0.7686077", "0.76677114", "0.7661505", "0.765071...
0.0
-1
Normalise a 2D vector, i.e. return a vector in the same direction as the vector between a and b but with unit length
def kwsU(jzdc, Fg_i): eUWA = Fg_i[1] - jzdc[1] Jw7X = Fg_i[0] - jzdc[0] iArr = (eUWA ** 2 + Jw7X ** 2) ** 0.5 Jw7X = int(round(Jw7X / iArr)) eUWA = int(round(eUWA / iArr)) return (Jw7X, eUWA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(Ty9i):\n return Ty9i / oyIN.linalg.norm(Ty9i)", "def NkkI(iArr):\n return iArr / oyIN.linalg.norm(iArr)", "def NkkI(Ty9i):\n return oyIN.array(Ty9i) / oyIN.linalg.norm(Ty9i)", "def lgZ7(he6J, CkYf=1.0):\n he6J = ba_R(he6J)\n y917 = XTiz.sqrt(XTiz.dot(he6J, he6J))\n yvT9 = he6J / y9...
[ "0.75288063", "0.7473549", "0.73827386", "0.73801214", "0.7368384", "0.73165053", "0.73080987", "0.7274887", "0.7274887", "0.7274887", "0.72695774", "0.72375256", "0.72375256", "0.72375256", "0.72375256", "0.72375256", "0.72375256", "0.72375256", "0.72375256", "0.72375256", "...
0.7942017
0
remove accented characters from text, e.g. cafe
def QDJq(l5Ny): l5Ny = XKrx.unidecode(l5Ny) return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QDJq(l5Ny):\n l5Ny = zVCt.normalize('NFKD', l5Ny).encode('ascii', 'ignore').decode('utf-8', 'ignore')\n return l5Ny", "def dEDD(l5Ny):\n l5Ny = zVCt.normalize('NFD', l5Ny)\n l5Ny = l5Ny.encode('ascii', 'ignore')\n l5Ny = l5Ny.decode('utf8')\n return l5Ny", "def dEDD(l5Ny):\n l5Ny = jKi...
[ "0.87563145", "0.85978603", "0.84717906", "0.84188145", "0.8363904", "0.8361153", "0.83502066", "0.83387655", "0.8292097", "0.80897015", "0.7587782", "0.7556356", "0.7527288", "0.7492908", "0.7446902", "0.74296635", "0.73600036", "0.7347273", "0.733698", "0.73206484", "0.7300...
0.8858065
0
Initialize the card with number and suit .
def FIMM(YKHO, FGW3: str, iCfd: str) -> None: YKHO.number = FGW3 YKHO.suit = iCfd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, iCfd: str, fdMZ: str) -> None:\n YKHO.suit = iCfd\n YKHO.rank = fdMZ\n YKHO.value = F1Hz.values[fdMZ]\n YKHO.hidden = False", "def FIMM(YKHO, BWXx, iCfd):\n YKHO.value = BWXx\n YKHO.suit = iCfd", "def FIMM(YKHO, o6IY='standard'):\n if o6IY == 'standard':\n YKHO.card_v...
[ "0.7528525", "0.73660344", "0.7156633", "0.7154676", "0.7145494", "0.71165603", "0.7092519", "0.7069209", "0.70430064", "0.7041722", "0.7021801", "0.70205426", "0.6995803", "0.6955573", "0.68873024", "0.68510544", "0.68427217", "0.68377465", "0.6810783", "0.67761075", "0.6771...
0.7873357
0
Return True iff this Card is equal to . Two cards are equal if they have the same number.
def xa14(YKHO, Elif: Card) -> bool: return lAcl[YKHO.number] == lAcl[Elif.number]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, sPLd):\n if YKHO.rank == sPLd.rank or YKHO.suit == sPLd.suit:\n return True\n else:\n return False", "def xa14(YKHO, nNr0):\n return YKHO.suit == nNr0.suit and YKHO.rank == nNr0.rank", "def xa14(YKHO, Elif):\n if isinstance(Elif, F1Hz):\n return YKHO.color == Eli...
[ "0.7612709", "0.75479436", "0.7260245", "0.6907878", "0.6863286", "0.6807668", "0.6774836", "0.6756191", "0.6696493", "0.66882545", "0.66715086", "0.666661", "0.66569376", "0.6618338", "0.66104877", "0.65573585", "0.65283895", "0.65015894", "0.6491595", "0.6468011", "0.646335...
0.7656766
0
Return True iff this Card is not equal to .
def Vdqg(YKHO, Elif: Card) -> bool: return not YKHO.__eq__(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return bool(YKHO != Elif)", "def Vdqg(YKHO, Elif: ob...
[ "0.7235088", "0.7212215", "0.71886444", "0.7183595", "0.7164907", "0.71528524", "0.7146346", "0.7145354", "0.7144223", "0.71398425", "0.7127878", "0.7127878", "0.71206003", "0.71206003", "0.7111732", "0.7107056", "0.7107056", "0.7107056", "0.7103229", "0.70888424", "0.7088842...
0.85990524
0
Check if 2 grids are equal return boolean value
def yu09(oMoz, HwYe): for YRbF in range(len(oMoz)): for r845 in range(len(oMoz[YRbF])): if oMoz[YRbF][r845] != HwYe[YRbF][r845]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yu09(oMoz, HwYe):\n if oMoz == HwYe:\n return True\n else:\n return False", "def yu09(oMoz, HwYe):\n if oMoz == HwYe:\n return True\n return False", "def yu09(oMoz, HwYe):\n for YRbF in range(4):\n for r845 in range(4):\n if oMoz[YRbF][r845] != HwYe[YRb...
[ "0.89347094", "0.8916087", "0.87047255", "0.8559624", "0.82122976", "0.80740815", "0.79240525", "0.78835154", "0.78444386", "0.7505653", "0.74689347", "0.74685746", "0.74685746", "0.7435515", "0.74187225", "0.73936117", "0.7214343", "0.71721923", "0.71600556", "0.71267986", "...
0.85525453
4
Returns model specific evaluation metric Tensor Op
def DcXD(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DcXD(YKHO):\n YKHO._validate_eval_metric()\n if isinstance(YKHO.eval_metric, SnBA.FunctionType):\n Mjoz().set_metric(YKHO.eval_metric)\n return 'user_defined_metric'\n if YKHO.eval_metric == 'auto':\n if YKHO._get_ml_task() == bVah:\n return 'logloss'\n elif YKHO...
[ "0.71054876", "0.696161", "0.6865393", "0.66233003", "0.63560545", "0.62732697", "0.625372", "0.623171", "0.6199923", "0.6142185", "0.6134862", "0.60356164", "0.6028207", "0.60053974", "0.59840226", "0.59722537", "0.5968629", "0.59548897", "0.59189445", "0.58827394", "0.58806...
0.68792844
2
Returns model specific Optimizer Op
def iw5F(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U5_0(YKHO):\n return YKHO._optimize_op", "def K0do(YKHO):\n return 'sgd'", "def mWFP(YKHO) -> str:\n return 'UnnamedOptimizer'", "def aJRO(YKHO, pNZh, N77f):\n with pNZh.as_default():\n y7GR = DnTY.optimizer(YKHO.optimizer, YKHO.learning_rate, YKHO.momentum)\n return y7GR.minimi...
[ "0.6705821", "0.6388277", "0.6356156", "0.6339564", "0.6310742", "0.63095725", "0.6261288", "0.6260692", "0.6243419", "0.6225094", "0.6170032", "0.61623156", "0.61623156", "0.6154761", "0.6088127", "0.60804594", "0.60618514", "0.6046481", "0.6039586", "0.6035075", "0.6008412"...
0.68825114
0
Gets the variables state of the model and stores them in a json
def ftFG(YKHO): CeNd = Hy7s.path.join(YKHO._log_dir, YKHO._name + 'params.json') bo34.info('Writing params to {}'.format(CeNd)) NArs = [(str(G1Hx), str(Ty9i)) for G1Hx, Ty9i in YKHO.__dict__.items()] with open(CeNd, 'w') as CF9_: qQXR.dump(dict(NArs), CF9_, indent=4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jbKh(YKHO):\n return YKHO.variables", "def jbKh(YKHO):\n return YKHO.variables", "def kc1W(YKHO):\n if jSDU.in_save_context():\n return [YKHO._vars[0]]\n return YKHO._vars", "def dOjl(YKHO):\n return ZylS.global_variables()", "def ja6o(YKHO):\n return {'epoch': YKHO.epoch, 'wei...
[ "0.68796384", "0.65980077", "0.6465097", "0.64610004", "0.6439466", "0.64263695", "0.6419049", "0.6342331", "0.63338286", "0.63082534", "0.6304701", "0.6275162", "0.623656", "0.6221415", "0.6211878", "0.6205348", "0.61984247", "0.61697465", "0.616644", "0.61361706", "0.611333...
0.0
-1
Create a new OneNote notebook.
def H2v5(YKHO, qQNS): return super(MUs5, YKHO).add(displayName=qQNS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BdN0(K_hV, fytP):\n GPal = M7OH(K_hV)\n if GPal is None:\n ltHt(\"The notebook `{0}` doesn't exist.\".format(K_hV))\n return\n bGrB, YBcr = Hy7s.path.splitext(fytP)\n if not YBcr:\n fytP += '.md'\n pmON = Hy7s.path.join(GPal.path.abs, fytP)\n k8wH.edit(filename=pmON)", ...
[ "0.7738977", "0.74216247", "0.74009854", "0.68847376", "0.67615104", "0.66890067", "0.66216636", "0.6532857", "0.64851356", "0.63531256", "0.6308573", "0.6308573", "0.6263171", "0.6229068", "0.61772144", "0.6145046", "0.60621923", "0.60530245", "0.60300845", "0.59948564", "0....
0.0
-1
Private method that maps the columns in the file to an integer index
def O3kv(YKHO): j93S = list(NlXC('FL', 'M1.0@265_Primary_ar115_s2010-08-06T06_36_00_e2010-08-06T18_24_00.csv').get_data().columns)[:25] Z18d = {} for YRbF in range(len(j93S)): Z18d[YRbF] = j93S[YRbF] return Z18d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lfXu(*qIxc, VqRE='CO2.tab'):\n iEoW = {'PT': 0, 'TM': 0, 'HG': 0, 'VISG': 0, 'VISHL': 0, 'ROG': 0, 'ROHL': 0}\n if VqRE:\n WfCS = XVEN(xPXL(VqRE, 52))\n for H5ew in iEoW:\n iEoW[H5ew] = WfCS.index(H5ew)\n return iEoW", "def f1pu(eZ_W, mWFP):\n fvDH, zJeG = vZUU(eZ_W)\n AAHb = ...
[ "0.723523", "0.71931326", "0.6832925", "0.6541179", "0.64789474", "0.6454937", "0.6378162", "0.6371237", "0.6311819", "0.62832546", "0.6266667", "0.6175116", "0.6156575", "0.61557454", "0.6151977", "0.6144335", "0.6132116", "0.6121597", "0.60919446", "0.602414", "0.6006897", ...
0.55434483
68
Takes in short_ratings dataframe, group by perfume id, return a dictionary with perfume id as key, all short comments of that perfume as values
def sMud(am1t): gRGF = oRi_(list) for Ii1o in am1t['perfume_id'].unique(): jQ3Z = am1t[am1t['perfume_id'] == Ii1o] for Z9rn in jQ3Z['short_comment']: gRGF[Ii1o].append(Z9rn) BgsN = rLdf.DataFrame.from_dict(gRGF, orient='index').stack().sum(level=0) sMud = rLdf.DataFrame(BgsN)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vl7K(sMud, Z86D):\n Z86D.set_index('perfume_id', inplace=True)\n Z86D['long_comments'] = Z86D['comments'].apply(','.join)\n U9OR = rLdf.merge(sMud, Z86D, how='left', left_index=True, right_index=True)\n U9OR = U9OR.fillna('.')\n U9OR['all_comments'] = U9OR['short_comments'] + U9OR['long_comments...
[ "0.5101397", "0.49811336", "0.4974245", "0.49642193", "0.49578878", "0.4908577", "0.48813957", "0.48355108", "0.480407", "0.47856924", "0.4760423", "0.4748922", "0.47381297", "0.47011238", "0.46939063", "0.46722868", "0.46702626", "0.4661651", "0.46464935", "0.46265265", "0.4...
0.82146406
0
Get the register type.
def dcpc(YKHO) -> str: return YKHO._register_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BPfb(YKHO) -> str:\n return YKHO._reg_def_type", "def FRul(YKHO) -> str:\n return YKHO['Type']", "def FRul(YKHO) -> str:\n return YKHO.type", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO):\n r...
[ "0.747045", "0.69853294", "0.69776267", "0.69538915", "0.69538915", "0.6948132", "0.6948132", "0.6936758", "0.68779194", "0.68646145", "0.68296516", "0.6800975", "0.67360306", "0.67140883", "0.67138606", "0.6661503", "0.6659335", "0.6652948", "0.6642877", "0.6642877", "0.6605...
0.781765
0
Create ROOT TH1 filled with a Gaussian distribution
def dR4x(mWFP, JBMS, WTkW): QzFq = hNtJ(mWFP, mWFP, 100, -10, 10) for YRbF in range(1000): QzFq.Fill(MFeF.Gaus(JBMS, WTkW)) return QzFq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IYu9(YKHO, WKvO: ndarray, yGTL: float, WTkW: float) -> gyIm:\n return 1 / (oyIN.sqrt(2 * oyIN.pi) * WTkW) * oyIN.exp(-oyIN.power((WKvO - yGTL) / WTkW, 2) / 2)", "def YYxd(YKHO):\n\n def BxXQ():\n return [tuKI.gauss(0, 1) for YRbF in range(YKHO.d)]\n YKHO._test_sample_basis_hon(BxXQ)", "def ...
[ "0.6476005", "0.6419681", "0.6398783", "0.63678724", "0.62925464", "0.62547433", "0.6178954", "0.61453617", "0.61378396", "0.61306834", "0.61133933", "0.60898346", "0.6083299", "0.60644", "0.6018058", "0.5996053", "0.5984178", "0.59570616", "0.59489834", "0.5938205", "0.59102...
0.729309
0
Convert a list of strings into a tf.Example.
def _sm_(b0j5, xcYd, EJa0, HVbw): uwXo = [b0j5.convert_tokens_to_ids(s2mk) for s2mk in xcYd] bySB = g760.OrderedDict() Oxz5 = [] for YRbF in range(HVbw): if YRbF >= len(uwXo): Oxz5.append([0] * EJa0) else: FTeT = oyIN.pad(uwXo[YRbF], (0, EJa0), mode='constant')[:E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O3Rp(PU1l, b0j5, EKkb, G8d9=512, g4pi=False):\n if not g4pi:\n VOU0 = 'int64' if EKkb else 'float32'\n UXqs = PU1l['labels']\n UXqs = oyIN.array([UXqs], dtype=VOU0)\n if int(g4pi) + len(PU1l) == 2:\n PU1l = b0j5(PU1l['sentence'], max_seq_len=G8d9)\n else:\n PU1l = b0...
[ "0.6750633", "0.6705025", "0.6624028", "0.6606941", "0.65753984", "0.64643246", "0.6440046", "0.6437968", "0.64069235", "0.6348529", "0.63305575", "0.6329963", "0.631944", "0.6287436", "0.62661815", "0.6256302", "0.62322795", "0.61961937", "0.61571527", "0.61292535", "0.61291...
0.0
-1
Create a spark session for the project to interact with various spark's functionality
def Yu9h(): ujem = lBG2.builder.config('spark.jars.packages', 'org.apache.hadoop:hadoop-aws:2.7.0').getOrCreate() return ujem
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hv6k():\n return lBG2.builder.appName('Transforming the historical parking occupancy and blockface datasets').getOrCreate()", "def Yu9h():\n return lBG2.builder.appName('Dataframe Reader').master('local[*]').getOrCreate()", "def Yu9h():\n print('Create Spark Session')\n ujem = lBG2.builder.conf...
[ "0.8580574", "0.8204687", "0.8164546", "0.8160139", "0.8059125", "0.80583256", "0.8045966", "0.8045966", "0.8045966", "0.8045966", "0.8024192", "0.80131125", "0.8006901", "0.7943525", "0.7921983", "0.79204345", "0.7911685", "0.791123", "0.7887828", "0.7794173", "0.7564952", ...
0.8024196
13
All the logic to move, and the game logic goes here. Normally, you'll call update() on the sprite lists that need it.
def chpw(YKHO, OeYL): YKHO.physics_engine.update() YKHO.physics_engine2.update() LSOD = jIOH.check_for_collision_with_list(YKHO.player_sprite, YKHO.apple_list) for CIIR in LSOD: CIIR.remove_from_sprite_lists() YKHO.apples_eaten += 1 jIOH.play_sound(YKHO.collect_apple_sound) E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J8cm(YKHO):\n if not YKHO.game_over:\n YKHO.all_sprites_list.update()", "def QdZT(YKHO):\n YKHO.moving_sprites.update()\n YKHO.static_sprites.update()\n YKHO.camera.update(YKHO.player)", "def QdZT(YKHO):\n if YKHO.able_to_move:\n YKHO.pix_pos += YKHO.direction * YKHO.speed\n ...
[ "0.8133112", "0.75657123", "0.7411846", "0.7386061", "0.7197449", "0.7155682", "0.71433836", "0.71139944", "0.7048409", "0.7021325", "0.6957522", "0.6953524", "0.69499093", "0.6881818", "0.67385006", "0.673602", "0.6731394", "0.6702488", "0.66944313", "0.6693237", "0.66910195...
0.0
-1
r"""ResNet V1 model from `"Deep Residual Learning for Image Recognition"
def R80o(DpZH, CLda, **B2fa): assert CLda in R6R3, 'Invalid number of layers: %d. Options are %s' % (CLda, str(R6R3.keys())) bgCG, fhcK, xMux = R6R3[CLda] assert DpZH >= 1 and DpZH <= 2, 'Invalid resnet version: %d. Options are 1 and 2.' % DpZH xh2q = NNSS[DpZH - 1] rqNv = L_Dy[DpZH - 1][bgCG] Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WWYJ():\n return FYrf.resnet152(pretrained=True)", "def pyd8(GhuM, rb7a, jTqs=10, FRUf=None):\n if (rb7a - 2) % 6 != 0:\n raise ValueError('depth should be 6n+2 (eg 20, 32, 44 in [a])')\n gt4n = 16\n vlJR = int((rb7a - 2) / 6)\n if FRUf == None:\n g4y1 = X6a0(shape=GhuM)\n els...
[ "0.7365767", "0.6957699", "0.690873", "0.6836464", "0.6780612", "0.6752202", "0.6705754", "0.6705754", "0.6705754", "0.6705754", "0.6699111", "0.66834813", "0.66672003", "0.6645697", "0.6642539", "0.6640137", "0.66045165", "0.65721655", "0.6571693", "0.6519657", "0.6493308", ...
0.0
-1
Turn to a certain direction
def _ysM(YKHO, XSoh, lqL0, yuPu): SN_7 = yuPu.value QMjp = 150 NIve = 300 H2v5 = 0 wwQR = 'DirectionMotor' + str(XSoh) xi8C.output(qq6f[wwQR], not xi8C.input(qq6f[wwQR])) YKHO.motor_right.ChangeFrequency(QMjp) YKHO.motor_left.ChangeFrequency(QMjp) YKHO.motor_left.start(50.0) YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ysM(YKHO, dir):\n if dir.upper() == 'R':\n if YKHO.direction == 3:\n YKHO.direction = 0\n else:\n YKHO.direction += 1\n if dir.upper() == 'L':\n if YKHO.direction == 0:\n YKHO.direction = 3\n else:\n YKHO.direction -= 1", "def BZN...
[ "0.8370708", "0.7450915", "0.7384818", "0.73715746", "0.7348913", "0.7337406", "0.7217971", "0.7217971", "0.7213739", "0.7211227", "0.71767324", "0.71410054", "0.71279013", "0.70745105", "0.70744413", "0.7068399", "0.70243233", "0.7011851", "0.6996565", "0.698688", "0.6984145...
0.0
-1
Decide the direction to turn in relative to the robot
def EuYM(YKHO, SuY2): if xi8C.input(qq6f['DirectionMotorRight']): xi8C.output(qq6f['DirectionMotorRight'], xi8C.LOW) xi8C.output(qq6f['DirectionMotorLeft'], xi8C.HIGH) YKHO.facing = not YKHO.facing if YKHO.facing == 'Right': if SuY2 == 'Down': return 'Right' e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ErSI(YKHO):\n return YKHO.direction", "def ErSI(YKHO):\n return YKHO.direction", "def ErSI(YKHO):\n return YKHO.direction", "def ErSI(YKHO):\n return YKHO.direction", "def _ysM(YKHO, dir):\n if dir.upper() == 'R':\n if YKHO.direction == 3:\n YKHO.direction = 0\n ...
[ "0.74904394", "0.74904394", "0.7332256", "0.7332256", "0.72943324", "0.7208709", "0.7078935", "0.6999339", "0.69108695", "0.683539", "0.683539", "0.682298", "0.68122977", "0.6782501", "0.6759455", "0.6738724", "0.673538", "0.6731321", "0.6728323", "0.67067975", "0.67028403", ...
0.6882379
9
Calculates the euclidean distance from any point (x,y) given in map_x object towards its sourrounding neighbour points, which are cointained in map_x.roads.
def nRsB(Sv2y: object) -> dict: LSii = {} for Q6kx, siZ_ in enumerate(Sv2y.roads): jHsn, pvd3 = Sv2y.intersections[Q6kx] for UzPC in siZ_: UV8M, vHO5 = Sv2y.intersections[UzPC] Ayfi = epAf.sqrt((jHsn - UV8M) ** 2 + (pvd3 - vHO5) ** 2) LSii.setdefault(Q6kx, {})...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQ7Q(Sv2y: object, xi3E: int) -> dict:\n KtOk = {}\n dzYv, n6Nt = Sv2y.intersections[xi3E]\n for Q6kx, (ohxs, SKbT) in Sv2y.intersections.items():\n Ayfi = epAf.sqrt((dzYv - ohxs) ** 2 + (n6Nt - SKbT) ** 2)\n KtOk[Q6kx] = Ayfi\n return KtOk", "def AUp_(G6fN, hp1i, XLO_, xXUX):\n ...
[ "0.65643346", "0.64513713", "0.63841766", "0.6373166", "0.63397765", "0.632415", "0.63126475", "0.6276056", "0.6257271", "0.6233553", "0.6184884", "0.61683863", "0.61064583", "0.6104228", "0.6098429", "0.6084753", "0.6070217", "0.606662", "0.605188", "0.6041738", "0.60360974"...
0.7578011
0
Calculates the underestimated (minimum) euclidean distance from any point (x,y) given in map_x object towards a specified goal point. Required to guarantee for As "greedybestfirstsearch" paradigm, leading to an expansion of nodes / intersections first that are closest by euclidean distance towards the target. Calculate...
def rQ7Q(Sv2y: object, xi3E: int) -> dict: KtOk = {} dzYv, n6Nt = Sv2y.intersections[xi3E] for Q6kx, (ohxs, SKbT) in Sv2y.intersections.items(): Ayfi = epAf.sqrt((dzYv - ohxs) ** 2 + (n6Nt - SKbT) ** 2) KtOk[Q6kx] = Ayfi return KtOk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y_oG(YKHO, tk5Y, xi3E):\n Jw7X = abs(tk5Y.row - xi3E.row)\n eUWA = abs(tk5Y.col - xi3E.col)\n return Jw7X + eUWA", "def bzXE(YKHO, WKvO, LVAh):\n pImw = []\n for YRbF in range(len(WKvO)):\n for r845 in range(YRbF + 1, len(WKvO)):\n Csk6 = YKHO.get_euclidean_distance(WKvO[YRbF...
[ "0.6320026", "0.6279764", "0.62364215", "0.62341315", "0.62137204", "0.6174377", "0.6172368", "0.6059483", "0.5937916", "0.59054124", "0.5901431", "0.5892355", "0.5884345", "0.5874521", "0.5860715", "0.58527696", "0.5846171", "0.5805825", "0.57953364", "0.5785152", "0.5783859...
0.68145263
0
Get a list of recommended movies for a movie.
def u5Ef(YKHO, **B2fa): pmON = YKHO._get_movie_id_path('recommendations') _hkX = YKHO._get_method(pmON, B2fa) return _hkX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OjSe(uJjO, xTXs, EAzR):\n AksU = lR9P.movie_recomendation(uJjO, xTXs, EAzR)\n OE9o = rLdf.read_csv('movies.csv', index_col='movieId')\n T4qF = []\n for xTXs in AksU:\n Y8Kb = []\n pVKJ = str(kHdL(xTXs))\n Y8Kb.append(pVKJ)\n Y8Kb.append(OE9o.loc[xTXs, 'title'])\n ...
[ "0.73985803", "0.6672902", "0.645852", "0.6243045", "0.62020135", "0.6198806", "0.61174536", "0.6091463", "0.60607594", "0.60475534", "0.6009142", "0.5997928", "0.5970934", "0.5939982", "0.59363353", "0.5931252", "0.59142596", "0.59080803", "0.5892634", "0.5892084", "0.589135...
0.7109265
1
Get the release date along with the certification for a movie.
def W_Vc(YKHO, **B2fa): pmON = YKHO._get_movie_id_path('release_date') _hkX = YKHO._get_method(pmON, B2fa) return _hkX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lZq2(vkk1):\n if 'release_date' in vkk1:\n _c1T = vkk1['release_date']\n if _c1T != '':\n return qcWV.strptime(_c1T, '%Y-%m-%d').year\n else:\n return 0\n else:\n raise AttributeError('%s instance has no attribute release_date' % vkk1)", "def uqqH(YKHO)...
[ "0.6711595", "0.6563982", "0.64657223", "0.63099766", "0.5776768", "0.5712398", "0.5589539", "0.54743624", "0.54603285", "0.54441214", "0.5390347", "0.53358847", "0.5330151", "0.53233296", "0.53077465", "0.5286131", "0.52525586", "0.5208864", "0.5191374", "0.51776975", "0.516...
0.6041648
4
Get a list of similar movies. This is not the same as the "Recommendation" system you see on the website. These items are assembled by looking at keywords and genres.
def OOig(YKHO, **B2fa): pmON = YKHO._get_movie_id_path('similar') _hkX = YKHO._get_method(pmON, B2fa) return _hkX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WyKg(Ty9i, kh5e=[], exwG=50):\n if kh5e:\n Ty9i = J2G3(kh5e, Ty9i, harshness=fNYk)\n return M_NZ.similar_by_vector(Ty9i, topn=exwG + 1)[1:]", "def p3El(EiNU, mino):\n jQ3Z = iNAE(FYrf.MovieFeatures.objects.all())\n UHFx = LM0n()\n InN6 = UHFx.fit_transform(jQ3Z['bag_of_words'])\n DQ2...
[ "0.755968", "0.72411406", "0.70853955", "0.70113343", "0.6952319", "0.69393384", "0.6935728", "0.6593501", "0.6556901", "0.6550072", "0.6541409", "0.6517391", "0.6480606", "0.6369751", "0.6365865", "0.6358237", "0.6357587", "0.6327551", "0.6272381", "0.6240926", "0.62189424",...
0.7812552
0
Get the most newly created movie. This is a live response and will continuously change.
def fsbt(YKHO, **B2fa): pmON = YKHO._get_movie_id_path('latest') _hkX = YKHO._get_method(pmON, B2fa) return _hkX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M2vk(YKHO, qoqK=5):\n YKHO.logger.debug('Fetching recently added movies')\n try:\n h0vI = NnkB(YKHO.url('/jsonrpc', True))\n C9U5 = ['title', 'year', 'runtime', 'plot', 'thumbnail', 'file', 'fanart', 'trailer', 'imdbnumber', 'studio', 'genre', 'rating']\n c5uu = {'start': 0, 'end': i...
[ "0.6575423", "0.64725035", "0.6254452", "0.6004162", "0.59428036", "0.59235334", "0.5907708", "0.5906305", "0.5878865", "0.5789607", "0.5760728", "0.57403165", "0.5711764", "0.5682661", "0.56659967", "0.56649077", "0.55827975", "0.5544352", "0.5531881", "0.5531181", "0.552466...
0.67123926
0
Return the state attributes of the device.
def TzCU(YKHO): return {hkS8: getattr(YKHO, '_' + QWcs) for hkS8, QWcs in UZG_.items()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO)...
[ "0.92738223", "0.92053986", "0.91516256", "0.91516256", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148746", "0.9148746", "0.9137698", "0.9110632",...
0.0
-1