<commit_before>@ECHO OFF

echo "ParaViewConnect installer"

IF NOT "%1"=="" GOTO ArgOk
echo "Supply full path for paraview executables" 
goto EOF

:ArgOk

echo "Using ParaView from: %*\pvpython.exe"

pushd "%~dp0"
pushd ..

echo "Checking for pvpython.exe"

IF EXIST "%*\pvpython.exe" goto PVpythonOK
echo "ERROR: pvpython not found"
goto EOF

:PVpythonOK
echo "Using %*\pvpython.exe"

echo "Checking for virtualenv"

REM Check for virtualenv
WHERE virtualenv --version 2>NUL
IF %ERRORLEVEL% == 0 GOTO VirtualEnvOK
ECHO virtualenv not found
GOTO EOF

:VirtualEnvOK

if exist "./pvconnect-py27/" rd /q /s "./pvconnect-py27/"

echo "Creating virtual environment"
virtualenv pvconnect-py27
IF %ERRORLEVEL% == 0 GOTO VirtualEnvCreated
ECHO virtualenv could not be created
GOTO EOF
:VirtualEnvCreated


echo "Activating virtual environment"
call pvconnect-py27\scripts\activate

echo "Installing yolk"
pip install yolk

echo "Installing requirements"
pip install -r requirements.txt 

yolk -l

echo "Saving Paraview site location info"
set sitelib=""
for /f "tokens=*" %%G in ('dir /b /a:d "%*"\..\lib\*') do (
  set sitelib=%%G
)

if not %sitelib% == "" goto sitelibok 
echo Paraview Sitelib not found!
goto EOF

:sitelibok
echo SET PARAVIEW_SITE_LIB=%*\..\lib\%sitelib%> pvconnect-py27\pv-location.bat
echo SET PARAVIEW_BIN=%* >> pvconnect-py27\pv-location.bat

deactivate

popd
popd

:EOF<commit_msg>Removing paraview location<commit_after>@ECHO OFF

echo "ParaViewConnect installer"

echo "Checking for virtualenv"

REM Check for virtualenv
WHERE virtualenv --version 2>NUL
IF %ERRORLEVEL% == 0 GOTO VirtualEnvOK
ECHO virtualenv not found
GOTO EOF

:VirtualEnvOK

if exist "./pvconnect-py27/" rd /q /s "./pvconnect-py27/"

echo "Creating virtual environment"
virtualenv pvconnect-py27
IF %ERRORLEVEL% == 0 GOTO VirtualEnvCreated
ECHO virtualenv could not be created
GOTO EOF
:VirtualEnvCreated


echo "Activating virtual environment"
call pvconnect-py27\scripts\activate

echo "Installing yolk"
pip install yolk

echo "Installing requirements"
pip install -r requirements.txt 

yolk -l

deactivate

popd
popd

:EOF
{'fraction_non_alphanumeric': 0.09938476100331282, 'fraction_numerical': 0.013251301467108376, 'mean_word_length': 4.7289972899729, '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': '7195033', 'n_tokens_mistral': 791, 'n_tokens_neox': 731, 'n_words': 247}