<commit_before>:: Copyright (c) 2012 The Native Client Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style license that can be
:: found in the LICENSE file.

echo on

set BITS=32
set VCBITS=x86

call buildbot\msvs_env.bat %BITS%
call vcvarsall.bat %VCBITS%

:: Standard script emits its own annotator tags.
call python.bat buildbot/buildbot_standard.py coverage %BITS% newlib --coverage
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

echo @@@BUILD_STEP summarize coverage@@@
call python.bat tools/coverage_summary.py win-x86-%BITS%
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

:: Stop here and don't archive if on trybots.
if %BUILDBOT_SLAVE_TYPE% equ "" exit /b 0
if %BUILDBOT_SLAVE_TYPE% equ "Trybot" exit /b 0

echo @@@BUILD_STEP archive_coverage@@@
set GSUTIL="\b\build\scripts\slave\gsutil.bat"
set GSD_URL="http://gsdview.appspot.com/nativeclient-coverage2/revs"
set VARIANT_NAME="coverage-win-x86-%BITS%"
set COVERAGE_PATH="%VARIANT_NAME%/html/index.html"
if %BUILDBOT_REVISION% equ "" set BUILDBOT_REVISION=None
set LINK_URL="%GSD_URL%/%BUILDBOT_REVISION%/%COVERAGE_PATH%"
set GSD_BASE="gs://nativeclient-coverage2/revs"
set GS_PATH="%GSD_BASE%/%BUILDBOT_REVISION%/%VARIANT_NAME%"
call python.bat /b/build/scripts/slave/gsutil_cp_dir.py -a public-read ^
 scons-out/%VARIANT_NAME%/coverage %GS_PATH%
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%<commit_msg>Fixing windows coverage archive to actually archive.<commit_after>:: Copyright (c) 2012 The Native Client Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style license that can be
:: found in the LICENSE file.

echo on

set BITS=32
set VCBITS=x86

call buildbot\msvs_env.bat %BITS%
call vcvarsall.bat %VCBITS%

:: Standard script emits its own annotator tags.
call python.bat buildbot/buildbot_standard.py coverage %BITS% newlib --coverage
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

echo @@@BUILD_STEP summarize coverage@@@
call python.bat tools/coverage_summary.py win-x86-%BITS%
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

:: Stop here and don't archive if on trybots.
if %BUILDBOT_SLAVE_TYPE% equ "" exit /b 0
if %BUILDBOT_SLAVE_TYPE% equ "Trybot" exit /b 0

echo @@@BUILD_STEP archive_coverage@@@
set GSUTIL=\b\build\third_party\gsutil\gsutil
set GSD_URL=http://gsdview.appspot.com/nativeclient-coverage2/revs
set VARIANT_NAME=coverage-win-x86-%BITS%
set COVERAGE_PATH=%VARIANT_NAME%/html/index.html
if "%BUILDBOT_REVISION%" equ "" set BUILDBOT_REVISION=None
set LINK_URL=%GSD_URL%/%BUILDBOT_REVISION%/%COVERAGE_PATH%
set GSD_BASE=gs://nativeclient-coverage2/revs
set GS_PATH=%GSD_BASE%/%BUILDBOT_REVISION%/%VARIANT_NAME%
set COV_DIR=scons-out/%VARIANT_NAME%/coverage
call python.bat %GSUTIL% cp -a public-read ^
 %COV_DIR%/coverage.lcov %GS_PATH%/coverage.lcov
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
cd %COV_DIR%
call python.bat %GSUTIL% cp -a public-read html %GS_PATH%
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
{'fraction_non_alphanumeric': 0.11726716519374575, 'fraction_numerical': 0.013256288239292998, 'mean_word_length': 5.496688741721854, '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': '7467071', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1103, 'n_words': 295}