<commit_before>name: CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node: [8, 10, 12]
    name: Node ${{ matrix.node }}
    steps:
      - uses: actions/checkout@master
      - name: Use Node.js
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node }}
      - name: Install dependencies
        run: yarn install --frozen-lockfile
      - name: Check source code
        run: |
          yarn lint
          yarn copy:paste:detector
      - name: Compile source code
        run: yarn build
      - name: Run tests
        run: npm run test:unit:coverage
      - name: Upload code coverage to Codecov
        uses: codecov/codecov-action@v1.0.2
        with:
          token: ${{secrets.CODECOV_TOKEN}}
          file: target/coverage/clover.xml<commit_msg>1️⃣ Use @v1 major version tag for Codecov GitHub action<commit_after>name: CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node: [8, 10, 12]
    name: Node ${{ matrix.node }}
    steps:
      - uses: actions/checkout@master
      - name: Use Node.js
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node }}
      - name: Install dependencies
        run: yarn install --frozen-lockfile
      - name: Check source code
        run: |
          yarn lint
          yarn copy:paste:detector
      - name: Compile source code
        run: yarn build
      - name: Run tests
        run: npm run test:unit:coverage
      - name: Upload code coverage to Codecov
        uses: codecov/codecov-action@v1
        with:
          token: ${{secrets.CODECOV_TOKEN}}
          file: target/coverage/clover.xml
{'fraction_non_alphanumeric': 0.1013745704467354, 'fraction_numerical': 0.010309278350515464, 'mean_word_length': 1.8733552631578947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4477317', 'n_tokens_mistral': 572, 'n_tokens_neox': 544, 'n_words': 152}