<commit_before># This workflow will download a prebuilt Ruby version, install dependencies and
# run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  schedule:
    - cron: '16 4 12 * *'

jobs:
  test:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        ruby: [2.7, "3.0", "3.1"]

    steps:
      - uses: actions/checkout@v2
      - name: Install non-ruby dependencies
        run: |
          # Ensure all packages can be found
          sudo apt-get update
          # Needed for gtk3 gem
          sudo apt-get install libgtk-3-dev
          # Needed for gstreamer gem
          sudo apt-get install libgstreamer1.0-dev
          # Needed to set up sound player pipeline
          sudo apt-get install gstreamer1.0-plugins-base
          sudo apt-get install gstreamer1.0-plugins-good
          sudo apt-get install gstreamer1.0-plugins-bad
          # Needed to play sound
          sudo apt-get install pulseaudio
          # Provides xvfb-run
          sudo apt-get install xvfb

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - name: Run unit tests
        run: xvfb-run bundle exec rake test:unit

  rubocop:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2<commit_msg>Update version of GitHub Action actions/checkout<commit_after># This workflow will download a prebuilt Ruby version, install dependencies and
# run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: CI

"on":
  push:
    branches: [master]
  pull_request:
    branches: [master]
  schedule:
    - cron: '16 4 12 * *'

jobs:
  test:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        ruby: [2.7, "3.0", "3.1"]

    steps:
      - uses: actions/checkout@v3
      - name: Install non-ruby dependencies
        run: |
          # Ensure all packages can be found
          sudo apt-get update
          # Needed for gtk3 gem
          sudo apt-get install libgtk-3-dev
          # Needed for gstreamer gem
          sudo apt-get install libgstreamer1.0-dev
          # Needed to set up sound player pipeline
          sudo apt-get install gstreamer1.0-plugins-base
          sudo apt-get install gstreamer1.0-plugins-good
          sudo apt-get install gstreamer1.0-plugins-bad
          # Needed to play sound
          sudo apt-get install pulseaudio
          # Provides xvfb-run
          sudo apt-get install xvfb

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - name: Run unit tests
        run: xvfb-run bundle exec rake test:unit

  rubocop:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
{'fraction_non_alphanumeric': 0.08397457343593175, 'fraction_numerical': 0.01605888256942121, 'mean_word_length': 1.9692154915590865, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '209254', 'n_tokens_mistral': 979, 'n_tokens_neox': 915, 'n_words': 280}