<commit_before>#!/bin/bash

echo $@

COVER_DIR=$1
BUCKET=$2

if [ ! -d ${COVER_DIR} ]
then
    echo "Coverage dir ${COVER_DIR} doesn't exist."
fi

cd ${COVER_DIR}
s3cmd put --recursive * s3://${BUCKET}/
<commit_msg>Fail action on coverage dir not found<commit_after>#!/bin/bash

echo $@

COVER_DIR=$1
BUCKET=$2

if [ ! -d ${COVER_DIR} ]
then
    echo "Coverage dir ${COVER_DIR} doesn't exist."
    exit 1
fi

cd ${COVER_DIR}
s3cmd put --recursive * s3://${BUCKET}/

{'fraction_non_alphanumeric': 0.17204301075268819, 'fraction_numerical': 0.01935483870967742, 'mean_word_length': 3.707070707070707, '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': '1657675', 'n_tokens_mistral': 206, 'n_tokens_neox': 196, 'n_words': 50}