<commit_before>#!/bin/sh
echo "Installing... Be aware of your current python environment"
git submodule init
git submodule update
cd search/pybinds/
cmake ./
make
cd ../../
source setup.bash
cd tests/
./run_tests.sh
cd ../<commit_msg>Added logic for cmake as cmake or cmake3<commit_after>#!/bin/sh
echo "Installing... Be aware of your current python environment"
git submodule init
git submodule update
cd search/pybinds/

# Check for cmake version 3 under "cmake" and "cmake3"
if hash cmake 2>/dev/null; then
    cmake ./
elif hash cmake3 2>/dev/null; then
    cmake3 ./
else
    echo >&2 "Cannot find cmake. Aborting..."
    exit 1
fi
make
cd ../../
source setup.bash
cd tests/
./run_tests.sh
cd ../
{'fraction_non_alphanumeric': 0.11840228245363767, 'fraction_numerical': 0.012838801711840228, 'mean_word_length': 3.1052631578947367, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '1937167', 'n_tokens_mistral': 246, 'n_tokens_neox': 232, 'n_words': 92}