<commit_before>kind: Template
apiVersion: v1
template: oshinko-rest
metadata:
  name: oshinko-rest
objects:

- kind: Service
  apiVersion: v1
  metadata:
    name: ${SERVER_NAME}
    labels:
      name: ${SERVER_NAME}
  spec:
    ports:
      - name: oshinko-rest-port
        protocol: TCP
        port: 8080
        targetPort: 8080
    selector:
      name: ${SERVER_NAME}

- kind: DeploymentConfig
  apiVersion: v1
  metadata:
    name: ${SERVER_NAME}
  spec:
    strategy:
      type: Rolling
    triggers:
      - type: ConfigChange
    replicas: 1
    selector:
      name: ${SERVER_NAME}
    template:
      metadata:
        labels:
          name: ${SERVER_NAME}
      spec:
        containers:
          - name: ${SERVER_NAME}
            image: ${OSHINKO_SERVER_IMAGE}
            env:
              - name: OSHINKO_SERVER_PORT
                value: "8080"
              - name: OSHINKO_REST_POD_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.name
              - name: OSHINKO_CLUSTER_NAMESPACE
                valueFrom:
                    fieldRef:
                      fieldPath: metadata.namespace
              - name: OSHINKO_CLUSTER_IMAGE
                value: ${OSHINKO_CLUSTER_IMAGE}
            ports:
              - name: rest-port
                containerPort: 8080
                protocol: TCP
        serviceAccount: oshinko
parameters:
- name: OSHINKO_SERVER_IMAGE
  description: Full name of the oshinko server image
  required: true
- name: SERVER_NAME
  description: Name of the oshinko server service
  generate: expression
  from: "oshinko-rest-[a-z0-9]{4}"
  required: true
- name: OSHINKO_CLUSTER_IMAGE
  description: Full name of the spark image to use when creating clusters
  value: your-registry-hostname-here.io/apache-spark-2/spark20-hadoop27-openshift:2.0<commit_msg>Make template consistent with server-ui-template.yaml (#71)<commit_after>kind: Template
apiVersion: v1
template: oshinko-rest
metadata:
  name: oshinko-rest
objects:

- kind: Service
  apiVersion: v1
  metadata:
    name: ${SERVER_NAME}
    labels:
      name: ${SERVER_NAME}
  spec:
    ports:
      - name: oshinko-rest-port
        protocol: TCP
        port: 8080
        targetPort: 8080
    selector:
      name: ${SERVER_NAME}

- kind: DeploymentConfig
  apiVersion: v1
  metadata:
    name: ${SERVER_NAME}
  spec:
    strategy:
      type: Rolling
    triggers:
      - type: ConfigChange
    replicas: 1
    selector:
      name: ${SERVER_NAME}
    template:
      metadata:
        labels:
          name: ${SERVER_NAME}
      spec:
        containers:
          - name: ${SERVER_NAME}
            image: ${OSHINKO_SERVER_IMAGE}
            env:
              - name: OSHINKO_SERVER_PORT
                value: "8080"
              - name: OSHINKO_REST_POD_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: metadata.name
              - name: OSHINKO_CLUSTER_NAMESPACE
                valueFrom:
                    fieldRef:
                      fieldPath: metadata.namespace
              - name: OSHINKO_CLUSTER_IMAGE
                value: ${OSHINKO_CLUSTER_IMAGE}
            ports:
              - name: rest-port
                containerPort: 8080
                protocol: TCP
        serviceAccount: oshinko
parameters:
- name: OSHINKO_SERVER_IMAGE
  description: Full name of the oshinko server image
  required: true
- name: SERVER_NAME
  description: Name of the oshinko server service
  generate: expression
  from: "oshinko-rest-[a-z0-9]{4}"
  required: true
- name: OSHINKO_CLUSTER_IMAGE
  description: Full name of the spark image to use when creating clusters
  required: true
{'fraction_non_alphanumeric': 0.0759084791386272, 'fraction_numerical': 0.014804845222072678, 'mean_word_length': 1.8453292496171516, 'pattern_counts': {'":': 0, '<': 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': '1975129', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1114, 'n_words': 278}