<commit_before>language: python

python:
  - 2.7

before_install:
 - sudo apt-get update -qq

install:
 - sudo apt-get install -y python-software-properties
 - sudo apt-add-repository -y ppa:git-core/ppa
 - sudo apt-add-repository -y ppa:ubuntugis/ppa
 - sudo apt-get update -qq

   # GDAL
 - sudo apt-get install libgdal-dev
 - pip install --no-install GDAL==1.9.1
 - pushd /home/travis/virtualenv/python2.7/build/GDAL
 - python setup.py build_ext --include-dirs=/usr/include/gdal
 - pip install --no-download GDAL
 - popd

   # Spatialiate
 - sudo apt-get install -y libproj-dev libgeos-dev libspatialite-dev
 - pip install git+git://github.com/tinio/pysqlite.git@extension-enabled#egg=pysqlite

   # This is a dependency of our Django quicktest script
 - pip install argparse --use-mirrors

 - pip install -r requirements.txt

 - pip install coverage

 - pip install flake8 --use-mirrors

 - python setup.py develop

before_script:
 - flake8 --ignore=E501 mapentity

script:
 - python quicktest.py mapentity
 - coverage run quicktest.py mapentity
<commit_msg>Limit coverage to mapentity folder<commit_after>language: python

python:
  - 2.7

before_install:
 - sudo apt-get update -qq

install:
 - sudo apt-get install -y python-software-properties
 - sudo apt-add-repository -y ppa:git-core/ppa
 - sudo apt-add-repository -y ppa:ubuntugis/ppa
 - sudo apt-get update -qq

   # GDAL
 - sudo apt-get install libgdal-dev
 - pip install --no-install GDAL==1.9.1
 - pushd /home/travis/virtualenv/python2.7/build/GDAL
 - python setup.py build_ext --include-dirs=/usr/include/gdal
 - pip install --no-download GDAL
 - popd

   # Spatialiate
 - sudo apt-get install -y libproj-dev libgeos-dev libspatialite-dev
 - pip install git+git://github.com/tinio/pysqlite.git@extension-enabled#egg=pysqlite

   # This is a dependency of our Django quicktest script
 - pip install argparse --use-mirrors

 - pip install -r requirements.txt

 - pip install coverage

 - pip install flake8 --use-mirrors

 - python setup.py develop

before_script:
 - flake8 --ignore=E501 mapentity

script:
 - python quicktest.py mapentity
 - coverage run --include="mapentity/*" quicktest.py mapentity

{'fraction_non_alphanumeric': 0.10650069156293222, 'fraction_numerical': 0.011065006915629323, 'mean_word_length': 3.1811175337186897, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '591307', 'n_tokens_mistral': 769, 'n_tokens_neox': 714, 'n_words': 199}