<commit_before>---
name: Basic builds

on:
  push:
  pull_request:

jobs:
  clang-format:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@main
      - uses: DoozyX/clang-format-lint-action@v0.14
        with:
          clangFormatVersion: 14
          source: examples

  automake:
    strategy:
      matrix:
        include:
          # Mac OSX
          - os: macos-latest
            cc: gcc
            cxx: g++
          - os: macos-latest
            cc: clang
            cxx: clang++
          # Linux
          - os: ubuntu-latest
            cc: gcc
            cxx: g++
          - os: ubuntu-latest
            cc: clang
            cxx: clang++
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout
        uses: actions/checkout@main
      - run: brew install automake
        if: ${{ startswith(matrix.os, 'macos') }}
      - if: ${{ matrix.cxx }}
        run: echo "CXX=${{ matrix.cxx }}" >> $GITHUB_ENV
      - if: ${{ matrix.cc }}
        run: echo "CC=${{ matrix.cc }}" >> $GITHUB_ENV
      - name: Configure
        run: |
          autoreconf -i .
          ./configure
      - name: Build and test
        run: make tdd

  cmake:
    strategy:
      matrix:
        include:
          # Windows
          - os: windows-latest
            cpp_version: 17
          # Linux
          #   CMake different C++ versions with clang
          - os: ubuntu-latest
            cpp_version: 98
            cxx: clang++
            cc: clang
          - os: ubuntu-latest
            cpp_version: 11
            cxx: clang++
            cc: clang
          - os: ubuntu-latest
            cpp_version: 14
            cxx: clang++
            cc: clang
          - os: ubuntu-latest
            cpp_version: 17
            cxx: clang++
            cc: clang
          #   CMake different C++ versions with gcc
          - os: ubuntu-latest
            cpp_version: 98
            cxx: g++
            cc: gcc
          - os: ubuntu-latest
            cpp_version: 11
            cxx: g++
            cc: gcc
          - os: ubuntu-latest
            cpp_version: 14
            cxx: g++
            cc: gcc
          - os: ubuntu-latest
            cpp_version: 17
            cxx: g++
            cc: gcc
          # Mac OSX
          - os: macos-latest
            cpp_version: 98
          - os: macos-latest
            cpp_version: 17
            cxx: clang++
            cc: clang
          - os: macos-latest
            cpp_version: 14
            cxx: g++
            cc: gcc
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout
        uses: actions/checkout@main
      - if: ${{ matrix.cxx }}
        run: echo "CXX=${{ matrix.cxx }}" >> $GITHUB_ENV
      - if: ${{ matrix.cc }}
        run: echo "CC=${{ matrix.cc }}" >> $GITHUB_ENV
      - name: Configure
        run: >
          cmake
          -B build
          -S .
          -D CMAKE_CXX_STANDARD=${{ matrix.cpp_version }}
        if: ${{ matrix.cpp_version }}
      - name: Build
        run: cmake --build build --verbose
      - name: Test
        run: ctest --test-dir build<commit_msg>Add Visual Studio Clang-CL build<commit_after>---
name: Basic builds

on:
  push:
  pull_request:

jobs:
  clang-format:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@main
      - uses: DoozyX/clang-format-lint-action@v0.14
        with:
          clangFormatVersion: 14
          source: examples

  automake:
    strategy:
      matrix:
        include:
          # Mac OSX
          - os: macos-latest
            cc: gcc
            cxx: g++
          - os: macos-latest
            cc: clang
            cxx: clang++
          # Linux
          - os: ubuntu-latest
            cc: gcc
            cxx: g++
          - os: ubuntu-latest
            cc: clang
            cxx: clang++
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout
        uses: actions/checkout@main
      - run: brew install automake
        if: ${{ startswith(matrix.os, 'macos') }}
      - if: ${{ matrix.cxx }}
        run: echo "CXX=${{ matrix.cxx }}" >> $GITHUB_ENV
      - if: ${{ matrix.cc }}
        run: echo "CC=${{ matrix.cc }}" >> $GITHUB_ENV
      - name: Configure
        run: |
          autoreconf -i .
          ./configure
      - name: Build and test
        run: make tdd

  cmake:
    strategy:
      matrix:
        include:
          # Windows
          - os: windows-latest
            cpp_version: 17
          # Linux
          #   CMake different C++ versions with clang
          - os: ubuntu-latest
            cpp_version: 98
            cxx: clang++
            cc: clang
          - os: ubuntu-latest
            cpp_version: 11
            cxx: clang++
            cc: clang
          - os: ubuntu-latest
            cpp_version: 14
            cxx: clang++
            cc: clang
          - os: ubuntu-latest
            cpp_version: 17
            cxx: clang++
            cc: clang
          #   CMake different C++ versions with gcc
          - os: ubuntu-latest
            cpp_version: 98
            cxx: g++
            cc: gcc
          - os: ubuntu-latest
            cpp_version: 11
            cxx: g++
            cc: gcc
          - os: ubuntu-latest
            cpp_version: 14
            cxx: g++
            cc: gcc
          - os: ubuntu-latest
            cpp_version: 17
            cxx: g++
            cc: gcc
          # Mac OSX
          - os: macos-latest
            cpp_version: 98
          - os: macos-latest
            cpp_version: 17
            cxx: clang++
            cc: clang
          - os: macos-latest
            cpp_version: 14
            cxx: g++
            cc: gcc
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout
        uses: actions/checkout@main
      - if: ${{ matrix.cxx }}
        run: echo "CXX=${{ matrix.cxx }}" >> $GITHUB_ENV
      - if: ${{ matrix.cc }}
        run: echo "CC=${{ matrix.cc }}" >> $GITHUB_ENV
      - name: Configure
        run: >
          cmake
          -B build
          -S .
          -D CMAKE_CXX_STANDARD=${{ matrix.cpp_version }}
      - name: Build
        run: cmake --build build --verbose
      - name: Test
        run: ctest --test-dir build

  visualstudio-clangcl:
    runs-on: windows-latest
    steps:
      - name: Checkout
        uses: actions/checkout@main
      - name: Configure
        run: >
          cmake
          -B build
          -G "Visual Studio 17 2022"
          -T ClangCL
      - name: Build
        run: cmake --build build --verbose
      - name: Test
        run: ctest --test-dir build
{'fraction_non_alphanumeric': 0.10673309178743962, 'fraction_numerical': 0.00966183574879227, 'mean_word_length': 1.1309102605339338, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 22, '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': '3714335', 'n_tokens_mistral': 2163, 'n_tokens_neox': 1996, 'n_words': 533}