<commit_before>apiVersion: v1
kind: Template
labels:
  template: redis-cache
metadata:
  annotations:
    description: >
      Redis is an open source key-value store that functions as a data structure server.
      This template provides a memory-only instance, recomended when Redis acts as a
      cache and it's ok to lose data during service restarts.
    iconClass: icon-redis
    tags: cache,database,redis
  creationTimestamp: null
  name: redis-cache

objects:
- kind: Service
  apiVersion: v1
  metadata:
    creationTimestamp: null
    name: ${NAME}
  spec:
    portalIP: ""
    ports:
    - name: tcp
      nodePort: 0
      port: 6379
      protocol: TCP
      targetPort: 6379
    selector:
      name: ${NAME}
    sessionAffinity: None
    type: ClusterIP
  status:
    loadBalancer: {}

- kind: DeploymentConfig
  apiVersion: v1
  metadata:
    creationTimestamp: null
    name: ${NAME}
    labels:
      name: ${NAME}
  spec:
    replicas: 1
    selector:
      name: ${NAME}
    strategy:
      resources: {}
      type: Recreate
    template:
      metadata:
        creationTimestamp: null
        labels:
          name: ${NAME}
      spec:
        containers:
        - capabilities: {}
          env:
          - name: REDIS_DIR
            value: ${REDIS_DIR}
          - name: REDIS_DBFILENAME
            value: ${REDIS_DBFILENAME}
          - name: REDIS_MAX_MEMORY
            value: ${REDIS_MAX_MEMORY}
          - name: REDIS_MAX_MEMORY_POLICY
            value: ${REDIS_MAX_MEMORY_POLICY}
          - name: REDIS_EXTRA_PARAMETERS
            value: ${REDIS_EXTRA_PARAMETERS}
          image: docker.io/getupcloud/redis:${REDIS_VERSION}
          imagePullPolicy: IfNotPresent
          name: redis
          ports:
          - containerPort: 6379
            protocol: TCP
          resources: {}
          securityContext:
            capabilities: {}
            privileged: false
          terminationMessagePath: /dev/termination-log<commit_msg>Update redis-cache-template.yaml<commit_after>apiVersion: v1
kind: Template
labels:
  template: redis-cache
metadata:
  annotations:
    description: >
      Redis is an open source key-value store that functions as a data structure server.
      This template provides a memory-only instance, recomended when Redis acts as a
      cache and it's ok to lose data during service restarts.
    iconClass: icon-redis
    tags: cache,database,redis
  creationTimestamp: null
  name: redis-cache

objects:
- kind: Service
  apiVersion: v1
  metadata:
    creationTimestamp: null
    name: ${NAME}
  spec:
    portalIP: ""
    ports:
    - name: tcp
      nodePort: 0
      port: 6379
      protocol: TCP
      targetPort: 6379
    selector:
      name: ${NAME}
    sessionAffinity: None
    type: ClusterIP
  status:
    loadBalancer: {}

- kind: DeploymentConfig
  apiVersion: v1
  metadata:
    creationTimestamp: null
    name: ${NAME}
    labels:
      name: ${NAME}
  spec:
    replicas: 1
    selector:
      name: ${NAME}
    strategy:
      resources: {}
      type: Recreate
    template:
      metadata:
        creationTimestamp: null
        labels:
          name: ${NAME}
      spec:
        containers:
        - capabilities: {}
          env:
          - name: REDIS_DIR
            value: ${REDIS_DIR}
          - name: REDIS_DBFILENAME
            value: ${REDIS_DBFILENAME}
          - name: REDIS_MAX_MEMORY
            value: ${REDIS_MAX_MEMORY}
          - name: REDIS_MAX_MEMORY_POLICY
            value: ${REDIS_MAX_MEMORY_POLICY}
          - name: REDIS_EXTRA_PARAMETERS
            value: ${REDIS_EXTRA_PARAMETERS}
          image: getupcloud/redis:${REDIS_VERSION}
          imagePullPolicy: IfNotPresent
          name: redis
          ports:
          - containerPort: 6379
            protocol: TCP
          resources: {}
          securityContext:
            capabilities: {}
            privileged: false
          terminationMessagePath: /dev/termination-log
{'fraction_non_alphanumeric': 0.07835726883345931, 'fraction_numerical': 0.008566389518770472, 'mean_word_length': 2.009855951478393, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2630669', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1168, 'n_words': 314}