<commit_before>@ECHO off
SETLOCAL EnableDelayedExpansion
CHCP 65001

CD /d "%~dp0"

SET version=1
FOR /F "tokens=* USEBACKQ" %%H IN (`git --version`) DO SET gvar=%%F
IF /I NOT %gvar:~0,6% == git ve GOTO nogit
CLS

IF EXIST C:\Windows\py.exe (
	CMD /k C:\Windows\py.exe -3.5 run.py
    GOTO end
)

FOR /f "delims=" %%a IN ('C:\Windows\System32\where.exe python') DO (
    FOR /F "tokens=* USEBACKQ" %%F IN (`"%%a" -V`) DO (
	    CLS
        SET var=%%F
    )
    SET var=!var:~7,5!
    IF !var! GTR !version! (
        SET version=!var!
        SET pypath="%%a"
    )
)

IF /I NOT %version:~0,3% == 3.5 GOTO errorhandlerpy
CMD /k %pypath% run.py
GOTO end

:errorhandlerpy
IF /I %version% == 0 GOTO nopython
ECHO ERROR: Bad version detected at %var%, please install Python 3.5+
GOTO end

:nogit
ECHO ERROR: Git Installation not detected. Please review the README for more information
GOTO end

:nopython
ECHO ERROR: No install of Python has been detected. Please review the README for more information

:end
PAUSE<commit_msg>Stupid bat is awful and broken<commit_after>@ECHO off

CHCP 65001 > NUL
CD /d "%~dp0"

IF EXIST %SYSTEMROOT%\py.exe (
    CMD /k py.exe -3.5 run.py
    EXIT
)

rem git --version > NUL 2>&1
rem IF %ERRORLEVEL% NEQ 0 GOTO nogit

python --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO nopython

CMD /k python run.py
GOTO end

rem :nogit
rem ECHO ERROR: Git has either not been installed or not added to your PATH.
rem GOTO end

:nopython
ECHO ERROR: Git has either not been installed or not added to your PATH.

:end
PAUSE
{'fraction_non_alphanumeric': 0.11802853437094682, 'fraction_numerical': 0.023346303501945526, 'mean_word_length': 3.2158469945355193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '7164046', 'n_tokens_mistral': 633, 'n_tokens_neox': 586, 'n_words': 225}