<commit_before>db:
    image: mysql:5.5
    environment:
        - MYSQL_ROOT_PASSWORD=<PASSWORD>
        - MYSQL_DATABASE=coda_local

base:        
    build: .
    volumes:
        - .:/app/

app:
    extends:
        service: base
    command: python manage.py runserver 0.0.0.0:80
    ports:
        - "8000:80"
    links:
        - db

test:
    extends:
        service: base
    entrypoint: py.test
    links:
        - db

manage:
    extends:
        service: base
    entrypoint: /app/manage.py
    links:
        - db<commit_msg>refs. #99. update docker-compose to v2 style<commit_after>version: '2'
services:
    db:
        image: mysql:5.5
        environment:
            - MYSQL_ROOT_PASSWORD=<PASSWORD>
            - MYSQL_DATABASE=coda_local

    base:        
        build: .
        volumes:
            - .:/app/

    app:
        extends:
            service: base
        command: python manage.py runserver 0.0.0.0:80
        ports:
            - "8787:80"
        links:
            - db

    test:
        extends:
            service: base
        entrypoint: py.test
        links:
            - db

    manage:
        extends:
            service: base
        entrypoint: /app/manage.py
        links:
            - db
{'fraction_non_alphanumeric': 0.0944, 'fraction_numerical': 0.0256, 'mean_word_length': 1.2459605026929983, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5787192', 'n_tokens_mistral': 420, 'n_tokens_neox': 408, 'n_words': 86}