<commit_before>version: 2
jobs:
  test:
    working_directory: ~/package-tracker
    docker:
      - image: pawurb/ruby-jemalloc-node-yarn:latest
        environment:
          RAILS_ENV: test
      - image: circleci/postgres:9.4.12-alpine
    steps:
      - checkout

      # Restore bundle cache
      - type: cache-restore
        key: package-tracker-{{ checksum "Gemfile.lock" }}

      # Bundle install dependencies
      - run: |
          bundle check --path vendor/bundle ||
            bundle install --frozen --jobs 5 --retry 5 --path vendor/bundle

      - run: bundle clean --path vendor/bundle --force

      # Store bundle cache
      - type: cache-save
        key: package-tracker-{{ checksum "Gemfile.lock" }}
        paths:
          - vendor/bundle

      - type: shell
        command: bundle exec rubocop

      # Save artifacts
      - type: store_test_results
        path: /tmp/test-results
  deploy:
    docker:
      - image: pawurb/ruby-jemalloc-node-yarn:latest
    steps:
      - add_ssh_keys:
        fingerprints:
          - "27:70:c5:09:00:c4:03:97:13:2e:f5:47:e4:a2:3f:97"<commit_msg>Use config for vendoring<commit_after>version: 2
jobs:
  test:
    working_directory: ~/package-tracker
    docker:
      - image: pawurb/ruby-jemalloc-node-yarn:latest
        environment:
          RAILS_ENV: test
      - image: circleci/postgres:9.4.12-alpine
    steps:
      - checkout

      # Restore bundle cache
      - type: cache-restore
        key: package-tracker-v1-{{ checksum "Gemfile.lock" }}

      # Bundle install dependencies
      - run: bundle config --local path "vendor/bundle"
      - run: |
          bundle check ||
            bundle install --frozen --jobs 5 --retry 5
      - run: bundle clean

      # Store bundle cache
      - type: cache-save
        key: package-tracker-v1-{{ checksum "Gemfile.lock" }}
        paths:
          - vendor/bundle

      - type: shell
        command: bundle exec rubocop

      # Save artifacts
      - type: store_test_results
        path: /tmp/test-results
  deploy:
    docker:
      - image: pawurb/ruby-jemalloc-node-yarn:latest
    steps:
      - add_ssh_keys:
        fingerprints:
          - "27:70:c5:09:00:c4:03:97:13:2e:f5:47:e4:a2:3f:97"
{'fraction_non_alphanumeric': 0.11165698972755694, 'fraction_numerical': 0.029477445288075034, 'mean_word_length': 1.9090909090909092, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2088212', 'n_tokens_mistral': 782, 'n_tokens_neox': 718, 'n_words': 159}