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

- kind: Service
  apiVersion: v1
  metadata:
    name: ${OSHINKO_SERVER_NAME}
    labels:
      name: ${OSHINKO_SERVER_NAME}
  spec:
    ports:
      - name: o-rest-port
        protocol: TCP
        port: 8081
        targetPort: 8081
    selector:
      name: ${OSHINKO_SERVER_NAME}

- kind: Service
  apiVersion: v1
  metadata:
    name: ${OSHINKO_WEB_NAME}
    annotations:
      service.alpha.openshift.io/dependencies: '[{"name":"${OSHINKO_SERVER_NAME}","namespace":"","kind":"Service"}]'
    labels:
      name: ${OSHINKO_WEB_NAME}
      restname: ${OSHINKO_SERVER_NAME}
  spec:
    ports:
      - name: o-web-port
        protocol: TCP
        port: 8080
        targetPort: 8080
    selector:
      name: ${OSHINKO_SERVER_NAME}

- kind: ConfigMap
  apiVersion: v1
  metadata:
    name: oshinko-cluster-configs
  data:
    small.workercount: "3"

- kind: DeploymentConfig
  apiVersion: v1
  metadata:
    name: ${OSHINKO_DEPLOYMENT_NAME}
  spec:
    strategy:
      type: Rolling
    triggers:
      - type: ConfigChange
    replicas: 1
    selector:
      name: ${OSHINKO_SERVER_NAME}
    template:
      metadata:
        labels:
          name: ${OSHINKO_SERVER_NAME}
      spec:
        containers:
          - name: ${OSHINKO_SERVER_NAME}
            image: ${OSHINKO_SERVER_IMAGE}
            env:
              - name: OSHINKO_SERVER_PORT
                value: "8081"<commit_msg>Create an empty config map to support spark driver config<commit_after>kind: Template
apiVersion: v1
template: oshinko
metadata:
  name: oshinko
objects:

- kind: Service
  apiVersion: v1
  metadata:
    name: ${OSHINKO_SERVER_NAME}
    labels:
      name: ${OSHINKO_SERVER_NAME}
  spec:
    ports:
      - name: o-rest-port
        protocol: TCP
        port: 8081
        targetPort: 8081
    selector:
      name: ${OSHINKO_SERVER_NAME}

- kind: Service
  apiVersion: v1
  metadata:
    name: ${OSHINKO_WEB_NAME}
    annotations:
      service.alpha.openshift.io/dependencies: '[{"name":"${OSHINKO_SERVER_NAME}","namespace":"","kind":"Service"}]'
    labels:
      name: ${OSHINKO_WEB_NAME}
      restname: ${OSHINKO_SERVER_NAME}
  spec:
    ports:
      - name: o-web-port
        protocol: TCP
        port: 8080
        targetPort: 8080
    selector:
      name: ${OSHINKO_SERVER_NAME}

- kind: ConfigMap
  apiVersion: v1
  metadata:
    name: oshinko-cluster-configs
  data:
    small.workercount: "3"

- kind: ConfigMap
  apiVersion: v1
  metadata:
    name: oshinko-spark-driver-config

- kind: DeploymentConfig
  apiVersion: v1
  metadata:
    name: ${OSHINKO_DEPLOYMENT_NAME}
  spec:
    strategy:
      type: Rolling
    triggers:
      - type: ConfigChange
    replicas: 1
    selector:
      name: ${OSHINKO_SERVER_NAME}
    template:
      metadata:
        labels:
          name: ${OSHINKO_SERVER_NAME}
      spec:
        containers:
          - name: ${OSHINKO_SERVER_NAME}
            image: ${OSHINKO_SERVER_IMAGE}
            env:
              - name: OSHINKO_SERVER_PORT
                value: "8081"
{'fraction_non_alphanumeric': 0.10198845413726748, 'fraction_numerical': 0.01763951250801796, 'mean_word_length': 2.364617044228695, 'pattern_counts': {'":': 6, '<': 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': '7195437', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1087, 'n_words': 227}