<commit_before>version: '2'
services:
  api:
    container_name: doubtfire-api
    build: .
    command: bash -c "rm /doubtfire-api/tmp/pids/server.pid && /usr/local/bin/rails server"
    ports:
      - "3000:3000"
    volumes:
      - ../doubtfire-api:/doubtfire-api
    links:
      - web
    depends_on:
      - db
    environment:
      DATABASE_URL: 'doubtfire-db'

  db:
    container_name: doubtfire-db
    image: postgres
    ports:
      - "5432:5432"
    environment:
      POSTGRES_PASSWORD: <PASSWORD>
      POSTGRES_USER: itig

  web:
    container_name: doubtfire-web
    build: ../doubtfire-web
    command: grunt watchsvr
    environment:
      DOUBTFIRE_DOCKER_MACHINE_IP: $DOUBTFIRE_DOCKER_MACHINE_IP
    ports:
      - "8000:8000"
    volumes:
      - ../doubtfire-web:/doubtfire-web
<commit_msg>CONFIG: Code in correct database connection string<commit_after>version: '2'
services:
  api:
    container_name: doubtfire-api
    build: .
    command: bash -c "rm /doubtfire-api/tmp/pids/server.pid && /usr/local/bin/rails server"
    ports:
      - "3000:3000"
    volumes:
      - ../doubtfire-api:/doubtfire-api
    links:
      - web
    depends_on:
      - db
    environment:
      DATABASE_URL: 'postgresql://itig:d872$$dh@db:5432/doubtfire_dev'

  db:
    container_name: doubtfire-db
    image: postgres
    ports:
      - "5432:5432"
    environment:
      POSTGRES_PASSWORD: <PASSWORD>
      POSTGRES_USER: itig

  web:
    container_name: doubtfire-web
    build: ../doubtfire-web
    command: grunt watchsvr
    environment:
      DOUBTFIRE_DOCKER_MACHINE_IP: $DOUBTFIRE_DOCKER_MACHINE_IP
    ports:
      - "8000:8000"
    volumes:
      - ../doubtfire-web:/doubtfire-web

{'fraction_non_alphanumeric': 0.11215502055196712, 'fraction_numerical': 0.03347034644744568, 'mean_word_length': 2.4011976047904193, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '762814', 'n_tokens_mistral': 689, 'n_tokens_neox': 634, 'n_words': 110}