<commit_before>#!/bin/sh

#
# file: buildAllConfigurations.sh
#
# author: Copyright (C) 2016-2018 <NAME> http://www.distortec.com http://www.freddiechopin.info
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
# distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

set -e
set -u

basedir="$(dirname "${0}")"

"${basedir}/forAllConfigurations.sh" "make -j$(nproc) VERBOSE=1" "${@}"

if command -v tup >/dev/null 2>&1; then
	"${basedir}/forAllConfigurations.sh" 'tup --verbose' "${@}"
fi

if command -v cmake >/dev/null 2>&1; then
	"${basedir}/forAllConfigurations.sh" \
			"mkdir output && cd output &&
			cmake .. -DCMAKE_TOOLCHAIN_FILE=${basedir}/../cmake/Toolchain-arm-none-eabi.cmake &&
			make -j$(nproc) VERBOSE=1 && cd -" \
			"${@}"
fi<commit_msg>Use CMake as the first tool in buildAllConfigurations.sh<commit_after>#!/bin/sh

#
# file: buildAllConfigurations.sh
#
# author: Copyright (C) 2016-2018 <NAME> http://www.distortec.com http://www.freddiechopin.info
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
# distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

set -e
set -u

basedir="$(dirname "${0}")"

if command -v cmake >/dev/null 2>&1; then
	"${basedir}/forAllConfigurations.sh" \
			"mkdir output && cd output &&
			cmake .. -DCMAKE_TOOLCHAIN_FILE=${basedir}/../cmake/Toolchain-arm-none-eabi.cmake &&
			make -j$(nproc) VERBOSE=1 && cd -" \
			"${@}"
fi

"${basedir}/forAllConfigurations.sh" "make -j$(nproc) VERBOSE=1" "${@}"

if command -v tup >/dev/null 2>&1; then
	"${basedir}/forAllConfigurations.sh" 'tup --verbose' "${@}"
fi
{'fraction_non_alphanumeric': 0.18166189111747852, 'fraction_numerical': 0.02177650429799427, 'mean_word_length': 3.7835616438356166, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '648932', 'n_tokens_mistral': 704, 'n_tokens_neox': 651, 'n_words': 174}