<commit_before>#!/bin/bash

if [[ $AGENT_OS == 'Linux' ]]; then
  sudo apt-get update
  sudo apt-get install -y \
    ninja-build \
    qt5-default \
    libqt5x11extras5-dev \
    libqt5svg5-dev \
    qttools5-dev \
    qtxmlpatterns5-dev-tools \
    libtbb-dev \
    libxt-dev \
    libgtest-dev

  # We have to build gtest on ubuntu...
  cd /usr/src/gtest
  sudo cmake CMakeLists.txt
  sudo make
  sudo cp *.a /usr/lib

elif [[ $AGENT_OS == 'Darwin' ]]; then
  brew install \
    ninja \
    qt5 \
    tbb

  # Install gtest
  cd $PIPELINE_WORKSPACE
  git clone --branch release-1.8.1 --depth 1 https://github.com/google/googletest
  cd googletest
  cmake .
  sudo make install

  # For some reason, not all standard library header files are on
  # Mojave by default. This fixes the issue.
  sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

elif [[ $AGENT_OS == 'Windows_NT' ]]; then
  choco install wget
  choco install ninja

  # tbb
  wget -nv https://data.kitware.com/api/v1/file/5dbb4f19e3566bda4b49e6e9/download -O tbb.zip<commit_msg>Fix installing of gtest in the CI<commit_after>#!/bin/bash

if [[ $AGENT_OS == 'Linux' ]]; then
  sudo apt-get update
  sudo apt-get install -y \
    ninja-build \
    qt5-default \
    libqt5x11extras5-dev \
    libqt5svg5-dev \
    qttools5-dev \
    qtxmlpatterns5-dev-tools \
    libtbb-dev \
    libxt-dev \
    libgtest-dev

  # We have to build gtest on ubuntu...
  cd /usr/src/gtest
  sudo cmake CMakeLists.txt
  sudo make
  sudo cp lib/*.a /usr/lib

elif [[ $AGENT_OS == 'Darwin' ]]; then
  brew install \
    ninja \
    qt5 \
    tbb

  # Install gtest
  cd $PIPELINE_WORKSPACE
  git clone --branch release-1.8.1 --depth 1 https://github.com/google/googletest
  cd googletest
  cmake .
  sudo make install

  # For some reason, not all standard library header files are on
  # Mojave by default. This fixes the issue.
  sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

elif [[ $AGENT_OS == 'Windows_NT' ]]; then
  choco install wget
  choco install ninja

  # tbb
  wget -nv https://data.kitware.com/api/v1/file/5dbb4f19e3566bda4b49e6e9/download -O tbb.zip
{'fraction_non_alphanumeric': 0.10669642857142857, 'fraction_numerical': 0.02857142857142857, 'mean_word_length': 2.661764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '910089', 'n_tokens_mistral': 921, 'n_tokens_neox': 849, 'n_words': 213}