<commit_before>#! /bin/bash

echo
echo "=== Print JRE version"
java -version

echo
echo "=== Print JDK version"
javac -version

echo
echo "=== Print Maven version"
mvn --version

echo
echo "=== Print Ant version"
ant -version

echo
echo "=== Print Saxon version"
java -cp "${SAXON_JAR}" net.sf.saxon.Version

echo
echo "=== Check XML Calabash"
java -cp "${XMLCALABASH_JAR}:${SAXON_JAR}" com.xmlcalabash.drivers.Main 2> /dev/null

echo
echo "=== Print XML Resolver version"
java -cp "${XML_RESOLVER_JAR}" org.apache.xml.resolver.Version

echo
echo "=== Check BaseX"
java -cp "${BASEX_JAR}" org.basex.BaseX -h

echo
echo "=== Check BaseX server start and stop"
basex_home=$(dirname -- "${BASEX_JAR}")
"${basex_home}/bin/basexhttp" -S
"${basex_home}/bin/basexhttpstop"

echo
echo "=== Print Bats version"
bats --version

echo
echo "=== Print locale"
locale

echo
echo "=== Print environment variables"
printenv<commit_msg>ci: print the number of logical processors on *nix (#1153)<commit_after>#! /bin/bash

echo
echo "=== Print JRE version"
java -version

echo
echo "=== Print JDK version"
javac -version

echo
echo "=== Print Maven version"
mvn --version

echo
echo "=== Print Ant version"
ant -version

echo
echo "=== Print Saxon version"
java -cp "${SAXON_JAR}" net.sf.saxon.Version

echo
echo "=== Check XML Calabash"
java -cp "${XMLCALABASH_JAR}:${SAXON_JAR}" com.xmlcalabash.drivers.Main 2> /dev/null

echo
echo "=== Print XML Resolver version"
java -cp "${XML_RESOLVER_JAR}" org.apache.xml.resolver.Version

echo
echo "=== Check BaseX"
java -cp "${BASEX_JAR}" org.basex.BaseX -h

echo
echo "=== Check BaseX server start and stop"
basex_home=$(dirname -- "${BASEX_JAR}")
"${basex_home}/bin/basexhttp" -S
"${basex_home}/bin/basexhttpstop"

echo
echo "=== Print Bats version"
bats --version

echo
echo "=== Print locale"
locale

echo
echo "=== Print the number of logical processors"
if command -v nproc > /dev/null 2>&1; then
    # Linux
    echo "$(nproc) / $(nproc --all)"
else
    # macOS
    echo "$(sysctl -n hw.logicalcpu) / $(sysctl -n hw.logicalcpu_max)"
fi

echo
echo "=== Print environment variables"
printenv
{'fraction_non_alphanumeric': 0.15598491988689916, 'fraction_numerical': 0.003770028275212064, 'mean_word_length': 4.415816326530612, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1316984', 'n_tokens_mistral': 788, 'n_tokens_neox': 769, 'n_words': 238}