<commit_before>#!/usr/bin/bash

# Script to be run with liefproject/manylinux2014-aarch64. Example with Python 3.9:
# ==============================================================================================
# docker run \
#  -e CCACHE_DIR=/ccache \
#  -e PYTHON_BINARY=/opt/python/cp39-cp39/bin/python3.9 \
#  -v $LIEF_SRC:/work \
#  -v $HOME/.ccache:/ccache \
#  --rm liefproject/manylinux2014-aarch64 bash /work/scripts/docker/manylinux2014-aarch64.sh
# ==============================================================================================
# --lief-no-elf --lief-no-android --lief-no-macho --lief-no-json --lief-no-logging \
#
set -ex

export CXXFLAGS='-ffunction-sections -fdata-sections -fvisibility-inlines-hidden -static-libstdc++ -static-libgcc'
export CFLAGS='-ffunction-sections -fdata-sections -static-libstdc++ -static-libgcc'
export LDFLAGS='-Wl,--gc-sections -Wl,--exclude-libs,ALL'
LIEF_PY_XARCH='aarch64'
$PYTHON_BINARY setup.py --ninja \
  build -t /tmp bdist_wheel --skip-build \
  --plat-name "manylinux2014-aarch64"

chown -R 1000:1000 /work/dist
chown -R 1000:1000 /work/build<commit_msg>Fix new line<commit_after>#!/usr/bin/bash

# Script to be run with liefproject/manylinux2014-aarch64. Example with Python 3.9:
# ==============================================================================================
# docker run \
#  -e CCACHE_DIR=/ccache \
#  -e PYTHON_BINARY=/opt/python/cp39-cp39/bin/python3.9 \
#  -v $LIEF_SRC:/work \
#  -v $HOME/.ccache:/ccache \
#  --rm liefproject/manylinux2014-aarch64 bash /work/scripts/docker/manylinux2014-aarch64.sh
# ==============================================================================================
# --lief-no-elf --lief-no-android --lief-no-macho --lief-no-json --lief-no-logging \
#
set -ex

export CXXFLAGS='-ffunction-sections -fdata-sections -fvisibility-inlines-hidden -static-libstdc++ -static-libgcc'
export CFLAGS='-ffunction-sections -fdata-sections -static-libstdc++ -static-libgcc'
export LDFLAGS='-Wl,--gc-sections -Wl,--exclude-libs,ALL'
LIEF_PY_XARCH='aarch64' \
$PYTHON_BINARY setup.py --ninja \
  build -t /tmp bdist_wheel --skip-build \
  --plat-name "manylinux2014-aarch64"

chown -R 1000:1000 /work/dist
chown -R 1000:1000 /work/build
{'fraction_non_alphanumeric': 0.30485091232754785, 'fraction_numerical': 0.04450378282153983, 'mean_word_length': 4.443099273607748, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6069329', 'n_tokens_mistral': 886, 'n_tokens_neox': 769, 'n_words': 131}