<commit_before>name: code-sniffer
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]
jobs:
  validate:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - name: PHPCS
        run: |
          docker-compose run --rm php7.2 sh -c '\
            composer install && \
            ./vendor/bin/phpcs
          '<commit_msg>Separate phpcs to its own step to increase readability.<commit_after>name: code-sniffer
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]
jobs:
  phpcs:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - name: Composer install
        run: docker-compose run --rm php7.2 composer install
      - name: phpcs
        run: docker-compose run --rm php7.2 ./vendor/bin/phpcs
{'fraction_non_alphanumeric': 0.11224489795918367, 'fraction_numerical': 0.02040816326530612, 'mean_word_length': 2.019230769230769, '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': '4420369', 'n_tokens_mistral': 284, 'n_tokens_neox': 273, 'n_words': 70}