<commit_before>@echo off
echo Generic Sakuli test starter.
echo 2015 - The Sakuli team
echo http://www.sakuli.org
echo http://github.com/ConSol/sakuli
echo

setLocal EnableDelayedExpansion
 
set SAKULI_JARS=%SAKULI_HOME%\libs\java
set JAVAHOME=
set SAKULI_PARAMS=
set JAVA_PARAMS=
set count=0
 
:nextParam
  set param=%1
  if "%param%" == "" goto execute
  set /A count+=1
  IF "%param%" == "-j" (
        SET JAVAHOME=%~2
        shift
  ) ELSE IF "%param%" == "--javahome" (
        SET JAVAHOME=%~2
        shift
  ) ELSE IF "%param:~0,2%" == "-D" (
        set JAVA_PARAMS=%JAVA_PARAMS% "%param%=%2"
        shift
  ) ELSE (
        set SAKULI_PARAMS=%SAKULI_PARAMS% %param%
  )
  shift
goto nextParam
 
:execute<commit_msg>sakuli.bat: added SAKULI_HOME fallback if env var not set #124<commit_after>@echo off
echo Generic Sakuli test starter.
echo 2015 - The Sakuli team
echo http://www.sakuli.org
echo http://github.com/ConSol/sakuli
echo

setLocal EnableDelayedExpansion

if "%SAKULI_HOME%" == "" (
  SET SAKULI_HOME=..\
)

set SAKULI_JARS=%SAKULI_HOME%\libs\java
set JAVAHOME=
set SAKULI_PARAMS=
set JAVA_PARAMS=
set count=0
 
:nextParam
  set param=%1
  if "%param%" == "" goto execute
  set /A count+=1
  IF "%param%" == "-j" (
        SET JAVAHOME=%~2
        shift
  ) ELSE IF "%param%" == "--javahome" (
        SET JAVAHOME=%~2
        shift
  ) ELSE IF "%param:~0,2%" == "-D" (
        set JAVA_PARAMS=%JAVA_PARAMS% "%param%=%2"
        shift
  ) ELSE (
        set SAKULI_PARAMS=%SAKULI_PARAMS% %param%
  )
  shift
goto nextParam
 
:execute
{'fraction_non_alphanumeric': 0.13946015424164523, 'fraction_numerical': 0.017352185089974295, 'mean_word_length': 3.0546875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3314486', 'n_tokens_mistral': 650, 'n_tokens_neox': 602, 'n_words': 148}