<commit_before>sudo: false
language: python
python:
- '2.6'
- '2.7'
install:
- pip install -r requirements.txt
script:
- python -m unittest discover -s tests/ -p "*_test.py"<commit_msg>CI - discover in python 2.6<commit_after>sudo: false
language: python
python:
- '2.6'
- '2.7'
install:
- pip install -r requirements.txt
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi
script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then unit2 discover -v -t tests/ -p "*_test.py"; else python -m unittest discover -s tests/ -p "*_test.py"; fi
{'fraction_non_alphanumeric': 0.16457960644007155, 'fraction_numerical': 0.028622540250447227, 'mean_word_length': 3.7457627118644066, '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': '4456171', 'n_tokens_mistral': 215, 'n_tokens_neox': 211, 'n_words': 66}