<commit_before>name: CI

on: [push, pull_request]

jobs:
  build:
    name: >-
      ${{ matrix.os }} ${{ matrix.ruby }}
    env:
      CI: true
      TESTOPTS: -v

    runs-on: ${{ matrix.os }}-latest
    if: |
      !(   contains(github.event.pull_request.title,  '[ci skip]')
        || contains(github.event.pull_request.title,  '[skip ci]')
        || contains(github.event.head_commit.message, '[ci skip]')
        || contains(github.event.head_commit.message, '[skip ci]'))
    strategy:
      fail-fast: false
      matrix:
        os: [ ubuntu, macos, windows ]
        ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, head, jruby, truffleruby-head ]
        include:
          - { os: windows , ruby: mingw }
          - { os: ubuntu  , ruby: jruby-head, allow-failure: true }
        exclude:
          - { os: windows , ruby: head }
          - { os: windows , ruby: jruby }
          - { os: windows , ruby: truffleruby-head }

    steps:
      - name: repo checkout
        uses: actions/checkout@v2

      - name: load ruby, ragel
        uses: MSP-Greg/setup-ruby-pkgs@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler: 1
          apt-get: ragel
          brew: ragel
          mingw: _upgrade_ openssl ragel

      - name:  bundle install
        shell: pwsh
        run:   |
          # update RubyGems in Ruby 2.2, bundle install
          if ('${{ matrix.ruby }}' -lt '2.3') {
            gem update --system 2.7.10 --no-document
          }
          bundle install --jobs 4 --retry 3 --path=.bundle/puma

      - name: compile
        run:  bundle exec rake compile

      - name: rubocop
        if: startsWith(matrix.ruby, '2.')
        run: bundle exec rake rubocop

      - name: test
        id: test
        timeout-minutes: 10
        continue-on-error: ${{ matrix.allow-failure || false }}
        if: success() # only run if previous steps have succeeded
        run: bundle exec rake test:all
<commit_msg>Run CI using the default version of Bundler<commit_after>name: CI

on: [push, pull_request]

jobs:
  build:
    name: >-
      ${{ matrix.os }} ${{ matrix.ruby }}
    env:
      CI: true
      TESTOPTS: -v

    runs-on: ${{ matrix.os }}-latest
    if: |
      !(   contains(github.event.pull_request.title,  '[ci skip]')
        || contains(github.event.pull_request.title,  '[skip ci]')
        || contains(github.event.head_commit.message, '[ci skip]')
        || contains(github.event.head_commit.message, '[skip ci]'))
    strategy:
      fail-fast: false
      matrix:
        os: [ ubuntu, macos, windows ]
        ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, head, jruby, truffleruby-head ]
        include:
          - { os: windows , ruby: mingw }
          - { os: ubuntu  , ruby: jruby-head, allow-failure: true }
        exclude:
          - { os: windows , ruby: head }
          - { os: windows , ruby: jruby }
          - { os: windows , ruby: truffleruby-head }

    steps:
      - name: repo checkout
        uses: actions/checkout@v2

      - name: load ruby, ragel
        uses: MSP-Greg/setup-ruby-pkgs@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          apt-get: ragel
          brew: ragel
          mingw: _upgrade_ openssl ragel

      - name:  bundle install
        shell: pwsh
        run:   |
          # update RubyGems in Ruby 2.2, bundle install
          if ('${{ matrix.ruby }}' -lt '2.3') {
            gem update --system 2.7.10 --no-document
          }
          bundle install --jobs 4 --retry 3 --path=.bundle/puma

      - name: compile
        run:  bundle exec rake compile

      - name: rubocop
        if: startsWith(matrix.ruby, '2.')
        run: bundle exec rake rubocop

      - name: test
        id: test
        timeout-minutes: 10
        continue-on-error: ${{ matrix.allow-failure || false }}
        if: success() # only run if previous steps have succeeded
        run: bundle exec rake test:all

{'fraction_non_alphanumeric': 0.1319214085225823, 'fraction_numerical': 0.014034192396019394, 'mean_word_length': 1.7184466019417475, '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': '485544', 'n_tokens_mistral': 1355, 'n_tokens_neox': 1252, 'n_words': 339}