<commit_before>{{- /**********************************************************************************/ -}}
{{- define "job_spec" -}}
{{- $repo    := index . 0 -}}
{{- $values  := index . 1 }}
spec:
  template:
    spec:
      restartPolicy: OnFailure
      volumes:
        - name: config
          configMap:
            name: swift-http-import
        - name: secret
          secret:
            secretName: swift-http-import
            optional: true
      containers:
      - name: swift-http-import
        image: {{$values.global.docker_repo}}/swift-http-import:{{$values.image_version}}
        args:
          - /etc/http-import/config/{{$repo}}.yaml
        {{- if $values.debug}}
        env:
          - name: 'DEBUG'
            value: '1'
        {{- end}}
        volumeMounts:
          - mountPath: /etc/http-import/config
            name: config
          - mountPath: /etc/http-import/secret
            name: secret
{{- end -}}<commit_msg>content-repo: secret is not optional any longer<commit_after>{{- /**********************************************************************************/ -}}
{{- define "job_spec" -}}
{{- $repo    := index . 0 -}}
{{- $values  := index . 1 }}
spec:
  template:
    spec:
      restartPolicy: OnFailure
      volumes:
        - name: config
          configMap:
            name: swift-http-import
        - name: secret
          secret:
            secretName: swift-http-import
      containers:
      - name: swift-http-import
        image: {{$values.global.docker_repo}}/swift-http-import:{{$values.image_version}}
        args:
          - /etc/http-import/config/{{$repo}}.yaml
        {{- if $values.debug}}
        env:
          - name: 'DEBUG'
            value: '1'
        {{- end}}
        volumeMounts:
          - mountPath: /etc/http-import/config
            name: config
          - mountPath: /etc/http-import/secret
            name: secret
{{- end -}}
{'fraction_non_alphanumeric': 0.22320041429311238, 'fraction_numerical': 0.0031071983428275505, 'mean_word_length': 1.76, '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': '3859731', 'n_tokens_mistral': 553, 'n_tokens_neox': 540, 'n_words': 108}