<commit_before>#! /bin/sh

PACKAGES="core io net sql tree proof hist cint bindings math roofit \
          tmva geom montecarlo gui graf2d graf3d html misc"

VERS="534"

OUTDIR="README/ReleaseNotes"

echo ""
echo "Generating $OUTDIR from package docs..."
echo ""

# make output dir
if [ ! -d $OUTDIR ]; then
   mkdir $OUTDIR
fi

# make clean version directories
for v in $VERS; do
   if [ -d $OUTDIR/v${v} ]; then
      rm -rf $OUTDIR/v${v}
   fi
   mkdir $OUTDIR/v${v}
done

# write header note
for v in $VERS; do
   if [ -r doc/v${v}/index.html ]; then
      echo "<!-- doc/v${v}/index.html -->" > $OUTDIR/v${v}/index.html
      cat doc/v${v}/index.html >> $OUTDIR/v${v}/index.html
   fi
done

# write package notes
for i in $PACKAGES; do
   for v in $VERS; do
      if [ -r ${i}/doc/v${v}/index.html ]; then
         echo "<!-- ${i}/doc/v${v}/index.html -->" >> $OUTDIR/v${v}/index.html
         cat ${i}/doc/v${v}/index.html >> $OUTDIR/v${v}/index.html
         for img in `ls ${i}/doc/v${v}/*`; do 
            if [ $img != ${i}/doc/v${v}/index.html ]; then
               cp ${img} $OUTDIR/v${v}
            fi
         done
      fi<commit_msg>may not start with comment.<commit_after>#! /bin/sh

PACKAGES="core io net sql tree proof hist cint bindings math roofit \
          tmva geom montecarlo gui graf2d graf3d html misc"

VERS="534"

OUTDIR="README/ReleaseNotes"

echo ""
echo "Generating $OUTDIR from package docs..."
echo ""

# make output dir
if [ ! -d $OUTDIR ]; then
   mkdir $OUTDIR
fi

# make clean version directories
for v in $VERS; do
   if [ -d $OUTDIR/v${v} ]; then
      rm -rf $OUTDIR/v${v}
   fi
   mkdir $OUTDIR/v${v}
done

# write header note
for v in $VERS; do
   if [ -r doc/v${v}/index.html ]; then
      cat doc/v${v}/index.html > $OUTDIR/v${v}/index.html
   fi
done

# write package notes
for i in $PACKAGES; do
   for v in $VERS; do
      if [ -r ${i}/doc/v${v}/index.html ]; then
         echo "<!-- ${i}/doc/v${v}/index.html -->" >> $OUTDIR/v${v}/index.html
         cat ${i}/doc/v${v}/index.html >> $OUTDIR/v${v}/index.html
         for img in `ls ${i}/doc/v${v}/*`; do 
            if [ $img != ${i}/doc/v${v}/index.html ]; then
               cp ${img} $OUTDIR/v${v}
            fi
         done
      fi
{'fraction_non_alphanumeric': 0.17951002227171492, 'fraction_numerical': 0.004454342984409799, 'mean_word_length': 2.2363112391930837, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 18, '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': '6693985', 'n_tokens_mistral': 871, 'n_tokens_neox': 836, 'n_words': 240}