<commit_before>language: python
sudo: true
python:
  - "2.7"
  # - "3.4"

# command to install dependencies
# some are only used for travis/coveralls so we are installing them here only
install:
  - ./test/setup_test.sh

# command to run tests
script:
  # so to help eventual debug: knowing what exact versions are in use can be rather useful.
  - pip freeze
  # Code static analysis
  - pep8 --max-line-length=100 --exclude='*.pyc, *.cfg, *.log' --ignore='E402' alignak_module_logs/*
  - pylint --rcfile=.pylintrc alignak_module_logs/
  # Code dynamic analysis
  - cd test
  # notice: the nose-cov is used because it is compatible with --processes, but produce a .coverage by process
  # so we must combine them in the end
  - coverage erase
  - nosetests -xv --process-restartworker --processes=1 --process-timeout=300  --with-coverage --cover-package=alignak_module_logs
  - coverage combine
  - cd ..
# specific call to launch coverage data into coveralls.io
after_success:
  # to get coverage data with relative paths and not absolute we have to
  # execute coveralls from the base directory of the project,
  # so we need to move the .coverage file here :
  # mv test/.coverage . && coveralls --rcfile=test/.coveragerc -v
  mv test/.coverage . && coveralls -v
<commit_msg>Fix travis.yml<commit_after>language: python
sudo: true
python:
  - "2.7"
  # - "3.4"

# command to install dependencies
# some are only used for travis/coveralls so we are installing them here only
install:
  - ./test/setup_test.sh

# command to run tests
script:
  # so to help eventual debug: knowing what exact versions are in use can be rather useful.
  - pip freeze
  # Code static analysis
  - pep8 --max-line-length=100 --exclude='*.pyc, *.cfg, *.log' --ignore='E402' alignak_module_external_commands/*
  - pylint --rcfile=.pylintrc alignak_module_external_commands/
  # Code dynamic analysis
  - cd test
  # notice: the nose-cov is used because it is compatible with --processes, but produce a .coverage by process
  # so we must combine them in the end
  - coverage erase
  - nosetests -xv --process-restartworker --processes=1 --process-timeout=300  --with-coverage --cover-package=alignak_module_external_commands
  - coverage combine
  - cd ..
# specific call to launch coverage data into coveralls.io
after_success:
  # to get coverage data with relative paths and not absolute we have to
  # execute coveralls from the base directory of the project,
  # so we need to move the .coverage file here :
  # mv test/.coverage . && coveralls --rcfile=test/.coveragerc -v
  mv test/.coverage . && coveralls -v

{'fraction_non_alphanumeric': 0.09591679506933744, 'fraction_numerical': 0.011556240369799691, 'mean_word_length': 3.3211314475873546, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '164615', 'n_tokens_mistral': 816, 'n_tokens_neox': 782, 'n_words': 307}