<commit_before>#!/bin/bash -u
#
# Usage: ./to_image.sh 'LaTeX Equation to Render'
#
# Examples: 
#   ./to_image.sh '\frac{2}{3}' png
#   ./to_image.sh '\frac{3}{2}' svg

echo ''$1'' > equation.tex
pdflatex -interaction=nonstopmode template.tex
if [ $? -eq 0 ]; then
  convert -density 300 template.pdf -quality 90 "equation.$2"
fi
rm equation.tex *.aux *.log<commit_msg>Lower resolution we render tex at.<commit_after>#!/bin/bash -u
#
# Usage: ./to_image.sh 'LaTeX Equation to Render'
#
# Examples: 
#   ./to_image.sh '\frac{2}{3}' png
#   ./to_image.sh '\frac{3}{2}' svg

echo ''$1'' > equation.tex
pdflatex -interaction=nonstopmode template.tex
if [ $? -eq 0 ]; then
  convert -density 120 template.pdf -quality 90 "equation.$2"
fi
rm equation.tex *.aux *.log
{'fraction_non_alphanumeric': 0.18265440210249673, 'fraction_numerical': 0.03153745072273324, 'mean_word_length': 3.618181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7265225', 'n_tokens_mistral': 314, 'n_tokens_neox': 287, 'n_words': 78}