<commit_before>#!/bin/bash

cd docs

#for each pdf file
for f in *.pdf
do
	#export pdf as text and save results to csv
    pdftotext $f - | wc -w | sed s/"^"/"$f,"/ >> wordcount.csv
done

mv wordcount.csv ../<commit_msg>fix weird unicode space character bug<commit_after>#!/bin/bash

cd docs

#for each pdf file
for f in *.pdf
do
	#export pdf as text and save results to csv
	#spaces thingy fixes awkward space bug
	pdftotext $f - | tr ' ' ' ' |  wc -w | sed s/"^"/"$f,"/ >> wordcount.csvdone
done

mv wordcount.csv ../
{'fraction_non_alphanumeric': 0.13872832369942195, 'fraction_numerical': 0.0, 'mean_word_length': 3.0310077519379846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5343253', 'n_tokens_mistral': 208, 'n_tokens_neox': 191, 'n_words': 74}