<commit_before>name: CI
on: push
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.7

      - name: Install dependencies
        run: bundle install

      - name: Run linter
        run: bundle exec rubocop

  test:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        ruby_version:
          - 2.5
          - 2.6
          - 2.7
          - 3.0
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby_version }}

      - name: Install dependencies
        run: bundle install

      - name: Run tests
        run: bundle exec rake test

  # release:
  #   runs-on: ubuntu-latest
  #   needs: [lint, test]
  #   if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
  #   steps:
  #     - uses: actions/checkout@master

  #     - name: Set up Ruby
  #       uses: actions/setup-ruby@v1
  #       with:
  #         ruby-version: 2.7

  #     - name: Export version from tag name
  #       run: echo ${GITHUB_REF/refs\/tags\//} > VERSION

  #     - name: Build Gem
  #       run: gem build *.gemspec

  #     - name: Setup credentials
  #       run: |
  #         mkdir -p $HOME/.gem
  #         touch $HOME/.gem/credentials
  #         chmod 0600 $HOME/.gem/credentials
  #         printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
  #         printf -- ":github: Bearer ${GITHUB_API_KEY}\n" >> $HOME/.gem/credentials
  #       env:
  #         RUBYGEMS_API_KEY: ${{secrets.KRYSTAL_RUBYGEMS_API_KEY}}
  #         GITHUB_API_KEY: ${{secrets.GITHUB_TOKEN}}

  #     # - name: Publish to RubyGems
  #     #   run: |
  #     #     gem push *.gem

  #     # - name: Publish to GPR
  #     #   run: |
  #     #     gem push --key github --host https://rubygems.pkg.github.com/krystal *.gem
<commit_msg>chore: add ruby 3.1<commit_after>name: CI
on: push
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.7

      - name: Install dependencies
        run: bundle install

      - name: Run linter
        run: bundle exec rubocop

  test:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        ruby_version:
          - 2.5
          - 2.6
          - 2.7
          - '3.0'
          - 3.1
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby_version }}

      - name: Install dependencies
        run: bundle install

      - name: Run tests
        run: bundle exec rake test

  # release:
  #   runs-on: ubuntu-latest
  #   needs: [lint, test]
  #   if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
  #   steps:
  #     - uses: actions/checkout@master

  #     - name: Set up Ruby
  #       uses: actions/setup-ruby@v1
  #       with:
  #         ruby-version: 2.7

  #     - name: Export version from tag name
  #       run: echo ${GITHUB_REF/refs\/tags\//} > VERSION

  #     - name: Build Gem
  #       run: gem build *.gemspec

  #     - name: Setup credentials
  #       run: |
  #         mkdir -p $HOME/.gem
  #         touch $HOME/.gem/credentials
  #         chmod 0600 $HOME/.gem/credentials
  #         printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
  #         printf -- ":github: Bearer ${GITHUB_API_KEY}\n" >> $HOME/.gem/credentials
  #       env:
  #         RUBYGEMS_API_KEY: ${{secrets.KRYSTAL_RUBYGEMS_API_KEY}}
  #         GITHUB_API_KEY: ${{secrets.GITHUB_TOKEN}}

  #     # - name: Publish to RubyGems
  #     #   run: |
  #     #     gem push *.gem

  #     # - name: Publish to GPR
  #     #   run: |
  #     #     gem push --key github --host https://rubygems.pkg.github.com/krystal *.gem

{'fraction_non_alphanumeric': 0.12999494183105717, 'fraction_numerical': 0.01163378856853819, 'mean_word_length': 1.6105610561056105, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '83511', 'n_tokens_mistral': 1478, 'n_tokens_neox': 1379, 'n_words': 302}