<commit_before>---
language: node_js
node_js:
  - "7"

sudo: false

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - build-essential
      - libssl-dev
      - gcc-4.9-multilib
      - g++-4.9-multilib
      - lcov
      - oracle-java8-installer
      - oracle-java8-set-default

compiler: clang

jdk:
  - oraclejdk8

env:
  global:
    - CC=clang
    - CXX=clang++
    - npm_config_clang=1
    - GYP_DEFINES="use_obsolete_asm=true"
    - ES_VERSION=5.1.2
    - ELASTICSEARCH=http://127.0.0.1:9200 

cache:
  directories:
    - $HOME/.npm
    - $HOME/.cache # includes bowers cache
    - $HOME/.yarn-cache

before_install:
  - npm config set spin false
  - npm install -g bower phantomjs-prebuilt yarn
  - bower --version
  - phantomjs --version
  - java -version

install:
  - yarn install
  - wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
  - tar -xzf elasticsearch-${ES_VERSION}.tar.gz
  - ./elasticsearch-${ES_VERSION}/bin/elasticsearch &

before_script:
 - ln -s ../packages node_modules/@cardstack
 - wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200

script:
  - npm test<commit_msg>debugging java<commit_after>---
language: node_js
node_js:
  - "7"

sudo: false

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - build-essential
      - libssl-dev
      - gcc-4.9-multilib
      - g++-4.9-multilib
      - lcov
      - oracle-java8-installer
      - oracle-java8-set-default

compiler: clang

jdk:
  - oraclejdk8

env:
  global:
    - CC=clang
    - CXX=clang++
    - npm_config_clang=1
    - GYP_DEFINES="use_obsolete_asm=true"
    - ES_VERSION=5.1.2
    - ELASTICSEARCH=http://127.0.0.1:9200 

cache:
  directories:
    - $HOME/.npm
    - $HOME/.cache # includes bowers cache
    - $HOME/.yarn-cache

before_install:
  - npm config set spin false
  - npm install -g bower phantomjs-prebuilt yarn
  - bower --version
  - phantomjs --version
  - java -version
  - which java
  - echo $JAVA_HOME
  - false

install:
  - yarn install
  - wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
  - tar -xzf elasticsearch-${ES_VERSION}.tar.gz
  - ./elasticsearch-${ES_VERSION}/bin/elasticsearch &

before_script:
 - ln -s ../packages node_modules/@cardstack
 - wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200

script:
  - npm test
{'fraction_non_alphanumeric': 0.13711001642036125, 'fraction_numerical': 0.028735632183908046, 'mean_word_length': 2.306648575305292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '7093319', 'n_tokens_mistral': 986, 'n_tokens_neox': 924, 'n_words': 169}