<commit_before>#!/bin/bash

cat <<-EOF
apiVersion: v1
kind: ConfigMap
metadata:
  name: prometheus-k8s-rules
  labels:
    role: prometheus-rulefiles
    prometheus: k8s
data:
EOF

for f in assets/prometheus/rules/*.rules.yaml
do
  echo "  $(basename $f): |+"
  cat $f | sed "s/^/    /g"
done<commit_msg>Promtool appends .yml, not .yaml, but for backwards compatibility, lets allow both<commit_after>#!/bin/bash

cat <<-EOF
apiVersion: v1
kind: ConfigMap
metadata:
  name: prometheus-k8s-rules
  labels:
    role: prometheus-rulefiles
    prometheus: k8s
data:
EOF

for f in assets/prometheus/rules/*.rules.y*ml
do
  echo "  $(basename $f): |+"
  cat $f | sed "s/^/    /g"
done
{'fraction_non_alphanumeric': 0.13884785819793205, 'fraction_numerical': 0.008862629246676515, 'mean_word_length': 3.460526315789474, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1564161', 'n_tokens_mistral': 274, 'n_tokens_neox': 258, 'n_words': 72}