<commit_before>name: Continuous Integration
'on':
  push: null
  pull_request: null
  workflow_dispatch: null
  schedule:
    - cron: '42 15 * * *'
jobs:
  phpunit:
    name: PHPUnit
    runs-on: ubuntu-latest
    strategy:
      matrix:
        operating-system:
          - ubuntu-latest
          - windows-latest
        php-version:
          - '7.3'
          - '7.4'
          - '8.0'
        dependencies:
          - lowest
          - highest
    steps:
      - name: Checkout
        uses: actions/checkout@v1
      - name: 'Setup PHP ${{ matrix.php-version }}'
        uses: shivammathur/setup-php@v2
        with:
          php-version: '${{ matrix.php-version }}'
          coverage: pcov
          ini-values: zend.assertions=1
      - name: Get composer cache directory
        id: composer-cache
        run: 'echo "::set-output name=dir::$(composer config cache-files-dir)"'
      - name: Cache composer dependencies
        uses: actions/cache@v2
        with:
          path: '${{ steps.composer-cache.outputs.dir }}'
          key: '${{ runner.os }}-composer-${{ hashFiles(''**/composer.json'') }}'
          restore-keys: '${{ runner.os }}-composer-'
      - name: Install lowest dependencies
        if: '${{ matrix.dependencies == ''lowest'' }}'
        run: >-
          composer update --prefer-lowest --no-interaction --no-progress
          --no-suggest
      - name: Install highest dependencies
        if: '${{ matrix.dependencies == ''highest'' }}'
        run: composer update --no-interaction --no-progress --no-suggest
      - name: Run PHPUnit
        run: ./vendor/bin/phpunit --coverage-clover=coverage.xml
      - name: Upload coverage report
        uses: codecov/codecov-action@v1
        with:
          file: ./coverage.xml
      - name: Run Demo
        run: php demo/run.php
      - name: Run PHP8 Demo
        if: '${{ matrix.php-version == ''8.0'' }}'
        run: php demo-php8/run.php<commit_msg>Update continuous-integration.yml<commit_after>name: Continuous Integration
on:
  push:
  pull_request:
  workflow_dispatch:
  schedule:
    - cron: '42 15 * * *'
jobs:
  phpunit:
    name: PHPUnit
    runs-on: ubuntu-latest
    strategy:
      matrix:
        operating-system:
          - ubuntu-latest
          - windows-latest
        php-version:
          - '7.3'
          - '7.4'
          - '8.0'
        dependencies:
          - lowest
          - highest
    steps:
      - name: Checkout
        uses: actions/checkout@v1

      - name: Setup PHP ${{ matrix.php-version }}
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-version }}
          coverage: pcov
          ini-values: zend.assertions=1

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

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

      - name: Install lowest dependencies
        if: ${{ matrix.dependencies == 'lowest' }}
        run: >-
          composer update --prefer-lowest --no-interaction --no-progress
          --no-suggest

      - name: Install highest dependencies
        if: ${{ matrix.dependencies == 'highest' }}
        run: composer update --no-interaction --no-progress --no-suggest

      - name: Run test suite
        run: ./vendor/bin/phpunit --coverage-clover=coverage.xml

      - name: Upload coverage report
        uses: codecov/codecov-action@v1
        with:
          file: ./coverage.xml

      - name: Run Demo
        run: php demo/run.php

      - name: Run PHP8 Demo
        if: ${{ matrix.php-version == '8.0' }}
        run: php demo-php8/run.php
{'fraction_non_alphanumeric': 0.1343669250645995, 'fraction_numerical': 0.009819121447028423, 'mean_word_length': 1.7769010043041606, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3822659', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1161, 'n_words': 271}