<commit_before>@echo off
setlocal EnableExtensions

set BATDIR=%~dp0
if not exist "%USERPROFILE%" (
    echo [Error] Environment variable %%USERPROFILE%% is not set.
    goto :EOF
)

REM Check access priviledge
if exist "%TEMP%\makelinks.tmp" del "%TEMP%\makelinks.tmp"
(mklink "%TEMP%\makelinks.tmp" "%~0" 2>&1) > NUL
if not %ERRORLEVEL% == 0 (
    echo Failed to create symbolic link
    goto :EOF
)
del ".\makelinks.tmp" 2> NUL

call :MAIN "%USERPROFILE%\vimfiles\"
goto :EOF


REM ---------------------------------------------------------------------------
:MAIN
    set DOTVIM=%~f1
    call :MKDIR  "%DOTVIM%"
    call :MKLINK "%DOTVIM%vimrc" "%BATDIR%.vim\vimrc"
    call :MKDIR  "%DOTVIM%ftplugin"
    for %%I in (%BATDIR%.vim\ftplugin\*.vim) do (
        call :MKLINK "%DOTVIM%ftplugin\%%~nxI" "%%~fI"
    )
    exit /b 0

:MKLINK
    set DEST=%~f1
    set SRC=%~f2
    if exist "%DEST%" del /q "%DEST%"
    mklink "%DEST%" "%SRC%" > NUL
    echo mklink "%DEST%" "%SRC%"
    exit /b 0

:MKDIR
    if not exist "%~f1" (
        mkdir "%~f1"
	echo mkdir "%~f1"
    ) else (
        echo mkdir "%~f1" ^(skip^)<commit_msg>profile: Use spaces for indent<commit_after>@echo off
setlocal EnableExtensions

set BATDIR=%~dp0
if not exist "%USERPROFILE%" (
    echo [Error] Environment variable %%USERPROFILE%% is not set.
    goto :EOF
)

REM Check access priviledge
if exist "%TEMP%\makelinks.tmp" del "%TEMP%\makelinks.tmp"
(mklink "%TEMP%\makelinks.tmp" "%~0" 2>&1) > NUL
if not %ERRORLEVEL% == 0 (
    echo Failed to create symbolic link
    goto :EOF
)
del ".\makelinks.tmp" 2> NUL

call :MAIN "%USERPROFILE%\vimfiles\"
goto :EOF


REM ---------------------------------------------------------------------------
:MAIN
    set DOTVIM=%~f1
    call :MKDIR  "%DOTVIM%"
    call :MKLINK "%DOTVIM%vimrc" "%BATDIR%.vim\vimrc"
    call :MKDIR  "%DOTVIM%ftplugin"
    for %%I in (%BATDIR%.vim\ftplugin\*.vim) do (
        call :MKLINK "%DOTVIM%ftplugin\%%~nxI" "%%~fI"
    )
    exit /b 0

:MKLINK
    set DEST=%~f1
    set SRC=%~f2
    if exist "%DEST%" del /q "%DEST%"
    mklink "%DEST%" "%SRC%" > NUL
    echo mklink "%DEST%" "%SRC%"
    exit /b 0

:MKDIR
    if not exist "%~f1" (
        mkdir "%~f1"
        echo mkdir "%~f1"
    ) else (
        echo mkdir "%~f1" ^(skip^)
{'fraction_non_alphanumeric': 0.22451669595782073, 'fraction_numerical': 0.013181019332161687, 'mean_word_length': 2.3192419825072887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '451469', 'n_tokens_mistral': 922, 'n_tokens_neox': 853, 'n_words': 239}