<commit_before>version: 2

defaults: &defaults
  working_directory: ~/repo
  docker:
    - image: circleci/node:8.11.4

jobs:
  build-and-deploy:
    <<: *defaults
    steps:
      - checkout
      - run:
          name: Install yarn
          command: sudo apt get update && sudo apt get install yarn
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
          # - v1-dependencies-
      - run:
          name: Install dependencies
          command: yarn
      - run:
          name: Build
          command: yarn run build
      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}
      - run: git config --global user.email "$GH_EMAIL"
      - run: git config --global user.name "$GH_NAME"
      - run:
          name: Deploy
          command: yarn run deploy

workflows:
  version: 2
  build-and-deploy:
    jobs:
      - build-and-deploy:
          filters:
            branches:
              only: master
<commit_msg>run build for each branch except 'gh-pages'<commit_after>version: 2

defaults: &defaults
  working_directory: ~/repo
  docker:
    - image: circleci/node:8.11.4

jobs:
  build:
    <<: *defaults
    steps:
      - checkout
      - run:
          name: Install yarn
          command: sudo apt update && sudo apt install yarn
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
          # - v1-dependencies-
      - run:
          name: Install dependencies
          command: yarn
      - run:
          name: Build
          command: yarn run build
      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}
  deploy:
    <<: *defaults
    steps:
      - run: git config --global user.email "$GH_EMAIL"
      - run: git config --global user.name "$GH_NAME"
      - run:
          name: Deploy
          command: yarn run deploy

workflows:
  version: 2
  build-and-deploy:
    jobs:
      - build:
          filters:
            branches:
              ignore: gh-pages
      - deploy:
          requires:
            - build
          filters:
            branches:
              only: master

{'fraction_non_alphanumeric': 0.09835336003560302, 'fraction_numerical': 0.00801068090787717, 'mean_word_length': 1.4812362030905077, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '71749', 'n_tokens_mistral': 684, 'n_tokens_neox': 645, 'n_words': 180}