<commit_before>version: 2

jobs:
  build-and-test:
    working_directory: ~/positron
    docker:
      - image: circleci/node:8-stretch-browsers
      - image: circleci/elasticsearch
      - image: circleci/mongo:3

    steps:
      - checkout
      - restore_cache:
        keys:
        - yarn-{{ checksum "yarn.lock" }}
        - yarn-

      - run:
          name: Yarn install
          command: yarn --check-files

      - save_cache:
          name: Save yarn cache
          key: yarn-{{ checksum "yarn.lock" }}
          paths:
            - node_modules/

      - run:
          name: Poll for Elasticsearch
          command: sleep 10 && curl --retry 10 --retry-delay 5 -v http://127.0.0.1:9200/

      - run:
          name: Yarn test
          command: yarn test

  deploy-staging:
    docker:
      - image: buildpack-deps:trusty
    steps:
      - checkout<commit_msg>Fix yaml error<commit_after>version: 2

jobs:
  build-and-test:
    working_directory: ~/positron
    docker:
      - image: circleci/node:8-stretch-browsers
      - image: circleci/elasticsearch
      - image: circleci/mongo:3

    steps:
      - checkout
      - restore_cache:
          keys:
            - yarn-{{ checksum "yarn.lock" }}
            - yarn-

      - run:
          name: Yarn install
          command: yarn --check-files

      - save_cache:
          name: Save yarn cache
          key: yarn-{{ checksum "yarn.lock" }}
          paths:
            - node_modules/

      - run:
          name: Poll for Elasticsearch
          command: sleep 10 && curl --retry 10 --retry-delay 5 -v http://127.0.0.1:9200/

      - run:
          name: Yarn test
          command: yarn test

  deploy-staging:
    docker:
      - image: buildpack-deps:trusty
    steps:
      - checkout
{'fraction_non_alphanumeric': 0.1080472706809229, 'fraction_numerical': 0.020258863252673044, 'mean_word_length': 1.4867132867132866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3176403', 'n_tokens_mistral': 604, 'n_tokens_neox': 554, 'n_words': 135}