<commit_before>version: 2
jobs:
  build:
    working_directory: ~/backend
    # The primary container is an instance of the first list image listed. Your build commands run in this container.
    docker:
      - image: circleci/node:8.9.3-browsers
    # The secondary container is an instance of the second listed image which is run in a common network where ports exposed on the primary container are available on localhost.
      #- image: mongo:3.4.4
    steps:
      - checkout
      - run:
          name: Install Globals
          command: 'sudo npm install -g npm@latest && sudo npm install -g yarn@latest && sudo npm install -g codeclimate-test-reporter'
      - restore_cache:
          key: dependency-cache-{{ checksum "package.json" }}
      - run:
          name: Install npm wee
          command: yarn install && npm run postinstallsh
      - save_cache:
          key: dependency-cache-{{ checksum "package.json" }}
          paths:
            - node_modules
  test:
    docker:
      - image: circleci/node:8.9.3-browsers
      #- image: mongo:3.4.4
    steps:
      - checkout
      - run:
          name: Test install
          command: 'sudo npm install -g npm@latest && sudo npm install -g yarn@latest && sudo npm install -g codeclimate-test-reporter && yarn install && npm run postinstallsh'
      #- run:
      #    name: ubuntu dependancies
      #    command: 'sudo apt-get update -y && sudo apt-get install -y apt-utils gconf-service libasound2 libatk1.0-0 libcups2 libdbus-1-3 libgconf-2-4 libgtk-3-0 libnspr4 libxcomposite1 libxss1 fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils'
      #- run:
      #    name: install chrome
      #    command: 'curl -s https://raw.githubusercontent.com/chronogolf/circleci-google-chrome/master/use_chrome_stable_version.sh | bash'
      - run:
          name: test
          command: npm test
      - run:
          name: Generate code coverage
          command: 'codeclimate-test-reporter < coverage/lcov.info'
      #- store_artifacts:
      #    path: test-results.xml
      #    prefix: tests
      - store_artifacts:
          path: coverage
          prefix: coverage

workflows:
  version: 2
  test_backend:
    jobs:
      #- build
      - test
          #requires:
          #  - build
          #filters:
          #  branches:
          #    only: master
<commit_msg>Update config.yml<commit_after>version: 2
jobs:
  build:
    working_directory: ~/backend
    # The primary container is an instance of the first list image listed. Your build commands run in this container.
    docker:
      - image: circleci/node:8.9.4-browsers
    # The secondary container is an instance of the second listed image which is run in a common network where ports exposed on the primary container are available on localhost.
      #- image: mongo:3.4.4
    steps:
      - checkout
      - run:
          name: Install Globals
          command: 'sudo npm install -g npm@latest && sudo npm install -g bower@latest && sudo npm install -g codeclimate-test-reporter'
      - restore_cache:
          key: dependency-cache-{{ checksum "package.json" }}
      - run:
          name: Install npm wee
          command: yarn install && npm run postinstallsh
      - save_cache:
          key: dependency-cache-{{ checksum "package.json" }}
          paths:
            - node_modules
  test:
    docker:
      - image: circleci/node:8.9.3-browsers
      #- image: mongo:3.4.4
    steps:
      - checkout
      - run:
          name: Test install
          command: 'sudo npm install -g npm@latest && sudo npm install -g bower@latest && sudo npm install -g codeclimate-test-reporter && yarn install && npm run postinstallsh'
      #- run:
      #    name: ubuntu dependancies
      #    command: 'sudo apt-get update -y && sudo apt-get install -y apt-utils gconf-service libasound2 libatk1.0-0 libcups2 libdbus-1-3 libgconf-2-4 libgtk-3-0 libnspr4 libxcomposite1 libxss1 fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils'
      #- run:
      #    name: install chrome
      #    command: 'curl -s https://raw.githubusercontent.com/chronogolf/circleci-google-chrome/master/use_chrome_stable_version.sh | bash'
      - run:
          name: test
          command: npm test
      - run:
          name: Generate code coverage
          command: 'codeclimate-test-reporter < coverage/lcov.info'
      #- store_artifacts:
      #    path: test-results.xml
      #    prefix: tests
      - store_artifacts:
          path: coverage
          prefix: coverage

workflows:
  version: 2
  test_backend:
    jobs:
      #- build
      - test
          #requires:
          #  - build
          #filters:
          #  branches:
          #    only: master

{'fraction_non_alphanumeric': 0.09031302876480542, 'fraction_numerical': 0.012690355329949238, 'mean_word_length': 2.0648088139987038, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1028499', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1399, 'n_words': 425}