<commit_before>name: JavaScript Lint

on:
  push:
    paths:
      - '**/*.js'
      - '**/*.json'
      - '.github/workflows/javascript-lint.yml'
  pull_request:
    paths:
      - '**/*.js'
      - '**/*.json'
      - '.github/workflows/javascript-lint.yml'

jobs:
  eslint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1

      - uses: actions/setup-node@v2-beta
        with:
          node-version: '12'

      - uses: actions/cache@v2
        with:
          path: ~/.npm
          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-

      - name: Install Dependencies
        run: |
          npm ci

      - name: npm run lint
        run: |
          npm run lint<commit_msg>github: run lint workflow on lint rule changes (#2270)<commit_after>name: JavaScript Lint

on:
  push:
    paths:
      - '**/*.js'
      - '**/*.cjs'
      - '**/*.mjs'
      - '**/*.json'
      - '.github/workflows/javascript-lint.yml'
  pull_request:
    paths:
      - '**/*.js'
      - '**/*.cjs'
      - '**/*.mjs'
      - '**/*.json'
      - '.github/workflows/javascript-lint.yml'

jobs:
  eslint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1

      - uses: actions/setup-node@v2-beta
        with:
          node-version: '12'

      - uses: actions/cache@v2
        with:
          path: ~/.npm
          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-

      - name: Install Dependencies
        run: |
          npm ci

      - name: npm run lint
        run: |
          npm run lint
{'fraction_non_alphanumeric': 0.17386162034299232, 'fraction_numerical': 0.00827912477823773, 'mean_word_length': 1.4773060029282576, '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': '6871387', 'n_tokens_mistral': 625, 'n_tokens_neox': 589, 'n_words': 115}