<commit_before>sudo: required

language: python

python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  
before_install:
 - chmod +x test_data/tests/test.sh

install:
  - pip install numpy nltk

script: 
  - python process_alignments.py -i test_data/neuralmonkey/alignments.npy -s test_data/neuralmonkey/src.en.bpe -t test_data/neuralmonkey/out.lv.bpe -f NeuralMonkey -o color
  - python process_alignments.py -i test_data/neuralmonkey/alignments.npy -s test_data/neuralmonkey/src.en.bpe -t test_data/neuralmonkey/out.lv.bpe -f NeuralMonkey -o block
  - python process_alignments.py -i test_data/neuralmonkey/alignments.npy -s test_data/neuralmonkey/src.en.bpe -t test_data/neuralmonkey/out.lv.bpe -f NeuralMonkey -o block2
  - python process_alignments.py -i test_data/neuralmonkey/alignments.npy -s test_data/neuralmonkey/src.en.bpe -t test_data/neuralmonkey/out.lv.bpe -f NeuralMonkey -o block -n 4 > test_data/tests/weHope-test.txt
  - python process_alignments.py -c test_data/neuralmonkey.ini
  - python process_alignments.py -i test_data/nematus/alignments.txt -f Nematus -o color
  - python process_alignments.py -i test_data/nematus/newstest2017.hyp -f Nematus -o block -r test_data/nematus/newstest2017.ref -n 15
  - python process_alignments.py -c test_data/nematus.ini
  - python process_alignments.py -c test_data/nematus-BLEU.ini
  - python process_alignments.py -i test_data/marian/marian.out.lv -s test_data/marian/marian.src.en -f Marian -o color
  - python process_alignments.py -i test_data/marian/marian.out.lv -s test_data/marian/marian.src.en -f Marian -o block -n 2
  - python process_alignments.py -i test_data/opennmt/attention.txt -f OpenNMT -o color
  - python process_alignments.py -i test_data/opennmt/attention.txt -f OpenNMT -o block -n 2
  - test_data/tests/test.sh<commit_msg>Test on newer python versions?<commit_after>sudo: required

language: python

python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  - "3.7"
  - "3.8"
  
before_install:
 - chmod +x test_data/tests/test.sh

install:
  - pip install numpy nltk

script: 
  - python process_alignments.py -i test_data/neuralmonkey/alignments.npy -s test_data/neuralmonkey/src.en.bpe -t test_data/neuralmonkey/out.lv.bpe -f NeuralMonkey -o color
  - python process_alignments.py -i test_data/neuralmonkey/alignments.npy -s test_data/neuralmonkey/src.en.bpe -t test_data/neuralmonkey/out.lv.bpe -f NeuralMonkey -o block
  - python process_alignments.py -i test_data/neuralmonkey/alignments.npy -s test_data/neuralmonkey/src.en.bpe -t test_data/neuralmonkey/out.lv.bpe -f NeuralMonkey -o block2
  - python process_alignments.py -i test_data/neuralmonkey/alignments.npy -s test_data/neuralmonkey/src.en.bpe -t test_data/neuralmonkey/out.lv.bpe -f NeuralMonkey -o block -n 4 > test_data/tests/weHope-test.txt
  - python process_alignments.py -c test_data/neuralmonkey.ini
  - python process_alignments.py -i test_data/nematus/alignments.txt -f Nematus -o color
  - python process_alignments.py -i test_data/nematus/newstest2017.hyp -f Nematus -o block -r test_data/nematus/newstest2017.ref -n 15
  - python process_alignments.py -c test_data/nematus.ini
  - python process_alignments.py -c test_data/nematus-BLEU.ini
  - python process_alignments.py -i test_data/marian/marian.out.lv -s test_data/marian/marian.src.en -f Marian -o color
  - python process_alignments.py -i test_data/marian/marian.out.lv -s test_data/marian/marian.src.en -f Marian -o block -n 2
  - python process_alignments.py -i test_data/opennmt/attention.txt -f OpenNMT -o color
  - python process_alignments.py -i test_data/opennmt/attention.txt -f OpenNMT -o block -n 2
  - test_data/tests/test.sh
{'fraction_non_alphanumeric': 0.11001371742112483, 'fraction_numerical': 0.01316872427983539, 'mean_word_length': 3.6093552465233882, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4346416', 'n_tokens_mistral': 1460, 'n_tokens_neox': 1415, 'n_words': 291}