<commit_before>@echo off
setlocal enabledelayedexpansion 

pushd %1

set attempts=5
set counter=0

:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%

if exist node_modules\azure-cli\bin\azure (
  cmd /c npm update git://github.com/amitapl/azure-sdk-tools-xplat.git#kudu_s21_5
) else (
  cmd /c npm install git://github.com/amitapl/azure-sdk-tools-xplat.git#kudu_s21_5
)

IF %ERRORLEVEL% NEQ 0 goto error

pushd node_modules

for /r %%X IN (test) DO (
  rmdir /s /q %%X 2>nul
)

popd

goto end

:error
if %counter% GEQ %attempts% goto :lastError
goto retry

:lastError
popd
echo An error has occured during npm install.
exit /b 1

:end
popd
echo Finished successfully.
exit /b 0
<commit_msg>Reverting the npm update script change as it wasn't working as expected and tarball api is up again<commit_after>@echo off
setlocal enabledelayedexpansion 

pushd %1

set attempts=5
set counter=0

:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%

if exist node_modules\azure-cli\bin\azure (
  cmd /c npm update http://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5
) else (
  cmd /c npm install http://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5
)

IF %ERRORLEVEL% NEQ 0 goto error

pushd node_modules

for /r %%X IN (test) DO (
  rmdir /s /q %%X 2>nul
)

popd

goto end

:error
if %counter% GEQ %attempts% goto :lastError
goto retry

:lastError
popd
echo An error has occured during npm install.
exit /b 1

:end
popd
echo Finished successfully.
exit /b 0

{'fraction_non_alphanumeric': 0.09748010610079576, 'fraction_numerical': 0.01856763925729443, 'mean_word_length': 3.9313725490196076, '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': '116431', 'n_tokens_mistral': 614, 'n_tokens_neox': 577, 'n_words': 189}