<commit_before>language: python
python:
  - "2.7"

install:
  # requirements
  #

  # todo add -qq to quietly install dependencies
  - sudo apt-get install -qqy nodejs npm optipng jpegoptim libjpeg-progs asciidoc libxml2-dev libxslt1-dev libpcre3-dev
  - sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk
  # Ubuntu 14
  # - sudo apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
  - sudo npm install -g sass@0.5.0 requirejs@2.1 stylus@0.51 uglify-js@2.4 less@2.5.1
  # uglify requires node instead of nodejs binary
  - sudo ln -s /usr/bin/nodejs /usr/bin/node
  # Python test requirements
  - pip install -r dev-req.txt

before_script:
  - export PYTHONPATH=$PYTHONPATH:/usr/share/asciidoc/

script:
  # Run Python tests and generate coverage statistics
  - nosetests<commit_msg>travis.yml to work with ubuntu precise worker<commit_after>language: python
python:
  - "2.7"

install:
  - sudo apt-get purge -y nodejs
  - sudo apt-get install -qqy python-software-properties
  - sudo add-apt-repository -y ppa:chris-lea/node.js
  - sudo apt-get -qq update
  - sudo apt-get install -qqy nodejs optipng jpegoptim libjpeg-progs asciidoc libxml2-dev libxslt1-dev libpcre3-dev
  - sudo apt-get install -qqy libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk
  # Ubuntu 14
  # - sudo apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk

  # JS dependencies
  - sudo npm install -g sass@0.5.0 requirejs@2.1 stylus@0.51 uglify-js@2.4.23 less@2.5.1

  # Python test requirements
  - pip install -r dev-req.txt

before_script:
  - export PYTHONPATH=$PYTHONPATH:/usr/share/asciidoc/

script:
  # Run Python tests and generate coverage statistics
  - nosetests
{'fraction_non_alphanumeric': 0.09881626351003603, 'fraction_numerical': 0.04014410705095214, 'mean_word_length': 3.418181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5467146', 'n_tokens_mistral': 803, 'n_tokens_neox': 755, 'n_words': 191}