<commit_before>@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem  proactive-server startup script for Windows
@rem
@rem ##########################################################################

echo Calendar Service setting up ...

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

@rem Add default JVM options here. You can also use JAVA_OPTS and PROACTIVE_SERVER_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-server" "-Dfile.encoding=UTF-8"

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%..

@rem================================================
IF exist "%APP_HOME%/jre" (set JAVA_HOME="%APP_HOME%/jre")
@rem================================================

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto checkRadicaleHome

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:checkRadicaleHome
if defined RADICALE_HOME goto findRadicaleHome

echo.
echo ERROR: RADICALE_HOME is not set.
echo.
echo Please set the RADICALE_HOME variable in your environment to match the
echo location of your Radicale installation.

goto fail

:findRadicaleHome
set RADICALE_HOME=%RADICALE_HOME:"=%

@rem copy data folders and config files 
xcopy "%RADICALE_HOME%\App\DefaultData" "%RADICALE_HOME%\Data" /s /e /y 
xcopy radicale\windows\conf\config.ini "%RADICALE_HOME%\Data\config\" /y
xcopy radicale\windows\conf\rights "%RADICALE_HOME%\Data\config\" /y

@rem Execute radicale
start "" "%RADICALE_HOME%\RadicalePortable.exe"

:end
@rem End local scope for the variables with windows NT shell
echo *** OK ***

set /p input="Would you like to start Calendar Service right now? (Y/N) :"
if "%input%"=="y" goto runCs
if "%input%"=="Y" goto runCs
if "%input%"=="n" goto mainEnd
if "%input%"=="N" goto mainEnd
if "%ERRORLEVEL%"=="0" goto mainEnd

:runCs
call "%APP_HOME%\calendar-service\calendar-service.bat"
goto mainEnd

:fail
@rem Set variable ${exitEnvironmentVar} if you need the _script_ return code instead of
@rem the _cmd.exe /c_ return code!
if  not "" == "%${exitEnvironmentVar}%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

<commit_msg>remove the pompt of starting calendar service in bat file, as did in bash file<commit_after>@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem  proactive-server startup script for Windows
@rem
@rem ##########################################################################

echo Calendar Service setting up ...

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

@rem Add default JVM options here. You can also use JAVA_OPTS and PROACTIVE_SERVER_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-server" "-Dfile.encoding=UTF-8"

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%..

@rem================================================
IF exist "%APP_HOME%/jre" (set JAVA_HOME="%APP_HOME%/jre")
@rem================================================

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto checkRadicaleHome

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:checkRadicaleHome
if defined RADICALE_HOME goto findRadicaleHome

echo.
echo ERROR: RADICALE_HOME is not set.
echo.
echo Please set the RADICALE_HOME variable in your environment to match the
echo location of your Radicale installation.

goto fail

:findRadicaleHome
set RADICALE_HOME=%RADICALE_HOME:"=%

@rem copy data folders and config files 
xcopy "%RADICALE_HOME%\App\DefaultData" "%RADICALE_HOME%\Data" /s /e /y 
xcopy radicale\windows\conf\config.ini "%RADICALE_HOME%\Data\config\" /y
xcopy radicale\windows\conf\rights "%RADICALE_HOME%\Data\config\" /y

@rem Execute radicale
start "" "%RADICALE_HOME%\RadicalePortable.exe"

:end
@rem End local scope for the variables with windows NT shell
echo *** OK ***

goto mainEnd

:fail
@rem Set variable ${exitEnvironmentVar} if you need the _script_ return code instead of
@rem the _cmd.exe /c_ return code!
if  not "" == "%${exitEnvironmentVar}%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal


{'fraction_non_alphanumeric': 0.17847286108555657, 'fraction_numerical': 0.0020239190432382705, 'mean_word_length': 4.581108829568788, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4881475', 'n_tokens_mistral': 1865, 'n_tokens_neox': 1686, 'n_words': 593}