<commit_before>version: 2
jobs:
  build:
    parallelism: 4
    docker:
      - image: circleci/ruby:2.3-node-browsers
        environment:
          BUNDLE_JOBS: 3
          BUNDLE_RETRY: 3
          BUNDLE_PATH: vendor/bundle
          PGHOST: 127.0.0.1
          PGUSER: circleci-pester_test
          RAILS_ENV: test
          SECRET_KEY_BASE: 13597737746c1ccae1ad593ba41cf1930908e4f7f490b4e9eed0a9509ab2627a21f5efb1c546b3d9ced44d0f82431ccde7d78434763e8fa153b448ce16b7336f
      - image: circleci/postgres:10.5-alpine
        environment:
          POSTGRES_USER: circleci-pester_test
          POSTGRES_DB: pester_test
          POSTGRES_PASSWORD: ""
    steps:
      - checkout

      - run:
          name: Copy environment
          command: cp .sample.env .env

      # Which version of bundler?
      - run:
          name: Which bundler?
          command: bundle -v

      # Restore bundle cache
      - restore_cache:
          keys:
            - pester-bundle-v2-{{ checksum "Gemfile.lock" }}
            - pester-bundle-v2-

      - run:
          name: Bundle Install
          command: bundle check || bundle install

      # Store bundle cache
      - save_cache:
          key: pester-bundle-v2-{{ checksum "Gemfile.lock" }}
          paths:
            - vendor/bundle

      - run:
          name: Wait for DB
          command: dockerize -wait tcp://localhost:5432 -timeout 1m

      - run:
          name: Database setup
          command: bin/rake db:schema:load --trace

      # Run rspec in parallel
      - type: shell
        command: |
          bundle exec rspec --profile 10 \
            --format RspecJunitFormatter \
            --out test_results/rspec.xml \
            --format progress \
            $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)

      # Save test results for timing analysis
      - store_test_results:
          path: test_results

      # Save the tests split for replication of failures with the same seed
      - store_artifacts:
          path: test_results

          destination: test_results
<commit_msg>Update ruby version in circle config<commit_after>version: 2
jobs:
  build:
    parallelism: 4
    docker:
      - image: circleci/ruby:2.5-node-browsers
        environment:
          BUNDLE_JOBS: 3
          BUNDLE_RETRY: 3
          BUNDLE_PATH: vendor/bundle
          PGHOST: 127.0.0.1
          PGUSER: circleci-pester_test
          RAILS_ENV: test
          SECRET_KEY_BASE: 13597737746c1ccae1ad593ba41cf1930908e4f7f490b4e9eed0a9509ab2627a21f5efb1c546b3d9ced44d0f82431ccde7d78434763e8fa153b448ce16b7336f
      - image: circleci/postgres:10.5-alpine
        environment:
          POSTGRES_USER: circleci-pester_test
          POSTGRES_DB: pester_test
          POSTGRES_PASSWORD: ""
    steps:
      - checkout

      - run:
          name: Copy environment
          command: cp .sample.env .env

      # Which version of bundler?
      - run:
          name: Which bundler?
          command: bundle -v

      # Restore bundle cache
      - restore_cache:
          keys:
            - pester-bundle-v2-{{ checksum "Gemfile.lock" }}
            - pester-bundle-v2-

      - run:
          name: Bundle Install
          command: bundle check || bundle install

      # Store bundle cache
      - save_cache:
          key: pester-bundle-v2-{{ checksum "Gemfile.lock" }}
          paths:
            - vendor/bundle

      - run:
          name: Wait for DB
          command: dockerize -wait tcp://localhost:5432 -timeout 1m

      - run:
          name: Database setup
          command: bin/rake db:schema:load --trace

      # Run rspec in parallel
      - type: shell
        command: |
          bundle exec rspec --profile 10 \
            --format RspecJunitFormatter \
            --out test_results/rspec.xml \
            --format progress \
            $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)

      # Save test results for timing analysis
      - store_test_results:
          path: test_results

      # Save the tests split for replication of failures with the same seed
      - store_artifacts:
          path: test_results

          destination: test_results

{'fraction_non_alphanumeric': 0.07690493040811512, 'fraction_numerical': 0.04953998584571833, 'mean_word_length': 1.731958762886598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 2, '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': '5768593', 'n_tokens_mistral': 1435, 'n_tokens_neox': 1291, 'n_words': 309}