<commit_before>version: 2

jobs:
  setup:
    docker:
    - image: ankyra/escape:latest

    steps:
    - checkout
    - setup_remote_docker
    - run:
        name: Install Docker client
        command: |
          set -x
          VER="17.03.0-ce"
          curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
          tar -xz -C /tmp -f /tmp/docker-$VER.tgz
          mv /tmp/docker/* /usr/bin

  build_and_test:
    steps:
    - run: 
        name: Build and test Escape release
        command: escape build && escape test

  release:
    steps:
    - run: 
        name: Build Escape release
        command: escape release


workflows:
  version: 2
  build_and_test:
    jobs:
      - build_and_test:
          requires: 
            - setup
          filters:
            branches:
              ignore: master
  release:
    jobs:
      - release:
          requires: 
          - setup
          filters:
            branches:
              only: master
<commit_msg>Collapse workflow steps<commit_after>version: 2

jobs:
  setup:
    docker:
    - image: ankyra/escape:latest

    steps:
    - checkout
    - setup_remote_docker
    - run:
        name: Install Docker client
        command: |
          set -x
          VER="17.03.0-ce"
          curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
          tar -xz -C /tmp -f /tmp/docker-$VER.tgz
          mv /tmp/docker/* /usr/bin

  build_and_test:
    steps:
    - run: 
        name: Build and test Escape release
        command: escape build && escape test

  release:
    steps:
    - run: 
        name: Build Escape release
        command: escape release --skip-build


workflows:
  version: 2
  build:
    jobs:
      - setup
      - build_and_test:
          requires: 
            - setup
      - release:
          requires:
            - build_and_test
          filters:
            branches:
              only: master
{'fraction_non_alphanumeric': 0.09444444444444444, 'fraction_numerical': 0.011111111111111112, 'mean_word_length': 1.404126213592233, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '192320', 'n_tokens_mistral': 660, 'n_tokens_neox': 602, 'n_words': 154}