<commit_before>@echo off

REM read configuration file
FOR /F "tokens=2 delims==" %%a IN ('find "phpPath" ^<run.ini') DO SET phpPath=%%a

IF _%phpPath%==_ SET phpPath="php.exe"

ECHO You are updating your eXpansion installation !!.
set /p continue=Are you sure you wish to continue [y/n]?:

if %continue% == y (goto :update) else (goto :eof)

REM The update procedure with 2 options.
:update
set /p dev=Do you wish to install for development [y/n]?:
if %dev% == y (goto :dev) else (goto :stable)

REM In case of dev we launh with prefer-source options to have git access
:dev
%phpPath% composer.phar update --prefer-source --no-interaction --dry-run%*
(goto :end)

REM Other case just get the code no need for heavier git.
:stable
%phpPath% composer.phar update --prefer-dist --no-interaction --dry-run%*
(goto :end)

:end
pause<commit_msg>fix update.bat!<commit_after>@echo off

REM read configuration file
FOR /F "tokens=2 delims==" %%a IN ('find "phpPath" ^<run.ini') DO SET phpPath=%%a

IF _%phpPath%==_ SET phpPath="php.exe"

ECHO You are updating your eXpansion installation !!.
set /p continue=Are you sure you wish to continue [y/n]?:

if %continue% == y (goto :update) else (goto :eof)

REM The update procedure with 2 options.
:update
set /p dev=Do you wish to install for development [y/n]?:
if %dev% == y (goto :dev) else (goto :stable)

REM In case of dev we launh with prefer-source options to have git access
:dev
%phpPath% composer.phar update --prefer-source --no-interaction %*
(goto :end)

REM Other case just get the code no need for heavier git.
:stable
%phpPath% composer.phar update --prefer-dist --no-interaction %*
(goto :end)

:end
pause
{'fraction_non_alphanumeric': 0.1299638989169675, 'fraction_numerical': 0.0024067388688327317, 'mean_word_length': 4.246056782334385, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3649714', 'n_tokens_mistral': 587, 'n_tokens_neox': 562, 'n_words': 236}