This commit is contained in:
Jean-Marie Mineau 2024-11-19 22:37:45 +01:00
parent 194f1cb178
commit e51f8e57a9
2 changed files with 7 additions and 2 deletions

View file

@ -43,7 +43,12 @@ def get_methods(sm: str, sha256: str = "") -> dict[str, list[list[str]]]:
rest[current_meth].append(current_body)
current_body = []
current_meth = None
if current_meth is not None and striped and not striped.startswith(".line "):
if (
current_meth is not None
and striped
and not striped.startswith(".line ")
and not striped.startswith(".param ")
):
current_body.append(striped)
if striped.startswith(".method "):
if current_meth is not None:

View file

@ -51,7 +51,7 @@ sqlite3 ${DB} 'SELECT sha256 FROM data WHERE nb_def_platform_32_classes >= 1 OR
N_CHUNK=$(python3 -c "print($(cat ${LIST} | wc -l)//20 + 1)")
rm -r "${CHUNK_FOLDER}"
mkdir "${CHUNK_FOLDER}"
split -a 2 -d -l "${N_CHUNK}" "${LIST}" "${CHUNK_FOLDER}"
split -a 2 -d -l "${N_CHUNK}" "${LIST}" "${CHUNK_FOLDER}/"
worker () {
for sha in $(cat "${1}"); do