<commit_before>#!/usr/bin/env bash

# Create a symbolic link to the project.
if [ ! -L retools ]; then
    ln -s /vagrant retools
fi

# Install dependencies.
apt-get update
apt-get install build-essential git cmake python-setuptools \
    python-dev libboost-python-dev libglib2.0-dev pkg-config \
    llvm clang python-pyparsing -y

# Create a temporary directory.
DEPS_DIR=$(mktemp -d)

# Change to the temporary directory.
pushd $DEPS_DIR

if [ ! -f /usr/lib/libcapstone.a ]; then
    echo "Could not find Capstone Engine, installing it from sources."
    # Install capstone + python bindings.
    git clone https://github.com/aquynh/capstone.git
    pushd capstone
        CAPSTONE_ARCHS=arm ./make.sh
        sudo ./make.sh install
        pushd bindings/python
            make
            sudo make install
        popd
    popd
fi

if [ ! -f /usr/lib/libunicorn.a ]; then
    echo "Could not find Unicorn Engine, installing it from sources."
    # Install unicorn + python bindings.
    git clone https://github.com/unicorn-engine/unicorn.git
    pushd unicorn
        UNICORN_ARCHS=arm UNICORN_DEBUG=true ./make.sh
        sudo ./make.sh install
        pushd bindings/python
            make
            sudo make install
        popd
    popd
fi<commit_msg>Uses correct environment variable to compile unicorn with debugging symbol<commit_after>#!/usr/bin/env bash

# Create a symbolic link to the project.
if [ ! -L retools ]; then
    ln -s /vagrant retools
fi

# Install dependencies.
apt-get update
apt-get install build-essential git cmake python-setuptools \
    python-dev libboost-python-dev libglib2.0-dev pkg-config \
    llvm clang python-pyparsing -y

# Create a temporary directory.
DEPS_DIR=$(mktemp -d)

# Change to the temporary directory.
pushd $DEPS_DIR

if [ ! -f /usr/lib/libcapstone.a ]; then
    echo "Could not find Capstone Engine, installing it from sources."
    # Install capstone + python bindings.
    git clone https://github.com/aquynh/capstone.git
    pushd capstone
        CAPSTONE_ARCHS=arm ./make.sh
        sudo ./make.sh install
        pushd bindings/python
            make
            sudo make install
        popd
    popd
fi

if [ ! -f /usr/lib/libunicorn.a ]; then
    echo "Could not find Unicorn Engine, installing it from sources."
    # Install unicorn + python bindings.
    git clone https://github.com/unicorn-engine/unicorn.git
    pushd unicorn
        MACOS_UNIVERSAL=yes UNICORN_ARCHS=arm UNICORN_DEBUG=yes ./make.sh
        sudo ./make.sh install
        pushd bindings/python
            make
            sudo make install
        popd
    popd
fi
{'fraction_non_alphanumeric': 0.08218654434250765, 'fraction_numerical': 0.0015290519877675841, 'mean_word_length': 2.411994784876141, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1295429', 'n_tokens_mistral': 849, 'n_tokens_neox': 800, 'n_words': 257}