<commit_before>@echo off

setlocal enabledelayedexpansion

rem Read the msysGit installation path from the Registry.
:REG_QUERY
for /f "skip=2 delims=: tokens=1*" %%a in ('reg query HKLM\SOFTWARE%WOW%\Microsoft\Windows\CurrentVersion\Uninstall\Git_is1 /v InstallLocation 2^> nul') do (
    for /f "tokens=3" %%i in ("%%a") do (
        set GIT=%%i:%%b
    )
)
if "%GIT%"=="" (
    if "%WOW%"=="" (
        rem Assume we are on 64-bit Windows, so explicitly read the 32-bit Registry.
        set WOW=\Wow6432Node
        goto REG_QUERY
    )
)

pushd "%~dp0"
for /f "delims=" %%l in ('"%GIT%\bin\git.exe" describe --tags') do (
    echo Description: %%l

    for /f "delims=- tokens=2" %%t in ("%%l") do (
        set VERSION=%%t
    )<commit_msg>version.cmd: Use the term "Git for Windows" instead of "msysGit"<commit_after>@echo off

setlocal enabledelayedexpansion

rem Read the Git for Windows installation path from the Registry.
:REG_QUERY
for /f "skip=2 delims=: tokens=1*" %%a in ('reg query HKLM\SOFTWARE%WOW%\Microsoft\Windows\CurrentVersion\Uninstall\Git_is1 /v InstallLocation 2^> nul') do (
    for /f "tokens=3" %%i in ("%%a") do (
        set GIT=%%i:%%b
    )
)
if "%GIT%"=="" (
    if "%WOW%"=="" (
        rem Assume we are on 64-bit Windows, so explicitly read the 32-bit Registry.
        set WOW=\Wow6432Node
        goto REG_QUERY
    )
)

pushd "%~dp0"
for /f "delims=" %%l in ('"%GIT%\bin\git.exe" describe --tags') do (
    echo Description: %%l

    for /f "delims=- tokens=2" %%t in ("%%l") do (
        set VERSION=%%t
    )
{'fraction_non_alphanumeric': 0.1650548033526757, 'fraction_numerical': 0.019342359767891684, 'mean_word_length': 3.0103359173126614, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '286273', 'n_tokens_mistral': 612, 'n_tokens_neox': 563, 'n_words': 177}