<commit_before>#!/usr/bin/env bash

if [ -z ${TASK} ]; then
  echo "No task provided"
  exit 2
fi

if [ ${TASK} == "flake8" ]; then
  make flake8
elif [ ${TASK} == "pylint" ]; then
  make pylint
elif [ ${TASK} == "configs-check" ]; then
  make configs-check
elif [ ${TASK} == "metadata-check" ]; then
  make metadata-check
elif [ ${TASK} == "packs-resource-register" ]; then
  make packs-resource-register
elif [ ${TASK} == "packs-tests" ]; then
  make packs-tests
else
  echo "Invalid task: ${TASK}"
  exit 2
fi

exit $?<commit_msg>When running on Travis on master branch make sure we run checks on all the packs / files, not only on changed ones.<commit_after>#!/usr/bin/env bash

GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)

if [ -z ${TASK} ]; then
  echo "No task provided"
  exit 2
fi

# When running on master branch we want to run checks on all the files / packs
# not only on changes ones.
if [ "${GIT_BRANCH}" = "master" ]; then
    export FORCE_CHECK_ALL_FILES=true
fi

if [ ${TASK} == "flake8" ]; then
  make flake8
elif [ ${TASK} == "pylint" ]; then
  make pylint
elif [ ${TASK} == "configs-check" ]; then
  make configs-check
elif [ ${TASK} == "metadata-check" ]; then
  make metadata-check
elif [ ${TASK} == "packs-resource-register" ]; then
  make packs-resource-register
elif [ ${TASK} == "packs-tests" ]; then
  make packs-tests
else
  echo "Invalid task: ${TASK}"
  exit 2
fi

exit $?
{'fraction_non_alphanumeric': 0.15455840455840456, 'fraction_numerical': 0.005698005698005698, 'mean_word_length': 3.6217105263157894, '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': '1729886', 'n_tokens_mistral': 521, 'n_tokens_neox': 502, 'n_words': 168}