<commit_before>language: node_js

addons:
  apt:
    packages:
      - oracle-java8-installer
      - oracle-java8-set-default

before_install:
  # Install headless browser
  - java -version
  - wget http://selenium-release.storage.googleapis.com/3.4/selenium-server-standalone-3.4.0.jar -O selenium.jar
  - java -jar selenium.jar &
  - npm install -g phantomjs-prebuilt
  - phantomjs -v
  # Install testing library
  - npm install -g nightwatch
  - nightwatch -v
  # Install Rust
  - curl -sSf https://build.travis-ci.org/files/rustup-init.sh | sh -s -- --default-toolchain=stable -y
  - export PATH=$HOME/.cargo/bin:$PATH
  - rustc --version
  - cargo --version
  # Build and run Polaris server
  - git clone http://github.com/agersant/polaris
  - cd polaris
  - cargo build
  - cd ..
  - ./target/debug/polaris -d test/db.sqlite -w . &

script:
  - sleep 2
  - nightwatch<commit_msg>Letting cargo locate polaris exe<commit_after>language: node_js

addons:
  apt:
    packages:
      - oracle-java8-installer
      - oracle-java8-set-default

before_install:
  # Install headless browser
  - java -version
  - wget http://selenium-release.storage.googleapis.com/3.4/selenium-server-standalone-3.4.0.jar -O selenium.jar
  - java -jar selenium.jar &
  - npm install -g phantomjs-prebuilt
  - phantomjs -v
  # Install testing library
  - npm install -g nightwatch
  - nightwatch -v
  # Install Rust
  - curl -sSf https://build.travis-ci.org/files/rustup-init.sh | sh -s -- --default-toolchain=stable -y
  - export PATH=$HOME/.cargo/bin:$PATH
  - rustc --version
  - cargo --version
  # Build and run Polaris server
  - git clone http://github.com/agersant/polaris
  - cd polaris
  - cargo build
  - cargo run -- -d test/db.sqlite -w .. &
  - cd ..

script:
  - sleep 2
  - nightwatch
{'fraction_non_alphanumeric': 0.12738496071829405, 'fraction_numerical': 0.008978675645342313, 'mean_word_length': 2.455426356589147, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '283898', 'n_tokens_mistral': 660, 'n_tokens_neox': 623, 'n_words': 146}