<commit_before>@echo off
REM autorun
SETLOCAL EnableDelayedExpansion

SET ARCH=%1

REM ---------------------- Check arguments -------------------------------
if NOT "%1"=="32" (
if NOT "%1"=="64" (
echo "First argument should be architecture i.e 32 or 64 bits"
echo "So e.g. run: 'autobuild 32' if you want to build an x86 version."
echo "But for now the default of 64-bit will be set."
SET ARCH=64
))

SET BRANCH=%2
if "%2"=="" SET BRANCH=development

echo "Building %ARCH% bits JASP"

REM I am assuming we are starting from (SOMEDIR)\jasp-desktop\Tools  and that (SOMEDIR) contains folders like jasp-required-files and stuff like that
REM At least by default
SET STARTDIR=%CD%

rem --- default values ---
SET JASP_BASE_DIR_DEFAULT=%STARTDIR%\..\..
SET QTDIR_DEFAULT=C:\Qt
SET QTVER_DEFAULT=5.12.1
SET RTOOLSDIR_DEFAULT=C:\Rtools
SET WIX_DEFAULT=C:\Program Files (x86)\WiX Toolset v3.11
SET MSVCDIR_DEFAULT=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community

REM ---------------------- Setting up environmet -------------------------------


REM for the rest we will check if the user has overridden any particular values manually
if "%JASP_BASE_DIR%"=="" (
    SET "JASP_BASE_DIR=%JASP_BASE_DIR_DEFAULT%"
    echo Using default JASP_BASE_DIR the folder containing required files and where the wix folder will be built, of:
    echo "%JASP_BASE_DIR_DEFAULT%", to change set the JASP_BASE_DIR environment variable to your install location
)

SET JASP_DESKTOP_DEFAULT=%JASP_BASE_DIR%\jasp-desktop
SET JASP_REQUIRED_FILES_DIR_DEFAULT=%JASP_BASE_DIR%\jasp-required-files

if "%QTDIR%"=="" (
    SET "QTDIR=%QTDIR_DEFAULT%"
    echo Using default QTDIR "%QTDIR_DEFAULT%", to change set the QTDIR environment variable to your install location
)

if "%QTVER%"=="" (
    SET "QTVER=%QTVER_DEFAULT%"
    echo Using default QTVER "%QTVER_DEFAULT%", to change set the QTVER environment variable to your preferred version
)

if "%RTOOLSDIR%"=="" (
    SET "RTOOLSDIR=%RTOOLSDIR_DEFAULT%"
    echo Using default RTOOLSDIR "%RTOOLSDIR_DEFAULT%", to change set the RTOOLSDIR environment variable to your install location
)

if "%WIX%"=="" (
    SET "WIX=%WIX_DEFAULT%"
    echo Using default WIX "%WIX_DEFAULT%", to change set the WIX environment variable to your install location
)

if "%MSVCDIR%"=="" (
    SET "MSVCDIR=%MSVCDIR_DEFAULT%"
    echo Using default MSVCDIR "%MSVCDIR_DEFAULT%", to change set the MSVCDIR environment variable to your install location
)

if "%JASP_DESKTOP%"=="" (
    SET "JASP_DESKTOP=%JASP_DESKTOP_DEFAULT%"
    echo Using default JASP_DESKTOP "%JASP_DESKTOP_DEFAULT%", to change set the JASP_DESKTOP environment variable to your folder
)

if "%JASP_REQUIRED_FILES_DIR%"=="" (
    SET "JASP_REQUIRED_FILES_DIR=%JASP_REQUIRED_FILES_DIR_DEFAULT%"
    echo Using default JASP_REQUIRED_FILES_DIR "%JASP_REQUIRED_FILES_DIR_DEFAULT%", to change set the JASP_REQUIRED_FILES_DIR environment variable to your folder
)

rem lets check if we are in Tools
cd ..
if not exist Tools (
    echo This script MUST be run from %JASP_DESKTOP%\Tools! 
    exit /b 2
)
cd %STARTDIR%

SET JASP_WIX_DIR=jasp-wix-installer-%ARCH%
SET JASP_INSTALL_DIR=jasp-installer-files-%ARCH%
SET JASP_BUILD_DIR=jasp-build-%ARCH%
SET JASP_R_INTERFACE=JASP-R-Interface
SET JOM=%QTDIR%\Tools\QtCreator\bin\jom.exe

SET VCVARS_DIR="%MSVCDIR%\VC\Auxiliary\Build"

if "%ARCH%" == "64" (
echo "Mode 64 bits"

SET MINGWDIR=%RTOOLSDIR%\mingw_64\bin
SET QTVCDIR=%QTDIR%\%QTVER%\msvc2017_64\bin
SET WIXARCH="x64"
SET COPY_R_ARCH="x64"
) else (
echo "Mode 32 bits"

SET MINGWDIR=%RTOOLSDIR%\mingw_32\bin
SET QTVCDIR=%QTDIR%\%QTVER%\msvc2015\bin
SET WIXARCH="x86"
SET COPY_R_ARCH="i386"
)<commit_msg>msvc2017 is now supported by Qt<commit_after>@echo off
REM autorun
SETLOCAL EnableDelayedExpansion

SET ARCH=%1

