<commit_before>version: "2"

services:
  voting-app:
    build: ./voting-app/.
    volumes:
     - ./voting-app:/app
    ports:
      - "5000:9080"
    networks:
      - front-tier
      - back-tier

  result-app:
    build: ./result-app/.
    volumes:
      - ./result-app:/app
    ports:
      - "5001:9080"
    networks:
      - front-tier
      - back-tier

  worker:
    build: ./worker
    networks:
      - back-tier

  wxs-cat:
    build: ./wxs_cat
    ports:
      - "2809:2809"
    hostname: wxs
    networks:
      back-tier:
        aliases:
            - wxs
 
  wxs-con:
   build: ./wxs_con
   networks:
      - back-tier

  db:
    build: ./db2/.
    ports: 
       - "50000:50000"
    environment:
      DB2INST1_PASSWORD: <PASSWORD>
      LICENSE: accept
    command: db2start
    volumes:
      - "db-data:/home/db2inst1/db2inst1"
    networks:
      - back-tier

volumes:
  db-data:

networks:
  front-tier:
  back-tier:

<commit_msg>Remove external ports<commit_after>version: "2"

services:
  voting-app:
    build: ./voting-app/.
    volumes:
     - ./voting-app:/app
    ports:
      - "5000:9080"
    networks:
      - front-tier
      - back-tier

  result-app:
    build: ./result-app/.
    volumes:
      - ./result-app:/app
    ports:
      - "5001:9080"
    networks:
      - front-tier
      - back-tier

  worker:
    build: ./worker
    networks:
      - back-tier

  wxs-cat:
    build: ./wxs_cat
    hostname: wxs
    expose:
      - "2809"
    networks:
      back-tier:
        aliases:
            - wxs
 
  wxs-con:
   build: ./wxs_con
   networks:
      - back-tier

  db:
    build: ./db2/.
    environment:
      DB2INST1_PASSWORD: <PASSWORD>
      LICENSE: accept
    command: db2start
    expose:
      - "50000"
    volumes:
      - "db-data:/home/db2inst1/db2inst1"
    networks:
      - back-tier

volumes:
  db-data:

networks:
  front-tier:
  back-tier:


{'fraction_non_alphanumeric': 0.1303205465055176, 'fraction_numerical': 0.04046242774566474, 'mean_word_length': 1.5085638998682478, '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': '7204014', 'n_tokens_mistral': 783, 'n_tokens_neox': 731, 'n_words': 132}