<commit_before>version: '2'

jobs:
  build:
    docker:
      - image: circleci/python:3
    environment:
      REGISTRY: QUAY
    steps:
      - checkout
      - setup_remote_docker
      - run:
          name: Setup Environment
          command: source setup_env.sh
      - run:
          name: Install Docker Compose
          command: sudo pip install docker-compose
      - run:
          name: Building Container Images
          command: ./build.sh
      - run:
          name: Generate Tests
          command: bash tests/generate_tests.sh
      - run:
          environment:
            DB: postgres
          name: Postgres Tests
          command: bash tests/test.sh
      - run:
          environment:
            DB: mysql
          name: MySQL Test
          command: bash tests/test.sh
      - deploy:
          environment:
            REGISTRY: QUAY
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
              bash .travis/deploy.sh
            fi

workflows:
  version: 2
  commit-workflow:
    jobs:
      - build

  scheduled-workflow:
    triggers:
      - schedule:
          cron: "@weekly"
          filters:
            branches:
              only: master
    jobs:
      - build:
          context: org-global

  push-dev:
    jobs:
      - build:
          context: org-global
<commit_msg>Setup Quay URL in the environment too. (#190)<commit_after>version: '2'

jobs:
  build:
    docker:
      - image: circleci/python:3
    environment:
      REGISTRY: QUAY
      QUAY_URL: quay.io
    steps:
      - checkout
      - setup_remote_docker
      - run:
          name: Setup Environment
          command: source setup_env.sh
      - run:
          name: Install Docker Compose
          command: sudo pip install docker-compose
      - run:
          name: Building Container Images
          command: ./build.sh
      - run:
          name: Generate Tests
          command: bash tests/generate_tests.sh
      - run:
          environment:
            DB: postgres
          name: Postgres Tests
          command: bash tests/test.sh
      - run:
          environment:
            DB: mysql
          name: MySQL Test
          command: bash tests/test.sh
      - deploy:
          environment:
            REGISTRY: QUAY
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
              bash .travis/deploy.sh
            fi

workflows:
  version: 2
  commit-workflow:
    jobs:
      - build

  scheduled-workflow:
    triggers:
      - schedule:
          cron: "@weekly"
          filters:
            branches:
              only: master
    jobs:
      - build:
          context: org-global

  push-dev:
    jobs:
      - build:
          context: org-global

{'fraction_non_alphanumeric': 0.08061002178649238, 'fraction_numerical': 0.0032679738562091504, 'mean_word_length': 1.3229342327150084, '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': '2183072', 'n_tokens_mistral': 811, 'n_tokens_neox': 771, 'n_words': 209}