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

#awstar.sh

usage() {
    echo "Usage: " `basename $0` JOB_NAME SOURCE_DIR "[...]"
}

RUNDATE=`date "+%Y%m%d_%H%M"`
LOGFILE="${RUNDATE}_tar.log"
STATUS_UPDATE_ARN="arn:aws:sns:us-east-1:826181281546:jamiehardt_internal_notifications"
VOLUME_SIZE=250M
INFO_SCRIPT_COMMAND=awstar_autoload.sh
WRITE_VOLUME_COMMAND=awstar_write_volume.sh

JOB_NAME=$1
shift ## remaining arguments are directories

ARCHIVE_NAME=$JOB_NAME-$RUNDATE
S3_BUCKET_NAME=jamiehardtmpse-arch-$(date +"%Y")
ARCHIVE_BASE_PREFIX_S3URL=s3://$S3_BUCKET_NAME/$ARCHIVE_NAME

GIGABYTE=$(expr 1024 "*" 1024 "*" 1024)
RECORD_SIZE_BYTES=$(expr 20 "*" 512)<commit_msg>Removed my personal ARN and will get from a config file<commit_after>#!/usr/bin/env bash

#awstar.sh

usage() {
    echo "Usage: " `basename $0` JOB_NAME SOURCE_DIR "[...]"
}

RUNDATE=`date "+%Y%m%d_%H%M"`
LOGFILE="${RUNDATE}_tar.log"
STATUS_UPDATE_ARN=AWSTAR_UPDATE_ARN
VOLUME_SIZE=250M
INFO_SCRIPT_COMMAND=awstar_autoload.sh
WRITE_VOLUME_COMMAND=awstar_write_volume.sh

JOB_NAME=$1
shift ## remaining arguments are directories

ARCHIVE_NAME=$JOB_NAME-$RUNDATE
S3_BUCKET_NAME=jamiehardtmpse-arch-$(date +"%Y")
ARCHIVE_BASE_PREFIX_S3URL=s3://$S3_BUCKET_NAME/$ARCHIVE_NAME

GIGABYTE=$(expr 1024 "*" 1024 "*" 1024)
RECORD_SIZE_BYTES=$(expr 20 "*" 512)
{'fraction_non_alphanumeric': 0.1489686783804431, 'fraction_numerical': 0.04965622612681436, 'mean_word_length': 7.91156462585034, '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': '7611454', 'n_tokens_mistral': 608, 'n_tokens_neox': 548, 'n_words': 77}