<commit_before>#!/bin/bash
# start debugging/tracing commands, -e - exit if command returns error (non-zero status)
set -e

if [ -z ${TMPDIR} ]; then # codeship doesnt seem to set this
  TMPDIR="/tmp"
fi

function logSauceCommands {
 SAUCELABS_LOG_FILE="${TMPDIR}sc.log"
 if [ -f {$SAUCELABS_LOG_FILE} ]; then
  echo "Command failed - dumping {$SAUCELABS_LOG_FILE} for debug of saucelabs"
  cat {$SAUCELABS_LOG_FILE}
 else
   echo "Command failed - attempting to dump saucelabs log file but $SAUCELABS_LOG_FILE not found - did we reach the saucelabs section?"
 fi
}

if [ -z $CI_BRANCH ]; then
  branch=$(git rev-parse --abbrev-ref HEAD)
else
  branch=$CI_BRANCH
fi<commit_msg>tmp file location not right for saucelabs log file on codeship<commit_after>#!/bin/bash
# start debugging/tracing commands, -e - exit if command returns error (non-zero status)
set -e

if [ -z ${TMPDIR} ]; then # codeship doesnt seem to set this
  TMPDIR="/tmp/"
fi

function logSauceCommands {
 SAUCELABS_LOG_FILE="${TMPDIR}sc.log"
 if [ -f {$SAUCELABS_LOG_FILE} ]; then
  echo "Command failed - dumping {$SAUCELABS_LOG_FILE} for debug of saucelabs"
  cat {$SAUCELABS_LOG_FILE}
 else
   echo "Command failed - attempting to dump saucelabs log file but $SAUCELABS_LOG_FILE not found - did we reach the saucelabs section?"
 fi
}

if [ -z $CI_BRANCH ]; then
  branch=$(git rev-parse --abbrev-ref HEAD)
else
  branch=$CI_BRANCH
fi
{'fraction_non_alphanumeric': 0.10612535612535613, 'fraction_numerical': 0.0, 'mean_word_length': 4.242537313432836, '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': '319575', 'n_tokens_mistral': 510, 'n_tokens_neox': 508, 'n_words': 161}