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 |
|---|---|---|---|---|---|---|
r"""Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor. | async def delete_processor(YKHO, QePW: Optional[Union[document_processor_service.DeleteProcessorRequest, dict]]=None, *, mWFP: Optional[str]=None, ZFzw: OptionalRetry=uMLX.method.DEFAULT, vYBr: Union[float, object]=uMLX.method.DEFAULT, yIVm: Sequence[Tuple[str, str]]=()) -> woFu.AsyncOperation:
RRHz = any([mWFP])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO):\n if YKHO.phase not in ['PENDING']:\n YKHO.manager.delete(YKHO)\n hTfg = '{}/{}'.format(lLSA, YKHO.jobid)\n if Hy7s.path.isdir(hTfg):\n RDuA.rmtree(hTfg)\n wntJ = '{}/{}'.format(Xe5w, YKHO.jobid)\n if Hy7s.path.isdir(wntJ):\n RDuA.rmtree(wntJ)\n lKro = '{}/{}'... | [
"0.64943594",
"0.62509143",
"0.6228452",
"0.6094726",
"0.60131586",
"0.60107535",
"0.6010054",
"0.6005594",
"0.5998834",
"0.59789115",
"0.5953118",
"0.59469146",
"0.59196806",
"0.59192747",
"0.5911332",
"0.58892196",
"0.58842254",
"0.58806735",
"0.5870198",
"0.58637947",
"0.5... | 0.0 | -1 |
r"""Retrieves a set of evaluations for a given processor version. | async def list_evaluations(YKHO, QePW: Optional[Union[document_processor_service.ListEvaluationsRequest, dict]]=None, *, _AKB: Optional[str]=None, ZFzw: OptionalRetry=uMLX.method.DEFAULT, vYBr: Union[float, object]=uMLX.method.DEFAULT, yIVm: Sequence[Tuple[str, str]]=()) -> yX0M.ListEvaluationsAsyncPager:
RRHz = an... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p6tV(YKHO, hlhA=None, q9nU=None, GeEw=None, PJWX=True):\n dug5 = KkY2.get_evals(YKHO.evals, YKHO.nbands, YKHO.nbands_full, set_scissor=hlhA, set_gap=q9nU, set_direct_gap=GeEw, verbose=PJWX)\n return dug5",
"def nrOS(YKHO, QePW: document_processor_service.GetEvaluationRequest, *, ZFzw: OptionalRetry=uML... | [
"0.58845794",
"0.5830437",
"0.57296085",
"0.57063216",
"0.56987894",
"0.5600234",
"0.5565689",
"0.55509835",
"0.5453503",
"0.54360723",
"0.5415664",
"0.538944",
"0.53095245",
"0.52783936",
"0.52248377",
"0.5218251",
"0.51990813",
"0.51843786",
"0.51567274",
"0.51308197",
"0.5... | 0.48277804 | 45 |
r"""Gets the latest state of a longrunning operation. | async def get_operation(YKHO, QePW: Optional[operations_pb2.GetOperationRequest]=None, *, ZFzw: OptionalRetry=uMLX.method.DEFAULT, vYBr: Union[float, object]=uMLX.method.DEFAULT, yIVm: Sequence[Tuple[str, str]]=()) -> s1LG.Operation:
if isinstance(QePW, dict):
QePW = s1LG.GetOperationRequest(**QePW)
lTa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hM3b(YKHO):\n return YKHO._last_op_state",
"def hCWZ(YKHO):\n if not YKHO._process.is_alive():\n raise RuntimeError('Worker has terminated')\n if not YKHO._pending:\n return KpDk.PENDING\n if YKHO._result is None:\n try:\n YKHO._result = YKHO._from_slave.get(block=... | [
"0.694494",
"0.6688509",
"0.64085007",
"0.6395157",
"0.6390043",
"0.6340663",
"0.62446904",
"0.62081194",
"0.6106903",
"0.6101333",
"0.5965259",
"0.5947878",
"0.5947878",
"0.5947878",
"0.5947878",
"0.5947878",
"0.5947878",
"0.5947878",
"0.5947878",
"0.5947878",
"0.5947878",
... | 0.0 | -1 |
returns a list of data_nodes in the database | def u8pd():
global conn
eCGt()
try:
HCmI = 'SELECT data_node FROM file GROUP BY data_node ORDER BY COUNT(*)'
jyYI = w2B8.cursor()
jyYI.execute(HCmI)
QXWt = jyYI.fetchall()
except Exception as e:
G9jH.debug('status_retracted.list_data_nodes() saw an exception %s' %... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iP80(YKHO):\n Pe9W = 'SELECT node_id, sigfox_id, active\\n FROM node'\n usx6 = YKHO.select(Pe9W)\n return usx6",
"def oYkJ(YKHO):\n oYkJ = set(YKHO.flatten((M98S.nodes for M98S in YKHO.class_nodes)))\n return list(oYkJ)",
"def Ziit(YKHO, nPrm=False):\n xDcj = ngUu.get_nodes(node_la... | [
"0.75123876",
"0.73476344",
"0.7336002",
"0.70123386",
"0.69508165",
"0.69418174",
"0.69418174",
"0.68517566",
"0.6777437",
"0.67687035",
"0.66898173",
"0.66312605",
"0.6575336",
"0.65478826",
"0.65336794",
"0.64374375",
"0.64284045",
"0.64110786",
"0.6375907",
"0.63443464",
... | 0.7612009 | 0 |
Add a Node to the scene. | def g5gD(YKHO, Q6kx, xGoe=None):
if Q6kx in YKHO.nodes:
raise ValueError('Node already in scene')
YKHO.nodes.add(Q6kx)
if Q6kx.name is not None:
if Q6kx.name not in YKHO._name_to_nodes:
YKHO._name_to_nodes[Q6kx.name] = set()
YKHO._name_to_nodes[Q6kx.name].add(Q6kx)
fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.add(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO):\n _AKB = YKHO.nodes[-1]\n UvTl = _AKB.parent\n Jw7X = _AKB.pos[0] - U... | [
"0.8101508",
"0.80430627",
"0.80075425",
"0.80075425",
"0.7926606",
"0.7870905",
"0.7800844",
"0.7767806",
"0.7734904",
"0.77228254",
"0.77197915",
"0.7691783",
"0.7665289",
"0.7569295",
"0.75441885",
"0.74552923",
"0.7449663",
"0.74429125",
"0.74340135",
"0.74309283",
"0.742... | 0.6918959 | 69 |
Get the worldframe pose of a node in the scene. | def SGrb(YKHO, Q6kx):
if Q6kx not in YKHO.nodes:
raise ValueError('Node must already be in scene')
if Q6kx in YKHO._path_cache:
pmON = YKHO._path_cache[Q6kx]
else:
pmON = jHsn.shortest_path(YKHO._digraph, Q6kx, 'world')
YKHO._path_cache[Q6kx] = pmON
shtX = oyIN.eye(4)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGrb(YKHO):\n return YKHO.group.get_current_pose().pose",
"def SGrb(YKHO):\n qQTo = YKHO.robot.get_pose()\n oeNL = qQTo.pos.array\n JvKu = qQTo.orient.array\n return vxH9(oeNL, JvKu)",
"def SZJu(YKHO, V6IE):\n assert len(V6IE.shape) == 2\n assert V6IE.shape[1] == 3\n a7ln = YKHO.R.d... | [
"0.6543521",
"0.637093",
"0.6312473",
"0.628378",
"0.62059367",
"0.61307853",
"0.6115611",
"0.60819715",
"0.600522",
"0.5980022",
"0.59589463",
"0.592974",
"0.59294933",
"0.5921565",
"0.58978415",
"0.5879489",
"0.5874411",
"0.5784429",
"0.5742282",
"0.57310754",
"0.571875",
... | 0.7555946 | 0 |
Forward the state through the network. | def KVH6(YKHO, QTBn):
QTBn = vuvg.relu(YKHO.fc1(QTBn))
yGTL = YKHO.fc_mu(QTBn)
M1Jx = vuvg.softplus(YKHO.fc_std(QTBn))
pImw = WGTe(yGTL, M1Jx)
XeOP = pImw.rsample()
Vjik = pImw.log_prob(XeOP)
EpMc = YKHO.rescale_action(ht2j.tanh(XeOP))
NdSy = Vjik - ht2j.log(1 - ht2j.tanh(XeOP).pow(2) + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, wspz):\n raise NotImplementedError",
"def KVH6(YKHO, QTBn):\n return YKHO._pi_net(QTBn)",
"def KVH6(YKHO, QTBn):\n return YKHO.seq.forward(QTBn)",
"def KVH6(YKHO, QTBn):\n return YKHO.model(QTBn)",
"def KVH6(YKHO, WKvO):\n return YKHO.net.forward(WKvO)",
"def t2pC(YKHO):\n ... | [
"0.75677603",
"0.7459295",
"0.73991597",
"0.73963946",
"0.7288518",
"0.7201536",
"0.71916085",
"0.71916085",
"0.71916085",
"0.71916085",
"0.7158349",
"0.71248394",
"0.71152365",
"0.7093118",
"0.7037018",
"0.70340633",
"0.7020886",
"0.7015657",
"0.70088965",
"0.7005278",
"0.69... | 0.0 | -1 |
Assumes L is a list of integers containing at least 2 elements. Finds the longest run of numbers in L, where the longest run can either be monotonically increasing or monotonically decreasing. In case of a tie for the longest run, choose the longest run that occurs first. Does not modify the list. Returns the sum of th... | def aiLv(aPd6):
wRdl = []
yn06 = []
dZ78 = 0
UHFx = 0
if len(aPd6) >= 2:
while UHFx != len(aPd6) - 1:
if aPd6[UHFx] >= aPd6[UHFx + 1]:
wRdl.append(aPd6[UHFx])
elif aPd6[UHFx] <= aPd6[UHFx + 1]:
yn06.append(aPd6[UHFx])
UHFx +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def as0z(vC9B: list) -> int:\n aiLv = 0\n WYNq = vC9B.copy()\n Ytix = []\n if len(vC9B) == 0 or len(vC9B) == 1:\n return len(vC9B)\n for YRbF in WYNq:\n Ytix.append(WYNq[0])\n WYNq.pop(0)\n while len(WYNq) >= 1 and Ytix[0] == WYNq[0]:\n Ytix.append(WYNq[0])\n ... | [
"0.79483277",
"0.7812596",
"0.76346534",
"0.68517274",
"0.6824694",
"0.6630105",
"0.6535048",
"0.6340464",
"0.63076454",
"0.6297538",
"0.62929785",
"0.62751734",
"0.6268303",
"0.62403905",
"0.621241",
"0.6192742",
"0.61246055",
"0.6119641",
"0.61169225",
"0.6112261",
"0.60871... | 0.7832957 | 1 |
Returns the labels of the dataset | def Te1x(YKHO):
return YKHO.labels | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Crrw(YKHO):\n return YKHO.df_dat.label.to_numpy()",
"def Crrw(YKHO):\n return YKHO.df_dat.label.to_numpy()",
"def Te1x(YKHO):\n Crrw = YKHO.data['labels']\n VNiV = list(range(len(Crrw)))\n return (Crrw, VNiV)",
"def Te1x(YKHO):\n return (YKHO.label_array, YKHO.number)",
"def Crrw(YKHO... | [
"0.84676826",
"0.84676826",
"0.81819063",
"0.80608135",
"0.80495006",
"0.8044924",
"0.80417246",
"0.8040526",
"0.8040526",
"0.8036493",
"0.8036493",
"0.80353343",
"0.80171174",
"0.8015741",
"0.8015741",
"0.8015741",
"0.8015741",
"0.8015741",
"0.80133194",
"0.7986395",
"0.7960... | 0.8159365 | 3 |
Returns list of active auth sessions. | def Aing(YKHO, KUnM=None, xAU6=None):
return Nep5([dict(id=JkXK, internal=Yr6K(cuiw), **cuiw.dump()) for JkXK, cuiw in sorted(YKHO.session_manager.sessions.items(), key=lambda a1PO: a1PO[1].created_at)], KUnM, xAU6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aing(YKHO):\n return list(YKHO._sessions.values())",
"def qnte():\n return d2WM('8080', 'notebookmanagementservice', 'GetDetailedSessionList', None)",
"def AugQ(YKHO):\n YKHO.lock.acquire()\n Aofo = YKHO.lis.keys()[:]\n YKHO.lock.release()\n return Aofo",
"def Aing(YKHO):\n jGRS, nPr... | [
"0.7623075",
"0.74958885",
"0.73532987",
"0.7268066",
"0.7257318",
"0.7204082",
"0.7201648",
"0.7168409",
"0.6990385",
"0.696748",
"0.6925846",
"0.6899152",
"0.6855995",
"0.68093264",
"0.6755457",
"0.6696577",
"0.6682184",
"0.666268",
"0.6623419",
"0.6617538",
"0.6613723",
... | 0.6462853 | 27 |
Returns true if two factor authorization is required for authorizing user's login. | async def two_factor_auth(YKHO):
return (await YKHO.middleware.call('auth.twofactor.config'))['enabled'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SdM0(YKHO):\n if YKHO.requiresAuthentication and (not YKHO.isLoggedIn()):\n return True\n else:\n return False",
"def P3Bs(YKHO):\n return YKHO.account.data.get('password', None) is not None",
"def gDhF(NtEF, jTXt):\n return NtEF == 'insight' and jTXt == 'demo'",
"def gDhF(NtEF,... | [
"0.7107606",
"0.70975673",
"0.70076954",
"0.6993331",
"0.69925684",
"0.69696826",
"0.69696826",
"0.69696826",
"0.69696826",
"0.69696826",
"0.69446677",
"0.6917847",
"0.69157517",
"0.69157517",
"0.69125664",
"0.68950474",
"0.68652326",
"0.6842043",
"0.68187577",
"0.6818409",
"... | 0.67857707 | 23 |
Returns boolean true if provided `token` is successfully authenticated. | def qutR(YKHO, eOtH):
GPtr = YKHO.middleware.call_sync(f'{YKHO._config.namespace}.config')
if not GPtr['enabled']:
raise o10G('Please enable Two Factor Authentication first.')
tYvF = ak2q.totp.TOTP(GPtr['secret'], interval=GPtr['interval'], digits=GPtr['otp_digits'])
return tYvF.verify(eOtH, val... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2p_(YKHO, eOtH: auth_token.AuthToken) -> bool:\n if not eOtH.access_token:\n return False\n return eOtH.is_active",
"def c5pa(eOtH):\n VCCg = AmPw(eOtH)\n if VCCg and VCCg.get('login'):\n return True\n return False",
"def RFgf(YKHO, Glu4, eOtH):\n Aofo = YKHO.fetch_user(Glu... | [
"0.80829054",
"0.7904477",
"0.76112866",
"0.7573912",
"0.75445145",
"0.744003",
"0.73733866",
"0.73490626",
"0.7303397",
"0.718933",
"0.71830946",
"0.7126241",
"0.71163464",
"0.70433956",
"0.7016509",
"0.7002106",
"0.6983523",
"0.69142306",
"0.69088954",
"0.6907092",
"0.68016... | 0.6420755 | 38 |
Returns the strategy used to calculate order commissions. | def Tq2s(YKHO):
return YKHO.__commission | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OuMq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'strategy')",
"def OuMq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'strategy')",
"def OuMq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'strategy')",
"def OuMq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.ge... | [
"0.6889373",
"0.6889373",
"0.6889373",
"0.6889373",
"0.6775059",
"0.6726628",
"0.67122465",
"0.6578056",
"0.64824164",
"0.6477984",
"0.64701635",
"0.646002",
"0.643421",
"0.63656795",
"0.62653166",
"0.6209367",
"0.6087417",
"0.600985",
"0.5987053",
"0.5983796",
"0.5903669",
... | 0.53819704 | 51 |
Returns the portfolio value (cash + shares price). | def hO6D(YKHO):
U5bT = YKHO.getCash()
for YKiD, iTlw in jKi7.iteritems(YKHO.__shares):
KztE = YKHO._getPriceForInstrument(YKiD)
assert KztE is not None, 'Price for %s is missing' % YKiD
U5bT += KztE * iTlw
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pKjP(YKHO):\n qHwW = 0\n for IYUG in YKHO.broker.blotter.active_trades:\n try:\n CEF_ = YKHO.market_data.current_for_ticker(IYUG.ticker)\n except bjNg:\n return None\n if IYUG.direction == 1:\n tsyV = IYUG.amount * CEF_['close']\n elif IYUG.dir... | [
"0.78069603",
"0.77405125",
"0.77210027",
"0.7603225",
"0.7565117",
"0.7338467",
"0.7294923",
"0.7077933",
"0.69213",
"0.6908971",
"0.69057614",
"0.68530416",
"0.68405396",
"0.6835887",
"0.67528325",
"0.6721735",
"0.67198056",
"0.66154426",
"0.6550092",
"0.6542817",
"0.654039... | 0.6269855 | 32 |
Determine if two Index objects contain the same elements. Returns bool True if "other" is an Index and it has the same elements as calling index; False otherwise. Examples >>> from pyspark.pandas.config import option_context >>> idx = ps.Index(['a', 'b', 'c']) >>> idx.name = "name" >>> midx = ps.MultiIndex.from_tuples(... | def aPi6(YKHO, Elif: 'Index') -> bool:
if WU1z(YKHO, Elif):
return True
elif type(YKHO) == type(Elif):
if ypP4('compute.ops_on_diff_frames'):
with wo_y('compute.default_index_type', 'distributed-sequence'):
return (YWvJ(oM6q, YKHO.to_series('self').reset_index(drop=Tr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H0BN(YKHO, Elif: 'Index') -> bool:\n from pyspark.pandas.indexes.multi import MultiIndex\n uquB = YKHO.names if isinstance(YKHO, MultiIndex) else YKHO.name\n oGE4 = Elif.names if isinstance(Elif, MultiIndex) else Elif.name\n return uquB == oGE4 and YKHO.equals(Elif)",
"def Ee_u(gaYL, StMt, U3Fm=T... | [
"0.83956826",
"0.73154044",
"0.7183603",
"0.69276404",
"0.6818068",
"0.6774802",
"0.6772692",
"0.675006",
"0.6749935",
"0.67486745",
"0.67292196",
"0.6690295",
"0.66445184",
"0.6611544",
"0.65694284",
"0.6567444",
"0.6521421",
"0.6457153",
"0.6431492",
"0.6422335",
"0.6400963... | 0.75653744 | 1 |
Return the transpose, For index, It will be index itself. Examples >>> idx = ps.Index(['a', 'b', 'c']) >>> idx Index(['a', 'b', 'c'], dtype='object') >>> idx.transpose() Index(['a', 'b', 'c'], dtype='object') For MultiIndex >>> midx = ps.MultiIndex.from_tuples([('a', 'x'), ('b', 'y'), ('c', 'z')]) | def l7uB(YKHO) -> 'Index':
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7uB(YKHO, *qIxc, **B2fa):\n return YKHO._apply('transpose', *qIxc, **B2fa)",
"def ZngM(YKHO):\n return YKHO.transpose.__wrapped__(YKHO)",
"def l7uB(YKHO):\n return YKHO._transpose()",
"def ZngM(YKHO):\n return Imh_(YKHO)",
"def l7uB(YKHO):\n a1PO = aLMY(YKHO.nCols, YKHO.nRows)\n for ... | [
"0.72574776",
"0.7236267",
"0.7213957",
"0.7207484",
"0.6912985",
"0.68938196",
"0.68697566",
"0.6860537",
"0.6835938",
"0.6833367",
"0.6828561",
"0.68276584",
"0.6807614",
"0.67506003",
"0.67386085",
"0.67174685",
"0.6705786",
"0.6690397",
"0.6690219",
"0.6682842",
"0.666732... | 0.7471984 | 0 |
A NumPy ndarray representing the values in this Index or MultiIndex. | def WTDd(YKHO, yDqo: Optional[Union[str, Dtype]]=None, jth9: bool=False) -> oyIN.ndarray:
Q28e("`to_numpy` loads all data into the driver's memory. It should only be used if the resulting NumPy ndarray is expected to be small.")
Aofo = oyIN.asarray(YKHO._to_internal_pandas()._values, dtype=yDqo)
if jth9:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkxX(YKHO):\n return YKHO.to_numpy()",
"def lB0u(YKHO):\n y0Da = YKHO.array.builder\n return [y0Da.load(d6pt) for d6pt in YKHO.indices]",
"def WTDd(YKHO, TcW_=False):\n if TcW_:\n if isinstance(YKHO.index, rLdf.MultiIndex):\n d6pt = oyIN.array(YKHO.index.values.tolist())\n ... | [
"0.8181893",
"0.7903625",
"0.7849743",
"0.7837717",
"0.78255886",
"0.78132075",
"0.7684778",
"0.76077795",
"0.76070315",
"0.7559138",
"0.7549512",
"0.7529317",
"0.75264996",
"0.74733883",
"0.7471024",
"0.7440847",
"0.74170655",
"0.7312343",
"0.72738963",
"0.7250902",
"0.72062... | 0.0 | -1 |
Return name of the Index. | def mWFP(YKHO) -> av29:
return YKHO.names[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phRX(YKHO):\n return YKHO.name",
"def _s3B(YKHO):\n return YKHO.__index_name",
"def _s3B(Emd4) -> str:\n return Emd4._index",
"def V_s1(YKHO):\n return YKHO.name + '-index'",
"def SZAS(YKHO, *qIxc, **B2fa):\n pass",
"def V_s1(YKHO):\n return YKHO.results.get('name')",
"def V_s1(YK... | [
"0.90203905",
"0.8903215",
"0.8829029",
"0.879377",
"0.87720096",
"0.87560904",
"0.87067163",
"0.867852",
"0.8618664",
"0.82393044",
"0.8189905",
"0.80833036",
"0.8033149",
"0.80184734",
"0.801338",
"0.7779874",
"0.7705165",
"0.7545666",
"0.750886",
"0.7507946",
"0.7337821",
... | 0.0 | -1 |
Return the maximum value of the Index. Returns scalar Maximum value. See Also | def max(YKHO) -> uLKX[sjOu, AzJI[sjOu, ...]]:
HJBP = YKHO._internal.spark_frame
FccS = HJBP.select(vuvg.max(vuvg.struct(*YKHO._internal.index_spark_columns)).alias('max_row')).select('max_row.*').toPandas()
Aofo = tuple(FccS.iloc[0])
return Aofo if len(Aofo) > 1 else Aofo[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def max(YKHO):\n return YKHO.idx",
"def max(YKHO):\n return YKHO.__getitem__(YKHO.argmax())",
"def bQ6z(YKHO) -> 'int':\n return hBPC.vnl_matrixSI_max_value(YKHO)",
"def qfB5(YKHO):\n return YKHO.value['Max']",
"def qfB5(YKHO):\n return YKHO.maxi",
"def qfB5(YKHO):\n return oyIN.amax(YK... | [
"0.79262394",
"0.78654975",
"0.7802638",
"0.7760116",
"0.77103865",
"0.7694481",
"0.7593355",
"0.7566459",
"0.75364614",
"0.7531457",
"0.75156903",
"0.74929565",
"0.74811655",
"0.74787",
"0.7478113",
"0.7475102",
"0.7470169",
"0.74584407",
"0.7446046",
"0.7438271",
"0.7419647... | 0.71224135 | 82 |
Return a maximum argument indexer. | def q1NN(YKHO) -> int:
HJBP = YKHO._internal.spark_frame.select(YKHO.spark.column)
vkdA = GwNI(HJBP, '__distributed_sequence_column__')
HJBP = siFy.attach_distributed_sequence_column(HJBP, column_name=vkdA)
return HJBP.orderBy(VrVU(HJBP, YKHO._internal.data_spark_column_names[0]).desc(), vuvg.col(vkdA).... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cKKX(YKHO):\n if len(YKHO.keys()) == 0:\n return None\n all = YKHO.items()\n hkxX = [WKvO[1] for WKvO in all]\n n1mo = hkxX.index(max(hkxX))\n return all[n1mo][0]",
"def cKKX(YKHO):\n if len(YKHO.keys()) == 0:\n return None\n all = YKHO.items()\n hkxX = [WKvO[1] for WKvO... | [
"0.77120256",
"0.76051414",
"0.7530014",
"0.75134224",
"0.7410452",
"0.73062265",
"0.6993095",
"0.6954952",
"0.69515806",
"0.69115525",
"0.6854804",
"0.6854804",
"0.6796062",
"0.67706376",
"0.67357516",
"0.67357516",
"0.67357516",
"0.67357516",
"0.66588646",
"0.662925",
"0.66... | 0.0 | -1 |
Return the label from the index, or, if not present, the previous one. Assuming that the index is sorted, return the passed index label if it is in the index, or return the previous index label if the passed one is not in the index. | def DY9k(YKHO, UXqs: Any) -> sjOu:
HJBP = YKHO._internal.spark_frame
if YKHO.is_monotonic_increasing:
HJBP = HJBP.where(YKHO.spark.column <= vuvg.lit(UXqs).cast(YKHO.spark.data_type)).select(vuvg.max(YKHO.spark.column))
elif YKHO.is_monotonic_decreasing:
HJBP = HJBP.where(YKHO.spark.column >... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeTJ(YKHO, d6pt):\n return YKHO._index_to_label[d6pt]",
"def xvgy(YKHO, d6pt):\n assert YKHO.labels is not None, 'Labels not processed'\n return YKHO.labels[d6pt]",
"def Vn7Z(YKHO, UXqs):\n return YKHO._label_to_index[UXqs]",
"def Vn7Z(YKHO, UXqs: str):\n for H5ew, BWXx in dict(YKHO.labels... | [
"0.70853335",
"0.6924406",
"0.6774924",
"0.6646019",
"0.6532866",
"0.648539",
"0.64078283",
"0.63815546",
"0.6368213",
"0.63404435",
"0.6216593",
"0.61554295",
"0.6079943",
"0.6073631",
"0.6068868",
"0.59870607",
"0.59719926",
"0.5952868",
"0.59279114",
"0.5837462",
"0.583736... | 0.0 | -1 |
Return the first element of the underlying data as a python scalar. Returns scalar The first element of Index. Raises ValueError If the data is not length1. Examples >>> psidx = ps.Index([10]) >>> psidx.item() 10 | def ZfUD(YKHO) -> uLKX[sjOu, AzJI[sjOu, ...]]:
return YKHO.to_series().item() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZfUD(YKHO) -> sjOu:\n return YKHO.head(2)._to_internal_pandas().item()",
"def OP2O(YKHO, d6pt: int):\n return YKHO.dataset[0]",
"def OP2O(YKHO, d6pt) -> BWXx:\n return BWXx(YKHO.data[d6pt])",
"def OP2O(YKHO, H5ew):\n ZfUD = YKHO.__index.get(H5ew)\n if ZfUD is None:\n raise KeyError(... | [
"0.702193",
"0.7005823",
"0.6948162",
"0.6944828",
"0.69404507",
"0.6909033",
"0.6879954",
"0.68763626",
"0.6866962",
"0.66959846",
"0.667205",
"0.6663309",
"0.66563064",
"0.66455084",
"0.6641617",
"0.6629467",
"0.6621641",
"0.6597624",
"0.65910786",
"0.6566294",
"0.65513676"... | 0.6665439 | 11 |
Alternative constructor to load from JSON file. | def PH2g(Emd4, Rci7: str=None, clva: Union[int, str]=None, Lb1u: str=None) -> 'Api':
Rci7 = doiC() if not Rci7 else Rci7
jzdc = lc9H(Rci7)
try:
XLMv = jzdc['dhis']
tpXL = XLMv['baseurl']
NtEF = XLMv['username']
jTXt = XLMv['password']
assert all([tpXL, NtEF, jTXt])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ddor(Emd4, gIsw):\n with open(gIsw, 'r') as nUeQ:\n return Emd4(qQXR.load(nUeQ))",
"def lYpi(Emd4, Ux0P):\n with open(Ux0P) as eHNT:\n nPrm = qQXR.load(eHNT)\n return Emd4.fromDict(nPrm)",
"def refC(Emd4, pmON):\n with open(pmON) as wOb_:\n nPrm = qQXR.load(wOb_)\n retur... | [
"0.8643796",
"0.8368178",
"0.83066577",
"0.8289775",
"0.8215638",
"0.8204817",
"0.818832",
"0.8184596",
"0.81215596",
"0.80946916",
"0.8093015",
"0.8093015",
"0.803077",
"0.8014314",
"0.80122375",
"0.80122375",
"0.80111",
"0.8008142",
"0.8008142",
"0.8008142",
"0.8008142",
... | 0.0 | -1 |
Given the symbol of an element, return its name. >>> get_atomic_symbol('Sulfur') 'S' Code is case insenstitive >>> get_atomic_symbol('oXygeN') 'O' Code now supports alternate element spellings | def _9eC(mWFP):
mWFP = mWFP.lower()
if mWFP == 'sulphur':
mWFP = 'sulfur'
elif mWFP == 'aluminum':
mWFP = 'aluminium'
elif mWFP == 'cesium':
mWFP = 'caesium'
try:
o61b = swo1[mWFP]
except:
raise ValueError('Unknown element name: ' + mWFP)
return o61b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cqBS(o61b):\n try:\n mWFP = h2a5[o61b]\n except:\n raise ValueError('Unknown element symbol: ' + o61b)\n return mWFP",
"def _9eC(FGW3):\n return CWwb[FGW3]",
"def o61b(YKHO, o61b):\n return YKHO._symbolIndex[o61b.lower()]",
"def DUQK(YKHO, STqv):\n if STqv < 1 or STqv >= l... | [
"0.85281473",
"0.71174395",
"0.6870528",
"0.67522675",
"0.67063665",
"0.669936",
"0.6638913",
"0.6541608",
"0.6528187",
"0.6525609",
"0.6476051",
"0.6420021",
"0.63493",
"0.63308704",
"0.63291204",
"0.63168806",
"0.63168806",
"0.63168806",
"0.63168806",
"0.63168806",
"0.63168... | 0.7757328 | 1 |
Return the atomic weight of an element given its chemical symbol >>> get_atomic_weight_from_symbol('C') 12.0106 >>> get_atomic_weight_from_symbol('He') 4.002602 If an unknown element is requested, gives a value error | def uHT0(o61b):
return gDmR(cqBS(o61b)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gDmR(mWFP):\n try:\n upAO = x4ih[mWFP.lower()]\n except KeyError:\n raise ValueError('Unknown element: ' + mWFP)\n if upAO is None:\n raise ValueError('Unstable element: ' + mWFP)\n return upAO",
"def u0Fq(Qiky):\n eQQB = ZbWC.search('([a-zA-Z]+)\\\\d*', Qiky).group(1)\n ... | [
"0.73294306",
"0.6668192",
"0.6246705",
"0.6224777",
"0.60146785",
"0.58163047",
"0.5783919",
"0.5783919",
"0.5766695",
"0.5732746",
"0.57161236",
"0.5636734",
"0.5608193",
"0.5599493",
"0.5596251",
"0.55699164",
"0.5543354",
"0.5543354",
"0.5543354",
"0.5543354",
"0.5543354"... | 0.829575 | 0 |
Take a chemical formula as input and return a dictionary with a count of the names and number of each element in it >>> print(count_elements('O3')) | def pPgg(l9Ur):
mXDZ = '([A-Z][a-z]{0,1}\\d*)'
Zoh6 = ZbWC.split(mXDZ, l9Ur)
nPrm = Zoh6[1::2]
DzJ4 = [ZfUD for ZfUD in Zoh6[0::2] if ZfUD]
if DzJ4:
raise ValueError('malformed formula: ' + l9Ur)
ZXMK = {}
QedL = '([A-Z][a-z]{0,1})(\\d*)'
for RR8p in nPrm:
kUBT = ZbWC.sea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oovA(l9Ur):\n Csk6 = {}\n EV1I = []\n for d6pt, sZqf in enumerate(l9Ur):\n if sZqf.isupper():\n EV1I.append(d6pt)\n EV1I.append(len(l9Ur))\n for d6pt in range(len(EV1I) - 1):\n mWFP = ''\n FGW3 = ''\n for sZqf in l9Ur[EV1I[d6pt]:EV1I[d6pt + 1]]:\n ... | [
"0.7298398",
"0.68183",
"0.6744945",
"0.67442065",
"0.6648207",
"0.64572555",
"0.6303156",
"0.6131492",
"0.6108092",
"0.6039374",
"0.6032535",
"0.5956134",
"0.59243894",
"0.59098846",
"0.58928525",
"0.5868329",
"0.5837613",
"0.5773883",
"0.5764798",
"0.5760281",
"0.575559",
... | 0.86911666 | 0 |
function which returns the molecular mass of a chemical species based on its name >>> molecule='nitrogen_dioxide' >>> print(molecule, get_molmass(molecule)) nitrogen_dioxide 46.00682 If attempt to get the molecular mass of a cube where the molecule name is not recognised, a value error is raised To extend this function... | def Pvk4(asBq):
asBq = asBq.replace('_', ' ')
try:
l9Ur = OaaN[asBq]
except:
raise ValueError('Error in get_molmass. Unknown molecule: ' + asBq)
try:
UHFx = pPgg(l9Ur)
except:
raise ValueError('Error in get_molmass' + ' Cant count elements in ' + asBq + ' with formul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfFl(YKHO, PXGI):\n if len(YKHO.mass) > 0:\n return YKHO.mass[0].float(PXGI)\n return YKHO.nuclide.getMass(PXGI)",
"def BKhz(LRhi):\n HtrN, P3th, l3mD, MeWH, yh1n = pSJb(LRhi)\n Bl3M, F1VQ = iUKh(yh1n, P3th)\n FTfO = BVzG(LRhi, MeWH)\n aMIr = aQSR(LRhi, l3mD, MeWH)\n zumh = BUz2(L... | [
"0.7116969",
"0.69913435",
"0.684237",
"0.6805652",
"0.6785407",
"0.6744349",
"0.665928",
"0.6612342",
"0.6563033",
"0.64802355",
"0.6378795",
"0.63427824",
"0.6315062",
"0.63056654",
"0.6297681",
"0.62955314",
"0.6253664",
"0.6244248",
"0.6242821",
"0.62283045",
"0.6203751",... | 0.80399835 | 0 |
Convert from string date to datetime date | def d9fR(FStF) -> JRYC.datetime:
fpm4 = '%Y-%m-%d %H:%M:%S'
return JRYC.datetime.strptime(FStF, fpm4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8Xh(mbyn: str) -> qcWV:\n fBin = feVn.parse(mbyn)\n return fBin",
"def BOAD(JvEs):\n return JRYC.datetime.strptime(JvEs, T4Gm).date()",
"def tF7c(YKHO, _c1T):\n return qcWV.strptime(_c1T, EZB9)",
"def h_7O(ETcH):\n return qcWV.strptime(ETcH, '%d-%m-%Y')",
"def HD4I(_c1T: str) -> qcWV.da... | [
"0.8107113",
"0.79794824",
"0.7978466",
"0.79760593",
"0.78596133",
"0.7741537",
"0.77396774",
"0.77382433",
"0.76938766",
"0.7624674",
"0.7618998",
"0.7605321",
"0.75977236",
"0.7579478",
"0.7576189",
"0.7568651",
"0.75414133",
"0.75260115",
"0.7518601",
"0.7512581",
"0.7502... | 0.75546604 | 16 |
Authorize request according to an authentication challenge This method is called when the resource provider responds 401 with a WWWAuthenticate header. | async def on_challenge(YKHO, QePW: 'PipelineRequest', geh0: 'PipelineResponse') -> bool:
if not YKHO._discover_tenant and (not YKHO._discover_scopes):
return False
try:
yzq9 = EUfG(geh0.http_response.headers.get('WWW-Authenticate'))
rrBf = yzq9.scope or yzq9.resource + '/.default' if YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kp8U(YKHO):\n YKHO.set_header('WWW-Authenticate', 'Basic realm=pyjojo')\n YKHO.set_status(401)\n YKHO.finish()",
"def NLCy():\n return oGir('Could not verify your access level for that URL.\\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})"... | [
"0.7588076",
"0.71203256",
"0.71121407",
"0.70901877",
"0.7088223",
"0.7081744",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
"0.7059246",
... | 0.0 | -1 |
Generate a random password | def Xu8u(u54L=24, uSor=True, ZrBY=True, Ho1w=True, e3CX=True):
print('\n-----Generating password')
p4k2 = ''
RBFf = ''
if uSor:
p4k2 += vIwR.ascii_lowercase
RBFf += tuKI.choice(vIwR.ascii_lowercase)
if ZrBY:
p4k2 += vIwR.ascii_uppercase
RBFf += tuKI.choice(vIwR.ascii_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ikbr():\n return ''.join((jxbx().choice(tcl1 + BHGE) for bGrB in range(8)))",
"def ENfd(len=12):\n import random, string\n rmc3 = string.ascii_letters + string.digits\n QTBn = random.getstate()\n random.seed()\n Aofo = ''.join((random.choice(rmc3) for YRbF in range(len)))\n random.setsta... | [
"0.88522214",
"0.8760176",
"0.8683735",
"0.86716175",
"0.8671445",
"0.8626893",
"0.86246973",
"0.85345656",
"0.85127246",
"0.8443116",
"0.83872384",
"0.83781034",
"0.8334304",
"0.83304584",
"0.8316496",
"0.83030474",
"0.8270572",
"0.8258837",
"0.8226775",
"0.82097226",
"0.816... | 0.763438 | 66 |
User Class Constructor to init an object with a random password | def FIMM(YKHO, mWFP):
YKHO.name = mWFP
YKHO.pw = Xu8u() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, CBIr):\n YKHO.id = format(xXda.getrandbits(512), 'X')\n YKHO.password = format(xXda.getrandbits(512), 'X')\n YKHO.user = CBIr\n YKHO.__pass = inZ1(YKHO.password)",
"def FIMM(YKHO, D3lj, NtEF, jTXt, uJjO):\n YKHO.email = D3lj\n YKHO.username = NtEF\n YKHO.user_id = uJjO\n YK... | [
"0.8067642",
"0.78854907",
"0.7863986",
"0.76455635",
"0.7592575",
"0.75397897",
"0.7526388",
"0.7504096",
"0.7494543",
"0.7475348",
"0.7467896",
"0.74022526",
"0.7371729",
"0.7317858",
"0.72918665",
"0.72692394",
"0.7251982",
"0.72484285",
"0.7236206",
"0.7188699",
"0.718410... | 0.7022458 | 26 |
Change password, retrying until retry limit is reached. Given a password that should be rejected, repeatedly attempt to change the password for the given user. If the password is rejected, retry until the retry limit is reached, or the password is successfully changed. | def lZxH(CBIr, DaM_):
print(f'\n===Attempting to change password for {CBIr.name} to invalid ' + f"pw '{DaM_}'")
aUGN = PEab(f'sudo login {CBIr.name}', encoding='utf-8')
UHFx = 0
try:
aUGN.expect_password_prompt(CBIr.pw)
aUGN.expect(['\\$'])
aUGN.sendline('whoami')
aUGN.ex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def change(jTXt: str, CBIr=emMa('user/read', 'user/write', 'user/password')):\n if not lFFE(jTXt):\n raise pgG1(422, 'password not long enough (min=10)')\n if len(jTXt) > 80:\n raise pgG1(422, 'password too long (max=60)')\n await faAE(jTXt, CBIr['id'])\n return 'ok'",
"def dNt8(C... | [
"0.6911532",
"0.6428234",
"0.64111036",
"0.62631404",
"0.61575174",
"0.6095178",
"0.6083641",
"0.6023175",
"0.60196376",
"0.59150636",
"0.59049404",
"0.5881431",
"0.58673936",
"0.5842396",
"0.5841051",
"0.5824109",
"0.5822291",
"0.5813918",
"0.5804154",
"0.5795755",
"0.579562... | 0.7747741 | 0 |
Return True if stmt is a 'set output' statement | def Z8xd(ZlgM):
r8hN = ZbWC.match(t7Io, ZlgM)
return True if r8hN else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X_fC(ZlgM):\n r8hN = ZbWC.match(J0dM, ZlgM)\n return True if r8hN else False",
"def KnuQ(YKHO) -> bool:\n if YKHO.force_output:\n return True\n if YKHO.conn_config is None:\n return False\n return YKHO.conn_config.output_act is not None or YKHO.conn_config.output_deact is not Non... | [
"0.7360595",
"0.6100907",
"0.6015768",
"0.60151964",
"0.59009904",
"0.59009904",
"0.59009904",
"0.58353734",
"0.5695358",
"0.56937015",
"0.5691119",
"0.5627016",
"0.5440322",
"0.54399186",
"0.5406941",
"0.53591853",
"0.535077",
"0.53460026",
"0.5332056",
"0.53164077",
"0.5311... | 0.89114946 | 0 |
\ returns a comparator for a given index. | def xEOs(d6pt):
d6pt = V4KP(d6pt)
def qk7K(jzdc, Fg_i):
jzdc = d6pt(jzdc)
Fg_i = d6pt(Fg_i)
return jzdc < Fg_i and -1 or (jzdc == Fg_i and 0) or 1
return qk7K | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DA8K(YKHO, GFDZ):\n return YKHO.comparisons[GFDZ]",
"def GFDZ():\n pass",
"def DA8K(YKHO):\n return YKHO.Comparator.value()",
"def Nk60(YKHO, MKlR, G1Hx):\n return YKHO._compareTo(YKHO._elementList[MKlR].priority, YKHO._elementList[G1Hx].priority)",
"def Vn7Z(YKHO, d6pt, CkQX=False):\n r... | [
"0.62900805",
"0.6158838",
"0.57494104",
"0.5728032",
"0.57272893",
"0.5667371",
"0.55979913",
"0.5417216",
"0.5392113",
"0.5326297",
"0.53038365",
"0.5286166",
"0.5277124",
"0.5259051",
"0.52589583",
"0.5245848",
"0.522956",
"0.5218797",
"0.51819664",
"0.5145675",
"0.5144877... | 0.7249599 | 0 |
Testea que las tags retornadas sean SOLO para el usuario logeado. | def IARo(YKHO):
uDCI = egNl().objects.create_user('test2@francorueta.com', 'pass1234')
OhYN.objects.create(user=uDCI, name='Calorico')
TZ9E = OhYN.objects.create(user=YKHO.user, name='Coccion rapida')
Ylbp = YKHO.client.get(ebJ5)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
YKHO.assertEq... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IARo(YKHO):\n b5K5 = nIoS('test2@test.com', 'testPassword')\n OhYN.objects.create(user=b5K5, name='Vegan')\n TZ9E = OhYN.objects.create(user=YKHO.user, name='Comfort food')\n Ylbp = YKHO.client.get(ebJ5)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(len(Ylbp.data),... | [
"0.62823856",
"0.62792444",
"0.62454027",
"0.6223924",
"0.6203519",
"0.6160181",
"0.6139074",
"0.6136087",
"0.60919595",
"0.6087423",
"0.60794973",
"0.6023993",
"0.5951544",
"0.5851993",
"0.5810359",
"0.57801247",
"0.57798916",
"0.5766941",
"0.5681325",
"0.5627601",
"0.562447... | 0.6464297 | 0 |
Return the state attributes. | def R1i3(YKHO):
return YKHO._attributes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.8335189",
"0.8335189",
"0.8335189",
"0... | 0.82867026 | 27 |
Downloads a blob from the bucket. | def DPRZ(bNKA, l7rj, JC20, AHTG):
ntiA = S8SU.Client(bNKA)
WE7e = ntiA.get_bucket(l7rj)
vxw0 = WE7e.blob(JC20)
vxw0.download_to_filename(AHTG)
print('Blob {} downloaded to {}.'.format(JC20, AHTG)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n return vxw0",
"def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n NRcB = xDSY.BytesIO()\n return vxw0.download_to_file(NRcB)",
"def DPRZ(... | [
"0.81216",
"0.7957541",
"0.77650166",
"0.76453996",
"0.7630873",
"0.7603773",
"0.7534157",
"0.75023687",
"0.7482801",
"0.7474071",
"0.7474071",
"0.7474071",
"0.7458533",
"0.74574214",
"0.74448717",
"0.7425158",
"0.7425142",
"0.740443",
"0.73784876",
"0.7373136",
"0.7370222",
... | 0.75344056 | 6 |
Pass in array of JSON objects, a dictionary with key/value pairs to match against, and another dictionary with expected key/value pairs. | def GzYr(BKku, obhf, aEqx):
Azil = 0
for ZfUD in BKku:
YjiR = True
for H5ew, BWXx in obhf.items():
if ZfUD[H5ew] != BWXx:
YjiR = False
if not YjiR:
continue
for H5ew, BWXx in aEqx.items():
if ZfUD[H5ew] != BWXx:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _bjF(TFbm, GGsH):\n if type(TFbm) is dict:\n for v2pS in TFbm:\n if v2pS not in GGsH or not _bjF(TFbm[v2pS], GGsH[v2pS]):\n return False\n elif type(TFbm) is list:\n for blaZ, GrWB in zip(TFbm, GGsH):\n if not _bjF(blaZ, GrWB):\n return Fa... | [
"0.6699434",
"0.6644524",
"0.6287309",
"0.6243737",
"0.61399305",
"0.6085667",
"0.6085246",
"0.60815877",
"0.58355874",
"0.5823832",
"0.57950705",
"0.57942885",
"0.57819444",
"0.5781333",
"0.57547116",
"0.5733519",
"0.5708804",
"0.56947076",
"0.5686405",
"0.56763095",
"0.5672... | 0.618989 | 4 |
Obtain the Pozyx's euler angles sensor data in degrees(heading, roll, pitch). | def X5JF(YKHO, X1qI, RVHh=None):
return YKHO.getRead(kVB4.EULER_ANGLE_HEADING, X1qI, RVHh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J_LO(YKHO) -> float:\n YKHO._warn_if_uncalibrated()\n return YKHO._pos / YKHO._rollover_steps * 360 % 360",
"def Qcvu(YKHO):\n cEyu, rKSe, H2HG = YKHO._read_vector(_114)\n return (cEyu / 16.0, rKSe / 16.0, H2HG / 16.0)",
"def Qcvu(YKHO):\n cEyu, rKSe, H2HG = YKHO._read_vector(YKHO.BNO055_EUL... | [
"0.7245841",
"0.7036972",
"0.70204335",
"0.7011619",
"0.6985274",
"0.6982757",
"0.6916194",
"0.68903965",
"0.6882509",
"0.6861307",
"0.6794158",
"0.67892694",
"0.67862433",
"0.6773178",
"0.6771027",
"0.6769291",
"0.6765902",
"0.67625886",
"0.6759017",
"0.67352074",
"0.6715238... | 0.693412 | 6 |
Obtain the Pozyx's normalized quaternion sensor data that is required for ROS. | def O8vm(YKHO, slpS, RVHh=None):
jGRS = YKHO.getQuaternion(slpS, RVHh)
if jGRS == ECvU:
slpS.normalize()
return jGRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HBfW(YKHO):\n CkYf = YKHO.norm\n WKvO, LVAh, epBp, yzQ0 = YKHO.xyzw\n return wokl.from_unit_xyzw((WKvO / CkYf, LVAh / CkYf, epBp / CkYf, yzQ0 / CkYf))",
"def g8br(YKHO):\n YKHO.x[wHLO.QW:wHLO.BX, 0] = R5H8(YKHO.x[wHLO.QW:wHLO.BX, 0]).normalised.elements",
"def slpS(YKHO):\n return YKHO.q",
... | [
"0.63817984",
"0.62996477",
"0.62465763",
"0.6220054",
"0.61880887",
"0.61670196",
"0.616567",
"0.6113124",
"0.60911596",
"0.60816735",
"0.60418385",
"0.6001462",
"0.5947626",
"0.5943538",
"0.59254867",
"0.591705",
"0.5893102",
"0.5891725",
"0.5866731",
"0.5855373",
"0.582396... | 0.6285693 | 2 |
Converts 'first_name' to 'First name' | def N_zS(mWFP):
if not mWFP:
return u''
return mWFP.replace('_', ' ').capitalize() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.... | [
"0.74964064",
"0.7491686",
"0.7460811",
"0.7458969",
"0.7450149",
"0.7448876",
"0.7444298",
"0.74442345",
"0.7437678",
"0.74312633",
"0.7427124",
"0.7427124",
"0.74170136",
"0.7415459",
"0.7415459",
"0.7405739",
"0.7395284",
"0.7395284",
"0.7395284",
"0.7395284",
"0.7395284",... | 0.0 | -1 |
build error message and set to error_message instance attribute | def gOQN(YKHO, _2sc, U66B, rhwM: str):
if not _2sc and (not U66B):
RXds, IewR, UIFH = HwRy.exc_info()
ugGv = wVCK.extract_tb(UIFH)
YKHO.error_message = f'File : {ugGv[0][0]}\nLine Number : {ugGv[0][1]}\nFunc.Name : {ugGv[0][2]}()\nException type : {RXds.__name__} \nException Message : {rhwM}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhwM(YKHO) -> PJEK:\n return YKHO.__error_msg",
"def P1dF(YKHO):\n if not YKHO._error:\n return ''\n Ol8d = YKHO.messages.get(YKHO._error.message)\n if not Ol8d:\n return YKHO.generic_error\n if YKHO._error.params:\n return Ol8d.format(**YKHO._error.params)\n return Ol8... | [
"0.762083",
"0.7430424",
"0.7348018",
"0.73370963",
"0.72275084",
"0.72275084",
"0.72275084",
"0.72275084",
"0.72111905",
"0.7185054",
"0.7185054",
"0.71711904",
"0.71602714",
"0.712536",
"0.7117402",
"0.70745623",
"0.70183945",
"0.7009565",
"0.69997555",
"0.6987616",
"0.6987... | 0.7390757 | 2 |
Compute IOU between all boxes from ``boxes1`` with all boxes from ``boxes2``. | def kB1y(wGB6, QFOH):
ewJg, Khbt = (wGB6[:, :2] - wGB6[:, 2:4] / 2).split(1, 1)
Q9ku, J4l7 = (wGB6[:, :2] + wGB6[:, 2:4] / 2).split(1, 1)
vSZT, WHlL = (QFOH[:, :2] - QFOH[:, 2:4] / 2).split(1, 1)
guU_, QGiE = (QFOH[:, :2] + QFOH[:, 2:4] / 2).split(1, 1)
Jw7X = (Q9ku.min(guU_.t()) - ewJg.max(vSZT.t()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHLW(wGB6: np.array, QFOH: np.array) -> oyIN.array:\n C7_8, b65I = Fo_W(wGB6, QFOH)\n RjuK = C7_8 / b65I\n return RjuK",
"def WHLW(wGB6, QFOH):\n bzU2 = ab__(wGB6)\n Eq1k = ab__(QFOH)\n D5g7 = ht2j.max(wGB6[:, None, :2], QFOH[:, :2])\n FohR = ht2j.min(wGB6[:, None, 2:], QFOH[:, 2:])\n ... | [
"0.89877254",
"0.8792601",
"0.86651295",
"0.8598237",
"0.8572305",
"0.849356",
"0.846878",
"0.8461933",
"0.8460545",
"0.8460545",
"0.84586036",
"0.8448914",
"0.84481335",
"0.84386444",
"0.84320754",
"0.8426902",
"0.84263724",
"0.84263724",
"0.84263724",
"0.84263724",
"0.84240... | 0.0 | -1 |
creates a user profile for a new user | def gr_i():
c9ua = QePW.form.get('first-name')
zp3f = QePW.form.get('last-name')
D3lj = QePW.form.get('email')
DD6W = QePW.form.get('zipcode')
jTXt = QePW.form.get('password')
Q5YQ = mv1M(first_name=c9ua, last_name=zp3f, email=D3lj, zipcode=DD6W, password=jTXt)
NCls.session.add(Q5YQ)
NCl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n SYRW.objects.create(user=KAOR)",
"def sxXS(vC92, **B2fa):\n z39Z = BFpK(user=B2fa['user'])\n z39Z.save()",
"def euOS(YKHO):\n zR3h = BFpK.objects.create(user=YKHO, biography='')",
"def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n S... | [
"0.8378431",
"0.8279295",
"0.82344943",
"0.8146619",
"0.8133646",
"0.812277",
"0.8097351",
"0.8097351",
"0.8097351",
"0.8097351",
"0.80924314",
"0.8078133",
"0.8046243",
"0.8021767",
"0.80073816",
"0.7982811",
"0.7982811",
"0.79803526",
"0.79803526",
"0.79604673",
"0.79561967... | 0.0 | -1 |
Gets the pressure of this SensorData. | def CJ2p(YKHO):
return YKHO._pressure | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MLFu(YKHO):\n YKHO._init_pressure()\n CJ2p = 0\n nPrm = YKHO._pressure.pressureRead()\n if nPrm[0]:\n CJ2p = nPrm[1]\n return CJ2p",
"def CJ2p(YKHO):\n return YKHO.pressure_and_temperature[1]",
"def CJ2p(YKHO):\n Q_mI = YKHO.energy() - 0.5 * YKHO.momTotalSqr() / YKHO.dens() - YK... | [
"0.8433626",
"0.82474846",
"0.7915506",
"0.7904539",
"0.78376067",
"0.7818853",
"0.77964675",
"0.7679024",
"0.7638579",
"0.7620116",
"0.7544144",
"0.7512177",
"0.74740976",
"0.7361202",
"0.7307073",
"0.72886837",
"0.7252728",
"0.7206679",
"0.7198431",
"0.71864927",
"0.7060988... | 0.8396973 | 1 |
Gets the humidity of this SensorData. | def dU0H(YKHO):
return YKHO._humidity | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dU0H(YKHO):\n dU0H = YKHO._readHum()\n return dU0H",
"def dU0H(YKHO):\n return YKHO._dht11.humidity()",
"def dU0H(YKHO) -> int:\n return YKHO.data['humidity']",
"def dU0H(YKHO) -> float:\n return YKHO._device_information['telemetry']['current']['humidity']",
"def JxEH(YKHO):\n return ... | [
"0.8872222",
"0.88135564",
"0.88132364",
"0.87706",
"0.87618005",
"0.8758198",
"0.8730854",
"0.8656554",
"0.86194354",
"0.85661674",
"0.8522656",
"0.8517584",
"0.85148937",
"0.84794444",
"0.84420675",
"0.8378136",
"0.8329536",
"0.8220096",
"0.81906515",
"0.8163807",
"0.815856... | 0.89102477 | 1 |
Raises TokenExpiredError when authorization token is expired or revoked. | def yxS0(eHNT):
def h3Xc(*qIxc, **B2fa):
try:
return eHNT(*qIxc, **B2fa)
except WMrm:
raise Vmml
return h3Xc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WM7d():\n Ol8d = 'Token is expired.'\n Cq54(Ol8d)\n eTsH(401, Ol8d)",
"def rJyF(YKHO, P1dF):\n YKHO.request_token()\n return 'Token refreshed. Please try again.'",
"def cMIB() -> tuple:\n return (pz3A({'description': 'The token has expired', 'error': 'token_expired'}), 401)",
"def K249(... | [
"0.7779027",
"0.7257805",
"0.70639735",
"0.6955544",
"0.69484395",
"0.69484395",
"0.69097006",
"0.69078773",
"0.69032615",
"0.688715",
"0.68724823",
"0.68719673",
"0.68122953",
"0.68005323",
"0.667491",
"0.6664766",
"0.6663128",
"0.6650186",
"0.66405845",
"0.6583867",
"0.6582... | 0.0 | -1 |
Rudimentary string to float conversion if the string representation contains both comma and dot. Pythonic way would be using locale, but this leads to problems on mac, keep this method for the time being. | def aURO(KCHu: str) -> float:
KCHu = float(KCHu.replace('.', '').replace(',', '.'))
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LyLM(KCHu):\n if KCHu is None:\n return None\n return float(KCHu.replace('.', '').replace(',', '.'))",
"def gBe3(x_rR):\n return float(x_rR.replace(',', '.'))",
"def ThOr(l5Ny: str) -> float:\n BWXx = NCqB.atof(l5Ny)\n return BWXx",
"def SaHY(vIwR: str) -> float:\n if vIwR.strip(... | [
"0.81186503",
"0.79736185",
"0.7721442",
"0.762874",
"0.74727035",
"0.7377474",
"0.7350488",
"0.730145",
"0.72919184",
"0.7285487",
"0.72704864",
"0.7219417",
"0.71829796",
"0.71761185",
"0.71659267",
"0.7164974",
"0.715396",
"0.71532154",
"0.7150196",
"0.7116004",
"0.7108053... | 0.7477614 | 4 |
Gets the form field associated with this field. | def GJ92(YKHO, **B2fa):
muwo = {'form_class': e4a3}
muwo.update(B2fa)
return super().formfield(**muwo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q27N(YKHO):\n return YKHO.form_field",
"def QTMT(YKHO, hkS8=None):\n hkS8 = hkS8 or YKHO.attr\n return QTMT(YKHO.model, hkS8)",
"def Jyyj(YKHO):\n return YKHO._field",
"def Jyyj(YKHO):\n return YKHO._field",
"def Jyyj(YKHO):\n return YKHO._field",
"def Jyyj(YKHO):\n return YKHO._... | [
"0.8682902",
"0.75740397",
"0.7520692",
"0.75147843",
"0.75147843",
"0.75147843",
"0.75147843",
"0.75147843",
"0.75147843",
"0.75147843",
"0.7455972",
"0.7400952",
"0.7361962",
"0.7334315",
"0.73295254",
"0.72089726",
"0.7179924",
"0.6998918",
"0.69319504",
"0.68664604",
"0.6... | 0.0 | -1 |
Compute area of a triangle given its three summits 2D coordinates | def cGOR(jzdc, Fg_i, Z9rn):
jzdc = oyIN.array(jzdc)
Fg_i = oyIN.array(Fg_i)
Z9rn = oyIN.array(Z9rn)
bBVO = Fg_i - jzdc
_P6x = Z9rn - jzdc
return abs(bBVO[0] * _P6x[1] - bBVO[1] * _P6x[0]) / 2.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a1HB(hQHm, jlSq, bUZ8):\n jzdc = jlSq[0] - hQHm[0]\n Fg_i = bUZ8[0] - hQHm[0]\n Z9rn = jlSq[1] - hQHm[1]\n Csk6 = bUZ8[1] - hQHm[1]\n return abs(jzdc * Csk6 - Fg_i * Z9rn) / 2.0",
"def cGOR(jzdc, Fg_i, Z9rn):\n bBVO = jzdc - Fg_i\n _P6x = jzdc - Z9rn\n return CkYf(oyIN.cross(bBVO, _P6... | [
"0.8239506",
"0.81804645",
"0.8166195",
"0.8140721",
"0.80173266",
"0.8014308",
"0.7886316",
"0.7808762",
"0.7804041",
"0.77847266",
"0.7732826",
"0.7717527",
"0.7684687",
"0.76483154",
"0.76483154",
"0.7646952",
"0.7646952",
"0.7643192",
"0.7643192",
"0.76419544",
"0.7619633... | 0.8196896 | 1 |
Returns SERVICE_PROTOCOL (protocol of service) if set, or \'http\' | def KseF():
return Hy7s.environ.get('SERVICE_PROTOCOL', 'http') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F9yi(YKHO) -> str:\n iquo = YKHO.tags.get('PROTOCOL', UyvR)\n if iquo.upper() in Rz3m:\n return iquo.upper()\n return UyvR",
"def YlwY(YKHO):\n return 'https' if YKHO._use_ssl else 'http'",
"def iquo(YKHO) -> h8nf[qe4Y.Input['BackendServiceProtocol']]:\n return qe4Y.get(YKHO, 'protoco... | [
"0.7563369",
"0.75431836",
"0.7150356",
"0.69144577",
"0.6895265",
"0.6876415",
"0.6876415",
"0.6876415",
"0.6876415",
"0.6876415",
"0.6876415",
"0.6753525",
"0.6753525",
"0.6753525",
"0.6753525",
"0.6706639",
"0.6695385",
"0.6681709",
"0.6643065",
"0.6617987",
"0.6610067",
... | 0.8704319 | 0 |
Returns SERVICE_HOST (host address of service) if set, or \'0.0.0.0\' | def YFLU():
return Hy7s.environ.get('SERVICE_HOST', '0.0.0.0') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BfLc(YKHO):\n return YKHO._service_host",
"def cBgP(YKHO):\n return '127.0.0.1'",
"def MYrE(zVa7):\n zVa7 = zVa7.upper()\n qQlr = Hy7s.environ['%s_PORT' % zVa7]\n cxLE = qQlr.split('://')[1]\n return cxLE",
"def tbfq(zVa7, zGKt):\n try:\n return Hy7s.environ['{}_{}_HOST'.forma... | [
"0.76681",
"0.7636301",
"0.72999823",
"0.71028906",
"0.69943506",
"0.69878656",
"0.6981333",
"0.6966252",
"0.69238234",
"0.6812792",
"0.67682755",
"0.67609406",
"0.67609406",
"0.6704707",
"0.6658983",
"0.66046745",
"0.65528923",
"0.65245867",
"0.65135044",
"0.650734",
"0.6498... | 0.8622655 | 0 |
Compute the softmax of each element along an axis of X. | def N93T(EcVT, q7In=1.0, jDK_=None):
LVAh = oyIN.atleast_2d(EcVT)
if jDK_ is None:
jDK_ = next((r845[0] for r845 in enumerate(LVAh.shape) if r845[1] > 1))
LVAh = LVAh * float(q7In)
LVAh = LVAh - oyIN.expand_dims(oyIN.max(LVAh, axis=jDK_), jDK_)
LVAh = oyIN.exp(LVAh)
GM4D = oyIN.expand_di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n WKvO = oyIN.transpose(WKvO)\n return oyIN.transpose(oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0))",
"def N93T(WKvO):\n if WKvO.ndim == 1:\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum(axis=0)\n else:\n uw5A = oyIN.exp(WKvO.T - oyIN.max(W... | [
"0.85829306",
"0.85623956",
"0.8485314",
"0.8471719",
"0.8463859",
"0.84578127",
"0.8438464",
"0.84282345",
"0.8422317",
"0.83954877",
"0.8395339",
"0.83913296",
"0.83822906",
"0.83557016",
"0.8347192",
"0.8332008",
"0.83197165",
"0.8319276",
"0.8315076",
"0.8313633",
"0.8312... | 0.0 | -1 |
Check for the presence of download complete pop up message | def lda2(YKHO) -> bool:
U6D_ = "//p[contains(text(), 'Download complete!')]"
if YKHO.check_element_presence(sJYp.XPath, U6D_, RBcy.ELEMENT_PRESENCE_TIMEOUT.value):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lda2(YKHO):\n U6D_ = \"//p[contains(text(), 'Download complete!')]\"\n if YKHO.check_element_presence(sJYp.XPath, U6D_, RBcy.ELEMENT_PRESENCE_TIMEOUT.value):\n return True\n return False",
"def V9Ny(YKHO) -> bool:\n U6D_ = \"//p[contains(text(), 'Download complete!')]\"\n LP2f = YKHO.ge... | [
"0.84392416",
"0.83962977",
"0.740084",
"0.71442634",
"0.7044412",
"0.70027614",
"0.69007343",
"0.67866695",
"0.6697365",
"0.65841335",
"0.65206707",
"0.65206707",
"0.65206707",
"0.6513435",
"0.6493975",
"0.6471292",
"0.6452305",
"0.63477236",
"0.63342655",
"0.62800884",
"0.6... | 0.84562135 | 0 |
Performs initialisation and creates a new estimator. | def FIMM(YKHO, x_7z: NumpyModelContainer, yDqo: str):
YKHO._model_container = x_7z
if YKHO.model_container.design_scale.shape[1] != 1:
raise ValueError('cannot model more than one scale parameter with numpy backend right now.')
YKHO.dtype = yDqo
YKHO.lls = []
YKHO.TrainingStrategies = nvgm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, BHCt=None):\n YKHO.estimator = BHCt",
"def FIMM(YKHO, BHCt=axnu()):\n YKHO.estimator = BHCt",
"def I5ZD(YKHO, NArs):\n pass",
"def FIMM(YKHO, BHCt=axnu()):\n YKHO.estimator = BHCt",
"def FIMM(YKHO, BHCt=axnu()):\n YKHO.estimator = BHCt",
"def FIMM(YKHO, BHCt, N5XC=10, uxrk=1... | [
"0.7927018",
"0.75210834",
"0.74981976",
"0.7422244",
"0.7422244",
"0.7303796",
"0.72495365",
"0.71966666",
"0.7194345",
"0.71819913",
"0.71620756",
"0.71003085",
"0.6988879",
"0.6955602",
"0.6923798",
"0.69097924",
"0.688789",
"0.6848128",
"0.68234074",
"0.68078667",
"0.6780... | 0.0 | -1 |
Calculate xlim and ylim | def zFiD(YKHO, UrXw):
bPUz = sum([ZfUD[0] for ZfUD in UrXw], [])
QlLM = sum([ZfUD[1] for ZfUD in UrXw], [])
jk7u = [min(bPUz), max(bPUz)]
rTQi = [min(QlLM), max(QlLM)]
print(jk7u, rTQi)
for nPrm in UrXw:
WKvO = nPrm[0]
LVAh = nPrm[1]
wNWy.r.plot(WKvO, LVAh, xlim=tuple(jk7... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ogFn(YKHO):\n aNZO = YKHO.widget.client.axes\n jk7u = aNZO.get_xlim()\n rTQi = aNZO.get_ylim()\n return (jk7u, rTQi)",
"def LVYq(YKHO):\n if YKHO.x_limits is None:\n edvT = YKHO.mt_collection.get_bounding_box()\n YKHO.x_limits = (edvT['MinLon'] - YKHO.xpad, edvT['MaxLon'] + YKHO.... | [
"0.7719476",
"0.7429696",
"0.7376944",
"0.7282968",
"0.72761405",
"0.6976823",
"0.6883337",
"0.68566763",
"0.68275034",
"0.68275034",
"0.68050206",
"0.68018585",
"0.67961514",
"0.6795429",
"0.67931163",
"0.67685914",
"0.6710477",
"0.66983825",
"0.666508",
"0.6635027",
"0.6612... | 0.0 | -1 |
Constructor for Pakettikauppa reseller class. Initial API and secret key included logger. | def FIMM(YKHO, fumg=0, rJDA=None, DXni=None):
YKHO._isInTestMode = fumg
super(XcXb, YKHO).__init__(YKHO._isInTestMode)
YKHO.mylogger = G9jH.getLogger(__name__)
if YKHO._isInTestMode == 1:
if rJDA is None or rJDA == '':
YKHO._api_key = '11111111-1111-1111-1111-111111111111'
el... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, uUiS, qWsO):\n YKHO.apiKey = uUiS\n YKHO.apiSecret = qWsO",
"def FIMM(YKHO, rJDA, sZ8K):\n YKHO._api_key = rJDA\n YKHO._api_secret = sZ8K",
"def FIMM(YKHO, dD1L, iP1k):\n YKHO.public_key = dD1L\n YKHO.secret_multiplier = iP1k",
"def FIMM(YKHO, *, rJDA: str='anonymous.user.key... | [
"0.75045645",
"0.7175285",
"0.7149781",
"0.7002436",
"0.692064",
"0.6856992",
"0.68277204",
"0.6824929",
"0.6824929",
"0.6824929",
"0.68172866",
"0.681087",
"0.6786544",
"0.67858",
"0.67858",
"0.6759517",
"0.6754216",
"0.67318827",
"0.6722632",
"0.6714987",
"0.6714987",
"0.... | 0.7911613 | 0 |
convert correlation matrix to covariance matrix given standard deviation | def bugn(bSmD, M1Jx):
bSmD = oyIN.asanyarray(bSmD)
nSFz = oyIN.asanyarray(M1Jx)
PFC2 = bSmD * oyIN.outer(nSFz, nSFz)
return PFC2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aW4l(bSmD, M1Jx):\n PFC2 = bSmD * oyIN.outer(M1Jx, M1Jx)\n return PFC2",
"def bugn(bSmD, M1Jx):\n I1mm = False\n if isinstance(bSmD, rLdf.DataFrame):\n WfCS = bSmD.columns.tolist()\n I1mm = True\n PFC2 = bSmD * oyIN.outer(M1Jx, M1Jx)\n if I1mm:\n PFC2 = rLdf.DataFrame(P... | [
"0.7294226",
"0.7251122",
"0.71362936",
"0.70794684",
"0.70584697",
"0.70171446",
"0.6930582",
"0.68867856",
"0.6872536",
"0.685295",
"0.68183655",
"0.6785726",
"0.6739103",
"0.6707616",
"0.6707616",
"0.6705843",
"0.66225106",
"0.66030544",
"0.66028804",
"0.65986997",
"0.6597... | 0.7260488 | 1 |
Get a correlation matrix template | def oF5T(WKvO, ulrI, LNo8):
def eHNT(hkxX, yvT9):
pCw0 = oyIN.nonzero(hkxX)
jzdc = hkxX[pCw0] - 1
Aofo.append(jzdc.astype(oyIN.int))
return 0
Aofo = []
V2fX.generic_filter(WKvO, eHNT, footprint=ulrI, mode='constant', extra_arguments=(Aofo,))
for YRbF, Ylbp in enumerate(A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVc0(nPrm):\n bGrB, TXzq = ROpF(nPrm)\n\n def YZhX(YRbF, r845):\n return dNGY(iYZ_(nPrm, YRbF), iYZ_(nPrm, r845))\n return OqWE(TXzq, TXzq, YZhX)",
"def WTF0(BQi2):\n nPrm = {}\n d6pt = [FBfN.feature_name for FBfN in BQi2]\n\n def EgqB(BQi2, mWFP):\n return list(filter(lambda ... | [
"0.67676276",
"0.65847594",
"0.656719",
"0.65267086",
"0.6464187",
"0.6455005",
"0.6406837",
"0.63556665",
"0.624758",
"0.62389743",
"0.6219119",
"0.6217568",
"0.61683387",
"0.6157216",
"0.6064885",
"0.60624886",
"0.6054532",
"0.6038429",
"0.6028606",
"0.60272205",
"0.6007172... | 0.6515743 | 4 |
get apt packages installed in an image. | def T07F(rTBW):
with pa4n(rTBW) as HtrH:
HCmI = "dpkg-query -Wf '${Package},${Version},${Source}\n'"
A37B = 'Package,Version,Source\n'
A37B += pa4n.run_docker_cmd(HtrH, HCmI)
return (A37B, HtrH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def stjD(cEzT):\n return evsB('apt-get install -y -q ' + cEzT)",
"def OAJt(rTBW):\n with pa4n(rTBW) as HtrH:\n A37B = 'Package,Version,License\\n'\n A37B += pa4n.run_docker_cmd(HtrH, \"rpm -qa --qf '%{NAME},%{VERSION},%{LICENSE}\\n'\")\n return (A37B, HtrH)",
"def fPYC(B5hb):\n RKD7('... | [
"0.72594076",
"0.6913008",
"0.6875493",
"0.6847225",
"0.6804733",
"0.6779912",
"0.6683323",
"0.66165155",
"0.6573407",
"0.6535789",
"0.65344733",
"0.6517463",
"0.6510158",
"0.647525",
"0.6420158",
"0.64181846",
"0.6397327",
"0.6395275",
"0.6346045",
"0.6274333",
"0.6264066",
... | 0.8365276 | 0 |
A SENet block implementation with Keras functional API | def BGkW(CK9p, mWFP=None, **B2fa):
Qi3c = CK9p.shape[-1]
WKvO = WN4z(pool_size=CK9p.shape[1:3], name=mWFP + '_avg_pool')(CK9p)
WKvO = l6ZH(Qi3c, activation='relu', name=mWFP + '_relu')(WKvO)
WKvO = l6ZH(Qi3c, activation='sigmoid', name=mWFP + '_sigmoid')(WKvO)
return WKvO * CK9p | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BGkW(g4y1: tf.Tensor, oNEO: float, z2bo: float, y0cW: Text, gQFA: int=4, dgr9: int=8, NY6x: Text='relu', _sK4: Text='hard_sigmoid', R1oy: Optional[tf.Tensor]=None) -> ZylS.Tensor:\n y0cW = y0cW + 'squeeze_excite/'\n if R1oy is None:\n R1oy = g4y1\n ApQ8 = R1oy.shape.as_list()[3]\n dxEX = g4y... | [
"0.6763918",
"0.67293805",
"0.6515356",
"0.6510677",
"0.6451468",
"0.6437367",
"0.643193",
"0.64021707",
"0.63943726",
"0.6347797",
"0.63462406",
"0.6328346",
"0.6325158",
"0.6322901",
"0.6315342",
"0.63055366",
"0.6291524",
"0.62851655",
"0.62851655",
"0.62851655",
"0.628516... | 0.67402595 | 1 |
3d Resnet block of `nf` features | def VN3H(RMvl, UET8, ZT17=3, CkYf='batch', A0RF=False):
return adS9(sx6c(RMvl, UET8, ZT17, pad=ZT17 // 2, norm=CkYf), sx6c(UET8, UET8, ZT17, pad=ZT17 // 2, norm=CkYf), pgZa(A0RF)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUH4(**B2fa):\n C3ST = _8RP(em1m, [2, 2, 2, 2], **B2fa)\n return C3ST",
"def OwNx(**B2fa):\n C3ST = _8RP(em1m, [3, 4, 6, 3], **B2fa)\n return C3ST",
"def Ype5(**B2fa):\n C3ST = _8RP(em1m, [1, 1, 1, 1], **B2fa)\n return C3ST",
"def f55J(**B2fa):\n C3ST = _8RP(em1m, [1, 1, 1, 1], **B2f... | [
"0.7061588",
"0.6926732",
"0.69204515",
"0.6761701",
"0.67510146",
"0.6644219",
"0.65936255",
"0.65688896",
"0.63967013",
"0.63809913",
"0.6379335",
"0.6270267",
"0.6249202",
"0.62450653",
"0.62378347",
"0.62260467",
"0.6198813",
"0.61778736",
"0.6145059",
"0.6136761",
"0.613... | 0.655533 | 8 |
Match input request's user agent HTTP header setting with prescribed value set at initialisation | def eqIu(YKHO, PNq_):
OdAo = 'HTTP_' + YKHO.http_hdr_field_match[0].upper().replace('-', '_')
NY7c = PNq_.get(OdAo)
if NY7c is None:
return False
else:
return YKHO.http_hdr_field_match[1] == NY7c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UEiM(YKHO, QePW):\n _iO9 = N3Yo(QePW)\n Xqgu = yWra(url=_iO9)\n assert BtDU in Xqgu.user_agent",
"def hb1q():\n return tuKI.choice(MOPg)",
"def FIMM(YKHO, pjcl):\n YKHO.header = {'User-Agent': pjcl}",
"def UEiM(YKHO, QePW):\n _iO9 = hKhs(QePW)\n Xqgu = yWra(url=_iO9)\n assert BtDU... | [
"0.715742",
"0.7095318",
"0.69484353",
"0.688727",
"0.6877008",
"0.68547195",
"0.68444824",
"0.6797713",
"0.6790146",
"0.67724645",
"0.6766374",
"0.67576844",
"0.67576844",
"0.67576844",
"0.67576844",
"0.66323495",
"0.6585074",
"0.65734196",
"0.65394026",
"0.65073806",
"0.650... | 0.0 | -1 |
Ensure Authentication realm is included with 401 responses | def cyRK(jGRS, MOPg, OLDy=None):
JBvl = int(jGRS.split()[0])
if JBvl == B3z0.UNAUTHORIZED:
Trfv = False
for mWFP, wEf2 in MOPg:
if mWFP.lower() == YKHO.__class__.AUTHENTICATE_HDR_FIELDNAME_LOWER:
Trfv = True
break
if not Trfv:
kVM3 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FSPR():\n return p5oO()",
"def p_Hn(YKHO, **B2fa):\n yzq9 = ', '.join((G1Hx + '=\"' + Ty9i.replace('\"', '\\\\\"') + '\"' for G1Hx, Ty9i in {'realm': YKHO.realm, **B2fa}.items()))\n return geh0.json({'error': 'unauthorized'}, status=401, headers={'WWW-Authenticate': 'Bearer ' + yzq9})",
"def bc40(... | [
"0.73442805",
"0.73416364",
"0.72391367",
"0.72002727",
"0.7195473",
"0.7125321",
"0.70962393",
"0.70962393",
"0.70837027",
"0.7012731",
"0.69719774",
"0.69719774",
"0.69685626",
"0.69685626",
"0.694252",
"0.69294614",
"0.69294614",
"0.68909353",
"0.68893766",
"0.688099",
"0.... | 0.0 | -1 |
Init the repository with the GhibliClient in order to could connect with the Ghibli API. | def FIMM(YKHO, x0hE: GhibliClient):
YKHO.client = x0hE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN(YKHO):\n lfcF()",
"def as4H(YKHO):\n Iz_c.initRepo()",
"def FIMM(YKHO, F3jJ):\n YKHO.repository = F3jJ",
"def uIcm(YKHO, GPtr, Pssr, uNSK):\n return",
"def FIMM(YKHO, _9I2: Repository):\n YKHO.repo_config = _9I2",
"def FIMM(YKHO, F3jJ):\n YKHO.client = bs5z(Fjhc)\n YKHO.repo... | [
"0.7237501",
"0.6584194",
"0.6566061",
"0.65503335",
"0.64543736",
"0.64046067",
"0.6384213",
"0.6349231",
"0.6316793",
"0.6299287",
"0.62561077",
"0.62484634",
"0.61924154",
"0.6146902",
"0.6066655",
"0.6056111",
"0.6045306",
"0.59862715",
"0.59824",
"0.59711254",
"0.5959816... | 0.6708099 | 1 |
This test will test gluon Conv2d computation on mkldnn with ndarray reshape | def GaRW():
class Net(ibys.HybridBlock):
def FIMM(YKHO, **B2fa):
super(Zgf_, YKHO).__init__(**B2fa)
with YKHO.name_scope():
YKHO.conv0 = U78l.Conv2D(10, (3, 3))
YKHO.conv1 = U78l.Conv2D(5, (3, 3))
def YpZi(YKHO, vuvg, WKvO):
_X4j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hnva():\n import mxnet as RsfQ\n from mxnet import gluon\n OaeV = RsfQ.cpu()\n Zxma = gluon.nn.HybridSequential()\n with Zxma.name_scope():\n Zxma.add(gluon.nn.Conv2D(channels=32, kernel_size=3, activation=None))\n Zxma.collect_params().initialize(ctx=OaeV)\n WKvO = RsfQ.nd.... | [
"0.6977459",
"0.63963664",
"0.6318589",
"0.61008507",
"0.60762405",
"0.60060775",
"0.5981908",
"0.5864864",
"0.5821606",
"0.5801802",
"0.57937104",
"0.578338",
"0.57581365",
"0.57573164",
"0.57264394",
"0.57236326",
"0.571528",
"0.5708589",
"0.57020533",
"0.570045",
"0.566431... | 0.6280594 | 3 |
Class to record the environment frames into a video. | def FIMM(YKHO, Z0kE, H2v2=256, TVTK=256, hBdd=0, bW5R=30):
YKHO.dir_name = Z0kE
YKHO.height = H2v2
YKHO.width = TVTK
YKHO.camera_id = hBdd
YKHO.fps = bW5R
YKHO.frames = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, sEAN, SQP_, ThFf, HkuM=200, y0cW='vid'):\n ch3p.Wrapper.__init__(YKHO, sEAN)\n YKHO.save_dir = SQP_\n YKHO.record_video_trigger = ThFf\n YKHO.video_length = HkuM\n YKHO.video_recorder = None\n YKHO.prefix = y0cW\n YKHO.step_id = 0\n YKHO.recording = False\n YKHO.num_record... | [
"0.7578469",
"0.7213337",
"0.7006649",
"0.69949156",
"0.6903978",
"0.6836851",
"0.68031466",
"0.67852026",
"0.6740267",
"0.6676198",
"0.66749537",
"0.6665661",
"0.663544",
"0.6594642",
"0.65018064",
"0.6498882",
"0.6414131",
"0.6399846",
"0.6397144",
"0.636993",
"0.635104",
... | 0.0 | -1 |
Gets the symbols of the initial set of atoms | def yIqk(Nqlg):
nbfC = ZbWC.compile('Fractional coordinates of asymmetric unit')
Gzk1 = ZbWC.compile('Molecule list generated from bond lengths')
NTei = ZbWC.compile('\\d+\\s+(\\w+)\\s+[cs]\\s+\\d+\\.\\d+\\s+\\d+\\.\\d+')
lDOu = next((YRbF for YRbF, Ty9i in enumerate(Nqlg) if nbfC.search(Ty9i) != None))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rmc3(YKHO):\n rmc3 = []\n for WhQ6 in YKHO._atoms:\n rmc3.append(WhQ6.symbol)\n YKHO._symbols = rmc3[:]\n return oyIN.asarray(YKHO._symbols)",
"def uGLX(I381):\n return crWc.by_key_by_position(RR8p(I381), n1wu(I381), hPcp)",
"def cRVy(Nqlg):\n nbfC = ZbWC.compile('Fractional coordi... | [
"0.72722155",
"0.7237409",
"0.7040714",
"0.6975394",
"0.6949913",
"0.6918048",
"0.6918048",
"0.69075257",
"0.69031936",
"0.69031936",
"0.68636286",
"0.68503684",
"0.66958994",
"0.6650235",
"0.6648512",
"0.66075087",
"0.65988076",
"0.6565361",
"0.65306586",
"0.6511768",
"0.648... | 0.69455636 | 5 |
Gets the mean number of atoms | def sbrt(Nqlg):
VstK = ZbWC.compile('Trials:.*')
nvLw = [VstK.search(YRbF) for YRbF in Nqlg]
roqJ = [YRbF for YRbF in nvLw if YRbF != None][-1]
return float(roqJ.group(0).split()[-1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(YKHO):\n if YKHO.counts.size <= 1 or max(YKHO.counts) == 0:\n return 0\n yk4i = YKHO.differential\n return (yk4i.bincenters * yk4i.counts).sum() / yk4i.counts.sum()",
"def JBMS(YKHO):\n KCHu = sum([vC9B * Z9rn for vC9B, Z9rn in zip(YKHO.lengths, YKHO.counts)])\n return KCHu / YKHO.... | [
"0.70096815",
"0.69468385",
"0.6897199",
"0.688883",
"0.6829233",
"0.68255836",
"0.6773441",
"0.6760218",
"0.6747158",
"0.6746702",
"0.6738553",
"0.6728746",
"0.6693505",
"0.66875255",
"0.6684069",
"0.6662787",
"0.6659648",
"0.6634109",
"0.66240245",
"0.66240245",
"0.66240245... | 0.0 | -1 |
Updates a test record from posted form data | def MJ87(re8H, NtEF, m8z6):
vC9B = re8H.locale
vmz7 = m8z6.integer('testid')
if m8z6.date('required') is None:
raise BfDw.ASMValidationError(bGrB('Required date must be a valid date', vC9B))
Pe9W = NCls.make_update_user_sql(re8H, 'animaltest', NtEF, 'ID=%d' % vmz7, (('AnimalID', m8z6.db_integer(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCEr(YKHO, x0hE):\n L03z = {'body': 'Testing post form'}\n geh0 = x0hE.post(nKyW('mypost.update'), data=L03z, follow_redirects=True)\n assert geh0.status_code == 200",
"def SREq(YKHO):\n dg7v = U2Av.objects.create(first_name='Dave', last_name='Null', birthday=_c1T(2015, 1, 1))\n ZaoB = gxEw('n... | [
"0.6963335",
"0.6941326",
"0.67173874",
"0.66460717",
"0.6630949",
"0.66224813",
"0.6607498",
"0.6593375",
"0.6577186",
"0.65564835",
"0.6431425",
"0.63715386",
"0.635022",
"0.6348485",
"0.6345245",
"0.63441896",
"0.6344134",
"0.6331834",
"0.63121176",
"0.63066256",
"0.627695... | 0.71536434 | 0 |
Marks a treatment record as given on newdate, assuming that newdate is valid. | def znLr(re8H, NtEF, NWWc, wQoI):
tsY9 = NCls.query_int(re8H, 'SELECT AnimalMedicalID FROM animalmedicaltreatment WHERE ID = %d' % NWWc)
NCls.execute(re8H, NCls.make_update_user_sql(re8H, 'animalmedicaltreatment', NtEF, 'ID = %d' % NWWc, (('DateGiven', NCls.dd(wQoI)), ('GivenBy', NCls.ds(NtEF)))))
Kd0t.edit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tGI5(re8H, NtEF, NWWc, wQoI):\n NCls.execute(re8H, 'UPDATE animalmedicaltreatment SET DateRequired = %s WHERE ID = %d' % (NCls.dd(wQoI), NWWc))\n Kd0t.edit(re8H, NtEF, 'animalmedicaltreatment', '%d required => %s' % (NWWc, str(wQoI)))",
"def iDxA(YKHO, iDxA):\n YKHO._date_valid = iDxA",
"def wjGx(... | [
"0.69909734",
"0.6323925",
"0.6189216",
"0.5981692",
"0.5958593",
"0.59559804",
"0.5846017",
"0.5756493",
"0.5746868",
"0.5717052",
"0.57058597",
"0.5667826",
"0.56582093",
"0.56476384",
"0.55999964",
"0.5586571",
"0.5586571",
"0.5586571",
"0.5586571",
"0.5586571",
"0.5577969... | 0.6026983 | 3 |
Asserts the _do_api_call_async for GET method. | async def test_do_api_call_async_get_method_with_success(YKHO, h5jU, vfoF):
async def mock_fun(gaYL, StMt, OVxS, OGKN):
return {'status': 'success'}
vfoF.return_value.__aexit__.return_value = yBzG
vfoF.return_value.__aenter__.return_value.get = zrRO()
vfoF.return_value.__aenter__.return_value.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dtKl(YKHO, bD7m=None):\n YKHO.assertTrue(YKHO.get.called)\n oeNL, B2fa = YKHO.get.call_args\n assert len(oeNL) >= 1\n if bD7m is not None:\n YKHO.assertEqual(oeNL[0], bD7m)\n YKHO.assertIn('headers', B2fa)\n YKHO.assertIn('Authorization', B2fa['headers'])\n YKHO.assertEqual(B2fa['he... | [
"0.67919105",
"0.6761594",
"0.6759195",
"0.66404355",
"0.6573776",
"0.6504248",
"0.647936",
"0.64744925",
"0.6468856",
"0.6453775",
"0.6406686",
"0.64053375",
"0.6351118",
"0.6281687",
"0.6259503",
"0.62569547",
"0.61924833",
"0.6190873",
"0.61868495",
"0.61405313",
"0.613490... | 0.6907946 | 0 |
returns the age of the Universe (in Gyr) at redshift z. | def C6y9(YKHO, epBp):
return zQMB.quad(lambda jzdc: 1.0 / (YKHO.H_a(jzdc) / 3.08e+19) / jzdc / (365 * 24.0 * 60.0 * 60.0), 1e-10, 1.0 / (1 + epBp))[0] / 1000000000.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def byKK(epBp):\n return NotImplemented",
"def eUoZ(YKHO, epBp, Aoie, PXGI='Gyr'):\n Rus0(PXGI)\n a1PO = YKHO.lookbacktime(epBp, unit='yr')\n ZylS = YKHO.lookbacktime(Aoie, unit='yr')\n JRYC = ZylS - a1PO\n if PXGI == 'yr':\n return JRYC\n elif PXGI == 'Gyr':\n return JRYC / 10... | [
"0.7601776",
"0.7595702",
"0.7419245",
"0.7088006",
"0.70254135",
"0.70189834",
"0.68311983",
"0.68028075",
"0.6794516",
"0.6791424",
"0.6791424",
"0.6614365",
"0.6610715",
"0.6534293",
"0.6531835",
"0.64869106",
"0.647976",
"0.6463506",
"0.6440992",
"0.64391166",
"0.64374083... | 0.0 | -1 |
Function that obtains all the bonds in the molecule as well as all the unique bonds | def _Oly(YKHO, U34r, QDJ2, fgZb=False):
T2Cp = U34r['[ bonds ]']
T2Cp = [vC9B for vC9B in T2Cp[1:] if not vC9B.startswith(';')]
RIM1 = []
Xy20 = []
for vC9B in T2Cp:
Fg_i = W0I0(vC9B, QDJ2, fgZb)
if Fg_i not in RIM1:
Xy20.append(Fg_i)
RIM1.append(Fg_i)
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T2Cp(YKHO):\n return (W0I0 for W0I0 in YKHO.chain.topology.bonds() if W0I0[0] in YKHO._atoms or W0I0[1] in YKHO._atoms)",
"def a68N(YKHO):\n return (W0I0 for W0I0 in YKHO.chain.topology.bonds() if W0I0[0] in YKHO._atoms and W0I0[1] in YKHO._atoms)",
"def T2Cp(YKHO):\n for kUkU in YKHO.residues:\n ... | [
"0.7381167",
"0.7277249",
"0.71682054",
"0.7105867",
"0.7069185",
"0.70679927",
"0.69639814",
"0.69587237",
"0.68706036",
"0.67166847",
"0.67082685",
"0.6633365",
"0.6595477",
"0.6580335",
"0.6512647",
"0.64943624",
"0.6358304",
"0.63228387",
"0.63071346",
"0.6283633",
"0.628... | 0.7632844 | 0 |
Test invalid financial_obligations parameters. | def U61p(x0hE, PJOU):
_hkX = x0hE.get('/api/v2/federal_obligations/?fiscal_year=2016')
assert _hkX.status_code == jGRS.HTTP_400_BAD_REQUEST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kpMg(x0hE, VDU9):\n VDU9()\n geh0 = x0hE.get(f'/fee?asset_code=USD&operation=generate', follow=True)\n hGN5 = qQXR.loads(geh0.content)\n assert geh0.status_code == 400\n assert hGN5 == {'error': \"'operation' should be either 'deposit' or 'withdraw'\"}",
"def ZssP(tt27: str) -> None:\n with... | [
"0.63999623",
"0.6368536",
"0.63650805",
"0.63592356",
"0.6342313",
"0.63402104",
"0.62828916",
"0.62805116",
"0.6261232",
"0.6257568",
"0.6238206",
"0.6216859",
"0.6207666",
"0.62000936",
"0.619859",
"0.61944205",
"0.6192336",
"0.6190164",
"0.61862326",
"0.61636025",
"0.6161... | 0.7268232 | 0 |
Get a list of stages for a given pipeline | def EuXk(nPIK):
return c4tt.parts(package_name=__name__, plugin_name=nPIK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EuXk():\n EuXk = IIs7.get_all_stages()\n for EtM5 in EuXk:\n k8wH.echo('{stage}'.format(stage=EtM5))",
"def EuXk(YKHO):\n Y9PO = 'stages.%s.json' % YKHO.SHOW\n zgjV = GPtr.readJson(Y9PO)\n lAPg = sorted(zgjV.values(), key=TU9R('id'))\n return lAPg",
"def XVXK(YKHO):\n return YKH... | [
"0.7369023",
"0.7361951",
"0.71887815",
"0.6932992",
"0.6744643",
"0.6718419",
"0.66873187",
"0.6650088",
"0.6546536",
"0.64801174",
"0.64689964",
"0.64377034",
"0.6434985",
"0.64004934",
"0.6383508",
"0.6342867",
"0.6305156",
"0.62877077",
"0.62649083",
"0.62421244",
"0.6214... | 0.8042387 | 0 |
Get a list of sessions for a given rundate for a pipeline | def rwTO(hVIq, nPIK, r_qn=None):
try:
return c4tt.call(package_name=__name__, plugin_name=nPIK, part='get_args', rundate=hVIq, input_args=r_qn)
except sumJ.UnknownPluginError:
RKD7.warn(f'Pipeline {nPIK} has not defined function get_args')
return input | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SAIY():\n rJDA = QePW.query.get('apiKey').strip()\n begE = QePW.query.get('device').strip()\n P4t4 = QePW.query.get('app').strip()\n return {'starttimes': Z7L0.datastore_interface.retrieve_sessions(rJDA, begE, P4t4)}",
"def rwTO(hVIq, r_qn=None):\n peBr = '--session_code'\n adg5 = set()\n ... | [
"0.63628125",
"0.63129205",
"0.62929463",
"0.6185985",
"0.617118",
"0.60568744",
"0.6056613",
"0.6028686",
"0.60082203",
"0.5958178",
"0.59543496",
"0.59543407",
"0.5951937",
"0.59409803",
"0.5900342",
"0.5871139",
"0.5840317",
"0.58386827",
"0.58313066",
"0.58268625",
"0.578... | 0.0 | -1 |
Return a Tensor containing the patches | def WCTN(h_xa: str, DNqB: str, exwG: int) -> ht2j.Tensor:
def MOUK(gF_I: Image.Image) -> oyIN.ndarray:
"""Convert PIL image type to numpy 2D array"""
return oyIN.array(gF_I.getdata(), dtype=oyIN.uint8).reshape(64, 64)
def A99F(fWTt: str, vSfm: str) -> x1iM[str]:
"""Return a list with t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wp2m(VXjJ, Ot1W=3, _0fC=1, dvgN=1):\n kQ4O = U78l.Unfold(kernel_size=Ot1W, padding=dvgN, stride=_0fC)\n ohfT = kQ4O(VXjJ)\n return ohfT.transpose(1, 2).squeeze()",
"def w2LD(WKvO: tf.Tensor) -> ZylS.Tensor:\n Cq8O = (ZylS.shape(WKvO)[0], oyIN.product(WKvO.shape[1:]))\n kNbz = ZylS.reshape(WKvO... | [
"0.66685784",
"0.66583574",
"0.65277886",
"0.6501094",
"0.6490988",
"0.64339274",
"0.6352289",
"0.6321028",
"0.62459177",
"0.6241648",
"0.6224862",
"0.6205929",
"0.61466295",
"0.6093246",
"0.6041175",
"0.6039249",
"0.60267967",
"0.602319",
"0.59776455",
"0.5970723",
"0.596654... | 0.0 | -1 |
Gets a single dashboard user given their ID. This function uses an ID to perform a query to the database that gets a dashboard user in the system that matches the given ID. | def gA5i(YKHO, oYg6):
N1p7 = YKHO.conn.cursor()
xDcj = 'select id, username, full_name, email, is_active, is_invalid from dashboard_user\n where id = %s\n AND is_invalid = FALSE;\n '
N1p7.execute(xDcj, (oYg6,))
CBIr = N1p7.fetchone()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(uJjO):\n return NCls.get(uJjO, None)",
"def g971(id):\n return mv1M.query.get(int(id))",
"def NMoC(YKHO, id):\n CBIr = mv1M.query.filter_by(id=id).first_or_404()\n return CBIr",
"def TKWP(uJjO):\n return mv1M.query.get(uJjO)",
"def bt8D(id):\n return mv1M.query.get(id)",
"def T... | [
"0.76138777",
"0.76112986",
"0.75428176",
"0.7536034",
"0.7523199",
"0.7520368",
"0.7477996",
"0.7476862",
"0.74647844",
"0.7433287",
"0.7433242",
"0.74285483",
"0.7407861",
"0.7365927",
"0.7359429",
"0.7348853",
"0.7326991",
"0.7316197",
"0.73105294",
"0.7286225",
"0.7286225... | 0.8068192 | 0 |
Gets a single Dashboard user given their email. This function accepts an email to perform a query to the database that gets a dashboard user in the system that matches the given email. | def XCMn(YKHO, D3lj):
N1p7 = YKHO.conn.cursor()
xDcj = 'select id, username, full_name, email, is_active, is_invalid from dashboard_user\n where email = %s\n AND is_invalid = FALSE;\n '
N1p7.execute(xDcj, (D3lj,))
DW23 = N1p7.fetchone()
return DW2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()",
"def CYTf(D3lj):\n xDcj = 'SELECT * FROM users WHERE email=%s'\n ZfUD, QoB4 = _dsm(xDcj, (D3lj,))\n if ZfUD is None:\n return None\n CBIr = dTxi([ZfUD], QoB4)[0]\n return CBIr",
"def n8z_(D3... | [
"0.8461674",
"0.8409148",
"0.83749515",
"0.83184546",
"0.83129966",
"0.8284174",
"0.8279994",
"0.8277057",
"0.8267119",
"0.82653886",
"0.8264511",
"0.8264511",
"0.8260645",
"0.82577455",
"0.82524574",
"0.82396936",
"0.82396936",
"0.82396936",
"0.8236804",
"0.8226297",
"0.8224... | 0.84027165 | 2 |
Updates the password for the dashboard user with the given ID. This function accepts an ID and a password hash and uses them to update password in the record of the user with the matching ID. | def huKb(YKHO, oYg6, jTXt):
N1p7 = YKHO.conn.cursor()
xDcj = '\n update dashboard_user\n set password_hash = %s\n where id = %s\n AND is_invalid = FALSE\n returning id, username, full_name, email, is_active, is_invalid;\n ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def faAE(uJjO, jTXt):\n r8hN.s.query(r8hN.User).filter(r8hN.User.id == uJjO).update({r8hN.User.password: jTXt})\n r8hN.s.commit()",
"def G3s8(id):\n try:\n CBIr = mv1M.query.filter_by(id=id).one()\n print(f'Updating password for: {CBIr}')\n jTXt = AOO4.getpass()\n CBIr.set_pa... | [
"0.75644314",
"0.7539287",
"0.7503478",
"0.7201817",
"0.71676683",
"0.7162905",
"0.71473837",
"0.70897746",
"0.70459807",
"0.7025528",
"0.70193267",
"0.69941014",
"0.69464266",
"0.68899626",
"0.6875378",
"0.6873335",
"0.6864961",
"0.68437743",
"0.6840154",
"0.6835242",
"0.682... | 0.772782 | 0 |
Updates the password for the dashboard user with the given username and sets is_active status. This function accepts a username and a password hash and uses them to update password in the record of the user with the matching ID. | def au1M(YKHO, NtEF, jTXt):
N1p7 = YKHO.conn.cursor()
xDcj = '\n update dashboard_user\n set password_hash = %s\n where username = %s\n AND is_invalid = FALSE\n returning id, username, full_name, email, is_active, is_invalid;\n ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDCx(Emd4, NtEF, tVIW):\n xDcj = {'username': NtEF, 'password': tVIW}\n NCls.update(collections='login_credentials', key='password', value=tVIW, query=xDcj)",
"def huKb(YKHO, oYg6, jTXt):\n N1p7 = YKHO.conn.cursor()\n xDcj = '\\n update dashboard_user\\n set password... | [
"0.72531885",
"0.72417307",
"0.71272796",
"0.70817107",
"0.7037517",
"0.70305866",
"0.6938464",
"0.6919404",
"0.6867169",
"0.6849915",
"0.6838456",
"0.68306935",
"0.68102306",
"0.6790281",
"0.6762483",
"0.67343795",
"0.6725072",
"0.6723023",
"0.67092335",
"0.6708214",
"0.6698... | 0.8144822 | 0 |
Return settings, if any, strictly for this directory. | def N2BP(Emd4, AGPF):
gIsw = Hy7s.path.join(AGPF, Emd4.SETTINGS_FILE)
gCuF = {}
if Hy7s.path.exists(gIsw):
with open(gIsw) as eHNT:
try:
gCuF = eHNT.read()
gCuF = qQXR.loads(gCuF)
except Exception:
gCuF = {}
eHNT.clo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def asJJ(YKHO):\n return []",
"def lWpF(YKHO):\n return YKHO.settings",
"def asJJ(YKHO):\n return YKHO.settings",
"def asJJ(YKHO):\n return YKHO.settings",
"def asJJ(YKHO):\n return YKHO._settings",
"def gCuF(YKHO):\n if not hasattr(YKHO, '_settings'):\n return {}\n return YKH... | [
"0.7342995",
"0.72717685",
"0.725602",
"0.725602",
"0.7198997",
"0.717839",
"0.71561253",
"0.7134684",
"0.713029",
"0.712476",
"0.71204144",
"0.711614",
"0.71087086",
"0.71087086",
"0.71087086",
"0.7101361",
"0.70780784",
"0.70723176",
"0.70535535",
"0.7042408",
"0.70306575",... | 0.626001 | 74 |
Initialize a NamedStruct element object. | def FIMM(YKHO, Jyyj, Tuqy=Kfu_.Native):
YKHO.name = Jyyj[0]
YKHO.ref = Jyyj[2]
YKHO._mode = Tuqy
YKHO.format = Tuqy.value + Jyyj[1]
YKHO._struct = BlNT.Struct(YKHO.format) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP):\n if isinstance(mWFP, QGpr._Element):\n YKHO._element = mWFP\n else:\n YKHO._element = QGpr.Element(mWFP)",
"def FIMM(YKHO, mWFP=None, **B2fa):\n super(cFlk, YKHO).__init__()\n YKHO[YKHO.attribute_token] = {}\n if mWFP:\n YKHO.attributes['name'] = mWFP\n ... | [
"0.68636584",
"0.63794255",
"0.6338867",
"0.6333331",
"0.62800854",
"0.62683904",
"0.6255491",
"0.6218941",
"0.6207103",
"0.6202468",
"0.60804284",
"0.6031443",
"0.59886414",
"0.5934414",
"0.5899425",
"0.5893571",
"0.5886342",
"0.5883631",
"0.5877798",
"0.5859892",
"0.5848086... | 0.0 | -1 |
Convert MNIST keras numpy arrays to usable data for NeuralNet. | def w37D():
print('NeuralNet by Automatus: Making MNIST Data...')
from keras.datasets import w37D
(sVsK, h4TO), (XUXj, s8RJ) = w37D.load_data()
if not Hy7s.path.exists(Hy7s.path.join(Hy7s.getcwd(), 'Data')):
Hy7s.makedirs(Hy7s.path.join(Hy7s.getcwd(), 'Data'))
yeBb = oyIN.zeros((1, 10))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bPNP():\n VEDo.random.seed(1)\n cZDQ = VEDo.random.permutation(range(60000))\n w37D = Aqyh('MNIST original', data_home=EeDH.path.join(O_Oy, 'MNIST_original'))\n return (w37D.data[:60000, :][cZDQ, :].reshape((60000, 1, 28, 28)).astype('float32'), w37D.target[:60000][cZDQ].reshape((60000, 1)).astype(... | [
"0.6926807",
"0.68890643",
"0.6870546",
"0.680971",
"0.67486084",
"0.67471546",
"0.67199767",
"0.6716041",
"0.6676422",
"0.6648813",
"0.6607077",
"0.65673894",
"0.6556424",
"0.6500814",
"0.64719653",
"0.6465689",
"0.6428847",
"0.640761",
"0.63997996",
"0.6396902",
"0.63707143... | 0.6899392 | 1 |
Normalize a given stack trace. | def pbG7(qnK1):
J8C3 = 0
Ep_C = []
for zFiD in qnK1:
r8hN = NdXd.match(zFiD)
if not r8hN:
continue
if r8hN.group('args'):
YvGl = iR71.match(r8hN.group('args'))
if YvGl and YvGl.group('address'):
J8C3 ^= int(YvGl.group('address'), 16... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BFp4(zgsA):\n return ZbWC.sub('File \"(.*)test.py\"', 'File \"test.py\"', zgsA)",
"def t30W(YiXM):\n Nqlg = YiXM.splitlines()\n naCG = []\n for zFiD in Nqlg:\n if not zFiD.lstrip().startswith('at sun.reflect.'):\n zFiD = oCR9.sub(lambda kUBT: kUBT.group(1), zFiD)\n zF... | [
"0.69248635",
"0.6611614",
"0.644755",
"0.6146957",
"0.57176614",
"0.5702637",
"0.5550693",
"0.554086",
"0.5498009",
"0.54942524",
"0.54058635",
"0.5400311",
"0.53883266",
"0.537039",
"0.53567123",
"0.53228205",
"0.528482",
"0.5259336",
"0.52520406",
"0.5214775",
"0.51329905"... | 0.70103174 | 0 |
find counts where prediction and actual are different and where prediciton is positive. outputs (1,K) array. | def n_nK(fuBA, aO1w):
return ((aO1w == 1) & (aO1w != fuBA)).sum(axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _sei(Y8eF, aMgO, G1Hx):\n if G1Hx == 0:\n return 0\n aMgO = aMgO[:G1Hx]\n UZha = set(aMgO)\n hJ1R = set(Y8eF)\n CR5D = UZha.intersection(hJ1R)\n return len(CR5D) / len(aMgO[:G1Hx])",
"def O3ar(TK2h, OaDz):\n LkVk = 0\n for YRbF in range(len(OaDz)):\n if TK2h[YRbF] == OaD... | [
"0.7137746",
"0.6926297",
"0.68812376",
"0.6854198",
"0.67562205",
"0.66735137",
"0.66106385",
"0.6599464",
"0.6580644",
"0.6507034",
"0.649563",
"0.64663064",
"0.64654946",
"0.64574564",
"0.6453691",
"0.6446552",
"0.64423466",
"0.64392",
"0.6429208",
"0.64228654",
"0.6403345... | 0.0 | -1 |
find a count where predicted and actual are the same and where prediction is True. outputs a (1,K) array | def E6nH(fuBA, aO1w):
return ((aO1w == fuBA) & (aO1w == 1)).sum(axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _sei(Y8eF, aMgO, G1Hx):\n if G1Hx == 0:\n return 0\n aMgO = aMgO[:G1Hx]\n UZha = set(aMgO)\n hJ1R = set(Y8eF)\n CR5D = UZha.intersection(hJ1R)\n return len(CR5D) / len(aMgO[:G1Hx])",
"def qk7K(nPrm, o3Uj):\n ewCu = oyIN.sum(oyIN.array(nPrm) == oyIN.array(o3Uj))\n print('Number ... | [
"0.73258096",
"0.6974352",
"0.6845433",
"0.68399775",
"0.6741305",
"0.66694564",
"0.6586104",
"0.6571624",
"0.6571158",
"0.6521494",
"0.65188307",
"0.651085",
"0.65077746",
"0.6462643",
"0.6453755",
"0.64153653",
"0.64102995",
"0.64046484",
"0.63827765",
"0.63803875",
"0.6369... | 0.0 | -1 |
Normalize mean X,Y values to match LCD screen. | def NkkI(YKHO, WKvO, LVAh):
WKvO = int(YKHO.x_multiplier * WKvO + YKHO.x_add)
LVAh = int(YKHO.y_multiplier * LVAh + YKHO.y_add)
return (WKvO, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEry(YKHO):\n YKHO.mean = oyIN.mean(YKHO.x_train)\n YKHO.std = oyIN.std(YKHO.x_train)\n YKHO.max = oyIN.max(YKHO.x_train)\n YKHO.min = oyIN.min(YKHO.x_train)\n YKHO.x_train = (YKHO.x_train - YKHO.mean) / YKHO.std\n YKHO.x_test = (YKHO.x_test - YKHO.mean) / YKHO.std\n YKHO.mean = oyIN.mean(... | [
"0.7523305",
"0.726552",
"0.72101915",
"0.7169862",
"0.7165028",
"0.71629924",
"0.7075484",
"0.705422",
"0.6996836",
"0.693506",
"0.6932646",
"0.6924321",
"0.69179666",
"0.69129103",
"0.6900464",
"0.6859341",
"0.6848681",
"0.684569",
"0.6836799",
"0.6827126",
"0.6820701",
"... | 0.6488076 | 64 |
Gives the eigenvalues of the average effective mass tensor at a given temperature and doping level. The average effective mass tensor is defined as the integrated average of the second derivative | def adgb(YKHO, ovGo=300, SnJZ=1e+18):
return {'p': sorted(oyIN.linalg.eigh(YKHO.get_average_eff_mass_tensor(temperature=ovGo, doping=SnJZ)['p'])[0]), 'n': sorted(oyIN.linalg.eigh(YKHO.get_average_eff_mass_tensor(temperature=ovGo, doping=SnJZ)['n'])[0])} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BXi5(JkKs=kPop(1000), iEJO=kK1R(1000), WBhM=0.1):\n Oa1e = JkKs\n r8hN = iEJO\n G1Hx = WBhM\n Xk7A = Oa1e ** 2 / (4 * r8hN ** 2) - G1Hx / r8hN\n WwX6 = Oa1e / (2 * r8hN)\n jWLi = WwX6 + oyIN.sqrt(Xk7A)\n VLpm = WwX6 - oyIN.sqrt(Xk7A)\n i4MF = UQtd('Eigenvalues', ['plus', 'minus'])\n ... | [
"0.6447986",
"0.64464897",
"0.64464897",
"0.64169794",
"0.63634026",
"0.6352013",
"0.6350374",
"0.6317823",
"0.62961406",
"0.61969537",
"0.6186436",
"0.60912955",
"0.6076747",
"0.6049154",
"0.6011802",
"0.6006678",
"0.60019475",
"0.59950024",
"0.59819025",
"0.5971359",
"0.596... | 0.77043307 | 0 |
This function takes the messages csv files and categories csv file to combine them together as one dataframe | def UlWi(xxT2, S6Zw):
yEHD = rLdf.read_csv(xxT2)
LeZt = rLdf.read_csv(S6Zw)
jQ3Z = rLdf.merge(yEHD, LeZt)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(xxT2, S6Zw):\n yEHD = rLdf.read_csv(xxT2)\n LeZt = rLdf.read_csv(S6Zw)\n jQ3Z = rLdf.merge(yEHD, LeZt)\n return jQ3Z",
"def UlWi(xxT2, S6Zw):\n yEHD = rLdf.read_csv(xxT2)\n LeZt = rLdf.read_csv(S6Zw)\n jQ3Z = yEHD.merge(LeZt, on=['id'], how='outer')\n return jQ3Z",
"def UlWi(xx... | [
"0.79954356",
"0.79695654",
"0.7914745",
"0.7905099",
"0.7875613",
"0.7857131",
"0.7830224",
"0.78143805",
"0.77930933",
"0.7791358",
"0.77739865",
"0.7763999",
"0.77582693",
"0.7726226",
"0.7722309",
"0.77042246",
"0.7693887",
"0.7686773",
"0.7684593",
"0.7683549",
"0.768262... | 0.7824812 | 7 |
Extend the given traces with the provided values. The traced value will be the old value plus the new value. | def pD6w(YKHO, **YSA3):
for G1Hx, Ty9i in YSA3.items():
try:
getattr(YKHO, G1Hx).accumulate(Ty9i)
except AttributeError:
raise AttributeError(G1Hx + ' is not being traced') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xI4N(Emd4, BWXx):\n Emd4._traced_values.append(BWXx)",
"def CaoY(YKHO, zgsA: 'Trace') -> 'Trace':\n MPiJ = lambda DpUl, BdN0: oLG2.concatenate((DpUl, BdN0), axis=1)\n for Jyyj, Qj8D in lKKu(zgsA.raw).items():\n izFS = getattr(YKHO.raw, Jyyj)\n if izFS is None and Qj8D is not None:\n ... | [
"0.62957114",
"0.6128989",
"0.61144793",
"0.59611756",
"0.56615615",
"0.55302536",
"0.5514853",
"0.5373743",
"0.53163517",
"0.5291161",
"0.52909166",
"0.51508695",
"0.5119267",
"0.51168144",
"0.51074",
"0.5097554",
"0.5095731",
"0.50732636",
"0.50359076",
"0.50350904",
"0.502... | 0.0 | -1 |
Create a new trace. We use a factory method here so that the History subclass can control the kind of trace created. The returned trace must be a subclass of history.Trace. | def nL9w(YKHO, uZq5=None, mWFP=None):
return zT4D(keep=uZq5, name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ghb_(YKHO, mWFP, _AKB=None, _tMc=False):\n return Aocg(mWFP, _AKB, YKHO, log_to_trace_logger=_tMc)",
"def BFRX(AgUk: Union[Trace, IRModule, Expr]) -> zT4D:\n if isinstance(AgUk, zT4D):\n return AgUk\n if isinstance(AgUk, hJOM):\n return zT4D(AgUk)\n if isinstance(AgUk, EWKA):\n ... | [
"0.68758565",
"0.60809207",
"0.5916752",
"0.57189035",
"0.56525314",
"0.558979",
"0.5532144",
"0.55170435",
"0.54923344",
"0.5469523",
"0.53910244",
"0.53859085",
"0.5243769",
"0.5212552",
"0.5197843",
"0.51223195",
"0.51154375",
"0.51019466",
"0.5091177",
"0.50811464",
"0.50... | 0.7276046 | 0 |
Add an item to the trace, shifting off from the beginning when the trace is full. | def NpNj(YKHO, BWXx):
if YKHO.keep < 1:
return
if len(YKHO._storage) == YKHO.keep:
YKHO._storage = YKHO._storage[1:]
YKHO._storage.append(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, ZfUD):\n YKHO.items.append(ZfUD)\n YKHO.swimup(len(YKHO.items) - 1)",
"def GOHH(YKHO, ZfUD):\n YKHO.insertItem(-1, ZfUD)",
"def wKvi(YKHO, ZfUD):\n YKHO.items.insert(0, ZfUD)",
"def hlZU(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)\n YKHO._show_stack(YKHO.stack)",
"def _jXH(YKHO,... | [
"0.75925183",
"0.7553364",
"0.7535496",
"0.74389607",
"0.7383621",
"0.72337216",
"0.7232774",
"0.7232135",
"0.72179574",
"0.7200922",
"0.7193868",
"0.71678203",
"0.71450937",
"0.71346015",
"0.7129028",
"0.7127698",
"0.71274257",
"0.71274257",
"0.71244067",
"0.7120598",
"0.712... | 0.0 | -1 |
Show the application window and start the event handling loop. | def nUHY(YKHO):
YKHO.wHnd.Centre()
YKHO.wHnd.Show()
YKHO.MainLoop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKcO(YKHO) -> None:\n YKHO._root_window.mainloop()",
"def bdZS(YKHO):\n YKHO.__window.mainloop()",
"def yKcO(YKHO):\n YKHO.__root.mainloop()",
"def hy4V(YKHO) -> None:\n YKHO.create_main_frame()\n YKHO.window.mainloop()",
"def yKcO(YKHO):\n YKHO.show()\n YKHO.raise_()\n return Y... | [
"0.78577894",
"0.775419",
"0.76063615",
"0.7562913",
"0.75424343",
"0.75225806",
"0.75041527",
"0.74476814",
"0.7413371",
"0.7400891",
"0.73953116",
"0.739002",
"0.739002",
"0.73692626",
"0.73413265",
"0.7329479",
"0.7327096",
"0.7315043",
"0.7301352",
"0.72831714",
"0.728121... | 0.0 | -1 |
Returns the live STATIC_ROOT directory. | def SfGk():
return NBAL('from django.conf import settings;print(settings.STATIC_ROOT)', show=False).split('\n')[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qpKq(YKHO):\n WmM4 = Hy7s.path.join(Hy7s.path.dirname(xAKo), '../static')\n return Hy7s.path.abspath(WmM4)",
"def R5in():\n if Hy7s.getcwd() == '/':\n return Hy7s.path.join(UMs9, b5uR)\n elif Hy7s.getcwd() == '/home/mikebannister':\n return Hy7s.path.join(UMs9, b5uR)\n elif Hy7s.... | [
"0.80697846",
"0.7924497",
"0.768689",
"0.7489461",
"0.7298384",
"0.7251681",
"0.7203757",
"0.68843853",
"0.6788227",
"0.6772284",
"0.67625386",
"0.67567486",
"0.6746216",
"0.6674917",
"0.6642967",
"0.6633043",
"0.6556486",
"0.6539737",
"0.65261304",
"0.6437851",
"0.6432107",... | 0.7229681 | 6 |
Compute bounding boxes from masks. | def p5Lc(ZHfW):
oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32)
for YRbF in range(ZHfW.shape[-1]):
r8hN = ZHfW[:, :, YRbF]
GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0]
mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0]
if GO_b.shape[0]:
o4D3, ajwV = GO_b[[0, -1]]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p5Lc(YKHO, ZHfW):\n oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32)\n for YRbF in range(ZHfW.shape[-1]):\n r8hN = ZHfW[:, :, YRbF]\n GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0]\n mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0]\n if GO_b.shape[0]:\n o4D3, ajwV... | [
"0.80536515",
"0.79045194",
"0.78664565",
"0.7813802",
"0.7813802",
"0.7813802",
"0.7813802",
"0.7813802",
"0.7813802",
"0.7813802",
"0.7805231",
"0.7797948",
"0.7717194",
"0.77041465",
"0.76850724",
"0.76350266",
"0.7564714",
"0.75099915",
"0.74631196",
"0.74620134",
"0.7462... | 0.78017044 | 11 |
Calculates IoU of the given box with the array of the given boxes. | def _xWy(FlUN, oUSw, ab__, p1Yn):
si3g = oyIN.maximum(FlUN[0], oUSw[:, 0])
skBL = oyIN.minimum(FlUN[2], oUSw[:, 2])
o4D3 = oyIN.maximum(FlUN[1], oUSw[:, 1])
ajwV = oyIN.minimum(FlUN[3], oUSw[:, 3])
iQin = oyIN.maximum(ajwV - o4D3, 0) * oyIN.maximum(skBL - si3g, 0)
b65I = ab__ + p1Yn[:] - iQin[:]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOkw(FlUN, oUSw):\n ab__ = (FlUN[2] - FlUN[0]) * (FlUN[3] - FlUN[1])\n f0tD = (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])\n frsW = oyIN.maximum(FlUN[0], oUSw[:, 0])\n TdlV = oyIN.maximum(FlUN[1], oUSw[:, 1])\n yjMy = oyIN.minimum(FlUN[2], oUSw[:, 2])\n YvNL = oyIN.minimum(FlUN[3], o... | [
"0.8773528",
"0.8561157",
"0.85404384",
"0.81330025",
"0.8126539",
"0.811029",
"0.8096278",
"0.80505574",
"0.80252874",
"0.80150616",
"0.78457385",
"0.78385276",
"0.77811587",
"0.76923805",
"0.76697594",
"0.76566",
"0.7649349",
"0.7643294",
"0.76306736",
"0.76267225",
"0.7605... | 0.8113794 | 6 |
Computes IoU overlaps between two sets of boxes. | def I7Mo(wGB6, QFOH):
bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1])
Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1])
PZIW = oyIN.zeros((wGB6.shape[0], QFOH.shape[0]))
for YRbF in range(PZIW.shape[1]):
IkxF = QFOH[YRbF]
PZIW[:, YRbF] = _xWy(IkxF, wGB6, Eq1k[YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7Mo(wGB6, QFOH):\n print('started computing overlaps')\n bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1])\n Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1])\n PZIW = oyIN.zeros((wGB6.shape[0], QFOH.shape[0]))\n for YRbF in range(PZIW.shape[1]):\n IkxF = QFOH[YRbF]... | [
"0.8280532",
"0.8257686",
"0.816614",
"0.8148279",
"0.80507493",
"0.7995026",
"0.7947007",
"0.7874636",
"0.78134733",
"0.78120077",
"0.77442646",
"0.76898557",
"0.76651406",
"0.76645774",
"0.7609599",
"0.7600706",
"0.7583374",
"0.7548673",
"0.7499379",
"0.74736816",
"0.74661"... | 0.8174021 | 3 |
Resizes an image keeping the aspect ratio unchanged. | def lmn5(LNo8, QzZ7=None, kvoN=None, MZZH=None, Tuqy='square', GhuM=None):
knmd = LNo8.dtype
MKlR, yzQ0 = LNo8.shape[:2]
Wve5 = LNo8.shape
KnxT = (0, 0, MKlR, yzQ0)
NXpY = 1
dvgN = [(0, 0), (0, 0), (0, 0)]
NAnm = (-1, -1, -1, -1)
if Tuqy == 'none':
return (LNo8, VPNW(Wve5, KnxT, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zb6e(LNo8, BURA=100):\n wyQG, uy17 = LNo8.size\n pAIe = uy17 / float(wyQG)\n C2f8 = int(pAIe * BURA)\n FHlE = LNo8.resize((BURA, C2f8))\n return FHlE",
"def Zb6e(LNo8, BURA=100):\n wyQG, uy17 = LNo8.size\n pAIe = uy17 / float(wyQG)\n C2f8 = int(pAIe * BURA)\n FHlE = LNo8.resize((BU... | [
"0.77165127",
"0.77165127",
"0.7700993",
"0.7700715",
"0.7678399",
"0.7676612",
"0.76722294",
"0.7617307",
"0.7615193",
"0.7614333",
"0.759295",
"0.7588328",
"0.7556676",
"0.7499443",
"0.7479154",
"0.7479154",
"0.74774885",
"0.74686897",
"0.74213475",
"0.7408797",
"0.7408262"... | 0.0 | -1 |