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 |
|---|---|---|---|---|---|---|
Used to get the conventional representation of this system. | def optN(YKHO):
if YKHO._conventional_system is not None:
return YKHO._conventional_system
mURk = YKHO._original_system.get_pbc()
wFdv = oyIN.sum(mURk)
if wFdv == 3:
hBwd = YKHO._get_spglib_conventional_system()
o_xu = YKHO.get_space_group_number()
xiKo = YKHO._get_spglib... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jlX5(YKHO):\n yzQ0 = YKHO.getCrystalStructure(reduce=False)\n return yzQ0",
"def wHJl(YKHO):\n return \"<System('%s')>\" % YKHO.name",
"def zAg0(YKHO):\n return PjZe(YKHO.to_dict())",
"def zAg0(YKHO):\n return YKHO._get_compact_representation()",
"def Oz1B(YKHO):\n return YKHO.get_sys... | [
"0.7163943",
"0.6765715",
"0.6662638",
"0.65285105",
"0.6520966",
"0.6427359",
"0.6384546",
"0.6295267",
"0.6294813",
"0.6291523",
"0.62801355",
"0.62323064",
"0.621393",
"0.6212123",
"0.6199646",
"0.6199646",
"0.61978376",
"0.6194664",
"0.6185935",
"0.61773515",
"0.61584675"... | 0.0 | -1 |
List of equivalent atoms in the idealized system. | def N8f1(YKHO):
if YKHO._spglib_equivalent_atoms_conventional is None:
YKHO._get_spglib_wyckoff_letters_and_equivalent_atoms()
return YKHO._spglib_equivalent_atoms_conventional | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iB3p(YKHO):\n return YKHO.atoms",
"def fB7X(YKHO):\n llbI = YKHO._get_spglib_equivalent_atoms_original()\n return llbI",
"def RR8p(YKHO):\n return YKHO._atoms",
"def jQf2(YKHO):\n if YKHO._primitive_equivalent_atoms is None:\n YKHO.get_primitive_system()\n return YKHO._primitive_... | [
"0.7109005",
"0.7030011",
"0.6633034",
"0.65771663",
"0.6386282",
"0.62731725",
"0.62591296",
"0.62552243",
"0.6252786",
"0.6252786",
"0.62518746",
"0.6231105",
"0.62182486",
"0.6185593",
"0.6174058",
"0.6149597",
"0.6149164",
"0.61328244",
"0.61203605",
"0.6090157",
"0.60797... | 0.7183135 | 0 |
List of equivalent atoms in the primitive system. | def jQf2(YKHO):
if YKHO._primitive_equivalent_atoms is None:
YKHO.get_primitive_system()
return YKHO._primitive_equivalent_atoms | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iB3p(YKHO):\n return YKHO.atoms",
"def fB7X(YKHO):\n llbI = YKHO._get_spglib_equivalent_atoms_original()\n return llbI",
"def RR8p(YKHO):\n return YKHO._atoms",
"def N8f1(YKHO):\n if YKHO._spglib_equivalent_atoms_conventional is None:\n YKHO._get_spglib_wyckoff_letters_and_equivalen... | [
"0.7033242",
"0.6896039",
"0.6554677",
"0.64243263",
"0.6371282",
"0.6361905",
"0.6332974",
"0.631273",
"0.62614626",
"0.62614626",
"0.6245037",
"0.6212649",
"0.61926657",
"0.61818385",
"0.6098912",
"0.6055905",
"0.60328954",
"0.60181403",
"0.6017464",
"0.6008896",
"0.5984628... | 0.7771938 | 0 |
List of equivalent atoms in the primitive system as defined by spglib. | def TsJd(YKHO):
if YKHO._spglib_equivalent_atoms_primitive is None:
PxR5 = YKHO._get_spglib_equivalent_atoms_original()
J8oL = YKHO._get_spglib_primitive_to_original_mapping()
YKHO._spglib_equivalent_atoms_primitive = PxR5[J8oL]
return YKHO._spglib_equivalent_atoms_primitive | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jQf2(YKHO):\n if YKHO._primitive_equivalent_atoms is None:\n YKHO.get_primitive_system()\n return YKHO._primitive_equivalent_atoms",
"def fB7X(YKHO):\n llbI = YKHO._get_spglib_equivalent_atoms_original()\n return llbI",
"def iB3p(YKHO):\n return YKHO.atoms",
"def N8f1(YKHO):\n if... | [
"0.74642575",
"0.71422714",
"0.66821355",
"0.65642154",
"0.6315512",
"0.6191136",
"0.60803854",
"0.60638607",
"0.60638607",
"0.60535294",
"0.60394144",
"0.59807116",
"0.5955778",
"0.58913344",
"0.585294",
"0.58261466",
"0.582268",
"0.58163756",
"0.57664675",
"0.57610035",
"0.... | 0.6958142 | 2 |
Transforms a tuple used by spglib into ASE.Atoms | def Grwf(YKHO, QoB4):
Oz1B = geHR(numbers=QoB4[2], cell=QoB4[0], scaled_positions=QoB4[1])
return Oz1B | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WcEW(rhyh):\n VmPb, Na8d, mSrU = rhyh\n if any([YRbF not in l4iq.atom.atomic_numbers.values() for YRbF in mSrU]):\n raise ValueError\n return l4iq.Atoms(cell=VmPb, scaled_positions=Na8d, pbc=True, numbers=mSrU)",
"def k76H(XfCc: ase.Atoms):\n VmPb = XfCc.cell.tolist()\n Na8d = XfCc.get_... | [
"0.6655072",
"0.64403343",
"0.6188502",
"0.61499894",
"0.60658866",
"0.60509914",
"0.6013265",
"0.5980954",
"0.59693134",
"0.5959121",
"0.59567124",
"0.59550196",
"0.59515077",
"0.59452945",
"0.59272444",
"0.5922583",
"0.591515",
"0.5891744",
"0.58745885",
"0.5848787",
"0.578... | 0.0 | -1 |
The applicationId of the appliance for this association. | def K6wN(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'application_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K6wN(YKHO):\n return YKHO._application_id",
"def B7c0(YKHO):\n if YKHO._app_id_present:\n return YKHO._app_id_value\n else:\n raise AttributeError(\"missing required field 'app_id'\")",
"def B7c0(YKHO):\n if YKHO._app_id_present:\n return YKHO._app_id_value\n else:\n ... | [
"0.8453973",
"0.8182983",
"0.8182983",
"0.81413174",
"0.81413174",
"0.81413174",
"0.8081636",
"0.8019786",
"0.79990536",
"0.7967398",
"0.78781885",
"0.7845293",
"0.7801623",
"0.77952003",
"0.77820385",
"0.7646701",
"0.75588006",
"0.7546668",
"0.7539556",
"0.74439937",
"0.7443... | 0.7492918 | 19 |
The type of the parent resource. | def U4ys(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'parent_resource_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U4ys(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_resource_type')",
"def Qjbs(YKHO):\n return YKHO._resource_type",
"def Qjbs(YKHO):\n return YKHO._resource_type",
"def tImL(YKHO, _AKB):\n SH9l = _AKB\n if not isinstance(SH9l, type):\n SH9l = type(SH9l)\n return SH9l",
"def U4... | [
"0.895716",
"0.7589932",
"0.7589932",
"0.75496656",
"0.73616254",
"0.7321016",
"0.73200554",
"0.72425765",
"0.7235832",
"0.7189427",
"0.7189427",
"0.7189427",
"0.7189427",
"0.7189427",
"0.7189427",
"0.7189427",
"0.7189427",
"0.7189427",
"0.7189427",
"0.7189427",
"0.7189427",
... | 0.86331314 | 1 |
The applicationId of the appliance for this Management. | def K6wN(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'application_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO):\n return YKHO._application_id",
"def B7c0(YKHO):\n YKHO._validate(key='a... | [
"0.842865",
"0.842865",
"0.842865",
"0.84222347",
"0.8091071",
"0.808717",
"0.8083712",
"0.80572134",
"0.80572134",
"0.8041585",
"0.8026854",
"0.80079776",
"0.79363745",
"0.7831174",
"0.78078127",
"0.77882904",
"0.7736923",
"0.7734183",
"0.7707054",
"0.7707054",
"0.76637334",... | 0.7627081 | 22 |
The azure resourceId for the workspace where the solution will be deployed/enabled. | def Adb4(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'workspace_resource_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Adb4(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_resource_id')",
"def Adb4(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'workspace_resource_id')",
"def Adb4(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'workspace_resource_id')",
"def NRqz(YKHO):\n return QsVJ.WORKSPACE_PREFIX + YKHO.backen... | [
"0.82672817",
"0.8063656",
"0.8063656",
"0.7666814",
"0.7256916",
"0.7256916",
"0.7256916",
"0.70339036",
"0.70072454",
"0.69590056",
"0.69590056",
"0.67275476",
"0.67275476",
"0.67252165",
"0.67252165",
"0.67252165",
"0.671014",
"0.6665978",
"0.66238344",
"0.66238344",
"0.66... | 0.78427434 | 3 |
Generate a dummy role ARN. The only thing that Step Functions validates at state machine creation time is that the role ARN is well formed. IAM also only allows passing roles within an account, which is why we need to get the current account ID from STS. Only doing this once saves ~400ms per test. Given how many tests ... | def BDB0() -> str:
TJZp = iVGz.client('sts')
Z31E = TJZp.get_caller_identity()['Account']
return f'arn:aws:iam::{Z31E}:role/{kxTZ()}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngPz(YKHO) -> str:\n return 'arn:aws:iam::%s:role/sfiniGenerated' % YKHO.session.account_id",
"def luIk(YKHO):\n ucGA = 'arn:aws:iam::065368812710:role/trusted-Newark'\n Z31E = '065368812710'\n h1Ur = 'trusted-Newark'\n crOM = uZz8.Halo.construct_role_arn(Z31E, h1Ur)\n assert ucGA == crOM",... | [
"0.68708384",
"0.66893035",
"0.63999933",
"0.6361325",
"0.6325219",
"0.6314979",
"0.6219508",
"0.61528534",
"0.6147062",
"0.6128179",
"0.6118811",
"0.6118811",
"0.6118811",
"0.6118811",
"0.6118811",
"0.6118811",
"0.6118811",
"0.6118811",
"0.6118811",
"0.6118811",
"0.6118811",... | 0.70497215 | 0 |
The ramping coefficient from the highlevel simulation object. | def LvV5(YKHO) -> float:
if YKHO.parent is None:
return 1.0
return YKHO.parent.simulation.ramp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fBga():\n return 0",
"def mnSl(YKHO):\n return SElA(YKHO)",
"def Qp4K(YKHO):\n zZRI = YKHO.time_since_last_nav_msg / YKHO.space_nav_interval\n zZRI = DZbg(zZRI, ATC5, lk94)\n return zZRI",
"def vqVR(YKHO):\n return YKHO._coef",
"def WZyy(YKHO):\n return YKHO.pl_res_post.avg_joint_e... | [
"0.64698964",
"0.6421968",
"0.6326817",
"0.62505937",
"0.61389637",
"0.60242987",
"0.5998534",
"0.5967441",
"0.59176815",
"0.58853877",
"0.58696026",
"0.582072",
"0.5814758",
"0.57987034",
"0.5793546",
"0.5779049",
"0.5759524",
"0.57532877",
"0.5750653",
"0.57495785",
"0.5740... | 0.78142446 | 0 |
Update the fluid forces by summing the force from each substructure. | def WQ7H(YKHO) -> None:
YKHO.loads = tsbd()
if YKHO.config.body.cushion_force_method.lower() == 'assumed':
YKHO.loads.L += YKHO.config.body.Pc * YKHO.config.body.reference_length * u8oJ.cosd(YKHO.config.body.initial_trim)
for KG9w in YKHO.substructures:
KG9w.update_fluid_forces()
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WQ7H(YKHO) -> None:\n for cuUy in YKHO.rigid_bodies:\n cuUy.update_fluid_forces()",
"def U1T7(YKHO):\n YKHO.forces = YKHO.atoms.get_forces()",
"def izk2(YKHO) -> None:\n GPgC = [KG9w for KG9w in YKHO.substructures if isinstance(KG9w, XKSp)]\n bIvQ = len(YKHO.parent.nodes) * cBra\n Uhg... | [
"0.80300623",
"0.68022215",
"0.6536434",
"0.652959",
"0.6520755",
"0.6510701",
"0.6504269",
"0.6437996",
"0.6391533",
"0.62379485",
"0.6230505",
"0.61863464",
"0.618308",
"0.6171773",
"0.61517864",
"0.61517864",
"0.6146902",
"0.61124253",
"0.59876186",
"0.5982583",
"0.5968845... | 0.7797739 | 1 |
Reset the solver Jacobian and modify displacement. | def zXR5(YKHO, WKvO: np.ndarray) -> oyIN.ndarray:
eHNT = YKHO._get_residual(WKvO)
if YKHO._J_tmp is None:
YKHO._J_tmp = oyIN.zeros((cBra, cBra))
YKHO._J_it = 0
YKHO._step = 0
YKHO._J_fo = eHNT
YKHO.res_old = YKHO._J_fo.copy()
else:
YKHO._J_tmp[:, YKHO._J_it] =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v8WM(YKHO):\n raise NotImplementedError",
"def SiRx(YKHO):\n ykvB.initzero()\n ykvB.ghostcondition()\n ykvB.lidcondition()\n ykvB.calctstep()",
"def SiRx(YKHO):\n YKHO.prev_sol = oyIN.tile((YKHO.ac_lb + YKHO.ac_ub) / 2, [YKHO.plan_hor]).astype(oyIN.float32)\n YKHO.optimizer.reset()",
... | [
"0.6635411",
"0.6578369",
"0.6342739",
"0.63154644",
"0.6235403",
"0.6083868",
"0.60778826",
"0.60096985",
"0.60007906",
"0.5996871",
"0.5984711",
"0.5960482",
"0.59583724",
"0.5957579",
"0.59513485",
"0.59412813",
"0.5932372",
"0.59303707",
"0.59303707",
"0.59303707",
"0.593... | 0.68913937 | 0 |
Log Errors caused by Updates. | def P1dF(JyK9, QdZT, qwha):
bo34.warning(f'Update "{QdZT}" caused error "{qwha}"') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)",
"def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')",
"def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err... | [
"0.7895395",
"0.788395",
"0.78750193",
"0.7873498",
"0.78300834",
"0.7790406",
"0.7785151",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.7781314",
"0.77660847",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.774618... | 0.0 | -1 |
Initialize game window, and make background blue. | def d9lM():
a9eO.init
Vjhr = a9eO.display.set_mode((1200, 800))
a9eO.display.set_caption('rocket...')
_TAj = (199, 199, 199)
O5WO = ANLl(Vjhr)
while True:
for tvqc in a9eO.event.get():
if tvqc.type == a9eO.QUIT:
HwRy.exit()
elif tvqc.type == a9eO.K... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCGt(YKHO):\n YKHO._screen.fill((0, 0, 255))\n YKHO.main_menu()",
"def YPqY(ufJO):\n _apf(ufJO, winheight=600, bgcolor='lavenderblush')",
"def X0_H(Emd4):\n Emd4.game_display.fill(HRmL.black)",
"def TRQy():\n tk5Y = on8l.Tk()\n tk5Y.geometry('600x600')\n tk5Y.title('Yahtzee!')\n t... | [
"0.75486135",
"0.7396858",
"0.7374272",
"0.7314686",
"0.7193206",
"0.71799153",
"0.7103012",
"0.7085088",
"0.70841783",
"0.70345306",
"0.7012784",
"0.69943017",
"0.69750756",
"0.6953447",
"0.6949571",
"0.69464964",
"0.69435376",
"0.6928766",
"0.69227093",
"0.69032955",
"0.689... | 0.0 | -1 |
find length of unpadded features based on labels | def Nd6X(Crrw, UTzK):
xqlA = len(Crrw) - 1
for dQgj, UXqs in enumerate(Crrw):
if UXqs == UTzK['<pad>']:
xqlA = dQgj
break
return xqlA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def svPB(YKHO):\n return len(YKHO._labels)",
"def svPB(YKHO):\n return YKHO.num_classes",
"def E2YY(UXqs):\n assert type(UXqs) is str, 'Incorrect type'\n u54L = 0\n for Z9rn in UXqs:\n u54L += HtTq(BHTH, ord(Z9rn))\n assert type(u54L) is int\n assert u54L >= 0\n return u54L",
"... | [
"0.6489339",
"0.6416512",
"0.6409989",
"0.6409989",
"0.6409989",
"0.6409989",
"0.6373494",
"0.6373494",
"0.63583976",
"0.63583976",
"0.63583976",
"0.63338757",
"0.6329809",
"0.6308335",
"0.629534",
"0.6294452",
"0.6294174",
"0.62491906",
"0.62371224",
"0.6221467",
"0.6221467"... | 0.65369076 | 0 |
Turn every nitems in a list into a new item in a list of lists. | def yvLo(s6Kc, KA5X, WfCS, usx6):
sDby = [None] * WfCS
yKcO = 0
JCyR = usx6
for G1Hx in s6Kc:
if G1Hx < 0:
y2vF = KA5X[yKcO:JCyR]
elif G1Hx > 0:
y2vF = list(reversed(KA5X[yKcO:JCyR]))
sDby[abs(G1Hx) - 1] = y2vF
yKcO += usx6
JCyR += usx6
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBJS(yv6U, exwG):\n return [yv6U[YRbF::exwG] for YRbF in range(exwG)]",
"def OBJS(yv6U, exwG):\n return [yv6U[YRbF::exwG] for YRbF in range(exwG)]",
"def sehz(vC9B, exwG):\n return [vC9B[YRbF:YRbF + exwG] for YRbF in range(0, len(vC9B), exwG)]",
"def zIio(list, exwG):\n return XTiz.array_spli... | [
"0.78140473",
"0.777398",
"0.737156",
"0.7333842",
"0.72845656",
"0.72845656",
"0.72817874",
"0.72663844",
"0.72369736",
"0.7169862",
"0.7166767",
"0.71411794",
"0.7132275",
"0.7118861",
"0.70966697",
"0.708236",
"0.7061554",
"0.7059663",
"0.70594025",
"0.70433694",
"0.704094... | 0.0 | -1 |
Returns the authpermitted queryset when not an acting superuser. | def rNE0(YKHO):
return super(MM7r, YKHO).get_queryset() if YKHO.has_acting_superuser else YKHO.get_auth_queryset(YKHO.auth_object) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n umWR = super().get_queryset()\n if not YKHO.request.user.is_superuser:\n umWR = umWR.filter(user=YKHO.request.user)\n return umWR",
"def k66M(YKHO):\n return super(MM7r, YKHO).get_queryset() if YKHO.public_modes else YKHO.private_queryset",
"def k66M(YKHO):\n return FYrf... | [
"0.75330126",
"0.7293705",
"0.72358674",
"0.70360744",
"0.7000879",
"0.69573766",
"0.69503915",
"0.69503915",
"0.69341046",
"0.6884367",
"0.6779685",
"0.6773302",
"0.6773302",
"0.6773302",
"0.6763202",
"0.6763202",
"0.6763202",
"0.6763202",
"0.6763202",
"0.6763202",
"0.676320... | 0.80536026 | 0 |
Plot the original image found at 'filename' and the rank s approximation of the image found at 'filename.' State in the figure title the difference in the number of entries used to store the original image and the approximation. | def S_hS(Ux0P, KCHu):
LZpg, MPlV = QrM1.subplots(1, 2)
LNo8 = cE34(Ux0P) / 255
if len(oyIN.shape(LNo8)) == 2:
FHlE, hkxX = g90B(LNo8, KCHu)
FHlE = oyIN.real(FHlE)
MPlV[0].imshow(LNo8, cmap='gray')
MPlV[1].imshow(FHlE, cmap='gray')
else:
XIyg = LNo8[:, :, 0]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xymb(Yw_3, Ux0P):\n CHye = mqgm(Yw_3, 4)\n GN6X = mf9y(CHye, 2, 2)\n QrM1.figure(figsize=(12, 12))\n QrM1.imshow(GN6X, cmap='gray')\n QrM1.axis('off')\n QrM1.savefig(Ux0P + '.png', bbox_inches='tight')",
"def y9R7(Ux0P: str, TcPZ: int):\n VXjJ = J_xH(Ux0P, TcPZ)\n QrM1.imshow(VXjJ, cm... | [
"0.66469103",
"0.64135504",
"0.63569266",
"0.6319876",
"0.63109905",
"0.62511474",
"0.6216193",
"0.61775047",
"0.6117732",
"0.61116815",
"0.60998976",
"0.608419",
"0.6078068",
"0.6010012",
"0.59750044",
"0.5971876",
"0.59667873",
"0.5943142",
"0.59352475",
"0.5929434",
"0.592... | 0.0 | -1 |
Load json content from file addressed by path. | def lc9H(pmON):
try:
with open(pmON, 'rb') as wM3v:
zgjV = qQXR.load(wM3v)
except Exception as ex:
HwRy.exit(aTqo)
return zgjV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(YKHO, pmON):\n nPrm = qQXR.load(open(pmON, 'rb'))\n YKHO.load_json(nPrm)",
"def u7gK(Emd4, pmON):\n with open(pmON) as eHNT:\n return qQXR.load(eHNT)",
"def tyeH(pmON):\n with open(pmON) as eHNT:\n return qQXR.load(eHNT)",
"def lc9H(YKHO, pmON):\n VqRE = Hy7s.path.join(Y... | [
"0.85143346",
"0.84657437",
"0.84172666",
"0.83398116",
"0.83349204",
"0.83113563",
"0.8235693",
"0.8197964",
"0.8197179",
"0.8168371",
"0.81331843",
"0.8095148",
"0.80196047",
"0.80068934",
"0.7987866",
"0.79690677",
"0.7954372",
"0.7919105",
"0.7900318",
"0.7893589",
"0.788... | 0.7970618 | 15 |
Return true if values of dry_run.json are empty. | def InMS(qbRD):
for BWXx in qbRD.values():
if BWXx:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TJ_E(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'dry_run')",
"def TJ_E(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'dry_run')",
"def TJ_E(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'dry_run')",
"def A4KR(tk4x):\n for H5ew in tk4x:\n if tk4x[H5e... | [
"0.68331486",
"0.68331486",
"0.6750969",
"0.65713894",
"0.65521973",
"0.6522587",
"0.6421019",
"0.6420809",
"0.6420019",
"0.63606226",
"0.6330513",
"0.62619376",
"0.62619376",
"0.6254704",
"0.6254704",
"0.6247567",
"0.6233315",
"0.6228035",
"0.62161165",
"0.6212652",
"0.62059... | 0.8128863 | 0 |
Adds a vertex to the graph. It starts with no edges. >>> G = Digraph() >>> G.add_vertex(1) >>> G.vertices() == {1} True | def ohmD(YKHO, Ty9i):
if Ty9i not in YKHO._tosets:
YKHO._tosets[Ty9i] = set()
YKHO._fromsets[Ty9i] = set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, SLBp: Vertex) -> 'Graph':\n if YKHO.__vgraph:\n if SLBp.id() not in YKHO.__vertex_set:\n YKHO.__vgraph.add_node(SLBp.id(), SLBp.coordinate())\n YKHO.__vertex_set.add(SLBp.id())\n return YKHO._add_vertex(SLBp)",
"def ohmD(YKHO, SLBp):\n if SLBp not in YKHO.vertices:\n ... | [
"0.77957314",
"0.77696294",
"0.76924753",
"0.76360047",
"0.75417167",
"0.7476103",
"0.7446549",
"0.738128",
"0.7377643",
"0.73530364",
"0.7336979",
"0.73305917",
"0.732311",
"0.7248649",
"0.72477925",
"0.72477925",
"0.72477925",
"0.72477925",
"0.72477925",
"0.7231305",
"0.723... | 0.0 | -1 |
Returns the set of vertices in the graph. | def iXlf(YKHO):
return set(YKHO._tosets.keys()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CXkG(YKHO):\n return set(YKHO._vertex_set.values())",
"def iXlf(YKHO) -> set:\n return set(YKHO._adjacency_matrix.keys())",
"def EBww(YKHO):\n hlel = []\n for H5ew in YKHO._graph.keys():\n hlel.append(H5ew)\n return hlel",
"def iXlf(YKHO):\n return list(YKHO._graph_dict.keys())",... | [
"0.84705794",
"0.83630866",
"0.8333216",
"0.8281487",
"0.8281487",
"0.82488537",
"0.82488537",
"0.82488537",
"0.82488537",
"0.82488537",
"0.81442887",
"0.81199384",
"0.80240434",
"0.80039376",
"0.8001474",
"0.79902196",
"0.79689246",
"0.79575264",
"0.79508305",
"0.791702",
"0... | 0.84909576 | 0 |
Returns the number of vertices in the graph. | def poMF(YKHO):
return len(YKHO._tosets) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GthF(YKHO):\n return YKHO.graph.vertexCount()",
"def y8Vt(pNZh):\n return rrLg.numVertices(pNZh)",
"def X7h0(YKHO):\n return len(YKHO.vertices)",
"def MrQl(YKHO):\n return len(YKHO._edges)",
"def MrQl(YKHO):\n return YKHO._n",
"def JalI(YKHO) -> int:\n return YKHO.__number_of_vertic... | [
"0.8962513",
"0.86885434",
"0.86077076",
"0.8562677",
"0.8542878",
"0.8533691",
"0.8528718",
"0.84855914",
"0.8480937",
"0.8460648",
"0.8460648",
"0.84354407",
"0.8434766",
"0.8397264",
"0.836492",
"0.83519864",
"0.83519864",
"0.8322631",
"0.8319607",
"0.8300259",
"0.828684",... | 0.8046552 | 27 |
Attach a text label above each bar in rects, displaying its height. xpos indicates which side to place the text w.r.t. the center of the bar. It can be one of the following {'center', 'right', 'left'}. | def siQ4(j8aQ, QzhK='center'):
QzhK = QzhK.lower()
fUKV = {'center': 'center', 'right': 'left', 'left': 'right'}
vgXP = {'center': 0.5, 'right': 0.57, 'left': 0.43}
for mawX in j8aQ:
H2v2 = mawX.get_height()
aNZO.text(mawX.get_x() + mawX.get_width() * vgXP[QzhK], 1.01 * H2v2, '{}'.format... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def siQ4(j8aQ, QzhK='center'):\n fUKV = {'center': 'center', 'right': 'left', 'left': 'right'}\n vgXP = {'center': 0, 'right': 1, 'left': -1}\n for mawX in j8aQ:\n H2v2 = mawX.get_height()",
"def siQ4(j8aQ, QzhK='center'):\n fUKV = {'center': 'center', 'right': 'left', 'left': 'right'}\n vg... | [
"0.7801858",
"0.7801858",
"0.7789727",
"0.7675437",
"0.7666545",
"0.76570404",
"0.7625504",
"0.76203144",
"0.7601624",
"0.7600658",
"0.7599801",
"0.7587432",
"0.7587432",
"0.7586343",
"0.7560005",
"0.75552636",
"0.75470203",
"0.75470203",
"0.75470203",
"0.7487948",
"0.7475995... | 0.76165307 | 8 |
Clone(itkSimilarity3DTransformD self) > itkSimilarity3DTransformD_Pointer | def B29l(YKHO) -> 'itkSimilarity3DTransformD_Pointer':
return bimu.itkSimilarity3DTransformD_Clone(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B29l(YKHO) -> 'itkAffineTransformD3_Pointer':\n return AIlB.itkAffineTransformD3_Clone(YKHO)",
"def B29l(YKHO) -> 'itkAffineTransformD2_Pointer':\n return AIlB.itkAffineTransformD2_Clone(YKHO)",
"def B29l(YKHO) -> 'itkFixedCenterOfRotationAffineTransformD3_Pointer':\n return Poyb.itkFixedCenterOfR... | [
"0.84192306",
"0.78457516",
"0.74332666",
"0.7363025",
"0.7198122",
"0.7196211",
"0.7137794",
"0.70573694",
"0.70454925",
"0.70387363",
"0.6994497",
"0.6961761",
"0.6933579",
"0.69334173",
"0.6927256",
"0.6918864",
"0.6899657",
"0.6894039",
"0.6890359",
"0.68755895",
"0.68637... | 0.9235479 | 0 |
cast(itkLightObject obj) > itkSimilarity3DTransformD | def YWvJ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':
return bimu.itkSimilarity3DTransformD_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPrQ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':\n return bimu.itkSimilarity3DTransformD_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkAffineTransformD3 *':\n return AIlB.itkAffineTransformD3_cast(YEnM)",
"def WolL(YEnM: 'itkLightObject') -> 'itkAffineTransformD3 *':\n return... | [
"0.87046117",
"0.7675139",
"0.7620916",
"0.73896337",
"0.73245776",
"0.7193155",
"0.698158",
"0.6971501",
"0.69459903",
"0.69195515",
"0.6904435",
"0.68553174",
"0.6852964",
"0.68386763",
"0.68035203",
"0.6802693",
"0.67953587",
"0.6777293",
"0.67715263",
"0.6766261",
"0.6761... | 0.85353726 | 1 |
New() > itkSimilarity3DTransformD Create a new object of the class itkSimilarity3DTransformD and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first i... | def oW_4(*qIxc, **PECO):
YEnM = ExhP.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = ny8G.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = PrKf.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7469878",
"0.7367848",
"0.7314189",
"0.6938939",
"0.6866718",
"0.6715254",
"0.6689819",
"0.66829205",
"0.66283894",
"0.65810794",
"0.6570952",
"0.655745",
"0.64974463",
"0.6491645",
"0.64878625",
"0.64344376",
"0.6375874",
"0.6363526",
"0.6362426",
"0.6309692",
"0.6305948"... | 0.7988442 | 1 |
itkSimilarity3DTransformD_cast(itkLightObject obj) > itkSimilarity3DTransformD | def GPrQ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':
return bimu.itkSimilarity3DTransformD_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkSimilarity3DTransformD *':\n return bimu.itkSimilarity3DTransformD_cast(YEnM)",
"def GPrQ(*qIxc):\n return I538.itkSimilarity3DTransformD_cast(*qIxc)",
"def WolL(YEnM: 'itkLightObject') -> 'itkAffineTransformD3 *':\n return AIlB.itkAffineTransformD3_cast(YEnM)",... | [
"0.8764288",
"0.78229845",
"0.7793643",
"0.7738149",
"0.7340228",
"0.72209144",
"0.71840864",
"0.71598315",
"0.70884705",
"0.6801022",
"0.67713815",
"0.6764276",
"0.67103404",
"0.6706342",
"0.6699107",
"0.6688942",
"0.6682898",
"0.6677809",
"0.66728",
"0.66538715",
"0.6648218... | 0.9115498 | 0 |
The description of the administrative unit. | def JBZA(YKHO) -> str:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO):\n return \"Il s'agit d'un minotaure.\"",
"def t5do(YKHO):\n return HYW6(_z_R['description'])",
"def JBZA(YKHO):\n return ''",
"def JBZA(YKHO):\n return ''",
"def AHoS(YKHO):\n return YKHO._get_attribute(YKHO._SDM_ATT_MAP['Description'])",
"def YTwW():\n return ''",
"de... | [
"0.731754",
"0.7160296",
"0.713143",
"0.713143",
"0.71302336",
"0.7123651",
"0.7078517",
"0.7078517",
"0.70752794",
"0.70571154",
"0.70571154",
"0.70571154",
"0.7028402",
"0.7020185",
"0.7007259",
"0.700025",
"0.6987233",
"0.69793785",
"0.69793785",
"0.6978491",
"0.6978491",
... | 0.70468885 | 18 |
The object ID of the administrative unit. | def NBcv(YKHO) -> str:
return qe4Y.get(YKHO, 'object_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p9rB(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'administrative_unit_object_id')",
"def p9rB(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'administrative_unit_object_id')",
"def p9rB(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'administrative_unit_object_id')",... | [
"0.8962308",
"0.8772549",
"0.8772549",
"0.76231843",
"0.7514939",
"0.72442985",
"0.7194618",
"0.6856963",
"0.6825862",
"0.68092626",
"0.67867595",
"0.6768418",
"0.6756241",
"0.6756241",
"0.674118",
"0.6738223",
"0.6716042",
"0.67078793",
"0.6684664",
"0.6683242",
"0.66760975"... | 0.7176166 | 7 |
convert a list to a dictionary | def Y_Bi(vC9B):
assert AkrH(vC9B), 'Object l is not composite with type = %s' % type(vC9B)
if type(vC9B) in [dict, U8Lr]:
return vC9B
return dict(zip(range(len(vC9B)), vC9B)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BOen(YKHO, IqQl):\n m4Nl = {}\n for ZfUD in IqQl:\n m4Nl[ZfUD[0]] = ZfUD[1]\n return m4Nl",
"def js81(vC9B):\n return {G1Hx: Ty9i for Ty9i, G1Hx in vC9B}",
"def GkpI(Uj1v):\n zyJs = {}\n for d6pt in Uj1v:\n zyJs[d6pt[0]] = d6pt[1]\n return zyJs",
"def Y_Bi(aPd6, BWXx=No... | [
"0.8684745",
"0.850869",
"0.8220521",
"0.8161418",
"0.815649",
"0.8062203",
"0.7927759",
"0.7874977",
"0.781899",
"0.7756294",
"0.7698231",
"0.76556677",
"0.7431444",
"0.74112517",
"0.740339",
"0.735995",
"0.7354078",
"0.7315345",
"0.7303272",
"0.72832495",
"0.72787",
"0.72... | 0.7661027 | 11 |
Convolves the input time series f(t) and g(t) satisfying h = f g. Here, f is the input data and g is the response function, which must be set separately. The used method is fast fourier transform with h(t) = IFFT(FG), where F and G are the fourier tansforms of the input time series f and g. | def nrOS(YKHO, Gaon):
yvNj = YXTX(oyIN.concatenate((Gaon.data, oyIN.zeros(YKHO.resultSize - YKHO.signalSize, dtype=Gaon.data.dtype))), fs=Gaon.samplFreq)
DQwr = YKHO.FFT(yvNj)
pZEc = DQwr * YKHO.fftResponse
Aofo = YKHO.IFFT(pZEc)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yvY1(EcVT, a1PO):\n return vuvg(a1PO, EcVT)",
"def sePt(a1PO, MKlR, jDK_=-1, NKcE=1):\n assert a1PO.ndim == 1\n assert MKlR.shape[jDK_] == a1PO.shape[0]\n ywwl = len(a1PO)\n if ywwl % 2 != 0:\n raise ValueError('number of samples must be even')\n OwV_ = a1PO[1] - a1PO[0]\n qUp6 = ... | [
"0.6024582",
"0.6003251",
"0.59776247",
"0.59737396",
"0.5948932",
"0.59314007",
"0.5907065",
"0.58863306",
"0.5871297",
"0.5865818",
"0.5861996",
"0.58274555",
"0.5788581",
"0.5762298",
"0.57549584",
"0.5751138",
"0.5738012",
"0.57325757",
"0.57251114",
"0.57243943",
"0.5720... | 0.0 | -1 |
The ID of the VBR. | def o_gm(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'instance_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxtp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vbr_id')",
"def qxtp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vbr_id')",
"def qxtp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'vbr_id')",
"def Gwav(YKHO):\n return YKHO.__v_id",
"def Gwav(YKHO):\n return YKHO... | [
"0.8632749",
"0.84001446",
"0.82409406",
"0.7558379",
"0.7558379",
"0.7558379",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
... | 0.0 | -1 |
The ID of the VBR. | def o_gm(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'instance_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxtp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vbr_id')",
"def qxtp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vbr_id')",
"def qxtp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'vbr_id')",
"def Gwav(YKHO):\n return YKHO.__v_id",
"def Gwav(YKHO):\n return YKHO... | [
"0.8632749",
"0.84001446",
"0.82409406",
"0.7558379",
"0.7558379",
"0.7558379",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
... | 0.0 | -1 |
Get an existing GrantRuleToCen resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, pijK: Optional[pulumi.Input[str]]=None, Xnxm: Optional[pulumi.Input[int]]=None, o_gm: Optional[pulumi.Input[str]]=None) -> 'GrantRuleToCen':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = Zg4c.__... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Rule':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = WsuY.__new__(WsuY)\n r6DL.__dict__['metric_name'] = None\n r6DL.__dict__['name'] = None\n r6DL.__dict__['predicates'] = N... | [
"0.5758217",
"0.5732428",
"0.54776704",
"0.54536307",
"0.54438657",
"0.5405439",
"0.5362007",
"0.5218884",
"0.52025974",
"0.5195042",
"0.5185737",
"0.51719135",
"0.51025283",
"0.5101679",
"0.5046797",
"0.50458276",
"0.50393504",
"0.50294626",
"0.50141126",
"0.5010558",
"0.499... | 0.65883994 | 0 |
The ID of the VBR. | def o_gm(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'instance_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxtp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vbr_id')",
"def qxtp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vbr_id')",
"def qxtp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'vbr_id')",
"def Gwav(YKHO):\n return YKHO.__v_id",
"def Gwav(YKHO):\n return YKHO... | [
"0.8632749",
"0.84001446",
"0.82409406",
"0.7558379",
"0.7558379",
"0.7558379",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
"0.7113691",
... | 0.0 | -1 |
Application factory, see docs. | def LUif(Zu8l):
P4t4 = L2w0(__name__)
P4t4.config.from_object(GPtr[Zu8l])
GPtr[Zu8l].init_app(P4t4)
NCls.init_app(P4t4)
USZ9.init_app(P4t4, NCls)
MC83.init_app(P4t4)
MC83.session_protection = 'strong'
MC83.login_view = 'main.login'
from .main import main as CBFj
P4t4.register_blu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dib3(kO5c=False):\n lEZe()\n EsWC(P4t4)\n P4t4.testing = kO5c\n trsB()\n Th2b()\n from app.utils.audit_util import configure_audit\n configure_audit(P4t4)\n return P4t4",
"def LUif(Emd4):\n return SCWY",
"def Egkc() -> foAK:\n return wAIL.application_factory",
"def vMdO(YKHO... | [
"0.82315946",
"0.82233506",
"0.81753355",
"0.79989237",
"0.7965734",
"0.7672158",
"0.7672158",
"0.76035863",
"0.75967395",
"0.75787574",
"0.7577618",
"0.75750303",
"0.7573092",
"0.7551676",
"0.75348306",
"0.7521515",
"0.7520615",
"0.7519122",
"0.7517713",
"0.75079507",
"0.749... | 0.0 | -1 |
Create a subVector of ``self``. | def Sv88(YKHO, mWFP: str, hT1Q: Sequence[str]) -> lNLu:
return lNLu(mWFP, **{hAEw: YKHO[hAEw] for hAEw in hT1Q}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjfR(YKHO, Elif):\n if isinstance(Elif, lNLu):\n WKvO = YKHO.data[0] + -1 * Elif.data[0]\n LVAh = YKHO.data[1] + -1 * Elif.data[1]\n epBp = YKHO.data[2] + -1 * Elif.data[2]\n return lNLu(WKvO, LVAh, epBp)\n else:\n raise TypeError('You can only sub another Vector to thi... | [
"0.78344524",
"0.76043594",
"0.75207907",
"0.74661165",
"0.7405155",
"0.7378156",
"0.73463345",
"0.73231584",
"0.72968024",
"0.7282777",
"0.7266576",
"0.7260788",
"0.7256107",
"0.7220587",
"0.71992457",
"0.7196523",
"0.7184243",
"0.71716785",
"0.7126744",
"0.7116701",
"0.7076... | 0.7106724 | 20 |
Initialize hidden state for the Bidirectional RNN | def Fr0d(YKHO, T1xU, eZSp, WHHS):
Ep8u = T1xU[0].size(1)
if YKHO.use_cuda:
RQrb = iQnE(ht2j.zeros(2 * eZSp, Ep8u, WHHS // 2)).cuda()
CswK = iQnE(ht2j.zeros(2 * eZSp, Ep8u, WHHS // 2)).cuda()
else:
RQrb = iQnE(ht2j.zeros(2 * eZSp, Ep8u, WHHS // 2))
CswK = iQnE(ht2j.zeros(2 * e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mDs7(YKHO):\n YKHO.hidden = YKHO.model.get_initial_hidden(1)",
"def MP8d(YKHO):\n return ht2j.zeros(YKHO.num_rnn_layers, 1, YKHO.hidden_size, requires_grad=True)",
"def MP8d(YKHO, K_dq):\n upAO = next(YKHO.parameters())\n if YKHO.rnn_type == 'LSTM':\n if YKHO.direction == 'both':\n ... | [
"0.77956045",
"0.7613844",
"0.7555462",
"0.7543205",
"0.7479529",
"0.733713",
"0.72532386",
"0.7232368",
"0.7177013",
"0.7124707",
"0.70989794",
"0.7011468",
"0.6979552",
"0.6971358",
"0.6951903",
"0.69453",
"0.6937823",
"0.6923716",
"0.689393",
"0.68810815",
"0.6863154",
"... | 0.0 | -1 |
Create instance of ScalarField class (region by its physical name) | def L0K4(Emd4, mWFP: str, BWXx: ndarray, rR8k: FeMesh, aGvo: str):
return Emd4(mWFP, BWXx, rR8k, rR8k(aGvo)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHtU(YKHO, p_eo=None, WZkK=None, mWFP=None, tHpy=None):\n from scalarfield import ScalarField\n return ScalarField(YKHO, p_eo, WZkK, mWFP, tHpy)",
"def FIMM(YKHO, mWFP: str, **B2fa: Scalar):\n super().__init__(**B2fa)\n YKHO._name = mWFP",
"def re3O(YKHO, Jyyj, qzgp=None):\n raise NotImpleme... | [
"0.6887379",
"0.5837804",
"0.5785443",
"0.5714503",
"0.5711151",
"0.56153244",
"0.5612767",
"0.5566368",
"0.5522672",
"0.5519062",
"0.5432122",
"0.54143107",
"0.53751785",
"0.5368993",
"0.5349292",
"0.5337299",
"0.5335719",
"0.5332253",
"0.5327882",
"0.53210264",
"0.53096974"... | 0.5551513 | 8 |
Extend Django's `dispatch` method and exempt it from CSRF check. | def ypeQ(YKHO, QePW, *qIxc, **B2fa):
return super().dispatch(QePW, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ypeQ(YKHO, QePW, *qIxc, **B2fa):\n return super(YqVU, YKHO).dispatch(QePW, *qIxc, **B2fa)",
"def K6Df(YKHO, QePW):\n lo9Y = oJQL().process_view(QePW, None, (), {})\n if lo9Y:\n raise Bx6I.PermissionDenied('CSRF Failed: %s' % lo9Y)",
"def K6Df(YKHO, QePW):\n lo9Y = oJQL().process_view(QeP... | [
"0.8400758",
"0.64043427",
"0.64043427",
"0.63719106",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
"0.6329657",
... | 0.71221 | 1 |
Check if a given file path exist Returns True if filename exist, False if do not. | def W8rq(Ux0P):
try:
with open(Ux0P, 'r') as AUpj:
pass
except IOError:
return False
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hZSK(YKHO, Ux0P):\n if Hy7s.path.isfile(Ux0P):\n return True\n else:\n return False",
"def Hat5(pmON: str):\n if Hy7s.path.isfile(pmON):\n return True\n return False",
"def poxP(qaEx):\n return pmON.exists(qaEx)",
"def poxP(pmON: str) -> bool:\n return Hy7s.path.isf... | [
"0.87437224",
"0.8699181",
"0.8646022",
"0.8638159",
"0.8614211",
"0.8611898",
"0.8590694",
"0.8573823",
"0.85672903",
"0.85352075",
"0.847659",
"0.8446896",
"0.844362",
"0.84223086",
"0.8411406",
"0.84024537",
"0.83824164",
"0.83816403",
"0.8381402",
"0.8366535",
"0.83644134... | 0.7931768 | 71 |
The network consists of len(sizes) layers, each of which contains sizes[i] neurons. | def FIMM(YKHO, maxY):
YKHO.num_layers = len(maxY)
YKHO.sizes = maxY
YKHO.u = [oyIN.random.randn(r845, YRbF) for YRbF, r845 in zip(maxY[:-1], maxY[1:])]
YKHO.v = [oyIN.random.randn(r845, YRbF) for YRbF, r845 in zip(maxY[:-1], maxY[1:])]
YKHO.b = [oyIN.random.randn(WKvO, 1) for WKvO in maxY[1:]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, LXaY=[4, 3, 4], zi3C=4, a6Jb=4):\n YKHO.network_depth = len(LXaY)\n YKHO.input_size = zi3C\n YKHO.network = []\n YKHO.network.append(ZSYc(layer_size=LXaY[0], input_size=zi3C))\n for WKvO in range(len(LXaY) - 1):\n YKHO.network.append(ZSYc(layer_size=LXaY[WKvO], input_size=LXaY[... | [
"0.7402385",
"0.7268268",
"0.72483754",
"0.70845973",
"0.7065212",
"0.70268273",
"0.7014532",
"0.7014532",
"0.6984556",
"0.6932205",
"0.6930703",
"0.6912834",
"0.68450564",
"0.6684949",
"0.66469705",
"0.66403085",
"0.6636628",
"0.66185313",
"0.6570473",
"0.65453887",
"0.64497... | 0.65593666 | 19 |
Check the specific table exists in the database or not. | def fxWY(YKHO, JsOY):
oUZx = 'PRAGMA table_info(%s)' % JsOY
YKHO.cursor.execute(oUZx)
nPrm = YKHO.cursor.fetchall()
if len(nPrm) == 0:
return False
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PJaC(YKHO):\n with pjM5.connect(YKHO.create_connection_string()) as w2B8:\n C6cd = w2B8.cursor()\n C6cd.execute(f\"SELECT COUNT(1) FROM {YKHO.get_database_name()}.sys.tables t WHERE t.name = '{YKHO.get_table_name()}'\")\n return bool(C6cd.fetchval())",
"def n2Bh(GTA_: str='user') -> b... | [
"0.85944355",
"0.85717404",
"0.8549601",
"0.85453147",
"0.8523737",
"0.8478064",
"0.8471808",
"0.846853",
"0.846735",
"0.84630144",
"0.84525245",
"0.84363437",
"0.8426922",
"0.83597285",
"0.83576053",
"0.8356689",
"0.8343441",
"0.833799",
"0.83314717",
"0.83099055",
"0.828816... | 0.85171413 | 5 |
Resize and return the provided image while maintaining aspect ratio. | def ICll(LNo8: Image.Image, gpgb: int, ur7t: int):
dMYj = max(gpgb / LNo8.width, ur7t / LNo8.height)
return LNo8.resize((int(LNo8.width * dMYj), int(LNo8.height * dMYj)), hnIv.ANTIALIAS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mnQq(LNo8):\n BURA = _Fei.image_size\n C2f8 = _Fei.height_img\n rk8i = XC5k.resize(LNo8, (int(BURA), int(C2f8)))\n return rk8i",
"def Einh(VXjJ, TVTK, H2v2):\n NnY2 = VXjJ.resize((TVTK, H2v2))\n return NnY2",
"def lmn5(LNo8: Image.Image, TVTK: int) -> hnIv.Image:\n eiUY, HB5d = LNo8.si... | [
"0.7861068",
"0.7733921",
"0.7577572",
"0.7519419",
"0.7470548",
"0.7470548",
"0.7460576",
"0.7459255",
"0.7443693",
"0.74367845",
"0.74317926",
"0.7414838",
"0.7368759",
"0.7345661",
"0.7327577",
"0.7323689",
"0.73206997",
"0.72924405",
"0.7244091",
"0.7205013",
"0.7204542",... | 0.6833261 | 63 |
Returns the title of this book. | def Upwb(YKHO):
return YKHO.title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rnpP(YKHO):\n return YKHO.bookTitle",
"def Upwb(YKHO) -> str:\n return YKHO._title",
"def XIus(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO):\n return YKHO._title",
"def Upwb(YKHO) -> str:\n return ... | [
"0.84901816",
"0.8444045",
"0.83307225",
"0.829986",
"0.829986",
"0.829986",
"0.82850504",
"0.82850504",
"0.8237574",
"0.8237574",
"0.8237574",
"0.8237574",
"0.8237574",
"0.8237574",
"0.8237574",
"0.8237574",
"0.8237574",
"0.8237574",
"0.8237574",
"0.8237574",
"0.8237574",
... | 0.8113787 | 93 |
Returns a string representation of this book, | def zAg0(YKHO):
return YKHO.title + ', by ' + YKHO.author | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n hlel = \"\\tBook's Info.\\n \\tName\\t\\t: {}\\n \\tISBN\\t\\t: {}\\n \\tAuthor\\t\\t: {}\\n \\tPublication Date: {}\\n \\tPublisher\\t: {}\\n \\tPages' Number\\t: {}\\n \\tCover Typr\\t: {}\\n \"\n return hlel.format(YKHO.name, YKHO.i... | [
"0.8241799",
"0.82398885",
"0.79150105",
"0.78184193",
"0.77678585",
"0.7681277",
"0.7679987",
"0.7585719",
"0.75586885",
"0.7528857",
"0.7513296",
"0.7473965",
"0.7438681",
"0.7431963",
"0.74177855",
"0.7409112",
"0.7386693",
"0.73755294",
"0.7375392",
"0.7317181",
"0.731123... | 0.0 | -1 |
Remove user session and redirect to index page | def erK4():
oLi7()
return vKnz(nKyW('site_views.index')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def erK4():\n cuiw.pop('user', None)\n return vKnz(nKyW('index'))",
"def erK4():\n cuiw.pop('user', None)\n return vKnz(nKyW('index'))",
"def erK4():\n cuiw.pop('user_id', None)\n return vKnz(nKyW('index'))",
"def erK4():\n if 'user' in cuiw:\n cuiw.pop('user')\n return vKnz('/... | [
"0.83489364",
"0.8272913",
"0.82578135",
"0.8225374",
"0.8144764",
"0.8134862",
"0.8122274",
"0.81167203",
"0.8103551",
"0.80796534",
"0.8074711",
"0.80436397",
"0.804119",
"0.80340785",
"0.80268174",
"0.8001775",
"0.7992904",
"0.79877067",
"0.79877067",
"0.7984575",
"0.79689... | 0.0 | -1 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))
return uw5A / uw5A.sum(axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye",
"def N93T(WKvO):\n j1LR = oyIN.exp(o... | [
"0.80113125",
"0.77607703",
"0.77607703",
"0.7687368",
"0.76707524",
"0.76605",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76397043",
"0.762786",
"0.7551623",
"0.7532752",
"0.74565",
"0.73242354",
"0.73171765",
"0.7298... | 0.7186757 | 31 |
Returns the course listing page for the given params. | def c3ht(NArs):
x6UB = UBNO.copy()
x6UB.update(NArs)
anzU = uRlK.urlencode(x6UB)
lWQw = APfo + '?' + anzU
QePW = uRlK.urlopen(lWQw)
return qQXR.load(QePW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GF_L(QePW):\n if QePW.method == 'GET':\n _wl2 = CQpO.objects.all()\n QpfX = {'all_course': _wl2}\n return _1tc(QePW, 'course/course_list.html', QpfX)",
"def sDlr(QePW):\n deMH = []\n h4dK = getattr(gCuF, 'COURSE_DISCOVERY_MEANINGS', {})\n if not gCuF.FEATURES.get('ENABLE_COUR... | [
"0.719668",
"0.705164",
"0.6984642",
"0.6598893",
"0.6593476",
"0.65929765",
"0.65691704",
"0.6375513",
"0.63690704",
"0.6358669",
"0.62988687",
"0.6298258",
"0.6264884",
"0.62601364",
"0.62447226",
"0.6234134",
"0.61928546",
"0.61599684",
"0.6145191",
"0.6126681",
"0.6107223... | 0.0 | -1 |
Returns the ID of the instructors of the course. | def cq0F(Z9JV):
return KOeg.findall(str(Z9JV)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kc1H(YKHO):\n return YKHO.course_instance.instructors.all()",
"def lTwS(NCls, GQfX):\n xDcj = 'SELECT Course, Sections, Name'\n \" FROM Courses WHERE Course = '%s'\" % GQfX\n return p1qr(NCls, xDcj)",
"def cq0F(YKHO, YEnM):\n return YEnM.instructors",
"def E_vH(YKHO):\n return YKHO.ins... | [
"0.75529724",
"0.71214217",
"0.69837993",
"0.6840701",
"0.67207664",
"0.64817667",
"0.64497983",
"0.63166606",
"0.62611455",
"0.6249743",
"0.61956346",
"0.61112905",
"0.6101832",
"0.60863554",
"0.60193896",
"0.600869",
"0.59921587",
"0.59658825",
"0.59027314",
"0.57750356",
"... | 0.6462053 | 6 |
Construct a new ARCache object. | def FIMM(YKHO, zNig):
super().__init__(zNig)
YKHO.__T1 = fE1i()
YKHO.__T2 = fE1i()
YKHO.__B1 = fE1i()
YKHO.__B2 = fE1i()
YKHO.__p = 0
YKHO.__c = zNig | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, wyyA):\n YKHO._cache = wyyA",
"def FIMM(YKHO, oc1B=1024):\n HXfb.__init__(YKHO)\n YKHO._cache_store = {}\n YKHO._cache_dirty = {}\n YKHO._cache = {}\n YKHO._cache_fifo = []\n YKHO._cache_max = oc1B",
"def FIMM(YKHO, Z1s9):\n YKHO._cache_dict = Z1s9",
"def FIMM(YKHO, vKp... | [
"0.65998185",
"0.64300084",
"0.6381762",
"0.63529295",
"0.62621695",
"0.625061",
"0.6246738",
"0.6236",
"0.62251246",
"0.6213387",
"0.61961955",
"0.61932385",
"0.61416847",
"0.60841334",
"0.60818803",
"0.60020304",
"0.5995183",
"0.5964786",
"0.595389",
"0.5953113",
"0.5951780... | 0.0 | -1 |
Setter for __start_date. Updates the start date of this assignment to its new value. | def E1Vg(YKHO, EexH):
YKHO.__start_date = EexH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YFxH(YKHO, kepv):\n YKHO.__start_date = kepv",
"def YFxH(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._s... | [
"0.89873815",
"0.89521736",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.8660798",
"0.84656554",
"0.84656554",
"0.84656554"... | 0.8668873 | 2 |
Initialize GCE firewall class. | def FIMM(YKHO, bNKA):
YKHO._lock = T6FA.Lock()
YKHO.firewall_rules = []
YKHO.project = bNKA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPvY():\n HuGs.create_chain('filter', 'WG_INGRESS')\n HuGs.add_raw_rule('filter', 'INPUT', ' -m state --state ESTABLISHED,RELATED -j ACCEPT', safe=True)\n HuGs.add_raw_rule('filter', 'INPUT', ' -m state --state INVALID -j DROP', safe=True)",
"def FIMM(YKHO):\n RKD7.debug('Firewall initialized.')\... | [
"0.59323996",
"0.5844537",
"0.5699431",
"0.5679515",
"0.5672199",
"0.56316966",
"0.55773485",
"0.5565464",
"0.55409473",
"0.553929",
"0.5485012",
"0.54530823",
"0.5446469",
"0.5404636",
"0.5381959",
"0.5362039",
"0.5342905",
"0.5328534",
"0.5303089",
"0.5289196",
"0.5288017",... | 0.50979054 | 64 |
Plot validation and training losses after fitting the model. | def GzY1(YKHO):
if hasattr(YKHO.learn, 'recorder'):
YKHO.learn.recorder.plot_losses() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mBbd(YKHO):\n QrM1.plot(YKHO.model.history.history['loss'])\n QrM1.plot(YKHO.model.history.history['val_loss'])\n QrM1.title('Model loss')\n QrM1.ylabel('Loss')\n QrM1.xlabel('Epoch')\n QrM1.legend(['Train', 'Test'], loc='upper right')\n return QrM1.show()",
"def mBbd(YKHO):\n NiXp, p... | [
"0.793422",
"0.77945846",
"0.77926487",
"0.77616674",
"0.77452976",
"0.768493",
"0.7680577",
"0.76804125",
"0.7673883",
"0.7669128",
"0.7639412",
"0.76213855",
"0.7619497",
"0.7615676",
"0.7554086",
"0.755328",
"0.75349903",
"0.7519624",
"0.7500317",
"0.74679446",
"0.745167",... | 0.0 | -1 |
Loads a saved model for inferencing or fine tuning from the specified path or model name. ===================== =========================================== Argument Description name_or_path Required string. Name of the model to load from the predefined location. If path is passed then it loads from the specified path w... | def tyeH(YKHO, hvpx):
ycBG = YKHO.learn.path
if '\\' in hvpx or '/' in hvpx:
pmON = GkAb(hvpx)
if pmON.is_file():
mWFP = pmON.stem
YKHO.learn.path = pmON.parent
else:
mWFP = pmON.parts[-1]
YKHO.learn.path = pmON
YKHO.learn.model_dir... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(YKHO, U0Yo: Union[str, Path]):\n raise NotImplementedError('Please Implement this method')",
"def dNS5(pmON, MNAm=None):\n return ZylS.keras.models.load_model(pmON, MNAm)",
"def uyMl(YKHO, pmON: str) -> None:\n if YKHO.name == 'MLP':\n YKHO.best_model = uyMl(pmON)\n else:\n Y... | [
"0.7876122",
"0.77732754",
"0.77566093",
"0.77186906",
"0.7703367",
"0.76931876",
"0.766093",
"0.76337266",
"0.7630727",
"0.75563574",
"0.7494014",
"0.7485285",
"0.7421385",
"0.7414826",
"0.741197",
"0.7396036",
"0.73671347",
"0.73653245",
"0.7364915",
"0.73516405",
"0.732658... | 0.73972267 | 15 |
Make coordinates of voxelated grid based on overall list of vehicle surfaces | def R0O3(mQdf, gCuF):
wBZN, re6M = (1e+30, -1e+30)
KDmU, rwK9 = (1e+30, -1e+30)
nqtH, KJKU = (1e+30, -1e+30)
for H5ew, yBSK in mQdf.items():
wBZN, re6M = (min(wBZN, oyIN.min(yBSK['x'])), max(re6M, oyIN.max(yBSK['x'])))
KDmU, rwK9 = (min(KDmU, oyIN.min(yBSK['y'])), max(rwK9, oyIN.max(yBSK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lm0U(bYzl, BQGg, Z3uP, h3cg, RA_F):\n jHsn = int((bYzl + RA_F - BQGg) / RA_F)\n pvd3 = int((Z3uP + RA_F - h3cg) / RA_F)\n MI0Y = oyIN.arange(-40, 42, 1) * RA_F\n f4we = oyIN.arange(40, -41, -1) * RA_F\n U_iz, glRa = oyIN.meshgrid(MI0Y, f4we)\n dEWj = oyIN.arange(-40, 42.0, 1.0) * RA_F\n eM... | [
"0.66283715",
"0.65390843",
"0.653685",
"0.64176714",
"0.6326641",
"0.6286259",
"0.62365645",
"0.6202553",
"0.6202553",
"0.6202553",
"0.6202399",
"0.61963093",
"0.61936694",
"0.61936694",
"0.6156647",
"0.6155772",
"0.6123219",
"0.6122693",
"0.61224943",
"0.6121848",
"0.612064... | 0.7555329 | 0 |
Voxels with any triangle from ``surf`` are considered occupied and or'ed with ``group_mask``. If the supplied ``occupied_voxels`` is None a voxel array is created and returned. | def VG2A(C5Es, ADoM, rjOS):
Ziit = C5Es['nodes']
KqlN = C5Es['tris']
VEbO, WBF9, mGEY = [rjOS[G1Hx] for G1Hx in ('x_grid', 'y_grid', 'z_grid')]
vL6E = rjOS['vox_size']
JRC0, IA3S = (oyIN.min(C5Es['x']) - vL6E, oyIN.max(C5Es['x']) + vL6E)
LChT, dCLF = (oyIN.min(C5Es['y']) - vL6E, oyIN.max(C5Es['y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qmrS(YKHO, w2fL: Tokenizer) -> None:\n for IPKH in w2fL.block('OccupiedVoxels'):\n _JHH = SkZj.DEFAULT\n Awqq: SkZj | None = None\n gwqK = mb3R(0, 0, 0)\n yCTS: mb3R | None = None\n mhAC: mb3R | None = None\n gHX9: set[tuple[mb3R | None, mb3R | None]] = set()\n ... | [
"0.5961318",
"0.5772722",
"0.51920944",
"0.51887536",
"0.50600904",
"0.5059039",
"0.5008077",
"0.4956452",
"0.48541355",
"0.4774325",
"0.47612613",
"0.47298172",
"0.46594712",
"0.4583774",
"0.45746422",
"0.4566645",
"0.45355365",
"0.45324475",
"0.45111585",
"0.45088956",
"0.4... | 0.72278935 | 0 |
Computes the accuracy over the k top predictions for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
if pan_.numel() == 0:
return [ht2j.zeros([], device=hlel.device)]
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\n bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(... | [
"0.8317406",
"0.8285652",
"0.82828414",
"0.8281149",
"0.82362676",
"0.82337403",
"0.822514",
"0.82245225",
"0.82118344",
"0.81912935",
"0.81870127",
"0.818126",
"0.8180909",
"0.8179992",
"0.81788236",
"0.81788236",
"0.8178704",
"0.81778836",
"0.8177197",
"0.81756",
"0.8173057... | 0.0 | -1 |
Generate a random string of letters, digits and special characters | def ORGv(FVpJ):
w5bg = vIwR.ascii_letters + vIwR.digits
return ''.join((tuKI.choice(w5bg) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jv62():\n gZgG = vIwR.ascii_letters\n H0q3 = ''.join((Acvy(gZgG) for WKvO in range(ajWY(paVi, ftyj))))\n return H0q3",
"def Zfgd():\n PdTY = vIwR.ascii_letters + vIwR.digits\n return ''.join((tuKI.choice(PdTY) for YRbF in range(50)))",
"def Vt_K():\n\n def R71E():\n if tuKI.random(... | [
"0.79643756",
"0.7814547",
"0.7793576",
"0.77894235",
"0.77888966",
"0.7723293",
"0.771487",
"0.7713737",
"0.76931024",
"0.7606124",
"0.75945985",
"0.7574778",
"0.75683445",
"0.75399673",
"0.7536854",
"0.7536854",
"0.7536854",
"0.7534896",
"0.7534035",
"0.7532472",
"0.7532472... | 0.7552706 | 13 |
Ensure the bookings initialised in the app fixture are present. | def MyzH(YKHO, azY1, P4t4, mWFP, P1BX, RlBx, AVUL):
with P4t4.app_context():
o6yu = xVxx.query.filter_by(name=mWFP).all()
assert len(o6yu) == 1
o6yu = o6yu[0]
assert o6yu.name == mWFP
assert o6yu.from_when == qcWV.combine(azY1, P1BX)
assert o6yu.until_when == qcWV.com... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y3TS(YKHO):\n YKHO.client.login(username=YKHO.user.username, password='test')\n tvqc = bAXD.make_recipe('booking.future_EV', cost=0, max_participants=3)\n bAXD.make_recipe('booking.booking', user=YKHO.user, event=tvqc, status='OPEN', no_show=False)\n bD7m = gxEw('booking:ajax_create_booking', args=... | [
"0.64062077",
"0.6388302",
"0.62570614",
"0.6199882",
"0.61424",
"0.6131151",
"0.61124563",
"0.6055005",
"0.6026353",
"0.6019456",
"0.6010447",
"0.600445",
"0.5983079",
"0.59646267",
"0.5943457",
"0.5929955",
"0.59053177",
"0.5888212",
"0.5849612",
"0.5823235",
"0.58191633",
... | 0.6352308 | 2 |
Sets the recipes_used of this InlineResponse20049Nutrition. | def tVhe(YKHO, tVhe):
if tVhe is None:
raise ValueError('Invalid value for `recipes_used`, must not be `None`')
YKHO._recipes_used = tVhe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XR14(YKHO, XR14):\n YKHO._used = XR14",
"def XR14(YKHO, XR14):\n YKHO._used = XR14",
"def EaAo(YKHO, Yv78):\n YKHO._recipe = Yv78",
"def FIMM(YKHO, tVhe=None, BHpE=None, H1u3=None, PZMH=None, vzoC=None):\n YKHO._recipes_used = None\n YKHO._calories = None\n YKHO._fat = None\n YKHO._p... | [
"0.5393193",
"0.5393193",
"0.5393147",
"0.5213255",
"0.5193129",
"0.5161022",
"0.51017505",
"0.5089447",
"0.50757074",
"0.5013182",
"0.49190733",
"0.49049136",
"0.49030632",
"0.49030632",
"0.48780453",
"0.48641083",
"0.48301718",
"0.47761747",
"0.47341907",
"0.46926966",
"0.4... | 0.8224655 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Substantiate a System using input coordinates in the order of the members in the system. | def PgoT(YKHO, kbHB, x4O9=False):
DgAC = []
for cI_2, WUvq in enumerate(kbHB):
Cu55 = YKHO.member_types[cI_2]
if isinstance(Cu55, nzWa):
DgAC.append(Cu55.to_atom(WUvq))
elif isinstance(Cu55, ZBPf):
DgAC.append(Cu55.to_molecule(WUvq))
Oz1B = wk86(DgAC, system_t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ruZx(bSO2, YdmI, r8hN=[1.0, 0.0, 0.0], exwG=[0.0, 1.0, 0.0], krrI=[0.0, 0.0, 0.0]):\n r8hN = oyIN.asarray(r8hN, dtype=float)\n exwG = oyIN.asarray(exwG, dtype=float)\n krrI = oyIN.asarray(krrI, dtype=float)\n rciA = bSO2.atoms.pos\n o_qv = ZJUk(bSO2, YdmI)\n iLDg = oyIN.dot(rciA, r8hN)\n h... | [
"0.62297046",
"0.5956465",
"0.58852017",
"0.5873615",
"0.5860515",
"0.58432823",
"0.5828817",
"0.5739153",
"0.5698709",
"0.5649746",
"0.5620586",
"0.5585533",
"0.5583851",
"0.55164444",
"0.5503462",
"0.5493769",
"0.5487225",
"0.5460517",
"0.5452131",
"0.5427474",
"0.54209036"... | 0.6529323 | 0 |
All atoms in the system including those in molecules. | def hdLl(YKHO):
hdLl = YKHO.atoms
for asBq in YKHO.molecules:
hdLl.extend(asBq.atoms)
return hdLl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iSNi(asBq):\n return asBq.allAtoms()",
"def iB3p(YKHO):\n return YKHO.atoms",
"def RR8p(YKHO):\n return YKHO._atoms",
"def iSNi(YKHO):\n return YKHO.subNodes(depth=1)",
"def iSNi(YKHO):\n return YKHO.subNodes(depth=2)",
"def RR8p(YKHO):\n if YKHO._atoms is None:\n if YKHO.id ... | [
"0.8452164",
"0.7583151",
"0.75819916",
"0.7372981",
"0.73137295",
"0.7306081",
"0.72903305",
"0.7263917",
"0.7262871",
"0.71976715",
"0.7185446",
"0.71593",
"0.71042985",
"0.7009345",
"0.6875005",
"0.67428416",
"0.67428416",
"0.66906345",
"0.66829544",
"0.6666287",
"0.660854... | 0.8306955 | 1 |
Deterministically splits the beatdf by _patient_ | def MezQ(Xzgh, OVCu='ptid', nZeY=0.6, kmEs=0.15):
aX4l = oyIN.sort(Xzgh[OVCu].unique())
print('Splitting %d unique patients' % len(aX4l))
H0q3 = oyIN.random.RandomState(0)
J9cr = H0q3.permutation(len(aX4l))
o6yt = int(nZeY * len(aX4l))
Gi2o = int(kmEs * len(aX4l))
d8cP = J9cr[:o6yt]
IlWe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tFpc(YKHO):\n G9jH.info('Grouping exams by patient...')\n m877 = {C3kz: list(YKHO.exams_df.loc[Pfcj]['exam_id']) for C3kz, Pfcj in PRqg(YKHO.exams_df.groupby('patient_id').groups.items())}\n PYUx = list(YKHO.exams_df['patient_id'].unique())\n tuKI.shuffle(PYUx)\n G9jH.info('Building splits...')\... | [
"0.73885214",
"0.6839686",
"0.6314263",
"0.6058021",
"0.6037714",
"0.5993261",
"0.5885539",
"0.58832556",
"0.588087",
"0.5799104",
"0.57933086",
"0.5781117",
"0.5743459",
"0.5722462",
"0.56817394",
"0.56616974",
"0.562713",
"0.5572401",
"0.5571932",
"0.5549313",
"0.5485932",
... | 0.7201066 | 1 |
Returns the groups, which are available in the database. | def moMn(YKHO, iquo=None):
if iquo != 'view1':
return YKHO.m_valid_groups
else:
return YKHO.m_valid_groups[:2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MvIi():\n return u8YN()",
"def MvIi(YKHO):\n return HFY6(XP5J.alpm_db_get_grpcache(YKHO.db))",
"def CKib(YKHO):\n return YKHO.session.query(xU0C.Group).all()",
"def moMn(YKHO):\n exwG = []\n YKHO.cursor.execute('SELECT b.name FROM {grp} AS b, (SELECT gid FROM {grpdoc_access} \\n ... | [
"0.8354618",
"0.82938874",
"0.819877",
"0.8138052",
"0.8128701",
"0.7962987",
"0.7920148",
"0.7912993",
"0.79109114",
"0.7875862",
"0.7767124",
"0.77597594",
"0.7739087",
"0.7737974",
"0.7732178",
"0.77140856",
"0.77140856",
"0.76899475",
"0.76636106",
"0.7659393",
"0.7659393... | 0.0 | -1 |
Returns the client_id (real client id) attached to the given file_id | def w8eO(YKHO, WpAY, **B2fa):
YKHO.assert_validity()
vexM = YKHO.query(fnT7).filter(fnT7.id == WpAY)
assert vexM.count() == 1
return vexM.first().client_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8eO(YKHO, WpAY, **B2fa):\n return TS3K(WpAY)",
"def mm0e(YKHO):\n return YKHO._fileid",
"def WpAY(YKHO) -> int:\n return YKHO._file_id",
"def WbUT(YKHO, nUeQ):\n return YKHO._file_to_id[nUeQ]",
"def WbUT(YKHO, nUeQ):\n return YKHO._file_to_id[nUeQ]",
"def WbUT(YKHO, nUeQ):\n return... | [
"0.8475943",
"0.7262067",
"0.7103677",
"0.6865993",
"0.6865993",
"0.6865993",
"0.6865993",
"0.6741776",
"0.6717372",
"0.6645404",
"0.6604602",
"0.6586294",
"0.6586294",
"0.6586294",
"0.6586294",
"0.658535",
"0.64916414",
"0.64872277",
"0.6435029",
"0.6434082",
"0.6434082",
... | 0.8585175 | 0 |
Returns the client_id (real client id) attached to the given model id | def b_Lf(YKHO, tsEk, **B2fa):
return YKHO.get_client_id_from_file_id(tsEk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_Lf(YKHO, tsEk, **B2fa):\n return QXGb(tsEk)",
"def BlAk():\n return BEB4",
"def YfV8(YKHO) -> str:\n pass",
"def RTzd(YKHO):\n return YKHO.rs.my_clients[0]['id']",
"def zb3C(YKHO) -> str:\n return YKHO.database.client.id",
"def B0Gs(YKHO):\n return YKHO._modelid",
"def tsEk(YKHO... | [
"0.8782289",
"0.73565066",
"0.73291826",
"0.7324775",
"0.7233932",
"0.72322124",
"0.72117066",
"0.7175185",
"0.71150124",
"0.71150124",
"0.71150124",
"0.71150124",
"0.71084654",
"0.7102638",
"0.7085941",
"0.70744056",
"0.70706576",
"0.701888",
"0.701888",
"0.7017868",
"0.7009... | 0.85607904 | 1 |
Return an instance of rest_framework Serializer for self | def ZMzz(YKHO):
from serializers import ModelProgramMetaDataSerializer
return ModelProgramMetaDataSerializer(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZMzz(YKHO, **B2fa):\n if not YKHO._serializer:\n YKHO._serializer = YKHO.get_serializer()(**B2fa)\n return YKHO._serializer",
"def a9qP(YKHO, **B2fa):\n YEnM = YKHO.get_object(**B2fa)\n ZMzz = YKHO.serializer_class(YEnM)\n return ZMzz",
"def a9qP(YKHO, *qIxc, **B2fa):\n cIuE = YKHO... | [
"0.8411777",
"0.7953076",
"0.7893396",
"0.78779733",
"0.78779733",
"0.7754953",
"0.76068777",
"0.7598124",
"0.7596169",
"0.75085086",
"0.7485091",
"0.74839747",
"0.74251306",
"0.7403648",
"0.7400716",
"0.739393",
"0.73686457",
"0.73650604",
"0.73642427",
"0.7328108",
"0.73250... | 0.0 | -1 |
Go through all the boxes, and whenever there is a box with a value, eliminate this value from the values of all its peers. | def zJeh(hkxX):
dBEg = [FlUN for FlUN in hkxX.keys() if len(hkxX[FlUN]) == 1]
for FlUN in dBEg:
for jYLz in k5Tt[FlUN]:
hkxX[jYLz] = hkxX[jYLz].replace(hkxX[FlUN], '')
zUz_(hkxX, jYLz, hkxX[jYLz])
return hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zJeh(hkxX):\n for Lves in qAH2(hkxX):\n for jYLz in iBIi.all_peers(Lves):\n hkxX = zUz_(hkxX, jYLz, hkxX[jYLz].replace(hkxX[Lves], ''))\n return hkxX",
"def zJeh(hkxX):\n vMy3 = [FlUN for FlUN in hkxX.keys() if len(hkxX[FlUN]) == 1]\n for FlUN in vMy3:\n AnMo = hkxX[FlUN]... | [
"0.80502933",
"0.79828095",
"0.79502577",
"0.792321",
"0.7810522",
"0.7756134",
"0.7727359",
"0.7677278",
"0.76734",
"0.7646162",
"0.7638652",
"0.7626763",
"0.7611096",
"0.7586493",
"0.75389063",
"0.75302523",
"0.7501259",
"0.7494998",
"0.73966926",
"0.7351234",
"0.73184884",... | 0.75212634 | 16 |
Go through all the units, and whenever there is a unit with a value that only fits in one box, assign the value to this box. | def rIvV(hkxX):
xYvp = '123456789'
for PXGI in dzni:
for mLGw in xYvp:
DJ6o = [VmPb for VmPb in PXGI if mLGw in hkxX[VmPb]]
if len(DJ6o) == 1:
hkxX[DJ6o[0]] = mLGw
zUz_(hkxX, DJ6o[0], mLGw)
return hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIMy(YKHO):\n for WKvO in range(9):\n for LVAh in range(9):\n exwG = YKHO.grid[WKvO][LVAh]\n if exwG != 0:\n YKHO._rows[LVAh].add(exwG)\n YKHO._columns[WKvO].add(exwG)\n YKHO._boxes[WKvO // 3][LVAh // 3].add(exwG)",
"def rIvV(hkxX):... | [
"0.67271334",
"0.60559326",
"0.60492265",
"0.60362947",
"0.58788586",
"0.58445466",
"0.58432746",
"0.5829289",
"0.58274806",
"0.5803526",
"0.5752267",
"0.56982267",
"0.5683264",
"0.5674119",
"0.56380886",
"0.5623128",
"0.56029207",
"0.5586478",
"0.5566584",
"0.55607074",
"0.5... | 0.53747404 | 41 |
Iterate eliminate() and only_choice(). If at some point, there is a box with no available values, return False. If the sudoku is solved, return the sudoku. If after an iteration of both functions, the sudoku remains the same, return the sudoku. | def yimF(hkxX):
Hk19 = True
while Hk19:
BW94 = len([FlUN for FlUN in hkxX.keys() if len(hkxX[FlUN]) == 1])
hkxX = zJeh(hkxX)
hkxX = rIvV(hkxX)
hkxX = WqoA(hkxX)
jD5C = len([FlUN for FlUN in hkxX.keys() if len(hkxX[FlUN]) == 1])
Hk19 = BW94 != jD5C
if len([... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgwQ(hkxX):\n hkxX = yimF(hkxX)\n if hkxX is False:\n return False\n if all((len(hkxX[KCHu]) == 1 for KCHu in oUSw)):\n return hkxX\n exwG, KCHu = min(((len(hkxX[KCHu]), KCHu) for KCHu in oUSw if len(hkxX[KCHu]) > 1))\n for BWXx in hkxX[KCHu]:\n dkel = hkxX.copy()\n d... | [
"0.7342241",
"0.73382235",
"0.733387",
"0.7286389",
"0.72146267",
"0.7201141",
"0.71673036",
"0.7165593",
"0.7161442",
"0.7160696",
"0.71347535",
"0.7131922",
"0.7107398",
"0.7103932",
"0.7100228",
"0.7084024",
"0.7079967",
"0.70698047",
"0.70669985",
"0.70639324",
"0.7048726... | 0.6914265 | 32 |
Apply Gaussian filter to the input image. | def hT0N(LNo8, Ot1W=13):
return XC5k.GaussianBlur(LNo8, (Ot1W, Ot1W), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def raZd(YKHO):\n V2fX.gaussian_filter(YKHO.im, sigma=oyIN.random.rand(), output=YKHO.im)",
"def l__T(d6hw, WTkW):\n NMPo = apUX(d6hw, sigma=WTkW)\n return NMPo",
"def l__T(d6hw, WTkW):\n NMPo = d6hw\n return NMPo",
"def apUX(VXjJ, KCHu):\n quCl = VXjJ.copy()\n LorG = V2fX.gaussian_filte... | [
"0.8085449",
"0.8044279",
"0.8033683",
"0.78239834",
"0.7663215",
"0.72682005",
"0.7232504",
"0.71948373",
"0.71532595",
"0.71345836",
"0.71032625",
"0.70861346",
"0.70861346",
"0.70861346",
"0.70710075",
"0.7059907",
"0.69455385",
"0.69417775",
"0.6930938",
"0.6930938",
"0.6... | 0.7095938 | 11 |
Create a DiscreteChoiceModel instance from a saved YAML configuration. Arguments are mutally exclusive. | def OXMy(Emd4, Ul2G=None, Y_tt=None):
_Fei = _QZX.yaml_to_dict(Ul2G, Y_tt)
C3ST = Emd4(_Fei['model_expression'], _Fei['sample_size'], probability_mode=_Fei.get('probability_mode', 'full_product'), choice_mode=_Fei.get('choice_mode', 'individual'), choosers_fit_filters=_Fei.get('choosers_fit_filters', None), cho... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, qHj0) -> 'ConfigurableProductDataOptionInterface':\n return Evid(qHj0, Emd4)",
"def jG8h(Emd4, qHj0) -> 'Config':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def jG8h(Emd4, qHj0) -> 'MetaGloablControl':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def OXMy(Emd4, Ul2G, t4HI, **B2f... | [
"0.5999146",
"0.5960295",
"0.59590936",
"0.5845483",
"0.58276075",
"0.580077",
"0.5798063",
"0.55691934",
"0.55679834",
"0.55550176",
"0.55550176",
"0.5509562",
"0.5485483",
"0.5452927",
"0.54168785",
"0.54168785",
"0.54168785",
"0.54168785",
"0.54168785",
"0.5385636",
"0.538... | 0.554705 | 11 |
Create a SegmentedMNLDiscreteChoiceModel instance from a saved YAML configuration. Arguments are mutally exclusive. | def OXMy(Emd4, Ul2G=None, Y_tt=None):
_Fei = _QZX.yaml_to_dict(Ul2G, Y_tt)
deU1 = _Fei['default_config']['model_expression']
pG0V = Emd4(_Fei['segmentation_col'], _Fei['sample_size'], _Fei['probability_mode'], _Fei['choice_mode'], _Fei['choosers_fit_filters'], _Fei['choosers_predict_filters'], _Fei['alts_fi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zBiw(Emd4, Ul2G, t4HI, **B2fa):\n YEnM = czIh(Ul2G)\n return Emd4.from_config(YEnM, t4HI, **B2fa)",
"def OXMy(Emd4, Ul2G, t4HI, **B2fa):\n return Emd4.from_validated_yaml(Ul2G, t4HI, **B2fa)",
"def jG8h(Emd4, qHj0) -> 'Config':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def OXMy(Emd4, Ul2... | [
"0.56869626",
"0.5624171",
"0.5562028",
"0.55384916",
"0.53872705",
"0.5287434",
"0.5249357",
"0.52320516",
"0.5156595",
"0.5146295",
"0.5091191",
"0.5059731",
"0.503784",
"0.5023923",
"0.5021516",
"0.49726057",
"0.4970661",
"0.49483112",
"0.49437696",
"0.4929005",
"0.4910365... | 0.70705056 | 0 |
Whether models for all segments have been fit. | def VZZT(YKHO):
return YKHO._group.fitted | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VZZT(YKHO):\n return all((r8hN.fitted for r8hN in YKHO.models.values())) if YKHO.models else False",
"def evjV(YKHO) -> bool:\n return bool(YKHO.n_documents)",
"def VZZT(YKHO):\n return YKHO.fit_parameters is not None",
"def Vpuo(YKHO) -> bool:\n ...",
"def Vpuo(YKHO) -> bool:\n return F... | [
"0.82380885",
"0.7546536",
"0.73351234",
"0.721674",
"0.72005355",
"0.716251",
"0.716251",
"0.716251",
"0.696557",
"0.69630986",
"0.6958995",
"0.6943743",
"0.6943743",
"0.69082236",
"0.69082236",
"0.69082236",
"0.69082236",
"0.68637156",
"0.6794561",
"0.67879635",
"0.6770736"... | 0.0 | -1 |
recursive topological sort algorithm | def je5O(kPgw):
exwG = len(kPgw)
elzz = MUE7()
azXi = [0 for Ty9i in range(exwG)]
def K2kF(YRbF):
azXi[YRbF] = 1
for NlZ_ in kPgw[YRbF]:
if azXi[NlZ_] == 0:
K2kF(NlZ_)
elzz.appendleft(YRbF)
for YRbF in range(exwG):
if azXi[YRbF] == 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NtqH(YKHO, Ty9i, azXi, E5BI):\n azXi[Ty9i] = True\n for YRbF in YKHO.graph[Ty9i]:\n if not azXi[YRbF]:\n YKHO._topological_sort(YRbF, azXi, E5BI)\n E5BI.insert(0, Ty9i)",
"def _Ypz(yKcO, azXi, BA9O):\n jvSB = yKcO\n azXi.append(jvSB)\n A_IW = mC4V[jvSB]\n for AAbN in A_... | [
"0.75180006",
"0.74724746",
"0.743237",
"0.74237067",
"0.74232644",
"0.7405999",
"0.7374895",
"0.73606193",
"0.73606193",
"0.73606193",
"0.7265542",
"0.7248781",
"0.7239796",
"0.72142",
"0.71270126",
"0.7106499",
"0.7093178",
"0.70422953",
"0.7032368",
"0.6983312",
"0.6979433... | 0.6061507 | 84 |
Return largest i such that basei is less than n | def DxTY(exwG):
assert exwG >= 0
if exwG == 0:
return 0
YRbF = 0
while P8oC ** YRbF <= exwG:
YRbF += 1
return YRbF - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def elrN(YKHO, exwG):\n kaGQ = int(exwG)\n Befc = kaGQ - 1\n PhZc = Befc\n for YRbF in range(2, 64, 1):\n P8oC = int(epAf.pow(Befc, 1 / YRbF))\n if P8oC < 2:\n break\n if YKHO.test(P8oC, kaGQ):\n PhZc = P8oC\n return str(PhZc)",
"def diMM(exwG, P8oC):\n ... | [
"0.7202459",
"0.7158891",
"0.7043275",
"0.69823414",
"0.69180447",
"0.6842896",
"0.6800424",
"0.67705595",
"0.67569387",
"0.67382085",
"0.67278045",
"0.6720417",
"0.6697373",
"0.66568",
"0.6655608",
"0.66124856",
"0.6608136",
"0.6601216",
"0.65850925",
"0.65815747",
"0.657712... | 0.74284816 | 0 |
get the number of the last backup in this series. | def JqI1(P8oC):
FSYx = ZEsY(P8oC)
xYvp = [int(FYKK.replace(P8oC + '.', '')) for FYKK in FSYx]
if len(xYvp) is 0:
return 0
else:
return max(xYvp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FrVQ(YKHO) -> int:\n ...",
"def XVAW(YKHO):\n return 0",
"def FrVQ(YKHO) -> Swre:\n ...",
"def GIlJ(YKHO):\n return YKHO._last_qty",
"def XVAW(YKHO):\n return YKHO.statcmd('LAST')",
"def XVAW(YKHO):\n return YKHO.statcmd('LAST')",
"def k9a2(YKHO):\n if YKHO.store_log == []:\n ... | [
"0.7208951",
"0.6939218",
"0.68390757",
"0.6800354",
"0.67887384",
"0.67800575",
"0.67685115",
"0.6704914",
"0.669623",
"0.669623",
"0.669623",
"0.669623",
"0.669623",
"0.66808534",
"0.6680233",
"0.6660917",
"0.6640383",
"0.65872544",
"0.6567441",
"0.65653443",
"0.65215087",
... | 0.0 | -1 |
Make nested lists into a single list of atoms | def PWgb(aPd6):
if type(aPd6) != type([]):
return [aPd6]
if aPd6 == []:
return aPd6
return Pusg(lambda WKvO, LVAh: WKvO + LVAh, map(PWgb, aPd6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y2Gs(vC9B):\n return [WKvO for LVAh in vC9B for WKvO in tBKI(LVAh)]",
"def GarA(UtCB: List[List[Any]]) -> x1iM[ImMB]:\n TLbF = []\n for WKvO in UtCB:\n TLbF.extend(WKvO)\n return TLbF",
"def PWgb(KayY):\n return list(Hs6x.chain(*KayY))",
"def v1j1(RR8p):\n return [WhQ6.get_intern... | [
"0.7059766",
"0.6763609",
"0.6744657",
"0.6740993",
"0.670477",
"0.66275585",
"0.66095746",
"0.6584086",
"0.64704597",
"0.64547575",
"0.64547575",
"0.644976",
"0.64460945",
"0.6400072",
"0.63861257",
"0.6375469",
"0.6375469",
"0.6375469",
"0.63683975",
"0.634985",
"0.63416475... | 0.0 | -1 |
Initialize a priority heap object. | def FIMM(YKHO):
YKHO.__heap = []
dict.__init__(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ey19=lambda WKvO: WKvO):\n YKHO.heap = []\n YKHO.priority = Ey19",
"def FIMM(YKHO):\n YKHO.maxHeap = sijU()\n YKHO.minHeap = sijU()",
"def FIMM(YKHO):\n YKHO._values = QdpR()\n YKHO._min_priority = 0",
"def FIMM(YKHO):\n from queue import PriorityQueue\n YKHO.max_heap =... | [
"0.8460065",
"0.8078898",
"0.80010563",
"0.7998731",
"0.7806903",
"0.7767208",
"0.77352583",
"0.76839876",
"0.76632655",
"0.7660003",
"0.7619236",
"0.75605696",
"0.7547291",
"0.7528294",
"0.7512172",
"0.7508185",
"0.7490752",
"0.74375284",
"0.74250084",
"0.74250084",
"0.74250... | 0.715963 | 48 |
Distribute samples evenly in a given range. A function that is used in order to distribute evenly, the amount of samples that will be drawn from a range of subset's sizes, from an original set of given size. | def xoDA(exwG, g4yt, cDK5):
sak7, P2yA = (g4yt[0], g4yt[1])
KpQe = min(P2yA, exwG)
yzQ0 = oyIN.array([rHGW(exwG, G1Hx) for G1Hx in range(sak7, KpQe + 1)], dtype=float)
yzQ0 = yzQ0 / oyIN.sum(yzQ0)
HJwi = oyIN.floor(yzQ0 * cDK5).astype(int)
KG9w = HJwi.shape[0]
for Mkmy in range(int(cDK5 - oy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PRiE(mipY, zNig, fdMZ):\n if zNig < 1:\n raise Exception('size cannot be zero')\n if zNig == 1:\n return range(mipY)\n elif mipY < zNig:\n if fdMZ < mipY:\n return [fdMZ]\n else:\n return []\n else:\n t1Xj = int(epAf.floor(mipY / zNig))\n ... | [
"0.63693",
"0.6301813",
"0.6231218",
"0.6198129",
"0.60538995",
"0.60480005",
"0.6046655",
"0.6043414",
"0.5936306",
"0.5922632",
"0.58833367",
"0.5789203",
"0.5719869",
"0.57139575",
"0.57099175",
"0.57093865",
"0.5684598",
"0.56804556",
"0.5679436",
"0.5662299",
"0.565832",... | 0.7731996 | 0 |
load_image function load load_image and output as rgb888 format np.array | def DZ0a(LNo8):
LNo8 = _uqo.load_image(LNo8, is_raw=False)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(pmON):\n Ps57 = hnIv.open(pmON).convert('RGB')\n LNo8 = oyIN.array(Ps57)[:, :, [2, 1, 0]]\n return LNo8",
"def tyeH(pmON):\n Ps57 = hnIv.open(pmON).convert('RGB')\n LNo8 = oyIN.array(Ps57)[:, :, [2, 1, 0]]\n return LNo8",
"def tyeH(pmON):\n Ps57 = hnIv.open(pmON).convert('RGB')\n ... | [
"0.7669475",
"0.7669475",
"0.7639853",
"0.75969213",
"0.7427635",
"0.73558134",
"0.7319936",
"0.72684854",
"0.72186965",
"0.7200322",
"0.7170915",
"0.7167463",
"0.7154227",
"0.7147385",
"0.7138369",
"0.71286887",
"0.70737046",
"0.7059247",
"0.7041456",
"0.70393926",
"0.703639... | 0.0 | -1 |
load_hex function load hex file and output as rgb888 format np.array | def Ih1t(nUeQ, FMLJ=None, zNig=None):
assert isinstance(zNig, tuple)
assert isinstance(FMLJ, str)
assert FMLJ.lower() in ['rgb888', 'yuv444', 'ycbcr444', 'yuv422', 'ycbcr422', 'rgb565']
LNo8 = _uqo.load_image(nUeQ, is_raw=True, raw_img_type='hex', raw_img_fmt=FMLJ, img_in_width=zNig[0], img_in_height=zN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUdN(Ux0P):\n jbXL = []\n with open(Ux0P, 'r') as O5Qg:\n for zFiD in O5Qg:\n zFiD = zFiD[:-1]\n jbXL.append(zFiD.decode('hex'))\n return jbXL",
"def lfBp(YKHO, gIsw, rhd_=8):\n with open(gIsw, 'rt') as apum:\n JhHh = apum.readlines()\n f1ki = oyIN.array([in... | [
"0.65361214",
"0.63288283",
"0.6311673",
"0.62990415",
"0.62529993",
"0.61300206",
"0.6014049",
"0.60000694",
"0.59453195",
"0.5938967",
"0.59279835",
"0.5869728",
"0.58203393",
"0.57844526",
"0.5777567",
"0.5755279",
"0.5750805",
"0.574864",
"0.5734161",
"0.57315683",
"0.572... | 0.684522 | 0 |
norm function x = (x/scale bias) x[0,1,2] = x mean[0,1,2] x[0,1,2] = x / std[0,1,2] | def CkYf(LNo8, NXpY=256.0, oug5=-0.5, JBMS=None, M1Jx=None):
assert isinstance(LNo8, oyIN.ndarray)
_uqo.set_normalize(type='specific', scale=NXpY, bias=oug5, mean=JBMS, std=M1Jx)
LNo8, bGrB = _uqo.funcs['normalize'](LNo8)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CkYf(WKvO):\n yGTL = WKvO.mean()\n M1Jx = WKvO.std()\n LVAh = (WKvO - yGTL) / M1Jx\n return LVAh",
"def NkkI(VXjJ, JBMS, M1Jx):\n return (VXjJ - JBMS) / M1Jx",
"def WuUW(nPrm, JBMS, M1Jx):\n return (nPrm - JBMS) / M1Jx",
"def mSeE(EcVT):\n return (EcVT - oyIN.nanmean(EcVT, axis=0)) /... | [
"0.7856694",
"0.77876467",
"0.7580692",
"0.7528403",
"0.74885494",
"0.7442711",
"0.7380413",
"0.73531294",
"0.7305485",
"0.72960174",
"0.72933245",
"0.7284829",
"0.72816676",
"0.7267368",
"0.7244102",
"0.7239283",
"0.72340953",
"0.7216018",
"0.72012377",
"0.7194433",
"0.71837... | 0.74544936 | 5 |
Get a specific user by id. | def jRq6(uJjO: int, c5ow: UsersTable=JHvC(aeQa.get_current_active_user)) -> ImMB:
CBIr = _ZSb.get(id=uJjO)
if CBIr == c5ow:
return CBIr
if not _ZSb.is_superuser(c5ow):
raise pgG1(status_code=400, detail="The user doesn't have enough privileges")
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)",
"def bt8D(id):\n return mv1M.query.get(id)",
"def bt8D(id):\n Mkmy = G4JS.get(NKRf + '/user/' + str(id))\n CBIr = Mkmy.json()\n return CBIr",
"def g971(id):\n return mv1M.query.get(int(id))",
"def bt8D(uJjO):\n return NCls.... | [
"0.86773294",
"0.863872",
"0.85849804",
"0.85832816",
"0.8477066",
"0.8433542",
"0.84109133",
"0.8401814",
"0.83939475",
"0.83939475",
"0.83892846",
"0.83781856",
"0.83754057",
"0.83724815",
"0.8353039",
"0.8335951",
"0.8322543",
"0.8297604",
"0.8288913",
"0.82781214",
"0.826... | 0.8004598 | 42 |
Get the running application config. | def GkLL(YKHO, ZCi4='current_config', bNKA=None):
if not bNKA:
bNKA = YKHO.project
if not bNKA or bNKA == 'localhost':
nUeQ = Hy7s.path.join(YKHO.git_project, f'rdr_service/.configs/{ZCi4}.json')
GPtr = qQXR.loads(open(nUeQ, 'r').read())
else:
kT1P = mM9H()
GPtr = kT1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD():\n return wk5E.config",
"def tgzD():\n Fv2L = AxXv(uFua + '_CONFIG', 'default')\n return X8Rg[Fv2L]",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def GkLL() -> cuzp:\n return ... | [
"0.8668273",
"0.8137296",
"0.7923948",
"0.7923948",
"0.7923948",
"0.7917403",
"0.78177834",
"0.7790518",
"0.77686673",
"0.7760831",
"0.7744009",
"0.77310854",
"0.77060306",
"0.77060306",
"0.77060306",
"0.77060306",
"0.7678599",
"0.7649922",
"0.7644116",
"0.7632931",
"0.762231... | 0.0 | -1 |
Return the GCP app engine configurator account for the given project id. | def COtv(YKHO, bNKA: str=None) -> (str, None):
if not bNKA:
bNKA = YKHO.project
cKY_, Ux0P = YKHO.get_latest_config_from_bucket(bNKA, 'current_config')
if not cKY_:
I45O.error(f'Failed to get local config for "{bNKA}".')
return None
GPtr = qQXR.loads(cKY_)
DW23 = GPtr['user_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EUyl() -> str:\n bGrB, bNKA = yszQ.auth.default()\n return bNKA",
"def WnZu(_Fei):\n b1Fz = Hy7s.path.join(_Fei['store_dir'], _Fei['credentials_file'])\n nq60 = qQXR.loads(ofPZ.grab_file_as_text(b1Fz))\n return nq60['installed']['project_id']",
"def EUyl():\n if k5i4 is None:\n rai... | [
"0.6543276",
"0.64541686",
"0.6258921",
"0.6173883",
"0.61571956",
"0.6112584",
"0.60543376",
"0.60476226",
"0.5925767",
"0.5887492",
"0.5866573",
"0.58203584",
"0.5807498",
"0.5792679",
"0.57295185",
"0.5717545",
"0.57112724",
"0.5705327",
"0.5683596",
"0.5679852",
"0.567509... | 0.7986252 | 0 |
Returns the mean accuracy on the given test data and labels X ndarray The test samples y ndarray The true labels for X float mean accuracy of self.predict(X) with respect to y | def p1kx(YKHO, EcVT, LVAh):
o3Uj = YKHO.predict(EcVT)
dixj = oyIN.equal(o3Uj, LVAh)
return oyIN.sum(dixj) / float(dixj.size) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YqXM(YKHO, XUXj, s8RJ):\n cCrA = oyIN.dot(XUXj, YKHO.W) + YKHO.b\n RSpH = oyIN.argmax(cCrA, axis=1)\n return oyIN.mean(RSpH == s8RJ)",
"def VRZs(YKHO, aMgO, H96n):\n vjyh = oyIN.sum(aMgO == H96n)\n vjyh /= oyIN.shape(H96n)[0]\n return vjyh",
"def vjyh(YKHO, Z5wO, H96n):\n nvEb = YKHO.r... | [
"0.7991876",
"0.79876983",
"0.78063285",
"0.77551204",
"0.765086",
"0.7635146",
"0.76252127",
"0.7600753",
"0.75980383",
"0.75562763",
"0.7522815",
"0.7512785",
"0.75074536",
"0.74837524",
"0.74551153",
"0.7430381",
"0.7410408",
"0.7408825",
"0.7399719",
"0.73973733",
"0.7359... | 0.0 | -1 |
Get the heimdallr configuration file | def LgIG():
GPtr = enR0.ConfigParser(allow_no_value=True)
GPtr.read([Hy7s.path.abspath('heimdallr.conf'), '/etc/heimdallr.conf'])
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD():\n return OlaR",
"def _tYL(YKHO):\n return YKHO.configfile",
"def VCu8():\n try:\n mmls = Hy7s.environ['HYDROCLIMPYCONFIG']\n except KeyError:\n mmls = Hy7s.path.join(Hy7s.getcwd(), 'hydroclimpyrc')\n try:\n open(mmls)\n except IOError:\n ... | [
"0.74757516",
"0.7414241",
"0.73759407",
"0.7279136",
"0.7200699",
"0.7161222",
"0.709341",
"0.70623416",
"0.6907812",
"0.69031614",
"0.6869914",
"0.6865312",
"0.6858843",
"0.6834602",
"0.67822534",
"0.6780418",
"0.6767429",
"0.6767429",
"0.67673266",
"0.6764748",
"0.6748312"... | 0.7367057 | 3 |
Calculates score for the test chisquared statistic from X. Chisquared test is a statistical hypothesis test that is valid to perform when the test statistic is chisquared distributed under the null hypothesis | def eVVk(EcVT, LVAh):
if oyIN.any(EcVT < 0):
raise ValueError('Input X must be non-negative.')
LVAh = t8TF(LVAh)
gEVc = oyIN.dot(LVAh.T, EcVT)
xAGS = EcVT.sum(axis=0).reshape(1, -1)
g_jn = LVAh.mean(axis=0).reshape(1, -1)
aEqx = oyIN.dot(g_jn.T, xAGS)
return M8_y(gEVc, aEqx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NFSC(EcVT, LVAh):\n vuvg, fFbt = JEVk(EcVT, LVAh)\n return vuvg",
"def Nip0(bK54, ELWn, ldzC, DYC3, JfyU):\n bK54 = VEDo.array(bK54)\n ELWn = VEDo.array(ELWn)\n DYC3 = VEDo.array(DYC3)\n ES8r = VEDo.sum(((ELWn - JfyU(bK54, *ldzC)) / DYC3) ** 2)\n Fz_y = ES8r / (len(bK54) - len(ldzC))\n ... | [
"0.6730208",
"0.66196185",
"0.6575526",
"0.65295357",
"0.65165627",
"0.65011483",
"0.64595777",
"0.64200366",
"0.6381847",
"0.63812685",
"0.634804",
"0.633258",
"0.62419444",
"0.6236125",
"0.6236125",
"0.6225294",
"0.6206073",
"0.6205215",
"0.6191964",
"0.6188082",
"0.618012"... | 0.7222386 | 0 |
Return the ``k`` closest nodes from the given point. Euclidian distance is used here by default. | def ZywA(pNZh: GeoGraph, AU8u: Point, G1Hx: int, **B2fa) -> list:
Ziit = pNZh.get_nodes_as_point_series()
rIMi = oyIN.array([[XP5J.x, XP5J.y] for XP5J in Ziit.values])
_fDg = uSQr(rIMi)
bGrB, qwLd = _fDg.query(AU8u, G1Hx, **B2fa)
if G1Hx == 1:
return Ziit.index[qwLd]
return [Ziit.index[Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPYD(AU8u, nPrm, G1Hx, BMaT):\n nPrm = sorted(nPrm, key=lambda V52X: V52X.coords)\n nPrm = sorted(nPrm, key=lambda V52X: BMaT(AU8u, V52X))\n return nPrm[:G1Hx]",
"def nPYD(AU8u, nPrm, G1Hx, BMaT):\n LTIa = []\n while len(LTIa) < G1Hx:\n uYq_ = epAf.inf\n xclr = None\n for ... | [
"0.79905343",
"0.78447044",
"0.7741763",
"0.7716248",
"0.76566404",
"0.7540539",
"0.7483217",
"0.7481464",
"0.732648",
"0.7321217",
"0.7298355",
"0.72726125",
"0.72191066",
"0.7187221",
"0.7140642",
"0.71399665",
"0.71162534",
"0.70548344",
"0.7044176",
"0.70155317",
"0.70082... | 0.7740176 | 3 |
Returns an active user that matches the payload's user id and email. | def K2e4(YKHO, pB3N):
if not pB3N['email']:
raise Bx6I.AuthenticationFailed('잘못된 데이터입니다.')
try:
CBIr = mv1M.objects.get_by_natural_key(pB3N['email'])
except mv1M.DoesNotExist:
raise Bx6I.AuthenticationFailed('잘못된 서명입니다.')
if not CBIr.is_active:
raise Bx6I.AuthenticationFa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def atbI(YKHO, D3lj, Urat=False):\n CBIr = YKHO.users.find_one({'email': D3lj})\n if not CBIr:\n raise Exception('User not found')\n if Urat:\n return CBIr\n try:\n yo7_ = qcWV.utcnow().replace(tzinfo=CBIr['_created'].tzinfo)\n RA_F = (yo7_.date() - CBIr['_created'].date()).... | [
"0.7514698",
"0.7509388",
"0.74555194",
"0.73067236",
"0.7259212",
"0.724997",
"0.7193594",
"0.7171219",
"0.7168184",
"0.7165781",
"0.7133875",
"0.7112175",
"0.7111497",
"0.7110966",
"0.7091353",
"0.7082162",
"0.70603347",
"0.70511675",
"0.70511675",
"0.70511675",
"0.7023357"... | 0.7082929 | 15 |
Returns the index number of an object in lst. | def aQzf(yv6U, YEnM):
try:
return yv6U.index(YEnM)
except:
return str(YEnM) + ' is not in list.' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sLei(YEnM, hst7):\n for YRbF, G_be in enumerate(hst7):\n if G_be == YEnM:\n return YRbF\n raise ValueError(f\"'object' {YEnM} not in 'object_list'\")",
"def Vn7Z(ZfUD, d0Sw):\n YRbF = 0\n if ZfUD not in d0Sw:\n return None\n for YEnM in d0Sw:\n if YEnM == ZfUD:\... | [
"0.79383504",
"0.7820084",
"0.7276917",
"0.7259341",
"0.72253245",
"0.7190199",
"0.71364135",
"0.7089843",
"0.7037025",
"0.70066065",
"0.6998535",
"0.69858307",
"0.69858307",
"0.6954866",
"0.6947447",
"0.68847907",
"0.6800616",
"0.6794284",
"0.6785029",
"0.6783007",
"0.677232... | 0.757986 | 2 |
create_password should return a 10character password with no special characters by default. | def K9Wd(YKHO):
for YRbF in range(100):
Aofo = lycd.create_password()
YKHO.assertEqual(len(Aofo), 10)
YKHO.assertNotRegex(Aofo, YKHO.special_characters) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DH7l(Emd4, jTXt: str) -> str:\n return jf1V.hash(jTXt)",
"def DH7l(jTXt):\n return vT87(jTXt, method='sha256')",
"def W1Gp():\n return MgMi(8)",
"def BSw2(u54L=10, rmc3=False):\n return e7Tf(u54L, symbols=False)",
"def DH7l(zNig=8, hcXw=vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.dig... | [
"0.8034135",
"0.78854847",
"0.78465027",
"0.7755332",
"0.760359",
"0.7584651",
"0.75845855",
"0.750194",
"0.7468046",
"0.7351479",
"0.73512644",
"0.7347209",
"0.73026687",
"0.72731626",
"0.7249235",
"0.7223568",
"0.72038007",
"0.71737766",
"0.7164739",
"0.7155116",
"0.7103507... | 0.0 | -1 |
create_password should return a password of the given length with no special characters. | def rCKP(YKHO):
for YRbF in range(7, 65):
for r845 in range(100):
Aofo = lycd.create_password(YRbF)
YKHO.assertEqual(len(Aofo), YRbF)
YKHO.assertNotRegex(Aofo, YKHO.special_characters) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oomz(u54L):\n jTXt = ''\n for YRbF in range(u54L - 2):\n jTXt = jTXt + zKcl('abcdefghijklmnopqrstuvwxyz')\n Ko6S = zKcl('0123456789')\n jTXt = n74p(jTXt, Ko6S)\n o61b = zKcl('+-*/?!@#$%&')\n jTXt = n74p(jTXt, o61b)\n return jTXt",
"def BSw2(u54L=10, rmc3=False):\n return e7Tf(u... | [
"0.80803525",
"0.80294245",
"0.79401505",
"0.7913499",
"0.79008913",
"0.7888643",
"0.78637457",
"0.7854098",
"0.78474396",
"0.78213906",
"0.7809904",
"0.7806057",
"0.77659106",
"0.7721058",
"0.7716042",
"0.7692067",
"0.7630316",
"0.7628501",
"0.76156634",
"0.761486",
"0.75423... | 0.70632505 | 61 |
create_password shoud return a password of the given length with special characters at least once. | def sWK3(YKHO):
YpGy = False
for YRbF in range(7, 65):
for r845 in range(100):
Aofo = lycd.create_password(YRbF, True)
if YKHO.special_characters.search(Aofo):
YpGy = True
YKHO.assertEqual(len(Aofo), YRbF)
YKHO.assertTrue(YpGy)
YpGy = F... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oomz(u54L):\n jTXt = ''\n for YRbF in range(u54L - 2):\n jTXt = jTXt + zKcl('abcdefghijklmnopqrstuvwxyz')\n Ko6S = zKcl('0123456789')\n jTXt = n74p(jTXt, Ko6S)\n o61b = zKcl('+-*/?!@#$%&')\n jTXt = n74p(jTXt, o61b)\n return jTXt",
"def BSw2(u54L=10, rmc3=False):\n return e7Tf(u... | [
"0.80134195",
"0.801018",
"0.79355514",
"0.7918257",
"0.791598",
"0.79028475",
"0.78619504",
"0.7859849",
"0.78471196",
"0.7799816",
"0.77814746",
"0.7745627",
"0.7730782",
"0.772028",
"0.76636934",
"0.76418275",
"0.7609999",
"0.76088136",
"0.75908464",
"0.7590548",
"0.756834... | 0.0 | -1 |