<commit_before>#!/bin/sh

# For this script to work:
# 1/ Get the jars from http://dev.xwiki.org/xwiki/bin/download/Drafts/Documenting+XWiki+Velocity+Macros/velocidoc%2Dbin.zip
# 2/ Copy the jars in ./bin
# 3/ Create a curriki directory
# 4/ Create symbolic links in the curriki directory to the directories you want to parse for velocity macros
# Here is a list of directories:
# currikiskin -> ../../src/main/webapp/skins/curriki8
# currikitemplates -> ../../src/main/webapp/templates
# wiki -> ../../../wiki/src/main/resources
# xwikitemplates -> ../../../../platform/web/standard/src/main/webapp/templates
# albatross -> ../../../../platform/skins/albatross/src/main/resources/albatross/
# You can create the links to the curriki dir with the following commands:
#   ln -s ../src/main/webapp/skins/curriki8 ./curriki/currikiskin
#   ln -s ../src/main/webapp/templates/ ./curriki/currikitemplates
#   ln -s ../../wiki/src/main/resources ./curriki/wiki

rm -rf ../target/doc/
mkdir -p  ../target/doc/ 
./bin/velocidoc.sh -src ./curriki/ -dst ../target/doc/ 
<commit_msg>Modified doc script<commit_after>#!/bin/sh

# For this script to work:
# 1/ Get the jars from http://dev.xwiki.org/xwiki/bin/download/Drafts/Documenting+XWiki+Velocity+Macros/velocidoc%2Dbin.zip
# 2/ Copy the jars in ./bin
# 3/ Create a curriki directory
# 4/ Create symbolic links in the curriki directory to the directories you want to parse for velocity macros
# Here is a list of directories:
# currikiskin -> ../../src/main/webapp/skins/curriki8
# currikitemplates -> ../../src/main/webapp/templates
# wiki -> ../../../wiki/src/main/resources
# xwikitemplates -> ../../../../platform/web/standard/src/main/webapp/templates
# albatross -> ../../../../platform/skins/albatross/src/main/resources/albatross/
# You can create the links to the curriki dir with the following commands:
#   ln -s ../src/main/webapp/skins/curriki8 ./curriki/currikiskin
#   ln -s ../src/main/webapp/templates/ ./curriki/currikitemplates
#   ln -s ../../wiki/src/main/resources ./curriki/wiki

rm -rf ../target/doc/
mkdir -p  ../target/doc/ 
./bin/velocidoc.sh -src ./curriki/ -dst ../target/doc/ 
rm -rf ../target/currikivelocityapi
cp -r ../target/doc ../target/currikivelocityapi
cd ../target
zip -r currikivelocityapi.zip currikivelocityapi
cp currikivelocityapi.zip ../doc
cd ../doc

{'fraction_non_alphanumeric': 0.1700854700854701, 'fraction_numerical': 0.005982905982905983, 'mean_word_length': 2.8951747088186357, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5788182', 'n_tokens_mistral': 862, 'n_tokens_neox': 791, 'n_words': 206}