<commit_before>#!/bin/bash
set -eo pipefail

if [[ -z "${ABI}" ]]; then
    ABI_WARNING="WARNING: No ABI default set.  Falling back to compatibility mode with GCC 4."
    export ABI=4
fi

uid=`id --user`
gid=`id --group`

sudo chown $uid:$gid /opt/miniconda/ -R

# Setup home environment

export PATH=/usr/local/bin:/opt/miniconda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib:/opt/miniconda/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=/usr/local/lib64:/usr/local/lib:/opt/miniconda/lib:$LIBRARY_PATH
export INCLUDE=/opt/miniconda/include:$INCLUDE
export CXXFLAGS="${CXXFLAGS} -Wabi=2"

if [ $ABI -lt 5 ]; then
    export CXXFLAGS="${CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0"
else
    export CXXFLAGS="${CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=1"
fi


if [[ "$ARCH" -eq "64" || -z "$ARCH" ]]; then
    ARCH_DOC=$'To build 32-bit code, set the ARCH environment
        variable to 32. (-e \"ARCH=32\" docker argument)'
else
    ARCH_DOC=$'Pretending to be i686 (using multilib gcc) and
        filtering uname to output i686.'
    export CFLAGS="${CFLAGS} -m32"
    export CXXFLAGS="${CXXFLAGS} -m32"
    export CONDA_FORCE_32BIT=1
    # this will get picked up by subshells<commit_msg>create user/group if not exists<commit_after>#!/bin/bash
set -eo pipefail

if [[ -z "${ABI}" ]]; then
    ABI_WARNING="WARNING: No ABI default set.  Falling back to compatibility mode with GCC 4."
    export ABI=4
fi

uid=`id --user`
gid=`id --group`

getent group $gid | groupadd $gid
id -u $uid &>/dev/null || useradd -u $uid -g $gid -m bioconda

sudo chown $uid:$gid /opt/miniconda/ -R

# Setup home environment

export PATH=/usr/local/bin:/opt/miniconda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib:/opt/miniconda/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=/usr/local/lib64:/usr/local/lib:/opt/miniconda/lib:$LIBRARY_PATH
export INCLUDE=/opt/miniconda/include:$INCLUDE
export CXXFLAGS="${CXXFLAGS} -Wabi=2"

if [ $ABI -lt 5 ]; then
    export CXXFLAGS="${CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0"
else
    export CXXFLAGS="${CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=1"
fi


if [[ "$ARCH" -eq "64" || -z "$ARCH" ]]; then
    ARCH_DOC=$'To build 32-bit code, set the ARCH environment
        variable to 32. (-e \"ARCH=32\" docker argument)'
else
    ARCH_DOC=$'Pretending to be i686 (using multilib gcc) and
        filtering uname to output i686.'
    export CFLAGS="${CFLAGS} -m32"
    export CXXFLAGS="${CXXFLAGS} -m32"
    export CONDA_FORCE_32BIT=1
    # this will get picked up by subshells
{'fraction_non_alphanumeric': 0.1444577831132453, 'fraction_numerical': 0.028011204481792718, 'mean_word_length': 3.911591355599214, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6699522', 'n_tokens_mistral': 1053, 'n_tokens_neox': 917, 'n_words': 241}