<commit_before>---
name: Continuous Integration

on: [push, pull_request]

jobs:

  php-cs-fixer:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: shivammathur/setup-php@v2
        with:
          php-version: '8.0'
          coverage: none
          tools: composer, cs2pr, php-cs-fixer
      - run: composer install
      - uses: actions/cache@v2
        with:
          path: .php-cs-fixer.cache
          key: php-cs-fixer
      - run: php-cs-fixer fix --allow-risky=yes --diff --dry-run --format=checkstyle | cs2pr

  phpstan:
    runs-on: ubuntu-latest
    name: phpstan
    steps:
      - uses: actions/checkout@v2
      - uses: shivammathur/setup-php@v2
        with:
          php-version: '8.0'
          coverage: none
          tools: composer, cs2pr, phpstan
      - run: composer install
      - uses: actions/cache@v2
        with:
          path: resultCache.php
          key: phpstan<commit_msg>use intersection mode in pull request context<commit_after>---
name: Continuous Integration

on: [push, pull_request]

jobs:

  php-cs-fixer:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: shivammathur/setup-php@v2
        with:
          php-version: '8.0'
          coverage: none
          tools: composer, cs2pr, php-cs-fixer
      - run: composer install
      - uses: actions/cache@v2
        with:
          path: .php-cs-fixer.cache
          key: php-cs-fixer
      - if: ${{ github.event_name == 'push' }}
        run: php-cs-fixer fix --diff --dry-run --format=checkstyle | cs2pr
      - if: ${{ github.event_name == 'pull_request' }}
        run: >
          php-cs-fixer fix
          --diff
          --dry-run
          --format=checkstyle
          --path-mode=intersection
          $(git diff --name-only --diff-filter=ACMRTUXB "${COMMIT_RANGE}")
          | cs2pr

  phpstan:
    runs-on: ubuntu-latest
    name: phpstan
    steps:
      - uses: actions/checkout@v2
      - uses: shivammathur/setup-php@v2
        with:
          php-version: '8.0'
          coverage: none
          tools: composer, cs2pr, phpstan
      - run: composer install
      - uses: actions/cache@v2
        with:
          path: resultCache.php
          key: phpstan
{'fraction_non_alphanumeric': 0.11762094984465157, 'fraction_numerical': 0.011984021304926764, 'mean_word_length': 1.6961722488038278, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5969546', 'n_tokens_mistral': 783, 'n_tokens_neox': 745, 'n_words': 167}