<commit_before>#!/bin/bash
# set -ev
hyphenToTitleCase() { 
    tr '-' '\n' | awk '{printf "%s%s", toupper(substr($0,0,1)), substr($0,2)}';
}
files=$(git show --pretty="format:" --name-only);

# check if numbers of files is 2
modified_files=$(echo $files | wc -w | sed -e 's/^ *//' -e 's/ *$//' ); #trim it
echo "- Commit contains $modified_files file(s)";
if [[ $modified_files -ne "2" ]]; then
  echo "More than 2 files in the PR.";
  exit 1;
fi

# split by space
post=$(echo $files | cut -f1 -d\ );
echo "- Post path: $post";
screenshot=$(echo $files | cut -f2 -d\ );
echo "- Screenshot path: $screenshot";<commit_msg>Modified how to get file names.<commit_after>#!/bin/bash
# set -ev
hyphenToTitleCase() { 
    tr '-' '\n' | awk '{printf "%s%s", toupper(substr($0,0,1)), substr($0,2)}';
}
files=$(git show --name-only | tail -2);

# check if numbers of files is 2
modified_files=$(echo $files | wc -w | sed -e 's/^ *//' -e 's/ *$//' ); #trim it
echo "- Commit contains $modified_files file(s)";
if [[ $modified_files -ne "2" ]]; then
  echo "More than 2 files in the PR.";
  exit 1;
fi

# split by space
post=$(echo $files | cut -f1 -d\ );
echo "- Post path: $post";
screenshot=$(echo $files | cut -f2 -d\ );
echo "- Screenshot path: $screenshot";
{'fraction_non_alphanumeric': 0.21662669864108713, 'fraction_numerical': 0.01838529176658673, 'mean_word_length': 3.4714285714285715, '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': '7417286', 'n_tokens_mistral': 488, 'n_tokens_neox': 470, 'n_words': 155}