REM ---------------------- Check arguments -------------------------------
if NOT "%1"=="32" (
if NOT "%1"=="64" (
echo "First argument should be architecture i.e 32 or 64 bits"
echo "So e.g. run: 'autobuild 32' if you want to build an x86 version."
echo "But for now the default of 64-bit will be set."
SET ARCH=64
))

SET BRANCH=%2
if "%2"=="" SET BRANCH=development

echo "Building %ARCH% bits JASP"

REM I am assuming we are starting from (SOMEDIR)\jasp-desktop\Tools  and that (SOMEDIR) contains folders like jasp-required-files and stuff like that
REM At least by default
SET STARTDIR=%CD%

rem --- default values ---
SET JASP_BASE_DIR_DEFAULT=%STARTDIR%\..\..
SET QTDIR_DEFAULT=C:\Qt
SET QTVER_DEFAULT=5.12.1
SET RTOOLSDIR_DEFAULT=C:\Rtools
SET WIX_DEFAULT=C:\Program Files (x86)\WiX Toolset v3.11
SET MSVCDIR_DEFAULT=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community

REM ---------------------- Setting up environmet -------------------------------


REM for the rest we will check if the user has overridden any particular values manually
if "%JASP_BASE_DIR%"=="" (
    SET "JASP_BASE_DIR=%JASP_BASE_DIR_DEFAULT%"
    echo Using default JASP_BASE_DIR the folder containing required files and where the wix folder will be built, of:
    echo "%JASP_BASE_DIR_DEFAULT%", to change set the JASP_BASE_DIR environment variable to your install location
)

SET JASP_DESKTOP_DEFAULT=%JASP_BASE_DIR%\jasp-desktop
SET JASP_REQUIRED_FILES_DIR_DEFAULT=%JASP_BASE_DIR%\jasp-required-files

if "%QTDIR%"=="" (
    SET "QTDIR=%QTDIR_DEFAULT%"
    echo Using default QTDIR "%QTDIR_DEFAULT%", to change set the QTDIR environment variable to your install location
)

if "%QTVER%"=="" (
    SET "QTVER=%QTVER_DEFAULT%"
    echo Using default QTVER "%QTVER_DEFAULT%", to change set the QTVER environment variable to your preferred version
)

if "%RTOOLSDIR%"=="" (
    SET "RTOOLSDIR=%RTOOLSDIR_DEFAULT%"
    echo Using default RTOOLSDIR "%RTOOLSDIR_DEFAULT%", to change set the RTOOLSDIR environment variable to your install location
)

if "%WIX%"=="" (
    SET "WIX=%WIX_DEFAULT%"
    echo Using default WIX "%WIX_DEFAULT%", to change set the WIX environment variable to your install location
)

if "%MSVCDIR%"=="" (
    SET "MSVCDIR=%MSVCDIR_DEFAULT%"
    echo Using default MSVCDIR "%MSVCDIR_DEFAULT%", to change set the MSVCDIR environment variable to your install location
)

if "%JASP_DESKTOP%"=="" (
    SET "JASP_DESKTOP=%JASP_DESKTOP_DEFAULT%"
    echo Using default JASP_DESKTOP "%JASP_DESKTOP_DEFAULT%", to change set the JASP_DESKTOP environment variable to your folder
)

if "%JASP_REQUIRED_FILES_DIR%"=="" (
    SET "JASP_REQUIRED_FILES_DIR=%JASP_REQUIRED_FILES_DIR_DEFAULT%"
    echo Using default JASP_REQUIRED_FILES_DIR "%JASP_REQUIRED_FILES_DIR_DEFAULT%", to change set the JASP_REQUIRED_FILES_DIR environment variable to your folder
)

rem lets check if we are in Tools
cd ..
if not exist Tools (
    echo This script MUST be run from %JASP_DESKTOP%\Tools! 
    exit /b 2
)
cd %STARTDIR%

SET JASP_WIX_DIR=jasp-wix-installer-%ARCH%
SET JASP_INSTALL_DIR=jasp-installer-files-%ARCH%
SET JASP_BUILD_DIR=jasp-build-%ARCH%
SET JASP_R_INTERFACE=JASP-R-Interface
SET JOM=%QTDIR%\Tools\QtCreator\bin\jom.exe

SET VCVARS_DIR="%MSVCDIR%\VC\Auxiliary\Build"

if "%ARCH%" == "64" (
echo "Mode 64 bits"

SET MINGWDIR=%RTOOLSDIR%\mingw_64\bin
SET QTVCDIR=%QTDIR%\%QTVER%\msvc2017_64\bin
SET WIXARCH="x64"
SET COPY_R_ARCH="x64"
) else (
echo "Mode 32 bits"

SET MINGWDIR=%RTOOLSDIR%\mingw_32\bin
SET QTVCDIR=%QTDIR%\%QTVER%\msvc2017\bin
SET WIXARCH="x86"
SET COPY_R_ARCH="i386"
)
{'fraction_non_alphanumeric': 0.13150759219088937, 'fraction_numerical': 0.01843817787418655, 'mean_word_length': 4.330202312138728, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5679109', 'n_tokens_mistral': 2787, 'n_tokens_neox': 2568, 'n_words': 763}