<commit_before>@echo Off

echo "argument 1 = [%1]"

set config=%1
if "%config%" == "" (
   set config=Release
)

echo "config = [%config%]"

set version=
if not "%PackageVersion%" == "" (
   set version=-Version %PackageVersion%
)

echo "version = [%version%]"

REM variables
rem EDIT: set your msbuild for local debug
rem set msbuild="c:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\MSBuild\15.0\Bin\MSBuild.exe"
set msbuild="c:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe"

if "%nuget%" == "" (
  set nuget="c:\nuget\nuget.exe"
)

REM Build
echo
echo "---> Build"

%msbuild% SearchAThing.Sci.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
if not "%errorlevel%"=="0" goto failure

REM Unit tests
echo
echo "---> Unit tests"

call %nuget% install xunit.runner.console -Version 2.2.0 -OutputDirectory packages
packages\xunit.runner.console.2.2.0\tools\xunit.console.exe tests\bin\%config%\SearchAThing.Sci.Tests.dll
if not "%errorlevel%"=="0" goto failure

REM Package
echo
echo "---> Package"

mkdir Build
call %nuget% pack "src\SearchAThing.Sci.csproj" -symbols -o Build -p Configuration=%config% %version%<commit_msg>build<commit_after>@echo Off

echo "argument 1 = [%1]"

set config=%1
if "%config%" == "" (
   set config=Release
)

echo "config = [%config%]"

set version=
if not "%PackageVersion%" == "" (
   set version=-Version %PackageVersion%
)

echo "version = [%version%]"

REM variables
rem EDIT: set your msbuild for local debug
rem set msbuild="c:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\MSBuild\15.0\Bin\MSBuild.exe"
set msbuild="c:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe"

if "%nuget%" == "" (
  set nuget="c:\nuget\nuget.exe"
)

REM Build
echo
echo "---> Build"

call %msbuild% SearchAThing.Sci.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
if not "%errorlevel%"=="0" goto failure

REM Unit tests
echo
echo "---> Unit tests"

call %nuget% install xunit.runner.console -Version 2.2.0 -OutputDirectory packages
packages\xunit.runner.console.2.2.0\tools\xunit.console.exe tests\bin\%config%\SearchAThing.Sci.Tests.dll
if not "%errorlevel%"=="0" goto failure

REM Package
echo
echo "---> Package"

mkdir Build
call %nuget% pack "src\SearchAThing.Sci.csproj" -symbols -o Build -p Configuration=%config% %version%
{'fraction_non_alphanumeric': 0.16575515355490114, 'fraction_numerical': 0.01766933108960875, 'mean_word_length': 4.55607476635514, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3886553', 'n_tokens_mistral': 900, 'n_tokens_neox': 845, 'n_words': 216}