<commit_before>#!/bin/bash
set -o pipefail
IFS=$'\n\t'

# DOCKER_SOCKET = Openshift's exposed socket
# TAG = Docker tag suffix. Consumed in Makefile
# SOURCE_REPOSITORY = URL of the source code repo
# SOURCE_REF = Commit/tag ref to build
# BUILD_ROOT = Folder to build in
# HTTP_REPO_BASIC = username:password for git user

DOCKER_SOCKET=/var/run/docker.sock

if [ ! -e "${DOCKER_SOCKET}" ]; then
  echo "Docker socket missing at ${DOCKER_SOCKET}"
  exit 1
fi

if [ -n "${OUTPUT_IMAGE}" ]; then
	DOCKER_URI="${OUTPUT_REGISTRY}/${OUTPUT_IMAGE}"
else
  echo "No output image specified"
  exit 1
fi
export DOCKER_URI="${DOCKER_URI}"
<commit_msg>Added sys info print at beginning of the build<commit_after>#!/bin/bash
set -o pipefail
IFS=$'\n\t'

# DOCKER_SOCKET = Openshift's exposed socket
# TAG = Docker tag suffix. Consumed in Makefile
# SOURCE_REPOSITORY = URL of the source code repo
# SOURCE_REF = Commit/tag ref to build
# BUILD_ROOT = Folder to build in

DOCKER_SOCKET=/var/run/docker.sock

if [ ! -e "${DOCKER_SOCKET}" ]; then
  echo "Docker socket missing at ${DOCKER_SOCKET}"
  exit 1
fi

if [ -n "${OUTPUT_IMAGE}" ]; then
	DOCKER_URI="${OUTPUT_REGISTRY}/${OUTPUT_IMAGE}"
else
  echo "No output image specified"
  exit 1
fi
export DOCKER_URI="${DOCKER_URI}"

cat <<EOSTATUS
#
# Building Docker image
# *******************************************************************
System:
  docker -> $(docker -v)
  java   -> $(java -version 2>&1|head -1)
  javac  -> $(javac -version 2>&1|head -1)
  maven  -> $(mvn -v|head -1)
  node   -> $(node -v)
  npm    -> $(npm -v)
EOSTATUS

{'fraction_non_alphanumeric': 0.17088607594936708, 'fraction_numerical': 0.006962025316455696, 'mean_word_length': 4.217821782178218, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6824067', 'n_tokens_mistral': 600, 'n_tokens_neox': 566, 'n_words': 169}