<commit_before><commit_msg>Script to build tarballs<commit_after>#!/bin/sh

# This script builds scalpel tarballs

USAGE="usage: $0 version_number"

if [ "$1" = "" ]; then
    echo $USAGE
    exit 1
fi

set -u
VERSION="$1"
DIR="scalpel-$VERSION"
ARCHIVE="$DIR.tar.gz"
FILES="control.py event.py gtkui.py player.py scalpel.py edit.py \
graphmodel.py gtkwaveform.py pysndfile.py selection.py"

rm -f $ARCHIVE
mkdir $DIR
for file in $FILES; do
    cp $file $DIR
done
tar cvzf $ARCHIVE $DIR
rm -rf $DIR
{'fraction_non_alphanumeric': 0.13453815261044177, 'fraction_numerical': 0.008032128514056224, 'mean_word_length': 4.091836734693878, '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': '441843', 'n_tokens_mistral': 198, 'n_tokens_neox': 189, 'n_words': 56}