<commit_before>setlocal
@echo ON

cd %APPVEYOR_BUILD_FOLDER%
mkdir -p tmp
cd tmp

:: get version label
appveyor DownloadFile http://buildbot.roessler.systems/files/qt-bin/UnxUtils.zip -Filename UnxUtils.zip
7z x UnxUtils.zip
cp usr\local\wbin\date.exe .

cd ..

git describe --exact-match HEAD
if %ERRORLEVEL% == 0 (
    SET release=1
) else (
    SET release=0
)
if %release% == 0 (
    for /f %%i in ('tmp\date.exe -u +"%%Y%%m%%d%%H%%M"') do set datetime=%%i

    ::for /f %%i in ('git rev-parse --abbrev-ref HEAD') do set branch=%%i
    set branch=%APPVEYOR_REPO_BRANCH%

    for /f %%i in ('git rev-parse --short HEAD') do set revision=%%i
) else (
    for /f %%i in ('git describe --tags') do set version=%%i
)

if %release% == 0 (
    set version=%datetime%-%branch%-%revision%
)
echo #define REVISION "%version%" > src\application\revision.h
appveyor UpdateBuild -Version "%datetime%"


cd tmp
appveyor DownloadFile http://buildbot.roessler.systems/files/qt-bin/protobuf-win-%ARCH%.7z -Filename protolibs.7z
7z x protolibs.7z
cd protolibs
if %ARCH% == x64 (
    SET PROTODIR=%HOMEDRIVE%%HOMEPATH%\bin\protobuf\vsprojects\x64\Release
) else (
    SET PROTODIR=%HOMEDRIVE%%HOMEPATH%\bin\protobuf\vsprojects\Release
)
mkdir -p %PROTODIR%
mv protoc.exe %PROTODIR%\
mv libprotoc.lib %PROTODIR%\
cp libprotobuf.lib %PROTODIR%\
mv libprotobuf.lib %QTDIR%\lib\
cd ..

SET PROTOVERSION=2.6.1
appveyor DownloadFile https://github.com/google/protobuf/archive/v%PROTOVERSION%.zip -Filename protosrc.zip<commit_msg>build/windows: using full version name for build<commit_after>setlocal
@echo ON

cd %APPVEYOR_BUILD_FOLDER%
mkdir -p tmp
cd tmp

:: get version label
appveyor DownloadFile http://buildbot.roessler.systems/files/qt-bin/UnxUtils.zip -Filename UnxUtils.zip
7z x UnxUtils.zip
cp usr\local\wbin\date.exe .

cd ..

git describe --exact-match HEAD
if %ERRORLEVEL% == 0 (
    SET release=1
) else (
    SET release=0
)
if %release% == 0 (
    for /f %%i in ('tmp\date.exe -u +"%%Y%%m%%d%%H%%M"') do set datetime=%%i

    ::for /f %%i in ('git rev-parse --abbrev-ref HEAD') do set branch=%%i
    set branch=%APPVEYOR_REPO_BRANCH%

    for /f %%i in ('git rev-parse --short HEAD') do set revision=%%i
) else (
    for /f %%i in ('git describe --tags') do set version=%%i
)

if %release% == 0 (
    set version=%datetime%-%branch%-%revision%
)
echo #define REVISION "%version%" > src\application\revision.h
appveyor UpdateBuild -Version "%version%"


cd tmp
appveyor DownloadFile http://buildbot.roessler.systems/files/qt-bin/protobuf-win-%ARCH%.7z -Filename protolibs.7z
7z x protolibs.7z
cd protolibs
if %ARCH% == x64 (
    SET PROTODIR=%HOMEDRIVE%%HOMEPATH%\bin\protobuf\vsprojects\x64\Release
) else (
    SET PROTODIR=%HOMEDRIVE%%HOMEPATH%\bin\protobuf\vsprojects\Release
)
mkdir -p %PROTODIR%
mv protoc.exe %PROTODIR%\
mv libprotoc.lib %PROTODIR%\
cp libprotobuf.lib %PROTODIR%\
mv libprotobuf.lib %QTDIR%\lib\
cd ..

SET PROTOVERSION=2.6.1
appveyor DownloadFile https://github.com/google/protobuf/archive/v%PROTOVERSION%.zip -Filename protosrc.zip
{'fraction_non_alphanumeric': 0.15203145478374835, 'fraction_numerical': 0.011140235910878113, 'mean_word_length': 3.940129449838188, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7431300', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1157, 'n_words': 287}