<commit_before>version: v1-winbuild-{build}

image: Visual Studio 2017

platform:
  - Win32
  - x64

environment:
  vspath: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community'

configuration:
  - Release

install:
  - cmd: set PATH=%MSYS2_PREFIX%\bin;C:\msys64\usr\bin;%PATH%
  - cmd: C:\msys64\usr\bin\pacman -Su --noconfirm bison flex

before_build:
  - if %PLATFORM%==Win32 call "%vspath%\VC\Auxiliary\Build\vcvars32.bat"
  - if %PLATFORM%==x64   call "%vspatH%\VC\Auxiliary\Build\vcvars64.bat"

build_script:
  - powershell ".\ci\do-ut.ps1;exit $LASTEXITCODE"
  - cd build
  - cpack
<commit_msg>ci: download WinFlexBison from GitHub instead of MSYS (#2740)<commit_after>version: v1-winbuild-{build}

image: Visual Studio 2017

platform:
  - Win32
  - x64

environment:
  vspath: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community'
  winflexbison: https://github.com/lexxmark/winflexbison/releases/download/v2.5.22/win_flex_bison-2.5.22.zip
  PATH: '%PATH%;C:\WinFlexBison'

configuration:
  - Release

install:
  - ps: Invoke-WebRequest -O winflexbison.zip $env:winflexbison
  - ps: Expand-Archive winflexbison.zip -Destination /WinFlexBison
  - ps: Copy-Item -Path /WinFlexBison/win_bison.exe /WinFlexBison/bison.exe
  - ps: Copy-Item -Path /WinFlexBison/win_flex.exe /WinFlexBison/flex.exe

before_build:
  - if %PLATFORM%==Win32 call "%vspath%\VC\Auxiliary\Build\vcvars32.bat"
  - if %PLATFORM%==x64   call "%vspatH%\VC\Auxiliary\Build\vcvars64.bat"

build_script:
  - powershell ".\ci\do-ut.ps1;exit $LASTEXITCODE"
  - cd build
  - cpack

{'fraction_non_alphanumeric': 0.14140127388535031, 'fraction_numerical': 0.041401273885350316, 'mean_word_length': 3.940251572327044, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1618061', 'n_tokens_mistral': 684, 'n_tokens_neox': 626, 'n_words': 111}