<commit_before>name: CI
on:
  push:
    branches:
      - main
      - "!dependabot/**"
  pull_request:
  workflow_dispatch:
jobs:
  jest:
    name: Jest (Node v${{ matrix.node }})
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        node: [10, 12, 14, 15]
    steps:
      - name: Checkout
        uses: actions/checkout@v2.3.4
      - name: Cache node modules
        id: cache
        uses: actions/cache@v2.1.6
        env:
          cache-name: cache-node-modules
        with:
          path: node_modules
          key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
      - name: Load Node version ${{ matrix.node }}
        uses: actions/setup-node@v2.1.5
        with:
          node-version: ${{ matrix.node }}
      - name: Npm Install
        if: steps.cache.outputs.cache-hit != 'true'
        run: npm ci
      - name: Run Jest
        run: npm run test:ci
      - name: Run Coveralls
        uses: coverallsapp/github-action@v1.1.2
        if: matrix.node == '12'
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          path-to-lcov: ./reports/lcov.info
  flow:
    name: Flow type checking
    runs-on: ubuntu-latest
    steps:
        # Checkss out the repository under $GITHUB_WORKSPACE
      - name: Checkout
        uses: actions/checkout@v2.3.4
      - name: Cache node modules
        id: cache
        uses: actions/cache@v2.1.6
        env:
          cache-name: cache-node-modules
        with:
          path: node_modules
          key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
      - name: Load Node
        uses: actions/setup-node@v2.1.5
      - name: Npm Install
        if: steps.cache.outputs.cache-hit != 'true'
        run: npm ci
      - name: Flow type check
        run: npm run flow
  eslint:
    name: ESLint (Node v${{ matrix.node }})
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node: [12]
    steps:
      - name: Checkout
        uses: actions/checkout@v2.3.4
      - name: Cache node modules
        id: cache
        uses: actions/cache@v2.1.6
        env:
          cache-name: cache-node-modules
        with:
          path: node_modules
          key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
      - name: Load Node version ${{ matrix.node }}
        uses: actions/setup-node@v2.1.5
        with:
          node-version: ${{ matrix.node }}
      - name: Npm Install
        if: steps.cache.outputs.cache-hit != 'true'
        run: npm ci
      - name: Run ESLint
        run: npm run lint
  diff-breakUpAriaJSON:
    name: Compare JSON to src output
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2.3.4
      - name: Cache node modules
        id: cache
        uses: actions/cache@v2.1.6
        env:
          cache-name: cache-node-modules
        with:
          path: node_modules
          key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
      - name: Load Node version
        uses: actions/setup-node@v2.1.5
      - name: Npm Install
        if: steps.cache.outputs.cache-hit != 'true'
        run: npm ci
      - name: Run diff check for the breakUpAriaJSON script
        run: node scripts/breakUpAriaJSON.js && git diff --exit-code -- src<commit_msg>chore(deps): bump actions/setup-node from 2.1.5 to 2.2.0<commit_after>name: CI
on:
  push:
    branches:
      - main
      - "!dependabot/**"
  pull_request:
  workflow_dispatch:
jobs:
  jest:
    name: Jest (Node v${{ matrix.node }})
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        node: [10, 12, 14, 15]
    steps:
      - name: Checkout
        uses: actions/checkout@v2.3.4
      - name: Cache node modules
        id: cache
        uses: actions/cache@v2.1.6
        env:
          cache-name: cache-node-modules
        with:
          path: node_modules
          key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
      - name: Load Node version ${{ matrix.node }}
        uses: actions/setup-node@v2.2.0
        with:
          node-version: ${{ matrix.node }}
      - name: Npm Install
        if: steps.cache.outputs.cache-hit != 'true'
        run: npm ci
      - name: Run Jest
        run: npm run test:ci
      - name: Run Coveralls
        uses: coverallsapp/github-action@v1.1.2
        if: matrix.node == '12'
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          path-to-lcov: ./reports/lcov.info
  flow:
    name: Flow type checking
    runs-on: ubuntu-latest
    steps:
        # Checkss out the repository under $GITHUB_WORKSPACE
      - name: Checkout
        uses: actions/checkout@v2.3.4
      - name: Cache node modules
        id: cache
        uses: actions/cache@v2.1.6
        env:
          cache-name: cache-node-modules
        with:
          path: node_modules
          key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
      - name: Load Node
        uses: actions/setup-node@v2.2.0
      - name: Npm Install
        if: steps.cache.outputs.cache-hit != 'true'
        run: npm ci
      - name: Flow type check
        run: npm run flow
  eslint:
    name: ESLint (Node v${{ matrix.node }})
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node: [12]
    steps:
      - name: Checkout
        uses: actions/checkout@v2.3.4
      - name: Cache node modules
        id: cache
        uses: actions/cache@v2.1.6
        env:
          cache-name: cache-node-modules
        with:
          path: node_modules
          key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
      - name: Load Node version ${{ matrix.node }}
        uses: actions/setup-node@v2.2.0
        with:
          node-version: ${{ matrix.node }}
      - name: Npm Install
        if: steps.cache.outputs.cache-hit != 'true'
        run: npm ci
      - name: Run ESLint
        run: npm run lint
  diff-breakUpAriaJSON:
    name: Compare JSON to src output
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2.3.4
      - name: Cache node modules
        id: cache
        uses: actions/cache@v2.1.6
        env:
          cache-name: cache-node-modules
        with:
          path: node_modules
          key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
      - name: Load Node version
        uses: actions/setup-node@v2.2.0
      - name: Npm Install
        if: steps.cache.outputs.cache-hit != 'true'
        run: npm ci
      - name: Run diff check for the breakUpAriaJSON script
        run: node scripts/breakUpAriaJSON.js && git diff --exit-code -- src
{'fraction_non_alphanumeric': 0.13530685920577618, 'fraction_numerical': 0.015595667870036101, 'mean_word_length': 1.7692922830867652, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1043810', 'n_tokens_mistral': 2310, 'n_tokens_neox': 2239, 'n_words': 557}