<commit_before>#!/bin/sh
cat > $APP_NAME.json <<EOF
{
    "id": "/$APP_NAME",
    "instances": 3,
    "container": {
        "type": "DOCKER",
        "docker": {
            "image": "lreimer/cloud-native-go:$WERCKER_GIT_COMMIT",
            "network": "BRIDGE",
            "forcePullImage": true,
            "portMappings": [
                {
                    "containerPort": 8080,
                    "hostPort": 0,
                    "protocol": "tcp"
                }
            ]
        }
    },
    "healthChecks": [{
        "protocol": "TCP",
        "gracePeriodSeconds": 600,
        "intervalSeconds": 30,
        "portIndex": 0,
        "timeoutSeconds": 10,
        "maxConsecutiveFailures": 2
    }],
    "ports": [0],
    "cpus": 0.5,
    "mem": 64.0
}
EOF<commit_msg>Fixed JSON generator script to generate array instead of object.<commit_after>#!/bin/sh
cat > $APP_NAME.json <<EOF
[{
    "id": "$APP_NAME",
    "instances": 3,
    "container": {
        "type": "DOCKER",
        "docker": {
            "image": "lreimer/cloud-native-go:$WERCKER_GIT_COMMIT",
            "network": "BRIDGE",
            "forcePullImage": true,
            "privileged": false,
            "portMappings": [
                {
                    "containerPort": 8080,
                    "protocol": "tcp",
                    "labels": {
                        "VIP_0": "cloud-native-go:8080"
                    }
                }
            ]
        }
    },
    "healthChecks": [{
        "protocol": "TCP",
        "gracePeriodSeconds": 600,
        "intervalSeconds": 30,
        "portIndex": 0,
        "timeoutSeconds": 10,
        "maxConsecutiveFailures": 2
    }],
    "cpus": 0.5,
    "mem": 64.0,
    "disk": 0
}]
EOF
{'fraction_non_alphanumeric': 0.15903890160183065, 'fraction_numerical': 0.02631578947368421, 'mean_word_length': 1.4124137931034482, 'pattern_counts': {'":': 46, '<': 7, '<?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': '2424745', 'n_tokens_mistral': 603, 'n_tokens_neox': 546, 'n_words': 101}