<commit_before>language: python
python:
  - "2.7"
install:
  - pip install --upgrade distribute
  - pip install -r securedrop/source-requirements.txt
  - pip install -r securedrop/document-requirements.txt
before_script:
  - sudo apt-get install gnupg2 secure-delete python-dev libmysqlclient-dev haveged
  - cp securedrop/config/base.py.example securedrop/config/base.py
  - cp securedrop/config/test.py.example securedrop/config/test.py
  - secret_key=$(python -c 'import os; print os.urandom(32).__repr__().replace("\\","\\\\")')
  - scrypt_id_pepper=$(python -c 'import os; print os.urandom(32).__repr__().replace("\\","\\\\")')
  - scrypt_gpg_pepper=$(python -c 'import os; print os.urandom(32).__repr__().replace("\\","\\\\")')
  - sed -i "s@    SECRET_KEY.*@    SECRET_KEY=$secret_key@" securedrop/config/base.py
  - sed -i "s@^SCRYPT_ID_PEPPER.*@SCRYPT_ID_PEPPER=$scrypt_id_pepper@" securedrop/config/base.py
  - sed -i "s@^SCRYPT_GPG_PEPPER.*@SCRYPT_GPG_PEPPER=$scrypt_gpg_pepper@" securedrop/config/base.py
  - mkdir -p .securedrop/{store,keys,tmp}
  - gpg2 --homedir .securedrop/keys --import securedrop/test_journalist_key.*
script:
  - cd securedrop && python test.py
<commit_msg>Adding test-requirement.txt to travis<commit_after>language: python
python:
  - "2.7"
install:
  - pip install --upgrade distribute
  - pip install -r securedrop/source-requirements.txt
  - pip install -r securedrop/document-requirements.txt
  - pip install -r securedrop/test-requirements.txt
before_script:
  - sudo apt-get install gnupg2 secure-delete python-dev libmysqlclient-dev haveged
  - cp securedrop/config/base.py.example securedrop/config/base.py
  - cp securedrop/config/test.py.example securedrop/config/test.py
  - secret_key=$(python -c 'import os; print os.urandom(32).__repr__().replace("\\","\\\\")')
  - scrypt_id_pepper=$(python -c 'import os; print os.urandom(32).__repr__().replace("\\","\\\\")')
  - scrypt_gpg_pepper=$(python -c 'import os; print os.urandom(32).__repr__().replace("\\","\\\\")')
  - sed -i "s@    SECRET_KEY.*@    SECRET_KEY=$secret_key@" securedrop/config/base.py
  - sed -i "s@^SCRYPT_ID_PEPPER.*@SCRYPT_ID_PEPPER=$scrypt_id_pepper@" securedrop/config/base.py
  - sed -i "s@^SCRYPT_GPG_PEPPER.*@SCRYPT_GPG_PEPPER=$scrypt_gpg_pepper@" securedrop/config/base.py
  - mkdir -p .securedrop/{store,keys,tmp}
  - gpg2 --homedir .securedrop/keys --import securedrop/test_journalist_key.*
script:
  - cd securedrop && python test.py

{'fraction_non_alphanumeric': 0.1645004061738424, 'fraction_numerical': 0.008123476848090982, 'mean_word_length': 4.067901234567901, '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': '5026506', 'n_tokens_mistral': 955, 'n_tokens_neox': 901, 'n_words': 161}