<commit_before>#! /bin/bash
. $INCLUDEOS_SRC/etc/set_traps.sh

# Paths
export INCLUDEOS_SRC=${INCLUDEOS_SRC:-~/IncludeOS}
export BUILD_DIR=${BUILD_DIR:-~/IncludeOS_build}	# Where the libs are built
export TEMP_INSTALL_DIR=${TEMP_INSTALL_DIR:-$BUILD_DIR/IncludeOS_TEMP_install}	# Libs are installed
export PATH="$TEMP_INSTALL_DIR/bin:$PATH"

# Build options
export ARCH=${ARCH:-i686} # CPU architecture. Alternatively x86_64
export BUNDLE_ARCHES=${BUNDLE_ARCHES:-x86_64}
export TARGET=$ARCH-elf	# Configure target based on arch. Always ELF.
export num_jobs=${num_jobs:--j}	# Specify number of build jobs

# Version numbers
export binutils_version=${binutils_version:-2.29.1}		# ftp://ftp.gnu.org/gnu/binutils
export newlib_version=${newlib_version:-2.5.0.20170922}			# ftp://sourceware.org/pub/newlib
#export newlib_version=${newlib_version:-2.5.0}			# ftp://sourceware.org/pub/newlib
export gcc_version=${gcc_version:-7.2.0}				# ftp://ftp.nluug.nl/mirror/languages/gcc/releases/
export clang_version=${clang_version:-4.0}				# http://releases.llvm.org/
export llvm_branch=${llvm_branch:-release_50}

# Options to skip steps
[ ! -v do_binutils ] && do_binutils=1
[ ! -v do_gcc ] && do_gcc=1
[ ! -v do_newlib ] && do_newlib=1
[ ! -v do_includeos ] &&  do_includeos=1
[ ! -v do_llvm ] &&  do_llvm=1
[ ! -v do_bridge ] &&  do_bridge=1

############################################################
# COMMAND LINE PROPERTIES:
############################################################

# Initialize variables:
install_yes=0

while getopts "h?y" opt; do
    case "$opt" in
    h|\?)
        printf "%s\n" "Options:"\
                "-y Yes: answer yes to install"\
        exit 0
        ;;
    y)  install_yes=1<commit_msg>bundle: build both arches by default<commit_after>#! /bin/bash
. $INCLUDEOS_SRC/etc/set_traps.sh

# Paths
export INCLUDEOS_SRC=${INCLUDEOS_SRC:-~/IncludeOS}
export BUILD_DIR=${BUILD_DIR:-~/IncludeOS_build}	# Where the libs are built
export TEMP_INSTALL_DIR=${TEMP_INSTALL_DIR:-$BUILD_DIR/IncludeOS_TEMP_install}	# Libs are installed
export PATH="$TEMP_INSTALL_DIR/bin:$PATH"

# Build options
export ARCH=${ARCH:-i686} # CPU architecture. Alternatively x86_64
export BUNDLE_ARCHES=${BUNDLE_ARCHES:-"i686 x86_64"}
export TARGET=$ARCH-elf	# Configure target based on arch. Always ELF.
export num_jobs=${num_jobs:--j}	# Specify number of build jobs

# Version numbers
export binutils_version=${binutils_version:-2.29.1}		# ftp://ftp.gnu.org/gnu/binutils
export newlib_version=${newlib_version:-2.5.0.20170922}			# ftp://sourceware.org/pub/newlib
export gcc_version=${gcc_version:-7.2.0}				# ftp://ftp.nluug.nl/mirror/languages/gcc/releases/
export clang_version=${clang_version:-4.0}				# http://releases.llvm.org/
export llvm_branch=${llvm_branch:-release_50}

# Options to skip steps
[ ! -v do_binutils ] && do_binutils=1
[ ! -v do_gcc ] && do_gcc=1
[ ! -v do_newlib ] && do_newlib=1
[ ! -v do_includeos ] &&  do_includeos=1
[ ! -v do_llvm ] &&  do_llvm=1
[ ! -v do_bridge ] &&  do_bridge=1

############################################################
# COMMAND LINE PROPERTIES:
############################################################

# Initialize variables:
install_yes=0

while getopts "h?y" opt; do
    case "$opt" in
    h|\?)
        printf "%s\n" "Options:"\
                "-y Yes: answer yes to install"\
        exit 0
        ;;
    y)  install_yes=1
{'fraction_non_alphanumeric': 0.20808736717827628, 'fraction_numerical': 0.026564344746162927, 'mean_word_length': 4.528548123980424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5802293', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1193, 'n_words': 232}