<commit_before>{
  "apiVersion": "v1",
  "kind": "Template",
  "metadata": {
    "annotations": {
      "description": "Deployment template for a angular on nginx",
      "tags": "angular,nginx"
    },
    "name": "angular-on-nginx"
  },
  "objects": [
    {
      "apiVersion": "v1",
      "kind": "ImageStream",
      "metadata": {
        "annotations": {
          "description": "runtime images stream"
        },
        "name": "${SOURCE_NAME}"
      }
    },
    {
      "apiVersion": "v1",
      "kind": "DeploymentConfig",
      "metadata": {
        "creationTimestamp": null,
        "labels": {
          "app": "${NAME}"
        },
        "name": "${NAME}"
      },
      "spec": {
        "replicas": 2,
        "selector": {
          "app": "${NAME}",
          "deploymentconfig": "${NAME}"
        },
        "strategy": {
          "rollingParams": {
            "intervalSeconds": 1,
            "maxSurge": "25%",
            "maxUnavailable": "25%",
            "timeoutSeconds": 600,
            "updatePeriodSeconds": 1
          },
          "type": "Rolling"
        },
        "template": {
          "metadata": {
            "creationTimestamp": null,
            "labels": {
              "app": "${NAME}",
              "deploymentconfig": "${NAME}"
            }
          },
          "spec": {
            "containers": [
              {
                "image": "${SOURCE_NAME}",
                "imagePullPolicy": "Always",
                "name": "${NAME}",
                "ports": [
                  {
                    "containerPort": 8080,
                    "protocol": "TCP"
                  }
                ],
                "env": [
                  {
                    "name": "RealIpFrom",
                    "value": "${REAL_IP_FROM}"
                  },
                  {
                    "name": "AdditionalRealIpFromRules",
                    "value": "${AdditionalRealIpFromRules}"
                  },
                  {
                    "name": "IpFilterRules",
                    "value": "${IpFilterRules}"
                  },
                  {
                    "name": "USE_SPLUNK_FORWARDER",
                    "value": "${USE_SPLUNK_FORWARDER}"
                  },
                  {
                    "name": "HTTP_BASIC",
                    "value": "${HTTP_BASIC}"
                  },
                  {
                    "name": "HTTP_BASIC_USERNAME",
                    "value": "${HTTP_BASIC_USERNAME}"
                  },
                  {
                    "name": "HTTP_BASIC_PASSWORD",
                    "value": "${HTTP_BASIC_PASSWORD}"
                  },
                  {
                    "name": "SPLUNK_AUTH_TOKEN",
                    "value": "${SPLUNK_AUTH_TOKEN}"
                  },
                ],
                "resources": {
                  "requests": {
                    "cpu": "10m",
                    "memory": "100Mi"
                  },
                  "limits": {
                    "cpu": "250m",
                    "memory": "1Gi"
                  }
                },
                "livenessProbe": {
                  "httpGet": {
                    "path": "/nginx_status",
                    "port": 8080,
                    "scheme": "HTTP"
                  },
                  "initialDelaySeconds": 30,
                  "timeoutSeconds": 60,
                  "periodSeconds": 10,
                  "successThreshold": 1,
                  "failureThreshold": 3
                },
                "readinessProbe": {
                  "httpGet": {
                    "path": "/nginx_status",
                    "port": 8080,<commit_msg>nginx var added<commit_after>{
  "apiVersion": "v1",
  "kind": "Template",
  "metadata": {
    "annotations": {
      "description": "Deployment template for a angular on nginx",
      "tags": "angular,nginx"
    },
    "name": "angular-on-nginx"
  },
  "objects": [
    {
      "apiVersion": "v1",
      "kind": "ImageStream",
      "metadata": {
        "annotations": {
          "description": "runtime images stream"
        },
        "name": "${SOURCE_NAME}"
      }
    },
    {
      "apiVersion": "v1",
      "kind": "DeploymentConfig",
      "metadata": {
        "creationTimestamp": null,
        "labels": {
          "app": "${NAME}"
        },
        "name": "${NAME}"
      },
      "spec": {
        "replicas": 2,
        "selector": {
          "app": "${NAME}",
          "deploymentconfig": "${NAME}"
        },
        "strategy": {
          "rollingParams": {
            "intervalSeconds": 1,
            "maxSurge": "25%",
            "maxUnavailable": "25%",
            "timeoutSeconds": 600,
            "updatePeriodSeconds": 1
          },
          "type": "Rolling"
        },
        "template": {
          "metadata": {
            "creationTimestamp": null,
            "labels": {
              "app": "${NAME}",
              "deploymentconfig": "${NAME}"
            }
          },
          "spec": {
            "containers": [
              {
                "image": "${SOURCE_NAME}",
                "imagePullPolicy": "Always",
                "name": "${NAME}",
                "ports": [
                  {
                    "containerPort": 8080,
                    "protocol": "TCP"
                  }
                ],
                "env": [
                  {
                    "name": "RealIpFrom",
                    "value": "${REAL_IP_FROM}"
                  },
                  {
                    "name": "AdditionalRealIpFromRules",
                    "value": "${AdditionalRealIpFromRules}"
                  },
                  {
                    "name": "IpFilterRules",
                    "value": "${IpFilterRules}"
                  },
                  {
                    "name": "USE_SPLUNK_FORWARDER",
                    "value": "${USE_SPLUNK_FORWARDER}"
                  },
                  {
                    "name": "HTTP_BASIC",
                    "value": "${HTTP_BASIC}"
                  },
                  {
                    "name": "HTTP_BASIC_USERNAME",
                    "value": "${HTTP_BASIC_USERNAME}"
                  },
                  {
                    "name": "HTTP_BASIC_PASSWORD",
                    "value": "${HTTP_BASIC_PASSWORD}"
                  },
                  {
                    "name": "SPLUNK_AUTH_TOKEN",
                    "value": "${SPLUNK_AUTH_TOKEN}"
                  },
                  {
                    "name": "SPA_ENV_AUTH_TOKEN",
                    "value": "${SPA_ENV_AUTH_TOKEN}"
                  }
                ],
                "resources": {
                  "requests": {
                    "cpu": "10m",
                    "memory": "100Mi"
                  },
                  "limits": {
                    "cpu": "250m",
                    "memory": "1Gi"
                  }
                },
                "livenessProbe": {
                  "httpGet": {
                    "path": "/nginx_status",
                    "port": 8080,
                    "scheme": "HTTP"
                  },
                  "initialDelaySeconds": 30,
                  "timeoutSeconds": 60,
                  "periodSeconds": 10,
                  "successThreshold": 1,
                  "failureThreshold": 3
                },
                "readinessProbe": {
                  "httpGet": {
                    "path": "/nginx_status",
                    "port": 8080,
{'fraction_non_alphanumeric': 0.14475939353988135, 'fraction_numerical': 0.011074489123269611, 'mean_word_length': 0.9036386449184441, 'pattern_counts': {'":': 174, '<': 3, '<?xml version=': 0, '>': 3, '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': '2369744', 'n_tokens_mistral': 2092, 'n_tokens_neox': 1873, 'n_words': 317}