<commit_before>REM #!/bin/bash

set JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

rem # Restolino configuration
set RESTOLINO_STATIC="src/main/web"
set RESTOLINO_CLASSES="target/classes"
set PACKAGE_PREFIX=com.github.onsdigital

rem # Elasticsearch
set BONSAI_URL=http://localhost:9200
set BONSAI_CLUSTERNAME=elasticsearch
set BONSAI_HOSTNAME=localhost
set BONSAI_TRANSPORT_PORT=9300

# Mongodb
export MONGO_USER=ons
export MONGO_PASSWORD=<PASSWORD>

rem # Generate content
rem #mvn clean compile dependency:copy-dependencies && ^
rem #rm -rf src/main/content && ^
rem #java -cp "target/classes:target/dependency/*" com.github.onsdigital.generator.ContentGenerator

rem # Build and run:
mvn -Dmaven.test.skip=true clean compile dependency:copy-dependencies && ^
java %JAVA_OPTS% ^
 -Drestolino.files=%RESTOLINO_STATIC% ^
 -Drestolino.classes=%RESTOLINO_CLASSES% ^
 -Drestolino.packageprefix=%PACKAGE_PREFIX% ^
 -Dmongo.user=$MONGO_USER ^
 -Dmongo.password=$MONGO_PASSWORD ^
 -cp "target/dependency/*" ^
 com.github.davidcarboni.restolino.Main
 <commit_msg>Added content generation to windows run script<commit_after>REM #!/bin/bash

set JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

rem # Restolino configuration
set RESTOLINO_STATIC="src/main/web"
set RESTOLINO_CLASSES="target/classes"
set PACKAGE_PREFIX=com.github.onsdigital

rem # Elasticsearch
set BONSAI_URL=http://localhost:9200
set BONSAI_CLUSTERNAME=elasticsearch
set BONSAI_HOSTNAME=localhost
set BONSAI_TRANSPORT_PORT=9300

# Mongodb
export MONGO_USER=ons
export MONGO_PASSWORD=<PASSWORD>

# Generate content
mvn clean compile dependency:copy-dependencies && ^
rm -rf src/main/content && ^
java -cp "target/classes:target/dependency/*" com.github.onsdigital.generator.ContentGenerator

rem # Build and run:
mvn -Dmaven.test.skip=true clean compile dependency:copy-dependencies && ^
java %JAVA_OPTS% ^
 -Drestolino.files=%RESTOLINO_STATIC% ^
 -Drestolino.classes=%RESTOLINO_CLASSES% ^
 -Drestolino.packageprefix=%PACKAGE_PREFIX% ^
 -Dmongo.user=$MONGO_USER ^
 -Dmongo.password=$<PASSWORD> ^
 -cp "target/dependency/*" ^
 com.github.davidcarboni.restolino.Main
 
{'fraction_non_alphanumeric': 0.11520947176684881, 'fraction_numerical': 0.01092896174863388, 'mean_word_length': 6.708771929824562, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '5332763', 'n_tokens_mistral': 841, 'n_tokens_neox': 772, 'n_words': 132}