<commit_before>---
version: 2
jobs:
  docs-lint:
    docker:
      - image: msheiny/pressfreedomci:latest

    steps:
      - checkout

      - run:
          name: Rebase on-top of latest develop
          command: ./devops/scripts/rebase-develop.sh

      - run:
          name: Installation pre-reqs
          command: pip install -U -r securedrop/requirements/develop-requirements.txt

      - run:
          name: Run docs lint
          command: make docs-lint

  staging-test:
    docker:
      - image: msheiny/pressfreedomci:latest
        environment:
          FPF_CI: true
          CI_SD_ENV: staging
          CI_AWS_TYPE: t2.small
          FPF_GRSEC: false
          TEST_REPORTS: /root/sd
    working_directory: /root/sd

    steps:
      - checkout

      - run:
          name: Rebase on-top of latest develop
          command: ./devops/scripts/rebase-develop.sh

      - run:
          name: Installation pre-reqs
          command: pip install -U -r ./testinfra/requirements.txt

      - setup_remote_docker

      - run:
          name: Build deb packages
          command: make build-debs

      - run:
          name: Run molecule and manage tests
          command: make ci-go

      - run:
          name: Teardown environment
          command: make ci-teardown
          when: always

      - store_test_results:
          path: /root/sd/junit

      - store_artifacts:
          path: /root/sd/junit

workflows:
  version: 2
  securedrop_ci:
    jobs:
      - docs-lint
      - staging-test:
          requires:
            - docs-lint
<commit_msg>Switch from using private docker image to FPF<commit_after>---
version: 2
jobs:
  docs-lint:
    docker:
      - image: quay.io/freedomofpress/circleci-docker:latest

    steps:
      - checkout

      - run:
          name: Rebase on-top of latest develop
          command: ./devops/scripts/rebase-develop.sh

      - run:
          name: Installation pre-reqs
          command: pip install -U -r securedrop/requirements/develop-requirements.txt

      - run:
          name: Run docs lint
          command: make docs-lint

  staging-test:
    docker:
      - image: quay.io/freedomofpress/circleci-docker:latest
        environment:
          FPF_CI: true
          CI_SD_ENV: staging
          CI_AWS_TYPE: t2.small
          FPF_GRSEC: false
          TEST_REPORTS: /root/sd
    working_directory: /root/sd

    steps:
      - checkout

      - run:
          name: Rebase on-top of latest develop
          command: ./devops/scripts/rebase-develop.sh

      - run:
          name: Installation pre-reqs
          command: pip install -U -r ./testinfra/requirements.txt

      - setup_remote_docker

      - run:
          name: Build deb packages
          command: make build-debs

      - run:
          name: Run molecule and manage tests
          command: make ci-go

      - run:
          name: Teardown environment
          command: make ci-teardown
          when: always

      - store_test_results:
          path: /root/sd/junit

      - store_artifacts:
          path: /root/sd/junit

workflows:
  version: 2
  securedrop_ci:
    jobs:
      - docs-lint
      - staging-test:
          requires:
            - docs-lint

{'fraction_non_alphanumeric': 0.08131595282433271, 'fraction_numerical': 0.00186219739292365, 'mean_word_length': 1.5458135860979463, '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': '192390', 'n_tokens_mistral': 1024, 'n_tokens_neox': 954, 'n_words': 243}