<commit_before>apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
  name: {{ template "postgresql.master.fullname" . }}
  labels:
    app: {{ template "postgresql.name" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    component: "{{ .Values.master.name }}"
    heritage: {{ .Release.Service }}
    release: {{ .Release.Name }}
spec:
  serviceName: {{ template "postgresql.master.fullname" . }}
  replicas: 1
  {{- if .Values.master.updateStrategy }}
  updateStrategy:
    {{- toYaml .Values.master.updateStrategy | nindent 4 }}
  {{- end }}
  template:
    metadata:
      labels:
        app: {{ template "postgresql.name" . }}
        component: "{{ .Values.master.name }}"
        release: {{ .Release.Name }}
      annotations:
        {{- include "postgresql.deploymentAnnotations" . | indent 8 }}
    spec:
      {{- if .Values.master.additionalAffinities }}
      affinity:
        {{- toYaml .Values.master.additionalAffinities | nindent 8 }}
      {{- end }}
      containers:
        - name: postgresql
          image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
          imagePullPolicy: {{ .Values.image.pullPolicy }}
          env:
            - name: STATEFUL_TYPE
              value: master
            {{- include "postgresql.environment" . | indent 12 }}
          ports:
            - name: postgresql
              containerPort: 5432
          # livenessProbe:
          #   exec:
          #     command:
          #       - su
          #       - postgres
          #       - -c
          #       - pg_isready --host $POD_IP 
          #   initialDelaySeconds: 60
          #   timeoutSeconds: 5
          #   failureThreshold: 6
          readinessProbe:
            exec:
              command:
                - su
                - postgres
                - -c
                - pg_isready --host $POD_IP <commit_msg>remove extra space<commit_after>apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
  name: {{ template "postgresql.master.fullname" . }}
  labels:
    app: {{ template "postgresql.name" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    component: "{{ .Values.master.name }}"
    heritage: {{ .Release.Service }}
    release: {{ .Release.Name }}
spec:
  serviceName: {{ template "postgresql.master.fullname" . }}
  replicas: 1
  {{- if .Values.master.updateStrategy }}
  updateStrategy:
    {{- toYaml .Values.master.updateStrategy | nindent 4 }}
  {{- end }}
  template:
    metadata:
      labels:
        app: {{ template "postgresql.name" . }}
        component: "{{ .Values.master.name }}"
        release: {{ .Release.Name }}
      annotations:
        {{- include "postgresql.deploymentAnnotations" . | indent 8 }}
    spec:
      {{- if .Values.master.additionalAffinities }}
      affinity:
        {{- toYaml .Values.master.additionalAffinities | nindent 8 }}
      {{- end }}
      containers:
        - name: postgresql
          image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
          imagePullPolicy: {{ .Values.image.pullPolicy }}
          env:
            - name: STATEFUL_TYPE
              value: master
            {{- include "postgresql.environment" . | indent 12 }}
          ports:
            - name: postgresql
              containerPort: 5432
          # livenessProbe:
          #   exec:
          #     command:
          #       - su
          #       - postgres
          #       - -c
          #       - pg_isready --host $POD_IP 
          #   initialDelaySeconds: 60
          #   timeoutSeconds: 5
          #   failureThreshold: 6
          readinessProbe:
            exec:
              command:
                - su
                - postgres
                - -c
                - pg_isready --host $POD_IP
{'fraction_non_alphanumeric': 0.1331923890063425, 'fraction_numerical': 0.008456659619450317, 'mean_word_length': 1.5783378746594006, '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': '4545299', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1094, 'n_words': 214}