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 |
|---|---|---|---|---|---|---|
Adds an edge to the graph. | def rz7z(YKHO, FJhS: int, Yk_P: int, upAO: float) -> bool:
if YKHO.Edges[FJhS].get(Yk_P, -1) == -1:
YKHO.Edges[FJhS][Yk_P] = upAO
YKHO.Edges_In[Yk_P][FJhS] = upAO
YKHO.edgeSize += 1
YKHO.mc += 1
return True
return False
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y):\n if YKHO.has_edge(D70y) == 0:\n YKHO.__graph_dict[D70y[0]].append(D70y[1])",
"def F1KG(YKHO, D70y: Edge):\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n assert D70y not in YKHO.edges\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n zZcM = D70y.get_source... | [
"0.841144",
"0.83919084",
"0.8347221",
"0.8330175",
"0.82800245",
"0.8196861",
"0.81965816",
"0.81554943",
"0.806904",
"0.7990693",
"0.79418606",
"0.79395586",
"0.79385245",
"0.7935002",
"0.7914147",
"0.7814346",
"0.77845144",
"0.7768525",
"0.7742754",
"0.7682856",
"0.7616938... | 0.0 | -1 |
Reads a YAML file. Examples | def xRMc(Rci7, FDvF=None):
try:
if ZbWC.search('^https?://', Rci7):
with uRlK.request.urlopen(Rci7) as eHNT:
return eJb6.load(eHNT, Loader=eJb6.SafeLoader)
else:
with open(Rci7) as eHNT:
return eJb6.load(eHNT, Loader=eJb6.SafeLoader)
except... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xRMc(nUeQ):\n with open(nUeQ, mode='r') as wOb_:\n yvT9 = eJb6.load(wOb_)\n return yvT9",
"def xRMc(SFUd):\n with open(SFUd) as eHNT:\n cwkY = eJb6.load(eHNT, Loader=eJb6.FullLoader)\n return cwkY",
"def M2Ye(SGPW):\n with open(SGPW, 'r') as ak10:\n w97_ = eJb6.safe_load... | [
"0.7368391",
"0.7336687",
"0.72869647",
"0.7233259",
"0.721641",
"0.71738344",
"0.7150293",
"0.7141619",
"0.7124852",
"0.7083603",
"0.7008239",
"0.7002558",
"0.6988494",
"0.69804615",
"0.69646275",
"0.69440055",
"0.69250774",
"0.692094",
"0.68819803",
"0.68428636",
"0.6839737... | 0.61964697 | 100 |
Examples >>> process_requirements(None) [] >>> process_requirements(["foo"]) ['foo'] | def zg6D(fA3L, DpZH=None):
if fA3L is None:
return []
if isinstance(fA3L, list):
return fA3L
if isinstance(fA3L, dict):
FTOw = '9999.9999.9999'
if DpZH == NUDN:
DpZH = FTOw
for NqA8, cEzT in fA3L.items():
Nhl5 = map(XtCP, NqA8.split(','))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnMZ(fA3L):\n for qv1X in DMW7.parse(fA3L):\n yield qv1X",
"def VnMZ(f9mM):\n for qv1X in f9mM:\n qv1X = qv1X.strip()\n if '\\n' in qv1X:\n for xTL7 in VnMZ(qv1X.split('\\n')):\n yield xTL7\n else:\n Aofo = f4IT(qv1X)\n if Aofo... | [
"0.6594176",
"0.6511795",
"0.6047884",
"0.5982591",
"0.5940681",
"0.5888991",
"0.5874352",
"0.5842278",
"0.5830393",
"0.5804191",
"0.579634",
"0.5791352",
"0.578967",
"0.5757648",
"0.5751132",
"0.57439536",
"0.5738021",
"0.57328737",
"0.5731723",
"0.5726487",
"0.5722624",
"... | 0.7094473 | 0 |
Close this client resource. | def DDI8(YKHO):
raise NotImplementedError(u'%s: Method not implemented', YKHO.__class__.__name__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n if YKHO.client:\n YKHO.client.connection.close()\n YKHO.client = None",
"async def close(YKHO) -> None:\n if YKHO._client:\n await YKHO._client.__aexit__()",
"def DDI8(YKHO):\n YKHO._client.close()\n YKHO._transport.close()",
"def DDI8(YKHO):\n YKHO.shutd... | [
"0.7978371",
"0.79245055",
"0.78381556",
"0.78232247",
"0.7772043",
"0.7708881",
"0.7535372",
"0.743786",
"0.7378729",
"0.7300469",
"0.7250622",
"0.7215064",
"0.717303",
"0.71642464",
"0.7138131",
"0.707966",
"0.707966",
"0.7060232",
"0.7042651",
"0.7042651",
"0.70019954",
... | 0.0 | -1 |
Configures client to use api_key authentication. The api_key is added to every query parameter sent. | def Dma5(YKHO, KcEq, rJDA, _N6A=u'api_key'):
raise NotImplementedError(u'%s: Method not implemented', YKHO.__class__.__name__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dma5(YKHO, rJDA):\n YKHO.api_key = rJDA\n YKHO.session.auth = ('api', rJDA)",
"def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def lWLw(rJDA=None):\n wOGa = {'api_key': rJDA}\n global _default_configuration\n w6Q0 = wOGa",
"def lWLw(r... | [
"0.7638409",
"0.7305971",
"0.7305971",
"0.7115174",
"0.7086437",
"0.7035266",
"0.70325583",
"0.7020185",
"0.7014573",
"0.67969006",
"0.6651723",
"0.66265374",
"0.6572356",
"0.6543761",
"0.6512369",
"0.6511101",
"0.6499828",
"0.6495279",
"0.64864576",
"0.6483278",
"0.64710915"... | 0.6788396 | 10 |
Calls the API with request_params and waits till timeout. | def sJDd(YKHO, vYBr):
raise NotImplementedError(u'%s: Method not implemented', YKHO.__class__.__name__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sJDd(YKHO, vYBr):\n RKD7.info(u'%s %s(%r)', YKHO.request_params['method'], YKHO.request_params['url'], YKHO.request_params['params'])\n qv1X = G4JS.Request(**YKHO.request_params)\n YKHO.apply_authentication(qv1X)\n return YKHO.session.send(YKHO.session.prepare_request(qv1X), timeout=vYBr)",
"def ... | [
"0.66316235",
"0.66229224",
"0.64865553",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
"0.6471346",
... | 0.0 | -1 |
This method computes the log of the density of probability of a normal law centered. Each line corresponds to a point from points. | def JMkV(LTIa, B9EC, PFC2):
KR0Q, tpio = LTIa.shape
YKua, bGrB = B9EC.shape
qEUJ = h1YU(PFC2)
D9CC = oyIN.log(oyIN.linalg.det(qEUJ))
Vjik = oyIN.empty((KR0Q, YKua))
for G1Hx, (yGTL, _Tsw) in enumerate(zip(B9EC, qEUJ)):
LVAh = oyIN.dot(LTIa, _Tsw) - oyIN.dot(yGTL, _Tsw)
Vjik[:, G1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d_oh(YKHO, LTIa):\n ncKI = list(LTIa)\n xmUr = [oyIN.log(YKHO.density(AU8u)) for AU8u in ncKI]\n return sum(xmUr)",
"def QF3p(YKHO, EcVT) -> oyIN.ndarray:\n if not isinstance(EcVT, oyIN.ndarray):\n EcVT = oyIN.array(EcVT)\n C7Ls = 0.5 * ((EcVT - YKHO.means) / YKHO.scales) ** 2\n Nk6w... | [
"0.74238485",
"0.6979943",
"0.6968016",
"0.69620633",
"0.6939952",
"0.6937652",
"0.6908795",
"0.6783364",
"0.6781709",
"0.6737649",
"0.67370564",
"0.67283744",
"0.6724403",
"0.6700878",
"0.6690077",
"0.66355795",
"0.65738076",
"0.6539119",
"0.65346044",
"0.6517782",
"0.651775... | 0.65745527 | 16 |
Retrieves player's current score | def LOOi(YKHO, A0tR: int, LZbL: int) -> int:
with YKHO.eng.session_mgr() as cuiw:
return cuiw.query(JfyU.sum(s3Pu.score)).filter(nWJV(s3Pu.player_key == LZbL, s3Pu.game_key == A0tR)).scalar() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LOOi(YKHO):\n return YKHO._current_score",
"def hckV(YKHO, oyg0):\n if oyg0 in YKHO.player_scores:\n return YKHO.player_scores[oyg0]\n else:\n raise Exception('Player not in score list')",
"def p1kx(YKHO):\n return YKHO.client.call('GET', YKHO.name + 'score')",
"def hckV(YKHO):\... | [
"0.83930844",
"0.8121457",
"0.78798014",
"0.7770708",
"0.7770708",
"0.7770708",
"0.77555895",
"0.7664867",
"0.76373386",
"0.76373386",
"0.76373386",
"0.7590059",
"0.7522338",
"0.7479266",
"0.7478165",
"0.74462664",
"0.7418862",
"0.72637314",
"0.72512645",
"0.72470546",
"0.718... | 0.7634825 | 11 |
Create a weighted sampler using test weights. | def RIP2(Lbla, tl5x='protease_stability'):
OojN = ht2j.tensor([WKvO for WKvO in Lbla[tl5x]], dtype=ht2j.long)
bJ1L, BWz1 = oyIN.unique(Lbla[tl5x], return_counts=True)
print(bJ1L)
Au0z = [sum(BWz1) / Z9rn for Z9rn in BWz1]
print(Au0z)
_mSQ = [Au0z[tTpl] for tTpl in Lbla[tl5x]]
print(len(Lbla[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h7Xi(YKHO):\n UHFx = [0] * len(YKHO.classes)\n for ZfUD in YKHO.train_data.imgs:\n UHFx[ZfUD[1]] += 1\n dG22 = [0.0] * len(YKHO.classes)\n for YRbF in range(len(YKHO.classes)):\n dG22[YRbF] = float(sum(UHFx)) / float(UHFx[YRbF])\n _mSQ = [0] * len(YKHO.train_data.imgs)\n for or8... | [
"0.6572374",
"0.65645593",
"0.65042996",
"0.6406271",
"0.639694",
"0.62627",
"0.6234835",
"0.6230706",
"0.62216735",
"0.6136247",
"0.60779095",
"0.6056467",
"0.6025776",
"0.6014856",
"0.59842086",
"0.59823376",
"0.59790635",
"0.59682584",
"0.59508836",
"0.5927173",
"0.5897803... | 0.7523989 | 0 |
Get Configuration record. Get Configuration record. | def NMoC(YKHO, TRLE, kFeU, **B2fa):
Emd4 = B2fa.pop('cls', None)
KVtY = {404: llBy, 409: DKDz}
KVtY.update(B2fa.pop('error_map', {}))
clva = '2020-07-01-preview'
bD7m = YKHO.get.metadata['url']
wiSa = {'subscriptionId': YKHO._serialize.url('self._config.subscription_id', YKHO._config.subscriptio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD() -> PSrQ:\n return k7py('config', PnaH)",
"def tgzD(YKHO):\n if YKHO.allow_reco():\n return YKHO.chs_config()\n else:\n return YKHO.get_config_j(YKHO.id)",
"def eMhT(YKHO) -> dict:\n return YKHO.config",
"def NMoC(YKHO) -> dict:\n return PSrQ.get()",
"def tgzD(YKHO):\... | [
"0.6948001",
"0.68675506",
"0.68347746",
"0.6790804",
"0.6680103",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
"0.6636846",
... | 0.0 | -1 |
calculates the absolute distance between two tensor | def wBPb(cRc2, nMvt=nMvt):
return nMvt.abs(cRc2[0] - cRc2[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qKJ5(jzdc, Fg_i):\n return ht2j.pow(jzdc - Fg_i, 2).sum(-1)",
"def usGr(J9oU, QCf9):\n J9oU = ZylS.convert_to_tensor(J9oU)\n QCf9 = ZylS.convert_to_tensor(QCf9)\n Ayfi = ZylS.sqrt(ZylS.reduce_sum(ZylS.square(J9oU - QCf9), axis=-1))\n return Ayfi",
"def mOUS(i4Va, rUTj):\n return oyIN.lina... | [
"0.7454606",
"0.7350807",
"0.71120024",
"0.70631915",
"0.69904214",
"0.69492936",
"0.6897787",
"0.6858797",
"0.68188334",
"0.6773303",
"0.67623967",
"0.6744559",
"0.6732613",
"0.67262423",
"0.6715024",
"0.6707391",
"0.6696215",
"0.6679618",
"0.6663612",
"0.6663612",
"0.664663... | 0.7463849 | 0 |
Creates and saves a User with the given username, email and password. | def xWi2(YKHO, cOVa, D3lj, jTXt, **wdCM):
if not cOVa:
raise ValueError('The given job_num must be set')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(job_num=cOVa, email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se... | [
"0.86018157",
"0.84706366",
"0.8462776",
"0.8417308",
"0.8413365",
"0.839183",
"0.8346418",
"0.83453476",
"0.8314481",
"0.8306914",
"0.8288764",
"0.827679",
"0.8270353",
"0.82577944",
"0.8213095",
"0.81978804",
"0.8175898",
"0.81719273",
"0.8164025",
"0.8162915",
"0.8138058",... | 0.0 | -1 |
Figures out which k should be used, since it differs for prograde and retrograde modes. Returns the second order approximation. | def JZy2(r8hN, G1Hx, vexM, HrCj=0, Ei2p=0):
if vexM * r8hN < 0:
KCHu = G1Hx - 1.0
else:
KCHu = G1Hx + 1.0
HrCj = HrCj ** 2.0
WTkW = oyIN.sqrt(1.0 - HrCj)
WZIX = WTkW ** 2
mTy7 = HrCj / WZIX
p6tM = 2.0 * Ei2p
zu3G = vexM * vexM * (2.0 * KCHu + 1) ** 2 / WZIX ** 2
cbZA ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R7OK(YKHO):\n YKHO.k = -oyIN.array([YKHO.sth * YKHO.cphi, YKHO.sth * YKHO.sphi, YKHO.cth])\n return",
"def dwH0(G1Hx):\n if G1Hx % 2 == 0:\n return 1 / 2 + 1 / (2 * (G1Hx + 1))\n else:\n return 1 / 2 + 1 / (2 * G1Hx)",
"def qW91(YKHO, WKvO, G1Hx):\n YKHO._check(WKvO, G1Hx)\n ... | [
"0.6610566",
"0.65630597",
"0.6550348",
"0.65290296",
"0.63094944",
"0.6307009",
"0.6288942",
"0.6252815",
"0.6236831",
"0.62133104",
"0.62078494",
"0.61721635",
"0.6155763",
"0.6155763",
"0.6155763",
"0.6125252",
"0.61250913",
"0.6110209",
"0.6094326",
"0.6074639",
"0.606437... | 0.6095592 | 18 |
Returns the number of qubits in this circuit. | def sogq(YKHO) -> int:
return super().num_qubits | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sogq(YKHO) -> int:\n return YKHO._circuit.num_qubits",
"def sogq(YKHO) -> int:\n raise NotImplementedError()",
"def EYl5(YKHO) -> int:\n try:\n return YKHO.__experiment_metadata['num_qubits']\n except (TypeError, KeyError):\n return None",
"def Tr6b(YKHO):\n return int(oyIN.l... | [
"0.91651946",
"0.86077106",
"0.7778159",
"0.74567425",
"0.74475235",
"0.7227885",
"0.718025",
"0.71301055",
"0.70526373",
"0.70332205",
"0.7023782",
"0.702149",
"0.7011129",
"0.6982632",
"0.6969492",
"0.6920238",
"0.69108975",
"0.69093496",
"0.6832518",
"0.6818841",
"0.680609... | 0.8355639 | 2 |
Plot a white airplane | def A87c():
T_P4 = FOkO.PolyData(iPdG)
T_P4.Plot() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LoSN():\n F66w = FOkO.PolyData(OaSR)\n F66w.Plot()",
"def lVhb():\n F66w = FOkO.PolyData(OaSR)\n F66w.points /= 10\n ZMvH = FOkO.PolyData(Yh7j)\n ZMvH.RotateX(90)\n ZMvH.Translate([90, 60, 15])\n STtf = ZMvH.Copy()\n STtf.Translate([30, 0, -10])\n M_0M = FOkO.PlotClass()\n M_... | [
"0.75220877",
"0.67231596",
"0.6163475",
"0.6049206",
"0.60037285",
"0.5991692",
"0.5905354",
"0.5898456",
"0.5872719",
"0.58012325",
"0.57644194",
"0.57280743",
"0.5692424",
"0.5669899",
"0.5657078",
"0.56543756",
"0.5651566",
"0.5638888",
"0.5595325",
"0.55572385",
"0.55511... | 0.0 | -1 |
Plot a white airplane | def LoSN():
F66w = FOkO.PolyData(OaSR)
F66w.Plot() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lVhb():\n F66w = FOkO.PolyData(OaSR)\n F66w.points /= 10\n ZMvH = FOkO.PolyData(Yh7j)\n ZMvH.RotateX(90)\n ZMvH.Translate([90, 60, 15])\n STtf = ZMvH.Copy()\n STtf.Translate([30, 0, -10])\n M_0M = FOkO.PlotClass()\n M_0M.AddMesh(ZMvH, 'r')\n M_0M.AddMesh(STtf, 'b')\n WM9E = F66... | [
"0.6723627",
"0.61646223",
"0.6048717",
"0.6004093",
"0.59917575",
"0.59036696",
"0.5898317",
"0.5873797",
"0.5800849",
"0.57643867",
"0.572756",
"0.56935495",
"0.5669727",
"0.5656969",
"0.5654315",
"0.5651694",
"0.5640442",
"0.5596311",
"0.5556367",
"0.55522776",
"0.5546163"... | 0.75223255 | 0 |
function to display the landing page with all recipes | def d6pt():
return TvZl('index.html', recipes=qm8v.db.recipes.find()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gLcY():\n return TvZl('landing.html')",
"def XZAG():\n if not Oa1e.user:\n Dwep('Please login to view.', 'warning')\n return vKnz('/login')\n nPrm = v9Wm(QePW)\n AHLC = nPrm['results']\n print(AHLC)\n return TvZl('recipes/show.html', recipes=AHLC)",
"def d6pt():\n AHLC = ... | [
"0.7314686",
"0.7266865",
"0.69650185",
"0.6716088",
"0.66692865",
"0.66657776",
"0.6661303",
"0.6563301",
"0.65298384",
"0.64973503",
"0.6489821",
"0.64700973",
"0.6461229",
"0.6445384",
"0.64428",
"0.6440049",
"0.64274627",
"0.6423696",
"0.64151746",
"0.64131016",
"0.639158... | 0.6851238 | 3 |
function to display the about page | def vsuQ():
return TvZl('about.html', title='About') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='Your application description page.')",
"def v... | [
"0.8369054",
"0.82862175",
"0.8284642",
"0.822984",
"0.82120216",
"0.8180665",
"0.81556284",
"0.8141926",
"0.8141926",
"0.8141926",
"0.8141926",
"0.8141926",
"0.8141926",
"0.8141926",
"0.8141926",
"0.8141926",
"0.8141926",
"0.8141926",
"0.8141926",
"0.8141926",
"0.8132594",
... | 0.80852807 | 24 |
Calculate the number of days between two dates | def qfAF(YKHO, AjzU, _sQW):
YKHO.is_not_used()
try:
AjzU = YKHO.format_date(AjzU)
_sQW = YKHO.format_date(_sQW)
AjzU = qcWV.strptime(AjzU, '%Y-%m-%d')
_sQW = qcWV.strptime(_sQW, '%Y-%m-%d')
return abs((_sQW - AjzU).days)
except Exception as e:
YKHO.error(str(t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Klka(yKcO: date, Os4s: date) -> int:\n RA_F = Os4s - yKcO\n return RA_F.days + 1",
"def Fb4y(Ilc0, w0do):\n return abs(w0do - Ilc0).days",
"def epma(KhBf, kepv):\n return (g6xZ(KhBf) - g6xZ(kepv)).days",
"def rEnP(YKHO, ljfJ, hg96):\n dDFw = '%Y-%m-%d %H:%M:%S'\n csqD = qcWV.strptime(lj... | [
"0.8316377",
"0.8256349",
"0.81084895",
"0.8027462",
"0.7934948",
"0.7928577",
"0.7913538",
"0.78716224",
"0.78364664",
"0.7715086",
"0.763351",
"0.76085633",
"0.76033497",
"0.75717187",
"0.7535571",
"0.75248504",
"0.7438112",
"0.7424266",
"0.73249054",
"0.72953665",
"0.71202... | 0.8001075 | 4 |
Decorator to redirect the user to '/' if they are not logged in | def uKii(JfyU):
@zaGL(JfyU)
def eHNT(*qIxc, **B2fa):
if Oa1e.user is None:
P4t4.logger.info('redirecting not logged in user')
return vKnz(nKyW('index'))
elif not Oa1e.user.initialized and eHNT.__name__ not in ['profile_create', 'logout']:
return vKnz(nKyW('pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKii(eHNT):\n\n @zaGL(eHNT)\n def SzLu(*qIxc, **B2fa):\n if cuiw.get('user_id') is None:\n return vKnz('/')\n return eHNT(*qIxc, **B2fa)\n return SzLu",
"def uKii(eHNT):\n\n @zaGL(eHNT)\n def SzLu(*qIxc, **B2fa):\n if cuiw.get('user_id') is None:\n re... | [
"0.7854771",
"0.7854771",
"0.7850112",
"0.779627",
"0.7691401",
"0.7687098",
"0.76462716",
"0.7545185",
"0.7447549",
"0.74179256",
"0.7402129",
"0.7394061",
"0.7394061",
"0.7394061",
"0.7394061",
"0.7394061",
"0.7394061",
"0.7394061",
"0.7394061",
"0.7394061",
"0.7394061",
... | 0.75115454 | 8 |
Check that the given user belongs to the course. Defaults to g.user. Aborts with a 403 on error. | def XxrD(GQfX, CBIr=None):
if CBIr is None:
CBIr = Oa1e.user
if isinstance(GQfX, CQpO):
S7Jr = GQfX.id
else:
S7Jr = GQfX
if CBIr.courses.filter(CQpO.id == S7Jr).count() == 0:
eTsH(403) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mpHA(YKHO, QePW, *qIxc, **B2fa):\n S7Jr = YKHO.kwargs.get('course_id')\n CBIr = YKHO.request.user\n Z_HT = getattr(CBIr, CBIr.role).id\n j4P9 = {'teacher': CQpO.objects.filter(T8ck(teachers__id=Z_HT) & T8ck(id=S7Jr)), 'student': CQpO.objects.filter(T8ck(students__id=Z_HT) & T8ck(id=S7Jr))}\n GQf... | [
"0.6755262",
"0.65608084",
"0.64302677",
"0.622072",
"0.62131727",
"0.6189878",
"0.61552185",
"0.61450666",
"0.6108422",
"0.6096303",
"0.6054943",
"0.6054943",
"0.6054943",
"0.6050466",
"0.6049754",
"0.6045199",
"0.6045199",
"0.6002668",
"0.59936094",
"0.5981631",
"0.5966834"... | 0.7448646 | 0 |
Seconds since epoch (Jan 1, 1970) | def p6zu(ZpyY):
if not ZpyY:
return 0
qtWj = qcWV.utcfromtimestamp(0)
RA_F = ZpyY - qtWj
return int(RA_F.total_seconds()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mqoM():\n wzkt = qcWV.datetime.utcnow()\n qtWj = qcWV.datetime(1970, 1, 1)\n return (wzkt - qtWj).total_seconds()",
"def qtWj():\n return ITS7.time()",
"def ixc8():\n return int(ITS7.time())",
"def IMJE(_c1T):\n g75m = _c1T - qtWj\n return g75m.days * 86400 + g75m.seconds + float(g75... | [
"0.80446315",
"0.7737984",
"0.76553446",
"0.7645437",
"0.76165485",
"0.76165485",
"0.75624394",
"0.7537382",
"0.749675",
"0.7473205",
"0.7304839",
"0.7282719",
"0.7121488",
"0.7019377",
"0.6946101",
"0.6940019",
"0.68166095",
"0.6795637",
"0.67544186",
"0.6717486",
"0.6673287... | 0.7438002 | 10 |
'timestamp' represents a halfhour segement of time in the day. It is represented as seconds since midnight. Here we return a tuple of both the timestamp and a string with the equivalent time. | def UyXs(E3oo):
ROt1 = E3oo // sTwI or 12
if ROt1 > 12:
ROt1 = ROt1 - 12
cPUE = ['AM', 'PM'][E3oo >= TRKt]
O66n = ['30', '00'][E3oo % sTwI == 0 or E3oo == 0]
YCc8 = '%s:%s%s' % (ROt1, O66n, cPUE)
return (E3oo, YCc8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ItX3():\n wzkt, KCHu = slWZ()\n return (wzkt, '%s%s%s%s' % (KCHu, str(wzkt.hour).zfill(2), str(wzkt.minute).zfill(2), str(wzkt.second).zfill(2)))",
"def netS(VwNh):\n BWXx = qcWV.fromtimestamp(VwNh)\n return BWXx.strftime('%Y-%m-%d %H:%M:%S')",
"def ItX3():\n return ITS7.strftime('%Y-%m-%d %... | [
"0.730948",
"0.68321145",
"0.6829955",
"0.67418516",
"0.67272997",
"0.6646309",
"0.6611379",
"0.66055626",
"0.65668964",
"0.65516174",
"0.65122014",
"0.65040064",
"0.64852124",
"0.6459023",
"0.64140093",
"0.6410804",
"0.6349925",
"0.6329173",
"0.6310089",
"0.6264889",
"0.6246... | 0.658689 | 8 |
Returns the value at the top without modifying the stack, raises an exception otherwise | def T7C_(YKHO):
if not YKHO.is_empty():
return YKHO.top.value
raise Exception('Cannot peek an empty Stack') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlxW(E5BI):\n if N0mo(E5BI):\n raise IndexError('Stack is empty!')\n else:\n return E5BI.top.value",
"def T7C_(YKHO):\n if not YKHO.top:\n raise AttributeError(\"Can't peek top from an empty stack\")\n return YKHO.top.value",
"def tlxW(YKHO):\n if YKHO.stack:\n re... | [
"0.8105011",
"0.7782362",
"0.77735305",
"0.7619751",
"0.7543057",
"0.7392956",
"0.739288",
"0.7330028",
"0.7320574",
"0.72987",
"0.7296294",
"0.7295798",
"0.7275108",
"0.7254495",
"0.7216521",
"0.7216521",
"0.72091967",
"0.710055",
"0.70833",
"0.6995098",
"0.6991737",
"0.69... | 0.75163215 | 5 |
Build a list of (weights, biases) tuples, one for each layer in the net. Either initialize weights with input params or randomly (using layer_sizes and scale) | def FIMM(YKHO, NArs=None, LXaY=None, NXpY=0.1, H0q3=anG5.RandomState(0)):
YKHO.layer_sizes = LXaY
if NArs is not None:
YKHO.param = NArs
else:
if LXaY is None:
raise Exception('Please provide the layer sizes')
YKHO.params = [(NXpY * H0q3.randn(r8hN, exwG), NXpY * H0q3.ran... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, maxY: list):\n YKHO.num_layers = len(maxY)\n YKHO.sizes = maxY\n YKHO.biases = [oyIN.random.randn(LVAh, 1) for LVAh in maxY[1:]]\n YKHO.weights = [oyIN.random.randn(LVAh, WKvO) for WKvO, LVAh in zip(maxY[:-1], maxY[1:])]",
"def FIMM(YKHO, maxY):\n YKHO.num_layers = len(maxY)\n YK... | [
"0.7739462",
"0.7721741",
"0.7694322",
"0.7676679",
"0.7666837",
"0.76000726",
"0.7338092",
"0.73009",
"0.72838986",
"0.72328246",
"0.72157764",
"0.71919274",
"0.70494694",
"0.7023459",
"0.69813937",
"0.6977329",
"0.6973018",
"0.69642484",
"0.69501925",
"0.6937778",
"0.692262... | 0.6513711 | 41 |
Check for any bullets that hit aliens if so get rid of bullet and alien | def rBa1(YKHO):
XIZP = a9eO.sprite.groupcollide(YKHO.bullets, YKHO.aliens, True, True)
if not YKHO.aliens:
YKHO.bullets.empty()
YKHO._create_fleet()
print(len(YKHO.bullets)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ya8t(YKHO):\n RuMF = a9eO.sprite.groupcollide(YKHO.bullets, YKHO.aliens, True, True)\n if not YKHO.aliens:\n YKHO.bullets.empty()\n YKHO._create_fleet()",
"def rBa1(YKHO):\n RuMF = a9eO.sprite.groupcollide(YKHO.bullets, YKHO.aliens, True, True)\n if RuMF:\n for SaI9 in RuMF.v... | [
"0.7020206",
"0.69135386",
"0.68622345",
"0.68548906",
"0.67957217",
"0.6764122",
"0.6757469",
"0.67430484",
"0.67208403",
"0.6707324",
"0.66767406",
"0.6608685",
"0.6583489",
"0.6531725",
"0.6531018",
"0.65078807",
"0.6502442",
"0.64450294",
"0.6421317",
"0.6417459",
"0.6412... | 0.65353674 | 13 |
!Clear the current bar and draw a new one. | def gCKv(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mESN(YKHO):\n pass",
"def fccZ(YKHO):\n YKHO._calculate_bar_width()\n print(' ' * YKHO._tw, end='\\r')",
"def CFQh(YKHO, S6Fl: BarData):\n YKHO.bg5.update_bar(S6Fl)\n YKHO.bg15.update_bar(S6Fl)",
"def CFQh(YKHO, S6Fl: BarData):\n YKHO.bg.update_bar(S6Fl)\n YKHO.bg_large.update_bar(S6... | [
"0.71008873",
"0.69752026",
"0.6874584",
"0.6826696",
"0.67903465",
"0.67863184",
"0.66715044",
"0.66269577",
"0.6533932",
"0.6520792",
"0.6445535",
"0.6334779",
"0.6204982",
"0.6183982",
"0.61211455",
"0.6096881",
"0.608486",
"0.60717064",
"0.6067525",
"0.60483867",
"0.60303... | 0.0 | -1 |
!Clear the current bar and draw a new one. | def gCKv(YKHO):
HwRy.stderr.write(YKHO._FRONT)
YKHO.draw() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mESN(YKHO):\n pass",
"def fccZ(YKHO):\n YKHO._calculate_bar_width()\n print(' ' * YKHO._tw, end='\\r')",
"def CFQh(YKHO, S6Fl: BarData):\n YKHO.bg5.update_bar(S6Fl)\n YKHO.bg15.update_bar(S6Fl)",
"def CFQh(YKHO, S6Fl: BarData):\n YKHO.bg.update_bar(S6Fl)\n YKHO.bg_large.update_bar(S6... | [
"0.71008873",
"0.69752026",
"0.6874584",
"0.6826696",
"0.67903465",
"0.67863184",
"0.66715044",
"0.66269577",
"0.6533932",
"0.6520792",
"0.6445535",
"0.6334779",
"0.6204982",
"0.6183982",
"0.61211455",
"0.6096881",
"0.608486",
"0.60717064",
"0.6067525",
"0.60483867",
"0.60303... | 0.555776 | 63 |
!Write msg to `sys.stderr`. | def Lsrz(YKHO, tO9_):
if TBCj is not None:
if tO9_.strip():
TBCj.write(tO9_)
else:
HwRy.stderr.write(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N7Dk(tO9_):\n HwRy.stderr.write(tO9_)",
"def Lsrz(YKHO, tO9_):\n HwRy.stderr.write(tO9_)",
"def Lsrz(YKHO, tO9_):\n HwRy.stderr.write(tO9_)",
"def Y2SS(tO9_):\n print(tO9_, file=HwRy.stderr)",
"def p_yA(tO9_):\n print(tO9_, file=HwRy.stderr)",
"def E4N8(tO9_):\n HwRy.stderr.write(st... | [
"0.86017793",
"0.852037",
"0.8408688",
"0.83381015",
"0.8316376",
"0.78182214",
"0.78124285",
"0.7766476",
"0.77620935",
"0.76754975",
"0.765387",
"0.765387",
"0.765387",
"0.765387",
"0.765387",
"0.765387",
"0.765387",
"0.765387",
"0.765387",
"0.765387",
"0.765387",
"0.7653... | 0.0 | -1 |
Yield successive nsized chunks from lst. | def eHxA(yv6U, exwG):
for YRbF in range(0, len(yv6U), exwG):
yield yv6U[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield... | [
"0.8307071",
"0.8193703",
"0.8190772",
"0.8190772",
"0.81899244",
"0.81263477",
"0.81215096",
"0.81215096",
"0.80769324",
"0.8052258",
"0.8052258",
"0.8052258",
"0.8052258",
"0.8052258",
"0.8003821",
"0.7870944",
"0.78455555",
"0.7828231",
"0.78274894",
"0.78142494",
"0.78016... | 0.80529666 | 17 |
Initialize the GloBI dataset. | def FIMM(YKHO, t3eI: TorchRandomHint=0, **B2fa):
super().__init__(url=rOmR, random_state=t3eI, read_csv_kwargs=dict(usecols=['sourceTaxonId', 'interactionTypeName', 'targetTaxonId']), **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN(*qIxc):\n global dataset\n __n6 = qIxc[0]",
"def FIMM(YKHO):\n YKHO.__dataset = None",
"def FIMM(YKHO, __n6):\n YKHO._dataset = __n6",
"def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6",
"def WYRD(YKHO):\n YKHO._init_dataset()\n EPL3 = YKHO.datasets['train']\n hU8i = le... | [
"0.6958595",
"0.6797498",
"0.6586611",
"0.64996773",
"0.6428963",
"0.63522077",
"0.6158004",
"0.6068557",
"0.6063687",
"0.60524863",
"0.60031086",
"0.60031086",
"0.5975034",
"0.5957728",
"0.5949429",
"0.5930178",
"0.5922474",
"0.5910568",
"0.58930105",
"0.58568275",
"0.584067... | 0.0 | -1 |
Normalize the value to the lower bound and upper bound by the max & min | def EtiY(YKHO, BWXx, IDsK, A2Fp):
k2Fn = YKHO.max - YKHO.min
RLS5 = A2Fp - IDsK
return (BWXx - YKHO.min) / k2Fn * RLS5 + IDsK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmQu(EcVT):\n EcVT = (EcVT - EcVT.min()) / (EcVT.max() - EcVT.min())\n return EcVT",
"def NkkI(WKvO, re6M, wBZN):\n return (WKvO - wBZN) / (re6M - wBZN)",
"def NkkI(T6S7):\n kpLf = ht2j.min(T6S7)\n JCoA = ht2j.max(T6S7)\n return (T6S7 - kpLf) / (JCoA - kpLf)",
"def Q7gV(nPrm, min=0, max... | [
"0.77865136",
"0.7733495",
"0.76886857",
"0.7633776",
"0.76054263",
"0.755081",
"0.7537792",
"0.74486303",
"0.7409928",
"0.7395475",
"0.73715216",
"0.7361083",
"0.73077935",
"0.72944593",
"0.72944593",
"0.72837174",
"0.7276139",
"0.7269681",
"0.7259161",
"0.72285426",
"0.7220... | 0.8829696 | 0 |
Converts a list of BeautifulSoup objects into a list of CollectionElement objects, which are designed to make the mining of data and storage in the database easier. | def PJqp(YKHO, FY5L):
g760 = []
for o2hZ in FY5L:
g760.append(NbBD(o2hZ))
return g760 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j47j(YKHO):\n g760 = []\n YKHO.scrape()\n aGJH = YKHO.get_collection_elements()\n g760 = YKHO.get_info_from_collections(aGJH)\n return YKHO.data",
"def Uj6i(YKHO):\n h3Xc = YKHO.data.find('div', id='main-content')\n return h3Xc.find_all('section', class_='sbkBrv_SingleResult')",
"def Y... | [
"0.6535009",
"0.61355644",
"0.60075057",
"0.57353747",
"0.570216",
"0.564703",
"0.564703",
"0.55713135",
"0.55592173",
"0.55510736",
"0.5485374",
"0.5363327",
"0.5353005",
"0.5302042",
"0.5295401",
"0.52930695",
"0.529198",
"0.52833676",
"0.52809525",
"0.5276436",
"0.5224194"... | 0.7772842 | 0 |
Return a list of zero or more entries of the used model. | async def get_many(YKHO, **xDcj):
return [await YKHO._expand(YEnM) for YEnM in await YKHO.db.get_many(**xDcj)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YSnU(YKHO) -> x1iM:\n FYrf = list(YKHO.meta.name)\n print(FYrf)\n return FYrf",
"def eqaJ(YKHO):\n return YKHO.__models.keys()",
"def JX04(YKHO):\n return YKHO.model.GetObjects()",
"def FYrf(YKHO):\n return YKHO.get_field('model')",
"def FYrf(YKHO):\n return YKHO.get_field('model')... | [
"0.6960155",
"0.68627894",
"0.65713096",
"0.6486108",
"0.6486108",
"0.63719445",
"0.63643956",
"0.63316506",
"0.63140285",
"0.63000065",
"0.62963927",
"0.62860054",
"0.6276113",
"0.62605846",
"0.6249391",
"0.62033594",
"0.6151635",
"0.61494064",
"0.61427474",
"0.6129314",
"0.... | 0.0 | -1 |
Deletes all matching entries of the used model. | async def delete_many(YKHO, **xDcj):
try:
for Aofo in await YKHO.db.get_many(**xDcj):
await Aofo.delete()
except yXsM:
raise OnOK(f'At least one {YKHO.db_model_name} cannot be deleted since it is actively used') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LnXF(YKHO, wOed):\n rtVo.delete_multi(wOed.query().fetch(keys_only=True))",
"def LnXF(Emd4):\n Emd4.dbm().modelclass_deleteall(Emd4)",
"def Czb5(YKHO):\n YKHO.db.execute('DELETE FROM MATCH;', ())",
"def tBIc(YKHO):\n for C3ST in _vtG:\n for YEnM in C3ST.objects.all():\n YEnM... | [
"0.79316384",
"0.747822",
"0.73304355",
"0.731096",
"0.731096",
"0.731096",
"0.7256927",
"0.71217406",
"0.71072507",
"0.70530224",
"0.704655",
"0.7021193",
"0.69556373",
"0.68680143",
"0.68509346",
"0.6788714",
"0.6711613",
"0.6699838",
"0.6674768",
"0.6674525",
"0.6674525",
... | 0.66337246 | 23 |
returns dataframe with doji candle column | def L3NH(WW0T):
jQ3Z = WW0T.copy()
wymw = abs(jQ3Z['close'] - jQ3Z['open']).median()
jQ3Z['doji'] = abs(jQ3Z['close'] - jQ3Z['open']) <= 0.05 * wymw
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L3NH(WW0T):\n jQ3Z = WW0T.copy()\n wymw = abs(jQ3Z['close'] - jQ3Z['open']).median()\n jQ3Z['doji'] = abs(jQ3Z['close'] - jQ3Z['open']) <= 0.05 * wymw\n return jQ3Z",
"def TcO7(o61b, QTq5=['Date', 'Close', 'Open', 'High', 'Low', 'Adj Close', 'Volume']):\n print('\\n\\n\\n======================... | [
"0.7065447",
"0.6178326",
"0.6167088",
"0.6163571",
"0.6136083",
"0.6031488",
"0.59001696",
"0.5836809",
"0.5827897",
"0.58204365",
"0.57954866",
"0.57765883",
"0.57706517",
"0.57485175",
"0.57079005",
"0.5699437",
"0.5693936",
"0.5690844",
"0.56764406",
"0.56718814",
"0.5669... | 0.71763915 | 0 |
p, n = planeFit(points) Given an array, points, of shape (d,...) representing points in ddimensional space, fit an ddimensional plane to the points. Return a point, p, on the plane (the pointcloud centroid), and the normal, n. | def T1w3(YKHO, LTIa):
XVq2 = LTIa
LTIa = oyIN.array(LTIa).transpose()
LTIa = oyIN.reshape(LTIa, (oyIN.shape(LTIa)[0], -1))
We7B = LTIa.mean(axis=1)
if LTIa.shape[0] > LTIa.shape[1]:
return (list(We7B), YKHO.verticalAxis())
WKvO = LTIa - We7B[:, oyIN.newaxis]
E3D9 = oyIN.dot(WKvO, WKv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T1w3(LTIa):\n import numpy as oyIN\n from numpy.linalg import svd\n LTIa = oyIN.reshape(LTIa, (oyIN.shape(LTIa)[0], -1))\n assert LTIa.shape[0] <= LTIa.shape[1], 'There are only {} points in {} dimensions.'.format(LTIa.shape[1], LTIa.shape[0])\n We7B = LTIa.mean(axis=1)\n WKvO = LTIa - We7B[:... | [
"0.7483006",
"0.7457725",
"0.74262375",
"0.73495394",
"0.7333393",
"0.69935244",
"0.67295706",
"0.67295706",
"0.6547574",
"0.6474864",
"0.6440873",
"0.6407886",
"0.63599175",
"0.6328961",
"0.62663",
"0.62663",
"0.6262328",
"0.61549735",
"0.61207235",
"0.61138093",
"0.60978335... | 0.7147933 | 5 |
Returns the number of elements in this collection. If the collection contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE | def zNig(YKHO, *qIxc):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO):\n return len(YKHO._elements)",
"def LyhY(YKHO):\n return YKHO.subset.num_elements()",
"def K7Nc(YKHO):\n return YKHO.__elements_count",
"def zNig(YKHO):\n return YKHO._collection.size()",
"def szAg(YKHO):\n if YKHO.is_finite_set:\n zNig = 0\n for set in YKHO.set... | [
"0.762323",
"0.7569818",
"0.74972486",
"0.7370406",
"0.7312372",
"0.730621",
"0.7302958",
"0.7190693",
"0.7051998",
"0.7039034",
"0.7039034",
"0.7039034",
"0.7039034",
"0.7039034",
"0.7036961",
"0.7034114",
"0.7030153",
"0.7030136",
"0.70000076",
"0.69917053",
"0.69915813",
... | 0.0 | -1 |
Convert straight monomial coefficients to chebychev coefficients. | def HX7E(X4OD):
from scipy.special import poly1d, chebyt
X4OD = poly1d(X4OD)
S7he = []
ord = X4OD.order
for P2GO in range(ord + 1):
M24N = chebyt(ord - P2GO)
S7he.append(X4OD.coeffs[0] / M24N.coeffs[0])
X4OD -= M24N * S7he[P2GO]
return S7he | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QFZM(r8hN, KCHu):\n Z9rn = oyIN.zeros(r8hN + 1)\n for r845 in range(r8hN + 1):\n Z9rn[r845] = 2 * oyIN.exp(-KCHu) * Smcs(-KCHu)\n return Z9rn",
"def FeaT(o4D3, ajwV, rNcn, si3g, skBL, Sb1k, tV6D, Mbre):\n Nq1b = xQso(o4D3, ajwV, rNcn)\n LVAh = WCIa(o4D3, ajwV, rNcn, si3g, skBL, Sb1k, tV... | [
"0.5779223",
"0.55534357",
"0.5521701",
"0.5486293",
"0.5471919",
"0.5423588",
"0.5422214",
"0.5404516",
"0.53913367",
"0.5347309",
"0.53239906",
"0.5213067",
"0.52057517",
"0.5197759",
"0.5143162",
"0.5101653",
"0.50791734",
"0.50745595",
"0.5074476",
"0.50537616",
"0.504013... | 0.5682247 | 1 |
Compute a 2D gaussian distribution at the points x, y. | def kRI_(XP5J, WKvO, LVAh):
WKvO = qw7D(WKvO, dtype=float).copy()
LVAh = qw7D(LVAh, dtype=float).copy()
XP5J = qw7D(XP5J).copy()
if len(XP5J) == 4:
XP5J = MPiJ((XP5J, [0]))
epBp = XP5J[4] + XP5J[0] / (2 * mM0K * XP5J[1] ** 2) * kLQb(-((WKvO - XP5J[2]) ** 2 + (LVAh - XP5J[3]) ** 2) / (2 * XP5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kRI_(WKvO, LVAh, k0lF, WTkW, nJ9F):\n Nk6w = k0lF * oyIN.exp(-((WKvO - nJ9F[0]) ** 2 / (2 * WTkW[0] ** 2) + (LVAh - nJ9F[1]) ** 2 / (2 * WTkW[1] ** 2)))\n return Nk6w",
"def hD3N(xqoZ, WKvO, LVAh):\n from numpy import array, abs, concatenate, exp\n WKvO = array(WKvO, dtype=float).copy()\n LVAh... | [
"0.7597244",
"0.71917886",
"0.6959933",
"0.6937362",
"0.6909312",
"0.67215645",
"0.6706854",
"0.66962326",
"0.66955197",
"0.6639664",
"0.6600054",
"0.6600054",
"0.6600054",
"0.6590154",
"0.6585759",
"0.6568661",
"0.655548",
"0.65126544",
"0.65015477",
"0.64891577",
"0.6451195... | 0.7879337 | 0 |
Return start and end indices for consecutive sequences of integervalued indices. | def VXKP(he6J):
from numpy import sort, diff, nonzero
he6J = sort(he6J)
EV1I = [he6J[0]]
JmmR = []
zUee = diff(he6J)
gZRN = nonzero(zUee > 1)[0]
for QyVM in gZRN:
EV1I.append(he6J[QyVM + 1])
JmmR.append(he6J[QyVM])
JmmR.append(he6J[-1])
return (EV1I, JmmR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wJ89(Dvh2, AA_C, u54L):\n return list(range(-Dvh2, 0)) + [0] * (AA_C - Dvh2 + 1) + list(range(1, u54L - AA_C))",
"def DFtw(_5yy, zFiD):\n _0VL = [YRbF for YRbF, HcKE in enumerate(zFiD) if HcKE == _5yy]\n yKcO = _0VL[0:-1:2]\n Os4s = [YRbF + 1 for YRbF in _0VL[1::2]]\n assert len(yKcO) == len(O... | [
"0.66182333",
"0.66015",
"0.656251",
"0.6405137",
"0.63192606",
"0.630825",
"0.6286917",
"0.6126003",
"0.61137736",
"0.61005205",
"0.6088744",
"0.60789084",
"0.60304",
"0.60260385",
"0.60140777",
"0.6013813",
"0.598106",
"0.5979989",
"0.5978599",
"0.5966376",
"0.59564704",
... | 0.0 | -1 |
Pads input matrix to size specified. | def hVLt(pKvt, mzdc, r8Rz=None):
from numpy import imag, zeros, complex128
pKvt = qw7D(pKvt, copy=True)
if len(pKvt.shape) == 0:
pKvt = pKvt.reshape((1, 1))
elif len(pKvt.shape) == 1:
pKvt = pKvt.reshape((1, len(pKvt)))
if r8Rz == None:
r8Rz = mzdc
if (imag(pKvt) ** 2).su... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AeBf(k0lF, ywwl):\n exwG, bGrB = k0lF.shape\n if exwG >= ywwl:\n return k0lF\n else:\n if KN5h(k0lF):\n HEZd = Zi12.csr_matrix((exwG, ywwl - exwG))\n es2x = Zi12.csr_matrix((ywwl - exwG, ywwl))\n UbLi = Zi12.hstack([k0lF, HEZd])\n UbLi = Zi12.v... | [
"0.68564194",
"0.6779707",
"0.64658725",
"0.63514197",
"0.6306951",
"0.62215483",
"0.6202659",
"0.6175899",
"0.5987106",
"0.5942791",
"0.5928784",
"0.59229916",
"0.5901995",
"0.5879175",
"0.58500546",
"0.58386594",
"0.58142346",
"0.57848173",
"0.5744818",
"0.5715087",
"0.5702... | 0.0 | -1 |
Filter the URL to return it in it's correct form. Removing things like hyperlink on a different section of a page | def MBEQ(YKHO, bD7m):
bD7m = bD7m.split('#')[0]
if bD7m.startswith('/wiki'):
return 'https://en.wikipedia.org' + bD7m
if 'en.wikipedia.org/wiki/' not in bD7m:
return 'https://en.wikipedia.org/wiki' + bD7m
return bD7m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QQ6h(YKHO, bD7m):\n return ''.join(bD7m.split('?')[:1])",
"def g6Kh(YKHO, bD7m):\n return YKHO.__url_scrubber(bD7m)",
"def gmoQ(YKHO, bD7m):\n pass",
"def _1lG(YKHO, bD7m):\n if YKHO.is_blacklisted(bD7m):\n return None\n P8mz = YKHO.untiny.extract(bD7m)\n if P8mz != bD7m:\n ... | [
"0.73594606",
"0.6815482",
"0.6753932",
"0.66633797",
"0.65668815",
"0.65590215",
"0.65562195",
"0.654868",
"0.6495394",
"0.6421636",
"0.62951404",
"0.62817454",
"0.627704",
"0.6256426",
"0.6249113",
"0.62464523",
"0.6240439",
"0.62250876",
"0.6224539",
"0.6224539",
"0.622453... | 0.7613516 | 0 |
Brightness of this light between 0..255. | def asva(YKHO):
return YKHO.get_value('bri') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def asva(YKHO):\n return MnOy(YKHO._brightness_pct)",
"def asva(YKHO) -> float:\n Mkmy, Oa1e, Fg_i = (YKHO.r, YKHO.g, YKHO.b)\n return PZyS(0.299 * Mkmy ** 2 + 0.587 * Oa1e ** 2 + 0.114 * Fg_i ** 2) / 255",
"def asva(YKHO):\n return YKHO._brightness",
"def asva(YKHO):\n return YKHO._brightness... | [
"0.8099711",
"0.8093499",
"0.79592705",
"0.79592705",
"0.79592705",
"0.79592705",
"0.79592705",
"0.79592705",
"0.79592705",
"0.79592705",
"0.79592705",
"0.79592705",
"0.79592705",
"0.79592705",
"0.7958437",
"0.77826744",
"0.7753005",
"0.764744",
"0.75622994",
"0.74681056",
"0... | 0.78729075 | 15 |
Extract the combinations of all contexts | def PjIK(lRr0: List[LTL]) -> AzJI[x1iM[x1iM[PEo0]], x1iM[x1iM[PEo0]]]:
jNbP: x1iM[x1iM[PEo0]] = []
'Extract the combinations of all contexts with negations'
rhAt: x1iM[x1iM[PEo0]] = []
for YRbF in range(0, len(lRr0)):
cCva = Hs6x.combinations(lRr0, YRbF + 1)
for ap9_ in cCva:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KbSg(YKHO):\n NArs = YKHO._get_configurational_params()\n NtVn = YKHO._get_builds()\n n2rL = Hs6x.product(NtVn, *NArs.values())\n qAMQ = []\n for U7YL in n2rL:\n Cc7Y = U7YL[0]\n B2fa = dict(zip(NArs.keys(), U7YL[1:]))\n Z9rn = OaeV.Context(Cc7Y, **B2fa)\n Z9rn.cwd = ... | [
"0.690896",
"0.672108",
"0.666438",
"0.6409844",
"0.6396769",
"0.6393994",
"0.62298656",
"0.6206844",
"0.607877",
"0.5991345",
"0.5944054",
"0.58736414",
"0.5868549",
"0.58453536",
"0.58220977",
"0.58156",
"0.58120614",
"0.58027965",
"0.5793993",
"0.57778937",
"0.5715825",
... | 0.6569709 | 3 |
Generate a dict to turn punctuation into a token. | def NJl7():
MM3j = {'.': '||Period||', '.': '||Period||', ',': '||Comma||', '"': '||Quotation_Mark||', ';': '||Semicolon||', '!': '||Exclamation_mark||', '?': '||Question_mark||', '(': '||Left_Parentheses||', ')': '||Right_Parentheses||', '--': '||Dash||', '\n': '||Return||'}
return MM3j | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NJl7():\n ggQl = {}\n ggQl['.'] = '||Period||'\n ggQl[','] = '||Comma||'\n ggQl['\"'] = '||Quotation_Mark||'\n ggQl[';'] = '||Semicolon||'\n ggQl['!'] = '||Exclamation_Mark||'\n ggQl['?'] = '||Question_Mark||'\n ggQl['('] = '||Left_Parentheses||'\n ggQl[')'] = '||Right_Parentheses||'... | [
"0.6736538",
"0.66179246",
"0.6473263",
"0.63673395",
"0.63541335",
"0.6195351",
"0.6170302",
"0.61027676",
"0.61009026",
"0.6056571",
"0.583608",
"0.580536",
"0.57960415",
"0.5735746",
"0.5717652",
"0.5713248",
"0.5703686",
"0.56706595",
"0.56492156",
"0.56279296",
"0.562042... | 0.6318267 | 5 |
Create TF Placeholders for input, targets, and learning rate. | def Zo7w():
g4y1 = ZylS.placeholder(ZylS.int32, [None, None], name='input')
x6A0 = ZylS.placeholder(ZylS.int32, [None, None], name='targets')
tspZ = ZylS.placeholder(ZylS.float32, name='learning_rate')
return (g4y1, x6A0, tspZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5nL(YKHO):\n with ZylS.name_scope('input_data'):\n YKHO.input_words = ZylS.placeholder(shape=(None, YKHO.look_back), dtype=ZylS.int32, name='input_tokens')\n with ZylS.name_scope('output_data'):\n YKHO.output_words = ZylS.placeholder(shape=(None, YKHO.look_back), dtype=ZylS.int32, name='ou... | [
"0.7744293",
"0.7662721",
"0.7621616",
"0.76179385",
"0.75356156",
"0.75137645",
"0.7418147",
"0.7405449",
"0.7404622",
"0.73941994",
"0.73695993",
"0.73649645",
"0.7349455",
"0.73242545",
"0.72866756",
"0.72504604",
"0.7224488",
"0.72090685",
"0.7191729",
"0.71353704",
"0.71... | 0.62401825 | 50 |
Create an RNN Cell and initialize it. | def Kqci(Ep8u, wggQ):
VmPb = ZylS.contrib.rnn.BasicLSTMCell(wggQ)
VE5t = 3
VmPb = ZylS.contrib.rnn.MultiRNNCell([VmPb for bGrB in range(VE5t)])
W9gz = VmPb.zero_state(Ep8u, ZylS.float32)
W9gz = ZylS.identity(W9gz, name='initial_state')
return (VmPb, W9gz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, bLAM, Ep8u, zi3C, I07O):\n super().__init__(name='RNNCellStateModel')\n YKHO._rnn_cell = bLAM\n YKHO._batch_size = Ep8u\n YKHO._input_size = zi3C\n YKHO._num_outputs = I07O",
"def K7Bw():\n YKHO.weightGenerate()",
"def Kqci(Ep8u, wggQ):\n iHrl = ZylS.contrib.rnn.BasicLSTMCel... | [
"0.7133991",
"0.6899508",
"0.65649766",
"0.650937",
"0.6454866",
"0.6427891",
"0.6406703",
"0.63733774",
"0.6356385",
"0.6349089",
"0.62881285",
"0.62487924",
"0.6245261",
"0.6237009",
"0.6202856",
"0.6177044",
"0.61625576",
"0.6157899",
"0.60706264",
"0.5992742",
"0.5963139"... | 0.67048925 | 2 |
Get input, initial state, final state, and probabilities tensor from | def Zur1(aNyl):
Oa1e = aNyl
ujOA = Oa1e.get_tensor_by_name('input:0')
RDw4 = Oa1e.get_tensor_by_name('initial_state:0')
QrQn = Oa1e.get_tensor_by_name('final_state:0')
TuEN = Oa1e.get_tensor_by_name('probs:0')
return (ujOA, RDw4, QrQn, TuEN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMhG(YKHO):\n K2Ug = ZylS.placeholder(ZylS.int32, [None, None], name='n_input')\n MeT8 = ZylS.placeholder(ZylS.int32, [None, None], name='t_input')\n BT6X = ZylS.placeholder(ZylS.int32, [None, None], name='n_target')\n YpOa = ZylS.placeholder(ZylS.int32, [None, None], name='t_target')\n sMyr = Z... | [
"0.69212705",
"0.66203946",
"0.6486955",
"0.6456793",
"0.64271617",
"0.642399",
"0.63323855",
"0.62982005",
"0.62882364",
"0.6263209",
"0.6244324",
"0.62275106",
"0.62267786",
"0.62062126",
"0.6135696",
"0.6115243",
"0.60874015",
"0.60845417",
"0.60647595",
"0.60595",
"0.6035... | 0.65106094 | 2 |
Return an iterable of attriubtes as (name, value) tuples. | def b8bj(YKHO, JZKU: List[str]) -> iu5r[AzJI[str, str]]:
_bHe = YKHO.build_info
for tqKV in JZKU:
try:
wEf2 = YKHO._get_attrib(tqKV, _bHe)
except Exception as e:
bo34.error(f'could not get attribute {tqKV}: {tTpl}')
raise tTpl
if YKHO.type_strict and (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkxX(YKHO):\n return [getattr(YKHO, jzdc.name) for jzdc in YKHO.__attrs_attrs__]",
"def Vs4Q(YKHO) -> AzJI[str, ImMB]:\n for hGI9, yxNu in YKHO.__dict__.items():\n yield (hGI9, yxNu)",
"def hkxX(YKHO):\n return YKHO.attrs.values()",
"def yNPn(YKHO):\n o8Kj = []\n for xC3W in YKHO.__... | [
"0.773597",
"0.74874634",
"0.73996794",
"0.732483",
"0.7140857",
"0.70480174",
"0.70255715",
"0.70011246",
"0.69714093",
"0.69371563",
"0.69167036",
"0.6914892",
"0.68991315",
"0.6860263",
"0.6832531",
"0.6829296",
"0.68281513",
"0.6810868",
"0.6810868",
"0.67561615",
"0.6742... | 0.7022214 | 7 |
Return a set key attributes as a dict where keys are ``attribs``. | def xTJC(YKHO, JZKU: Tuple[str]) -> cuzp[str, str]:
o8Kj = YKHO.get_attribs(JZKU)
o8Kj = tuple(map(lambda jzdc: (jzdc[0][1:], jzdc[1]), o8Kj))
return dict(o8Kj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h6gc(YKHO):\n qXTy = {}\n qXTy['s'] = str(YKHO.s)\n if YKHO.t != None:\n qXTy['t'] = str(YKHO.t)\n qXTy['a'] = str(YKHO.a)\n qXTy['b'] = str(YKHO.b)\n qXTy['c'] = str(YKHO.c)\n qXTy['d'] = str(YKHO.d)\n return qXTy",
"def UTui(YKHO, o8Kj):\n return {G1Hx: Ty9i for G1Hx, Ty9i... | [
"0.69908285",
"0.6880784",
"0.68653125",
"0.68219274",
"0.6713393",
"0.66827047",
"0.6642121",
"0.66261566",
"0.6611085",
"0.6572647",
"0.6572647",
"0.6572647",
"0.6528268",
"0.64147127",
"0.64089507",
"0.6403476",
"0.6386348",
"0.63189113",
"0.631076",
"0.6283674",
"0.627181... | 0.712542 | 0 |
Returns the name of the mapping. | def xpDz(Emd4):
return 'comments_comment' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DmmR(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'mapping_name')",
"def DmmR(YKHO) -> h8nf[str]:\n return YKHO.get('/TM')",
"def aKoM(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connector_mapping_name')",
"def hmna(YKHO) -> qe4Y.Output[GySg[str, str]]:\n return qe4Y.get(YK... | [
"0.81983757",
"0.7417838",
"0.7209594",
"0.7022241",
"0.68276817",
"0.6780296",
"0.67579865",
"0.6692519",
"0.6652465",
"0.6639802",
"0.66277",
"0.6615691",
"0.6607458",
"0.65981376",
"0.659248",
"0.659248",
"0.65482044",
"0.65482044",
"0.65405947",
"0.6536378",
"0.6531363",
... | 0.0 | -1 |
Loads an unprocessed color image extracted from the raw dataset. | def Ourv(pmON):
with open(pmON, 'rb') as eHNT:
VXjJ = hnIv.fromarray(mVYK(eHNT), mode='RGB')
VXjJ = ZylS.keras.preprocessing.image.img_to_array(VXjJ, dtype=int)
VXjJ = ZylS.convert_to_tensor(VXjJ)
return VXjJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DZ0a(Ux0P):\n d7Eb = cE34(Ux0P)\n return vpa3(d7Eb)",
"def DZ0a(Ux0P, qfpW=True):\n VXjJ = frG3.img_as_float(frG3.io.imread(Ux0P, as_grey=not qfpW)).astype(oyIN.float32)\n if VXjJ.ndim == 2:\n VXjJ = VXjJ[:, :, oyIN.newaxis]\n if qfpW:\n VXjJ = oyIN.tile(VXjJ, (1, 1, 3))\... | [
"0.6671882",
"0.6505075",
"0.6430076",
"0.6422551",
"0.6422551",
"0.63021415",
"0.6255431",
"0.6225158",
"0.6214892",
"0.620447",
"0.6180732",
"0.6170475",
"0.61516196",
"0.61427224",
"0.61265653",
"0.61126",
"0.60793775",
"0.6078887",
"0.6070254",
"0.6068006",
"0.60473335",
... | 0.6207074 | 9 |
Reads a PGM file from a buffer. Returns a numpy array of the appropiate size and dtype. | def Xp6P(HM3Z):
WGCl, TVTK, H2v2, rb7a = HM3Z.readline().split()
assert WGCl == b'P5'
assert rb7a == b'65535', 'Only 16-bit PGM files are supported'
TVTK, H2v2 = (int(TVTK), int(H2v2))
nPrm = oyIN.fromfile(HM3Z, dtype='<u2', count=TVTK * H2v2)
return nPrm.reshape(H2v2, TVTK).astype(oyIN.uint32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xp6P(Ux0P, abwh='>'):\n with open(Ux0P, 'rb') as eHNT:\n NRcB = eHNT.read()\n try:\n WBPg, TVTK, H2v2, uBsB = ZbWC.search(b'(^P5\\\\s(?:\\\\s*#.*[\\r\\n])*(\\\\d+)\\\\s(?:\\\\s*#.*[\\r\\n])*(\\\\d+)\\\\s(?:\\\\s*#.*[\\r\\n])*(\\\\d+)\\\\s(?:\\\\s*#.*[\\r\\n]\\\\s)*)', NRcB).groups()\n ex... | [
"0.7882815",
"0.78302854",
"0.78165174",
"0.7815141",
"0.7680888",
"0.6566936",
"0.6272488",
"0.5984253",
"0.5881808",
"0.5876467",
"0.5760798",
"0.5740723",
"0.5701374",
"0.56762946",
"0.56726205",
"0.5660868",
"0.56574863",
"0.56346875",
"0.56280553",
"0.56280553",
"0.56077... | 0.715021 | 5 |
Reads a PPM file from a buffer. Returns a numpy array of the appropiate size and dtype. | def mVYK(PO1g):
ela2, TVTK, H2v2, rb7a = PO1g.readline().split()
assert ela2 == b'P6'
assert rb7a == b'255', 'Only 8-bit PPM files are supported'
TVTK, H2v2 = (int(TVTK), int(H2v2))
nPrm = oyIN.fromfile(PO1g, dtype=oyIN.uint8, count=TVTK * H2v2 * 3)
return nPrm.reshape(H2v2, TVTK, 3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ueki(YKHO) -> oyIN.array:\n return YKHO._stream.read(YKHO._frame_size)",
"def Xp6P(Ux0P, abwh='>'):\n with open(Ux0P, 'rb') as eHNT:\n NRcB = eHNT.read()\n try:\n WBPg, TVTK, H2v2, uBsB = ZbWC.search(b'(^P5\\\\s(?:\\\\s*#.*[\\r\\n])*(\\\\d+)\\\\s(?:\\\\s*#.*[\\r\\n])*(\\\\d+)\\\\s(?:\\... | [
"0.61755115",
"0.61528605",
"0.6139092",
"0.6081763",
"0.60789406",
"0.6051144",
"0.604864",
"0.6045761",
"0.59491885",
"0.58857787",
"0.58505267",
"0.58324033",
"0.5755417",
"0.57511765",
"0.57399076",
"0.5726785",
"0.56785226",
"0.5640779",
"0.56272167",
"0.5597772",
"0.558... | 0.6603281 | 0 |
Closes the output writer object. | def EM8p(YKHO):
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO.output.close()",
"def DDI8(YKHO):\n YKHO.out_file.close()",
"def DDI8(YKHO):\n if YKHO.__writer is not None:\n YKHO.__writer.close()",
"def DDI8(YKHO):\n YKHO.file_out.close()",
"def DDI8(YKHO):\n YKHO._closed = True\n YKHO._writer.close()",
"def oS8p(PcZo)... | [
"0.7876922",
"0.76582605",
"0.76430863",
"0.76274985",
"0.74859744",
"0.73995525",
"0.73909664",
"0.7373782",
"0.72184306",
"0.7055909",
"0.7055909",
"0.70288664",
"0.6933643",
"0.67121214",
"0.6678854",
"0.6668728",
"0.6644544",
"0.6644544",
"0.6644544",
"0.66031075",
"0.655... | 0.0 | -1 |
Return the potential energy. | def M6MN(Oz1B, FBNX, M8d_):
B2N5 = Uu9S.LangevinIntegrator(293.15 * yizX, 1.0 / HJL5, 2.0 * Dcio)
a9EH = cpvk.Platform.getPlatformByName('CPU')
QpfX = cpvk.Context(Oz1B, B2N5, a9EH)
QpfX.setPeriodicBoxVectors(*M8d_ * MJYJ)
QpfX.setPositions(FBNX)
QTBn = QpfX.getState(getEnergy=True)
VYvU = Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M6MN(YKHO):\n return YKHO.momentum * YKHO.momentum / (2 * YKHO.mass)",
"def n4oz(YKHO):\n return 0.5 * (V2xB(YKHO.positions) ** 2).sum()",
"def VYvU(YKHO):\n return YKHO._energy",
"def Nndf(YKHO):\n if not hasattr(YKHO, 'energy'):\n YKHO.energy = YKHO.calcEnergy()\n return YKHO.ener... | [
"0.82961226",
"0.82369137",
"0.81954014",
"0.81777704",
"0.8151151",
"0.8098764",
"0.8058423",
"0.78822935",
"0.78822935",
"0.7867067",
"0.77782136",
"0.7755857",
"0.7683",
"0.7651369",
"0.7646459",
"0.7643782",
"0.762068",
"0.75591534",
"0.7538006",
"0.7522285",
"0.751813",
... | 0.65472907 | 79 |
Return the potential energy. | def YauE(Oz1B, FBNX):
B2N5 = Uu9S.LangevinIntegrator(293.15 * yizX, 1.0 / HJL5, 1.5 * Dcio)
a9EH = cpvk.Platform.getPlatformByName('CPU')
QpfX = cpvk.Context(Oz1B, B2N5, a9EH)
QpfX.setPositions(FBNX)
QTBn = QpfX.getState(getEnergy=True)
VYvU = QTBn.getPotentialEnergy()
return VYvU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M6MN(YKHO):\n return YKHO.momentum * YKHO.momentum / (2 * YKHO.mass)",
"def n4oz(YKHO):\n return 0.5 * (V2xB(YKHO.positions) ** 2).sum()",
"def VYvU(YKHO):\n return YKHO._energy",
"def Nndf(YKHO):\n if not hasattr(YKHO, 'energy'):\n YKHO.energy = YKHO.calcEnergy()\n return YKHO.ener... | [
"0.82961226",
"0.82369137",
"0.81954014",
"0.81777704",
"0.8151151",
"0.8098764",
"0.8058423",
"0.78822935",
"0.78822935",
"0.7867067",
"0.77782136",
"0.7755857",
"0.7683",
"0.7651369",
"0.7646459",
"0.7643782",
"0.762068",
"0.75591534",
"0.7538006",
"0.7522285",
"0.751813",
... | 0.0 | -1 |
Return all intermediate classes in the OO hierarchy between a base class and a child class. | def JIYL(Emd4, Pnam):
KndY = tq_1.getmro(Emd4)
KndY = [Z9rn for Z9rn in KndY if issubclass(Z9rn, Pnam)]
return KndY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R6qy(Emd4):\n Hh7E = set()\n Q5yx = [Emd4]\n while Q5yx:\n _AKB = Q5yx.pop()\n for aUGN in _AKB.__subclasses__():\n if aUGN not in Hh7E:\n Hh7E.add(aUGN)\n Q5yx.append(aUGN)\n return Hh7E",
"def FGlh(Emd4):\n KndY = Emd4.__subclasses__()\n... | [
"0.7109746",
"0.69800186",
"0.6968653",
"0.69393426",
"0.688384",
"0.6852891",
"0.68512887",
"0.6729698",
"0.672655",
"0.672655",
"0.6705842",
"0.6689559",
"0.66292167",
"0.66153485",
"0.65970963",
"0.65906024",
"0.6576864",
"0.6543348",
"0.6526739",
"0.6444503",
"0.6393157",... | 0.80265903 | 0 |
Force the dtype of a Numpy array. | def B5ne(ezWE, yDqo, tO9_=''):
if isinstance(ezWE, oyIN.ndarray):
if ezWE.dtype is not oyIN.dtype(yDqo):
Sqdk('enforcing dtype for array %s %s' % (str(ezWE.dtype), tO9_))
return oyIN.array(ezWE, yDqo)
return ezWE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DSj2(YEnM: ndarray, qe77: dtype) -> gyIm:\n if YEnM.dtype != qe77:\n return YEnM.astype(qe77)\n return YEnM",
"def CVhi(YKHO, yDqo):\n return R1ka",
"def ZlFN(qw7D):\n return oyIN.asarray(qw7D, Ni1i())",
"def yDqo(YKHO) -> oyIN.dtype:\n ...",
"def yDqo(jzdc):\n return jzdc.dtyp... | [
"0.734198",
"0.7236896",
"0.68527764",
"0.6731046",
"0.67098457",
"0.66050994",
"0.6594981",
"0.65857",
"0.65223205",
"0.649347",
"0.64351606",
"0.63843495",
"0.63548666",
"0.62604666",
"0.62512547",
"0.6219558",
"0.6175291",
"0.61296684",
"0.61294705",
"0.6113247",
"0.611181... | 0.80169976 | 0 |
Returns the existing activities in the dataset | def oIbG(YKHO) -> oyIN.ndarray:
return YKHO.activity_names | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nZ2i():\n pass",
"def dCYV(YKHO):\n return YKHO._activities",
"def zn9O(YKHO):\n YKHO.__load_activities_from_file_into_memory()\n return YKHO._activities_list",
"def nZ2i(Emd4):\n p9NO = Emd4.objects\n return p9NO",
"def FnFi(YKHO):\n YKHO.__load_activities_from_file_into_memory()\... | [
"0.68924093",
"0.6727489",
"0.6584638",
"0.6583916",
"0.6479117",
"0.6453023",
"0.63524395",
"0.63281494",
"0.6162515",
"0.61385804",
"0.61243606",
"0.60838455",
"0.603094",
"0.6007442",
"0.59912026",
"0.5989472",
"0.5970199",
"0.5914953",
"0.59073955",
"0.588997",
"0.588997"... | 0.5460391 | 45 |
Gets all annotations in the dataset for person_id. | def b07W(YKHO, Aujj: int) -> oyIN.ndarray:
return YKHO._get_annotations_for_person_or_pose(Aujj, oyIN.array(['personAIK'])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nkyg(YKHO, CWDC):\n return YKHO._img_id2annotations.get(CWDC, [])",
"def BH8H(YKHO, Aujj: int) -> oyIN.ndarray:\n return YKHO._get_annotations_for_person_or_pose(Aujj, oyIN.array(['poseAIK']))",
"def v0WI(YKHO, Aujj: int, n0X3: str) -> oyIN.ndarray:\n XgyP = []\n for f4IJ in range(YKHO.get_tota... | [
"0.7283473",
"0.6931183",
"0.60483617",
"0.5919022",
"0.59092623",
"0.5863266",
"0.582435",
"0.5730702",
"0.57007235",
"0.5689479",
"0.5593741",
"0.5568821",
"0.55031407",
"0.5500018",
"0.5488362",
"0.5390084",
"0.5380493",
"0.53783077",
"0.53763396",
"0.5351678",
"0.5323104"... | 0.79616636 | 0 |
Gets all annotations in the dataset for object_id. | def dvm8(YKHO, NBcv: int) -> oyIN.ndarray:
OHyo = oyIN.array(['boxAIK', 'cylinderAIK'])
return YKHO._get_annotations_for_object(NBcv, OHyo, 'oid', YKHO.objects) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nkyg(YKHO, CWDC):\n return YKHO._img_id2annotations.get(CWDC, [])",
"def nkyg(YKHO, GTA_: str, GUWP: List[int]) -> x1iM[dict]:\n Fk9p, e02W = YKHO._load_model(GTA_)\n XgyP = YKHO.db.cached_session.query(e02W).filter(e02W.id.in_(list(GUWP))).all()\n dOjI, IaaG = YKHO.schema.split_flattened_schema(... | [
"0.7204596",
"0.62409747",
"0.6171715",
"0.60870063",
"0.60335135",
"0.60151005",
"0.5966823",
"0.5937761",
"0.59073126",
"0.5886071",
"0.5885667",
"0.5789478",
"0.57882005",
"0.57396215",
"0.55897474",
"0.5585669",
"0.5580272",
"0.55516505",
"0.54900205",
"0.5445665",
"0.537... | 0.65862995 | 1 |
Given a tensor `events`, returns a tensor of shape `events.shape + [t]` representing the events distributed over a number of days given geometric waiting times with rate `1exp(ratedelta_t)` | def rZgk(YTVa, mVUw, i73w=1.0):
YTVa = ZylS.convert_to_tensor(YTVa)
mVUw = ZylS.convert_to_tensor(mVUw, dtype=YTVa.dtype)
imx5 = ZylS.TensorArray(YTVa.dtype, size=0, dynamic_size=True)
JxU2 = 1.0 - ZylS.exp(-mVUw * i73w)
def TBsA(YRbF, _BLO, n8Cu):
im04 = PdgQ.Binomial(total_count=_BLO, pro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tpVm(YTVa, r8hN, a1PO, WKvO, RgEb):\n WKvO = Q7Ey(WKvO)\n _0VL = ZylS.stack([r8hN, a1PO, WKvO], axis=-1)\n return ZylS.tensor_scatter_nd_add(YTVa, _0VL, RgEb)",
"def SFjL(YTVa, mVUw, i73w=1.0):\n PzYh = rZgk(YTVa, mVUw, i73w)\n tJuY = IRnm(PzYh)\n S7Ob = ZylS.reduce_sum(tJuY, axis=-2)\n ... | [
"0.6078214",
"0.57174695",
"0.56239456",
"0.56107354",
"0.5519008",
"0.54515976",
"0.5427955",
"0.542372",
"0.5394646",
"0.5381155",
"0.5363696",
"0.5335728",
"0.5330652",
"0.52554613",
"0.5235844",
"0.5168141",
"0.5163216",
"0.51197255",
"0.5118513",
"0.51020485",
"0.5089668... | 0.7406817 | 0 |
Return the value of the item at the given zerobased index. | def iWwd(YKHO, d6pt):
return YKHO[YKHO.keyOrder[d6pt]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def baOo(YKHO, d6pt):\n YKHO._checkIndex(d6pt)\n return YKHO._items[d6pt].value",
"def JdFv(YKHO, d6pt):\n return YKHO['value'][d6pt]",
"def OP2O(YKHO, d6pt):\n return YKHO._value_at(d6pt)",
"def OP2O(YKHO, d6pt):\n return YKHO._value_at(d6pt)",
"def kTCt(YKHO, d6pt: int) -> sb5H:\n retur... | [
"0.73438966",
"0.7281908",
"0.72488445",
"0.72488445",
"0.7071867",
"0.695808",
"0.6907054",
"0.6864854",
"0.6856327",
"0.684803",
"0.6821447",
"0.6814487",
"0.6814487",
"0.679285",
"0.672452",
"0.6719746",
"0.6697979",
"0.66781926",
"0.66781926",
"0.6617415",
"0.65809214",
... | 0.7477075 | 0 |
Insert the key, value pair before the item with the given index. | def JPHp(YKHO, d6pt, H5ew, BWXx):
if H5ew in YKHO.keyOrder:
exwG = YKHO.keyOrder.index(H5ew)
del YKHO.keyOrder[exwG]
if exwG < d6pt:
d6pt -= 1
YKHO.keyOrder.insert(d6pt, H5ew)
super(U8Lr, YKHO).__setitem__(H5ew, BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, d6pt, H5ew, BWXx):\n if H5ew in YKHO:\n del YKHO[H5ew]\n YKHO._sequence.insert(d6pt, H5ew)\n dict.__setitem__(YKHO, H5ew, BWXx)",
"def JPHp(YKHO, d6pt, ZfUD):\n if d6pt > len(YKHO):\n raise IndexError\n elif d6pt == 0:\n YKHO.insert_first(ZfUD)\n else:\n ... | [
"0.69674695",
"0.6943475",
"0.6937621",
"0.6772289",
"0.6730931",
"0.670674",
"0.66812706",
"0.66451156",
"0.6634304",
"0.65667045",
"0.65272844",
"0.65228355",
"0.6520801",
"0.65146816",
"0.64908504",
"0.6486916",
"0.6427265",
"0.6421421",
"0.6381325",
"0.6378343",
"0.635956... | 0.7027692 | 0 |
Return a copy of this object. | def jth9(YKHO):
YEnM = YKHO.__class__(YKHO)
YEnM.keyOrder = YKHO.keyOrder[:]
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return jth9(YKHO)",
"def jth9(YKHO):\n return jth9(YKHO)",
"def FzJk(YKHO):\n return YKH... | [
"0.9166268",
"0.9166268",
"0.9166268",
"0.9166268",
"0.9104144",
"0.9104144",
"0.9066833",
"0.9055192",
"0.9055192",
"0.9055192",
"0.9055192",
"0.9055192",
"0.9055192",
"0.9055192",
"0.9055192",
"0.9055192",
"0.9055192",
"0.9055192",
"0.9055192",
"0.9055192",
"0.9055192",
"... | 0.0 | -1 |
Return the number of combinations possable by choosing two of m elements without replacement and without considering ordering. | def bvHv(r8hN):
return r8hN * (r8hN - 1) / 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Fqy(k7Td: int, GBFT: int) -> int:\n if k7Td < GBFT:\n return 0\n i6fW = 1\n hYVb = 1\n v_yi = 0\n for YRbF in range(GBFT, 0, -1):\n hYVb *= YRbF\n i6fW *= k7Td - v_yi\n v_yi += 1\n return i6fW / hYVb",
"def zOYA(rQ2r, hQHm, jlSq, E3D9):\n assert hQHm != jlSq\... | [
"0.69126",
"0.6602199",
"0.65106493",
"0.6497087",
"0.6265915",
"0.61492527",
"0.60328764",
"0.6028228",
"0.60239863",
"0.5964268",
"0.59460795",
"0.59346706",
"0.5905678",
"0.5899173",
"0.58940184",
"0.5851157",
"0.5827089",
"0.58136874",
"0.58136755",
"0.57756853",
"0.57280... | 0.0 | -1 |
Create a Flask application instance. Initializes the database, app routes, and extensions. | def LUif(cmRX: str='sqlite://'):
P4t4 = L2w0('featuresreq')
eHpk = y2U9(cmRX)
f57V.configure(bind=eHpk)
cuiw = Dw7L(f57V, P4t4)
P4t4.session = cuiw
P4t4.register_blueprint(vI3f)
@P4t4.before_first_request
def g_9l():
i_Aq.metadata.create_all(eHpk)
for Z9rn in ('a', 'b', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif() -> L2w0:\n P4t4 = L2w0(__name__.split('.')[0])\n fOck(P4t4)\n P4t4.register_blueprint(LiTy)\n P4t4.teardown_appcontext(ssTe)\n P4t4.cli.add_command(JawI)\n return P4t4",
"def LUif():\n P4t4 = L2w0(__name__, instance_relative_config=False)\n P4t4.config.from_object('config.Confi... | [
"0.8864816",
"0.87129503",
"0.86492044",
"0.86349326",
"0.8504186",
"0.8496298",
"0.8484657",
"0.8420806",
"0.84205586",
"0.8353178",
"0.83314204",
"0.8323793",
"0.8321447",
"0.83187675",
"0.8311512",
"0.8302713",
"0.8298307",
"0.82818073",
"0.8230951",
"0.8229181",
"0.820392... | 0.74890566 | 91 |
Apply Tensorflow 2 non max suppression to input bounding boxes | def Yp2g(oUSw, zeuz):
return ZylS.image.combined_non_max_suppression(boxes=ZylS.reshape(oUSw, (ZylS.shape(oUSw)[0], -1, 1, 4)), scores=ZylS.reshape(zeuz, (ZylS.shape(zeuz)[0], -1, ZylS.shape(zeuz)[-1])), max_output_size_per_class=50, max_total_size=50, iou_threshold=vPBo.iou, score_threshold=vPBo.score) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bp7k(cCrA, oUSw, KndY, asK2=10, PKpG=0.5):\n fdJV = ZylS.constant(asK2, dtype=ZylS.int32)\n RWZp = ZylS.image.non_max_suppression(oUSw, cCrA, fdJV, PKpG)\n cCrA = ZylS.gather(cCrA, RWZp)\n oUSw = ZylS.gather(oUSw, RWZp)\n KndY = ZylS.gather(KndY, RWZp)\n return (cCrA, oUSw, KndY)",
"def zh6... | [
"0.74641895",
"0.71254975",
"0.70750093",
"0.69527495",
"0.67119867",
"0.6696494",
"0.65992266",
"0.6566002",
"0.6534063",
"0.64163065",
"0.6383682",
"0.6353099",
"0.6342272",
"0.6326537",
"0.63184595",
"0.6262337",
"0.6221877",
"0.62161654",
"0.6189106",
"0.617225",
"0.61629... | 0.72928864 | 1 |
This should be overridden by children classes to return the filename to use to read movies. | def A8FF(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ae2a(YKHO):\n pass",
"def yFjF(YKHO) -> str:\n return YKHO._filename",
"def yFjF(YKHO):\n return YKHO.filename",
"def g_2H(YKHO):\n return '%s - %s' % (YKHO.get_tags()['artist'], YKHO.get_tags()['title'])",
"def yFjF(YKHO):\n return YKHO.__filename",
"def yFjF(YKHO):\n return YKHO._... | [
"0.7398745",
"0.73790425",
"0.73643404",
"0.72513485",
"0.72301406",
"0.7203764",
"0.71937746",
"0.71651876",
"0.71456903",
"0.71153426",
"0.7090417",
"0.7077128",
"0.70428646",
"0.70395607",
"0.7005871",
"0.69998777",
"0.69702506",
"0.69543505",
"0.6937576",
"0.6910285",
"0.... | 0.83931077 | 0 |
This should be overridden by children classes to return the filename to use to read ratings. | def UASU(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ae2a(YKHO):\n pass",
"def yFjF(YKHO):\n return YKHO.filename",
"def yFjF(YKHO) -> str:\n return YKHO._filename",
"def yFjF(YKHO):\n return YKHO.__filename",
"def yFjF(YKHO):\n return YKHO._filename",
"def g_2H(YKHO):\n return str(YKHO.get_file())",
"def yFjF(YKHO):\n return YKH... | [
"0.7192776",
"0.71556866",
"0.7154176",
"0.7025814",
"0.6998298",
"0.6915408",
"0.6903019",
"0.68891543",
"0.68750715",
"0.6872113",
"0.68404776",
"0.6812383",
"0.6788013",
"0.67480314",
"0.6724658",
"0.6724658",
"0.6724658",
"0.6724658",
"0.67213297",
"0.66860366",
"0.667575... | 0.8725029 | 0 |
This should be overridden by children classes to parse a movie from a line and return it. | def Mq3y(YKHO, zFiD):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mq3y(YKHO, Ylbp):\n bD7m = Ylbp.css(VVh2['MOVIE_URL'])\n YEnM = {'id': int(bD7m.re_first('[/]([0-9]{1,})[/]')), 'title': sfXT.get(Ylbp, VVh2['MOVIE_TITLE']), 'description': sfXT.get(Ylbp, VVh2['MOVIE_DESCRIPTION'])[12:-10], 'advisory': sfXT.get_array(Ylbp, VVh2['MOVIE_ADVISORY']), 'image': sfXT.get(Ylbp,... | [
"0.6387435",
"0.6120936",
"0.61202943",
"0.60389423",
"0.60172844",
"0.6012354",
"0.5943656",
"0.59023505",
"0.5879923",
"0.5878867",
"0.5870217",
"0.5848541",
"0.5848541",
"0.5848541",
"0.5848541",
"0.5794223",
"0.57505584",
"0.57185733",
"0.563105",
"0.55872154",
"0.5573334... | 0.8592133 | 0 |
Initializer for node pool. Does not open the pool, only retains input parameters. | def FIMM(YKHO, mWFP: str, Kw0x: str) -> None:
YKHO._name = mWFP
YKHO._genesis_txn_path = Kw0x
YKHO._handle = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, EcAO: float=10):\n YKHO.pool_size = EcAO",
"def FIMM(YKHO, EcAO):\n YKHO.pool_size = EcAO",
"def FIMM(YKHO, EcAO=2, _0fC=None):\n super().__init__()\n YKHO.pool_size = EcAO\n YKHO.stride = _0fC\n if YKHO.stride is None:\n YKHO.stride = YKHO.pool_size",
"def FIMM(Ro_8, ... | [
"0.7567512",
"0.7553433",
"0.6896879",
"0.6885336",
"0.68584174",
"0.6829333",
"0.6774752",
"0.67606515",
"0.6744467",
"0.6739918",
"0.66863745",
"0.6611018",
"0.64783436",
"0.64189196",
"0.6410254",
"0.6361048",
"0.6354997",
"0.6338873",
"0.63126683",
"0.6308491",
"0.6303226... | 0.0 | -1 |
Accessor for pool name | def mWFP(YKHO) -> str:
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZLhy(mWFP: str) -> str:\n return mWFP.replace('_', '')",
"def dBuj(YKHO):\n return YKHO._properties.get('pool')",
"def F3PV(YKHO):\n return YKHO._pool_id",
"def tb1u(YKHO, hjKc):\n if gQXs.search(hjKc):\n raise AttributeError(f\"Pool name '{hjKc}' contains illegal characters\")\n if... | [
"0.7230252",
"0.713655",
"0.71272075",
"0.6785171",
"0.6658147",
"0.6654709",
"0.6631888",
"0.6601361",
"0.65984225",
"0.6591371",
"0.6591371",
"0.6547778",
"0.6547778",
"0.6547778",
"0.6547778",
"0.6545763",
"0.65368193",
"0.6535247",
"0.6535247",
"0.6535247",
"0.6531866",
... | 0.0 | -1 |
Return representation for current object. | def wHJl(YKHO) -> str:
return 'NodePool({}, {})'.format(YKHO.name, YKHO.genesis_txn_path) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def wHJl(YKHO) -> str:\n return YKHO.current_obj.__repr__()",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n re... | [
"0.80542994",
"0.8040967",
"0.79252005",
"0.79175144",
"0.79175144",
"0.79175144",
"0.79175144",
"0.79175144",
"0.79071766",
"0.79002875",
"0.7868935",
"0.77954245",
"0.7734382",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.771... | 0.0 | -1 |
Accessor for wallet name | def dLnb(YKHO) -> str:
return YKHO._wallet_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dvE_(YKHO, mWFP):\n return YKHO.wallets[mWFP]",
"def W0tD():\n return bseI['Name']",
"def mWFP(YKHO) -> str:\n return YKHO.data['name']",
"def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')",
"def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')",
"def W0tD(YKHO) ... | [
"0.77427226",
"0.6718226",
"0.6708497",
"0.6689303",
"0.6689303",
"0.6688701",
"0.6655749",
"0.66505826",
"0.6643012",
"0.6643012",
"0.6643012",
"0.66425145",
"0.6638093",
"0.6629078",
"0.6629078",
"0.6629078",
"0.6629078",
"0.6629078",
"0.6599864",
"0.6599864",
"0.6599864",
... | 0.8419409 | 0 |
Accessor for wallet handle | def GBAO(YKHO) -> int:
return YKHO._wallet_handle | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PHAh(YKHO):\n return YKHO.proxy.walletlock()",
"def dvE_(YKHO, JYgU):\n return",
"def dvE_(YKHO, mWFP):\n return YKHO.wallets[mWFP]",
"def dLnb(YKHO) -> str:\n return YKHO._wallet_name",
"def fCIu(YKHO) -> str:\n return YKHO._wallet_config",
"def ZFOt(YKHO):\n return YKHO.__call__('... | [
"0.69949424",
"0.6845608",
"0.6421383",
"0.596003",
"0.5641318",
"0.5636758",
"0.55355173",
"0.54145604",
"0.54145604",
"0.54145604",
"0.54093844",
"0.53792095",
"0.53165895",
"0.5312714",
"0.5310474",
"0.5305216",
"0.53036296",
"0.53033197",
"0.5299107",
"0.5282296",
"0.5275... | 0.80446714 | 0 |
Accessor for wallet config json | def fCIu(YKHO) -> str:
return YKHO._wallet_config | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EHme(YKHO):\n try:\n return YKHO.json_data['CONFIG']\n except:\n si3H.get_error(si3H.ERROR_004)",
"def zoFt(YKHO, GPtr):\n with open('./config.json', 'r') as wM3v:\n try:\n nPrm = wM3v.read()\n return qQXR.loads(nPrm)[GPtr]\n except Exception as e:\n... | [
"0.6896499",
"0.6693275",
"0.6680588",
"0.65594125",
"0.6555666",
"0.6531256",
"0.65311146",
"0.6518176",
"0.6294957",
"0.62885386",
"0.628787",
"0.628787",
"0.628787",
"0.628787",
"0.628787",
"0.628787",
"0.628787",
"0.628787",
"0.628787",
"0.628787",
"0.628787",
"0.628787... | 0.72276586 | 0 |
Explicit entry. Opens wallet and stores agent DID in it. For use when keeping agent open across multiple calls. | async def open(YKHO) -> 'BaseAgent':
try:
await hGMD.create_wallet(pool_name=YKHO.pool.name, name=YKHO.wallet_name, xtype=None, config=YKHO.wallet_config, credentials=None)
except ig2q as e:
if tTpl.error_code != WbPM.WalletAlreadyExistsError:
raise
YKHO._wallet_handle = await hG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ow9I(mWFP):\n return OnyA({'method': 'wallet_open', 'params': [mWFP], 'jsonrpc': '2.0', 'id': 0})",
"def m9QU(YKHO):\n aUGN = wWxK.spawn('node createKeystore', cwd='../src/')\n if m5CH.show_logs:\n aUGN.logfile = HwRy.stdout\n YKHO.file_name = m5CH.get_random_string()\n YKHO.password = ... | [
"0.6271924",
"0.54222405",
"0.5420585",
"0.5410245",
"0.53995264",
"0.51367325",
"0.51290125",
"0.50276726",
"0.49604082",
"0.49499637",
"0.4935299",
"0.49343544",
"0.49130282",
"0.47957247",
"0.47585753",
"0.47352773",
"0.47265455",
"0.47110498",
"0.46962783",
"0.46903977",
... | 0.6725488 | 0 |
Return representation for current object. | def wHJl(YKHO) -> str:
return 'BaseAgent({}, {}, {}, {})'.format(repr(YKHO.pool), '[SEED]', YKHO.wallet_name, YKHO.wallet_config) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def wHJl(YKHO) -> str:\n return YKHO.current_obj.__repr__()",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n re... | [
"0.80542994",
"0.8040967",
"0.79252005",
"0.79175144",
"0.79175144",
"0.79175144",
"0.79175144",
"0.79175144",
"0.79071766",
"0.79002875",
"0.7868935",
"0.77954245",
"0.7734382",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.771... | 0.0 | -1 |
Return representation for current object. | def wHJl(YKHO) -> str:
return 'ListeningAgent({}, {}, {}, {}, {}, {})'.format(repr(YKHO.pool), '[SEED]', YKHO.wallet_name, YKHO.wallet_config, YKHO.host, YKHO.port) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def wHJl(YKHO) -> str:\n return YKHO.current_obj.__repr__()",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n return str(YKHO.__dict__)",
"def wHJl(YKHO):\n re... | [
"0.80542994",
"0.8040967",
"0.79252005",
"0.79175144",
"0.79175144",
"0.79175144",
"0.79175144",
"0.79175144",
"0.79071766",
"0.79002875",
"0.7868935",
"0.77954245",
"0.7734382",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.7710775",
"0.771... | 0.0 | -1 |
Returns the mean and scale of the process evaluated at x_t | def DiJ_(YKHO, WKvO: torch.Tensor):
return YKHO._mean_scale(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x4ks(YKHO, WKvO: torch.Tensor) -> AzJI[ht2j.Tensor, ht2j.Tensor]:\n return (YKHO.f(WKvO, *YKHO.theta_vals), YKHO.g(WKvO, *YKHO.theta_vals))",
"def pOv4(YKHO, WKvO, KCHu):\n WKvO = YKHO.base(WKvO)\n o_qv = YKHO.disp_layer(WKvO)\n JBMS = YKHO.mean_layer(WKvO)\n JBMS = YKHO.rescale([KCHu, JBMS])\... | [
"0.70516026",
"0.649264",
"0.6477257",
"0.6312108",
"0.623467",
"0.61698043",
"0.6156751",
"0.6137195",
"0.6115943",
"0.61023885",
"0.60908645",
"0.6078424",
"0.60747623",
"0.60681087",
"0.60525423",
"0.6043662",
"0.59880596",
"0.5979855",
"0.5931117",
"0.5907981",
"0.5891152... | 0.6867915 | 1 |
Returns the Frobenius reciprocal of an element. As a remainder, the Frobenius automorphism is `a > a^q` where `q` is the characteristic of the field. In prime fields, it is the identity. | def tccG(YKHO, jzdc: 'PFElement') -> 'PFElement':
assert jzdc in YKHO
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dwOo(YKHO):\n return Hruk(YKHO.denominator, YKHO.numerator)",
"def dwOo(YKHO):\n KCHu, tTpl = YKHO.share\n KCHu = 0.5 * (1 / KCHu)\n return type(YKHO)((KCHu, 1 - tTpl))",
"def SxVy(k0lF):\n if k0lF.is_cuda:\n T8ck, bGrB = ht2j.qr(k0lF, some=True)\n else:\n T8ck = ht2j.orgqr(... | [
"0.6770539",
"0.65622467",
"0.65508735",
"0.6356076",
"0.63482386",
"0.62424356",
"0.6203062",
"0.61736226",
"0.61703086",
"0.6116172",
"0.6089416",
"0.60502076",
"0.5923548",
"0.5922275",
"0.59153455",
"0.5875363",
"0.58497953",
"0.57106465",
"0.5702368",
"0.56644934",
"0.56... | 0.7797848 | 0 |
Return the nth power of an element | def pow(YKHO, jzdc: 'PFElement', exwG: int) -> 'PFElement':
Ylbp = naF9(jzdc, exwG)
if not isinstance(Ylbp, LRut):
return YKHO.element(Ylbp)
else:
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nxJm(YKHO, exwG):\n return YKHO.power(exwG)",
"def naF9(WKvO, exwG):\n naF9 = 1\n for YRbF in range(abs(exwG)):\n naF9 = wTxu(naF9, WKvO)\n return naF9",
"def JYo6(YKHO, exwG):\n XP5J = YKHO.power(exwG)\n return XP5J",
"def _Jb_(YKHO, exwG):\n assert exwG > 0\n return m3se(... | [
"0.7919603",
"0.758965",
"0.7519912",
"0.7519835",
"0.751193",
"0.7511862",
"0.7401777",
"0.7365514",
"0.73583704",
"0.7314706",
"0.7217489",
"0.7191074",
"0.7191074",
"0.7126871",
"0.712552",
"0.7123431",
"0.7120525",
"0.7109957",
"0.70600134",
"0.7029073",
"0.6969186",
"0... | 0.7510821 | 6 |
Function to instantiate, configure, and return a flask app | def LUif(TfOc=True):
P4t4 = L2w0(__name__, instance_relative_config=True)
P4t4.config.from_object('app.default_config')
NCls.init_app(P4t4)
nNXP = fyIx(P4t4)
nNXP.add_resource(jXmk, '/api/users')
if TfOc:
Yfob(P4t4)
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4t4():\n return LUif()",
"def P4t4(YKHO):\n P1dF = lambda G1Hx: 'Fatal: You need to specify a \"flask\" section ' + 'with an entry like \"' + G1Hx + '=...\" in your .ini file'\n try:\n kvcN = YKHO['flask.app']\n except KeyError:\n raise SystemExit(P1dF('app'))\n try:\n Q... | [
"0.827247",
"0.826697",
"0.82615703",
"0.82501507",
"0.81916094",
"0.8161381",
"0.8141996",
"0.8127513",
"0.8081894",
"0.80553764",
"0.8051946",
"0.80443096",
"0.80312896",
"0.8028822",
"0.80127865",
"0.79866976",
"0.79858017",
"0.79766065",
"0.7956358",
"0.7953329",
"0.79357... | 0.7563493 | 76 |
Shortcut for right interpolation along last axis. | def _tIi(gz5X, yvT9=None):
SxVy = gz5X.domain.bases[-1]
return SxVy.Interpolate(gz5X, 'right', out=yvT9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXEB(YKHO, jDK_: int=None):\n if jDK_ is None:\n jDK_ = YKHO.last_used\n YKHO.set_current_step(jDK_, YKHO.current_step[jDK_] + 1)",
"def _anc(YKHO):\n pTn1 = (YKHO._get_ticks() - YKHO._last_update) / YKHO._tick_step / YKHO.dilation\n if pTn1 > 1.0:\n pTn1 = 1.0\n return pTn1",
... | [
"0.5709109",
"0.5521624",
"0.55132407",
"0.5472422",
"0.53939563",
"0.53863585",
"0.5334659",
"0.5334624",
"0.5294647",
"0.5246538",
"0.52454853",
"0.5233195",
"0.52330446",
"0.52305794",
"0.5211962",
"0.518633",
"0.5175911",
"0.5098987",
"0.5082492",
"0.5081406",
"0.5073751"... | 0.7089297 | 0 |
Toggle comment approval Takes a comment, returns nothing. If input comment was unapproved, approve it (and vice versa). If auto_approve is enabled in Blog config and comment is approved, also add user to ApprovedCommentors, (or remove if unapproving). | def sgEX(aM_I):
GPtr = xwcw.objects.first()
LHhB = GPtr.auto_approve_previous_commentors
if LHhB:
if aM_I.approved:
PQT4.objects.filter(email=aM_I.email).delete()
else:
PQT4.objects.create(email=aM_I.email)
aM_I.approved = not aM_I.approved
aM_I.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_kR(D3lj, wC2y):\n GPtr = xwcw.objects.first()\n LHhB = GPtr.auto_approve_previous_commentors\n if wC2y or (LHhB and PQT4.objects.filter(email=D3lj).exists()):\n return True\n else:\n return False",
"def QW_o(YKHO, jGRS):\n if jGRS == 'approve':\n return YKHO.approve()\n ... | [
"0.64231104",
"0.6205045",
"0.6117601",
"0.60638225",
"0.5995413",
"0.5849445",
"0.58385134",
"0.5685325",
"0.562881",
"0.5619963",
"0.55937886",
"0.55708194",
"0.5557461",
"0.5527482",
"0.5521601",
"0.5447916",
"0.5435343",
"0.540066",
"0.5296182",
"0.52908134",
"0.5287771",... | 0.8723851 | 0 |
sum over the first and last dimension | def mlob(vhpA):
return vhpA.sum(dim=0).sum(dim=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nIOC(jzdc):\n return oyIN.sum(oyIN.sum(jzdc, -1), -1)",
"def sum(vhpA, jDK_=None):\n raise NotImplementedError",
"def yo6W(jzdc, e_2d=None):\n if e_2d == None:\n jzdc = ywwl.ravel(jzdc)\n e_2d = 0\n if type(e_2d) in [HqRf, Jw7o, ywwl.ndarray]:\n e_2d = list(e_2d)\n e... | [
"0.68710095",
"0.6797941",
"0.67974305",
"0.6642877",
"0.6605728",
"0.6571645",
"0.6556174",
"0.653974",
"0.64990526",
"0.6478147",
"0.6469402",
"0.64415735",
"0.6398542",
"0.6373295",
"0.6370194",
"0.6359853",
"0.6337787",
"0.6327468",
"0.63148034",
"0.63135606",
"0.63009125... | 0.6242158 | 23 |
Get dataset and split. | def dD7q(d7SP, qIxc, QjBU, aRAO=None):
SNi9 = 'MNIST' in qIxc.dataset
__n6 = vars(gMbG)[qIxc.dataset](qIxc.data_dir, d7SP)
ycdd = []
OPlf = []
for x_fy, sEAN in enumerate(__n6):
yvT9, AgUk = FJfc(sEAN, int(len(sEAN) * qIxc.holdout_fraction), uqom.seed_hash(qIxc.trial_seed, x_fy))
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(YKHO):\n return YKHO.dataset_split",
"def FJfc(__n6):\n aWuw = __n6.split()\n return aWuw",
"def FJfc(__n6):\n aWuw = __n6.split()\n return aWuw",
"def dD7q(mWFP, lpha, h_xa='~/tensorflow_datasets'):\n assert lpha in ['train', 'train+validation', 'validation', 'test']\n __n6, U3... | [
"0.72593427",
"0.71736807",
"0.71736807",
"0.7157121",
"0.71311355",
"0.70118904",
"0.69803184",
"0.69788635",
"0.69257057",
"0.68136704",
"0.67288136",
"0.671695",
"0.6702674",
"0.6687212",
"0.6677986",
"0.6677607",
"0.66766286",
"0.6627313",
"0.6618925",
"0.6607096",
"0.657... | 0.0 | -1 |
Route to display homepage. | def IC8O():
return WsL5.redirect('products.show_product_manager') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vja_():\n return vKnz(nKyW(tajT, _external=True))",
"def C_QL():\n return vKnz('index.html')",
"def kZiy():\n G9jH.info('Entering route: HOME')\n G9jH.info('Rendering template: main.html')\n return TvZl('main.html')",
"def oUar(QePW):\n bD7m = QePW.route_url('home', _app_url=NxLh(QePW))... | [
"0.7695963",
"0.757465",
"0.7505735",
"0.7478521",
"0.7476132",
"0.74183697",
"0.7388712",
"0.73708856",
"0.7343081",
"0.73186195",
"0.73158234",
"0.72681725",
"0.72517675",
"0.7218834",
"0.7210733",
"0.7210733",
"0.7202022",
"0.71813005",
"0.71811754",
"0.7176553",
"0.717655... | 0.0 | -1 |
Get a random element from the collection. | def UIrZ(YKHO):
return tuKI.choice(YKHO.vec) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8Zf(YKHO) -> 'PFElement':\n return tuKI.choice(list(iter(YKHO)))",
"def m5AQ(YKHO, OxJJ):\n yv6U = list(OxJJ)\n or8S = YKHO._rand_int(0, len(yv6U))\n return yv6U[or8S]",
"def UIrZ(YKHO):\n Gv0a = ajWY(0, len(YKHO.list_val) - 1)\n return YKHO.list_val[Gv0a]",
"def tuKI(YKHO):\n try:\... | [
"0.7651958",
"0.7149041",
"0.70814615",
"0.70404017",
"0.7034526",
"0.6959262",
"0.69563407",
"0.68719393",
"0.68376184",
"0.6797525",
"0.670551",
"0.6697882",
"0.6692588",
"0.6692588",
"0.6692588",
"0.6692588",
"0.66815263",
"0.66744214",
"0.6673934",
"0.66513956",
"0.663908... | 0.7044879 | 3 |
Returns a list of vertices on a grid of given size. | def Cs6h(WKvO, LVAh):
return Lx3t(Ni9Y(1, WKvO + 1), Ni9Y(1, LVAh + 1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXlf(zNig):\n return set(range(zNig))",
"def Lm0U(zNig):\n Cs6h = []\n for YRbF in range(zNig):\n rdlD = ['0'] * zNig\n Cs6h.append(rdlD)\n return Cs6h",
"def rzaM(Cs6h, BrEt=16):\n DH3x = []\n for YRbF in range(BrEt):\n rdlD = []\n for r845 in range(BrEt):\n ... | [
"0.71124107",
"0.6467387",
"0.6334947",
"0.632873",
"0.63075143",
"0.61781114",
"0.614026",
"0.6082376",
"0.6079558",
"0.6040731",
"0.6022116",
"0.6004428",
"0.59677744",
"0.5920226",
"0.59015906",
"0.59015906",
"0.5873325",
"0.58693814",
"0.585959",
"0.584969",
"0.5838022",
... | 0.0 | -1 |
Construct a mask based on a PAD value. | def QwoG(ROpF, hz0f=0, yDqo=nMvt.floatx(), mWFP=None):
def NN4v(WKvO):
if yDqo is None:
return fhcK.Lambda(lambda a1PO: nMvt.not_equal(WKvO, hz0f), output_shape=ROpF, name=mWFP)(WKvO)
else:
return fhcK.Lambda(lambda a1PO: nMvt.cast(nMvt.not_equal(WKvO, hz0f), nMvt.floatx()),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L3D3(nPrm, hVLt):\n\n def VUxu(zNig):\n \"\"\" helper function for creating the masks. \"\"\"\n aaWP = (1, zNig, zNig)\n VUxu = oyIN.triu(oyIN.ones(aaWP), k=1).astype('uint8')\n return ht2j.from_numpy(VUxu) == 0\n ZHfW = (nPrm != hVLt).unsqueeze(-2)\n ZHfW = ZHfW & iQnE(VUx... | [
"0.7099266",
"0.70417815",
"0.7022491",
"0.65509915",
"0.65141535",
"0.6222334",
"0.61554277",
"0.61527115",
"0.6124022",
"0.59762055",
"0.5941126",
"0.5937045",
"0.59208125",
"0.59202766",
"0.5912979",
"0.5900908",
"0.5778635",
"0.5760395",
"0.5737923",
"0.57202756",
"0.5710... | 0.0 | -1 |
Sample from a parameterised Gaussian. | def T1RZ(ROpF, zBxz=0.0, _Jd0=1.0, mWFP='gaussian-sample'):
def NN4v(qIxc):
JBMS, IR53 = qIxc
return fhcK.Lambda(bQkB(noise_mean=zBxz, noise_std=_Jd0), output_shape=ROpF, name=mWFP)([JBMS, IR53])
return NN4v | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UbES(YKHO, yGTL=0.0, wEsz=1.0, zNig=1):\n yBeu = oyIN.random.normal(yGTL, wEsz, zNig)\n return yBeu",
"def mvm2(YKHO, rIDT):\n assert len(rIDT) == 1, f'SphericalGaussianLikelihood only takes' + f' a single parameter. Found {len(rIDT)}.'\n rIDT = rIDT[0]\n pImw = WGTe(rIDT, YKHO.std_dev * ht2j.... | [
"0.73114735",
"0.7183519",
"0.71437925",
"0.7106215",
"0.7059015",
"0.7046213",
"0.70200986",
"0.68565154",
"0.6846352",
"0.6757162",
"0.67570096",
"0.6701206",
"0.6687641",
"0.6678025",
"0.66675407",
"0.6666644",
"0.66191584",
"0.6616942",
"0.661104",
"0.6589958",
"0.6588056... | 0.68975866 | 7 |
Constructs a Gaussian prior compatible with a certain shape. | def fCKX(ROpF, WOF6, yY44, mWFP='GaussianPrior'):
rYO3 = ROpF[1]
def NN4v(epBp):
if WOF6:
A2Q7 = fhcK.Lambda(lambda a1PO: nMvt.zeros_like(a1PO) + 0.001, output_shape=ROpF, name='{}.zero-mean'.format(mWFP))(epBp)
wucG = fhcK.TimeDistributed(fhcK.Dense(units=rYO3, use_bias=True, n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def khi9(YKHO):\n YKHO.prior = Zi12.multivariate_normal(YKHO.m0, YKHO.S0)",
"def fJwu(YKHO, nIPf):\n Ep8u = nIPf.shape[0]\n a1PO = ht2j.tensor([YKHO.num_timesteps - 1] * Ep8u, device=nIPf.device)\n fgVr, bGrB, mlFF = YKHO.gaussian_q_mean_variance(nIPf, a1PO)\n LRHp = eGkr(mean1=fgVr, logvar1=mlFF,... | [
"0.7171024",
"0.6478126",
"0.6150516",
"0.61248827",
"0.6102012",
"0.6094694",
"0.6052273",
"0.6024488",
"0.5947084",
"0.5909421",
"0.5880445",
"0.5862553",
"0.58507365",
"0.5788119",
"0.57820195",
"0.57761735",
"0.57751375",
"0.5768134",
"0.5762176",
"0.57420564",
"0.5702731... | 0.6798445 | 1 |
Retrieve the game.js file for | def SfGk(YKHO, A0tR, Ux0P):
BH3N = eN17.GAME_DICT[A0tR]
pmON = Hy7s.path.join(BH3N.static_folder, Ux0P)
y0cW = Hy7s.path.commonprefix([pmON, BH3N.static_folder])
if not y0cW.startswith(BH3N.static_folder):
raise Exception('Cannot get static files outside the static_folder!')
return CnSx.lib.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSzq(YKHO):\n return 'placeholder'",
"def qS3q(YKHO) -> None:\n YKHO.save_location = f'{D7lN}/{nKRv}'\n with open(uxMv, 'r') as eHNT:\n return qQXR.load(eHNT)",
"def pmON(YKHO):\n return Hy7s.path.join(BX_Q, YKHO.filename)",
"def Etr0(Ux0P) -> str:\n GSwS = f'{TLI7(xAKo)}/js/{Ux0P}'... | [
"0.59703255",
"0.5895789",
"0.5874125",
"0.58686376",
"0.58012676",
"0.5795238",
"0.5758818",
"0.56823146",
"0.5677972",
"0.56740165",
"0.5632275",
"0.5614311",
"0.5604094",
"0.55745727",
"0.55670005",
"0.55670005",
"0.55670005",
"0.55513555",
"0.5550584",
"0.55473465",
"0.55... | 0.550705 | 22 |
Test whether input is array of strings. | def sd4x(nPrm):
return len(nPrm) and isinstance(I4W5(nPrm).flat[0], str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IvYK(YKHO):\n return YKHO.type == KG2U.PropertyType.stringArray",
"def k834(VosJ):\n return isinstance(VosJ, tuple) and YoHA(VosJ, str)",
"def ow6M(ezWE):\n if isinstance(ezWE, str) or issubclass(XTiz.asarray(ezWE).dtype.type, str):\n return True\n return False",
"def X7_c(ZfUD: Any) -... | [
"0.7782466",
"0.71527207",
"0.7118267",
"0.6953814",
"0.6834709",
"0.67807615",
"0.6680941",
"0.66704804",
"0.6605762",
"0.66032755",
"0.6557859",
"0.6551229",
"0.65245986",
"0.64705783",
"0.6435208",
"0.64306885",
"0.64166236",
"0.6381036",
"0.6338534",
"0.63199204",
"0.6254... | 0.74610054 | 1 |
Apply horizontal or vertical lines. | def CKpS(YKHO, *qIxc, iMGt=None, hkxX=None, **B2fa):
if iMGt is not None:
qmLP._warn_proplot('Drawing "parametric" plots with ax.plot(x, y, values=values, cmap=cmap) is deprecated and will be removed in the next major release. Please use ax.parametric(x, y, values, cmap=cmap) instead.')
return YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y_gh(YKHO):\n YKHO.center_lines()\n YKHO.space_lines()",
"def BzH5(YKHO):\n uMII = [[], []]\n for vC9B in YKHO.lines:\n if vC9B.direction == 'v':\n if vC9B.rtc:\n dQgj = vC9B.coordinate + int((YKHO.width - 1) / 2)\n else:\n dQgj = int(vC9... | [
"0.67151994",
"0.66699624",
"0.65784156",
"0.6463921",
"0.62493426",
"0.6233077",
"0.62194836",
"0.62175",
"0.614987",
"0.6148551",
"0.6135928",
"0.6100671",
"0.60925776",
"0.599403",
"0.5976272",
"0.597047",
"0.59628004",
"0.59613055",
"0.5950573",
"0.5922151",
"0.59186125",... | 0.0 | -1 |
Apply scatter or scatterx markers. Permit up to 4 positional arguments including `s` and `c`. | def tQJM(YKHO, *qIxc, MynD=None, n4wC=None, EvKv=None, ejuD=None, iMGt=None, RMQl=None, CkYf=None, T4Pf=None, FJj_='neither', bctv=None, ywwl=None, hkxX=None, uG8F=None, Ecac=None, IZG9=None, z_n9=False, vsK8=False, tbib=False, jLIN=False, auzg=None, **B2fa):
NKcE = B2fa.pop('_method')
lhy8 = AhoB(B2fa, 'lines'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wR4G(YKHO, WKvO: Hashable, LVAh: Hashable, KCHu: Hashable | Sequence[Hashable] | None=None, Z9rn: Hashable | Sequence[Hashable] | None=None, **B2fa) -> E0GS:\n return YKHO(kind='scatter', x=WKvO, y=LVAh, s=KCHu, c=Z9rn, **B2fa)",
"def PqFu(LTIa, KCHu=10, Z9rn='b', _5yy='o', UXqs=None, dKD6={}, **YSA3):\n ... | [
"0.73080397",
"0.7147928",
"0.6383184",
"0.6152772",
"0.61122864",
"0.60580695",
"0.60487276",
"0.59739614",
"0.595722",
"0.59471047",
"0.58845496",
"0.5847677",
"0.5771839",
"0.57457244",
"0.5737389",
"0.5709712",
"0.5641588",
"0.56390935",
"0.56127715",
"0.56117004",
"0.560... | 0.60851175 | 5 |