<commit_before>name: build

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  linux:
    runs-on: ubuntu-latest
    name: OTP ${{ matrix.otp }} ${{ matrix.os }}.${{ matrix.compiler.compiler }}

    container:
      image: erlang:${{matrix.otp}}

    strategy:
      matrix:
        os: [ linux ]
        compiler:
          - { compiler: GNU-12,  CC: gcc-12,   CXX: g++-12 }
          - { compiler: GNU-11,  CC: gcc-11,   CXX: g++-11 }
          - { compiler: LLVM-12, CC: clang-12, CXX: clang++-12 }
          - { compiler: LLVM-11, CC: clang-11, CXX: clang++-11 }
        otp: ["25.0.4"]

    steps:
    - uses: actions/checkout@v2
    - name: Compile
      run:  make
    - name: Test
      run:  make test

  macOS:
    name: OTP ${{ matrix.otp }} ${{ matrix.os }}.${{ matrix.compiler.compiler }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ macos-latest ]
        compiler:
          - { compiler: XCode, CC: cc, CXX: c++ }
        otp: ["25.0.4"]
    steps:
      - uses: actions/checkout@v2
      - uses: gleam-lang/setup-erlang@v1.1.3
        with:
          otp-version: ${{matrix.otp}}
      - name: Install Base Dependencies
        run: |
          brew update > /dev/null || true
          brew tap Homebrew/bundle
          #brew install erlang
          brew install rebar3
          #brew bundle --verbose
      - name: Compile
        env:
          CC: ${{ matrix.compiler.CC }}
          CXX: ${{ matrix.compiler.CXX }}
          SRC_DIR: ${{ github.workspace }}
          BUILD_DIR: ${{ github.workspace }}/build
          INSTALL_PREFIX: ${{ github.workspace }}/install
        run:  make
      - name: Test
        run:  make test

<commit_msg>Downgrade MacOS test to ERTS 25.0 (eunit tests will be fixed in 25.1.1)<commit_after>name: build

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  linux:
    runs-on: ubuntu-latest
    name: OTP ${{ matrix.otp }} ${{ matrix.os }}.${{ matrix.compiler.compiler }}

    container:
      image: erlang:${{matrix.otp}}

    strategy:
      matrix:
        os: [ linux ]
        compiler:
          - { compiler: GNU-12,  CC: gcc-12,   CXX: g++-12 }
          - { compiler: GNU-11,  CC: gcc-11,   CXX: g++-11 }
          - { compiler: LLVM-12, CC: clang-12, CXX: clang++-12 }
          - { compiler: LLVM-11, CC: clang-11, CXX: clang++-11 }
        otp: ["25.0.4"]

    steps:
    - uses: actions/checkout@v2
    - name: Compile
      run:  make
    - name: Test
      run:  make test

  macOS:
    name: OTP ${{ matrix.otp }} ${{ matrix.os }}.${{ matrix.compiler.compiler }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ macos-latest ]
        compiler:
          - { compiler: XCode, CC: cc, CXX: c++ }
        otp: ["25.0.4"]

    container:
      image: erlang:${{matrix.otp}}

    steps:
      - uses: actions/checkout@v2
      - name: Install Base Dependencies
        run: |
          brew update > /dev/null || true
          brew tap Homebrew/bundle
          #brew install erlang
          brew install rebar3
          #brew bundle --verbose
      - name: Compile
        env:
          CC: ${{ matrix.compiler.CC }}
          CXX: ${{ matrix.compiler.CXX }}
          SRC_DIR: ${{ github.workspace }}
          BUILD_DIR: ${{ github.workspace }}/build
          INSTALL_PREFIX: ${{ github.workspace }}/install
        run:  make
      - name: Test
        run:  make test


{'fraction_non_alphanumeric': 0.14805342426825802, 'fraction_numerical': 0.022733731173628872, 'mean_word_length': 1.6952526799387442, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5973793', 'n_tokens_mistral': 1269, 'n_tokens_neox': 1170, 'n_words': 286}