<commit_before>#!/bin/bash

cat > kub_dev_controller.json <<EOF
{
  "kind": "ReplicationController",
  "apiVersion": "v1",
  "metadata": {
    "name": "graphql",
    "labels": {
      "name": "graphql"
    }
  },
  "spec": {
    "replicas": 1,
    "selector": {
      "name": "graphql"
    },
    "template": {
      "metadata": {
        "labels": {
          "name": "graphql",
          "deployment": "${WERCKER_GIT_COMMIT}"
        }
      },
      "spec": {
        "containers": [
          {
            "imagePullPolicy": "Always",
            "image": "quay.io/lnlwd/graphql-playground:${WERCKER_GIT_COMMIT}",
            "name": "graphql",
            "ports": [
              {
                "name": "http-server",
                "containerPort": 3000,
                "protocol": "TCP"
              }
            ],
            "livenessProbe": {
              "httpGet": {
                "path": "/healthz",
                "port": 3000
              },
              "initialDelaySeconds": 30,
              "timeoutSeconds": 3
            },
            "readinessProbe": {
              "httpGet": {
                "path": "/readiness",
                "port": 3000
              },
              "initialDelaySeconds": 30,
              "timeoutSeconds": 3
            }
          }
        ]
      }
    }
  }
}
EOF<commit_msg>Change liveness and readiness<commit_after>#!/bin/bash

cat > kub_dev_controller.json <<EOF
{
  "kind": "ReplicationController",
  "apiVersion": "v1",
  "metadata": {
    "name": "graphql",
    "labels": {
      "name": "graphql"
    }
  },
  "spec": {
    "replicas": 1,
    "selector": {
      "name": "graphql"
    },
    "template": {
      "metadata": {
        "labels": {
          "name": "graphql",
          "deployment": "${WERCKER_GIT_COMMIT}"
        }
      },
      "spec": {
        "containers": [
          {
            "imagePullPolicy": "Always",
            "image": "quay.io/lnlwd/graphql-playground:${WERCKER_GIT_COMMIT}",
            "name": "graphql",
            "ports": [
              {
                "name": "http-server",
                "containerPort": 3000,
                "protocol": "TCP"
              }
            ],
            "livenessProbe": {
              "args": [
                "/graphiql"
              ],
              "httpGet": {
                "path": "/healthz",
                "port": 3000
              },
              "initialDelaySeconds": 30,
              "timeoutSeconds": 3
            },
            "readinessProbe": {
              "args": [
                "/graphiql"
              ],
              "httpGet": {
                "path": "/readiness",
                "port": 3000
              },
              "initialDelaySeconds": 30,
              "timeoutSeconds": 3
            }
          }
        ]
      }
    }
  }
}
EOF
{'fraction_non_alphanumeric': 0.15756302521008403, 'fraction_numerical': 0.014005602240896359, 'mean_word_length': 1.1289120715350223, 'pattern_counts': {'":': 74, '<': 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': '1276432', 'n_tokens_mistral': 902, 'n_tokens_neox': 842, 'n_words': 132}