<commit_before>variables:
  POSTGRES_PASSWORD: duubidoo
  SECRET_KEY_BASE: "we-dont-need-a-secret-here"
  DB_USER: "postgres"
  DB_PASSWORD: "<PASSWORD>"
  APP_ADMIN_EMAIL: "<EMAIL>"
  APP_ADMIN_PASSWORD: "<PASSWORD>"
  APP_EMAIL: "<EMAIL>"
  APP_HOST: "example.org"
  AWS_ACCESS_KEY_ID: "my-access-key"
  AWS_SECRET_ACCESS_KEY: "my-secret"
  AWS_BUCKET: "my-bucket"
  AWS_REGION: "eu-central-1"

test:
  before_script:
    - docker-compose pull
    - docker-compose build

  script:
    - docker-compose run --rm test bash -c "./docker/wait-for-services.sh && bundle exec rake db:create spec rubocop"

  after_script:
    - docker-compose run --rm test rm -rf tmp/
    - docker-compose down
    - docker volume rm `docker volume ls -qf dangling=true`
<commit_msg>GitLab CI: Push to docker registry<commit_after>variables:
  POSTGRES_PASSWORD: duubidoo
  SECRET_KEY_BASE: "we-dont-need-a-secret-here"
  DB_USER: "postgres"
  DB_PASSWORD: "duubidoo"
  APP_ADMIN_EMAIL: "<EMAIL>"
  APP_ADMIN_PASSWORD: "<PASSWORD>"
  APP_EMAIL: "<EMAIL>"
  APP_HOST: "example.org"
  AWS_ACCESS_KEY_ID: "my-access-key"
  AWS_SECRET_ACCESS_KEY: "my-secret"
  AWS_BUCKET: "my-bucket"
  AWS_REGION: "eu-central-1"
  CONTAINER_LATEST_IMAGE: $CI_REGISTRY_IMAGE:latest

before_script:
  - echo $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY

test:
  script:
    - docker build -t $CONTAINER_LATEST_IMAGE .
    - docker-compose pull

    - docker-compose run --rm test bash -c "./docker/wait-for-services.sh && bundle exec rake db:create spec rubocop"
    - docker push $CONTAINER_LATEST_IMAGE

  after_script:
    - docker-compose run --rm test rm -rf tmp/
    - docker-compose down
    - docker volume rm `docker volume ls -qf dangling=true`

{'fraction_non_alphanumeric': 0.11784897025171624, 'fraction_numerical': 0.0011441647597254005, 'mean_word_length': 3.7398373983739837, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '6148757', 'n_tokens_mistral': 726, 'n_tokens_neox': 688, 'n_words': 146}