<commit_before>{
    "apiVersion": "v1",
    "kind": "Template",
    "labels": {
        "application": "TODO",
        "createdBy": "golang-app-template"
    },
    "metadata": {
        "annotations": {
            "description": "Builds a golang application from a git repository with a Dockerfile and an existing, base image stream",
            "iconClass": "icon-golang",
            "tags": "builder, golang"
        },
        "name": "golang-app-template"
    },
    "objects": [
        {
            "apiVersion": "v1",
            "kind": "BuildConfig",
            "metadata": {
                "name": "${APPLICATION}"
            },
            "spec": {
                "output": {
                    "to": {
                        "kind": "ImageStreamTag",
                        "name": "${APPLICATION}:latest"
                    }
                },
                "resources": {},
                "source": {
                    "contextDir": "${CONTEXT_DIR}",
                    "git": {
                        "ref": "${GIT_REF}",
                        "uri": "${GIT_URI}"
                    },
                    "type": "Git"
                },
                "strategy": {
                    "customStrategy": {
                        "exposeDockerSocket": true,
                        "from": {
                            "kind": "ImageStreamTag",
                            "name": "golang:latest",
                            "namespace": ""
                        }
                    },
                    "type": "custom"
                },
                "triggers": [
                    {
                        "github": {
                            "secret": "${GITHUB_TRIGGER_SECRET}"
                        },
                        "type": "GitHub"
                    },
                    {
                        "generic": {
                            "secret": "${GENERIC_TRIGGER_SECRET}"
                        },
                        "type": "Generic"
                    },
                    {
                        "imageChange": {},
                        "type": "ImageChange"
                    }
                ]
            }
        },
        {
            "apiVersion": "v1",
            "kind": "ImageStream",
            "metadata": {
                "name": "${APPLICATION}"
            },
            "spec": {
                "dockerImageRepository": "",
                "tags": [
                    {
                        "from": {
                            "kind": "ImageStreamTag",
                            "name": "${APPLICATION}:latest"
                        },
                        "name": "latest"
                    }
                ]
            }
        }
    ],
    "parameters": [
        {
            "description": "The name for the new application.",
            "displayName": "Application Name",
            "name": "APPLICATION",
            "reqired": true,
            "value": ""
        },
        {
            "description": "The name:tag of the existing, base imagestream upon which this new imagestream builds.",
            "displayName": "Base Imagestream Name",
            "name": "BASE_IMAGESTREAM",
            "required": true,
            "value": "centos:7"
        },
        {
            "description": "Git source URI for application",
            "name": "GIT_URI",
            "value": "https://github.com/mchudgins/jeeves.git"
        },
        {
            "description": "Git branch/tag reference",
            "name": "GIT_REF",<commit_msg>revised golang-app-template<commit_after>{
    "apiVersion": "v1",
    "kind": "Template",
    "labels": {
        "application": "TODO",
        "createdBy": "golang-app-template"
    },
    "metadata": {
        "annotations": {
            "description": "Builds a golang application from a git repository with a Dockerfile and an existing, base image stream",
            "iconClass": "icon-golang",
            "tags": "builder, golang"
        },
        "name": "golang-app-template"
    },
    "objects": [
        {
            "apiVersion": "v1",
            "kind": "BuildConfig",
            "metadata": {
                "name": "${APPLICATION}"
            },
            "spec": {
                "output": {
                    "to": {
                        "kind": "ImageStreamTag",
                        "name": "${APPLICATION}:latest"
                    }
                },
                "resources": {},
                "source": {
                    "contextDir": "${CONTEXT_DIR}",
                    "git": {
                        "ref": "${GIT_REF}",
                        "uri": "${GIT_URI}"
                    },
                    "type": "Git"
                },
                "strategy": {
                    "customStrategy": {
                        "exposeDockerSocket": true,
                        "from": {
                            "kind": "ImageStreamTag",
                            "name": "golang:latest",
                            "namespace": ""
                        }
                    },
                    "type": "custom"
                },
                "triggers": [
                    {
                        "github": {
                            "secret": "${GITHUB_TRIGGER_SECRET}"
                        },
                        "type": "GitHub"
                    },
                    {
                        "generic": {
                            "secret": "${GENERIC_TRIGGER_SECRET}"
                        },
                        "type": "Generic"
                    },
                    {
                        "imageChange": {},
                        "type": "ImageChange"
                    }
                ]
            }
        },
        {
            "apiVersion": "v1",
            "kind": "ImageStream",
            "metadata": {
                "name": "${APPLICATION}"
            },
            "spec": {
                "dockerImageRepository": "",
                "tags": [
                    {
                        "from": {
                            "kind": "ImageStreamTag",
                            "name": "${APPLICATION}:latest"
                        },
                        "name": "latest"
                    }
                ]
            }
        },
        {
            "apiVersion": "v1",
            "kind": "DeploymentConfig",
            "metadata": {
                "name": "${APPLICATION}"
            },
            "spec": {
                "replicas": 1,
                "selector": {
                    "deploymentConfig": "${APPLICATION}"
                },
                "strategy": {
                    "resources": {},
                    "rollingParams": {
                        "intervalSeconds": 1,
                        "timeoutSeconds": 600,
                        "updatePeriodSeconds": 1
                    },
                    "type": "Rolling"
                },
                "template": {
                    "metadata": {
                        "labels": {
                            "deploymentConfig": "${APPLICATION}"
                        }
                    },
                    "spec": {
                        "containers": [
                            {
                                "image": "${APPLICATION}",
                                "imagePullPolicy": "IfNotPresent",
                                "livenessProbe": {
                                    "initialDelaySeconds": 30,
                                    "tcpSocket": {
                                        "port": 8080
                                    },
                                    "timeoutSeconds": 1
                                },
                                "name": "${APPLICATION}",
                                "ports": [
                                    {
                                        "containerPort": 8080,
                                        "protocol": "TCP"
                                    }
                                ],
                                "resources": [],
                                "securityContext": {
                                    "capabilities": {},
                                    "privileged": false
                                },
                                "terminationMessagePath": "/dev/termination-log"
                            }
                        ],
                        "dnsPolicy": "ClusterFirst",
                        "restartPolicy": "Always"
                    }
                },
                "triggers": [
                    {
                        "type": "ConfigChange"
                    },
                    {
                        "imageChangeParams": {
                            "automatic": true,
                            "containerNames": [
                                "${APPLICATION}"
                            ],
                            "from": {
                                "kind": "ImageStreamTag",
                                "name": "${APPLICATION}:latest"
                            }
                        },
                        "type": "ImageChange"
                    }
                ]
            }
        },
        {
            "apiVersion": "v1",
            "kind": "Service",
            "metadata": {
                "name": "${APPLICATION}"
            },
            "spec": {
                "ports": [
                    {
                        "name": "${APPLICATION}-http",
                        "port": 8080,
                        "targetPort": 8080
                    }
                ],
                "selector": {
                    "deploymentconfig": "${APPLICATION}"
                },
                "sessionAffinity": "None",
                "type": "ClusterIP"
            }
        }
    ],
    "parameters": [
        {
            "description": "The name for the new application.",
            "displayName": "Application Name",
            "name": "APPLICATION",
            "reqired": true,
            "value": ""
        },
        {
            "description": "The name:tag of the existing, base imagestream upon which this new imagestream builds.",
            "displayName": "Base Imagestream Name",
            "name": "BASE_IMAGESTREAM",
            "required": true,
            "value": "centos:7"
        },
        {
            "description": "Git source URI for application",
            "name": "GIT_URI",
            "value": "https://github.com/mchudgins/jeeves.git"
        },
        {
            "description": "Git branch/tag reference",
            "name": "GIT_REF",
{'fraction_non_alphanumeric': 0.12257707218017352, 'fraction_numerical': 0.0032305704264352962, 'mean_word_length': 0.7168436064015211, 'pattern_counts': {'":': 205, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 11, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1969505', 'n_tokens_mistral': 2535, 'n_tokens_neox': 2292, 'n_words': 422}