<commit_before>@ECHO off

REM
REM Automated Build Script for TEMPLATE_PROJECT_NAME to automate the update process by grabbing the latest from the source
REM control repository, used here is subversion (svn) though it shouldn't be hard to modify to Git or Hg.
REM
REM This may be run by an automated process to clean and/or build each project with an /automated/auto_ script.
REM
REM Available on github: https://www.github.com/timbeaudet/build_automation/ under the unliscense agreement.
REM -------------------------------------------------------------------------------------------------------------------

REM This should go back to project_root to update, which by default was 2 levels back from: project_root/build/automated/
PUSHD ..\..\
svn update
POPD
<commit_msg>Windows update script updated to print to file, and check if abs_detailed_report was defined.<commit_after>@ECHO off

REM
REM Automated Build Script to automate the update process by grabbing the latest from the source
REM control repository, used here is subversion (svn) though it shouldn't be hard to modify to Git or Hg.
REM
REM This may be run by an automated process to clean and/or build each project with an /automated/auto_ script.
REM
REM Available on github: https://www.github.com/timbeaudet/build_automation/ under the unliscense agreement.
REM -------------------------------------------------------------------------------------------------------------------

REM This should go back to project_root to update, which by default was 2 levels back from: project_root/build/automated/

IF NOT DEFINED abs_detailed_report_file (
	ECHO WARNING: abs_detailed_report_file was not set.
	SET abs_detailed_report_file="auto_build_report.txt"
)

(ECHO.)>>%abs_detailed_report_file%
(ECHO.)>>%abs_detailed_report_file%
(ECHO updating from source control of %CD%)>>%abs_detailed_report_file%
(ECHO ========================================================)>>%abs_detailed_report_file%

PUSHD ..\..\
(svn update --quiet --non-interactive)>>%abs_detailed_report_file%
POPD

{'fraction_non_alphanumeric': 0.1971624266144814, 'fraction_numerical': 0.0009784735812133072, 'mean_word_length': 2.917624521072797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '794560', 'n_tokens_mistral': 574, 'n_tokens_neox': 531, 'n_words': 222}