<commit_before>#!/bin/sh

if test -f /etc/buildslave; then
	. /etc/buildslave
fi

case "$BB_NAME" in
FreeBSD*)
	MAKE=gmake
	NCPU=$(sysctl -n hw.ncpu)
	;;
Amazon*|CentOS*|Debian*|Fedora*|RHEL*|SUSE*|Ubuntu*)
	MAKE=make
	NCPU=$(nproc)
	;;
*)
	echo "Unknown BB_NAME: $BB_NAME"
	exit 1
	;;
esac

LINUX_OPTIONS=${LINUX_OPTIONS:-""}
CONFIG_OPTIONS=${CONFIG_OPTIONS:-""}
MAKE_OPTIONS=${MAKE_OPTIONS:-"-j$NCPU"}
MAKE_TARGETS_KMOD=${MAKE_TARGETS_KMOD:-"pkg-kmod pkg-utils"}
MAKE_TARGETS_DKMS=${MAKE_TARGETS_DKMS:-"pkg-dkms pkg-utils"}
INSTALL_METHOD=${INSTALL_METHOD:-"none"}

CONFIG_LOG="configure.log"
MAKE_LOG="make.log"
INSTALL_LOG="install.log"

# Expect a custom Linux build in the ../linux/ directory.
if [ "$LINUX_CUSTOM" = "yes" ]; then
	LINUX_DIR=$(readlink -f ../linux)
	LINUX_OPTIONS="$LINUX_OPTIONS --with-linux=$LINUX_DIR " \
	    "--with-linux-obj=$LINUX_DIR"
fi

set -x

sh ./autogen.sh >>$CONFIG_LOG 2>&1 || exit 1
<commit_msg>Default to Linux build in bb-build.sh<commit_after>#!/bin/sh

if test -f /etc/buildslave; then
	. /etc/buildslave
fi

case "$BB_NAME" in
FreeBSD*)
	MAKE=gmake
	NCPU=$(sysctl -n hw.ncpu)
	;;
Amazon*|CentOS*|Debian*|Fedora*|RHEL*|SUSE*|Ubuntu*)
	MAKE=make
	NCPU=$(nproc)
	;;
*)
	echo "Unknown BB_NAME, assuming Linux"
	MAKE=make
	NCPU=$(nproc)
	;;
esac

LINUX_OPTIONS=${LINUX_OPTIONS:-""}
CONFIG_OPTIONS=${CONFIG_OPTIONS:-""}
MAKE_OPTIONS=${MAKE_OPTIONS:-"-j$NCPU"}
MAKE_TARGETS_KMOD=${MAKE_TARGETS_KMOD:-"pkg-kmod pkg-utils"}
MAKE_TARGETS_DKMS=${MAKE_TARGETS_DKMS:-"pkg-dkms pkg-utils"}
INSTALL_METHOD=${INSTALL_METHOD:-"none"}

CONFIG_LOG="configure.log"
MAKE_LOG="make.log"
INSTALL_LOG="install.log"

# Expect a custom Linux build in the ../linux/ directory.
if [ "$LINUX_CUSTOM" = "yes" ]; then
	LINUX_DIR=$(readlink -f ../linux)
	LINUX_OPTIONS="$LINUX_OPTIONS --with-linux=$LINUX_DIR " \
	    "--with-linux-obj=$LINUX_DIR"
fi

set -x

sh ./autogen.sh >>$CONFIG_LOG 2>&1 || exit 1

{'fraction_non_alphanumeric': 0.18561001042752867, 'fraction_numerical': 0.0036496350364963502, 'mean_word_length': 5.354304635761589, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5244539', 'n_tokens_mistral': 860, 'n_tokens_neox': 794, 'n_words': 136}