<commit_before>#!/bin/bash
LANG=C
COMMON_DIR="../Common/"
COMMON_FILES=(FindLinearFit.m GetConstants.m GetMaterial.m ImportCSV.m SaveAsCSV.m)
SRC_FILES=(example.m TranslateData.m)
OTHER_FILES=(README LICENSE data.csv)

files=()
for fname in "${COMMON_FILES[@]}" 
do
	files+=("$COMMON_DIR$fname")
done
rm -rf tmp
mkdir -p tmp/hilo
mkdir tmp/hilo/processed
cp ${files[*]} ${SRC_FILES[*]} ${OTHER_FILES[*]} tmp/hilo

version=`git describe`
sed 's/\$VERSION_STRING\$/'"$version"'/' <hilo.m >tmp/hilo/hilo.m

zip -rq "hilo_$version.zip" tmp/hilo -x "*.DS_Store"
rm -rf tmp<commit_msg>fixed path issue in zip file generated by release.sh<commit_after>#!/bin/bash
LANG=C
COMMON_DIR="../Common/"
COMMON_FILES=(FindLinearFit.m GetConstants.m GetMaterial.m ImportCSV.m SaveAsCSV.m)
SRC_FILES=(example.m TranslateData.m)
OTHER_FILES=(README LICENSE data.csv)

files=()
for fname in "${COMMON_FILES[@]}" 
do
	files+=("$COMMON_DIR$fname")
done
rm -rf tmp
mkdir -p tmp/hilo
mkdir tmp/hilo/processed
cp ${files[*]} ${SRC_FILES[*]} ${OTHER_FILES[*]} tmp/hilo

version=`git describe`
sed 's/\$VERSION_STRING\$/'"$version"'/' <hilo.m >tmp/hilo/hilo.m

cd tmp
zip -rq "hilo_$version.zip" hilo/* -x "*.DS_Store"
mv *.zip ../
cd ..
rm -rf tmp
{'fraction_non_alphanumeric': 0.18755118755118755, 'fraction_numerical': 0.0, 'mean_word_length': 5.14070351758794, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1239270', 'n_tokens_mistral': 525, 'n_tokens_neox': 482, 'n_words': 110}