<commit_before>language: python
python:
  - "3.7"
node_js:
  - "10"

dist: bionic
sudo: required

addons:
  chrome: stable

before_script:
  - LATEST_CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE"`
  - curl "https://chromedriver.storage.googleapis.com/${LATEST_CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
  - unzip chromedriver_linux64.zip -d ~/bin

before_install:
  - sudo apt-get -y install libjpeg-dev python3-dev python3-pip python3-distutils gettext zlib1g-dev wget build-essential libmagic1

install:
  - pip3 install wheel
  - pip3 install pip --upgrade
  - if grep version setup.py | grep -q "\-dev";
    then pip3 install https://github.com/fiduswriter/fiduswriter/archive/develop.zip;
    else pip3 install https://github.com/fiduswriter/fiduswriter/archive/master.zip;
    fi
  - pip3 install ./
  - mkdir project
  - cd project
  - mv ../travis/configuration.py ./
  - mv ../travis/.coveragerc ./
  - pip3 install requests[security]
  - pip3 install coverage
  - pip3 install coveralls
  - fiduswriter setup --no-static

script:
    - travis_retry coverage run --concurrency=multiprocessing fiduswriter test book
    - coverage combine

after_success:
  - coverage report
  - coveralls
<commit_msg>init fiduswriter<commit_after>language: python
python:
  - "3.7"
node_js:
  - "10"

dist: bionic
sudo: required

addons:
  chrome: stable

before_script:
  - LATEST_CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE"`
  - curl "https://chromedriver.storage.googleapis.com/${LATEST_CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
  - unzip chromedriver_linux64.zip -d ~/bin

before_install:
  - sudo apt-get -y install libjpeg-dev python3-dev python3-pip python3-distutils gettext zlib1g-dev wget build-essential libmagic1

install:
  - pip3 install wheel
  - pip3 install pip --upgrade
  - if grep version setup.py | grep -q "\-dev";
    then pip3 install https://github.com/fiduswriter/fiduswriter/archive/develop.zip;
    else pip3 install https://github.com/fiduswriter/fiduswriter/archive/master.zip;
    fi
  - pip3 install ./
  - mkdir project
  - cd project
  - mv ../travis/configuration.py ./
  - mv ../travis/.coveragerc ./
  - pip3 install requests[security]
  - pip3 install coverage
  - pip3 install coveralls
  - coverage run $(which fiduswriter) setup --no-static

script:
    - travis_retry coverage run --concurrency=multiprocessing $(which fiduswriter) test book
    - coverage combine

after_success:
  - coverage report
  - coveralls

{'fraction_non_alphanumeric': 0.10867865519937452, 'fraction_numerical': 0.01641907740422205, 'mean_word_length': 3.4273356401384083, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1004971', 'n_tokens_mistral': 914, 'n_tokens_neox': 878, 'n_words': 201}