<commit_before>#!/bin/bash
# Script to create proactive docs, the ant task is soon to appear!

# shell values, in the ant script those are properties 
#<property name="docs.dir" value="${base}/docs"/>
base=..
docs_dir=$base/docs
html_dir=$docs_dir/html
pdf_dir=$docs_dir/pdf
xml_src_dir=$base/src/org/objectweb/proactive/doc-files

rm -rf $html_dir $pdf_dir  
mkdir -p $html_dir 
mkdir -p $pdf_dir 

echo "    COPYING IMAGE FILES comment : this should be more precise in copy, no?" 
cp -r $xml_src_dir $html_dir/

echo "    HTML INDEX DOC FILE IS $html_dir/index.html"
xmlto xhtml -o $html_dir -m $xml_src_dir/PA_config.xsl $xml_src_dir/PA_index.xml 

echo "    PDF doc is in $pdf_dir"
xmlto pdf -o $pdf_dir $xml_src_dir/tiny_index.xml  <commit_msg>Creation on pdf files and html in own directory automated. Still unhappy about the pdf stuff though.<commit_after>#!/bin/bash
# Script to create proactive docs, the ant task is soon to appear!

# shell values, in the ant script those are properties 
#<property name="docs.dir" value="${base}/docs"/>
base=..
docs_dir=$base/docs
html_dir=$docs_dir/html
pdf_dir=$docs_dir/pdf
xml_src_dir=$base/src/org/objectweb/proactive/doc-files

rm -rf $html_dir $pdf_dir  
mkdir -p $html_dir 
mkdir -p $pdf_dir 


echo "    COPYING IMAGE FILES <comment : number of files copied should be more restrained, no?>" 
cp -r $xml_src_dir $html_dir/

echo "    GENERATING html pages in $html_dir"
xmlto xhtml -o $html_dir -m $xml_src_dir/PA_config.xsl $xml_src_dir/PA_index.xml 

echo "    GENERATING pdf in $pdf_dir"
xmlto pdf -o $pdf_dir -m $xml_src_dir/PA_config.xsl $xml_src_dir/PA_index.xml   --searchpath $(pwd)/$base/src/org/objectweb/proactive/
{'fraction_non_alphanumeric': 0.11197141155449672, 'fraction_numerical': 0.0, 'mean_word_length': 4.3164556962025316, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 19}, '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': '6164787', 'n_tokens_mistral': 630, 'n_tokens_neox': 603, 'n_words': 183}