<commit_before>language: php

php: [5.3, 5.4, 5.5, 5.6, hhvm]

before_script:
  - export WEB_FIXTURES_HOST=http://localhost
  - export WEB_FIXTURES_BROWSER=firefox
  - export DRIVER_HOST=localhost

  - sh -e /etc/init.d/xvfb start
  - export DISPLAY=:99.0
  - sleep 4

  - curl -L http://downloads.sourceforge.net/project/sahi/sahi-v44/sahi_20130429.zip > sahi.zip
  - unzip sahi.zip > /dev/null
  - sed -i -e "s,<path>/usr/bin/firefox</path>,<path>/usr/local/bin/firefox</path>,g" sahi/config/browser_types/linux.xml
  - cd sahi/bin
  - sh sahi.sh > /tmp/sahi_output.log &
  - cd -
  - sleep 4

  - composer install --prefer-source

  - sudo apt-get update > /dev/null
  - sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 > /dev/null
  - sudo sed -i -e "s,/var/www,$(pwd)/vendor/behat/mink/driver-testsuite/web-fixtures,g" /etc/apache2/sites-available/default
  - sudo /etc/init.d/apache2 restart

script: phpunit -v --coverage-clover=coverage.clover

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
<commit_msg>Update Sahi to the 5.0 version<commit_after>language: php

php: [5.3, 5.4, 5.5, 5.6, hhvm]

before_script:
  - export WEB_FIXTURES_HOST=http://localhost
  - export WEB_FIXTURES_BROWSER=firefox
  - export DRIVER_HOST=localhost

  - sh -e /etc/init.d/xvfb start
  - export DISPLAY=:99.0
  - sleep 4

  - curl -L http://downloads.sourceforge.net/project/sahi/sahi-v5/sahi_20141105.zip > sahi.zip
  - unzip sahi.zip > /dev/null
  - sed -i -e "s,<path>/usr/bin/firefox</path>,<path>/usr/local/bin/firefox</path>,g" sahi/config/browser_types/linux.xml
  - cd sahi/bin
  - sh sahi.sh > /tmp/sahi_output.log &
  - cd -

  - composer install --prefer-source

  - sudo apt-get update > /dev/null
  - sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 > /dev/null
  - sudo sed -i -e "s,/var/www,$(pwd)/vendor/behat/mink/driver-testsuite/web-fixtures,g" /etc/apache2/sites-available/default
  - sudo /etc/init.d/apache2 restart

script: phpunit -v --coverage-clover=coverage.clover

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

{'fraction_non_alphanumeric': 0.1534344335414808, 'fraction_numerical': 0.024977698483496878, 'mean_word_length': 3.085610200364299, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6830998', 'n_tokens_mistral': 976, 'n_tokens_neox': 903, 'n_words': 161}