<commit_before>@echo off

setlocal enabledelayedexpansion

set errorlevel=1
set errorlevel=
set mode=%1

if "%mode%" == "build" (
    echo "Building UI tests..."
    pushd src\xpiks-tests\ui-tests-stubs
    qmake "CONFIG+=%configuration% appveyor" ui-tests-stubs.pro
    nmake.exe || goto :error
    popd

    pushd src\xpiks-tests\xpiks-tests-ui
    qmake "CONFIG+=%configuration% appveyor" xpiks-tests-ui.pro
    nmake.exe || goto :error
    popd
)

if "%mode%" == "run" (
    pushd src\xpiks-tests\xpiks-tests-ui
    copy ..\..\..\libs\%configuration%\*.dll .

    echo "Running UI tests..."
    %configuration%\xpiks-tests-ui.exe > uitests_in_memory.log<commit_msg>Fix appveyor ui tests script<commit_after>@echo off

setlocal enabledelayedexpansion

set errorlevel=1
set errorlevel=
set mode=%1

if "%mode%" == "build" (
    echo "Building UI tests..."
    pushd src\xpiks-tests\ui-tests-stubs
    qmake "CONFIG+=%configuration% appveyor" ui-tests-stubs.pro
    nmake.exe || goto :error
    popd

    pushd src\xpiks-tests\xpiks-tests-ui
    qmake "CONFIG+=%configuration% appveyor" xpiks-tests-ui.pro
    nmake.exe || goto :error
    popd
)

set testsexitcode=0

if "%mode%" == "run" (
    pushd src\xpiks-tests\xpiks-tests-ui
    copy ..\..\..\libs\%configuration%\*.dll .

    echo "Running UI tests..."
    %configuration%\xpiks-tests-ui.exe > uitests_in_memory.log
{'fraction_non_alphanumeric': 0.14919941775836973, 'fraction_numerical': 0.00363901018922853, 'mean_word_length': 3.1167664670658684, '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': '646991', 'n_tokens_mistral': 532, 'n_tokens_neox': 501, 'n_words': 105}