<commit_before>#!/bin/bash
set -eu -o pipefail

if [[ -e .env ]]; then
  # shellcheck disable=SC1091
  . .env
fi

if [[ -z "${MYSQL_ROOT_PASSWORD:-}" || -z "${MYSQL_USER:-}" || -z "${MYSQL_PASSWORD:-}" || -z "${MYSQL_DATABASE:-}" ]]; then
  echo "Required environment variable not defined."
  exit 1
fi

if [[ $(command -v docker-compose) ]]; then
  docker-compose "$@"
else
  docker compose "$@"
fi<commit_msg>Change configuration file to required<commit_after>#!/bin/bash
set -eu -o pipefail

if [[ ! -e .env ]]; then
  echo 'Environment file .env not found.'
  exit 1
fi
# shellcheck disable=SC1091
. .env

if [[ -z "${MYSQL_ROOT_PASSWORD:-}" || -z "${MYSQL_USER:-}" || -z "${MYSQL_PASSWORD:-}" || -z "${MYSQL_DATABASE:-}" ]]; then
  echo "Required environment variable not defined."
  exit 1
fi

if [[ $(command -v docker-compose) ]]; then
  docker-compose "$@"
else
  docker compose "$@"
fi
{'fraction_non_alphanumeric': 0.19553072625698323, 'fraction_numerical': 0.012290502793296089, 'mean_word_length': 3.618556701030928, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '499002', 'n_tokens_mistral': 344, 'n_tokens_neox': 328, 'n_words': 95}