<commit_before>@ECHO OFF

if defined %JAVA_HOME% %JAVA_HOME%\bin\java -classpath deegree-javacheck.jar org.deegree.JavaCheck else java -classpath deegree-javacheck.jar org.deegree.JavaCheck

IF ERRORLEVEL 5 GOTO End

SET JAVA_OPTS=-Xmx1024M
bin\catalina.bat start
START http://localhost:8080
TIMEOUT /T -1

:End<commit_msg>Improved Windows starter. Added auto-detection of JAVA_HOME.<commit_after>@echo off
if "%JAVA_HOME%"=="" call:FIND_JAVA_HOME
"%JAVA_HOME%"\bin\java -classpath deegree-javacheck.jar org.deegree.JavaCheck else java -classpath deegree-javacheck.jar org.deegree.JavaCheck
IF ERRORLEVEL 5 GOTO WRONGJAVA
SET JAVA_OPTS=-Xmx1024M
bin\catalina.bat run
goto:END

:FIND_JAVA_HOME
FOR /F "skip=2 tokens=2*" %%A IN ('REG QUERY "HKLM\Software\JavaSoft\Java Development Kit" /v CurrentVersion') DO set CurVer=%%B
FOR /F "skip=2 tokens=2*" %%A IN ('REG QUERY "HKLM\Software\JavaSoft\Java Development Kit\%CurVer%" /v JavaHome') DO set JAVA_HOME=%%B
if "%JAVA_HOME%"=="" GOTO NOJAVA
goto:EOF

:WRONGJAVA
pause
goto:END

:NOJAVA
echo ***********************************************************************
echo JAVA_HOME is not set and automatic detection failed.
echo Please install a suitable JDK, e.g. Oracle Java 7 JDK.
echo ***********************************************************************
pause

:END
{'fraction_non_alphanumeric': 0.2078907435508346, 'fraction_numerical': 0.015174506828528073, 'mean_word_length': 6.091397849462366, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7487050', 'n_tokens_mistral': 500, 'n_tokens_neox': 443, 'n_words': 124}