<commit_before>{{- if .Values.metis.enabled }}
apiVersion: v1
kind: Secret
metadata:
  name: metis-secrets
  namespace: {{ .Values.namespace }}
  labels:
    app.kubernetes.io/name: metis
    helm.sh/chart: {{ include "metis.chart" $ }}
    app.kubernetes.io/instance: metis-{{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
stringData:
  metisAdminPW: {{ required "missing MetisDB root pw" .Values.mariadb.root_password }}
  metisRonlyPW: {{ required "missing MetisDB ronly pw" .Values.global.metis.password }}
  billingToken: {{ required "missing billing API token" .Values.metis.billingApiToken }}
  metisServicePW: {{ required "missing .Values.metisAPI.service_password" .Values.metisAPI.service_password }}

{{- end }}<commit_msg>[metis] adds service pw only when api is enabled<commit_after>{{- if .Values.metis.enabled }}
apiVersion: v1
kind: Secret
metadata:
  name: metis-secrets
  namespace: {{ .Values.namespace }}
  labels:
    app.kubernetes.io/name: metis
    helm.sh/chart: {{ include "metis.chart" $ }}
    app.kubernetes.io/instance: metis-{{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
stringData:
  metisAdminPW: {{ required "missing MetisDB root pw" .Values.mariadb.root_password }}
  metisRonlyPW: {{ required "missing MetisDB ronly pw" .Values.global.metis.password }}
  billingToken: {{ required "missing billing API token" .Values.metis.billingApiToken }}
  {{- if .Values.metisAPI.enabled }}
  metisServicePW: {{ required "missing .Values.metisAPI.service_password" .Values.metisAPI.service_password }}
  {{- end }}

{{- end }}
{'fraction_non_alphanumeric': 0.14729645742697328, 'fraction_numerical': 0.001243008079552517, 'mean_word_length': 4.210355987055016, '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': '3942065', 'n_tokens_mistral': 551, 'n_tokens_neox': 529, 'n_words': 113}