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 current true UTC time as a timeaware datetime object
def Aues(): xUMo = qcWV.utcnow() xUMo = FXGE.utc.localize(xUMo) return xUMo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def datetime(YKHO, foH1=False) -> JRYC.datetime:\n if foH1 is True:\n wzkt = await YKHO.AD.sched.get_now()\n return wzkt.astimezone(YKHO.AD.tz)\n else:\n return await YKHO.AD.sched.get_now_naive()", "def BosD() -> qcWV:\n return qcWV.now(rIAI.utc)", "def SsoH() -> qcWV:\n ...
[ "0.76857644", "0.7552746", "0.7549446", "0.74968964", "0.749523", "0.74306625", "0.7427546", "0.7373462", "0.7314741", "0.7302832", "0.72967887", "0.7238569", "0.72143453", "0.7194171", "0.71692985", "0.71404064", "0.7138585", "0.7124459", "0.71094424", "0.7070395", "0.705971...
0.714195
15
Test index route status code
def hDnz(x0hE): QyVM = x0hE.get('/') D1zF = x0hE.get('/index/') assert QyVM.status_code == 200 assert D1zF.status_code == 200
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bRrK():\n geh0 = x0hE.get('/')\n assert geh0.status_code == jGRS.HTTP_200_OK\n assert geh0.raw != None", "def UKcv(x0hE):\n geh0 = x0hE.get('/')\n assert geh0.status_code == 200", "def pClx(YKHO):\n bD7m = gxEw('resources:index')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh...
[ "0.7927917", "0.76967937", "0.7463699", "0.7333757", "0.7285797", "0.72006303", "0.7153459", "0.7075232", "0.70320183", "0.70130235", "0.7011268", "0.6974113", "0.69543785", "0.69445413", "0.693427", "0.68701935", "0.68637955", "0.6828023", "0.6806781", "0.67570263", "0.67430...
0.75898707
2
Get file hex digest (fingerprint).
def NLif(FaZ_): B2KD = HBct.sha1() for XkN1 in iter(YLnl(FaZ_.read, w4Zr), ''): B2KD.update(XkN1) FaZ_.seek(0) return B2KD.hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OWTc(nUeQ):\n eZ_W = open(nUeQ, 'rb')\n nPrm = eZ_W.read()\n dKPB = pNfG(nPrm).hexdigest()\n eZ_W.close()\n return dKPB", "def s7Zb(YKHO) -> str:\n ytgA = YKHO.sha256.hex()\n return ytgA", "def bqSX(YKHO):\n return bzm3(G8YU(YKHO.bytes))", "def vFhS(YKHO):\n return ''.join(['%0...
[ "0.75853276", "0.73116523", "0.7146365", "0.6978861", "0.6942803", "0.6900638", "0.68414474", "0.6836104", "0.679403", "0.67751384", "0.67482144", "0.67346597", "0.6670643", "0.6655388", "0.6625109", "0.66017854", "0.65971655", "0.6596163", "0.6596081", "0.6587272", "0.658485...
0.0
-1
Extract number from string.
def mkJm(l5Ny): if True: l5Ny.replace(',', '.') l5Ny = ZbWC.sub('\xa0', '', l5Ny) lMD3 = ZbWC.findall('[0-9]+\\.{0,1}[0-9]*', l5Ny) if lMD3: lMD3 = lMD3[0] else: lMD3 = 'nan' else: lMD3 = l5Ny try: lMD3 = float(lMD3) except:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bKmb(YKHO, vIwR):\n r8hN = ZbWC.search('\\\\d+$', vIwR)\n if r8hN is not None:\n return int(r8hN.group())\n else:\n return 0", "def XFjE(YKHO, vIwR):\n KCHu = ZbWC.findall('\\\\d+', vIwR)\n return int(''.join(KCHu))", "def xuS7(FUjE):\n return int(FUjE)", "def mkJm(WKvO):\...
[ "0.77379173", "0.7693082", "0.74840516", "0.73821986", "0.73413527", "0.73124546", "0.72008556", "0.71422917", "0.70899296", "0.70725447", "0.70215183", "0.7020617", "0.6971994", "0.6915471", "0.69110984", "0.67833114", "0.6762571", "0.6740995", "0.667752", "0.6662119", "0.66...
0.6420083
35
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None mV1L = None if cmPJ.get('applicationRestoreObjects') != None: mV1L = list() for g8x2 in cmPJ.get('applicationRestoreObjects'): mV1L.append(qRGs.models.application_restore_object.ApplicationRestoreObject.from_dictionary(g8...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.83181584", "0.8168118", "0.8168118", "0.8118749", "0.8089047", "0.79787344", "0.7949278", "0.79231393", "0.7898951", "0.78923255", "0.788838", "0.7882321", "0.7882212", "0.7876749", "0.78585315", "0.7836853", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407",...
0.0
-1
Returns the distance between point a and b
def Ayfi(jzdc, Fg_i): return epAf.sqrt((jzdc[0] - Fg_i[0]) ** 2 + (jzdc[1] - Fg_i[1]) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(jzdc: Point, Fg_i: Point) -> float:\n return epAf.sqrt(epAf.pow(Fg_i.x - jzdc.x, 2) + epAf.pow(Fg_i.y - jzdc.y, 2))", "def Ayfi(jzdc, Fg_i):\n aNZO, xQ3W = jzdc\n bcP8, xEOs = Fg_i\n Jw7X = bcP8 - aNZO\n eUWA = xEOs - xQ3W\n return (abs(Jw7X) + abs(eUWA) + abs(Jw7X - eUWA)) / 2", "de...
[ "0.89436543", "0.8793485", "0.877518", "0.8699922", "0.8699736", "0.85757345", "0.8559321", "0.85422933", "0.8519206", "0.8496124", "0.8491182", "0.8467624", "0.8454343", "0.8448204", "0.83784014", "0.83561504", "0.8355257", "0.8339597", "0.8136336", "0.8117115", "0.8106733",...
0.82824945
18
Returns true iff point c intersects the line segment from a to b
def Debg(jzdc, Fg_i, Z9rn): return XnzE(jzdc, Fg_i, Z9rn) and (eVmN(jzdc[0], Z9rn[0], Fg_i[0]) if jzdc[0] != Fg_i[0] else eVmN(jzdc[1], Z9rn[1], Fg_i[1]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qdYC(jzdc, Fg_i, Z9rn, KCHu):\n return FqzW(jzdc, Fg_i, Z9rn) == FqzW(jzdc, Fg_i, KCHu) and FqzW(Fg_i, Z9rn, jzdc) == FqzW(Fg_i, Z9rn, KCHu) and (FqzW(Z9rn, jzdc, Fg_i) == FqzW(Z9rn, jzdc, KCHu))", "def tQzj(KwKv, YBrO, Qz2I):\n return (YBrO[0] - KwKv[0]) * (Qz2I[1] - KwKv[1]) - (YBrO[1] - KwKv[1]) * (...
[ "0.78442276", "0.7745619", "0.7684103", "0.75799155", "0.7465657", "0.7365313", "0.7256164", "0.72147787", "0.7184703", "0.7145719", "0.7143656", "0.714278", "0.7115458", "0.7057952", "0.7025709", "0.7018279", "0.7015748", "0.7009866", "0.69651437", "0.695812", "0.6947701", ...
0.6911741
21
Returns True if the list of points contains collinear points, False if not
def kR4l(XhjI): for LTIa in XhjI: if XnzE(LTIa[0], LTIa[1], LTIa[2]): return True else: pass return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gnYP(*LTIa: Point, D1sU: float=0.01) -> bool:\n if len(LTIa) < 3:\n raise ValueError('CurveChecker.assert_collinear() must be called with at least three points')\n wSAP = [oyIN.arctan2(y4fz[1] - EBgd[1], y4fz[0] - EBgd[0]) for y4fz, EBgd in zip(LTIa, LTIa[1:])]\n for lGE9, n2Q1 in zip(wSAP, wSA...
[ "0.7421417", "0.7090952", "0.7080276", "0.70396364", "0.68133307", "0.6784668", "0.6733284", "0.6707415", "0.6630739", "0.6605163", "0.6556163", "0.6528503", "0.6493936", "0.64693415", "0.6435088", "0.6398559", "0.63703936", "0.6363428", "0.6346839", "0.633933", "0.6316365", ...
0.91530555
0
Provides a tensor of labels for a sentence
def asiY(YKHO, yAmx, lpha): YKHO._manual_setup() if YKHO.cache is None: Crrw = YKHO._labels_of_sentence(yAmx, lpha) return Crrw if lpha == ZuZK and YKHO.train_cache: return next(YKHO.train_cache) if lpha == HUEL and YKHO.dev_cache: return next(YKHO.dev_cache) if lpha ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nV8X(YKHO, yAmx, lpha):\n Crrw = ht2j.ones(1)\n Crrw[0] = YKHO.category_int_of_label_string(yAmx[0][YKHO.name_to_index_dict['label']])\n return Crrw", "def nV8X(YKHO, yAmx, oFe7):\n Crrw = ht2j.zeros(len(yAmx))\n for Jnwu, FNcg in enumerate(yAmx):\n qltA = FNcg[YKHO.task_label_index]\n ...
[ "0.7633192", "0.74526405", "0.7438841", "0.71451473", "0.6762559", "0.6646994", "0.65556735", "0.65207595", "0.6427919", "0.64105254", "0.6357295", "0.63412035", "0.6334646", "0.62953913", "0.62874544", "0.6285283", "0.62676525", "0.62660605", "0.62401193", "0.62401193", "0.6...
0.5867349
92
Provides a tensor of labels for a sentence; no caching
def nV8X(YKHO, yAmx, oFe7): Crrw = ht2j.zeros(len(yAmx)) for Jnwu, FNcg in enumerate(yAmx): qltA = FNcg[YKHO.task_label_index] Crrw[Jnwu] = YKHO.category_int_of_label_string(qltA) return Crrw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nV8X(YKHO, yAmx, lpha):\n Crrw = ht2j.ones(1)\n Crrw[0] = YKHO.category_int_of_label_string(yAmx[0][YKHO.name_to_index_dict['label']])\n return Crrw", "def nV8X(YKHO, yAmx, lpha):\n YKHO.category_int_of_label_string('O')\n SvAV = YKHO._string_labels_of_sentence(yAmx)\n Crrw = ht2j.zeros(len...
[ "0.76675564", "0.75061345", "0.7251737", "0.67914265", "0.67559904", "0.66362303", "0.65498954", "0.64939016", "0.64492726", "0.6421228", "0.63688195", "0.6367366", "0.6363684", "0.63294405", "0.6285814", "0.62503785", "0.6245327", "0.62333935", "0.6225621", "0.6213378", "0.6...
0.75278974
1
Provides a tensor of labels for a sentence; no caching Optionally limits
def nV8X(YKHO, yAmx, lpha): Crrw = ht2j.zeros(len(yAmx)) for Jnwu, FNcg in enumerate(yAmx): qltA = FNcg[YKHO.task_label_index] if YKHO.train_types_only: Dd4V = FNcg[YKHO.input_fields.index('token')] if lpha == ZuZK: YKHO.train_type_vocab.add(Dd4V) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nV8X(YKHO, yAmx, lpha):\n Crrw = ht2j.ones(1)\n Crrw[0] = YKHO.category_int_of_label_string(yAmx[0][YKHO.name_to_index_dict['label']])\n return Crrw", "def nV8X(YKHO, yAmx, oFe7):\n Crrw = ht2j.zeros(len(yAmx))\n for Jnwu, FNcg in enumerate(yAmx):\n qltA = FNcg[YKHO.task_label_index]\n ...
[ "0.73730224", "0.7153044", "0.7138539", "0.6724346", "0.6569151", "0.6557397", "0.635572", "0.631755", "0.631755", "0.631755", "0.631755", "0.6265511", "0.62584513", "0.61942625", "0.61746794", "0.6134543", "0.6134543", "0.6127364", "0.61165136", "0.61165136", "0.61165136", ...
0.6932934
3
Provides a tensor of labels for a sentence; no caching
def nV8X(YKHO, yAmx, lpha): YKHO.category_int_of_label_string('O') SvAV = YKHO._string_labels_of_sentence(yAmx) Crrw = ht2j.zeros(len(yAmx)) for d6pt, UXqs in enumerate(SvAV): Crrw[d6pt] = YKHO.category_int_of_label_string(UXqs) return Crrw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nV8X(YKHO, yAmx, lpha):\n Crrw = ht2j.ones(1)\n Crrw[0] = YKHO.category_int_of_label_string(yAmx[0][YKHO.name_to_index_dict['label']])\n return Crrw", "def nV8X(YKHO, yAmx, oFe7):\n Crrw = ht2j.zeros(len(yAmx))\n for Jnwu, FNcg in enumerate(yAmx):\n qltA = FNcg[YKHO.task_label_index]\n ...
[ "0.76675564", "0.75278974", "0.7251737", "0.67914265", "0.67559904", "0.66362303", "0.65498954", "0.64939016", "0.64492726", "0.6421228", "0.63688195", "0.6367366", "0.6363684", "0.63294405", "0.6285814", "0.62503785", "0.6245327", "0.62333935", "0.6225621", "0.6213378", "0.6...
0.75061345
2
Provides a tensor of labels for a sentence; no caching
def nV8X(YKHO, yAmx, lpha): Crrw = ht2j.ones(1) Crrw[0] = YKHO.category_int_of_label_string(yAmx[0][YKHO.name_to_index_dict['label']]) return Crrw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nV8X(YKHO, yAmx, oFe7):\n Crrw = ht2j.zeros(len(yAmx))\n for Jnwu, FNcg in enumerate(yAmx):\n qltA = FNcg[YKHO.task_label_index]\n Crrw[Jnwu] = YKHO.category_int_of_label_string(qltA)\n return Crrw", "def nV8X(YKHO, yAmx, lpha):\n YKHO.category_int_of_label_string('O')\n SvAV = Y...
[ "0.75278974", "0.75061345", "0.7251737", "0.67914265", "0.67559904", "0.66362303", "0.65498954", "0.64939016", "0.64492726", "0.6421228", "0.63688195", "0.6367366", "0.6363684", "0.63294405", "0.6285814", "0.62503785", "0.6245327", "0.62333935", "0.6225621", "0.6213378", "0.6...
0.76675564
0
Correct initial value of learning rate Learning rate is normally not printed until after the initial test and training step, which means the initial testing and training rows have LearningRate = NaN. Fix this by copying over the LearningRate from the second row, if it exists.
def e_38(YDX_): if len(YDX_) > 1: YDX_[0]['LearningRate'] = YDX_[1]['LearningRate']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return", "def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return", "def e_63(YKHO):\n XJdz = YKHO.args.base_lr\n for Lwm5 in YKHO.optimiz...
[ "0.6768827", "0.6768827", "0.67010623", "0.6651517", "0.6617209", "0.6617089", "0.6538696", "0.6489587", "0.63844854", "0.6331242", "0.6324924", "0.6298766", "0.62934715", "0.62894815", "0.6259135", "0.6252254", "0.6227886", "0.6210034", "0.6202021", "0.61548364", "0.6143069"...
0.72049683
0
Lets split our dataframe into a train and test set
def bHtP(jQ3Z, NI2E=0.3): zBu_ = int(jQ3Z.shape[0] * (1 - NI2E)) NI2E = jQ3Z.shape[0] - zBu_ EvQg = jQ3Z[:zBu_] QOe9 = jQ3Z[zBu_:] return (EvQg, QOe9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHtP(jQ3Z):\n jcFe = int(len(jQ3Z) * 0.67)\n NI2E = int(len(jQ3Z) - jcFe)\n EvQg, QOe9 = (jQ3Z[0:jcFe], jQ3Z[jcFe:len(jQ3Z)])\n return (EvQg, QOe9)", "def Qb89(jQ3Z: pd.DataFrame):\n zNig = int(jQ3Z.shape[0] * 0.8)\n bS0K = oyIN.random.choice(jQ3Z.index, zNig, replace=False)\n XxFT = jQ3...
[ "0.86475015", "0.8354764", "0.83336425", "0.8326615", "0.83220124", "0.82861865", "0.82702154", "0.82519627", "0.8249891", "0.8197455", "0.8175665", "0.8162518", "0.81209254", "0.7913004", "0.7909744", "0.7904663", "0.7842215", "0.7732526", "0.7723425", "0.7675278", "0.766974...
0.87321454
0
Return a queryset that contains the current instance only.
def umWR(YKHO) -> b5hG: if isinstance(YKHO, type): raise TypeError(f'Calling qs() from class level is prohibited. Use {YKHO.__name__}.objects instead.') return YKHO._meta.model.objects.filter(pk=YKHO.pk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SR0I(YKHO, QePW, SR0I):\n return SR0I if YKHO.value() is None else SR0I.filter(instrument__id=YKHO.value())", "def k66M(YKHO):\n if getattr(YKHO, 'use_this_queryset', None):\n return YKHO.use_this_queryset\n return YKHO.model().objects.all()", "def SR0I(YKHO, QePW, SR0I):\n if YKHO.value...
[ "0.7233966", "0.7232219", "0.71482134", "0.7080837", "0.6943455", "0.6900099", "0.68274784", "0.6803888", "0.67920953", "0.6754965", "0.67368996", "0.67081106", "0.6697828", "0.66588944", "0.6651975", "0.6631959", "0.6621603", "0.6604922", "0.65966076", "0.6595515", "0.658584...
0.7061662
4
Add annotations and optimizations useful for an overview over objects of this model to the given queryset. If `annotations` is given, only apply matching annotations.
def VEzj(Emd4, SR0I, *XgyP): if (L1Fj := Emd4.select_related): SR0I = SR0I.select_related(*L1Fj) if (u6Bi := Emd4.prefetch_related): SR0I = SR0I.prefetch_related(*u6Bi) if (gjuu := Emd4.get_overview_annotations()): if XgyP: gcFi = {G1Hx: Ty9i for G1Hx, Ty9i in gjuu.items(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3nu(YKHO, **XgyP):\n return B3vb(YKHO, XgyP)", "def C3nu(YKHO, **XgyP):\n xPex(XgyP)\n YKHO.annotations.update(XgyP)", "def C3nu(YKHO, *qIxc, **B2fa):\n YKHO._not_support_combined_queries('annotate')\n return YKHO._annotate(qIxc, B2fa, select=True)", "def nS13(YKHO):\n return YKHO._cos...
[ "0.65685785", "0.5866021", "0.54998356", "0.5483387", "0.5405466", "0.538402", "0.5339501", "0.5286085", "0.52613825", "0.52430934", "0.52145547", "0.5067361", "0.5067361", "0.5024573", "0.5020363", "0.49947312", "0.4994107", "0.49529073", "0.4925285", "0.485336", "0.48532107...
0.84806633
0
Return a string representation of this instance. Combines the values of the ForeignKey fields of this model.
def zAg0(YKHO) -> str: if YKHO.name_field: return str(getattr(YKHO, YKHO.name_field)) nPrm = [str(getattr(YKHO, KDZf.name)) for KDZf in FcL8(YKHO._meta.model, base=False, foreign=True, m2m=False) if not KDZf.null] if len(nPrm) < 2: return super().__str__() else: rPXJ = '{}' + ' (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO) -> str:\n VKhi = YKHO._meta\n if YKHO.name_field:\n Aofo = str(VKhi.get_field(YKHO.name_field).value_from_object(YKHO))\n else:\n NrJ9 = FcL8(VKhi.model, foreign=False, m2m=False, exclude=YKHO.exclude_from_str)\n Aofo = ' '.join([str(pOqt.value_from_object(YKHO)) for pO...
[ "0.7180453", "0.7063152", "0.66812104", "0.66250813", "0.65785676", "0.6537082", "0.65302354", "0.6496612", "0.64646924", "0.64646924", "0.64593154", "0.64593154", "0.6447051", "0.6435329", "0.6435175", "0.6420463", "0.6418382", "0.6401425", "0.63658315", "0.6351427", "0.6347...
0.7895634
0
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for d6pt in Ni9Y(0, len(vC9B), exwG): yield vC9B[d6pt:d6pt + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.0
-1
Return tuple of (width, height) of screen resolution in pixels.
def JTJg() -> tuple: tk5Y = XW6u.Tk() tk5Y.withdraw() return (tk5Y.winfo_screenwidth(), tk5Y.winfo_screenheight())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DZGr(YKHO):\n jVI8.getScreenHeight.argtypes = [ojiJ]\n jVI8.getScreenHeight.restype = aTac\n jVI8.getScreenWidth.argtypes = [ojiJ]\n jVI8.getScreenWidth.restype = aTac\n TVTK = jVI8.getScreenWidth(YKHO.obj)\n H2v2 = jVI8.getScreenHeight(YKHO.obj)\n return (TVTK, H2v2)", "def dNf0(dV8m: i...
[ "0.8203829", "0.8127261", "0.8030692", "0.801898", "0.79001886", "0.78191257", "0.77617353", "0.7523849", "0.74164426", "0.7346486", "0.7099414", "0.70678407", "0.7058346", "0.70498407", "0.70390517", "0.7010935", "0.69222224", "0.6844366", "0.6785893", "0.67808294", "0.67675...
0.84009147
0
The subpath to the template source directory.
def xHEj(YKHO) -> str: wEf2 = YKHO.get('src_subpath', 'public').strip() if len(wEf2) > 0: return wEf2 return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fdjU(YKHO):\n if YKHO.srcdir == None:\n TCZ_ = YKHO.getTmplDir()\n YKHO.srcdir = Hy7s.path.join(TCZ_, 'template', YKHO.args.tmpl)\n return YKHO.srcdir", "def vi15(YKHO):\n ckRy = [pmON for pmON, hGN5 in YKHO._templates]\n if len(ckRy) == 1:\n return Hy7s.path.dirname(ckRy[0])...
[ "0.75856274", "0.72184086", "0.72040915", "0.71801096", "0.71522135", "0.7110129", "0.7033525", "0.70139134", "0.69697696", "0.6946601", "0.6929383", "0.69238436", "0.6869233", "0.6783497", "0.67746055", "0.6746368", "0.67353374", "0.6723021", "0.67179376", "0.66053903", "0.6...
0.69886315
8
The subpath to the template source directory.
def xHEj(YKHO, wEf2: str): YKHO['src_subpath'] = wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fdjU(YKHO):\n if YKHO.srcdir == None:\n TCZ_ = YKHO.getTmplDir()\n YKHO.srcdir = Hy7s.path.join(TCZ_, 'template', YKHO.args.tmpl)\n return YKHO.srcdir", "def vi15(YKHO):\n ckRy = [pmON for pmON, hGN5 in YKHO._templates]\n if len(ckRy) == 1:\n return Hy7s.path.dirname(ckRy[0])...
[ "0.75856274", "0.72184086", "0.72040915", "0.71801096", "0.71522135", "0.7110129", "0.7033525", "0.70139134", "0.69886315", "0.69697696", "0.6946601", "0.6929383", "0.69238436", "0.6869233", "0.6783497", "0.67746055", "0.6746368", "0.67353374", "0.6723021", "0.67179376", "0.6...
0.0
-1
Returns the config of the command handler for the module by the name.
def Pgic(YKHO, mWFP: str): DCgT = YKHO.get_module_command_handler(mWFP) if DCgT is None or not hasattr(DCgT, WbBX): return None return getattr(DCgT, WbBX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aIUm(mWFP):\n return is4C[mWFP]", "def tgzD(mWFP: str):\n CAYp = GkAb(xAKo).parent.joinpath('configs').joinpath(mWFP)\n return eJmI.read_config(CAYp)", "def LFTk(YKHO, mWFP: str) -> YrBT:\n if YKHO.module is None:\n return\n TwDY = getattr(YKHO.module, mWFP, None)\n if TwDY is None...
[ "0.72854984", "0.6690883", "0.6655319", "0.6561855", "0.638901", "0.6338779", "0.6271329", "0.62536776", "0.62471986", "0.60725015", "0.6071195", "0.6058717", "0.60383934", "0.6038057", "0.60347384", "0.6027689", "0.59903604", "0.59708947", "0.5957921", "0.5918792", "0.591596...
0.81698024
0
The associated websocket if this is a websocket call (if any)
def FiMP(YKHO) -> vhzB: return YKHO._ws
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FiMP(YKHO):\n return YKHO._websocket_client.wss", "def A2Ub(YKHO) -> bool:\n return YKHO.websocket is not None", "def xXmA(YKHO):\n return YKHO._endpoint.getWebsocketAddress()", "def nDBt(YKHO):\n if not YKHO._ws:\n YKHO._ws = YKHO.new_connection()\n return YKHO._ws", "def GGmw(YK...
[ "0.7512004", "0.64862096", "0.63381284", "0.62801164", "0.6138468", "0.61241406", "0.6105022", "0.61046845", "0.60651845", "0.60328686", "0.60054106", "0.60023224", "0.5988893", "0.594512", "0.5919132", "0.58334404", "0.58285874", "0.5827377", "0.5772439", "0.5751141", "0.568...
0.69039625
1
Set the player_number of our actor, so that we can tell our MCTS which actor we are.
def bvhH(YKHO, ShR8, mc6F, ifSs, cGrS, Dp07): YKHO.series_id = mc6F YKHO.board_size = Dp07[0] b0Ix = 0.001 _mxT = [128, 128, 128] SpDU = 'Adam' cW3X = 'sigmoid' YKHO.game = zAej.HexGame('Diamond', Dp07[0], 0) YKHO.policy_network = mA7V.Policy_Network(Dp07[0], lr=b0Ix, nn_struct=_mxT, act...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LHKC(YKHO, FGW3):\n YKHO.number = FGW3", "def kTs2(YKHO, LZbL):\n YKHO.player_id = LZbL", "def IH60(YKHO, XWqO):\n YKHO.player = XWqO", "def LIR6(YKHO):\n if YKHO.__root.children is None:\n if YKHO.__root.win[0] == 1:\n YKHO.win = yELo.PLAYER_0\n elif YKHO.__root.win[...
[ "0.6179841", "0.6176695", "0.6093636", "0.6062521", "0.60140693", "0.60140693", "0.5967024", "0.59655344", "0.58397114", "0.57751215", "0.5762645", "0.5736783", "0.57279825", "0.57062703", "0.56779444", "0.56611997", "0.5584991", "0.5575513", "0.55389434", "0.5507975", "0.548...
0.0
-1
r""" Copies the modules' saved parameters back to the normal weights to allow for backpropagation
def wBIE(YKHO): vt2H = list(YKHO.net.parameters()) oHsZ = list(YKHO.saved_net.parameters()) for lOR9, JBAi in zip(vt2H, oHsZ): Tnxt = lOR9.shape XUXc = JBAi.shape lOR9 = lOR9.flatten() JBAi = JBAi.flatten() for YRbF, bGrB in enumerate(lOR9.data): lOR9.data...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S5FN(YKHO):\n for uOe2 in YKHO.optimizer.param_groups:\n for XP5J in uOe2['params']:\n G1SI = YKHO.state[XP5J]\n XP5J.data.copy_(G1SI['backup_params'])\n del G1SI['backup_params']", "def Q0Ko(YKHO) -> None:\n M1Jx = epAf.sqrt(3 / YKHO.in_features)\n YKHO.weigh...
[ "0.70343876", "0.6929818", "0.68515986", "0.676677", "0.67303187", "0.66237044", "0.66195077", "0.6590421", "0.65590507", "0.65569586", "0.6529367", "0.6514517", "0.64915", "0.6486136", "0.64430135", "0.64068586", "0.64068586", "0.64007336", "0.6388214", "0.63864124", "0.6376...
0.6727065
5
Get current authenticated user.
async def get_user(eOtH: str=JHvC(gNTt), DW23: UserRepository=JHvC()) -> mv1M: CBIr = await DW23.get(token=eOtH) if CBIr: return CBIr raise pgG1(status_code=403, detail='Invalid token')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n return YKHO.auth.store.user_model.get_by_id(fnHH['user_id'])", "def W84Y(YKHO):\n return YKHO.get_secure_cookie('user')", "def jF0d(YKHO):\n return YKHO.session_mgr.get_logged_in_user()", "def W84Y(YKHO):\n return YKHO.current_user", ...
[ "0.8571876", "0.85515493", "0.8519226", "0.8518644", "0.85126567", "0.84409165", "0.83612144", "0.82615393", "0.82615393", "0.81365633", "0.81365633", "0.81365633", "0.808582", "0.8018222", "0.8017955", "0.79994124", "0.7988795", "0.79841006", "0.79564947", "0.7919046", "0.79...
0.0
-1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, a4Fr): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.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.0
-1
Test that we can solvate CB6BUT using default settings.
def V4vM(YKHO): vDqg = oyIN.random.randint(1000, 10000) RKD7.debug('Trying {} waters with default settings...'.format(vDqg)) _uKk(tleapfile='./cb6-but/tleap.in', pdbfile='cb6-but.pdb', bufferwater=vDqg) Nf2R = H4yH.check_output(["grep -oh 'WAT' ./cb6-but/solvated.prmtop | wc -w"], shell=True) YKHO.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HXWl(YKHO, FCbF):\n YKHO.common_channel(band='40', channel='0')", "def DPQ2(YKHO):\n pass", "def DPQ2(YKHO):\n pass", "def VoII():\n GPtr = y8cn()\n assert GPtr.relay_pin is not None\n assert GPtr.relay_pin >= 1\n assert GPtr.relay_pin < 32\n assert GPtr.seconds_between_checks > 0...
[ "0.59080553", "0.59022135", "0.59022135", "0.57441473", "0.5736499", "0.5734828", "0.572405", "0.5723549", "0.5723512", "0.570715", "0.5684505", "0.5636447", "0.56213325", "0.5612155", "0.5605271", "0.5604381", "0.55830157", "0.5575312", "0.55703926", "0.5564534", "0.55503356...
0.0
-1
Test that we can solvate CB6BUT after alignment.
def M0br(YKHO): t237 = YLb3.load_file('./cb6-but/vac.pdb') mIJV(t237, ':CB6', ':BUT', save=True, filename='./cb6-but/tmp.pdb') vDqg = oyIN.random.randint(1000, 10000) RKD7.debug('Trying {} waters after alignment...'.format(vDqg)) _uKk(tleapfile='./cb6-but/tleap.in', pdbfile='tmp.pdb', bufferwater=vD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmCv(YKHO):\n MJ9a = 'AGCAGCAC'\n II6r = ['AGCAGAAC', 'TGCAGTAC', 'ACAGAGTC']\n xCC_ = 'hamming_8'\n fMBf, rI_O = oLGU(MJ9a, II6r, xCC_)\n dbJy = 'AGCAGAAC'\n Pfi9 = 0.5\n YKHO.assertEqual(fMBf, dbJy)\n YKHO.assertEqual(rI_O, Pfi9)", "def K6cy(YKHO):\n MJ9a = ''\n II6r = ['']\n ...
[ "0.6348653", "0.6057476", "0.6055911", "0.60175234", "0.59462845", "0.59276086", "0.5807655", "0.5713912", "0.5703765", "0.56379324", "0.5595034", "0.557872", "0.5567587", "0.55536944", "0.5549737", "0.5486054", "0.5478163", "0.5465785", "0.54629385", "0.54577285", "0.5439462...
0.69005454
0
Determine the time zone offset for the given timestamp, using the. time zone name set in the P4GF time zone counter. For example, with time zone 'US/Pacific' and timestamp 1371663968, the offset returned will be the string '0700'.
def cqUj(YKHO, E3oo): try: i8WE = int(E3oo) except ValueError: na1r.error('__get_timezone_offset() given non-numeric input {}'.format(E3oo)) if YKHO.__tzname is None: Mkmy = YKHO.ctx.p4.run('counter', '-u', miV1.P4GF_COUNTER_TIME_ZONE_NAME) BWXx = vejr.first_value_for_key(Mkm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mVXc(E3oo: str):\n Hgg4 = E3oo[-5]\n Ony8 = int(E3oo[-4:-2])\n pbSB = int(E3oo[-2:])\n M4NW = Ony8 * 3600 + pbSB * 60\n return qcWV.timezone(qcWV.timedelta(seconds=int(Hgg4 + str(M4NW))))", "def CHDc(rIAI):\n return NLrD.get(rIAI, {'offset': 0})['offset']", "def Y894():\n if ITS7.local...
[ "0.77218825", "0.7023838", "0.68059814", "0.66974765", "0.6428055", "0.6373265", "0.63631135", "0.6331677", "0.6208793", "0.6184792", "0.6178788", "0.6134264", "0.61226845", "0.6104191", "0.6103491", "0.60706764", "0.60646605", "0.60517627", "0.5873172", "0.5853053", "0.58061...
0.78259754
0
get human's first/last name for a user
def PZlw(YKHO, NtEF): if NtEF in YKHO.username_map: return YKHO.username_map[NtEF] oj6b = YKHO.usermap.lookup_by_p4user(NtEF) if oj6b: CBIr = JYq7.tuple_to_P4User(oj6b) else: CBIr = None jeLr = '' if CBIr: jeLr = ' '.join(CBIr.full_name.split()) YKHO.username_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sve3(YKHO, AIu6):\n YbpV, EZxl = YKHO.clean_user_names(AIu6)\n if YbpV is None and EZxl is None:\n YbpV, EZxl = YKHO.extract_name_from_email(AIu6)\n return (YbpV, EZxl)", "def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name", "def W0tD(YKHO):\n CBIr = YKHO.user\n mWFP =...
[ "0.81253433", "0.80418694", "0.80048645", "0.79458046", "0.7798828", "0.77899486", "0.7760679", "0.7752513", "0.77258176", "0.7725709", "0.77069265", "0.769502", "0.7681346", "0.76361895", "0.7592645", "0.75834364", "0.75565404", "0.7507657", "0.7503546", "0.7502552", "0.7482...
0.0
-1
Return map of LOS velocity at a given time for a given instrument resolution.
def QQL8(ITS7: u.s, Jyyj, jBhe, **B2fa): hI1s = {'cmap': Bcwd.get_cmap('bwr'), 'norm': Jw9H.SymLogNorm(10, vmin=-100000000.0, vmax=100000000.0)} hI1s.update(B2fa.get('plot_settings', {})) Pyrc, zb5M = jBhe.make_detector_array(Jyyj) oWb2 = rVDy(jBhe.total_coordinates, jBhe.observer_coordinate) omBr, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PSFa(YKHO, ITS7):\n return (YKHO.base_lat, YKHO.base_long + ITS7 * 2 * oyIN.pi * (1 + 1 / YKHO.rev_days) / PbFr)", "def Fefd(YKHO):\n return YKHO.read_register(4098, 1, 3)", "def hTvN(YKHO, ITS7):\n c6mM = YKHO.w * YKHO.r * YhSR(YKHO.w * ITS7)\n fIP3 = -YKHO.w * YKHO.r * YUNn(YKHO.w * ITS7)\n ...
[ "0.6022048", "0.5431379", "0.54237163", "0.5304054", "0.52471644", "0.5243057", "0.52149034", "0.51837087", "0.5157578", "0.5153102", "0.5153102", "0.5145083", "0.5142027", "0.5097", "0.5092783", "0.50844187", "0.5084345", "0.5067277", "0.505423", "0.50330955", "0.5032764", ...
0.6832797
0
Add a ``/`` to the end of the path part of a URL if there isn't one.
def _1lG(bD7m: str) -> str: Mkmy = KVWQ(bD7m) SQ3m = list(Mkmy) if not SQ3m[2].endswith('/'): SQ3m[2] += '/' return Hfci(SQ3m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bIoc(bD7m):\n return bD7m if bD7m.endswith('/') else bD7m + '/'", "def o4Wg(pB6H: str) -> str:\n if pB6H[-1:] != '/':\n pB6H = pB6H + '/'\n return pB6H", "def HEZ9(bD7m: str) -> str:\n return bD7m if bD7m.endswith('/') else bD7m + '/'", "def fRAO(pmON):\n if len(pmON) > 0:\n ...
[ "0.77813625", "0.7560367", "0.7476204", "0.73775727", "0.6920676", "0.6844311", "0.6628404", "0.65950286", "0.65861773", "0.65334946", "0.65045154", "0.6449289", "0.6425955", "0.639948", "0.6395555", "0.6372957", "0.6369524", "0.63251096", "0.6321981", "0.62701225", "0.626395...
0.5883198
59
Computes distance between two rectangles specified by corners.
def GHFn(o4D3, si3g, qK9Y, UdEN, ajwV, skBL, BWvo, vEcA): LFlW = BWvo < o4D3 _tIi = qK9Y < ajwV es2x = vEcA < si3g tlxW = UdEN < skBL if tlxW and LFlW: return Ayfi(o4D3, UdEN, BWvo, skBL) elif LFlW and es2x: return Ayfi(o4D3, si3g, BWvo, vEcA) elif es2x and _tIi: retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQ6v(YKHO, WKvO: int, LVAh: int) -> float:\n HjHK = YKHO._find_corners()\n kZIt = sum([Ayfi(WKvO, LVAh, jzdc, Fg_i) for jzdc, Fg_i in HjHK])\n return kZIt", "def rWHq(VRm2, elcS):\n PRgJ = UEQj(VRm2)\n return float(PRgJ - BtGh(VRm2, elcS)) / PRgJ", "def AUp_(XdvW: Asteroid, GhiN: Asteroid) -...
[ "0.664094", "0.5945949", "0.59302294", "0.5893882", "0.58615994", "0.5846764", "0.58248484", "0.581344", "0.5812294", "0.5789009", "0.57213247", "0.5711634", "0.5707684", "0.5676806", "0.5652074", "0.5632851", "0.5628602", "0.55876994", "0.55838364", "0.55692524", "0.5560981"...
0.6891776
0
Computes distance between two rectangles specified by corners. The distance metric is their x distance if they are in the same row, y distance if same col, otherwise inf.
def Uc1r(o4D3, si3g, qK9Y, UdEN, ajwV, skBL, BWvo, vEcA): def vv48(Rtnc, Qp4j, mPai, pDHM): """z1, ..., z2b, are all x coords or all y coords of a corner. Returns the distance between 1 and 2. z1 >= z1b, z2 >= z2b""" assert Rtnc >= Qp4j assert mPai >= pDHM if Rtnc >...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GHFn(o4D3, si3g, qK9Y, UdEN, ajwV, skBL, BWvo, vEcA):\n LFlW = BWvo < o4D3\n _tIi = qK9Y < ajwV\n es2x = vEcA < si3g\n tlxW = UdEN < skBL\n if tlxW and LFlW:\n return Ayfi(o4D3, UdEN, BWvo, skBL)\n elif LFlW and es2x:\n return Ayfi(o4D3, si3g, BWvo, vEcA)\n elif es2x and _tIi...
[ "0.6950202", "0.6929587", "0.63661236", "0.61704826", "0.6143578", "0.6037531", "0.60308945", "0.6001459", "0.5992535", "0.59630877", "0.5958687", "0.59574723", "0.5948512", "0.5936569", "0.5927653", "0.5916477", "0.59053206", "0.58886695", "0.5864382", "0.58641106", "0.58547...
0.6165578
4
Numerically stable cumulative product by cumulative sum in logspace
def wAQq(WKvO, tpio=-1, mFPj=False): if mFPj: u54L = WKvO.size(tpio) WKvO = ht2j.narrow(vuvg.pad(WKvO, pad=(1, 0, 0, 0), value=1.0), tpio, 0, u54L) return ht2j.cumprod(WKvO, dim=tpio)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lx_s(k0lF, urpb=False):\n Nq1b = [k0lF[0]]\n for jzdc in k0lF[1:]:\n Nq1b.append(zQwg(Nq1b[-1], jzdc))\n Iq8x = oyIN.array(Nq1b) - Nq1b[-1]\n if urpb:\n return (Iq8x, Nq1b[-1])\n else:\n return Iq8x", "def SGP0(WKvO, SGf8):\n return ht2j.exp(Frz3(ht2j.log(ht2j.clamp(WKv...
[ "0.6743707", "0.6712568", "0.6532089", "0.6394644", "0.63145477", "0.62548614", "0.6184599", "0.618202", "0.612796", "0.6088546", "0.59717244", "0.59582067", "0.5896176", "0.589534", "0.5836424", "0.5827925", "0.5808574", "0.5805297", "0.5781801", "0.5764621", "0.5764476", ...
0.5961325
11
Compute the moving sum of x over a window with the provided bounds. x is expected to be of shape (batch_size, sequence_length). The returned tensor x_max is computed as x_max[i, j] = max(x[i, j window + 1], ..., x[i, j])
def erLF(WKvO, yzQ0): WKvO = vuvg.pad(WKvO, pad=(yzQ0 - 1, 0), value=float('-inf')) WKvO = WKvO.unsqueeze(1) WKvO = vuvg.max_pool1d(WKvO, kernel_size=yzQ0, stride=1).squeeze(1) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QG4T(WKvO, W30o, KVH6):\n HJbc = vuvg.pad(WKvO, pad=(W30o, KVH6))\n HJbc = HJbc.unsqueeze(1)\n KUnM = WKvO.new_ones(1, 1, W30o + KVH6 + 1)\n qjcP = vuvg.conv1d(HJbc, KUnM)\n return qjcP.squeeze(1)", "def s9jd(EcVT, d6pt, yMhW, SFa2, gacu):\n tFMW = list()\n EZI4 = list()\n sQnl = list...
[ "0.6197078", "0.5975352", "0.585098", "0.58083296", "0.57451665", "0.5703335", "0.5696928", "0.56892365", "0.563994", "0.5614588", "0.5608574", "0.55215454", "0.54030335", "0.534649", "0.53079367", "0.53075355", "0.52992946", "0.52962106", "0.52953625", "0.5291361", "0.526493...
0.658622
0
Return all the inbound connection layer names for the layer.
def zxQ7(YKHO, gEmA): tPNd = [] for wOTP in YKHO._inbound_node_generator(gEmA): if isinstance(wOTP, dict): wOTP = wOTP.values() for qoLw in wOTP: tPNd.append(qoLw[0]) tPNd += [BWXx[0] for BWXx in qoLw[3].values() if isinstance(BWXx, list)] return tPNd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Schy(YKHO, gEmA):\n if YKHO._is_functional_model(YKHO.model):\n ThE1 = gEmA['inbound_nodes']\n return [qoLw[0] for qoLw in ThE1[0]]\n else:\n fhcK = YKHO._config['layers']\n YRbF = fhcK.index(gEmA)\n if YRbF == 0:\n return []\n else:\n retur...
[ "0.79535574", "0.74204594", "0.69721764", "0.6950132", "0.67388475", "0.6392184", "0.6206379", "0.61832464", "0.61069447", "0.6067602", "0.60085857", "0.5993531", "0.5917675", "0.5892441", "0.5862271", "0.582579", "0.5746387", "0.5727739", "0.5720989", "0.57039493", "0.569338...
0.87165093
0
Returns all the layers which are out nodes from the layer.
def BLUG(YKHO, FG8W): _gH6 = [] FqX2 = FG8W['config']['name'] for gEmA in YKHO._config['layers']: if FqX2 in YKHO._get_inbound_layer_names(gEmA): _gH6.append(gEmA) return _gH6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fhcK(YKHO):\n if not YKHO.last_node:\n return []\n return nUiC.layers(YKHO.last_node)", "def qz00(YKHO):\n mC4V = []\n for TSKM in cpvk.G[YKHO].values():\n for G1Hx in TSKM.keys():\n mC4V.append(TSKM.get(G1Hx).get('edge'))\n return mC4V", "def U7KR(YKHO) -> x1iM[str]...
[ "0.709377", "0.66400844", "0.655851", "0.6493307", "0.623304", "0.6191962", "0.6187802", "0.6182203", "0.616724", "0.6079425", "0.60270447", "0.59757304", "0.59682405", "0.5951588", "0.5920442", "0.5885003", "0.5874266", "0.5851527", "0.5837367", "0.58270323", "0.58083737", ...
0.53889006
65
Check if ModelTransformer supports transformations given number of inputs and outputs at a layer.
def _p4C(YKHO, gEmA, xs0Z): ThE1 = gEmA['inbound_nodes'] if len(ThE1) > 1: return False _gH6 = YKHO._get_consuming_layers(gEmA) ZF_i = YKHO._get_output_consumers(gEmA) if len(_gH6) + len(ZF_i) > 1: if not xs0Z: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fbkZ(bVvo, _Il2, oug5=None, mrIz={}, nMM9=False, u9h_=False, AcwX='matmul'):\n oWHJ = bVvo.get('shape')\n Bp3u = _Il2.get('shape')\n eWUF = bVvo.get('dtype')\n gnPz.check_kernel_name(AcwX)\n gnPz.check_shape_rule(oWHJ)\n gnPz.check_shape_rule(Bp3u)\n gnPz.check_shape_size(oWHJ, _goQ)\n ...
[ "0.6102859", "0.5755928", "0.5755928", "0.5634628", "0.5548429", "0.554829", "0.5502053", "0.5485601", "0.5483515", "0.5340284", "0.5306273", "0.52937686", "0.52897626", "0.5257676", "0.525277", "0.5240802", "0.5185512", "0.5171018", "0.5161673", "0.51510733", "0.51271033", ...
0.57000196
3
Get the names of a layer's input layers.
def Schy(YKHO, gEmA): if YKHO._is_functional_model(YKHO.model): ThE1 = gEmA['inbound_nodes'] return [qoLw[0] for qoLw in ThE1[0]] else: fhcK = YKHO._config['layers'] YRbF = fhcK.index(gEmA) if YRbF == 0: return [] else: return [fhcK[YRbF - ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zxQ7(YKHO, gEmA):\n tPNd = []\n for wOTP in YKHO._inbound_node_generator(gEmA):\n if isinstance(wOTP, dict):\n wOTP = wOTP.values()\n for qoLw in wOTP:\n tPNd.append(qoLw[0])\n tPNd += [BWXx[0] for BWXx in qoLw[3].values() if isinstance(BWXx, list)]\n ret...
[ "0.7958569", "0.75536776", "0.7385108", "0.7346697", "0.7134956", "0.7081401", "0.70404625", "0.6999719", "0.69111854", "0.6901708", "0.6861955", "0.6841928", "0.67502224", "0.6742784", "0.6655954", "0.6628915", "0.6612524", "0.6503373", "0.6408949", "0.6401098", "0.6355295",...
0.83258146
0
Extracts the weight name by removing layer from TF variable name.
def M2i_(YKHO, mWFP): return mWFP.split('/')[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n3S6(SRYB):\n if isinstance(SRYB, str):\n return SRYB\n return None", "def aYME(YKHO, mWFP):\n mqdn = YKHO.merged_model.get_layer(mWFP)\n _mSQ = mqdn.get_weights()[0]\n return _mSQ", "def E9N2(YKHO, ROpF, XuY2):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.get_...
[ "0.65886426", "0.6024206", "0.5959093", "0.589764", "0.58954316", "0.5894907", "0.5818142", "0.5805167", "0.57902527", "0.57860255", "0.5743607", "0.57401985", "0.5736452", "0.57295346", "0.57279736", "0.57181054", "0.56707186", "0.5608376", "0.5606752", "0.56016076", "0.5590...
0.6309701
1
Sets the values of weights in a Keras layer.
def h5hh(YKHO, gEmA, y4Ox): t474 = [] for X9ER in gEmA.weights: g2sk = YKHO._weight_name(X9ER.name) if g2sk in y4Ox: t474.append((X9ER, y4Ox[g2sk])) nMvt.batch_set_value(t474)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNuA(YKHO, _mSQ):\n SqIz = []\n for gEmA in YKHO.layers:\n ThSC = len(gEmA.weights)\n PvFr = _mSQ[:ThSC]\n for yK2S, yzQ0 in zip(gEmA.weights, PvFr):\n SqIz.append((yK2S, yzQ0))\n _mSQ = _mSQ[ThSC:]\n nMvt.batch_set_value(SqIz)", "def sNuA(YKHO, yzQ0):\n YKH...
[ "0.8254819", "0.790198", "0.77381283", "0.7728647", "0.7726482", "0.7681645", "0.7670822", "0.75297874", "0.73252094", "0.73252094", "0.7306705", "0.7290871", "0.7181071", "0.71274585", "0.7112225", "0.70822555", "0.70816183", "0.7066907", "0.70620877", "0.7045611", "0.704419...
0.7493721
8
Get batch of patches from source raster
def IWA_(YKHO, zZcM, sXOF): Wc9F = [] for X7zS in sXOF.bounds.itertuples(): JyK9, LFlW = zZcM.index(X7zS[1], X7zS[2]) tlxW, _tIi = zZcM.index(X7zS[3], X7zS[4]) KnxT = B9Vf.windows.Window(LFlW, tlxW, _tIi - LFlW, JyK9 - tlxW) Wc9F.append(zZcM.read(indexes=YKHO.indexes, window=KnxT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GK1q(VXjJ, ZTDL):\n\n def KcOq(VXjJ):\n zXzD = oyIN.array(VXjJ.shape[:2])\n BdN0 = ZTDL[0] * oyIN.ceil(zXzD / ZTDL[0]).astype(int)\n LTIa = BdN0 - zXzD\n VXjJ = oyIN.pad(VXjJ, [(0, LTIa[0]), (0, LTIa[1]), (0, 0)], mode='constant')\n ohfT = ai0T(VXjJ, tuple(ZTDL)).astype(oy...
[ "0.73309374", "0.68934095", "0.6833312", "0.67783153", "0.67205703", "0.6699947", "0.65656865", "0.6563666", "0.65290356", "0.65018827", "0.6406049", "0.6403912", "0.639977", "0.6389587", "0.63741976", "0.6330082", "0.6305813", "0.6253377", "0.62508744", "0.6198837", "0.61941...
0.69629455
1
Local method to find the predecessor of the node
def ooOd(YKHO, id): Q6kx = YKHO.nodeInfo while True: mOC4 = YKHO.RemoteGetSuccessor(Q6kx.Address) if YKHO.IsInRange(id, Q6kx.HashValue, False, mOC4.HashValue, True) == False: Q6kx = YKHO.RemoteClosestPrecedingFinger(Q6kx.Address, id) else: break return Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kNzm(YKHO, Q6kx):\n if Q6kx is None:\n return None\n if Q6kx.left_child is not None:\n nvEb = Q6kx.left_child\n while nvEb.right_child is not None:\n nvEb = nvEb.right_child\n return nvEb\n else:\n XP5J = Q6kx.parent\n while XP5J is not None:\n ...
[ "0.85525703", "0.8060409", "0.7846785", "0.7680293", "0.7598868", "0.7543974", "0.7512033", "0.74554515", "0.7129717", "0.7125059", "0.7098016", "0.69520473", "0.6837189", "0.6822443", "0.6684301", "0.66685927", "0.66640186", "0.6638222", "0.65213186", "0.64929134", "0.649267...
0.5877609
70
Returns a generator that generates sequences in batches
def FWVE(YKHO, lpha, Ep8u, N0ky): if lpha == 'train': jQ3Z = YKHO.train_df if lpha == 'validation': jQ3Z = YKHO.validation_df while True: i0PT, Crrw = YKHO.random_sample(jQ3Z, Ep8u) VNiV = [YKHO.label_to_int[UXqs] for UXqs in Crrw] LVAh = fKLU(VNiV, YKHO.n_labels) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rxBt(nPrm, Ep8u):\n nPrm = oyIN.array(nPrm)\n for YRbF in range(0, nPrm.shape[0], Ep8u):\n yield nPrm[YRbF:YRbF + Ep8u]", "def eK5b(PmAP, Ep8u, _cFV, GSaK, wzH_):\n for Bugx in range(PmAP):\n tsWk = tuKI.randint(GSaK, wzH_)\n Q6uT = oyIN.random.binomial(1, 0.5, (tsWk, Ep8u, _cFV...
[ "0.7595446", "0.7570019", "0.72925305", "0.71779406", "0.71777004", "0.717469", "0.71338344", "0.71338344", "0.71338344", "0.71197075", "0.7108677", "0.709318", "0.7034662", "0.694488", "0.69352585", "0.6917848", "0.6913459", "0.68947846", "0.688771", "0.688563", "0.6872548",...
0.0
-1
gets shares per workspace
def TYx5(fTYT, Srby): x0hE = BFCm(Ur0q + e7WT) NCls = x0hE.workspace v_pX = 0 i0uJ = {10: 'view', 20: 'edit', 30: 'admin'} E_7K = NCls.workspaceACLs.find({'perm': {'$in': [10, 20, 30]}}, {'id': 1, 'user': 1, 'perm': 1, '_id': 0}) for AIu6 in E_7K: if AIu6['id'] in fTYT: E7L1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MR8Y():\n RZ33 = KUr9.connect(host=ZEJp, user='metrics', passwd=e7al, database='metrics')\n N1p7 = RZ33.cursor()\n xDcj = 'use ' + rIcZ\n N1p7.execute(xDcj)\n fTYT = xMlm(RZ33)\n Srby = GVHv(RZ33)\n fTYT, v_pX = TYx5(fTYT, Srby)\n IqJr = 'Narrative ID\\tOwner\\tCreation Date\\tLast Modi...
[ "0.65139437", "0.63054276", "0.61448854", "0.609831", "0.60521346", "0.60031885", "0.594751", "0.5870468", "0.5800644", "0.5797525", "0.5675161", "0.5662835", "0.5640565", "0.5639666", "0.56150806", "0.55442786", "0.54940224", "0.5486155", "0.547889", "0.54624695", "0.5438821...
0.719158
0
Returns x for a given idx.
def QRiV(YKHO, or8S): iI7L = YKHO.root / 'images' / YKHO._image_array[or8S] WKvO = hnIv.open(iI7L) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, or8S):\n return YKHO.row(or8S[0])[or8S[1]]", "def OP2O(YKHO, YRbF):\n return YKHO.__x[YRbF]", "def OP2O(YKHO, or8S):\n return YKHO.getitem(or8S)", "def OP2O(YKHO, or8S):\n assert isinstance(or8S, int)\n kUuO = YKHO._normalize_idx(or8S)\n if kUuO >= len(YKHO.data):\n ra...
[ "0.73830557", "0.72807217", "0.72095203", "0.7187324", "0.71183145", "0.69980365", "0.696129", "0.69323874", "0.68897754", "0.6885327", "0.688036", "0.6818033", "0.6816802", "0.6702032", "0.6702032", "0.66839224", "0.6668585", "0.6652264", "0.66482174", "0.66262376", "0.66262...
0.0
-1
Returns true if student is enrolled else false.
def aOHL(YKHO, GQfX): return bool(YKHO.enrolled_courses_dict.get(GQfX.get_namespace_name()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rU0F(YKHO, _D0U):\n if not YKHO.is_course_exists():\n print('Course with name - {} does not exist'.format(YKHO._course_name))\n return\n GQfX = YKHO.get_course()\n for KCHu in GQfX._students:\n if KCHu == _D0U:\n return True\n break\n return False", "def...
[ "0.8126032", "0.7564434", "0.7482116", "0.72469395", "0.69870216", "0.6880363", "0.6822904", "0.6683211", "0.6612921", "0.6477275", "0.6431483", "0.635405", "0.63100964", "0.62802535", "0.6277323", "0.6254838", "0.62295127", "0.6185011", "0.61419123", "0.60957515", "0.608499"...
0.75515515
2
Returns list of courses registered by student.
def dVWR(YKHO, sDlr): In4R = [] for GQfX in sDlr: if YKHO.is_enrolled(GQfX): In4R.append(YKHO.get_course_info(GQfX)) return In4R
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m_7d(Emd4, CBIr):\n bW1T = uagI.objects.filter(user=CBIr)\n Ybnl = bW1T.filter(type=3)\n CGJY = []\n for mS46 in Ybnl:\n if mS46.course.pk not in CGJY:\n CGJY.append(mS46.course.pk)\n return CGJY", "def tM1p(YKHO, NtEF: str, eOtH: str) -> x1iM[cuzp[str, object]]:\n if not ...
[ "0.6932861", "0.6907047", "0.6884693", "0.6869742", "0.68586296", "0.6855048", "0.65996426", "0.65471286", "0.6543456", "0.6543051", "0.6508013", "0.65009874", "0.6491006", "0.6485445", "0.6482703", "0.6446594", "0.64407617", "0.64306474", "0.6430036", "0.63964576", "0.635691...
0.5886917
50
Gets the months of the mortgage
def oy2m(YKHO): return YKHO.__months
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0eS(YKHO):\n return YKHO._months", "def SviJ(YKHO, KBgZ, PObu, QpfX):\n X_bn = [(str(exwG), str(exwG)) for exwG in range(1, 13)]\n return X_bn", "def oy2m(YKHO):\n X_bn = AlUc.get_months()\n if X_bn is not None:\n return X_bn\n FvVY = YKHO.base_query().fetch()\n ZWCE = []\n ...
[ "0.78539133", "0.7586287", "0.73032415", "0.7264079", "0.7183441", "0.7169279", "0.7112151", "0.7112151", "0.69857067", "0.6914436", "0.6905901", "0.6821646", "0.67456675", "0.6694782", "0.66866136", "0.6671499", "0.6671499", "0.6628175", "0.6591944", "0.65739965", "0.6563161...
0.8065687
0
checkpoint = torch.load(PATH) model.load_state_dict(checkpoint['modelA_state_dict'])
def MNw1(YKHO, xgXB): YKHO.actor.load_state_dict(YKHO.target_actor.state_dict()) YKHO.critic.load_state_dict(YKHO.target_critic.state_dict()) xtb4(YKHO.target_actor, YKHO.actor) xtb4(YKHO.target_critic, YKHO.critic)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nh79(YKHO, C3ST):\n print(f'load model {YKHO.save_model_path}')\n C3ST.load_state_dict(ht2j.load(YKHO.save_model_path))", "def Nh79(C3ST, gXgy):\n C3ST.load_state_dict(ht2j.load(gXgy))", "def kuXl(YKHO, pmON: str):\n aqBD = ht2j.load(pmON, map_location='cpu')\n YKHO.net_q.encoder.load_state_...
[ "0.815598", "0.80500335", "0.7925157", "0.77874094", "0.77797115", "0.77617335", "0.77617335", "0.77467966", "0.7719628", "0.76553005", "0.75652087", "0.7541595", "0.7521537", "0.7521117", "0.7514407", "0.7506065", "0.74975723", "0.74928534", "0.7478204", "0.74427867", "0.743...
0.0
-1
Aplica padding a una matriz
def dvgN(LNo8, EM67): Bm1C, scY0 = LNo8.shape Giwb = oyIN.zeros((Bm1C + EM67 * 2, scY0 + EM67 * 2)) print('Padded image zeros:') print(Giwb) Giwb[EM67:EM67 + Bm1C, EM67:EM67 + scY0] = LNo8 print('Padded image:') print(Giwb) return Giwb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WtCT(Ot1W, _0fC, ivFb):\n return -((-Ot1W - (Ot1W - 1) * (ivFb - 1)) // _0fC + 1) // 2", "def dvgN(jzdc, tpio):\n return oyIN.pad(jzdc, (0, tpio - len(jzdc)), 'constant', constant_values=0)", "def XGdJ(YKHO, WKvO, ROpF, BWXx=0):\n ChnX = ROpF[0] - WKvO.shape[0]\n wM4j = ROpF[1] - WKvO.shape[1]\...
[ "0.68298715", "0.68248665", "0.6786162", "0.6778636", "0.6759346", "0.67146754", "0.6689943", "0.6454501", "0.6439295", "0.6424021", "0.64172816", "0.6413171", "0.6407117", "0.6390251", "0.6380762", "0.634647", "0.6330269", "0.63174593", "0.63170314", "0.63123107", "0.6299436...
0.7330859
0
Iterates list to remove duplicates and return list
def dDv2(list): WKvO = 0 while WKvO < len(list): LVAh = WKvO + 1 while LVAh < len(list): if list[WKvO] == list[LVAh]: del list[LVAh] else: LVAh += 1 WKvO += 1 return list
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dDv2(qFa0):\n return list(set(qFa0))", "def uY6T(list):\n return fHNa((ZfUD for ZfUD in list))", "def uY6T(list):\n return set((ZfUD for ZfUD in list))", "def dDv2(YKHO, bCES):\n U5bT = []\n for ZfUD in bCES:\n if ZfUD not in U5bT:\n U5bT.append(ZfUD)\n eSnm = len(bCES...
[ "0.8257772", "0.8242487", "0.82050616", "0.80007696", "0.80003065", "0.79858524", "0.796079", "0.7884095", "0.7864731", "0.7848045", "0.78107095", "0.77330434", "0.76898193", "0.75909024", "0.7462247", "0.7443621", "0.74303246", "0.7417903", "0.7415495", "0.7401926", "0.73752...
0.7057619
49
Construct an MPO from a list of Qobj operators. Manybody operators are put in MPO form by exact SVD, and virtual "left" and "right" indices with bond dimension one are added between the elements of the list.
def zNtC(abFl): cRc2 = oyIN.array([]) for YRbF, CI4F in enumerate(abFl): if not len(oyIN.shape(CI4F.dims)) == 2: raise ValueError('qobj element not a ket/bra/operator') a1PO = qsQd(CI4F, trim_dummy=False) a1PO.add_dummy_index('left', -1) a1PO.add_dummy_index('right', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lMGi(abFl):\n vJb7 = zNtC(abFl)\n cRc2 = vJb7.data\n for a1PO in cRc2:\n a1PO.remove_all_dummy_indices(labels=[vJb7.physin_label])\n a1PO.replace_label(vJb7.physout_label, 'phys')\n return Ib2H.MatrixProductState(cRc2, left_label='left', right_label='right', phys_label='phys')", "de...
[ "0.62214667", "0.5949054", "0.58264136", "0.5606159", "0.5593654", "0.5584528", "0.55312747", "0.54770976", "0.5474094", "0.5378102", "0.53478754", "0.5334067", "0.5306447", "0.5279064", "0.5228326", "0.5213091", "0.51991266", "0.50929374", "0.50669366", "0.5062249", "0.49681...
0.74147075
0
Get the front item from the deque.
def uW34(YKHO) -> int: if YKHO.isEmpty(): return -1 return YKHO.arr[YKHO.front]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vYJ5(YKHO):\n if YKHO.is_empty() or YKHO.data_[YKHO.front_] == None:\n raise IndexError\n return YKHO.data_[YKHO.front_]", "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def vYJ5(YKHO):\n if YKHO.is_empty():\n raise IndexError()\n return YKHO.fro...
[ "0.8504709", "0.8491281", "0.841562", "0.8374413", "0.8284823", "0.82578164", "0.8202539", "0.7989508", "0.79789394", "0.79612917", "0.7959505", "0.79556924", "0.7929888", "0.7900811", "0.78996456", "0.78637207", "0.7849841", "0.7849841", "0.7751278", "0.77479947", "0.7728384...
0.7279614
40
Get the last item from the deque.
def Ugyj(YKHO) -> int: if YKHO.isEmpty(): return -1 return YKHO.arr[(YKHO.rear - 1 + YKHO.capacity) % YKHO.capacity]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XVAW(YKHO):\n return YKHO.deque[-1]", "def ScHw(YKHO):\n return YKHO.container[YKHO.length - 1]", "def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._trailer._prev._element", "def XVAW(OxJJ):\n Csk6 = MUE7(OxJJ, maxlen=1)\n try:\n return Cs...
[ "0.873561", "0.84392744", "0.8213561", "0.8139774", "0.7803814", "0.7800985", "0.7751803", "0.7621705", "0.7618637", "0.75757027", "0.75228494", "0.7490607", "0.74851626", "0.7431453", "0.7431453", "0.7409974", "0.73955023", "0.7393824", "0.7360437", "0.7358974", "0.7358188",...
0.0
-1
Checks whether the circular deque is full or not.
def Yykn(YKHO) -> bool: return (YKHO.rear + 1) % YKHO.capacity == YKHO.front
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.deque) == 0", "def Yykn(YKHO):\n return len(YKHO.queue) == YKHO.size", "def Yykn(YKHO):\n if len(YKHO.queue) == YKHO.maxlen:\n return True\n else:\n return False", "def lsmZ(YKHO) -> bool:\n return len(YKHO._deque) == 0", "def Yykn(YKHO) -> boo...
[ "0.7989078", "0.7895886", "0.7891434", "0.7660478", "0.75128245", "0.7484213", "0.73029816", "0.73029816", "0.72759694", "0.7268464", "0.7253773", "0.7235688", "0.72299623", "0.72299623", "0.72278905", "0.72223043", "0.7189977", "0.7189218", "0.7189218", "0.7166158", "0.71531...
0.7483096
6
show all current routes.
def TeMB(YKHO, iAwL): print(55 * '-') print(' Positioned Routes:') print(55 * '-') for LihS in iAwL: print(str(LihS))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GemB(YKHO):\n try:\n iAwL = YKHO.admin_repository.show_all_routes()\n if iAwL:\n for PsCT in iAwL:\n print('Route Id: {}'.format(PsCT[0]))\n print('Route : {}'.format(PsCT[1]))\n print('----------------------------')\n return T...
[ "0.72586024", "0.7230948", "0.7123343", "0.6808892", "0.67028224", "0.668056", "0.662038", "0.6595741", "0.65435576", "0.65434283", "0.65387565", "0.6535836", "0.64731705", "0.6469571", "0.64103067", "0.6393596", "0.6302355", "0.6238044", "0.62110084", "0.61841947", "0.617631...
0.57644075
74
show all current routes.
def vc87(YKHO): htZH = [(DCgT.regex.pattern, DCgT.handler_class) for DCgT in YKHO.handlers[0][1]] print(55 * '-') print(' Routing table (order matters) :') print(55 * '-') for LihS in htZH: print('{0:<20} {1:<30} '.format(LihS[0], str(LihS[1])))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GemB(YKHO):\n try:\n iAwL = YKHO.admin_repository.show_all_routes()\n if iAwL:\n for PsCT in iAwL:\n print('Route Id: {}'.format(PsCT[0]))\n print('Route : {}'.format(PsCT[1]))\n print('----------------------------')\n return T...
[ "0.72586024", "0.7123343", "0.6808892", "0.67028224", "0.668056", "0.662038", "0.6595741", "0.65435576", "0.65434283", "0.65387565", "0.6535836", "0.64731705", "0.6469571", "0.64103067", "0.6393596", "0.6302355", "0.6238044", "0.62110084", "0.61841947", "0.61763114", "0.61512...
0.7230948
1
Run a bidirectional LSTM with highway connections over `x`.
def XV6y(WKvO, tsWk): WozX = n2j3(WKvO, tsWk) IDBL = IPme.affine(WKvO, vPBo.lstm_dim * 4, 'w', bias_name='b') ewpR, SZFh = ZylS.split(IDBL, 2, 2) ewpR = ZylS.sigmoid(ewpR) SZFh = ZylS.tanh(SZFh) return WozX * ewpR + (1 - ewpR) * SZFh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n WKvO, YKHO.hidden = YKHO.lstm(WKvO, YKHO.hidden)\n YKHO.detach_hidden()\n WKvO = YKHO.dropout(WKvO)\n WKvO = YKHO.out(WKvO)\n return WKvO", "def KVH6(YKHO, WKvO):\n WKvO = vhpA(WKvO).unsqueeze(1)\n WKvO = YKHO.cnn(WKvO)\n Ep8u = WKvO.shape[0]\n WKvO = WKvO.view(...
[ "0.6603126", "0.6597981", "0.6437069", "0.63598657", "0.6353596", "0.6339107", "0.6302097", "0.62967634", "0.62922555", "0.6243886", "0.61967885", "0.61767125", "0.6142668", "0.6132513", "0.609587", "0.6049187", "0.60363305", "0.60302013", "0.602851", "0.60156953", "0.6007463...
0.67451996
0
Builds the `tf.estimator.EstimatorSpec` to train/eval with.
def ENtv(bySB, Crrw, Tuqy, NArs): qqqI = Tuqy == uE5J.ModeKeys.TRAIN KeL5 = YEmv(qqqI, KTQ3, bySB['premise'], bySB['hypothesis']) N77f = ZylS.nn.sparse_softmax_cross_entropy_with_logits(labels=ZylS.to_int32(Crrw), logits=KeL5) N77f = ZylS.reduce_mean(N77f) if Tuqy == uE5J.ModeKeys.TRAIN: Jel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hWjk(YKHO):\n xi1Q = {}\n if YKHO.eval_metrics is not None:\n xi1Q['eval_metrics'] = YKHO.eval_metrics\n if YKHO.host_call is not None:\n xi1Q['host_call'] = YKHO.host_call\n l91U = ITpe.create_cpu_hostcall(xi1Q)\n cKa4 = None\n if YKHO.eval_metrics is not None:\n cKa4 = ...
[ "0.7483144", "0.69653875", "0.68885684", "0.6777047", "0.6767065", "0.6717721", "0.66880214", "0.66420263", "0.6620949", "0.6564782", "0.64057344", "0.6399975", "0.63963366", "0.6376076", "0.63569033", "0.62908036", "0.62706155", "0.6219677", "0.6201526", "0.6189201", "0.6175...
0.5426357
63
Tokenize with spacy, placing service words as individual tokens.
def wr3U(YKHO, l5Ny, **B2fa): if YKHO.opt['tracker'] == 'babi6': l5Ny = WRRm(l5Ny) l5Ny = l5Ny.replace('<SILENCE>', '_SILENCE_') return [a1PO.text for a1PO in RN40.tokenizer(l5Ny)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AWKO(_dZy):\n s2mk = TKcw._spacy_tokenizer(_dZy)\n return s2mk", "def wr3U(l5Ny: str):\n WrFl = []\n A97Q = K9NE(l5Ny)\n WrFl = [eOtH.text for eOtH in A97Q]\n return WrFl", "def wr3U(yAmx):\n s2mk = Dhdw.word_tokenize(yAmx)\n return s2mk", "def wr3U(YKHO, yAmx, Iw_Z=False):\n _...
[ "0.71525794", "0.67237216", "0.6536082", "0.6464274", "0.63215363", "0.63136214", "0.62994015", "0.625333", "0.62518924", "0.6225237", "0.6198206", "0.6182261", "0.6149354", "0.6135552", "0.6125539", "0.61220944", "0.61216193", "0.6116335", "0.61108583", "0.6101484", "0.60982...
0.0
-1
Build dictionary from the list of provided tokens. Only add words contained in self.embedding_words, if not None.
def iwF4(YKHO, s2mk): for eOtH in s2mk: if YKHO.embedding_words and eOtH not in YKHO.embedding_words: continue YKHO.freq[eOtH] += 1 if eOtH not in YKHO.tok2ind: d6pt = len(YKHO.tok2ind) YKHO.tok2ind[eOtH] = d6pt YKHO.ind2tok[d6pt] = eOtH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZFlL(YKHO, RRLK):\n J1c0 = {}\n for s2mk in RRLK:\n for GIN8 in s2mk:\n if GIN8 not in YKHO._special_tokens.values() and GIN8 not in J1c0.keys():\n J1c0[GIN8] = 0\n J1c0[GIN8] += 1\n vlVJ = {G1Hx: Ty9i for G1Hx, Ty9i in sorted(J1c0.items(), key=lambda ZfUD: ...
[ "0.73061806", "0.7002274", "0.6315244", "0.6219969", "0.61121595", "0.61034936", "0.6099661", "0.60497403", "0.60243684", "0.6009772", "0.6000921", "0.5949871", "0.5887991", "0.587184", "0.586285", "0.5851658", "0.58266574", "0.5810338", "0.57823133", "0.57681745", "0.5740205...
0.70376384
1
Retorna el maximo valor de intervalo permitido en funcion de
def H8Tl(YKHO): if YKHO.num_round < 5: return 1 elif YKHO.num_round < 10: return 2 else: return 3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max(YKHO):\n return pTmx(YKHO, stat='max')", "def l5uB(YKHO, max):\n if max >= YKHO.valmax:\n if not YKHO.closedmax:\n return YKHO.val[1]\n max = YKHO.valmax\n if max <= YKHO.val[0]:\n max = YKHO.val[0]\n return YKHO._stepped_value(max)", "def bQ6z(YKHO) -> float...
[ "0.70688176", "0.6911259", "0.6859873", "0.66536784", "0.6621255", "0.65974665", "0.6580353", "0.6566932", "0.65666676", "0.651444", "0.64946896", "0.6466681", "0.64317226", "0.64267105", "0.6418696", "0.6394922", "0.6358113", "0.63576555", "0.63205403", "0.6319478", "0.63159...
0.0
-1
Loads a file as a Numpy Byte (uint8) Array.
def _g9t(Ux0P): return oyIN.fromfile(Ux0P, dtype='uint8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vmu3(Ux0P):\n try:\n with open(Ux0P, 'rb') as nUeQ:\n bytes = qw7D.array('B')\n bytes.frombytes(nUeQ.read())\n return bytes\n except FileNotFoundError:\n print(f'File not found: {Ux0P}')\n exit()", "def wKHM(qaEx):\n return oyIN.load(qaEx)", "d...
[ "0.7259066", "0.69095975", "0.65852845", "0.652208", "0.6494615", "0.6420596", "0.63468164", "0.627644", "0.6253144", "0.62431794", "0.61992043", "0.6145117", "0.60967314", "0.60532904", "0.6040249", "0.6033883", "0.6010476", "0.6003917", "0.59884894", "0.5967871", "0.5938831...
0.7577892
0
Gets token embeddings for tokens given by `input_ids` prefixed by `prefix_ids`. If not provided, `prefix_ids` is replaced with `self.prefix_ids` at every position.
def ebyy(YKHO, Pha6: torch.Tensor, Gdf0: torch.Tensor, a6Qg: Optional[torch.Tensor]) -> AzJI[ht2j.Tensor, ht2j.Tensor]: Ep8u = len(Pha6) if a6Qg is None: a6Qg = YKHO.prefix_ids zXx9 = YKHO.prefix_embedding else: zXx9 = YKHO.token_embedding.forward(a6Qg) a6Qg = a6Qg[None].to(begE)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ufAf(YKHO, Pha6, y0cW):\n LfOK = YKHO.generator_tokenizer.batch_decode(Pha6, skip_special_tokens=False)\n if isinstance(YKHO.generator_tokenizer, agvI):\n for YRbF, KCHu in enumerate(LfOK):\n if not KCHu.startswith(y0cW):\n bo34.warning('T5 prefix mismatch in {}'.format(K...
[ "0.6539803", "0.5948898", "0.5661057", "0.5661057", "0.5619583", "0.55910766", "0.55719936", "0.5559339", "0.5557459", "0.54775995", "0.54746634", "0.54484516", "0.5373518", "0.52815443", "0.52612275", "0.5258932", "0.52559406", "0.52509916", "0.52365005", "0.52196455", "0.52...
0.7882142
0
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.7448925
67
Similar to make_padded_input_tensor, but does it on the outputs without the option to reverse input
def NaOe(JzlP, ILyp, wzH_): return oyIN.array([[aTqo.y_indexed[YRbF] if YRbF < len(aTqo.y_indexed) else ILyp.index_of(TwaC) for YRbF in range(0, wzH_)] for aTqo in JzlP])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOv4(YKHO, g4y1):\n if YKHO._padding_mode == 'zero':\n LkVj = ((0, 0), YKHO._padding, (0, 0))\n o4Jx = ZylS.pad(g4y1, LkVj)\n elif YKHO._padding_mode == 'wrap':\n o4Jx = ZylS.concat([g4y1[:, -YKHO._padding[0]:, :], g4y1, g4y1[:, :YKHO._padding[1], :]], axis=1)\n elif YKHO._padding...
[ "0.72530204", "0.7243589", "0.7243589", "0.7218602", "0.72113645", "0.7173471", "0.67020684", "0.663841", "0.6534705", "0.6514708", "0.64728826", "0.64728826", "0.63910264", "0.632878", "0.6301848", "0.62262946", "0.6201561", "0.6162932", "0.6137488", "0.61104417", "0.6107769...
0.61546886
19
Similar to make_padded_input_tensor, but does it on the outputs without the option to reverse input
def ed3i(JzlP, ILyp, wzH_): return oyIN.array([[aTqo.y_indexed_inp[YRbF] if YRbF < len(aTqo.y_indexed_inp) else ILyp.index_of(TwaC) for YRbF in range(0, wzH_)] for aTqo in JzlP])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOv4(YKHO, g4y1):\n if YKHO._padding_mode == 'zero':\n LkVj = ((0, 0), YKHO._padding, (0, 0))\n o4Jx = ZylS.pad(g4y1, LkVj)\n elif YKHO._padding_mode == 'wrap':\n o4Jx = ZylS.concat([g4y1[:, -YKHO._padding[0]:, :], g4y1, g4y1[:, :YKHO._padding[1], :]], axis=1)\n elif YKHO._padding...
[ "0.72549313", "0.7243792", "0.7243792", "0.7218835", "0.72122765", "0.7174052", "0.67015636", "0.6534452", "0.65158516", "0.6473999", "0.6473999", "0.63913155", "0.6330551", "0.6303713", "0.6228892", "0.6202585", "0.6163961", "0.61568725", "0.61568725", "0.61397326", "0.61114...
0.6640104
7
Runs the encoder (input embedding layer and encoder as two separate modules) on a tensor of inputs x_tensor with inp_lens_tensor lengths. YOU DO NOT NEED TO USE THIS FUNCTION. It's merely meant to illustrate the usage of EmbeddingLayer and RNNEncoder as they're given to you, as well as show what kinds of inputs/outputs...
def o0lr(k3l6, DhtV, mKP3: EmbeddingLayer, pdy5: RNNEncoder): p6pL = mKP3.forward(k3l6) RB1_, eaAT, Z5Gv = pdy5.forward(p6pL, DhtV) ySAq = (Z5Gv[0].unsqueeze(0), Z5Gv[1].unsqueeze(0)) return (RB1_, eaAT, ySAq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q5qG(YKHO, k3l6, DhtV):\n p6pL = YKHO.input_emb.forward(k3l6)\n RB1_, eaAT, Z5Gv = YKHO.encoder(p6pL, DhtV)\n ySAq = (Z5Gv[0].unsqueeze(0), Z5Gv[1].unsqueeze(0))\n return (RB1_, eaAT, ySAq)", "def nrOS(YKHO, miyH, L9qu, p5Wv):\n for exwG, gEmA in enumerate(YKHO.layers):\n AKx5 = gEmA[0]...
[ "0.752864", "0.6831427", "0.6781641", "0.67434967", "0.6630997", "0.6623081", "0.6585142", "0.65178657", "0.64999723", "0.6480972", "0.6475214", "0.6472015", "0.64607733", "0.6455721", "0.64428383", "0.642908", "0.6392102", "0.6384745", "0.63723063", "0.63054127", "0.6217398"...
0.7410453
1
Sets the packet's unique ID as the specified value.
def W2tI(YKHO, Ilxn): YKHO.identifier = Ilxn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f6Qh(YKHO, BWXx):\n pass", "def id(YKHO, BWXx):\n YKHO._id = BWXx", "def qxeD(YKHO, BWXx):\n YKHO.unique_id = S7kj(str(BWXx)).hex", "def id(YKHO, BWXx: str):\n YKHO._id = BWXx", "def BIZK(YKHO, WKvO):\n WKvO = str(WKvO)\n if YKHO.ID != WKvO:\n YKHO.ID = WKvO", "def id(YKHO, B...
[ "0.73391616", "0.7155068", "0.7048854", "0.6988872", "0.6895797", "0.6741082", "0.6695969", "0.6587237", "0.6537794", "0.6495277", "0.64542377", "0.64374983", "0.6298493", "0.6282707", "0.62618953", "0.6252123", "0.6251011", "0.6232033", "0.61497086", "0.61202675", "0.6115953...
0.5951914
26
Gets the id of this AccountFull. Account ID. Sometimes referred to as \"Voip ID\" or \"voip_id\".
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z31E(YKHO):\n return YKHO.get('/accounts')[0]['Id']", "def Z31E(YKHO) -> str:\n return YKHO._account_id", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'accou...
[ "0.75177616", "0.7510043", "0.7494164", "0.7494164", "0.7494164", "0.7494164", "0.7494164", "0.7494164", "0.7494164", "0.7494164", "0.73569965", "0.72125113", "0.70965207", "0.70965207", "0.70965207", "0.70965207", "0.70965207", "0.70092165", "0.70092165", "0.70092165", "0.69...
0.0
-1
Sets the id of this AccountFull. Account ID. Sometimes referred to as \"Voip ID\" or \"voip_id\".
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def ekm0(YKHO, id):\n YKHO._id = id\n return YKHO.callRemote('setID', id)", "def Z31E(YKHO, Z31E):\n YKHO._accou...
[ "0.69197965", "0.6907137", "0.68705165", "0.6861742", "0.6797797", "0.66696423", "0.65901035", "0.65901035", "0.65901035", "0.65901035", "0.65901035", "0.65783966", "0.65355206", "0.65350556", "0.6532835", "0.6532835", "0.6532835", "0.6532835", "0.6532835", "0.6532835", "0.65...
0.6481037
100
Gets the name of this AccountFull. Name on the account. Readonly.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqj(YKHO):\n return YKHO.name", "def xpqj(YKHO):\n return YKHO.name", "def xpqj(YKHO):\n return YKHO.name", "def xpqj(YKHO):\n return YKHO.name", "def xpqj(YKHO):\n return YKHO.name", "def xpqj(YKHO):\n return YKHO.name", "def xpqj(YKHO):\n return YKHO.name", "def eHMM(YKHO)...
[ "0.7989224", "0.7989224", "0.7989224", "0.7989224", "0.7989224", "0.7982894", "0.7982894", "0.7870362", "0.7838378", "0.779231", "0.778696", "0.77744395", "0.77702564", "0.7742472", "0.7742472", "0.77288747", "0.77288747", "0.77108455", "0.7683587", "0.7679632", "0.7678023", ...
0.0
-1
Sets the name of this AccountFull. Name on the account. Readonly.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHMM(YKHO, eHMM):\n YKHO._full_name = eHMM", "def eHMM(YKHO, eHMM):\n YKHO._full_name = eHMM", "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ...
[ "0.7387419", "0.7387419", "0.7345867", "0.73332864", "0.73332864", "0.73332864", "0.73332864", "0.73332864", "0.73174626", "0.7313306", "0.7313306", "0.73081434", "0.72838306", "0.7264557", "0.7258013", "0.721653", "0.7191358", "0.7191358", "0.7182522", "0.7182522", "0.717280...
0.0
-1
Gets the master_account of this AccountFull. If this account is a subaccount, this property shows the master account that it belongs to. Otherwise it is NULL. Readonly. Output is an Account Summary Object.
def sBJ7(YKHO): return YKHO._master_account
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MTn1(YKHO):\n return YKHO.get_object('GetAccountSummary', {}, A79V)", "def LDIG(YKHO):\n return YKHO._master", "def LDIG(YKHO):\n return YKHO._master", "def sBJ7(YKHO, sBJ7):\n YKHO._master_account = sBJ7", "def LDIG(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'master')", ...
[ "0.61191386", "0.5715441", "0.56205124", "0.5565199", "0.5372768", "0.5334369", "0.53104615", "0.53018093", "0.53018093", "0.5236358", "0.5122607", "0.5111378", "0.5111378", "0.5105393", "0.5025174", "0.50058645", "0.4983558", "0.497866", "0.49717057", "0.49622187", "0.496221...
0.76490706
0
Sets the master_account of this AccountFull. If this account is a subaccount, this property shows the master account that it belongs to. Otherwise it is NULL. Readonly. Output is an Account Summary Object.
def sBJ7(YKHO, sBJ7): YKHO._master_account = sBJ7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sBJ7(YKHO):\n return YKHO._master_account", "def NbEv(YKHO, LDIG):\n bMU8.flowdev_setMaster(YKHO.flowdev_id(), LDIG.flowdev_id())", "async def async_set_master(YKHO, LDIG):\n YKHO._master = LDIG", "def Ip8d(YKHO, p_z1):\n YKHO._masterManager = p_z1", "async def async_set_is_master(YKHO, GBe...
[ "0.6377629", "0.60253954", "0.57807606", "0.54432863", "0.5340606", "0.5325318", "0.5231134", "0.5027194", "0.50133157", "0.48292473", "0.47346526", "0.47233143", "0.4653343", "0.46260804", "0.45900288", "0.45702145", "0.456755", "0.4564637", "0.45429322", "0.45266345", "0.45...
0.74671936
0
Gets the billing_contact of this AccountFull. Contact Object for billing purposes. See below for details.
def qGfT(YKHO): return YKHO._billing_contact
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X5Kl(YKHO):\n if YKHO.billing_phone:\n return YKHO.billing_phone\n else:\n return YKHO.contact.phone", "def q1nE(YKHO):\n if YKHO.billing_address:\n return YKHO.billing_address.address_1\n else:\n nIoN = BcTP.objects.filter(subscription=YKHO)\n KYrJ = [H4yH.addr...
[ "0.6514139", "0.6312961", "0.60894465", "0.5964028", "0.59532285", "0.592418", "0.5832944", "0.58254695", "0.58167064", "0.58167064", "0.5812328", "0.57611084", "0.57611084", "0.57495", "0.57495", "0.57495", "0.5683821", "0.5683821", "0.56430525", "0.56332636", "0.559522", ...
0.81044155
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, JEUO): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.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.0
-1
Convert and filter json compatible object to model compatible dict, also filter fields that is not allowed to be edited.
def ZpWk(YKHO, YEnM): if YEnM is None: raise wJOQ('expected data in request, was empty', what=At0M) if not isinstance(YEnM, GySg): raise wJOQ('expected data object in request', what=At0M) return {G1Hx: YKHO.cols_to_model[G1Hx](Ty9i) for G1Hx, Ty9i in YEnM.items() if G1Hx in YKHO.cols_to_mode...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d_qg(YKHO):\n nMDg = dict()\n for G1Hx, ZfUD in jKi7.iteritems(YKHO.__dict__):\n if G1Hx.startswith('_') or G1Hx == 'annotations':\n continue\n if hasattr(ZfUD, '__json__'):\n nMDg[G1Hx] = ZfUD.__json__\n else:\n nMDg[G1Hx] = PmA5(ZfUD)\n return nM...
[ "0.7309143", "0.718547", "0.70756376", "0.644619", "0.6415183", "0.64003205", "0.6335626", "0.63041055", "0.6279957", "0.621953", "0.6209961", "0.6103006", "0.5990991", "0.5989903", "0.5967135", "0.59133464", "0.5910795", "0.5892439", "0.58859164", "0.58845717", "0.5880171", ...
0.6324965
7
Set as attribute the configuration file directory, which will be used during the SED fitting.
def yk6z(YKHO, G8ri, K4Uc=True): if K4Uc: Kwmb = Hy7s.path.dirname(G8ri) if not Hy7s.path.isdir(Kwmb): Hy7s.makedirs(Kwmb) YKHO._fileout = G8ri
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rBG6(YKHO, AGPF='cfg/'):\n try:\n YKHO.__dir = Hy7s.path.join(Hy7s.getcwd(), AGPF.lstrip('/\\\\'))\n except Exception:\n xH2Y.configDir = Hy7s.path.join(Hy7s.getcwd(), AGPF.lstrip('/\\\\'))", "def aPDL(YKHO):\n with open(YKHO.config_path, 'w+') as gium:\n gium.write(Kh7v())", ...
[ "0.6903508", "0.6400414", "0.6360941", "0.6330567", "0.6275161", "0.62670714", "0.62634474", "0.6255362", "0.62052494", "0.6176368", "0.61529267", "0.61342514", "0.61308813", "0.61092764", "0.6106888", "0.6104662", "0.6065037", "0.6059609", "0.605647", "0.6039383", "0.6039178...
0.0
-1
Return the configuration file directory which will be used for the SED fitting. Options
def RxRJ(YKHO, h8AJ=True, QdZT=False): if YKHO.has_fileout(): if QdZT or (not Hy7s.path.isfile(YKHO.fileout) and h8AJ): YKHO.writeto() return YKHO.fileout
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E7or(xAU6):\n return Hy7s.path.join(GfJx(xAU6), 'config')", "def dk7I(YKHO):\n return YKHO.get_raw('config_directory')", "def PBUt(YKHO) -> GkAb:\n return YKHO._config_dir", "def fdFY(xAU6):\n return '/root/.spinnaker'", "def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)", "def PBUt():\...
[ "0.67623967", "0.66580516", "0.6577391", "0.6567267", "0.65615207", "0.65395236", "0.64207685", "0.6392607", "0.6359868", "0.6306662", "0.6293642", "0.625792", "0.6255219", "0.6244269", "0.6220655", "0.6214047", "0.6209381", "0.6185008", "0.6169837", "0.61507916", "0.6074904"...
0.0
-1
Test that a configuration file directory is set yet
def hdOL(YKHO): return YKHO.fileout is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zmu8():\n if not Hy7s.path.exists(vmiX):\n raise JbKX.BadConfiguration('Configuration folder not found.')\n if not Hy7s.path.exists(blJd):\n raise JbKX.BadConfiguration('Configuration file not found.')\n if not Hy7s.path.exists(xC66()):\n raise JbKX.BadConfiguration('Local databas...
[ "0.7753465", "0.725407", "0.72260857", "0.7130134", "0.70807195", "0.7075092", "0.70027983", "0.6937402", "0.69322777", "0.6919455", "0.6873999", "0.68321675", "0.68006307", "0.6798281", "0.67892265", "0.6771314", "0.6754025", "0.67181426", "0.6704088", "0.6663313", "0.662446...
0.0
-1
All detections exactly match their respective ground truths
def qAxj(YKHO): UfiW = dict(num_recall=10, uniq_recall=10, num_precision=10, uniq_precision=10) YKHO._run_and_validate(YKHO.true_dets, YKHO.ground_truths, UfiW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZxnK(yLaY, N6Z1, _2sc, LmxT=0.5, Zzhu=True, PJWX=True):\n BYVh = UQtd('Detection', ['image', 'bbox', 'score', 'gt_match'])\n fWxp = UQtd('GroundTruth', ['bbox', 'is_matched', 'is_ignored'])\n SVFM = [BYVh(image=OCFG.image_path, bbox=oyIN.array(Ep3R['bbox']), score=Ep3R.get('score', 0.0), gt_match=-1) ...
[ "0.7000474", "0.69553316", "0.68805325", "0.6876431", "0.6830491", "0.6619367", "0.6503127", "0.64181936", "0.63625646", "0.62995064", "0.61465216", "0.6128997", "0.6117078", "0.6051656", "0.6047645", "0.60292894", "0.59727913", "0.5972579", "0.5959089", "0.5933453", "0.59227...
0.76566756
0
Returns a string representation of a rule.
def zAg0(YKHO): return '[' + str(YKHO.quick) + '] ' + YKHO.regexp.pattern + ' --> ' + str(YKHO.handler)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{ %s }' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '[ %s ]' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '{ %s }1' % str(YKHO.__rule)", "def fJgK(eD8c=None):\n eD8c = eD8c or {}\n return 'action: %s\\nprotocol: %s\\nsource_ip_address: %s\\nsource_ip_subnet_mask:...
[ "0.81409717", "0.8025819", "0.7734218", "0.75833976", "0.7540133", "0.7539098", "0.7442867", "0.71042466", "0.70906323", "0.7083471", "0.7043963", "0.699276", "0.6928893", "0.6925948", "0.67421424", "0.67421424", "0.67421424", "0.67036843", "0.67036843", "0.66518587", "0.6607...
0.56503856
60
Constructor that specifies the line that caused a match to occur, as well as the match object returned by the 're' module.
def FIMM(YKHO, zFiD, kUBT): YKHO.line = zFiD YKHO.match = kUBT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jpDo(YKHO, kUBT):\n YKHO.line = kUBT.group(3)\n YKHO.filename = kUBT.group(2)\n YKHO.message = kUBT.group(1)\n YKHO.eoli = kUBT.group(4)\n YKHO.fix_filename()\n YKHO.fix_namespaces()\n YKHO.fix_nonerrors()\n if YKHO.filename is None or YKHO.line is None:\n return ''\n else:\n ...
[ "0.6986645", "0.6792507", "0.6763284", "0.6561272", "0.65183675", "0.6482478", "0.6385724", "0.63585615", "0.63484687", "0.6328976", "0.63213855", "0.6320055", "0.62761885", "0.62701315", "0.6251758", "0.6173255", "0.6114995", "0.60241866", "0.60121745", "0.5959163", "0.59543...
0.8687365
0
Constructor that specifies the name of the encapsulator.
def FIMM(YKHO, mWFP): YKHO.name = mWFP YKHO.rules = [] YKHO._watched_files = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, mWFP):\n YKHO.__name = mWFP\n return", "def FIMM(Ro_8, *, mWFP: pulumi.Input[str]):\n qe4Y.set(Ro_8, 'name', mWFP)", "def FIMM(YKHO, mWFP):\n YKHO._name = mWFP", "def FIMM(YKHO, mWFP):\n YKHO._name = mWFP", "def FIMM(YKHO, mWFP=None):\n YKHO._name = mWFP", "def FIMM(YKHO,...
[ "0.675478", "0.67278385", "0.6623235", "0.6623235", "0.66194266", "0.6615722", "0.661221", "0.65987533", "0.6596641", "0.6596641", "0.6596641", "0.6596641", "0.6596641", "0.6596641", "0.6596641", "0.6596641", "0.6596641", "0.6596641", "0.6596641", "0.6596641", "0.65745497", ...
0.0
-1
Get the activation based on the act string
def qUJm(u_ln): if u_ln is None: return lambda WKvO: WKvO if isinstance(u_ln, str): if u_ln == 'leaky': return U78l.LeakyReLU(0.1) elif u_ln == 'identity': return N9LY() elif u_ln == 'elu': return q9ei() elif u_ln in ['relu', 'sigmoid',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qUJm(IH42):\n u_ln = IH42.lower()\n if u_ln == 'tanh':\n return ht2j.tanh\n elif u_ln == 'relu':\n return ht2j.relu\n elif u_ln == 'selu':\n return ht2j.relu\n elif u_ln == 'sigmoid':\n return ht2j.sigmoid\n elif u_ln == 'gelu':\n return eHNT.gelu\n elif ...
[ "0.7753945", "0.76958704", "0.7671476", "0.76657397", "0.74976265", "0.7368674", "0.72764295", "0.70815176", "0.70522547", "0.7041514", "0.7021039", "0.7019781", "0.69799423", "0.6939832", "0.6936443", "0.66482556", "0.66242135", "0.6618292", "0.660491", "0.64936054", "0.6429...
0.78043425
0
Return a list of args of the `__init__` function of a class Returns list of str the list of argument names. No information about defaults is included.
def qIxc(Emd4): try: qIxc = WhLE(Emd4.__init__) except TypeError: return [] return qIxc[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zM6_(Emd4) -> x1iM[AzJI[str, AzJI, ImMB]]:\n f1lO = tq_1.signature(Emd4).parameters\n yBF0 = []\n for d7pR in f1lO:\n zewo = f1lO[d7pR].annotation\n qDcF = f1lO[d7pR].default\n try:\n muYz = tuple(zewo.__args__)\n except AttributeError:\n muYz = (zewo,...
[ "0.7642557", "0.73575205", "0.695252", "0.67744136", "0.6700589", "0.6689303", "0.66563034", "0.66367686", "0.65861225", "0.6430415", "0.6428584", "0.6419104", "0.64071065", "0.629382", "0.62801296", "0.62801296", "0.62755585", "0.62083876", "0.6198534", "0.6198534", "0.61985...
0.8002228
0
Reconstruct an object from a dictionary representaiton
def jG8h(Emd4, fK8P): if fK8P is None: fK8P = {} if hasattr(Emd4, 'args'): qIxc = Emd4.args() tdyr = {H5ew: fK8P[H5ew] for H5ew in fK8P if H5ew in qIxc} try: YEnM = Emd4(**tdyr) if Emd4._restore_non_initial_attr: UMRD = {H5ew: fK8P[H5ew] fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, Csk6):\n return Emd4(**Csk6)", "def jG8h(Emd4, YEnM):\n raise NotImplementedError", "def jG8h(Emd4, Csk6):\n return j5ti(Csk6, Emd4)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n re...
[ "0.73724455", "0.7345858", "0.7344402", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", "0.7315515", ...
0.66199476
80
Return the current name of the object. If no name has been set a default generated name is returned. Returns str the name of the object
def mWFP(YKHO): if YKHO._name == '': return YKHO.default_name else: return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO) -> str:\n return YKHO.__name", "def mWFP(YKHO):\n if YKHO._name is None:\n return YKHO.default_name\n else:\n return YKHO._name", "def mWFP(YKHO):\n return YKHO.__name if YKHO.__name else ''", "def ZUM3(YKHO):\n if YKHO.instance is not None:\n return '%s_%s'...
[ "0.8304011", "0.8281682", "0.8264517", "0.8258241", "0.8213678", "0.8188638", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0.815338", "0...
0.8186097
6
Name an unnamed object. This only renames the object if it does not yet have a name. It can be used to chain the naming onto the object creation. It should also
def hWek(YKHO, mWFP): if not YKHO.is_named and (not YKHO._name_fixed): YKHO.name = mWFP return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VgTv(YKHO, tB6k='DefaultObject'):\n YKHO.obj_name = tB6k", "def fqVZ(tB6k):\n YEnM = MiE5()\n print(f'Name of object:{YEnM.get_object_name()}')\n YEnM.set_object_name('NewObjectName')\n print(f'This is the new object name: {YEnM.get_object_name()}')", "def lFwr(YKHO, mWFP):\n F6jf = YKHO....
[ "0.687818", "0.6530012", "0.6441485", "0.6433343", "0.6329922", "0.62707305", "0.62678564", "0.6232175", "0.62075007", "0.620701", "0.6194444", "0.61667633", "0.61667633", "0.6136961", "0.61212444", "0.61200225", "0.60770977", "0.60696614", "0.6062008", "0.6061782", "0.605912...
0.6034877
22
Checks the given board and outputs the winner
def ejjD(abCz): for YRbF in range(0, 3): if abCz[YRbF][0] == abCz[YRbF][1] == abCz[YRbF][2]: if abCz[YRbF][0] != 0: return abCz[YRbF][0] elif abCz[0][YRbF] == abCz[1][YRbF] == abCz[2][YRbF]: if abCz[0][YRbF] != 0: return abCz[0][YRbF] e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHVe(iBIi):\n for YRbF in range(3):\n if iBIi[YRbF][0] and iBIi[YRbF][0] == iBIi[YRbF][1] == iBIi[YRbF][2]:\n return iBIi[YRbF][0]\n for r845 in range(3):\n if iBIi[0][r845] and iBIi[0][r845] == iBIi[1][r845] == iBIi[2][r845]:\n return iBIi[0][r845]\n if iBIi[0][0] ...
[ "0.8094012", "0.803237", "0.8030652", "0.79790246", "0.79652417", "0.7957905", "0.79527944", "0.7910215", "0.7891467", "0.7882655", "0.7882188", "0.78704005", "0.784328", "0.78418934", "0.7826353", "0.7825126", "0.781274", "0.77869415", "0.7781925", "0.7769895", "0.770633", ...
0.0
-1
(list of str) > list of str Return a new list with adjacent pairs of string elements from L concatenated together, starting with indices 0 and 1, 2 and 3,and so on.
def j6NS(aPd6): zUQX = [] YRbF = 0 while YRbF < len(aPd6): zUQX.append(aPd6[YRbF] + aPd6[YRbF + 1]) YRbF = YRbF + 2 return zUQX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VUrk(vC9B):\n if vC9B:\n try:\n if not all(NHTT(isinstance, vC9B, list)):\n from tek.errors import MooException\n raise MooException(\"Some elements aren't lists!\")\n for YRbF in _3JK([0] + list(map(len, vC9B[:-1]))):\n vC9B[YRbF:YRb...
[ "0.64031535", "0.6280419", "0.6257252", "0.6257252", "0.6257252", "0.6257252", "0.62311846", "0.6090729", "0.60836554", "0.60312283", "0.6021402", "0.6003156", "0.5972356", "0.5969489", "0.5969489", "0.5916614", "0.5860778", "0.58524144", "0.5841129", "0.58254766", "0.5754222...
0.60210323
11
Return the name of the sensor.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._sensor.name", "def _lKy(YKHO):\n return YKHO.data[1]", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'", "def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'", "def mWFP(YKHO):\n return f'{YKHO._na...
[ "0.91896784", "0.9168378", "0.890185", "0.8770976", "0.8511273", "0.8479953", "0.844435", "0.8299758", "0.8186503", "0.8105667", "0.8079737", "0.8066149", "0.8049647", "0.7700968", "0.7612295", "0.7611456", "0.7600605", "0.7600605", "0.7600605", "0.75392073", "0.75166553", ...
0.0
-1
Return the state attributes of the sensor.
def R1i3(YKHO): if YKHO.ticker is not None: return {q3V6: YKHO.ticker.values.get('volume'), PlJk: v7XK, pM2x: YKHO.ticker.values.get('high'), FPkW: YKHO.ticker.values.get('low'), OK2Y: YKHO.ticker.values.get('vwap')}
{ "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.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO) -> cuzp[str, any]:\n return YKHO._device.state_attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", ...
[ "0.8418945", "0.82497084", "0.8243777", "0.8243777", "0.8200083", "0.8169021", "0.8169021", "0.8159991", "0.8159991", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", ...
0.7764953
44