<commit_before>---
defaults: &defaults
  working_directory: ~/cli
  docker:
    - image: dickeyxxx/cli-engine-docker:v2.1.0
      environment:
        NPM_CONFIG_REGISTRY: https://cli-npm.heroku.com

version: 2
executorType: docker
jobs:
  test:
    <<: *defaults
    steps:
      - checkout
      - restore_cache:
          keys:
            - v2-test-{{ checksum "yarn.lock" }}
            - v2-test
      - run: ./scripts/prep
      - run: ./scripts/test
      - save_cache:
          key: v2-test-{{ checksum "yarn.lock" }}
          paths:
            - /usr/local/share/.cache/yarn
            - ~/cli/node_modules
  darwin_x64:
    # <<: *defaults
    docker:
      - image: circleci/node:8.4
        environment:
          NPM_CONFIG_REGISTRY: https://cli-npm.heroku.com
    steps:
      - checkout
      # - restore_cache: &release_target_yarn_cache
      #     keys:
      #       - v3-release-target-yarn-{{ checksum "yarn.lock" }}
      #       - v3-release-target-yarn
      # - restore_cache: {keys: [node-v8.3.0-darwin-x64]}
      - run: ./scripts/build/darwin
      - persist_to_workspace: &persist_workspace
          root: tmp
          paths: [darwin_x64]
      - save_cache:
          key: v3-release-target-yarn-{{ checksum "yarn.lock" }}
          paths: [/usr/local/share/.cache/yarn]
      - save_cache: &node_cache_save
          key: node-v8.3.0-darwin-x64
          paths: [~/cli/tmp/cache/node]
  # linux_x64_build:
  #   <<: *defaults
  #   steps:
  #     - checkout
  #     - restore_cache: *release_target_yarn_cache
  #     - restore_cache: {keys: [node-v8.3.0-linux-x64]}
  #     - run: ./scripts/circle/build
  #     - persist_to_workspace:
  #         <<: *persist_workspace
  #         paths: [linux_x64]
  #     - save_cache:
  #         <<: *node_cache_save
  #         key: node-v8.3.0-linux-x64
  # release:
  #   <<: *defaults
  #   steps:
  #     - checkout
  #     - attach_workspace: {at: dist}
  #     - run: ./scripts/circle/release
  # debian:
  #   <<: *defaults<commit_msg>circling<commit_after>---

version: 2
executorType: docker
jobs:
  test:
    docker:
      - image: dickeyxxx/cli-engine-docker:2.0.1
        environment: &env
          NPM_CONFIG_REGISTRY: https://cli-npm.heroku.com
    steps:
      - checkout
      # - restore_cache:
      #     keys:
      #       - v2-test-{{ checksum "yarn.lock" }}
      #       - v2-test
      - run: ./scripts/prep
      - run: ./scripts/test
      - save_cache:
          key: v2-test-{{ checksum "yarn.lock" }}
          paths:
            - /usr/local/share/.cache/yarn
            - ~/cli/node_modules
  darwin_x64:
    docker: &node_docker
      - image: node:8.4
        environment: *env
    steps:
      - checkout
      # - restore_cache: &release_target_yarn_cache
      #     keys:
      #       - v3-release-target-yarn-{{ checksum "yarn.lock" }}
      #       - v3-release-target-yarn
      # - restore_cache: {keys: [node-v8.3.0-darwin-x64]}
      - run: ./scripts/build/darwin
      - persist_to_workspace: &persist_workspace
          root: tmp
          paths: [darwin_x64]
      - save_cache:
          key: v3-release-target-yarn-{{ checksum "yarn.lock" }}
          paths: [/usr/local/share/.cache/yarn]
      - save_cache: &node_cache_save
          key: node-v8.3.0-darwin-x64
          paths: [~/cli/tmp/cache/node]
  linux_x64:
    docker: &circle_node_docker
      - image: circleci/node:8.4
        environment: *env
    steps:
      - checkout
      - run: ./scripts/build/linux
      - persist_to_workspace:
          <<: *persist_workspace
          paths: [linux_x64]
  linux_x86:
    docker: *node_docker
    steps:
      - checkout
      - run: ./scripts/build/linux
      - persist_to_workspace:
          <<: *persist_workspace
          paths: [linux_x86]
  linux_arm:
    docker: *circle_node_docker
    steps:
      - checkout
      - run: ./scripts/build/linux
      - persist_to_workspace:
          <<: *persist_workspace
          paths: [linux_arm]
  windows_x64:
    docker: &cli-engine-docker
      - image: dickeyxxx/cli-engine-docker:2.0.1
        environment: *env
    steps:
      - checkout
      - run: ./scripts/build/windows
      - persist_to_workspace:
          <<: *persist_workspace
          paths: [windows_x64]
  # linux_x64_build:
  #   <<: *defaults
  #   steps:
  #     - checkout
  #     - restore_cache: *release_target_yarn_cache
  #     - restore_cache: {keys: [node-v8.3.0-linux-x64]}
  #     - run: ./scripts/circle/build
  #     - persist_to_workspace:
  #         <<: *persist_workspace
  #         paths: [linux_x64]
  #     - save_cache:
  #         <<: *node_cache_save
  #         key: node-v8.3.0-linux-x64
  # release:
  #   <<: *defaults
  #   steps:
  #     - checkout
  #     - attach_workspace: {at: dist}
  #     - run: ./scripts/circle/release
  # debian:
  #   <<: *defaults
{'fraction_non_alphanumeric': 0.1375334568663784, 'fraction_numerical': 0.019971175622812434, 'mean_word_length': 1.7307476110174256, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '3057050', 'n_tokens_mistral': 1820, 'n_tokens_neox': 1737, 'n_words': 264}