<commit_before>rem @echo off
echo **********************************
echo * MeTL BuildScript
echo **********************************

SET build=%1
SET revision=%2
SET branchname=MeTLOverLib
set buildconfig=""
SHIFT & SHIFT

IF "%revision%"=="" GOTO ERROR
IF "%build%"=="prod" (
	SET buildconfig="Release"
)
IF "%build%"=="staging" (
	SET buildconfig="Debug"
)
IF "%buildconfig%"=="" GOTO ERROR

REM Default option is to publish
SET buildtargets=Clean;Build;Publish

:LOOP
IF NOT "%1"=="" (
	IF "%1"=="-skippublish" (
		SET buildtargets=Clean;Build
		REM SHIFT
	)
	IF "%1"=="-skipupdate" (
		SET skipupdate=1
		REM SHIFT
	)
	IF "%1"=="-skippull" (
		SET skippull=1
		REM SHIFT
	)
	IF "%1"=="-branch" (
		SET branchname=%2
		SHIFT
	)
	SHIFT
	GOTO LOOP
)

echo buildtargets=%buildtargets% skipupdate=%skipupdate% skippull=%skippull% branchname=%branchname%

echo.
echo Building Configuration=%buildconfig% with ApplicationRevision=%revision%.

exit

IF DEFINED %skippull% GOTO UPDATE

:PULL
echo.
echo Grabbing latest from source control
hg pull

IF %errorlevel% NEQ 0 GOTO :EOF

:UPDATE
IF DEFINED %skipupdate% GOTO BRANCH
echo.
echo Updating to last changeset 
hg update -C
<commit_msg>Updated build script<commit_after>rem @echo off
echo **********************************
echo * MeTL BuildScript
echo **********************************

SET build=%1
SET revision=%2
SET branchname=MeTLOverLib
set buildconfig=""
SHIFT & SHIFT

IF "%revision%"=="" GOTO ERROR
IF "%build%"=="prod" (
	SET buildconfig="Release"
)
IF "%build%"=="staging" (
	SET buildconfig="Debug"
)
IF "%buildconfig%"=="" GOTO ERROR

REM Default option is to publish
SET buildtargets=Clean;Build;Publish

:LOOP
IF NOT "%1"=="" (
	IF "%1"=="-skippublish" (
		SET buildtargets=Clean;Build
		REM SHIFT
	)
	IF "%1"=="-skipupdate" (
		SET skipupdate=1
		REM SHIFT
	)
	IF "%1"=="-skippull" (
		SET skippull=1
		REM SHIFT
	)
	IF "%1"=="-branch" (
		SET branchname=%2
		SHIFT
	)
	SHIFT
	GOTO LOOP
)

echo buildtargets=%buildtargets% skipupdate=%skipupdate% skippull=%skippull% branchname=%branchname%

echo.
echo Building Configuration=%buildconfig% with ApplicationRevision=%revision%.

GOTO :EOF

IF DEFINED %skippull% GOTO UPDATE

:PULL
echo.
echo Grabbing latest from source control
hg pull

IF %errorlevel% NEQ 0 GOTO :EOF

:UPDATE
IF DEFINED %skipupdate% GOTO BRANCH
echo.
echo Updating to last changeset 
hg update -C

{'fraction_non_alphanumeric': 0.1809403862300588, 'fraction_numerical': 0.009235936188077247, 'mean_word_length': 5.304232804232805, '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': '630015', 'n_tokens_mistral': 895, 'n_tokens_neox': 845, 'n_words': 243}