<commit_before>#! /bin/sh

mkdir gutenberg_temp
cd gutenberg_temp
filename=$(basename $1)
wget -p -k -nd $filename
for file in *.gif
do
    base="${file%.*}"
    convert $file $base.png
done
sed -i 's/\.gif/\.png/' $filename
iconv $filename -f iso-8859-1 -t utf-8 -o temp$filename
pandoc --latex-engine=xelatex temp$filename -o ../$2.pdf
cd ..
rm -rf gutenberg_temp
<commit_msg>Correct the link used in wget for gutenberg.sh<commit_after>#! /bin/sh

mkdir gutenberg_temp
cd gutenberg_temp
filename=$(basename $1)
wget -p -k -nd $1
for file in *.gif
do
    base="${file%.*}"
    convert $file $base.png
done
sed -i 's/\.gif/\.png/' $filename
iconv $filename -f iso-8859-1 -t utf-8 -o temp$filename
pandoc --latex-engine=xelatex temp$filename -o ../$2.pdf
cd ..
rm -rf gutenberg_temp

{'fraction_non_alphanumeric': 0.16240409207161124, 'fraction_numerical': 0.021739130434782608, 'mean_word_length': 3.278688524590164, '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': '3468282', 'n_tokens_mistral': 326, 'n_tokens_neox': 310, 'n_words': 95}