<commit_before>version: '3'

services:
  civic:
    build: .
    environment:
      DATABASE_HOST: db
      DATABASE_USER: postgres
      DATABASE_PASSWORD: <PASSWORD>
    depends_on:
      db:
        condition: service_healthy
  db:
    image: postgres:14
    environment:
      POSTGRES_PASSWORD: <PASSWORD>
    healthcheck:
      test: "PASSWORD=psw pg_isready -U postgres"
      interval: 10s
      timeout: 5s
      retries: 5
<commit_msg>set RAILS_ENV to dev; simplified db depends_on; downgraded postgres to 13.5 to match app expectations<commit_after>version: '3'

services:
  civic:
    build: .
    environment:
      # setting to "development" for now as "production" also requires other infra related items that are not documented (?)
      RAILS_ENV: development
      DATABASE_HOST: db
      DATABASE_USER: postgres
      DATABASE_PASSWORD: <PASSWORD>
    depends_on:
      - db
  db:
    image: postgres:13.5
    ports:
      - "5432:5432"
    environment:
      POSTGRES_PASSWORD: <PASSWORD>
    healthcheck:
      test: "PASSWORD=psw pg_isready -U postgres"
      interval: 10s
      timeout: 5s
      retries: 5

{'fraction_non_alphanumeric': 0.07692307692307693, 'fraction_numerical': 0.022988505747126436, 'mean_word_length': 2.628205128205128, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4694770', 'n_tokens_mistral': 403, 'n_tokens_neox': 378, 'n_words': 101}