<commit_before>@echo off

cd %APPVEYOR_BUILD_FOLDER%

echo Compiler: %COMPILER%
echo Architecture: %MSYS2_ARCH%
echo Platform: %PLATFORM%
echo MSYS2 directory: %MSYS2_DIR%
echo MSYS2 system: %MSYSTEM%
echo Configuration: %CONFIGURATION%
echo Bits: %BIT%

IF %COMPILER%==msys2 (
  @echo on
  SET "PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%"

  bash -lc "cd $APPVEYOR_BUILD_FOLDER && cp -rf windows/* ./"
  bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./bootstrap.sh"
  bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./configure --datadir=/c"
  bash -lc "cd $APPVEYOR_BUILD_FOLDER && make"
  bash -lc "cd $APPVEYOR_BUILD_FOLDER && make install"
  bash -lc "cd $APPVEYOR_BUILD_FOLDER && cp src/.libs/libpostal-*.dll libpostal.dll"
  "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\lib.exe" /def:libpostal.def /out:libpostal.lib /machine:x64
)<commit_msg>[build] also trying make -j4 to the Windows build. Set an option on the Appveyor side that will hopefully not build twice on pull requests<commit_after>@echo off

cd %APPVEYOR_BUILD_FOLDER%

echo Compiler: %COMPILER%
echo Architecture: %MSYS2_ARCH%
echo Platform: %PLATFORM%
echo MSYS2 directory: %MSYS2_DIR%
echo MSYS2 system: %MSYSTEM%
echo Configuration: %CONFIGURATION%
echo Bits: %BIT%

IF %COMPILER%==msys2 (
  @echo on
  SET "PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%"

  bash -lc "cd $APPVEYOR_BUILD_FOLDER && cp -rf windows/* ./"
  bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./bootstrap.sh"
  bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./configure --datadir=/c"
  bash -lc "cd $APPVEYOR_BUILD_FOLDER && make -j4"
  bash -lc "cd $APPVEYOR_BUILD_FOLDER && make install"
  bash -lc "cd $APPVEYOR_BUILD_FOLDER && cp src/.libs/libpostal-*.dll libpostal.dll"
  "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\lib.exe" /def:libpostal.def /out:libpostal.lib /machine:x64
)
{'fraction_non_alphanumeric': 0.14392723381487427, 'fraction_numerical': 0.016051364365971106, 'mean_word_length': 4.683890577507599, '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': '175034', 'n_tokens_mistral': 805, 'n_tokens_neox': 770, 'n_words': 181}