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 |
|---|---|---|---|---|---|---|
Creates and initializes flask app. | def LUif(suDX=None):
P4t4 = L2w0(__name__)
GikI = Hy7s.environ.get('FLASK_ENV')
if suDX is not None:
P4t4.config.from_object(suDX)
elif GikI == 'testing':
P4t4.config.from_object('config.TestingConfig')
elif GikI == 'development':
P4t4.config.from_object('config.DevelopmentCo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif(YKHO):\n YKHO.app = L2w0(__name__, instance_relative_config=True)\n YKHO.app.config.from_mapping(SECRET_KEY='!ZNeverSayNever116Z!', MONGODB_SETTINGS={'host': 'mongodb://localhost/opc_integrity'})\n aTj0(YKHO.app)\n iAwL.init_app(YKHO.app)",
"def LUif() -> L2w0:\n P4t4 = L2w0(__name__.spli... | [
"0.85452795",
"0.8524006",
"0.8483392",
"0.84604436",
"0.8448938",
"0.8410629",
"0.83162904",
"0.8249251",
"0.82478195",
"0.824029",
"0.81743926",
"0.8160482",
"0.8152521",
"0.81443596",
"0.8139065",
"0.8139043",
"0.81346816",
"0.8121849",
"0.81182456",
"0.81014913",
"0.80837... | 0.0 | -1 |
r"""Initialise a new cosmology from the physical parameters. This uses the CMB relevant parameterisation that is commonly used. The dark energy density is calculated from the given parameters. | def MSpg(Eb6H=0.022161, RO69=0.11889, h4Ci=67.77, cjIp=0.0, lGE9=2.726, HEnp=3.046):
MKlR = h4Ci / 100.0
Z9rn = qcKD()
Z9rn.omega_b = Eb6H / MKlR ** 2
Z9rn.omega_c = RO69 / MKlR ** 2
Z9rn.H0 = h4Ci
JjT9 = 3.0 * Z9rn.H() ** 2 * czng ** 2 / (8.0 * epAf.pi * n3Q1)
N6EX = sZFe * lGE9 ** 4
Z9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, hKx3=None, pdvU=False):\n if hKx3 is None:\n U7YL = YiPE(set_flat=True)\n else:\n U7YL = hKx3\n if pdvU:\n YKHO.h = 1.0\n else:\n YKHO.h = U7YL.h\n YKHO.m0 = U7YL.omega_M_0\n YKHO.q0 = U7YL.omega_lambda_0\n YKHO.k0 = U7YL.omega_k_0",
"def jgfp(YKHO,... | [
"0.63952196",
"0.61827314",
"0.6016263",
"0.59597903",
"0.5940511",
"0.5898547",
"0.5872297",
"0.583614",
"0.581699",
"0.5790757",
"0.5776464",
"0.5757035",
"0.57305735",
"0.57302195",
"0.5728793",
"0.57286584",
"0.5722246",
"0.57181877",
"0.57063365",
"0.569889",
"0.5691673"... | 0.6686264 | 0 |
r"""The luminosity distance to redshift z. This routine is vectorized. | def DS4x(YKHO, epBp):
return YKHO.proper_distance(epBp) * (1 + epBp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DS4x(YKHO, epBp):\n SG6Y = YKHO.angular_diameter_distance(epBp)\n gzVs = SG6Y * (1.0 + epBp) ** 2.0\n return gzVs",
"def KVRJ(YKHO, epBp):\n gzVs = (1 + epBp) * YKHO.Comoving_Distance(epBp)\n return gzVs",
"def YDRd(YKHO, epBp):\n gzVs = (1 + epBp) * YKHO.Comoving_Distance(epBp) / (2.0 * ... | [
"0.79278964",
"0.7798356",
"0.75086904",
"0.6878694",
"0.6640499",
"0.64590514",
"0.63060397",
"0.62948394",
"0.6230335",
"0.6054879",
"0.5883401",
"0.5830001",
"0.57934934",
"0.5703293",
"0.56915665",
"0.5675013",
"0.56322277",
"0.56094044",
"0.55899096",
"0.5586991",
"0.557... | 0.8201477 | 0 |
Compute sequence lengths for each batch element in a tensor using a binary mask. | def FGHi(YKHO, ZHfW: torch.Tensor):
return ZHfW.long().sum(-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FGHi(ZHfW: torch.Tensor):\n return ZHfW.long().sum(-1)",
"def FGHi(ZHfW: torch.BoolTensor) -> ht2j.LongTensor:\n return ZHfW.sum(-1)",
"def u54L(aWuw):\n CceE = ZylS.sign(ZylS.abs(aWuw))\n u54L = ZylS.cast(ZylS.reduce_sum(CceE, axis=1), ZylS.int32)\n ZHfW = ZylS.cast(ZylS.expand_dims(CceE, -... | [
"0.7909698",
"0.7882353",
"0.6812539",
"0.6645065",
"0.6404213",
"0.63116467",
"0.628978",
"0.61880934",
"0.6063069",
"0.6060494",
"0.6014021",
"0.5968722",
"0.593946",
"0.58760476",
"0.5818447",
"0.58059365",
"0.5749245",
"0.56792086",
"0.5635178",
"0.5570334",
"0.55680794",... | 0.7809736 | 2 |
Test that token is not created if user doesn`t exists | def i_2a(YKHO):
pB3N = {'email': 'test1@test.com', 'password': 'password'}
Ylbp = YKHO.client.post(pEkX, pB3N)
YKHO.assertNotIn('token', Ylbp.data)
YKHO.assertEquals(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i_2a(YKHO):\n Ylbp = YKHO.client.post(pEkX, YKHO.mock_user)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertNotIn('token', Ylbp.data)",
"def YDIB(YKHO):\n Vt89 = {'email': 'testuser@gmail.com', 'password': 'Testpass12'}\n geh0 = YKHO.client.post(m7ok, Vt89)\n YK... | [
"0.7856906",
"0.77536523",
"0.77330077",
"0.7648511",
"0.7579056",
"0.7545252",
"0.75082964",
"0.74734324",
"0.7413778",
"0.73526865",
"0.73489654",
"0.73449314",
"0.732971",
"0.73059464",
"0.72771466",
"0.7242528",
"0.72175646",
"0.7217404",
"0.7178604",
"0.7176463",
"0.7172... | 0.76987785 | 3 |
Test retrieving profile for logged user | def DOw2(YKHO):
Ylbp = YKHO.client.get(XiK1)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
YKHO.assertEqual(Ylbp.data, {'name': YKHO.user.name, 'email': YKHO.user.email, 'time_zone': 'Europe/Moscow'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuRs(YKHO):\n geh0 = YKHO.client.get(MQNu)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(geh0.data, {'name': YKHO.user.name, 'email': YKHO.user.email})",
"def PFTI(YKHO):\n Aofo = YKHO.client.get('/profile/1')\n YKHO.assertIn(b'In house:', Aofo.data)",
"def Tjjd(Y... | [
"0.8034919",
"0.79708683",
"0.7885502",
"0.78722656",
"0.78630054",
"0.7850485",
"0.7841248",
"0.7811497",
"0.7809593",
"0.78094697",
"0.7796063",
"0.7733787",
"0.7718614",
"0.7688663",
"0.7685976",
"0.7667588",
"0.76559615",
"0.7568242",
"0.75580114",
"0.74441457",
"0.743025... | 0.76149094 | 17 |
replace spaces with %20 | def jC8X(bD7m):
vdRk = bD7m.replace(' ', '%20')
' add /index.html where necessary '
if bD7m[-1:] == '/':
vdRk += 'index.html'
elif bD7m[-5:].find('.') == -1:
vdRk += '/index.html'
return vdRk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def We_H(yzQ0, u54L):\n return yzQ0.strip().replace(' ', '%20')",
"def We_H(iBIi):\n return iBIi.replace(' ', '%20')",
"def t123(YKHO, bD7m):\n return bD7m.replace(' ', '%20').replace('(', '%28').replace(')', '%29').replace('\"', '%22')",
"def yKK1(l5Ny, u54L):\n return l5Ny.rstrip().replace(' ',... | [
"0.747526",
"0.7397056",
"0.7385226",
"0.7369369",
"0.7166548",
"0.6731469",
"0.66903615",
"0.64442766",
"0.6324205",
"0.6253393",
"0.61330336",
"0.61279285",
"0.60966134",
"0.607538",
"0.60677725",
"0.6043515",
"0.6026315",
"0.6019534",
"0.59961283",
"0.5958039",
"0.59519595... | 0.0 | -1 |
Close and clean up source reader. Will be called when StreamBuffer stops or if an exception is raised during read and append loop. | def DDI8(YKHO) -> None:
YKHO._data_read_thread_exit.set()
YKHO._plc_raw_reader.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fFx9(YKHO):\n if YKHO.reader is not None:\n YKHO.reader.close()",
"def DDI8(YKHO):\n YKHO._raw_stream.close()",
"def DDI8(YKHO):\n YKHO.p.close(YKHO.inStream)",
"def DDI8(YKHO):\n if YKHO.closed:\n return\n YKHO._stream.close()\n YKHO._stream = None",
"def DDI8(YKHO):\n ... | [
"0.6731178",
"0.6546805",
"0.63237774",
"0.63179237",
"0.627804",
"0.62592274",
"0.6205713",
"0.61669207",
"0.61302084",
"0.60671246",
"0.5996146",
"0.5967336",
"0.59638184",
"0.5956088",
"0.5949534",
"0.59438324",
"0.59171486",
"0.58929074",
"0.5887916",
"0.57966757",
"0.572... | 0.6441269 | 2 |
Convert XML derived dict to tf.Example proto. Notice that this function normalizes the bounding box coordinates provided by the raw data. | def m_2V(nPrm, jYte, Kp9k, vdTK=False):
p4m8 = Hy7s.path.join(Kp9k, nPrm['filename'])
with ZylS.gfile.GFile(p4m8, 'rb') as hOYR:
_gs9 = hOYR.read()
KlzJ = xDSY.BytesIO(_gs9)
LNo8 = uGYG.Image.open(KlzJ)
if LNo8.format != 'JPEG':
raise ValueError('Image format not JPEG')
H5ew = HB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iQ38(YKHO, qDjf: MutableMapping[str, Any], PU1l: Mapping[str, Any]) -> QLeb:\n p4m8 = PU1l['image_path_or_name']\n a2jN = Hy7s.path.basename(p4m8)\n g3qh = PU1l.get('image_fobj', ZylS.io.gfile.GFile(p4m8, 'rb'))\n IcBZ, yOrK = N_vL.image_to_jpeg(fobj=g3qh, filename=a2jN)\n Vanz = 'JPEG'\n H5e... | [
"0.64853275",
"0.62820524",
"0.61581874",
"0.6119248",
"0.60627395",
"0.59382325",
"0.5928884",
"0.588166",
"0.58803463",
"0.5863715",
"0.58418375",
"0.5819398",
"0.58181757",
"0.578881",
"0.5782654",
"0.57494575",
"0.57492685",
"0.5719735",
"0.57126236",
"0.5693452",
"0.5693... | 0.5852231 | 10 |
Transform a Python dictionary object to the string format expected by Spec | def kg7k(dict):
nPrm = ''
for H5ew, wEf2 in dict.items():
if isinstance(wEf2, dict):
for XYUT, GuY_ in iter(wEf2.items()):
if XYUT is None:
nPrm += str(H5ew) + T2Pq + str(GuY_) + T2Pq
else:
nPrm += ''.join([str(H5ew), '\... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kjxD(Csk6):\n yxzR = xDSY.StringIO()\n KFPx(Csk6, output=yxzR)\n return yxzR.getvalue()",
"def Rekt(YKHO) -> str:\n kcsq = []\n for H5ew, BWXx in YKHO.__dict__.items():\n if isinstance(BWXx, dict):\n kcsq.append(H5ew)\n kcsq.extend('\\n'.join(['Key: {:24}\\tValue: ... | [
"0.6936573",
"0.68353754",
"0.6636121",
"0.6621528",
"0.66060406",
"0.65788347",
"0.65639365",
"0.6415574",
"0.63642925",
"0.6269988",
"0.62683415",
"0.62228703",
"0.6196243",
"0.61843646",
"0.6159893",
"0.6137677",
"0.61336774",
"0.61224455",
"0.6096647",
"0.60770315",
"0.60... | 0.59703743 | 30 |
Return the string representing the data part of the message. | def j9to(YKHO, nPrm, SLLj):
jpnV = ''
if SLLj in (kQI7, R162, rxky):
jpnV = str(nPrm)
elif SLLj == DAhv:
jpnV = kg7k(nPrm)
elif tqVf.isArrayType(SLLj):
jpnV = nPrm.tostring()
if len(jpnV) > 0:
jpnV += T2Pq
return jpnV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BCcA(YKHO):\n Nqlg = []\n Nqlg.append(YKHO.request + ' ' + i5Ia)\n Nqlg.extend(['%s: %s' % (d7pR, YKHO.args[d7pR]) for d7pR in YKHO.args])\n nPrm = '\\r\\n'.join(Nqlg) + '\\r\\n\\r\\n'\n assert DsIt(nPrm), 'Bad generated message: ' + nPrm\n return nPrm",
"def LUcQ(YKHO) -> str:\n return ... | [
"0.7773438",
"0.7150623",
"0.7020451",
"0.6912867",
"0.6912867",
"0.68851477",
"0.68327284",
"0.6735287",
"0.66896284",
"0.6678881",
"0.6673185",
"0.6651609",
"0.66341513",
"0.6586051",
"0.6586051",
"0.6510055",
"0.6506211",
"0.6494798",
"0.6494798",
"0.6494798",
"0.6494798",... | 0.6789063 | 7 |
Constructor If called without arguments, message is supposed to be read from stream. Otherwise, the 'init' method is called with the specified arguments, for creating a message from arguments. | def FIMM(YKHO, *qIxc, **B2fa):
vuGJ.__init__(YKHO, '<IiiiIIiiIII80s')
if len(qIxc) > 0:
YKHO.init(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, LaVg=None, *qIxc, **B2fa):\n super(LuKW, YKHO).__init__(LaVg, *qIxc, **B2fa)\n YKHO.__initialized = True",
"def FIMM(YKHO, Ol8d: str) -> None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def F... | [
"0.77373403",
"0.72072816",
"0.71794885",
"0.71794885",
"0.71774596",
"0.7153903",
"0.7153903",
"0.7153903",
"0.7153903",
"0.7153903",
"0.7153903",
"0.7153903",
"0.7153903",
"0.7153903",
"0.7153903",
"0.71381134",
"0.70832187",
"0.70832187",
"0.70832187",
"0.70472133",
"0.701... | 0.66334254 | 40 |
Adds a lexical unit that part of this synset to the list of lexical units | def e5CE(YKHO, PXGI):
YKHO._lexunits.append(PXGI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wBU7(YKHO, rYO3):\n rYO3 = YKHO.model._get_units_obj(rYO3)\n try:\n l8Fj = YKHO.model.get_units_by_name(rYO3.name)\n except KeyError:\n l8Fj = None\n if l8Fj:\n assert rYO3.uniquify_tuple == l8Fj.uniquify_tuple\n rYO3 = l8Fj\n else:\n rYO3.name = YKHO._uniquify... | [
"0.60551524",
"0.6053732",
"0.5924283",
"0.5544305",
"0.5539073",
"0.55372864",
"0.55254465",
"0.5516368",
"0.551075",
"0.55055135",
"0.54949015",
"0.5470546",
"0.5450033",
"0.54382974",
"0.543698",
"0.54336",
"0.54334307",
"0.54152876",
"0.54115933",
"0.54029685",
"0.5380608... | 0.780608 | 0 |
This method iterates recursively through the hyponyms of this synset to get all paths that connect this synset with a leaf node. A path is complete if it ends with a leaf node. All possible paths are returned. Each path is a list of nodes. | def X9MT(YKHO):
ckRy = []
bPaR = YKHO._direct_hyponyms
if YKHO.is_leaf():
ckRy = [[YKHO]]
for Z9ND in bPaR:
for YAiU in Z9ND.hyponym_paths():
YAiU.append(YKHO)
ckRy.append(YAiU)
return ckRy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K33R(YKHO):\n ckRy = []\n Ycp1 = YKHO._direct_hypernyms\n if YKHO.is_root():\n ckRy = [[YKHO]]\n for chnU in Ycp1:\n for YAiU in chnU.hypernym_paths():\n YAiU.append(YKHO)\n ckRy.append(YAiU)\n return ckRy",
"def VU06(YKHO):\n bPaR = []\n for pmON in Y... | [
"0.7422237",
"0.65051013",
"0.63543946",
"0.62730676",
"0.626657",
"0.6222041",
"0.6086637",
"0.60478187",
"0.6000243",
"0.5959211",
"0.5935161",
"0.59281963",
"0.5876433",
"0.58762366",
"0.58679485",
"0.58576244",
"0.58576244",
"0.58333397",
"0.580117",
"0.5782998",
"0.57374... | 0.7799485 | 0 |
This returns the log of the mean of the notlogged data this version of the function requires a dense matrix, so might be memory hungry? But it is super fast | def h3eR(WKvO):
return oyIN.log(oyIN.sum(oyIN.exp(WKvO) - 1) / WKvO.shape[1] + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hj39(WKvO, tpio):\n return X0th(WKvO, tpio) - oyIN.log(WKvO.size(tpio))",
"def xZUD(WKvO):\n return oyIN.log(oyIN.sum(WKvO.expm1()) / WKvO.shape[1] + 1)",
"def hj39(LVAh):\n Ep8u = LVAh.size(0)\n ekHH = LVAh.size(1)\n f1FK = ht2j.max(LVAh, dim=1)[0]\n M1LV = f1FK.view(Ep8u, -1)\n hj39 ... | [
"0.70621765",
"0.6809297",
"0.6742798",
"0.6663161",
"0.6564605",
"0.65064085",
"0.6455784",
"0.63887745",
"0.6359034",
"0.62956625",
"0.6271695",
"0.6266449",
"0.62280035",
"0.6225644",
"0.6224636",
"0.6203908",
"0.6190347",
"0.6178793",
"0.61729896",
"0.6166792",
"0.615822"... | 0.67587495 | 2 |
Splits amount according to the shares dict | def lGoR(Z5kt, iTlw, llJI):
fCpq = sum(iTlw.values())
u4Ys = {UTX6: weUZ * Z5kt // fCpq for UTX6, weUZ in iTlw.items() if UTX6 != llJI}
zhX6 = sum(u4Ys.values())
u4Ys[llJI] = Z5kt - zhX6
u4Ys = {UTX6: Z5kt for UTX6, Z5kt in u4Ys.items() if Z5kt > 0}
return u4Ys | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p48_(QZwI, VECZ, YHjg):\n YHjg['currency'] = QZwI\n YHjg['amount'] = ''\n for or8S, bTKY in enumerate(VECZ.split(' ')[1:]):\n if bTKY == '':\n continue\n if bTKY[0].isdigit():\n YHjg['amount'] += bTKY\n elif 'Mio' in bTKY:\n YHjg['amount'] += ' ' +... | [
"0.6833782",
"0.6734144",
"0.6233229",
"0.6190128",
"0.6137208",
"0.5841906",
"0.5720234",
"0.5711589",
"0.56692106",
"0.5640182",
"0.55743253",
"0.5546221",
"0.5505224",
"0.5499333",
"0.5477827",
"0.5415766",
"0.53673935",
"0.53503126",
"0.5298688",
"0.5277851",
"0.52672994"... | 0.7375583 | 0 |
Initializes an user instance | def FIMM(YKHO, CBIr):
if isinstance(CBIr, dict):
YKHO.id = CBIr['id']
YKHO.name = CBIr['first_name']
YKHO.username = CBIr.get('username', None)
YKHO.last_name = CBIr.get('last_name', None)
elif isinstance(CBIr, tuple):
YKHO.id = CBIr[0]
YKHO.name = CBIr[1]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN():\n lYUQ(P4t4)\n k4bZ()",
"def CRQA(YKHO):\n pass",
"def uIcm(YKHO, *jzdc, **YSA3):\n vj5u.RequestHandler.initialize(YKHO, *jzdc, **YSA3)\n PObu = YKHO.read_secure_cookie('user_id')\n YKHO.user = PObu and mv1M.by_id(int(PObu))",
"def uIcm(YKHO, *jzdc, **YSA3):\n vj5u.RequestHan... | [
"0.7244965",
"0.72124374",
"0.7170146",
"0.71537596",
"0.707521",
"0.7023502",
"0.70072836",
"0.6979637",
"0.6969571",
"0.6969103",
"0.6947331",
"0.68767965",
"0.68548805",
"0.6801345",
"0.66559297",
"0.65658927",
"0.65425",
"0.65213615",
"0.651309",
"0.6447022",
"0.6406627",... | 0.68878704 | 11 |
Returns True if n is prime. | def FBNJ(exwG):
if exwG == 1:
return False
if exwG == 2:
return True
if exwG == 3:
return True
if exwG % 2 == 0:
return False
if exwG % 3 == 0:
return False
YRbF = 5
yzQ0 = 2
while YRbF * YRbF <= exwG:
if exwG % YRbF == 0:
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG):\n return T1qg(exwG)",
"def JVAb(Emd4, exwG):\n if exwG <= 1:\n return False\n if exwG <= 3:\n return True\n if exwG % 2 == 0 or exwG % 3 == 0:\n return False\n YRbF = 5\n while YRbF * YRbF <= exwG:\n if exwG... | [
"0.8514796",
"0.85053056",
"0.8477928",
"0.84145856",
"0.8407615",
"0.84051764",
"0.8387878",
"0.83508223",
"0.83166903",
"0.8312641",
"0.8305638",
"0.8303322",
"0.83000225",
"0.8271",
"0.8247903",
"0.8247857",
"0.8245307",
"0.8236927",
"0.8229151",
"0.82214314",
"0.8210172",... | 0.7925613 | 53 |
Reshapes the data at most. | def KVH6(YKHO, input=None):
if input is not None and YKHO.result is None:
YKHO.result = YKHO.node(input)
elif YKHO.result is None:
raise ValueError('There must be some input or a previously calculated result')
return YKHO.result.view(*YKHO.G.d_out) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q3V_(nPrm):\n return nMvt.reshape(x=nPrm, shape=(nMvt.shape(nPrm)[0], 1, OKZQ))",
"def RjLQ(YKHO, nPrm):\n AVl2 = [int(zNig / 2) for zNig in nPrm.shape[1:]]\n LP5v = [int(zNig / 2) for zNig in YKHO.shape]\n bvVw = LP5v\n JAO8 = []\n for YRbF, LihS in enumerate(LP5v):\n if YKHO.shape[... | [
"0.7622886",
"0.73855644",
"0.6865512",
"0.6731449",
"0.66967636",
"0.66782326",
"0.66300786",
"0.6627189",
"0.66265833",
"0.6570942",
"0.6532213",
"0.65025",
"0.65007585",
"0.6497873",
"0.6483913",
"0.6457823",
"0.64163244",
"0.6345195",
"0.63281554",
"0.6301488",
"0.6236945... | 0.0 | -1 |
Takes a label (integer) and gives a embedding vector. | def KVH6(YKHO, input=None):
if input is not None and YKHO.result is None:
YKHO.result = YKHO.drop(YKHO.node(input))
elif YKHO.result is None:
TZfR = []
for exwG in YKHO.input:
TZfR.append(exwG())
YKHO.result = YKHO.drop(YKHO.node(ht2j.cat(TZfR, TZfR[0].dim() - 1).type... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rOAY(_dZy, OS2C, tsWk, lhva):\n v1wX = oyIN.zeros((tsWk, lhva))\n for YRbF in range(min(len(_dZy), tsWk)):\n v1wX[YRbF, :] = OS2C.get(_dZy[YRbF])\n return v1wX",
"def BVVM(Crrw):\n global dict_words_n_vectors\n for YRbF in range(len(Crrw)):\n if Crrw[YRbF] in dCtc:\n C... | [
"0.6532496",
"0.6502031",
"0.6319459",
"0.6212767",
"0.6208754",
"0.6138993",
"0.6136243",
"0.6121542",
"0.61211216",
"0.61024183",
"0.6090279",
"0.6061709",
"0.60195214",
"0.60132194",
"0.59999126",
"0.59952104",
"0.59864914",
"0.59500647",
"0.591279",
"0.58756846",
"0.58658... | 0.0 | -1 |
Takes 3d input and gives 3d output from recurrent layers. | def KVH6(YKHO, input=None):
YKHO._repackage()
if input is not None and YKHO.result is None:
if YKHO.G.ntype == 'lstm':
YKHO.result, tZeD = YKHO.node(input, (YKHO.hidden, YKHO.state))
YKHO.hidden, YKHO.state = tZeD
else:
YKHO.result, YKHO.hidden = YKHO.node(inp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, input):\n return YKHO.layers(input)",
"def LI2u(YKHO, MVWv=None, **B2fa):\n if MVWv is None:\n MVWv = list()\n if YKHO not in MVWv:\n MVWv += [YKHO]\n Fi_Q = YKHO.incoming(prev_layers=MVWv, **B2fa)\n with ZylS.variable_scope(YKHO.layer_scope):\n YKHO... | [
"0.6373839",
"0.6285802",
"0.62217426",
"0.618699",
"0.6131762",
"0.6108942",
"0.60621095",
"0.6044154",
"0.6041587",
"0.60261834",
"0.59697473",
"0.59620094",
"0.59096473",
"0.58994746",
"0.5890211",
"0.58814704",
"0.58787155",
"0.5850529",
"0.58421",
"0.58340603",
"0.581374... | 0.5584691 | 47 |
Create Rectangle should works properly | def XmFT(YKHO):
mawX = x7Ls(1, 2, 3, 4)
assert mawX.ymin == 1
assert mawX.xmin == 2
assert mawX.ymax == 3
assert mawX.xmax == 4
mawX = x7Ls(-100, -50, -60, -25)
assert mawX.ymin == -100
assert mawX.xmin == -50
assert mawX.ymax == -60
assert mawX.xmax == -25
mawX = x7Ls(50.5, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lued(KQji, Wjb0, TVTK, H2v2):\n o4D3, ajwV = (KQji - TVTK, KQji + TVTK)\n si3g, skBL = (Wjb0 - H2v2, Wjb0 + H2v2)\n return PhJ3([PvyL(o4D3, si3g), PvyL(o4D3, skBL), PvyL(ajwV, skBL), PvyL(ajwV, si3g)])",
"def BL3B(YKHO):\n CYjz = x7Ls(10, 2, 1, 3, 12)\n YKHO.assertEqual(CYjz.width, 10)\n YK... | [
"0.75161445",
"0.75066745",
"0.74981946",
"0.7460654",
"0.74284446",
"0.74284446",
"0.73873633",
"0.73571545",
"0.72350025",
"0.721613",
"0.7211104",
"0.71540064",
"0.7129443",
"0.706263",
"0.7053608",
"0.7037065",
"0.6890046",
"0.6878401",
"0.68750715",
"0.6873973",
"0.68692... | 0.7070902 | 13 |
Create Rectanle with invalid argumants should raise ValueError | def H0ZO(YKHO):
with trZe.raises(ValueError):
mawX = x7Ls(300, 100, 500, 50)
with trZe.raises(ValueError):
mawX = x7Ls(300, 100, 200, 500)
with trZe.raises(ValueError):
mawX = x7Ls(300, 100, 300, 500)
with trZe.raises(ValueError):
mawX = x7Ls(300, 500, 400, 500)
with ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HuIz(YKHO):\n with trZe.raises(ValueError):\n BH6n('yolo', 'norm', 0, 2, low=+2, high=-2, shape=(4, 4))\n with trZe.raises(ValueError):\n BH6n('yolo', 'norm', 0, 2, low=+2, high=+2, shape=(4, 4))",
"def Xe5R(YKHO):\n with YKHO.assertRaises(ValueError) as WKvO:\n Mkmy = x7Ls(1, -... | [
"0.6592457",
"0.642854",
"0.6408988",
"0.6350111",
"0.62996316",
"0.62801296",
"0.6191416",
"0.6190356",
"0.6157614",
"0.61277187",
"0.60498405",
"0.60302",
"0.5976198",
"0.59727985",
"0.59319925",
"0.5924095",
"0.59218925",
"0.5918343",
"0.58938265",
"0.5893404",
"0.58882815... | 0.7249291 | 0 |
Returns a queryset of the nodes currently associated with the sample. | def Ziit(YKHO):
return YKHO._get_tree_queryset() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RyBj(YKHO):\n RyBj = []\n for Q6kx in YKHO.nodes:\n if 'querynode' == Q6kx.get('infos').get('type'):\n RyBj.append(Q6kx)\n return RyBj",
"def CDNe(YKHO):\n return YKHO.__allNodes",
"def AyQV(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n BdN0 = YKHO.copy()\n BdN0.... | [
"0.6406302",
"0.61110187",
"0.6077181",
"0.6070868",
"0.60615706",
"0.60325384",
"0.60325384",
"0.60325384",
"0.60230476",
"0.6012783",
"0.5995669",
"0.5952224",
"0.5952224",
"0.5904378",
"0.58481956",
"0.58314383",
"0.578583",
"0.57762283",
"0.5760965",
"0.5700851",
"0.56826... | 0.7009298 | 0 |
Returns all of the leaf nodes of the tree as a list. | def WKa2(YKHO):
return YKHO.nodes.filter(lft=FYrf.F('rght') - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pyLA(YKHO) -> list:\n return YKHO._leafs[:]",
"def x7hD(J_Es):\n bCES = []\n if J_Es.left.is_leaf() and J_Es.right.is_leaf():\n bCES.append(J_Es)\n return bCES\n elif J_Es.left.is_leaf():\n bCES.extend(x7hD(J_Es.right))\n bCES.append(J_Es)\n return bCES\n eli... | [
"0.83672225",
"0.8083395",
"0.8027317",
"0.76761544",
"0.76495415",
"0.7600962",
"0.7573438",
"0.7530191",
"0.75085807",
"0.7445919",
"0.736591",
"0.73657054",
"0.7359157",
"0.735502",
"0.7319668",
"0.7307305",
"0.7307029",
"0.7294855",
"0.71958345",
"0.71133345",
"0.7107463"... | 0.7769531 | 3 |
Returns the number of nodes in the tree including the root. | def kRap(YKHO):
return YKHO.process_tree.get_descendant_count() + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kRap(YKHO):\n return YKHO._root.count()",
"def a74P(YKHO, tk5Y):\n if not tk5Y:\n return 0\n return 1 + YKHO.countNodes(tk5Y.left) + YKHO.countNodes(tk5Y.right)",
"def UHFx(YKHO):\n return YKHO.__tree.node_count",
"def Kytq(YKHO):\n if YKHO.is_empty():\n return 0\n elif YK... | [
"0.8757398",
"0.8528377",
"0.8497665",
"0.8439223",
"0.84229153",
"0.8314511",
"0.831333",
"0.8291999",
"0.82824135",
"0.8224706",
"0.820351",
"0.80985975",
"0.8073603",
"0.80503225",
"0.8043466",
"0.8043466",
"0.8023205",
"0.7930295",
"0.7928673",
"0.7924355",
"0.7912737",
... | 0.7773985 | 25 |
Get all nodes from the tree that have the specified process. | def Pp5p(YKHO, qxeD, x0SS=True):
if x0SS:
qxeD = ASOO.strip_uuid(qxeD)
return YKHO._get_tree_queryset().filter(process__uuid_full__startswith=qxeD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pr6A(YKHO, NHZE):\n if not SeR2.objects.filter(type=NHZE).exists():\n raise ValueError('{} is not a valid process type'.format(NHZE))\n return YKHO._get_tree_queryset().filter(process__type_id=NHZE)",
"def bIcN(YKHO, *qIxc, **B2fa):\n if 'uuid' in B2fa:\n B2fa['uuid'] = ASOO.strip_uuid... | [
"0.70144504",
"0.66335785",
"0.62922233",
"0.5932579",
"0.57972205",
"0.5690171",
"0.5633599",
"0.5568902",
"0.5567874",
"0.55014604",
"0.54867184",
"0.54830223",
"0.5449074",
"0.54370844",
"0.53813094",
"0.5343397",
"0.53061706",
"0.5292066",
"0.5291635",
"0.528982",
"0.5272... | 0.74077183 | 0 |
Should return a http error 404 and a message 'specified template does not exist'. | def MpeN(YKHO):
p8MC = 'foo'
im04 = g6r9.get(f'/templates/{p8MC}')
Aofo = im04.json()
aEqx = {'message': 'The specified template does not exist', 'code': 'TemplateNotFound'}
YKHO.assertDictEqual(aEqx, Aofo)
YKHO.assertEqual(im04.status_code, 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x2JL(YKHO):\n try:\n YKHO.service.get_template('Non_Existant')\n YKHO.fail('No ServiceError raised by non-existant template')\n except rDL_ as ex:\n YKHO.assertEqual(aTqo.message, \"There is no template called 'Non_Existant' at this service\")",
"def BPod(YKHO):\n geh0 = YKHO.ap... | [
"0.8201116",
"0.8021696",
"0.7956505",
"0.79333884",
"0.7875378",
"0.7814681",
"0.7746407",
"0.76908815",
"0.7687622",
"0.75513756",
"0.7548562",
"0.75406986",
"0.7494457",
"0.7468443",
"0.7465183",
"0.7465183",
"0.7441508",
"0.743449",
"0.7427313",
"0.7424917",
"0.7410876",
... | 0.8741455 | 0 |
Should return a http error 404 and a message 'specified template does not exist'. | def q911(YKHO):
p8MC = 'foo'
im04 = g6r9.patch(f'/templates/{p8MC}', json={})
Aofo = im04.json()
aEqx = {'message': 'The specified template does not exist', 'code': 'TemplateNotFound'}
YKHO.assertDictEqual(aEqx, Aofo)
YKHO.assertEqual(im04.status_code, 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MpeN(YKHO):\n p8MC = 'foo'\n im04 = g6r9.get(f'/templates/{p8MC}')\n Aofo = im04.json()\n aEqx = {'message': 'The specified template does not exist', 'code': 'TemplateNotFound'}\n YKHO.assertDictEqual(aEqx, Aofo)\n YKHO.assertEqual(im04.status_code, 404)",
"def x2JL(YKHO):\n try:\n ... | [
"0.8741455",
"0.8201116",
"0.8021696",
"0.7956505",
"0.79333884",
"0.7814681",
"0.7746407",
"0.76908815",
"0.7687622",
"0.75513756",
"0.7548562",
"0.75406986",
"0.7494457",
"0.7468443",
"0.7465183",
"0.7465183",
"0.7441508",
"0.743449",
"0.7427313",
"0.7424917",
"0.7410876",
... | 0.7875378 | 5 |
Should return a http error 404 and a message 'specified template does not exist'. | def rNEx(YKHO):
p8MC = 'unk'
im04 = g6r9.delete(f'/templates/{p8MC}')
Aofo = im04.json()
aEqx = {'message': 'The specified template does not exist', 'code': 'TemplateNotFound'}
YKHO.assertDictEqual(aEqx, Aofo)
YKHO.assertEqual(im04.status_code, 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MpeN(YKHO):\n p8MC = 'foo'\n im04 = g6r9.get(f'/templates/{p8MC}')\n Aofo = im04.json()\n aEqx = {'message': 'The specified template does not exist', 'code': 'TemplateNotFound'}\n YKHO.assertDictEqual(aEqx, Aofo)\n YKHO.assertEqual(im04.status_code, 404)",
"def x2JL(YKHO):\n try:\n ... | [
"0.8741283",
"0.8202523",
"0.80220366",
"0.7955503",
"0.7934539",
"0.78754866",
"0.7813631",
"0.7689857",
"0.76870793",
"0.7550237",
"0.75474787",
"0.7539923",
"0.74933916",
"0.74672675",
"0.74641067",
"0.74641067",
"0.74405396",
"0.74334157",
"0.74267185",
"0.7423984",
"0.74... | 0.77468604 | 7 |
Get the coordinates of the cell that pt = (x,y) falls in. | def tiUd(Xf84):
return (int(Xf84[0] // jzdc), int(Xf84[1] // jzdc)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tiUd(YKHO, Xf84):\n return (int(Xf84[0] // YKHO.a), int(Xf84[1] // YKHO.a))",
"def uDxK(YKHO, WKvO, LVAh):\n return YKHO.grid[LVAh, WKvO]",
"def wHeb(YKHO, BHsk):\n for WKvO in range(len(YKHO.cell_x)):\n if BHsk[0] >= YKHO.cell_x[WKvO] and BHsk[0] <= YKHO.cell_x[WKvO] + YKHO.cell_size:\n ... | [
"0.8275171",
"0.7619234",
"0.7504589",
"0.73647934",
"0.7238733",
"0.7114471",
"0.7106591",
"0.6987829",
"0.69733703",
"0.69653416",
"0.69414",
"0.6889359",
"0.6862875",
"0.6858249",
"0.68545693",
"0.6846717",
"0.68415534",
"0.6824136",
"0.6803303",
"0.67963445",
"0.6751741",... | 0.8010507 | 1 |
Return the superoperator Lindblad term of the Lindblad operator `C` Return ``SPre(C) SPost(C.adjoint()) (1/2) santi_commutator(C.adjoint()C)``. These are the superoperators | def Mmst(Nq1b):
if OjXW(Nq1b):
return OUvT
return MTiy(Nq1b) * etr5(Nq1b.adjoint()) - OxRx / 2 * ToO9(Nq1b.adjoint() * Nq1b) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def la4d(YKHO):\n return type(YKHO)(YKHO.parent(), YKHO._simplify(-YKHO._express))",
"def q1Vw(KkY2):\n if KkY2.type == 'oper':\n Vq6k = 0\n for tPBh in [[0, 2], [1, 2], [2, 0], [2, 1], [2, 2]]:\n for sLh9 in [[0, 2], [1, 2], [2, 0], [2, 1], [2, 2]]:\n lFCn = yWTO.te... | [
"0.5604684",
"0.54941183",
"0.5458069",
"0.54444814",
"0.52984166",
"0.52971745",
"0.52864414",
"0.5285542",
"0.5270501",
"0.5242228",
"0.5215609",
"0.5205951",
"0.5193834",
"0.51228446",
"0.51023436",
"0.5061484",
"0.50338817",
"0.5018532",
"0.5006617",
"0.49908182",
"0.4980... | 0.75950086 | 0 |
r"""Return the Liouvillian superoperator associated with `H` and `Ls` | def gwuw(C7Ls, sly7=None):
if sly7 is None:
sly7 = []
elif isinstance(sly7, aLMY):
sly7 = sly7.matrix.ravel().tolist()
frDm = [-pdhd * _jAF(C7Ls)]
frDm.extend([Mmst(aPd6) for aPd6 in sly7])
return iUyS.create(*frDm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q1Vw(KkY2):\n if KkY2.type == 'oper':\n Vq6k = 0\n for tPBh in [[0, 2], [1, 2], [2, 0], [2, 1], [2, 2]]:\n for sLh9 in [[0, 2], [1, 2], [2, 0], [2, 1], [2, 2]]:\n lFCn = yWTO.tensor(yWTO.ket([tPBh[0]], dim=[3]), yWTO.ket([tPBh[1]], dim=[3])).dag()\n PCQ... | [
"0.66157997",
"0.6448992",
"0.6081125",
"0.6070775",
"0.5854614",
"0.558322",
"0.552592",
"0.5465405",
"0.5462971",
"0.52896434",
"0.5233691",
"0.5229577",
"0.5228568",
"0.52004325",
"0.5197161",
"0.51892775",
"0.5182485",
"0.51797944",
"0.51164424",
"0.5114397",
"0.51095915"... | 0.57781404 | 5 |
Return a list of all nodes in the graph. | def Ziit(YKHO):
return list(YKHO.keys()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AyQV(YKHO):\n return list(YKHO.graph.nodes)",
"def vTxU(YKHO):\n return [[Q6kx] for Q6kx in YKHO.graph.nodes]",
"def Ziit(YKHO):\n Ziit = list()\n for Q6kx in YKHO._nodes:\n if isinstance(Q6kx, Q1Kq):\n Ziit += Q6kx.nodes\n else:\n Ziit.append(Q6kx)\n retu... | [
"0.8472086",
"0.8338669",
"0.83107734",
"0.83003837",
"0.82076037",
"0.82002985",
"0.8135488",
"0.81194836",
"0.8071171",
"0.80481184",
"0.8026572",
"0.7999312",
"0.79447746",
"0.7841381",
"0.7841381",
"0.7815081",
"0.77605134",
"0.7730046",
"0.77066123",
"0.7670032",
"0.7667... | 0.7293438 | 41 |
Add a new edge to the graph. connecting the node containing 'val1' and the node containing 'val2'. If either val1 or val2 are not already present in the graph, they should be added. If an edge already exists, overwrite it. | def rz7z(YKHO, wNuL, Mlb1, upAO=0):
YKHO.setdefault(wNuL, {})
YKHO.setdefault(Mlb1, {})
if Mlb1 not in YKHO[wNuL]:
YKHO[wNuL][Mlb1] = upAO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, wNuL, Mlb1):\n if wNuL not in YKHO._g:\n YKHO.add_node(wNuL)\n if Mlb1 not in YKHO._g:\n YKHO.add_node(Mlb1)\n if Mlb1 == wNuL:\n raise ValueError('Cannot have a self-referential edge.')\n if Mlb1 in YKHO._g[wNuL]:\n YKHO._g[wNuL].remove(Mlb1)\n YKHO._g[wNu... | [
"0.8606805",
"0.8387147",
"0.763467",
"0.74387056",
"0.7204296",
"0.7203375",
"0.71598744",
"0.71544975",
"0.7053013",
"0.7027295",
"0.70252305",
"0.7019469",
"0.70174515",
"0.69757086",
"0.69120944",
"0.6901864",
"0.6885757",
"0.6885566",
"0.68544376",
"0.6847653",
"0.681570... | 0.77042204 | 2 |
True if node containing 'val' is in the graph, False if not. | def Ierk(YKHO, wEf2):
return wEf2 in YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ierk(YKHO, wEf2):\n return wEf2 in YKHO._g",
"def yWYp(pNZh, BWXx):\n for Q6kx in pNZh:\n if Q6kx.value == BWXx:\n return True\n return False",
"def vtfo(YKHO, wEf2):\n if wEf2 == YKHO.val:\n return True\n if wEf2 < YKHO.val and YKHO.left:\n return YKHO.left.e... | [
"0.8717857",
"0.75156194",
"0.71927726",
"0.70918417",
"0.7081533",
"0.674753",
"0.67297935",
"0.66340816",
"0.66089153",
"0.6538612",
"0.6538612",
"0.65146697",
"0.63801897",
"0.6296466",
"0.6280682",
"0.62758595",
"0.62709814",
"0.6250638",
"0.6247763",
"0.62336236",
"0.623... | 0.8466136 | 2 |
Return the list of all nodes connected to the node containing. 'Val' by edges; raises an error if val is not in the graph. | def A_IW(YKHO, wEf2):
if wEf2 in YKHO:
return list(YKHO[wEf2].keys())
else:
raise ValueError('Value not in graph') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A_IW(YKHO, wEf2):\n if wEf2 in YKHO._g:\n return YKHO._g[wEf2]\n else:\n raise ValueError('Node not in graph')",
"def Ziit(YKHO):\n return list(set(YKHO._graph.keys() + [WKvO for WKvO in Hs6x.chain.from_iterable(YKHO._graph.values())]))",
"def qIRx(YKHO, BWXx):\n Q6kx = YKHO.get_n... | [
"0.6591919",
"0.6460177",
"0.62699753",
"0.61977684",
"0.6159545",
"0.6147275",
"0.6131371",
"0.6077147",
"0.6045097",
"0.6038219",
"0.6025909",
"0.6000624",
"0.59691715",
"0.59526867",
"0.5949424",
"0.5930631",
"0.5928426",
"0.58593196",
"0.58513683",
"0.58118176",
"0.577738... | 0.6982369 | 0 |
Determine if two elements from gates' matrices are equal. This is to be used in __eq__ method when comparing matrices elementwise. | def k7E2(U6D_, pKgL):
by6d = FCE9.N(FCE9.expand(U6D_) - FCE9.expand(pKgL))
try:
return oyIN.allclose(float(FCE9.re(by6d)) + 1j * float(FCE9.im(by6d)), 0)
except TypeError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IzcV(YKHO, Oa1e, jzdc, Fg_i):\n return YKHO.matrix[jzdc][Fg_i] == Oa1e[jzdc][Fg_i]",
"def IzcV(YKHO, jzdc, Fg_i):\n return jzdc.X[0] == Fg_i.X[0]",
"def vTRD(*qIxc, **B2fa):\n return nAU3.GraphicsMatrix_IsEqual(*qIxc, **B2fa)",
"def xa14(YKHO, Elif):\n return oyIN.all(YKHO.grid == Elif.grid) ... | [
"0.8073091",
"0.773882",
"0.76414824",
"0.75366604",
"0.7464264",
"0.74062115",
"0.7390346",
"0.7357049",
"0.73563695",
"0.72895056",
"0.72576296",
"0.7208506",
"0.7165344",
"0.71389234",
"0.71205527",
"0.7108382",
"0.707198",
"0.70695335",
"0.7069317",
"0.7058517",
"0.704872... | 0.74924386 | 4 |
Yield successive nsized chunks from l. | def nJ0e(vC9B, exwG):
for YRbF in Ni9Y(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038751",
"0.7924752",
"0.7923082",
"0.78850657",
"0.78771824",
"0.7815519",
"0.77652335",
"0.775546",
"0.77440816",
"0.77313656",
"0.77284646",
"0.77244157",
"0.770246",
"0.76888484",
"0.76888484",
"0.766384",
"0.7656689",
"0.7655605",
"0.7655605",
"0.76455575",
"0.764555... | 0.0 | -1 |
Returns the message encapsulated in a resilient_circuits.StatusMessage object | def GuCi(Ol8d):
return Z0yE(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GuCi(YKHO) -> str:\n return qe4Y.get(YKHO, 'status_message')",
"def GuCi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'status_message')",
"def GuCi(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'status_message')",
"def dL4c():\n return Ol8d",
"def Eair(YKHO, _hkX):\n return _hkX['mes... | [
"0.7362105",
"0.7279062",
"0.7173974",
"0.7146777",
"0.7031653",
"0.69117224",
"0.69117224",
"0.68954086",
"0.6873813",
"0.6873813",
"0.68346554",
"0.68346554",
"0.68234783",
"0.68154335",
"0.6803702",
"0.67414486",
"0.67414486",
"0.67414486",
"0.67414486",
"0.67414486",
"0.6... | 0.72227 | 2 |
Returns True if at least one of the digits of k is a 7, False otherwise. >>> has_seven(3) False >>> has_seven(7) True >>> has_seven(2734) True >>> has_seven(2634) False >>> has_seven(734) True >>> has_seven(7777) True | def DeAc(G1Hx):
if G1Hx % 10 == 7:
return True
else:
if G1Hx < 10:
return False
return DeAc(G1Hx // 10) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeAc(G1Hx):\n if G1Hx % 10 == 7:\n return True\n elif G1Hx < 10:\n return False\n else:\n return DeAc(G1Hx // 10)",
"def DeAc(G1Hx):\n if G1Hx == 0:\n return False\n else:\n if G1Hx % 10 == 7:\n return True\n return DeAc(G1Hx // 10)",
"def... | [
"0.89323646",
"0.8716972",
"0.86909974",
"0.86909974",
"0.86909974",
"0.6201881",
"0.58182603",
"0.5787132",
"0.5744597",
"0.5732898",
"0.55541635",
"0.55484676",
"0.5536399",
"0.5535901",
"0.5501019",
"0.54364717",
"0.5353493",
"0.5331975",
"0.533103",
"0.53261024",
"0.53200... | 0.870721 | 2 |
load requirements from a pip requirements file | def VnMZ(Ux0P):
Nqlg = (zFiD.strip() for zFiD in open(Ux0P))
return [zFiD.strip() for zFiD in Nqlg if zFiD and (not zFiD.strip().startswith('#'))] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ks_v():\n VGiD = pmON.join('.', 'requirements.txt')\n with open(VGiD, 'r') as eHNT:\n fA3L = [zFiD.rstrip() for zFiD in eHNT]\n return fA3L",
"def jjxV():\n c4qg = (zFiD.strip() for zFiD in open('Pipfile'))\n orYQ = [zFiD for zFiD in c4qg]\n V_8U = orYQ.index('[packages]') + 1\n i... | [
"0.7206639",
"0.7191491",
"0.7187297",
"0.7138445",
"0.7138277",
"0.70911366",
"0.70401156",
"0.70233893",
"0.70084476",
"0.69288045",
"0.6917543",
"0.69035953",
"0.69035953",
"0.6900558",
"0.6823832",
"0.6820074",
"0.6802556",
"0.67198455",
"0.6716624",
"0.6715886",
"0.66736... | 0.0 | -1 |
Call the method 'init_app' to register the extensions in the flask.Flask object passed as parameter. | def ADkh(P4t4):
P4t4 = CBZq.create_admin(P4t4)
CBZq.db.init_app(P4t4)
CBZq.jwt.init_app(P4t4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GmIz(P4t4):\n P4t4.load_extension(__name__)",
"def G8o7(P4t4: Flask):\n global celery\n ZEfp = fa1d(P4t4)\n awai.init_app(P4t4)\n NCls.init_app(P4t4)\n CWnC.init_app(P4t4)\n cpYK.init_app(P4t4)\n USZ9.init_app(P4t4, NCls)",
"def ADkh(P4t4):\n B8ni.init_app(P4t4)\n NCls.init_ap... | [
"0.8419003",
"0.8123265",
"0.78876823",
"0.78860533",
"0.7876395",
"0.7791846",
"0.77611125",
"0.7569908",
"0.7517068",
"0.7115238",
"0.70913905",
"0.7017221",
"0.7005334",
"0.69883406",
"0.69103885",
"0.6856983",
"0.6853611",
"0.68268174",
"0.68209267",
"0.681811",
"0.675095... | 0.7511938 | 9 |
Load tokens from yaml file path | def RohF(dY3M):
with open(dY3M, 'r') as s2mk:
s2mk = eJb6.safe_load(s2mk)
return s2mk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TsIS():\n with open('config.yaml') as eHNT:\n GPtr = eJb6.load(eHNT, Loader=eJb6.FullLoader)\n return GPtr['token']",
"def aF8O(pmON):\n import yaml\n ytgA = None\n try:\n ytgA = open(pmON)\n nPrm = yaml.load(ytgA)\n finally:\n if ytgA:\n ytgA.close()\... | [
"0.71427613",
"0.65120596",
"0.6455739",
"0.6424273",
"0.63995874",
"0.6386262",
"0.6367284",
"0.6352151",
"0.63420117",
"0.6313702",
"0.6280708",
"0.6266853",
"0.6261813",
"0.6243691",
"0.62433827",
"0.6242728",
"0.6218907",
"0.6200927",
"0.62001157",
"0.61915505",
"0.618853... | 0.7585266 | 0 |
Get random index and token from token_key of n_pairs. | def z3CJ(tsWk, ggQl, Gdj9, xAfp):
return [(tuKI.choices(range(tsWk), k=1)[0], tuKI.choices(ggQl[Gdj9], k=1)[0]) for bGrB in range(xAfp)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thS1(tsWk, ggQl, Gdj9, OZMc):\n return tuKI.choices(ggQl[Gdj9], k=OZMc)",
"def LQUb(YKHO, mqIV=None):\n exwG = YKHO._n\n mqIV = mqIV or ()\n assert len(mqIV) == exwG - 1\n BFeB = YKHO._sorted_probs[mqIV]\n qbVo, _mSQ = zip(*BFeB)\n eOtH = tuKI.choices(qbVo, weights=_mSQ)\n return eOtH... | [
"0.7295682",
"0.6243557",
"0.62268186",
"0.6065969",
"0.60341203",
"0.60270005",
"0.5956013",
"0.5918126",
"0.58158475",
"0.5652525",
"0.5610012",
"0.55383086",
"0.55345184",
"0.55214816",
"0.5520364",
"0.54750067",
"0.54639715",
"0.5460754",
"0.5436094",
"0.5425711",
"0.5410... | 0.8430134 | 0 |
Get random list of tokens. | def thS1(tsWk, ggQl, Gdj9, OZMc):
return tuKI.choices(ggQl[Gdj9], k=OZMc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thS1(YKHO) -> x1iM[str]:\n return YKHO.tokens",
"def s2mk(YKHO):\n return YKHO._tokens",
"def sxVV(YKHO):\n list = []\n for YRbF in range(YKHO.startIdx, YKHO.endIdx + 1):\n eOtH = YKHO.sentence[YRbF]\n list.append(eOtH)\n return list",
"def LQUb(YKHO, mqIV=None):\n exwG = ... | [
"0.70490056",
"0.66292953",
"0.65045255",
"0.6496137",
"0.64705616",
"0.64627004",
"0.6452341",
"0.6452341",
"0.6452341",
"0.64327866",
"0.63970196",
"0.63891554",
"0.6357141",
"0.63449967",
"0.63168806",
"0.62767035",
"0.62677866",
"0.6198683",
"0.61903507",
"0.61640286",
"0... | 0.70597094 | 0 |
Generate a simple toy dataset. | def tUgt(tsWk, H1Y0, VEPH, On0l, s2mk):
tuK_ = []
if 'n_ppp_adverse' in On0l:
KclK = jOws(adverse=1, helper=1, unhelper=0, seq_len=tsWk, label=1, uid_len=H1Y0, uid_colname=VEPH, n_seq=On0l['n_ppp_adverse'], tokens=s2mk)
tuK_.append(KclK)
if 'n_pp_adverse' in On0l:
_oWe = jOws(adverse... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yt4s():\n return gRuP.autogen('tests/data/dummy_tabular/train.csv', seed=42, sep=',')",
"def YcwV(nPrm, QOe9=False):\n _73Q = [a1PO[0] for a1PO in nPrm if a1PO[0]]\n pan_ = oyIN.zeros((len(nPrm),), dtype=oyIN.int64)\n if not QOe9:\n for YRbF, Mau6 in enumerate(nPrm):\n if Mau6[1... | [
"0.6893019",
"0.6851491",
"0.6676897",
"0.66609156",
"0.65895075",
"0.6586603",
"0.6567052",
"0.6552706",
"0.654943",
"0.651481",
"0.65125936",
"0.640397",
"0.6397541",
"0.63666123",
"0.6334864",
"0.632577",
"0.6286122",
"0.6271696",
"0.6265446",
"0.625999",
"0.62585014",
"... | 0.0 | -1 |
Serve the index HTML | def B4n8(tg2q=tg2q):
CBIr = NCls.session.query(mv1M).filter_by(lti_user_id=tg2q.name).first()
if CBIr:
return TvZl(upB0[0].template)
else:
L03z = oywV()
return TvZl('GetUserInfo.html', lti=tg2q, form=L03z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO):\n xuug = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'index.html')\n return UbvO(xuug)",
"def d6pt():\n return (TvZl('index.html'), 200)",
"def d6pt():\n return (TvZl('index.html'), 200)",
"def d6pt():\n return P4t4.send_static_file('index.html')",
"def d6pt():... | [
"0.8685354",
"0.85523725",
"0.84890985",
"0.8468328",
"0.8451884",
"0.82966554",
"0.8292779",
"0.82886124",
"0.82686514",
"0.82686514",
"0.82643247",
"0.82445365",
"0.82445365",
"0.8232638",
"0.8232638",
"0.8232638",
"0.8232638",
"0.8232638",
"0.8232638",
"0.8232638",
"0.8232... | 0.0 | -1 |
Raise a ValueError if an array has multiple attributes | def UISj(qw7D):
if len(qw7D.att_names) > 1:
raise ValueError('Array must have a single attribute: %s' % qw7D.name)
return qw7D | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZOJM(gyIm, mWFP):\n K_Zo(gyIm, (oyIN.float, oyIN.int), (2,), mWFP)",
"def G4sA(a1PO):\n TVLI = a1PO.type\n if PFXX(TVLI):\n raise OK0X(a1PO)\n xzCw(TVLI)",
"def j3Qj(WnoK: List[str], WLRG: str, oJzq: List[str]) -> None:\n if not set(WnoK).issubset(oJzq):\n raise PLdA(f'{WLRG} v... | [
"0.68142027",
"0.645691",
"0.61964995",
"0.61891514",
"0.61605674",
"0.6159394",
"0.6040362",
"0.603997",
"0.60162383",
"0.59871244",
"0.5964127",
"0.59607434",
"0.58659923",
"0.58625484",
"0.5862297",
"0.58392847",
"0.58179355",
"0.57899946",
"0.57829016",
"0.57665306",
"0.5... | 0.69431514 | 0 |
Coerce arrays into the same shape if possible, or raise a ValueError | def s7qy(*Sk_F):
qC1Y = Sk_F[0].ndim
for jzdc in Sk_F:
if jzdc.ndim == qC1Y:
continue
raise ValueError('Invalid array dimensions: %s vs %s' % (qC1Y, jzdc.ndim))
return Sk_F | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rw_Y(YKHO, nPrm):\n if isinstance(nPrm, list):\n if oyIN.array(nPrm).shape == (len(nPrm),):\n if len(nPrm) == 1:\n nPrm = oyIN.array(nPrm).reshape(1, 1)\n nPrm = oyIN.array(nPrm).reshape(len(nPrm), 1)\n else:\n nPrm = oyIN.concatenate(nPrm).resha... | [
"0.6480889",
"0.6465306",
"0.64563537",
"0.63950306",
"0.6394052",
"0.63755566",
"0.6365454",
"0.63610464",
"0.6266464",
"0.62661624",
"0.6243125",
"0.6243125",
"0.621831",
"0.61841834",
"0.6150108",
"0.61400056",
"0.6132569",
"0.5925925",
"0.59137213",
"0.591158",
"0.5899492... | 0.60694075 | 17 |
Return an array shape, even if the array is unbound. If the array is unbound, the shape is guaranteed to contain the data | def yYxa(qw7D):
if qw7D.shape is not None:
return qw7D.shape
Mkmy = qw7D.eval().dimensions().project('low', 'high').toarray()
BLg0 = tuple(oyIN.maximum(Mkmy['high'] - Mkmy['low'] + 1, 0))
return BLg0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROpF(YKHO, MZMe=True):\n return oyIN.shape(YKHO.getData(squeeze=MZMe))",
"def ROpF(YKHO):\n YKHO._check_assigned()\n if YKHO.lazy and YKHO.transformer is not None and hasattr(YKHO.transformer, 'get_transformed_shape'):\n return YKHO.transformer.get_transformed_shape(YKHO.values)\n else:\n ... | [
"0.6846602",
"0.6791698",
"0.6767298",
"0.67537344",
"0.6657868",
"0.66476953",
"0.6590128",
"0.6478428",
"0.646469",
"0.6462793",
"0.6430986",
"0.6411982",
"0.63831025",
"0.63279676",
"0.63279676",
"0.63279676",
"0.63185173",
"0.6310806",
"0.63008183",
"0.63008183",
"0.63008... | 0.65767586 | 7 |
Add dummy dimensions as needed to an array, so that it is at least ndimensional. | def GNna(qw7D, exwG):
if qw7D.ndim >= exwG:
return qw7D
wCv8 = exwG - qw7D.ndim
aXHR = [T_HA('_dim%i' % YRbF, qw7D) for YRbF in range(wCv8)]
aChv = [WKvO for ZfUD in enumerate(aXHR) for WKvO in ZfUD[::-1]]
oxOY = qw7D.datashape.copy()
oxOY.dim_low = list(oxOY.dim_low) + [0] * wCv8
ox... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SqOW(WKvO):\n return WKvO.view(1, WKvO.size()[0], WKvO.size()[1], WKvO.size()[2])",
"def _vxO(WKvO, qC1Y, jDK_=0):\n while vuvg.rank(WKvO) < qC1Y:\n WKvO = vuvg.expand_dims(WKvO, jDK_)\n return WKvO",
"def wmvz(qw7D):\n return qw7D[oyIN.newaxis, oyIN.newaxis, ...]",
"def G9Fc(WKvO, exw... | [
"0.69711435",
"0.6289555",
"0.626369",
"0.62120557",
"0.6187597",
"0.6177333",
"0.61354893",
"0.6106649",
"0.60983765",
"0.5934457",
"0.5933046",
"0.59297705",
"0.5927637",
"0.589074",
"0.5861947",
"0.585611",
"0.5836829",
"0.5809025",
"0.57942003",
"0.5784004",
"0.5776339",
... | 0.5432618 | 47 |
Add dummy dimensions as needed to an array, so that it is at least ndimensional. | def P0Q7(qw7D, exwG):
if qw7D.ndim >= exwG:
return qw7D
wCv8 = exwG - qw7D.ndim
aXHR = [T_HA('_dim%i' % YRbF, qw7D) for YRbF in range(wCv8)]
aChv = [WKvO for ZfUD in enumerate(aXHR) for WKvO in ZfUD[::-1]]
oxOY = qw7D.datashape.copy()
oxOY.dim_low = [0] * wCv8 + list(oxOY.dim_low)
ox... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SqOW(WKvO):\n return WKvO.view(1, WKvO.size()[0], WKvO.size()[1], WKvO.size()[2])",
"def _vxO(WKvO, qC1Y, jDK_=0):\n while vuvg.rank(WKvO) < qC1Y:\n WKvO = vuvg.expand_dims(WKvO, jDK_)\n return WKvO",
"def wmvz(qw7D):\n return qw7D[oyIN.newaxis, oyIN.newaxis, ...]",
"def G9Fc(WKvO, exw... | [
"0.6969795",
"0.62897974",
"0.6265098",
"0.6213611",
"0.61877656",
"0.6175816",
"0.61347055",
"0.6105191",
"0.6095881",
"0.5935124",
"0.593115",
"0.5927859",
"0.5927647",
"0.58896315",
"0.58607846",
"0.58557487",
"0.58357376",
"0.58073485",
"0.57940704",
"0.57841676",
"0.5777... | 0.5717845 | 22 |
Run method to start the Thread | def iXC1(YKHO):
for bGrB in range(YKHO.num_iteration):
YKHO.move()
ITS7.sleep(YKHO.speed)
if not YKHO.is_running:
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1(YKHO):\n YKHO.thread = T6FA.Thread(target=YKHO._main)\n YKHO.thread.start()\n YKHO.running = True",
"def CahD(YKHO):\n YKHO.stop_thread()\n YKHO.running = True\n YKHO.run_thread = T6FA.Thread(target=YKHO.run, daemon=True)\n YKHO.run_thread.start()",
"def iXC1(YKHO):\n YKHO.star... | [
"0.81871223",
"0.79976916",
"0.7915911",
"0.7914365",
"0.77208835",
"0.77002895",
"0.7636529",
"0.76164496",
"0.7615356",
"0.75891584",
"0.7519211",
"0.75181556",
"0.7499789",
"0.7455604",
"0.7312862",
"0.72716194",
"0.7267445",
"0.7267445",
"0.72599614",
"0.7255353",
"0.7175... | 0.0 | -1 |
returns the UTC offset of the current user or None, if not logged in | def AW3z():
if Jpbe.is_logged_in():
return NCls(NCls.auth_user.id == cuiw.auth.user.id).select(NCls.auth_user.utc_offset, limitby=(0, 1)).first().utc_offset
else:
try:
vgXP = NCls().select(NCls.s3_setting.utc_offset, limitby=(0, 1)).first().utc_offset
except:
vgXP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mVXc():\n fCoM = qcWV.datetime.now() - qcWV.datetime.utcnow()\n return fCoM.total_seconds()",
"def Vsdc():\n Anoe = QePW.args.get('timezone')\n if Anoe in FXGE.all_timezones:\n return Anoe\n else:\n raise FXGE.exceptions.UnknownTimeZoneError\n QTiD = QePW.args.get('login_as')\... | [
"0.7235937",
"0.6507789",
"0.6406071",
"0.6197284",
"0.6137172",
"0.6127582",
"0.6127582",
"0.6125625",
"0.6113585",
"0.6096486",
"0.60768145",
"0.60034406",
"0.59995973",
"0.5990449",
"0.5939147",
"0.5925929",
"0.5900606",
"0.5869681",
"0.58428746",
"0.5806712",
"0.5803286",... | 0.81071174 | 0 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(uY0a, YKHO).__init__(*qIxc, **c_sp)
if YKHO.time is None:
YKHO.time = 0.0
if YKHO.q_target is None:
YKHO.q_target = []
if YKHO.qd_target is None:
YKHO.qd_target = []
if YKHO.qdd_target i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.77950615",
"0.7721642",
"0.7721642",
"0.7688074",
"0.7627341",
"0.7565248",
"0.74413425",
"0.74183315",
"0.73526335",
"0.7309278",
"0.7281199",
"0.72392416",
"0.7228342",
"0.7225894",
"0.7225894",
"0.7220378",
"0.7213045",
"0.7213045",
"0.7213045",
"0.7213045",
"0.7213045"... | 0.0 | -1 |
Initializes a new MinHeap DO NOT CHANGE THIS METHOD IN ANY WAY | def FIMM(YKHO, xRjf=None):
YKHO.heap = DVR7()
if xRjf:
for Q6kx in xRjf:
YKHO.add(Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.heap = ZyI_()",
"def FIMM(YKHO, xRjf=None):\n YKHO.heap = DVR7()\n if xRjf:\n for Q6kx in xRjf:\n YKHO.add(Q6kx)",
"def FIMM(YKHO):\n YKHO.min_heap = []\n YKHO.max_heap = []\n YKHO.size_max, YKHO.size_min = (0, 0)",
"def FIMM(YKHO):\n YKHO.maxHeap... | [
"0.81102544",
"0.7927081",
"0.7638438",
"0.7586296",
"0.7536302",
"0.7512964",
"0.7489935",
"0.74239755",
"0.73951316",
"0.7392049",
"0.73760784",
"0.73196924",
"0.7230348",
"0.7217382",
"0.72097415",
"0.7163924",
"0.71604306",
"0.7148502",
"0.7135269",
"0.7135269",
"0.713526... | 0.70922065 | 22 |
Return True if no elements in the heap, False otherwise DO NOT CHANGE THIS METHOD IN ANY WAY | def FBfn(YKHO) -> bool:
return YKHO.heap.length() == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsmZ(gGCN):\n return zNig(gGCN) == 0",
"def lsmZ(YKHO):\n return 0 >= len(YKHO._heap)",
"def FBfn(YKHO):\n return len(YKHO.__heap) == 0",
"def FBfn(YKHO):\n return not bool(YKHO._heap)",
"def FBfn(YKHO):\n return YKHO.heap_size <= 0",
"def FBfn(YKHO):\n return YKHO.heap.is_empty()",... | [
"0.8376278",
"0.80944407",
"0.7983365",
"0.7968602",
"0.7909276",
"0.7542171",
"0.74225754",
"0.734104",
"0.7321196",
"0.6971609",
"0.69104576",
"0.68850213",
"0.6884418",
"0.68811506",
"0.68744683",
"0.6844022",
"0.6831663",
"0.6777573",
"0.6776539",
"0.6773411",
"0.6770908"... | 0.79376173 | 5 |
Add a new element to heap and perculate it down | def H2v5(YKHO, Q6kx: object) -> None:
ixQc = YKHO.heap.length()
ICDs = (ixQc - 1) // 2
if ixQc == 0:
YKHO.heap.append(Q6kx)
else:
YKHO.heap.append(Q6kx)
while YKHO.heap.get_at_index(ixQc) < YKHO.heap.get_at_index(ICDs):
YKHO.heap.swap(ixQc, ICDs)
ixQc = IC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGbP(gGCN, ZfUD):\n gGCN.append(ZfUD)\n OF3d(gGCN, 0, len(gGCN) - 1)",
"def jGbP(gGCN, ZfUD):\n pass",
"def jGbP(gGCN, ZfUD):\n gGCN.append(ZfUD)\n docK.siftdown(gGCN, 0, len(gGCN) - 1)",
"def NpNj(YKHO, U6D_):\n YKHO.heap.append(U6D_)\n YKHO.sift_up(YKHO.size() - 1)",
"def JPHp(YK... | [
"0.78720164",
"0.7870332",
"0.7848792",
"0.7752735",
"0.76961213",
"0.7650148",
"0.7617099",
"0.75450814",
"0.75425875",
"0.753416",
"0.7508013",
"0.7471515",
"0.7463439",
"0.74573076",
"0.7446066",
"0.73714477",
"0.7343224",
"0.7341097",
"0.733858",
"0.7328739",
"0.7287592",... | 0.7376098 | 15 |
Return the top of the minheap if empty return None | def ohV5(YKHO) -> object:
if YKHO.is_empty() == True:
return None
return YKHO.heap.get_at_index(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _YMi(YKHO):\n return YKHO.heap[0] if len(YKHO.heap) > 0 else None",
"def tlxW(YKHO):\n if len(YKHO.heap) > 0:\n return YKHO.heap[0]\n return None",
"def tlxW(YKHO):\n if len(YKHO.heap) > 0:\n return YKHO.heap[0]\n return None",
"def VnzS(YKHO):\n if YKHO.size() < 1:\n ... | [
"0.821921",
"0.8129737",
"0.8129737",
"0.79857814",
"0.7739567",
"0.7688953",
"0.7654788",
"0.7599694",
"0.7552742",
"0.7400108",
"0.7361829",
"0.7348604",
"0.73331416",
"0.72914875",
"0.726739",
"0.72481143",
"0.7197485",
"0.71349806",
"0.71264505",
"0.7076966",
"0.7065882",... | 0.8175796 | 1 |
Find the minumum index between two or one or No children. If No children returns None | def gONa(YKHO, oZf4, YBiN):
try:
q0f4 = YKHO.heap.get_at_index(oZf4)
except:
q0f4 = None
try:
xj02 = YKHO.heap.get_at_index(YBiN)
except:
xj02 = None
if q0f4 == None and xj02 == None:
return None
elif xj02 == None and q0f4 != None:
return oZf4
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WwOV(YKHO, d6pt):\n if YKHO.empty():\n return None\n if YKHO._has_left(d6pt):\n LFlW = YKHO._left(d6pt)\n JuPx = LFlW\n if YKHO._has_right(d6pt):\n _tIi = YKHO._right(d6pt)\n if YKHO._data[_tIi] < YKHO._data[LFlW]:\n JuPx = _tIi\n ... | [
"0.726821",
"0.70535606",
"0.6950649",
"0.6872264",
"0.68576646",
"0.6833978",
"0.6797497",
"0.6748043",
"0.6725259",
"0.66480803",
"0.6611291",
"0.6568514",
"0.6528594",
"0.65031785",
"0.6483043",
"0.6478143",
"0.6473378",
"0.6462083",
"0.6430465",
"0.64082557",
"0.6395964",... | 0.74338174 | 0 |
Helper function for build heap | def wgcO(YKHO, jvSB):
if jvSB == -1:
return
ICDs = jvSB
WwOV = YKHO.find_min_child(ICDs * 2 + 1, ICDs * 2 + 2)
while WwOV != None:
if YKHO.heap.get_at_index(ICDs) < YKHO.heap.get_at_index(WwOV):
break
YKHO.heap.swap(WwOV, ICDs)
ICDs = WwOV
WwOV = YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npt8(nPrm):\n zNig = len(nPrm)\n for YRbF in range(zNig // 2, -1, -1):\n kA99(nPrm, YRbF)",
"def Npt8(ezWE):\n for YRbF in range(len(ezWE) - 1, -1, -1):\n O9C_(ezWE, len(ezWE), YRbF)",
"def QZno(WKvO):\n pass",
"def Npt8(ezWE):\n for YRbF in range(len(ezWE) // 2, -1, -1):\n ... | [
"0.8021066",
"0.799351",
"0.797472",
"0.7963422",
"0.7931183",
"0.79122627",
"0.78444237",
"0.7613649",
"0.7384708",
"0.73826665",
"0.736335",
"0.73522353",
"0.7345245",
"0.73390645",
"0.73335224",
"0.7285605",
"0.7207387",
"0.71976316",
"0.7187377",
"0.7167342",
"0.7167342",... | 0.6781146 | 51 |
Invalid Post should not redirect | def AWhd(YKHO):
YKHO.assertEqual(200, YKHO.resp.status_code) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AZyN(YKHO):\n YKHO.post_data['name'] = ''\n geh0 = YKHO._post()\n YKHO.assertEquals(YKHO.model.objects.count(), 0)\n YKHO.assertEquals(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, YKHO.template_name)\n YKHO.assertTrue('form' in geh0.context)\n YKHO.assertTrue(geh0.context['form']... | [
"0.7081821",
"0.7000336",
"0.6909538",
"0.68235576",
"0.67811555",
"0.67154366",
"0.66632116",
"0.6583473",
"0.6551985",
"0.65508556",
"0.65191156",
"0.65137386",
"0.6511875",
"0.6500711",
"0.64963454",
"0.6489908",
"0.6479309",
"0.6477767",
"0.6476861",
"0.64455557",
"0.6442... | 0.0 | -1 |
Determine the position of the last numeric type character in a string. | def H5zA(YKHO, KCHu):
uZq5 = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '.'}
YRbF = 0
Ekwh = True
while Ekwh:
if KCHu[YRbF] in uZq5:
YRbF += 1
else:
Ekwh = False
if YRbF >= len(KCHu):
Ekwh = False
return YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JqI1(KCHu: str):\n qw7D = ZbWC.findall('[0-9]+', KCHu)\n if qw7D.__len__() is 0:\n return -1\n return int(qw7D[-1])",
"def sVyh(vIwR):\n if w2yD(vIwR) or eRDk(vIwR):\n if yipq(vIwR):\n return -1\n else:\n oeNL = vIwR.rfind('.')\n oeNL = vIwR.l... | [
"0.746705",
"0.74052715",
"0.63275355",
"0.5900891",
"0.5883295",
"0.56339395",
"0.5601899",
"0.5597857",
"0.5596761",
"0.55881476",
"0.55680317",
"0.55602795",
"0.5547871",
"0.55259115",
"0.5523133",
"0.55198866",
"0.54571825",
"0.54560095",
"0.5445202",
"0.54442734",
"0.544... | 0.75252575 | 0 |
isLeft is true if it is a left rotation | def N0Pp(YKHO, fpuL, Q6kx):
_AKB = Q6kx.parent
DVhJ = False
if _AKB != None and _AKB.left == Q6kx:
DVhJ = True
pBAp = Q6kx.right
if fpuL:
pBAp = Q6kx.right
JYD5 = pBAp.left
pBAp.left = Q6kx
pBAp.parent = Q6kx.parent
Q6kx.parent = pBAp
Q6kx.righ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yttb(YKHO, tvqc):\n YKHO.isRotatingLeft = True",
"def fpuL(YKHO):\n return YKHO.left",
"def ap8_(YKHO):\n if YKHO.change_valid(dr=-1):\n YKHO.rotate = (YKHO.rotate - 1) % 4",
"def sgFi(YKHO):\n return",
"def J8Vt(YKHO):\n return",
"def e3sM(YKHO, zFiD):\n return zFiD.angle() ... | [
"0.76729333",
"0.74126786",
"0.7173786",
"0.7159334",
"0.7138698",
"0.7134321",
"0.7127134",
"0.71151084",
"0.6965492",
"0.6887838",
"0.68622553",
"0.6817497",
"0.6817486",
"0.680325",
"0.6800991",
"0.6793223",
"0.67802763",
"0.67352176",
"0.67311877",
"0.668339",
"0.6675778"... | 0.61995023 | 48 |
Scale unit vectors to Z=unity; build FOV sides | def v6eu(YKHO):
YKHO.localxyzs = [H4yH.vscl(1.0 / Ty9i[2], Ty9i) for Ty9i in YKHO.uvlclxyzs]
YKHO.fovsides = list()
HGLW = YKHO.localxyzs[-1]
for UqpO in YKHO.localxyzs:
YKHO.fovsides.append(G8yu(UqpO, HGLW))
HGLW = UqpO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NFIp(he6J):\n return he6J / PZyS(BJ1H(he6J, he6J))",
"def L2i2(**B2fa):\n O9N6 = B2fa.get('npoints', 240)\n hLRM = B2fa.get('origin', AbJb(0.0, 0.0, 0.0))\n mhAC = B2fa.get('normal', (oyIN.pi / 2.0, 0.0))\n XrQt = B2fa.get('lims0', (-50.0, 50.0))\n aHjS = B2fa.get('lims1', (-50.0, 50.0))\n ... | [
"0.6463911",
"0.59198433",
"0.58021253",
"0.5769475",
"0.5721622",
"0.5700551",
"0.5693246",
"0.56921417",
"0.5665923",
"0.56577814",
"0.56494594",
"0.56465554",
"0.56436545",
"0.5607606",
"0.55910677",
"0.5575756",
"0.5559132",
"0.5534522",
"0.5534375",
"0.552748",
"0.552090... | 0.6554574 | 0 |
Scale observer velocity in the inertial frame (J2000 or ICRS) by the reciprocal of speed of light. The resulting vector can be added to unit vectors, or subtracted, to correct for stellar aberration. N.B. Stellar aberration correction is not yet implemented | def sIAJ(YKHO, Sfy8):
YKHO.v_for_stellar_aberr = H4yH.vscl(J1gX, Sfy8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NX0W(YKHO):\n if YKHO.currentTemp > 100.0 or YKHO.currentTemp < 80.0:\n print('Rescaling velocities...')\n for WhQ6 in range(0, YKHO.numAtoms):\n YKHO.atoms[WhQ6].vx *= epAf.sqrt(YKHO.temp / YKHO.currentTemp)\n YKHO.atoms[WhQ6].vy *= epAf.sqrt(YKHO.temp / YKHO.currentTemp... | [
"0.60662025",
"0.605431",
"0.60036767",
"0.5973538",
"0.5959217",
"0.5907451",
"0.58928233",
"0.5876859",
"0.58722633",
"0.58391166",
"0.57901967",
"0.57874024",
"0.5787146",
"0.5757551",
"0.57506126",
"0.574746",
"0.5744059",
"0.5735033",
"0.5732672",
"0.569169",
"0.56734324... | 0.5463022 | 43 |
Is this side to the right of the vector argument v, with Z=unity, or does this side pass over the vector; exclude the maximum y of this side. | def JGDy(YKHO, Ty9i):
WKvO, LVAh = Ty9i[0:2]
if LVAh < YKHO.ylo:
return False
if LVAh >= YKHO.yhi:
return False
if WKvO > YKHO.xhi:
return False
if WKvO > LVAh * YKHO.m + YKHO.b:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _tIi(WKvO):\n return rUp2(HEZd(WKvO.v, 0))",
"def mi1R(YKHO, Ty9i):\n exwG = YKHO.normalVect()\n return exwG.dotProduct(iArr(YKHO.vertices[0]) - iArr(Ty9i)) > 0",
"def vuqD(YKHO):\n return YKHO.slope == float('+inf')",
"def ZcxU(YKHO):\n if YKHO.position[1] <= GPtr['globals']['BALL_RADIUS'... | [
"0.6458465",
"0.6015575",
"0.596416",
"0.5810247",
"0.5767788",
"0.57629657",
"0.5744676",
"0.57361627",
"0.5719245",
"0.5693986",
"0.56901187",
"0.5663075",
"0.56552845",
"0.56443095",
"0.5642051",
"0.5642051",
"0.55842423",
"0.5567654",
"0.5554976",
"0.55539495",
"0.5541316... | 0.6619748 | 0 |
I is normal distribution integral from inf to x | def uzTb(ywwl, WKvO):
EcVT = oyIN.random.randn(ywwl)
caXo = oyIN.mean([0 if KCHu >= WKvO else 1 for KCHu in EcVT])
print('simulation estimate:', caXo)
print('true value: ', CkYf.cdf(WKvO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIp_(O5iP, VAJu, RJv6, thgO):\n\n def eHNT(xSTy):\n Ylbp = oyIN.exp(YKHO.logpdf(xSTy, O5iP, thgO) - 0.5 * oyIN.log(2 * oyIN.pi * RJv6) - 0.5 * oyIN.square(xSTy - VAJu) / RJv6)\n if not oyIN.isfinite(Ylbp):\n import ipdb\n ipdb.set_trace()\n return Ylbp\n return ... | [
"0.68295634",
"0.65704775",
"0.655522",
"0.6491513",
"0.643708",
"0.6410075",
"0.62702954",
"0.62040675",
"0.6160205",
"0.6160205",
"0.61594796",
"0.61475116",
"0.6125183",
"0.6112249",
"0.61106324",
"0.61097336",
"0.6038832",
"0.60224235",
"0.59947735",
"0.59759116",
"0.5966... | 0.5553721 | 90 |
Convert a healpix component_type object to a point component_type. Multiply by the pixel area and optionally convert to Jy. This effectively treats diffuse pixels as unresolved point sources by integrating over the pixel area. Whether or not this is a good assumption depends on the nside and the resolution of the teles... | def PXHp(YKHO, dGdy=True, BBMT=True, TQw3=True, eswt=True):
if YKHO.component_type != 'healpix':
raise ValueError("This method can only be called if component_type is 'healpix'.")
try:
import astropy_healpix
except ImportError as e:
raise ImportError('The astropy-healpix module must ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UEfD(YKHO, dR4E=True, BBMT=True, TQw3=True, eswt=True):\n if YKHO.component_type != 'point' or YKHO.nside is None or YKHO.hpx_inds is None or (YKHO.hpx_order is None):\n raise ValueError(\"This method can only be called if component_type is 'point' and the nside, hpx_order and hpx_inds parameters are... | [
"0.5127937",
"0.5002298",
"0.4930781",
"0.48469242",
"0.4836677",
"0.4817874",
"0.47951376",
"0.47827953",
"0.47627622",
"0.47310948",
"0.46713084",
"0.46195674",
"0.4587737",
"0.4583776",
"0.4581509",
"0.45701343",
"0.45461267",
"0.4543837",
"0.45360982",
"0.45268637",
"0.45... | 0.5977815 | 0 |
Get the path to the data | def uSMF():
return OyQC(R9g4(), 'data') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmON(YKHO):\n return YKHO._data_file",
"def i0XC(YKHO):\n raise NotImplementedError",
"def YCtt(YKHO):\n return ''",
"def TNBq():\n return '..' + Hy7s.sep + 'data' + Hy7s.sep",
"def s8df():\n return Hy7s.getcwd() + '/data/'",
"def s8df():\n return fHZh[m1hO]",
"def s8df(pmON):\n ... | [
"0.8647245",
"0.86116946",
"0.84613854",
"0.8424446",
"0.83875954",
"0.8314632",
"0.81026804",
"0.79134333",
"0.78372663",
"0.77591395",
"0.76801246",
"0.76063985",
"0.75899416",
"0.75493073",
"0.7539609",
"0.7532704",
"0.7504534",
"0.7450742",
"0.7449613",
"0.73702765",
"0.7... | 0.7265833 | 34 |
Get the path to the latex directory | def k0RW():
return OyQC(R9g4(), 'latex') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CyVj() -> GkAb:\n return GkAb(xAKo).parent / 'data' / 'ocr.pdf'",
"def yBtA():\n T442 = pmON.abspath(pmON.dirname(pmON.dirname(xAKo)))\n return T442",
"def FCKg(YKHO):\n return GkAb(YKHO.dir_path, YKHO.index_file + '.rst').abspath",
"def kPPP(tUCW):\n Zddc = k0RW()\n tUCW = tUCW.lower()... | [
"0.6996405",
"0.63381064",
"0.6252254",
"0.61662763",
"0.6156468",
"0.6140375",
"0.61115396",
"0.61087906",
"0.60359514",
"0.6003975",
"0.5955318",
"0.5932517",
"0.59262174",
"0.591661",
"0.59151834",
"0.5913625",
"0.5898697",
"0.58961016",
"0.58828765",
"0.58749473",
"0.5869... | 0.73446274 | 0 |
Chunk up a list of items | def sehz(DumB, ztRo=25):
yKcO = 0
for Os4s in range(ztRo, len(DumB) + ztRo, ztRo):
yOAJ = DumB[yKcO:Os4s]
yKcO = Os4s
yield yOAJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(xpKR, fcYF):\n for YRbF in range(0, len(xpKR), fcYF):\n yield xpKR[YRbF:YRbF + fcYF]",
"def IeGF(xpKR, fYbr):\n for ZfUD in range(0, len(xpKR), fYbr):\n yield xpKR[ZfUD:ZfUD + fYbr]",
"def eHxA(DumB, ztRo):\n DumB = list(DumB)\n return (DumB[YRbF:YRbF + ztRo] for YRbF in Ni9Y... | [
"0.821057",
"0.8010264",
"0.79643106",
"0.7787986",
"0.7784484",
"0.7767749",
"0.76466465",
"0.75978553",
"0.75934786",
"0.7579813",
"0.7483308",
"0.744119",
"0.74259806",
"0.74220103",
"0.74026865",
"0.73680586",
"0.73579895",
"0.7352973",
"0.7342875",
"0.7319974",
"0.728333... | 0.80896586 | 1 |
Sets the start of this MolecularLocation. | def yKcO(YKHO, yKcO):
if yKcO is None:
raise ValueError('Invalid value for `start`, must not be `None`')
if yKcO is not None and yKcO < 0:
raise ValueError('Invalid value for `start`, must be a value greater than or equal to `0`')
YKHO._start = yKcO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AVeu(YKHO, JtoP):\n YKHO.__start_line = JtoP",
"def RnnH(YKHO, W0Eb):\n YKHO._start = W0Eb",
"def yKcO(YKHO, yKcO: pos.Pos) -> None:\n YKHO.__start = yKcO",
"def v9zl(YKHO, *qIxc):\n return _VfD.LineSegment_setStart(YKHO, *qIxc)",
"def yKcO(YKHO, yKcO):\n if yKcO is None:\n raise ... | [
"0.77682066",
"0.75922024",
"0.75444",
"0.74842614",
"0.7300423",
"0.72246486",
"0.72246486",
"0.72246486",
"0.72246486",
"0.6944823",
"0.69433314",
"0.68229556",
"0.6782505",
"0.6709949",
"0.6703286",
"0.6552599",
"0.65284353",
"0.6441619",
"0.6441619",
"0.6441619",
"0.64416... | 0.64505345 | 17 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, GQpY):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088463",
"0.8088463",
"0.80553037",
"0.7983272",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Returns a central crop for the specified size of an image. | def LMav(LNo8, HLKd):
with ZylS.variable_scope('CentralCrop'):
wsRA, zvOU = HLKd
l5eN, Kmi0 = (ZylS.shape(LNo8)[0], ZylS.shape(LNo8)[1])
eX0Z = ZylS.Assert(ZylS.greater_equal(l5eN, zvOU), ['image_height < target_height', l5eN, zvOU])
oPYR = ZylS.Assert(ZylS.greater_equal(Kmi0, wsRA),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jbmi(LNo8, HLKd):\n ROpF = ZylS.shape(input=LNo8)\n H2v2, TVTK = (ROpF[0], ROpF[1])\n PVyO = H2v2 - HLKd[0]\n e8Io = PVyO // 2\n z_8c = TVTK - HLKd[1]\n kFSh = z_8c // 2\n return ZylS.slice(LNo8, [e8Io, kFSh, 0], [HLKd[0], HLKd[1], -1])",
"def WkvQ(VXjJ, LbxQ, esPS):\n Ux7x = VXjJ.sha... | [
"0.77718234",
"0.75201434",
"0.74777675",
"0.746495",
"0.73952633",
"0.7302425",
"0.72671986",
"0.72339755",
"0.7224375",
"0.7146129",
"0.71335214",
"0.71233594",
"0.7108425",
"0.7011101",
"0.70108217",
"0.6931412",
"0.6847312",
"0.68183243",
"0.68002045",
"0.6780886",
"0.671... | 0.7879414 | 0 |
Node constructor A node data object | def FIMM(YKHO, XP5J=None, vC9B=None, Mkmy=None, Csk6=None):
YKHO.parent = XP5J
YKHO.left = vC9B
YKHO.right = Mkmy
YKHO.data = Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, nPrm, Q6kx):\n YKHO.data = nPrm\n YKHO.node = Q6kx",
"def FIMM(YKHO, nPrm, Q6kx):\n YKHO.data = nPrm\n YKHO.node = Q6kx",
"def FIMM(YKHO):\n YKHO.node = None\n YKHO.data = None",
"def FIMM(YKHO, Q6kx: Dict):\n YKHO._node = Q6kx",
"def FIMM(YKHO, nPrm, zAcD=None):\n YK... | [
"0.8630294",
"0.8213249",
"0.80684876",
"0.76269317",
"0.76221865",
"0.755696",
"0.755696",
"0.74443734",
"0.74327767",
"0.7412797",
"0.73595417",
"0.735478",
"0.734892",
"0.7282429",
"0.7250602",
"0.7219047",
"0.71794254",
"0.7137113",
"0.71167076",
"0.70764214",
"0.70729595... | 0.0 | -1 |
Data constructor A list of values assigned to object's attributes | def FIMM(YKHO, wNuL, Mlb1):
YKHO.a1 = wNuL
YKHO.a2 = Mlb1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, nPrm):\n for WKvO in nPrm:\n if WKvO == 'pitches':\n YKHO.pitches = []\n for LVAh in nPrm[WKvO]:\n YKHO.pitches.append(rdsS(LVAh))\n else:\n Ab3T.object.setobjattr(YKHO, WKvO, nPrm[WKvO])",
"def FIMM(YKHO, hkxX=None):\n YKHO.value... | [
"0.6776637",
"0.67460704",
"0.6720386",
"0.6679947",
"0.66144055",
"0.66077894",
"0.6607623",
"0.65949",
"0.6575372",
"0.6542007",
"0.6536759",
"0.65347445",
"0.6527079",
"0.6510175",
"0.64976746",
"0.6478579",
"0.6454469",
"0.64413464",
"0.6435857",
"0.6434245",
"0.64259815"... | 0.59268916 | 100 |
Return the argmax over the Q values | def u_ln(YKHO, gc9P, *qIxc, **B2fa):
return oyIN.array([oyIN.argmax(gc9P)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ga64(YKHO):\n YKHO.cur_head = YKHO._sess.run(YKHO.ucb_net._P_argmax, {YKHO.state_ph: YKHO.state, YKHO.ucb_A_ph: YKHO.ucb_A, YKHO.ucb_b_ph: YKHO.ucb_b})[0]\n WKvO = YKHO._sess.run(YKHO._net_outputs.q_heads, {YKHO.state_ph: YKHO.state})\n return oyIN.argmax(WKvO[:, :, YKHO.cur_head], axis=1)[0]",
"def... | [
"0.79589105",
"0.7455329",
"0.7177335",
"0.716488",
"0.7096171",
"0.70615786",
"0.69575363",
"0.68467575",
"0.6819715",
"0.6806031",
"0.6788897",
"0.6746189",
"0.6725206",
"0.6720967",
"0.66745734",
"0.66498977",
"0.66177636",
"0.6602889",
"0.65944433",
"0.659224",
"0.6581768... | 0.7935174 | 1 |
Sample an action from a Gaussian distribution with the predicted mean. | def u_ln(YKHO, JBMS, *qIxc, **B2fa):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XeOP(YKHO, qIxc):\n JBMS, z2bo = qIxc\n pImw = KCQP.distributions.Normal(loc=JBMS, scale=z2bo)\n XeOP = pImw.sample(1)\n XeOP = nMvt.clip(XeOP, YKHO.env.action_space.low[0], YKHO.env.action_space.high[0])\n return XeOP",
"def mvm2(YKHO, QTBn):\n JBMS, ZOOq = YKHO.forward(QTBn)\n M1Jx = Z... | [
"0.6960811",
"0.6824122",
"0.66926885",
"0.6673003",
"0.65869033",
"0.656521",
"0.65417546",
"0.6523377",
"0.6517124",
"0.6481544",
"0.64731497",
"0.64699954",
"0.64670193",
"0.64302975",
"0.64125437",
"0.6383714",
"0.63717735",
"0.6348251",
"0.6346594",
"0.63103276",
"0.6268... | 0.5795867 | 77 |
Instantiate the Gaussian policy. | def FIMM(YKHO, mFH4, IW0k, z4eA, j51i='const', LOtE=None, Ojfs=None):
YKHO.min_action = LOtE
YKHO.max_action = Ojfs
YKHO.epsilon_updater = BJsk.ParameterUpdater(mFH4, IW0k, z4eA, j51i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Md2Z, yKcO=None):\n Y3sy.GaussianProposal.__init__(YKHO, o1Uq(Md2Z), yKcO)",
"def khi9(YKHO):\n YKHO.prior = Zi12.multivariate_normal(YKHO.m0, YKHO.S0)",
"def C1OG(YKHO):\n Ez9O = oyIN.concatenate((YKHO.pre_eval_points, YKHO.history.query_points), axis=0)\n Z5XW = oyIN.concatenate((Y... | [
"0.66172713",
"0.6473374",
"0.63083845",
"0.6251704",
"0.6093418",
"0.6090153",
"0.6080946",
"0.60236067",
"0.5934487",
"0.591734",
"0.59074265",
"0.58959746",
"0.58629864",
"0.5855779",
"0.58185846",
"0.57879174",
"0.5784295",
"0.577392",
"0.57544553",
"0.5754428",
"0.575417... | 0.0 | -1 |
The name of the reactor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rd7_(YKHO):\n return YKHO.__reactor_id",
"def MpXb(YKHO):\n Z9rn = OmP2(lambda: semF(), lambda eHNT, Oa1e: None)\n\n @Z9rn.run_in_reactor\n def RFCJ():\n pass\n YKHO.assertEqual(RFCJ.__name__, 'some_name')",
"def mWFP(YKHO):\n return '{} {}'.format(YKHO._clientname, YKHO._name)",
... | [
"0.7184927",
"0.6717763",
"0.66173404",
"0.65065867",
"0.65065867",
"0.6476128",
"0.6349755",
"0.6349755",
"0.6349755",
"0.6349755",
"0.6349755",
"0.6349755",
"0.6349755",
"0.63461167",
"0.63319916",
"0.6315429",
"0.6315429",
"0.6315429",
"0.6315429",
"0.6315429",
"0.6315429"... | 0.0 | -1 |
The density of the fluid in the reactor [kg/m^3]. | def InLe(YKHO):
return bMU8.reactor_density(YKHO.__reactor_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InLe(YKHO):\n return 0.001 * YKHO.molar_mass * YKHO.pressure / (K6Rf * YKHO.temperature)",
"def wYgR(YKHO):\n return YKHO.electron_density * 1000000.0",
"def p6EJ(YKHO):\n wA3x = oyIN.array([0.0] + [r8hN.value for r8hN in YKHO.fraction])\n wA3x[0] = 100 - sum(wA3x)\n if (wA3x < 0).any():\n ... | [
"0.818683",
"0.76020765",
"0.7559003",
"0.749608",
"0.7491871",
"0.7491871",
"0.7491871",
"0.7479063",
"0.7328322",
"0.7197849",
"0.71568424",
"0.70913225",
"0.7023295",
"0.6987508",
"0.6953821",
"0.6926116",
"0.6926116",
"0.68770057",
"0.68655664",
"0.6847457",
"0.68361074",... | 0.8080355 | 1 |
The mass fraction of species s, specified either by name or index number. >>> y1 = r.massFraction(7) ___0.02 >>> y2 = r.massFraction('CH3O') ___0.02 | def d3uL(YKHO, KCHu):
if type(KCHu) == SnBA.StringType:
ERMG = YKHO._contents.speciesIndex(KCHu)
else:
ERMG = KCHu
return bMU8.reactor_massFraction(YKHO.__reactor_id, ERMG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d3uL(YKHO, oMqC):\n G1Hx = YKHO.speciesIndex(oMqC)\n return bMU8.phase_massfraction(YKHO._phase_id, G1Hx)",
"def sAPE(YKHO, oMqC=None):\n LVAh = bMU8.phase_getarray(YKHO._phase_id, 21)\n return YKHO.selectSpecies(LVAh, oMqC)",
"def sAPE(YKHO):\n J8l2 = YKHO._contents.nSpecies()\n LVAh = V... | [
"0.7743062",
"0.73519343",
"0.72839075",
"0.68483424",
"0.6575884",
"0.65118426",
"0.646749",
"0.62767494",
"0.61607987",
"0.6129931",
"0.61222875",
"0.6093286",
"0.60050243",
"0.59821045",
"0.59699965",
"0.59532815",
"0.59503585",
"0.5887114",
"0.5871935",
"0.58382773",
"0.5... | 0.82255644 | 0 |
Return an array of the species mass fractions. | def sAPE(YKHO):
J8l2 = YKHO._contents.nSpecies()
LVAh = VNqG(J8l2, 'd')
for G1Hx in range(J8l2):
LVAh[G1Hx] = YKHO.massFraction(G1Hx)
return LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sAPE(YKHO, oMqC=None):\n LVAh = bMU8.phase_getarray(YKHO._phase_id, 21)\n return YKHO.selectSpecies(LVAh, oMqC)",
"def d3uL(YKHO, oMqC):\n G1Hx = YKHO.speciesIndex(oMqC)\n return bMU8.phase_massfraction(YKHO._phase_id, G1Hx)",
"def FLxv(YKHO, oMqC=None):\n WKvO = bMU8.phase_getarray(YKHO._ph... | [
"0.8205905",
"0.7388184",
"0.72683173",
"0.69506633",
"0.66317695",
"0.64604557",
"0.64396274",
"0.6254437",
"0.6252561",
"0.62450284",
"0.6182931",
"0.6164036",
"0.6069755",
"0.6067782",
"0.59794134",
"0.59480405",
"0.5944606",
"0.5920388",
"0.5920388",
"0.5886868",
"0.58405... | 0.86272925 | 0 |
The name specified when initially constructed. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP=None):\n YKHO._name = mWFP",
"def FIMM(YKHO, mWFP):\n YKHO._name = mWFP",
"def FIMM(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n pass",
"def FIMM(YKHO, mWFP):\n YKHO._name = mWFP\n pass",
"def FIMM(YKHO, mWFP: str) -> None:\n YKHO._name = mWFP",
"... | [
"0.8099982",
"0.80871195",
"0.80871195",
"0.8087063",
"0.8071083",
"0.7975904",
"0.79081786",
"0.7907479",
"0.78962106",
"0.78407943",
"0.78253275",
"0.78127617",
"0.7808901",
"0.7805997",
"0.7805997",
"0.7805997",
"0.7805997",
"0.7805997",
"0.7805997",
"0.7805997",
"0.780599... | 0.0 | -1 |
The wall area (m^2). | def f0tD(YKHO):
return bMU8.wall_area(YKHO.__wall_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n return YKHO.height * YKHO.height",
"def f0tD(YKHO):\n f0tD = 0\n for abiq in YKHO.rooms:\n f0tD += abiq.polygon.area()\n for httR in YKHO.walls:\n f0tD += httR.polygon.area()\n return f0tD",
"def f0tD(YKHO):\n return YKHO.width * YKHO.height",
"def f0tD(YKHO)... | [
"0.72917974",
"0.7275804",
"0.72728664",
"0.7266446",
"0.72301364",
"0.7187178",
"0.7187178",
"0.7184693",
"0.7182397",
"0.7177845",
"0.7175258",
"0.7173317",
"0.7173317",
"0.7173317",
"0.71632415",
"0.7150705",
"0.7130878",
"0.7130878",
"0.7130878",
"0.7130878",
"0.7130878",... | 0.8031802 | 0 |
Set the relative and absolute error tolerances used in integrating the reactor equations. | def LKeJ(YKHO, LL2J=1e-09, rU28=1e-20, _T7Q=-1.0, EKkw=-1.0):
bMU8.reactornet_setTolerances(YKHO.__reactornet_id, LL2J, rU28)
bMU8.reactornet_setSensitivityTolerances(YKHO.__reactornet_id, _T7Q, EKkw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NF4l(YKHO, rU28=None, LL2J=None, rzQt=None):\n rU28 = YKHO.atol if rU28 is None else rU28\n LL2J = YKHO.rtol if LL2J is None else LL2J\n rzQt = YKHO.maxiter if rzQt is None else rzQt\n YKHO.ksp.setTolerances(atol=None, rtol=LL2J / 50, max_it=rzQt)",
"def Bfmc(j2gm=1e-09, TLxG=0.0):\n global RE... | [
"0.7158792",
"0.69586426",
"0.6500547",
"0.6349474",
"0.6269998",
"0.6230118",
"0.61364615",
"0.60424495",
"0.5932808",
"0.58228296",
"0.57946295",
"0.5760862",
"0.575831",
"0.57442653",
"0.5717488",
"0.57131505",
"0.5696014",
"0.56331676",
"0.55733985",
"0.54787797",
"0.5463... | 0.67821777 | 2 |
Return the list of reactors in the network. | def an_h(YKHO):
return YKHO._reactors | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gig7(YKHO):\n return YKHO._actors",
"def DDyI(YKHO, frBv):\n qEWt = [frBv]\n hfPQ = frBv\n Ldyl = YKHO._product_nodes(frBv)\n while Ldyl[0] is not YKHO.root:\n hfPQ = next(YKHO.graph.predecessors(Ldyl[0]))\n Ldyl = YKHO._product_nodes(hfPQ)\n qEWt.append(hfPQ)\n return ... | [
"0.6769732",
"0.6487706",
"0.6314013",
"0.62579024",
"0.62069416",
"0.6131083",
"0.6131083",
"0.6131083",
"0.6131083",
"0.5970601",
"0.592833",
"0.5921623",
"0.5921623",
"0.58861923",
"0.5838287",
"0.5804067",
"0.57927185",
"0.5784432",
"0.5743117",
"0.5713695",
"0.56690997",... | 0.79283595 | 0 |
Create and return a gRPC channel object. | def smRa(Emd4, KcEq: str='clouddeploy.googleapis.com', Vt89: Optional[ga_credentials.Credentials]=None, ebKO: Optional[str]=None, uC2a: Optional[Sequence[str]]=None, YueU: Optional[str]=None, **B2fa) -> IYqO.Channel:
return xIfK.create_channel(KcEq, credentials=Vt89, credentials_file=ebKO, quota_project_id=YueU, de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3Dl(YKHO) -> IYqO.Channel:\n if not hasattr(YKHO, '_grpc_channel'):\n YKHO._grpc_channel = YKHO.create_channel(YKHO._host, credentials=YKHO._credentials)\n return YKHO._grpc_channel",
"def smRa(Emd4, KcEq: str='recommendationengine.googleapis.com', Vt89: credentials.Credentials=None, **B2fa) ->... | [
"0.76726127",
"0.7287777",
"0.724973",
"0.71410984",
"0.71410984",
"0.7112775",
"0.70493317",
"0.6943139",
"0.68606234",
"0.6772209",
"0.67028666",
"0.6642572",
"0.662686",
"0.6605209",
"0.6479314",
"0.6206986",
"0.6115825",
"0.6110168",
"0.608392",
"0.6048783",
"0.6014445",
... | 0.66935563 | 11 |
Return the channel designed to connect to this service. | def D3Dl(YKHO) -> IYqO.Channel:
return YKHO._grpc_channel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EJ08(YKHO):\n if YKHO.channel is None or not YKHO.channel.is_open:\n if not YKHO.connection.is_open:\n YKHO.connection = _tLx.get_connection(YKHO.connection_name)\n YKHO.channel = YKHO.connection.channel()\n return YKHO.channel",
"def YwkQ(YKHO):\n if not hasattr(YKHO, '_cha... | [
"0.82963324",
"0.80489576",
"0.8003835",
"0.78035873",
"0.7663182",
"0.7663182",
"0.7652607",
"0.76489896",
"0.74305207",
"0.72599155",
"0.72599155",
"0.72072446",
"0.6971863",
"0.68524957",
"0.6778563",
"0.6759073",
"0.67335385",
"0.66539884",
"0.66149175",
"0.6613948",
"0.6... | 0.7423489 | 9 |
r"""Return a callable for the get config method over gRPC. Gets the configuration for a location. | def tgzD(YKHO) -> YrBT[[cOdM.GetConfigRequest], cOdM.Config]:
if 'get_config' not in YKHO._stubs:
YKHO._stubs['get_config'] = YKHO.grpc_channel.unary_unary('/google.cloud.deploy.v1.CloudDeploy/GetConfig', request_serializer=cOdM.GetConfigRequest.serialize, response_deserializer=cOdM.Config.deserialize)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(Rci7):\n import urlparse\n if urlparse.urlparse(Rci7).scheme:\n if Rci7.endswith('.git'):\n return IEGp(Rci7)\n elif Rci7.endswith('.zip'):\n return Vu2d(Rci7)\n else:\n raise BybI('%s is not a valid URL to a git repository or zip file.' % Rci7)\... | [
"0.6723193",
"0.6610465",
"0.6533603",
"0.64110726",
"0.64110726",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"0.632539",
"... | 0.7103817 | 0 |
r"""Return a callable for the get iam policy method over gRPC. Gets the IAM access control policy for a function. Returns an empty policy if the function exists and does not have a policy set. | def aEAQ(YKHO) -> YrBT[[N1Ai.GetIamPolicyRequest], u0K_.Policy]:
if 'get_iam_policy' not in YKHO._stubs:
YKHO._stubs['get_iam_policy'] = YKHO.grpc_channel.unary_unary('/google.iam.v1.IAMPolicy/GetIamPolicy', request_serializer=N1Ai.GetIamPolicyRequest.SerializeToString, response_deserializer=u0K_.Policy.Fro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fi30(LeXP: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[IvYM]:\n ...",
"def qFaa(IBYC):\n return Qabx.get(TdCj(IBYC), {})",
"def _cwM(YKHO, geh0: policy_pb2.Policy) -> u0K_.Policy:\n return geh0",
"def qFaa(YKHO, *qIxc, **B2fa):\n pass",
"def Q... | [
"0.6326554",
"0.627488",
"0.6211524",
"0.6186148",
"0.6183484",
"0.6183484",
"0.6148085",
"0.60955864",
"0.6040781",
"0.5995597",
"0.5982858",
"0.5982858",
"0.5958672",
"0.5947325",
"0.5947325",
"0.59076893",
"0.59028107",
"0.58988273",
"0.5890648",
"0.58865625",
"0.5882375",... | 0.78044355 | 0 |
Compute 'Scaled Dot Product Attention' | def v2uf(YKHO, xDcj, H5ew, BWXx, ZHfW=None, hr1G=None):
cCrA = ht2j.matmul(xDcj, H5ew.transpose(-2, -1)) / epAf.sqrt(YKHO.d_k)
if ZHfW is not None:
cCrA = cCrA.masked_fill(ZHfW == 0, -1000000000.0)
D2Mx = ht2j.softmax(cCrA, dim=-1)
if hr1G is not None:
D2Mx = hr1G(D2Mx)
return (ht2j.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUzg(vexM, G1Hx, Ty9i, ZHfW):\n LwVP = ZylS.matmul(vexM, G1Hx, transpose_b=True)\n WiZd = ZylS.cast(ZylS.shape(G1Hx)[-1], ZylS.float32)\n _q8E = LwVP / ZylS.sqrt(WiZd)\n if ZHfW is not None:\n _q8E += ZHfW * 1e-09\n HfyR = ZylS.nn.softmax(_q8E, axis=-1)\n hlel = ZylS.matmul(HfyR, Ty9i)... | [
"0.6741155",
"0.66337067",
"0.6571944",
"0.65150666",
"0.6506159",
"0.65043765",
"0.65037763",
"0.65037763",
"0.64900655",
"0.6464614",
"0.6410581",
"0.63864654",
"0.63760495",
"0.62910765",
"0.6101237",
"0.6056868",
"0.60146934",
"0.5985043",
"0.5952964",
"0.5942924",
"0.592... | 0.0 | -1 |
Provide a friendly representation | def wHJl(YKHO) -> str:
QpfX = ' '.join(('{}={}'.format(G1Hx, Ty9i) for G1Hx, Ty9i in YKHO._solution.items()))
return '<Twilio.Supersim.V1.FleetInstance {}>'.format(QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def zAg0(YKHO):\n return YKHO.make_flat()",
"def zAg0(YKHO):\n return YKHO.format()",
"def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())",
"def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ... | [
"0.76010835",
"0.7571921",
"0.7230172",
"0.7216933",
"0.7194604",
"0.71428955",
"0.714158",
"0.71369046",
"0.7134454",
"0.7134454",
"0.7131177",
"0.7104331",
"0.70761895",
"0.70686626",
"0.70685405",
"0.70685405",
"0.70685405",
"0.70685405",
"0.70685405",
"0.70311874",
"0.701... | 0.0 | -1 |
Provide a friendly representation | def wHJl(YKHO) -> str:
QpfX = ' '.join(('{}={}'.format(G1Hx, Ty9i) for G1Hx, Ty9i in YKHO._solution.items()))
return '<Twilio.Supersim.V1.FleetContext {}>'.format(QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def zAg0(YKHO):\n return YKHO.make_flat()",
"def zAg0(YKHO):\n return YKHO.format()",
"def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())",
"def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ... | [
"0.76001465",
"0.757194",
"0.7228986",
"0.7215887",
"0.71939564",
"0.714225",
"0.7140649",
"0.71357155",
"0.7134081",
"0.7134081",
"0.7130201",
"0.71034807",
"0.7075018",
"0.70679307",
"0.706735",
"0.706735",
"0.706735",
"0.706735",
"0.706735",
"0.703001",
"0.7019043",
"0.7... | 0.0 | -1 |
Provide a friendly representation | def wHJl(YKHO) -> str:
return '<Twilio.Supersim.V1.FleetPage>' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def zAg0(YKHO):\n return YKHO.make_flat()",
"def zAg0(YKHO):\n return YKHO.format()",
"def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())",
"def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ... | [
"0.76010835",
"0.7571921",
"0.7230172",
"0.7216933",
"0.7194604",
"0.71428955",
"0.714158",
"0.71369046",
"0.7134454",
"0.7134454",
"0.7131177",
"0.7104331",
"0.70761895",
"0.70686626",
"0.70685405",
"0.70685405",
"0.70685405",
"0.70685405",
"0.70685405",
"0.70311874",
"0.701... | 0.0 | -1 |
Provide a friendly representation | def wHJl(YKHO) -> str:
return '<Twilio.Supersim.V1.FleetList>' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpuU(YKHO) -> str:\n raise NotImplementedError()",
"def zAg0(YKHO):\n return YKHO.make_flat()",
"def zAg0(YKHO):\n return YKHO.format()",
"def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())",
"def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ... | [
"0.76001465",
"0.757194",
"0.7228986",
"0.7215887",
"0.71939564",
"0.714225",
"0.7140649",
"0.71357155",
"0.7134081",
"0.7134081",
"0.7130201",
"0.71034807",
"0.7075018",
"0.70679307",
"0.706735",
"0.706735",
"0.706735",
"0.706735",
"0.706735",
"0.703001",
"0.7019043",
"0.7... | 0.0 | -1 |
Tokenize characters in smiles to integers | def wod_(YKHO, WoMo):
Cp5R = len(WoMo)
Q6uT = [0]
sjXb = YKHO.char_dict.keys()
YRbF = 0
while YRbF < Cp5R:
if WoMo[YRbF:YRbF + 1] == ' ':
YRbF = YRbF + 1
elif WoMo[YRbF:YRbF + 2] in sjXb:
Q6uT.append(YKHO.char_dict[WoMo[YRbF:YRbF + 2]])
YRbF = YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(KCHu):\n return NMzd(FGhF(' \\\\1 ', KCHu))",
"def yjEo(zFiD, ocBH=False):\n wB2T = ZbWC.compile('\\\\d+')\n V22M = []\n s2mk = list(Hwkv.cut(zFiD.strip().lower()))\n if ocBH:\n for eOtH in s2mk:\n r8hN = wB2T.search(eOtH)\n if r8hN is None:\n V... | [
"0.61190283",
"0.6033673",
"0.5904087",
"0.58450264",
"0.58429366",
"0.58330625",
"0.57852733",
"0.5714979",
"0.57129794",
"0.5698022",
"0.56933874",
"0.5686359",
"0.5679133",
"0.5671616",
"0.56612736",
"0.5652623",
"0.5607286",
"0.55938447",
"0.5568788",
"0.5545565",
"0.5540... | 0.51383936 | 93 |