<commit_before>@echo Running Sonar pre-build script...

@set SonarRunnerProperties=%1
@set ProjectKey=%2
@set ConfigFolder=%3

@echo Sonar runner properties location: %SonarRunnerProperties%
@echo Sonar project key: %ProjectKey%
@echo Sonar config location: %ConfigFolder%

@echo Creating the Sonar config folder...
@rmdir %ConfigFolder% /S /Q
@mkdir %ConfigFolder%

@echo Dumping environment variables... (TODO - REMOVE)
@~dp0\DumpEnvironmentVars.exe

@echo Generating Sonar FxCop file...
@%~dp0\Sonar.FxCopRuleset.exe "%SonarRunnerProperties%" "%ProjectKey%" "%ConfigFolder%\SonarAnalysis.ruleset"
@echo ...done.

@echo Sonar pre-build steps complete.<commit_msg>Revert "Updated prebuild script to pass the Sonar project key"<commit_after>@echo Running Sonar pre-build script...

@set SonarRunnerProperties=%1
@set ConfigFolder=%2

@echo Sonar runner properties location: %SonarRunnerProperties%
@echo Sonar config location: %ConfigFolder%

@echo Creating the Sonar config folder...
@rmdir %ConfigFolder% /S /Q
@mkdir %ConfigFolder%

@echo Generating Sonar FxCop file...
REM @%~dp0\Sonar.FxCopRuleset.exe %SonarRunnerProperties% "%ConfigFolder%\SonarAnalysis.ruleset"
@echo ...done.

@echo Copying a dummy ruleset for the time being...
copy %~dp0\Example.ruleset %ConfigFolder%\SonarAnalysis.ruleset


@echo Sonar pre-build steps complete.
{'fraction_non_alphanumeric': 0.11782252050708426, 'fraction_numerical': 0.006711409395973154, 'mean_word_length': 5.610837438423645, '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': '3606942', 'n_tokens_mistral': 441, 'n_tokens_neox': 419, 'n_words': 130}