<commit_before>language: php

sudo: true

php:
  - 7.0

services:
  - mysql

git:
  submodules: false

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

before_install:
    - export CHROME_BIN=chromium-browser
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start

before_script:
    - bash .travis.install-mysql-5.7.sh
    - nvm install 6
    - nvm use 6
    - curl -o- -L https://yarnpkg.com/install.sh | bash
    - export PATH=$HOME/.yarn/bin:$PATH
    - yarn install --prefer-offline
    - npm rebuild node-sass # patch for Error: ENOENT: no such file or directory, scandir '**/node_modules/node-sass/vendor' https://github.com/sass/node-sass/issues/1579
    - phpenv config-rm xdebug.ini
    - cp app/config/parameters.yml.dist app/config/parameters.yml
    - composer self-update
    - composer install --no-interaction --prefer-dist
    - app/console doctrine:database:create --env=test --no-interaction --quiet
    - app/console doctrine:migrations:migrate  --env=test --no-interaction --quiet
    - app/console cache:warmup --env=test --quiet

script:
    - app/console security:check --end-point=http://security.sensiolabs.org/check_lock
    - app/console lint:yaml @AppBundle
    - app/console lint:twig app/Resources
    - app/console lint:yaml app/config
    - app/console doctrine:schema:validate --env=test
    - ./bin/phpunit -c app/
    - ./bin/php-cs-fixer fix --diff --dry-run ./src/AppBundle/
    - npm run lint
    - npm run test

notifications:
    slack:
        secure: <KEY>
<commit_msg>fix The command "yarn install --prefer-offline" failed and exited with 1 during .<commit_after>language: php

sudo: true

php:
  - 7.0

services:
  - mysql

git:
  submodules: false

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

before_install:
    - export CHROME_BIN=chromium-browser
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start

before_script:
    - bash .travis.install-mysql-5.7.sh
    - nvm install 6
    - nvm use 6
    - curl -o- -L https://yarnpkg.com/install.sh | bash
    - export PATH=$HOME/.yarn/bin:$PATH
    - yarn install
    - npm rebuild node-sass # patch for Error: ENOENT: no such file or directory, scandir '**/node_modules/node-sass/vendor' https://github.com/sass/node-sass/issues/1579
    - phpenv config-rm xdebug.ini
    - cp app/config/parameters.yml.dist app/config/parameters.yml
    - composer self-update
    - composer install --no-interaction --prefer-dist
    - app/console doctrine:database:create --env=test --no-interaction --quiet
    - app/console doctrine:migrations:migrate  --env=test --no-interaction --quiet
    - app/console cache:warmup --env=test --quiet

script:
    - app/console security:check --end-point=http://security.sensiolabs.org/check_lock
    - app/console lint:yaml @AppBundle
    - app/console lint:twig app/Resources
    - app/console lint:yaml app/config
    - app/console doctrine:schema:validate --env=test
    - ./bin/phpunit -c app/
    - ./bin/php-cs-fixer fix --diff --dry-run ./src/AppBundle/
    - npm run lint
    - npm run test

notifications:
    slack:
        secure: <KEY>

{'fraction_non_alphanumeric': 0.12980006347191367, 'fraction_numerical': 0.00856870834655665, 'mean_word_length': 2.45993413830955, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '2034781', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1084, 'n_words': 247}