<commit_before>#!/bin/bash

    
for PPT in TWP*.pptx; do
    RST="${PPT:0:5}.rst"
    XHTML="${PPT%.pptx}.xhtml"
    HTML="${PPT:0:5}.html"

    loffice --headless --convert-to xhtml "$PPT" 
    echo "Converting $RST"
    echo "Python para zombis" > "$RST"
    echo "==================" >> "$RST"
    echo  >> "$RST"
    python html2rest.py  "$XHTML" >> "$RST"
    echo "Generating presentation in $HTML"
    ./rst2html5 --jquery --reveal-js --pretty-print-code "$RST" > "$HTML"

done<commit_msg>incluir titulo del PPTX en el RST<commit_after>#!/bin/bash

    
for PPT in TWP*.pptx; do
    RST="${PPT:0:5}.rst"
    XHTML="${PPT%.pptx}.xhtml"
    HTML="${PPT:0:5}.html"

    TITLE=${PPT%.pptx}
    TITLE=${TITLE:6:99}
    LEN=${#TITLE}

    echo "Processing $TITLE"
    loffice --headless --convert-to xhtml "$PPT" 
    echo "Converting $RST"
    echo "$TITLE" > "$RST"
    printf '%*s\n' $LEN "" | tr ' ' '=' >> "$RST"
    echo  >> "$RST"
    python html2rest.py  "$XHTML" >> "$RST"
    echo "Generating presentation in $HTML"
    ./rst2html5 --jquery --reveal-js --pretty-print-code "$RST" > "$HTML"

done
{'fraction_non_alphanumeric': 0.21951219512195122, 'fraction_numerical': 0.015356820234869015, 'mean_word_length': 2.8339100346020762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '1026839', 'n_tokens_mistral': 467, 'n_tokens_neox': 441, 'n_words': 96}