<commit_before>dist: trusty
sudo: false
language: python
cache: pip
python:
- '3.4'
- '3.5'
- '3.6'
install:
- pip install -e .
- pip install nose
- pip install coverage
- pip install codacy-coverage
script:
- nosetests --with-coverage --cover-xml --cover-package=lproc
after_success:
- python-codacy-coverage -r coverage.xml
deploy:
  - provider: pypi
    server: https://upload.pypi.org/legacy
    user: nlgranger
    skip_upload_docs: true
    password:
      secure: <KEY>
    on:
      branch: master
      tags: true
      repo: nlgranger/LazyProc
      condition: $TRAVIS_PYTHON_VERSION = "3.6"
  - provider: pypi
    server: https://testpypi.python.org/pypi
    user: nlgranger
    skip_upload_docs: true
    password:
      secure: <KEY>
    on:
      all_branches: true
      condition: $TRAVIS_PYTHON_VERSION = "3.6"<commit_msg>Update to handle new api of pypi<commit_after>dist: trusty
sudo: false
language: python
cache: pip
python:
- '3.4'
- '3.5'
- '3.6'
install:
- pip install -e .
- pip install nose
- pip install coverage
- pip install codacy-coverage
script:
- nosetests --with-coverage --cover-xml --cover-package=lproc
after_success:
- python-codacy-coverage -r coverage.xml
deploy:
  - provider: pypi
    server: https://upload.pypi.org/legacy
    user: nlgranger
    skip_upload_docs: true
    password:
      secure: <KEY>
    on:
      branch: master
      tags: true
      repo: nlgranger/LazyProc
      condition: $TRAVIS_PYTHON_VERSION = "3.6"
  - provider: pypi
    server: https://test.pypi.org/legacy
    user: nlgranger
    skip_upload_docs: true
    password:
      <PASSWORD>: <KEY>
    on:
      all_branches: true
      condition: $TRAVIS_PYTHON_VERSION = "3.6"
{'fraction_non_alphanumeric': 0.11431938715380083, 'fraction_numerical': 0.011785503830288745, 'mean_word_length': 2.7817371937639197, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4364715', 'n_tokens_mistral': 621, 'n_tokens_neox': 612, 'n_words': 151}