<commit_before>dependencies:
  pre:
    - npm install -g jspm
    - jspm config registries.github.auth $GITHUB_ACCESS_TOKEN
  override:
    - npm install --dev
  post:
    - wget https://saucelabs.com/downloads/sc-latest-linux.tar.gz
    - tar -xzf sc-latest-linux.tar.gz

test:
  override:
    - cd sc-*-linux && ./bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY -f ~/sc_ready:
        background: true
        pwd: sc-*-linux

    - while [ ! -e ~/sc_ready ]; do sleep 1; done

    - node server.js:
        background: true
    - curl --retry 10 --retry-delay 2 -v http://localhost:3000
    - npm test<commit_msg>Updated sauceconnect<commit_after>dependencies:
  pre:
    - npm install -g jspm
    - jspm config registries.github.auth $GITHUB_ACCESS_TOKEN
  override:
    - npm install --dev
  post:
    - wget https://saucelabs.com/downloads/sc-4.3.8-linux.tar.gz
    - tar -xzf sc-4.3.8-linux.tar.gz

test:
  override:
    - cd sc-*-linux && ./bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY -f ~/sc_ready:
        background: true

    - while [ ! -e ~/sc_ready ]; do sleep 1; done

    - node server.js:
        background: true
    - curl --retry 10 --retry-delay 2 -v http://localhost:3000
    - npm test
{'fraction_non_alphanumeric': 0.13542526837324526, 'fraction_numerical': 0.018166804293971925, 'mean_word_length': 2.1727748691099475, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3036989', 'n_tokens_mistral': 472, 'n_tokens_neox': 447, 'n_words': 108}