<commit_before>language: python
python:
  - "2.7"
env:
  global:
    - secure: |-
        C<KEY>
        cvNf7vanTJKnVxpxUK9kH5Tn/uaJZtnbnJYehZ4YKwzbJQEAEJpWvCk4C54O
        7diAxOq7YSxxqA2XdtLydkNlo85BWoucmc0yHEl3weNR9554UmM=
    - secure: |-
        W<KEY>
        SK<KEY>
        <KEY>
    - PATH="/usr/share/elasticsearch/bin:/usr/lib/postgresql/9.3/bin:$PATH"
  matrix:
    - BROWSER=
    - BROWSER=Chrome
before_install:
  - whereis elasticsearch
  - sudo service postgresql stop
  - postgres --version
  - initdb --version
  - sudo service elasticsearch stop
  - elasticsearch -v
install:
  - python bootstrap.py -v 2.2.5
  - bin/buildout -c buildout-travis.cfg
before_script:
  - >
    if test -n "$BROWSER";
      CONNECT_URL=http://saucelabs.com/downloads/Sauce-Connect-latest.zip
      CONNECT_DOWNLOAD=Sauce_Connect.zip
      curl $CONNECT_URL > $CONNECT_DOWNLOAD
      unzip $CONNECT_DOWNLOAD Sauce-Connect.jar
      java -jar Sauce-Connect.jar --readyfile $READY_FILE \
        --logfile $CONNECT_LOG \
        --tunnel-identifier $TRAVIS_JOB_NUMBER \
        $SAUCE_USERNAME $SAUCE_ACCESS_KEY > $HOME/sauce_connect.log &
      while [ ! -f $READY_FILE ]; do sleep .5; done
    fi
script:
  - if test -z "$BROWSER"; then npm test; fi
  - if test -z "$BROWSER"; then bin/test -v -v --timeout=200 -m "not bdd"; fi
  - >
    if test -n "$BROWSER"; then
      bin/test -v -v --timeout=200 --remote-webdriver -m "bdd" --tb=short \
        --browser-arg url "http://$SAUCE_USERNAME:$SAUCE_ACCESS_KEY@localhost:4445/wd/hub" \
        --browser-arg tunnel-identifier "$TRAVIS_JOB_NUMBER" \
        --browser-arg-int build  "$TRAVIS_BUILD_NUMBER" \
        --browser-arg name "$TRAVIS_REPO_SLUG $TRAVIS_BRANCH $TRAVIS_COMMIT" \
        --browser-arg-int wait_time 10 \<commit_msg>missing then<commit_after>language: python
python:
  - "2.7"
env:
  global:
    - secure: |-
        CMKR45ew7fJWfF/rvaFkV4gNhWRDdM4y8wlj5p1qrEzJ214SENg03fjHJr6B
        cvNf7vanTJKnVxpxUK9kH5Tn/uaJZtnbnJYehZ4YKwzbJQEAEJpWvCk4C54O
        7diAxOq7YSxxqA2XdtLydkNlo85BWoucmc0yHEl3weNR9554UmM=
    - secure: |-
        WmE7J5Vxheir50Heuji0JVpEmoYH5iPkLMQFgnocY1UspO1ka1+8M7SOgsUH
        SK5yLKZ/6oJyhlySqqTmCfYy3y/WXRNG76dy1kjVj/DEbx+n6Yu0nElw84ED
        ZR5KkpFMaKLA505soY+4lJc4jRl5u0qwCB1Ad3UgTgfkI4QSaGM=
    - PATH="/usr/share/elasticsearch/bin:/usr/lib/postgresql/9.3/bin:$PATH"
  matrix:
    - BROWSER=
    - BROWSER=Chrome
before_install:
  - whereis elasticsearch
  - sudo service postgresql stop
  - postgres --version
  - initdb --version
  - sudo service elasticsearch stop
  - elasticsearch -v
install:
  - python bootstrap.py -v 2.2.5
  - bin/buildout -c buildout-travis.cfg
before_script:
  - >
    if test -n "$BROWSER"; then
      CONNECT_URL=http://saucelabs.com/downloads/Sauce-Connect-latest.zip
      CONNECT_DOWNLOAD=Sauce_Connect.zip
      curl $CONNECT_URL > $CONNECT_DOWNLOAD
      unzip $CONNECT_DOWNLOAD Sauce-Connect.jar
      java -jar Sauce-Connect.jar --readyfile $READY_FILE \
        --logfile $CONNECT_LOG \
        --tunnel-identifier $TRAVIS_JOB_NUMBER \
        $SAUCE_USERNAME $SAUCE_ACCESS_KEY > $HOME/sauce_connect.log &
      while [ ! -f $READY_FILE ]; do sleep .5; done
    fi
script:
  - if test -z "$BROWSER"; then npm test; fi
  - if test -z "$BROWSER"; then bin/test -v -v --timeout=200 -m "not bdd"; fi
  - >
    if test -n "$BROWSER"; then
      bin/test -v -v --timeout=200 --remote-webdriver -m "bdd" --tb=short \
        --browser-arg url "http://$SAUCE_USERNAME:$SAUCE_ACCESS_KEY@localhost:4445/wd/hub" \
        --browser-arg tunnel-identifier "$TRAVIS_JOB_NUMBER" \
        --browser-arg-int build  "$TRAVIS_BUILD_NUMBER" \
        --browser-arg name "$TRAVIS_REPO_SLUG $TRAVIS_BRANCH $TRAVIS_COMMIT" \
        --browser-arg-int wait_time 10 \
{'fraction_non_alphanumeric': 0.11845584346906399, 'fraction_numerical': 0.03225806451612903, 'mean_word_length': 2.734452122408687, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '442464', 'n_tokens_mistral': 1640, 'n_tokens_neox': 1564, 'n_words': 258}