<commit_before>{{ if .Values.testfs.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
  name: kraken-testfs
  labels:
    app.kubernetes.io/name: kraken
    app.kubernetes.io/component: testfs
    app.kubernetes.io/instance: {{ .Release.Name }}
spec:
  replicas: 1
  selector:
    matchLabels:
      kraken-app: testfs
  template:
    metadata:
      labels:
        app.kubernetes.io/name: kraken
        app.kubernetes.io/component: testfs
        app.kubernetes.io/instance: {{ .Release.Name }}
      {{ with .Values.testfs.annotations -}}
      annotations:
{{ tpl . $ | indent 8 }}
      {{- end }}
    spec:
      containers:
      - name: main
        image: {{ .Values.kraken.repository }}/kraken-testfs:{{ .Values.kraken.tag }}
        imagePullPolicy: {{ .Values.kraken.imagePullPolicy }}
        command:
        - /usr/bin/kraken-testfs
        - --port=80
---
kind: Service
apiVersion: v1
metadata:
  name: kraken-testfs
spec:
  selector:
    app.kubernetes.io/name: kraken
    app.kubernetes.io/component: testfs
    app.kubernetes.io/instance: {{ .Release.Name }}
  ports:
  - protocol: TCP
    port: 80
    targetPort: 80
{{ end }}<commit_msg>Fixed a bug in testfs helm template (#260)<commit_after>{{ if .Values.testfs.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
  name: kraken-testfs
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: kraken
      app.kubernetes.io/component: testfs
      app.kubernetes.io/instance: {{ .Release.Name }}
  template:
    metadata:
      labels:
        app.kubernetes.io/name: kraken
        app.kubernetes.io/component: testfs
        app.kubernetes.io/instance: {{ .Release.Name }}
      {{ with .Values.testfs.annotations -}}
      annotations:
{{ tpl . $ | indent 8 }}
      {{- end }}
    spec:
      containers:
      - name: main
        image: {{ .Values.kraken.repository }}/kraken-testfs:{{ .Values.kraken.tag }}
        imagePullPolicy: {{ .Values.kraken.imagePullPolicy }}
        command:
        - /usr/bin/kraken-testfs
        - --port=80
---
kind: Service
apiVersion: v1
metadata:
  name: kraken-testfs
spec:
  selector:
    app.kubernetes.io/name: kraken
    app.kubernetes.io/component: testfs
    app.kubernetes.io/instance: {{ .Release.Name }}
  ports:
  - protocol: TCP
    port: 80
    targetPort: 80
{{ end }}
{'fraction_non_alphanumeric': 0.13710368466152528, 'fraction_numerical': 0.00985432733504713, 'mean_word_length': 2.4237536656891496, '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': '4196626', 'n_tokens_mistral': 800, 'n_tokens_neox': 777, 'n_words': 156}