<commit_before>version: 2.1

orbs:
  win: circleci/windows@2.4.0

commands:
  setup-venv:
    description: "Make subsequent steps to run in venv"
    steps:
      - run:
          name: Setup venv
          command: |
            pip install virtualenv==20.0.25
            virtualenv venv
            if [ -e venv/bin/activate ]; then
              echo ". venv/bin/activate" >> $BASH_ENV
            else
              echo ". venv/Scripts/activate" >> $BASH_ENV # for Windows
            fi
  codecov:
    parameters:
      flags:
        type: string
        default: ""
    steps:
      - run:
          name: Upload coverage report
          command: |
            curl -sS --connect-timeout 5 --retry 10 -o codecov-upload.sh https://codecov.io/bash
            bash codecov-upload.sh -n "$CIRCLE_JOB" -F "<< parameters.flags >>" -Z

workflows:
  version: 2
  test:
    jobs:
      - linter
      - test-36
      - test-37
      - test-38
      - test-windows
      - test-lambda:
          name: test-lambda-access_counts
          path: "access_counts"
      - test-lambda:
          name: test-lambda-indexer
          path: "es/indexer"
      - test-lambda:
          name: test-lambda-preview
          path: "preview"
      - test-lambda:
          name: test-lambda-s3select<commit_msg>Remove silent flag for downloading codecov bash uploader<commit_after>version: 2.1

orbs:
  win: circleci/windows@2.4.0

commands:
  setup-venv:
    description: "Make subsequent steps to run in venv"
    steps:
      - run:
          name: Setup venv
          command: |
            pip install virtualenv==20.0.25
            virtualenv venv
            if [ -e venv/bin/activate ]; then
              echo ". venv/bin/activate" >> $BASH_ENV
            else
              echo ". venv/Scripts/activate" >> $BASH_ENV # for Windows
            fi
  codecov:
    parameters:
      flags:
        type: string
        default: ""
    steps:
      - run:
          name: Upload coverage report
          command: |
            curl --connect-timeout 5 --retry 10 -o codecov-upload.sh https://codecov.io/bash
            bash codecov-upload.sh -n "$CIRCLE_JOB" -F "<< parameters.flags >>" -Z

workflows:
  version: 2
  test:
    jobs:
      - linter
      - test-36
      - test-37
      - test-38
      - test-windows
      - test-lambda:
          name: test-lambda-access_counts
          path: "access_counts"
      - test-lambda:
          name: test-lambda-indexer
          path: "es/indexer"
      - test-lambda:
          name: test-lambda-preview
          path: "preview"
      - test-lambda:
          name: test-lambda-s3select
{'fraction_non_alphanumeric': 0.10504361016306409, 'fraction_numerical': 0.015927189988623434, 'mean_word_length': 1.4981060606060606, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7617834', 'n_tokens_mistral': 841, 'n_tokens_neox': 816, 'n_words': 199}