<commit_before>@ECHO off

REM Runs all the tests for the NiniEdit program.  
REM Usage: RunTests.bat Tests\[CONFIG FILE]
REM The test files are in the Test directory

SET PROGRAM=Bin\DotNet\Release\NiniEdit.exe
REM SET PROGRAM=mono Bin\Mono\Release\NiniEdit.exe

ECHO ****** Test: Lists usage ******
%PROGRAM% --help

ECHO ****** Test: Prints version ******
%PROGRAM% -v %1

ECHO ****** Test: Lists configs ******
%PROGRAM% -l %1

ECHO ****** Test: Adds config "TestConfig" ******
%PROGRAM% --add TestConfig %1
%PROGRAM% -l %1

ECHO ****** Test: Removes config "TestConfig" ******
%PROGRAM% --remove TestConfig %1
%PROGRAM% -l %1

ECHO ****** Test: Lists keys in "Logging" ******
%PROGRAM% --config Logging --list-keys %1

ECHO ****** Test: Sets key "TestKey" ******
%PROGRAM% --config Logging --set-key TestKey,TestValue %1
%PROGRAM% --config Logging --list-keys %1

ECHO ****** Test: Prints "TestKey" value: "TestValue" ******
%PROGRAM% --config Logging --get-key TestKey %1

ECHO ****** Test: Removes key "TestKey" ******
%PROGRAM% --config Logging --remove-key TestKey %1
%PROGRAM% --config Logging --list-keys %1
<commit_msg>Now all tests are run in verbose mode for debugging purposes.<commit_after>@ECHO off

REM Runs all the tests for the NiniEdit program.  
REM Usage: RunTests.bat Tests\[CONFIG FILE]
REM The test files are in the Test directory
REM All tests are run in verbose mode

SET PROGRAM=Bin\DotNet\Release\NiniEdit.exe --verbose
REM SET PROGRAM=mono Bin\Mono\Release\NiniEdit.exe --verbose

ECHO ****** Test: Lists usage ******
%PROGRAM% --help

ECHO ****** Test: Prints version ******
%PROGRAM% -V %1

ECHO ****** Test: Lists configs ******
%PROGRAM% -l %1

ECHO ****** Test: Adds config "TestConfig" ******
%PROGRAM% --add TestConfig %1
%PROGRAM% -l %1

ECHO ****** Test: Removes config "TestConfig" ******
%PROGRAM% --remove TestConfig %1
%PROGRAM% -l %1

ECHO ****** Test: Lists keys in "Logging" ******
%PROGRAM% --config Logging --list-keys %1

ECHO ****** Test: Sets key "TestKey" ******
%PROGRAM% --config Logging --set-key TestKey,TestValue %1
%PROGRAM% --config Logging --list-keys %1

ECHO ****** Test: Prints "TestKey" value: "TestValue" ******
%PROGRAM% --config Logging --get-key TestKey %1

ECHO ****** Test: Removes key "TestKey" ******
%PROGRAM% --config Logging --remove-key TestKey %1
%PROGRAM% --config Logging --list-keys %1

{'fraction_non_alphanumeric': 0.19737954353338968, 'fraction_numerical': 0.01014370245139476, 'mean_word_length': 4.26, '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': '3933798', 'n_tokens_mistral': 892, 'n_tokens_neox': 825, 'n_words': 280}