<commit_before>name: Tests for PR

on:
  # Trigger the workflow on push or pull request,
  # but only for the main branch
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  test:
    name: 'Run tests'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@v1
        with:
          node-version: '16'
      - uses: actions/checkout@v2
      - name: 'Cache node_modules'
        uses: actions/cache@v2
        with:
          path: |
            node_modules
            package-lock.json
          key: ${{ runner.os }}-node-v16-${{ hashFiles('package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-v16-
      - name: Install Dependencies
        run: npm install
      - name: Run All Node.js Tests
        run: npm run build
      - name: Run All Node.js Tests
        run: npm run test<commit_msg>ci: add tests to github workflows<commit_after>name: Tests for PR

on:
  # Trigger the workflow on push or pull request,
  # but only for the main branch
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  test:
    name: 'Run tests'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@v1
        with:
          node-version: '16'
      - uses: actions/checkout@v2
      - name: 'Cache node_modules'
        uses: actions/cache@v2
        with:
          path: |
            node_modules
            package-lock.json
          key: ${{ runner.os }}-node-v16-${{ hashFiles('package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-v16-
      - name: Install Dependencies
        run: npm install
      - name: Run All Node.js Tests
        run: npm run build
      - name: Run All Node.js Tests
        run: npm run test-no-ui
{'fraction_non_alphanumeric': 0.10570469798657718, 'fraction_numerical': 0.010067114093959731, 'mean_word_length': 1.694277108433735, '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': '1848042', 'n_tokens_mistral': 582, 'n_tokens_neox': 559, 'n_words': 164}