<commit_before>#!/bin/sh

pdftohtml -xml -i "$1.pdf"
../script-extractor/target/debug/script-extractor --json "$1.xml" > "src/main/resources/public/res/`basename "$1"`.json"<commit_msg>Change convert script to use pdf name as argument<commit_after>#!/bin/sh

script=$1
name="${script%.*}"
pdftohtml -xml -i "$name.pdf"
../script-extractor/target/debug/script-extractor --json "$name.xml" > "src/main/resources/public/res/`basename "$name"`.json"
{'fraction_non_alphanumeric': 0.20898876404494382, 'fraction_numerical': 0.008988764044943821, 'mean_word_length': 4.717948717948718, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4523160', 'n_tokens_mistral': 162, 'n_tokens_neox': 161, 'n_words': 29}