<commit_before>version: 2
jobs:
  test-job:
    working_directory: ~/bp-cron
    docker:
    - image: circleci/python:3.7.0-node
    steps:
    - checkout
    - restore_cache:
        keys:
        - v1-dependencies-{{ checksum "requirements.txt" }}
        - v1-dependencies-
    - run:
        name: Install dependencies
        command: |
          python3 -m venv venv
          source ./venv/bin/activate
          pip install -U pip setuptools tox
    - run:
        name: Run test
        command: |
          source ./venv/bin/activate
          tox -epy37,flake8
    - save_cache:
        paths:
        - ./venv
        key: v1-dependencies-{{ checksum "requirements.txt" }}
    - store_test_results:
        path: test-results
  deploy-job:
    working_directory: ~/bp-cron
    docker:
    - image: circleci/python:3.7.0-node
    steps:
    - checkout
    - run:
        command: npm install
    - deploy:
        name: Deploy by Serverless Framework
        command: |
          /home/circleci/bp-cron/node_modules/serverless/bin/serverless config credentials -k ${AWS_ACCESS_KEY_ID} -s ${AWS_SECRET_ACCESS_KEY} -p aws
          /home/circleci/bp-cron/node_modules/serverless/bin/serverless deploy
workflows:
  test-and-deploy:
    jobs:
    - test-job
    - deploy-job:
        filters:
          branches:
            only:
            - master
        requires:
        - test-job
  version: 2<commit_msg>test deploy<commit_after>version: 2
jobs:
  test-job:
    working_directory: ~/bp-cron
    docker:
    - image: circleci/python:3.7.0-node
    steps:
    - checkout
    - restore_cache:
        keys:
        - v1-dependencies-{{ checksum "requirements.txt" }}
        - v1-dependencies-
    - run:
        name: Install dependencies
        command: |
          python3 -m venv venv
          source ./venv/bin/activate
          pip install -U pip setuptools tox
    - run:
        name: Run test
        command: |
          source ./venv/bin/activate
          tox -epy37,flake8
    - save_cache:
        paths:
        - ./venv
        key: v1-dependencies-{{ checksum "requirements.txt" }}
    - store_test_results:
        path: test-results
  deploy-job:
    working_directory: ~/bp-cron
    docker:
    - image: circleci/python:3.7.0-node
    steps:
    - checkout
    - run:
        command: npm install
    - deploy:
        name: Deploy by Serverless Framework
        command: |
          /home/circleci/bp-cron/node_modules/serverless/bin/serverless config credentials -k ${AWS_ACCESS_KEY_ID} -s ${AWS_SECRET_ACCESS_KEY} -p aws
          /home/circleci/bp-cron/node_modules/serverless/bin/serverless deploy
workflows:
  test-and-deploy:
    jobs:
    - test-job
    - deploy-job:
        filters:
          branches:
            only:
            - circleci-deploy
        requires:
        - test-job
  version: 2
{'fraction_non_alphanumeric': 0.10291534949069196, 'fraction_numerical': 0.01053740779768177, 'mean_word_length': 1.7098001902949571, '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': '3471874', 'n_tokens_mistral': 944, 'n_tokens_neox': 914, 'n_words': 192}