<commit_before>@echo Off
set config=%1
if "%config%" == "" (
	set config=Release
)

set nuget=
if "%nuget%" == "" (
    set nuget=.nuget\NuGet.exe
)

set apikey=
if "%apikey%" == "" (
    set apikey=%2
)

rem Update self %nuget%
%nuget% update -self
if %errorlevel% neq 0 goto failure

rem Set API key
%nuget% setapikey %apikey% -Source "https://www.myget.org/F/premotion/api/v2/package"
if %errorlevel% neq 0 goto failure
%nuget% setapikey %apikey% -Source "https://nuget.symbolsource.org/MyGet/premotion"
if %errorlevel% neq 0 goto failure

rem Build
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Premotion.Mansion.Twitter.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
if %errorlevel% neq 0 goto failure

rem Package
%nuget% pack Premotion.Mansion.Twitter\Premotion.Mansion.Twitter.csproj -sym -Prop Configuration=Release
if %errorlevel% neq 0 goto failure

rem Publish
%nuget% push Premotion.Mansion.Twitter.0.0.2-alpha.nupkg -Source "https://www.myget.org/F/premotion/api/v2/package"
if %errorlevel% neq 0 goto failure
%nuget% push Premotion.Mansion.Twitter.0.0.2-alpha.symbols.nupkg -Source "https://nuget.symbolsource.org/MyGet/premotion"
if %errorlevel% neq 0 goto failure

:success
echo success
goto end

:failure
echo Failed

:end<commit_msg>+ updated build.bat<commit_after>@echo Off
set config=%1
if "%config%" == "" (
   set config=Release
)

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

set nuget=
if "%nuget%" == "" (
    set nuget=.nuget\NuGet.exe
)

set nunit="packages\NUnit.Runners.2.6.2\tools\nunit-console.exe"

echo Update self %nuget%
%nuget% update -self
if %errorlevel% neq 0 goto failure

echo Restore packages
%nuget% install ".nuget\packages.config" -OutputDirectory packages -NonInteractive
if %errorlevel% neq 0 goto failure

echo Build
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Premotion.Mansion.Twitter.sln /t:Rebuild /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
if %errorlevel% neq 0 goto failure

echo Unit tests
%nunit% Premotion.Mansion.Twitter.Tests\bin\Premotion.Mansion.Twitter.Tests.dll /framework:net-4.5
if %errorlevel% neq 0 goto failure

echo Package
mkdir Build
cmd /c %nuget% pack "Premotion.Mansion.Twitter\Premotion.Mansion.Twitter.csproj" -symbols -o Build -p Configuration=%config% %version%
if %errorlevel% neq 0 goto failure

:success
echo Success
goto end

:failure
echo Failed

:end
{'fraction_non_alphanumeric': 0.1351242983159583, 'fraction_numerical': 0.016840417000801924, 'mean_word_length': 4.722477064220183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '7162320', 'n_tokens_mistral': 951, 'n_tokens_neox': 896, 'n_words': 234}