<commit_before>version: 2.0

jobs:
  build:
    docker:
      - image: circleci/node:8.4.0
    steps:
      - checkout

        # This should go into custom primary image, here's only for the sake of explanation
      - setup_remote_docker

      - run:
          name: Install Docker Compose
          command: |
            set -x
            chmod +x /usr/local/bin/
            curl -L https://github.com/docker/compose/releases/download/1.11.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
            ls -la /usr/local/
            chown +x /usr/local/bin/docker-compose

      - run:
          name: Start container
          command: |
            set -x
            docker-compose up -d

      - run:
          name: Install dependecies
          command: npm install

      - run:
          name: Run tests
          command: npm test

      - run:
          name: Stop container
          command: |<commit_msg>adds docker-compose to config.yml<commit_after>version: 2.0

jobs:
  build:
    docker:
      - image: circleci/node:8.4.0
    steps:
      - checkout

        # This should go into custom primary image, here's only for the sake of explanation
      - setup_remote_docker

      - run:
          name: Install Docker Compose
          command: |
            set -x
            sudo chmod +x /usr/local/bin/
            curl -L https://github.com/docker/compose/releases/download/1.11.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
            ls -la /usr/local/
            chown +x /usr/local/bin/docker-compose

      - run:
          name: Start container
          command: |
            set -x
            docker-compose up -d

      - run:
          name: Install dependecies
          command: npm install

      - run:
          name: Run tests
          command: npm test

      - run:
          name: Stop container
          command: |
{'fraction_non_alphanumeric': 0.09503916449086162, 'fraction_numerical': 0.009399477806788513, 'mean_word_length': 1.3979974968710889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '192368', 'n_tokens_mistral': 614, 'n_tokens_neox': 562, 'n_words': 156}