<commit_before>name: CI

on:
  pull_request:

jobs:
  required-files:
    name: All required files are present
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

      - name: All required files are present
        run: bin/check_required_files_present

  immutability:
    name: No test has been mutated
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
        with:
          path: "new"

      # Pull Requests
      - name: Checkout the target branch
        uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
        with:
          ref: "${{ github.base_ref }}"
          path: "old"

      - name: Check that no test has been mutated
        run: |
          for oldf in old/exercises/*/canonical-data.json; do
            newf=${oldf//old/new}
            ./new/bin/check-immutability.py "$oldf" "$newf"
          done

  schema-validation:
    name: Schema validation
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

      - uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
        with:
          node-version: "12"

      # https://github.com/actions/cache/blob/main/examples.md#node---yarn<commit_msg>build(deps): bump actions/setup-node from 2.4.1 to 2.5.0<commit_after>name: CI

on:
  pull_request:

jobs:
  required-files:
    name: All required files are present
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

      - name: All required files are present
        run: bin/check_required_files_present

  immutability:
    name: No test has been mutated
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
        with:
          path: "new"

      # Pull Requests
      - name: Checkout the target branch
        uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
        with:
          ref: "${{ github.base_ref }}"
          path: "old"

      - name: Check that no test has been mutated
        run: |
          for oldf in old/exercises/*/canonical-data.json; do
            newf=${oldf//old/new}
            ./new/bin/check-immutability.py "$oldf" "$newf"
          done

  schema-validation:
    name: Schema validation
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

      - uses: actions/setup-node@04c56d2f954f1e4c69436aa54cfef261a018f458
        with:
          node-version: "12"

      # https://github.com/actions/cache/blob/main/examples.md#node---yarn
{'fraction_non_alphanumeric': 0.09401709401709402, 'fraction_numerical': 0.1111111111111111, 'mean_word_length': 2.4032869785082176, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5251746', 'n_tokens_mistral': 1131, 'n_tokens_neox': 938, 'n_words': 181}