<commit_before>name: "Continuous Integration"
on:
    push:

jobs:
    tests:
        name: "CI (PHP ${{ matrix.php-version }} on ${{ matrix.os }})"
        runs-on: ${{ matrix.os }}

        strategy:
            matrix:
                os: [ "ubuntu-latest" ]
                php-version: [ "7.3", "7.4", "8.0" ]
        steps:
            - name: "Checkout"
              uses: "actions/checkout@v2"

            - name: "Install PHP"
              uses: "shivammathur/setup-php@v2"
              with:
                  coverage: "pcov"
                  extensions: "json"
                  php-version: "${{ matrix.php-version }}"
                  tools: "composer:v2"

            - name: "Get composer cache directory"
              id: "composercache"
              run: 'echo "::set-output name=dir::$(composer config cache-files-dir)"'

            - name: "Cache composer dependencies"
              uses: "actions/cache@v2"
              with:
                  path: "${{ steps.composercache.outputs.dir }}"
                  key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}"
                  restore-keys: "${{ runner.os }}-composer-"

            - name: "Install Composer dependencies"
              run: |
                composer install --no-progress --prefer-dist --optimize-autoloader

            - name: "Run unit tests"
              run: "vendor/bin/phpunit --verbose --coverage-text"
<commit_msg>Run actions also for PRs<commit_after>name: "Continuous Integration"
on:
    push:
    pull_request:

jobs:
    tests:
        name: "CI (PHP ${{ matrix.php-version }} on ${{ matrix.os }})"
        runs-on: ${{ matrix.os }}

        strategy:
            matrix:
                os: [ "ubuntu-latest" ]
                php-version: [ "7.3", "7.4", "8.0" ]
        steps:
            - name: "Checkout"
              uses: "actions/checkout@v2"

            - name: "Install PHP"
              uses: "shivammathur/setup-php@v2"
              with:
                  coverage: "pcov"
                  extensions: "json"
                  php-version: "${{ matrix.php-version }}"
                  tools: "composer:v2"

            - name: "Get composer cache directory"
              id: "composercache"
              run: 'echo "::set-output name=dir::$(composer config cache-files-dir)"'

            - name: "Cache composer dependencies"
              uses: "actions/cache@v2"
              with:
                  path: "${{ steps.composercache.outputs.dir }}"
                  key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}"
                  restore-keys: "${{ runner.os }}-composer-"

            - name: "Install Composer dependencies"
              run: |
                composer install --no-progress --prefer-dist --optimize-autoloader

            - name: "Run unit tests"
              run: "vendor/bin/phpunit --verbose --coverage-text"

{'fraction_non_alphanumeric': 0.14422747516272696, 'fraction_numerical': 0.006851661527920521, 'mean_word_length': 1.4212271973466004, 'pattern_counts': {'":': 2, '<': 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': '2235283', 'n_tokens_mistral': 874, 'n_tokens_neox': 827, 'n_words': 183}