<commit_before>version: '2'

volumes:
  postgres:
    driver: local
  node_modules:
    driver: local
  uploads:
    driver: local

services:
  # Database servers
  postgres:
    image: postgres:9.3
    environment:
      PGDATA: /var/lib/postgresql/data/pgdata
      POSTGRES_PASSWORD: <PASSWORD>
      POSTGRES_USER: postgres
    volumes:
      - postgres:/var/lib/postgresql/data
  redis:
    image: redis
  elasticsearch:
    image: elasticsearch

  # Web server, routing /api and / to server, client respectively
  router:
    build: ./router
    links: [client, server]
    volumes:
      - uploads:/srv/www/uploads/system
    ports: [80]

  # Rails server
  server: &rails
    links: [postgres, redis, elasticsearch]
    build: ./server
    volumes:
      - ./server:/opt/kitsu/server
      - uploads:/opt/kitsu/server/public/system
    environment:
      DATABASE_URL: 'postgresql://postgres:mysecretpassword@postgres/'
      REDIS_URL: 'redis://redis/1'
      RAILS_ENV: development

  # Sidekiq
  sidekiq:
    <<: *rails
    command: [sidekiq]

  # Ember server
  client:
    build: ./client
    volumes:
      - ./client:/opt/kitsu/client
      - /opt/kitsu/client/node_modules
      - /opt/kitsu/client/bower_components
    tmpfs:
      - /opt/kitsu/client/tmp
    environment:
      EMBER_ENV: development
    ports: ['57777:57777']
<commit_msg>Stay on ES 2.4 until we can support 5<commit_after>version: '2'

volumes:
  postgres:
    driver: local
  node_modules:
    driver: local
  uploads:
    driver: local

services:
  # Database servers
  postgres:
    image: postgres:9.3
    environment:
      PGDATA: /var/lib/postgresql/data/pgdata
      POSTGRES_PASSWORD: <PASSWORD>
      POSTGRES_USER: postgres
    volumes:
      - postgres:/var/lib/postgresql/data
  redis:
    image: redis
  elasticsearch:
    image: elasticsearch:2

  # Web server, routing /api and / to server, client respectively
  router:
    build: ./router
    links: [client, server]
    volumes:
      - uploads:/srv/www/uploads/system
    ports: [80]

  # Rails server
  server: &rails
    links: [postgres, redis, elasticsearch]
    build: ./server
    volumes:
      - ./server:/opt/kitsu/server
      - uploads:/opt/kitsu/server/public/system
    environment:
      DATABASE_URL: 'postgresql://postgres:mysecretpassword@postgres/'
      REDIS_URL: 'redis://redis/1'
      RAILS_ENV: development

  # Sidekiq
  sidekiq:
    <<: *rails
    command: [sidekiq]

  # Ember server
  client:
    build: ./client
    volumes:
      - ./client:/opt/kitsu/client
      - /opt/kitsu/client/node_modules
      - /opt/kitsu/client/bower_components
    tmpfs:
      - /opt/kitsu/client/tmp
    environment:
      EMBER_ENV: development
    ports: ['57777:57777']

{'fraction_non_alphanumeric': 0.11305616338439095, 'fraction_numerical': 0.01312910284463895, 'mean_word_length': 2.480964467005076, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2595941', 'n_tokens_mistral': 1004, 'n_tokens_neox': 944, 'n_words': 194}