<commit_before>language: python

python:
  - "2.7"
  - "3.5"

notifications:
  email: false  

install: "pip install sip pyqt4"

script:
  tests.py<commit_msg>updated travis to install pyqt4<commit_after>language: python

python:
  - "2.7"
  - "3.5"

notifications:
  email: false  


before_install:
  sudo mkdir -p /downloads
  sudo chmod a+rw /downloads
  curl -L http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.5/sip-4.16.5.tar.gz -o /downloads/sip.tar.gz 
  curl -L http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt-x11-gpl-4.11.3.tar.gz -o /downloads/pyqt4.tar.gz
  # Builds
  sudo mkdir -p /builds
  sudo chmod a+rw /builds

install:
  export DISPLAY=:99.0
  sh -e /etc/init.d/xvfb start
  sudo apt-get install -y libqt4-dev
  sudo apt-get install -y mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev
  #    - sudo apt-get install -y python3-sip python3-sip-dev python3-pyqt4 cmake
  # Qt4
  pushd /builds
  # SIP
  tar xzf /downloads/sip.tar.gz --keep-newer-files
  pushd sip-4.16.5
  python configure.py
  make
  sudo make install
  popd
  # PyQt4
  tar xzf /downloads/pyqt4.tar.gz --keep-newer-files
  pushd PyQt-x11-gpl-4.11.3
  python configure.py -c --confirm-license --no-designer-plugin -e QtCore -e QtGui -e QtTest
  make
  sudo make install
  popd
  # Builds Complete
  popd

  pip install sip pyqt4

script:
  tests.py
{'fraction_non_alphanumeric': 0.11777150916784203, 'fraction_numerical': 0.0380818053596615, 'mean_word_length': 2.354609929078014, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2034518', 'n_tokens_mistral': 648, 'n_tokens_neox': 579, 'n_words': 130}