<commit_before># Empty
version: 2

jobs:
  build:
    parallelism: 4
    working_directory: ~/abortioneering
    docker:
      - image: circleci/ruby:2.6.6-node-browsers
        environment:
          BUNDLE_JOBS: 3
          BUNDLE_RETRY: 3
          BUNDLE_PATH: vendor/bundle
          RAILS_ENV: test
          TESTOPTS: "--ci-dir=test-results"
      - image: circleci/mongo:latest
    steps:
      - checkout
      - run: sudo apt-get install libfontconfig
      - run: gem install bundler # Update bundler
      - run: sudo gem update --system # Update rubygems
      - restore_cache:
          keys:
            - dcaf_case_management-{{ checksum "Gemfile.lock" }}
            - dcaf_case_management-{{ checksum ".circleci/config.yml" }}
      - run: bundle check || bundle install
      - run: yarn install
      - run: NODE_ENV=test bundle exec rails webpacker:compile
      - run: gem install --no-document brakeman
      - run: gem install --no-document ruby_audit
      - run: gem install --no-document bundler-audit
      - save_cache:
          key: dcaf_case_management-{{ checksum "Gemfile.lock" }}
          paths:
            - vendor/bundle
      - run: bundle exec rake knapsack:minitest
      - run: brakeman --exit-on-warn .
      - run: bundle exec ruby-audit check
      - run: bundle-audit update; bundle-audit check --ignore CVE-2015-9284
      # - run: bundle exec rails zeitwerk:check # Restore in rails 6.0.3 https://github.com/rails/rails/issues/37966
      # - run: yarn audit
      - store_artifacts:
          path: /home/circleci/abortioneering/tmp/capybara/<commit_msg>Add coverage to circleci<commit_after># Empty
version: 2

jobs:
  build:
    parallelism: 4
    working_directory: ~/abortioneering
    docker:
      - image: circleci/ruby:2.6.6-node-browsers
        environment:
          BUNDLE_JOBS: 3
          BUNDLE_RETRY: 3
          BUNDLE_PATH: vendor/bundle
          RAILS_ENV: test
          TESTOPTS: "--ci-dir=test-results"
      - image: circleci/mongo:latest
    steps:
      - checkout
      - run: sudo apt-get install libfontconfig
      - run: gem install bundler # Update bundler
      - run: sudo gem update --system # Update rubygems
      - restore_cache:
          keys:
            - dcaf_case_management-{{ checksum "Gemfile.lock" }}
            - dcaf_case_management-{{ checksum ".circleci/config.yml" }}
      - run: bundle check || bundle install
      - run: yarn install
      - run: NODE_ENV=test bundle exec rails webpacker:compile
      - run: gem install --no-document brakeman
      - run: gem install --no-document ruby_audit
      - run: gem install --no-document bundler-audit
      - save_cache:
          key: dcaf_case_management-{{ checksum "Gemfile.lock" }}
          paths:
            - vendor/bundle
      - run: bundle exec rake knapsack:minitest
      - run: brakeman --exit-on-warn .
      - run: bundle exec ruby-audit check
      - run: bundle-audit update; bundle-audit check --ignore CVE-2015-9284
      # - run: bundle exec rails zeitwerk:check # Restore in rails 6.0.3 https://github.com/rails/rails/issues/37966
      # - run: yarn audit
      - store_artifacts:
          path: /home/circleci/abortioneering/tmp/capybara/
          path: coverage
{'fraction_non_alphanumeric': 0.10080147965474723, 'fraction_numerical': 0.014180024660912454, 'mean_word_length': 2.0555555555555554, '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': '192330', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1021, 'n_words': 256}