<commit_before>if [ "$#" -ne 1 ]; then
    echo "Usage: $0 <install-environment-dir>"
    exit 1;
fi

# Start in the same directory as this script.
cd `dirname $0`

export PREFIX="$1"
export PYTHON="${PREFIX}/bin/python"
export CPU_COUNT=`python -c "import multiprocessing; print multiprocessing.cpu_count()"`
export PATH="${PREFIX}/bin":$PATH

# Install gcc first if necessary.
if [ ! -e "${PREFIX}/bin/gcc" ]; then
    conda install -p "${PREFIX}" -c flyem gcc
fi

# Do you already have curl?
curl --help > /dev/null
if [[ $? == 0 ]]; then
    CURL=curl
else
    # Install to conda prefix
    conda install -p "${PREFIX}" curl
    CURL="${PREFIX}/bin/curl"
fi

# Run the build script from the recipe.
# (It uses $PREFIX and $PYTHON and $CPU_COUNT)
bash "${FLYEM_RECIPES_DIR}/neuroproof/build.sh"

BUILD_SCRIPT_URL=https://raw.githubusercontent.com/janelia-flyem/flyem-build-conda/master/neuroproof/build.sh
"$CURL" "$BUILD_SCRIPT_URL" | bash<commit_msg>compile_against_conda.sh: Don't run make, only cmake.<commit_after>if [ "$#" -ne 1 ]; then
    echo "Usage: $0 <install-environment-dir>"
    exit 1;
fi

# Start in the same directory as this script.
cd `dirname $0`

export PREFIX="$1"
export PYTHON="${PREFIX}/bin/python"
export CPU_COUNT=`python -c "import multiprocessing; print multiprocessing.cpu_count()"`
export PATH="${PREFIX}/bin":$PATH

# Install gcc first if necessary.
if [ ! -e "${PREFIX}/bin/gcc" ]; then
    conda install -p "${PREFIX}" -c flyem gcc
fi

# Do you already have curl?
curl --help > /dev/null
if [[ $? == 0 ]]; then
    CURL=curl
else
    # Install to conda prefix
    conda install -p "${PREFIX}" curl
    CURL="${PREFIX}/bin/curl"
fi

# Run the build script from the recipe.
# (It uses $PREFIX and $PYTHON and $CPU_COUNT)
bash "${FLYEM_RECIPES_DIR}/neuroproof/build.sh"

BUILD_SCRIPT_URL=https://raw.githubusercontent.com/janelia-flyem/flyem-build-conda/master/neuroproof/build.sh
"$CURL" "$BUILD_SCRIPT_URL" | bash -x -e -s - --configure-only
{'fraction_non_alphanumeric': 0.15470171890798787, 'fraction_numerical': 0.006066734074823054, 'mean_word_length': 4.048469387755102, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '7523379', 'n_tokens_mistral': 734, 'n_tokens_neox': 695, 'n_words': 200}