<commit_before>language: php
php:
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - 7.3
  - nightly

cache:
  directories:
    - vendor
    - $HOME/.composer

env:
  global:
    - DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress"
  matrix:
    - PREFER_LOWEST="--prefer-lowest"
    - PREFER_LOWEST=""

before_script:
  - composer global show hirak/prestissimo -q || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
  - '[ "${TRAVIS_PHP_VERSION:0:1}" == "5" ] && composer remove ely/php-code-style'
  - travis_retry composer update --no-interaction --prefer-source $PREFER_LOWEST
  - travis_retry phpenv rehash

stages:
  - Static Code Analysis
  - Test

jobs:
  include:
    - stage: Static Code Analysis
      php: 7.2
      script:
        - vendor/bin/php-cs-fixer fix -v --dry-run
  allow_failures:
    - php: nightly

script:
  - vendor/bin/phpunit
<commit_msg>Fix travis configuration<commit_after>language: php
php:
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - 7.3
  - nightly

cache:
  directories:
    - vendor
    - $HOME/.composer

env:
  global:
    - DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress"
  matrix:
    - PREFER_LOWEST="--prefer-lowest"
    - PREFER_LOWEST=""

before_script:
  - composer global show hirak/prestissimo -q || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
  - '[ "${TRAVIS_PHP_VERSION:0:1}" == "5" ] && composer remove --no-interaction ely/php-code-style || true'
  - travis_retry composer update --no-interaction --prefer-source $PREFER_LOWEST
  - travis_retry phpenv rehash

stages:
  - Static Code Analysis
  - Test

jobs:
  include:
    - stage: Static Code Analysis
      php: 7.2
      script:
        - vendor/bin/php-cs-fixer fix -v --dry-run
  allow_failures:
    - php: nightly

script:
  - vendor/bin/phpunit

{'fraction_non_alphanumeric': 0.1266025641025641, 'fraction_numerical': 0.018162393162393164, 'mean_word_length': 2.6088631984585744, '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': '1614933', 'n_tokens_mistral': 747, 'n_tokens_neox': 718, 'n_words': 146}