<commit_before>#!/bin/sh
RC=0
DUMP="<%= @kdc_database_dir %>/kdb_dump"
<%= @kdb5_util_path %> dump "$DUMP"
<% @kdc_slaves.each do |slave| -%>

<%= @kprop_path %> -f "$DUMP" <%= slave %>
if [ $? != 0 ]; then
  /usr/bin/logger "`basename $0`: failed to replicate krb5 database to <%= slave %>"
  RC=1
fi
<% end -%>

exit $RC
<commit_msg>TEMPLATE: Add a warning that kprop.cron is generated by puppet<commit_after>#!/bin/sh
# This file is automatically generated by puppet.
# Do NOT manually edit this file.
RC=0
DUMP="<%= @kdc_database_dir %>/kdb_dump"
<%= @kdb5_util_path %> dump "$DUMP"
<% @kdc_slaves.each do |slave| -%>

<%= @kprop_path %> -f "$DUMP" <%= slave %>
if [ $? != 0 ]; then
  /usr/bin/logger "`basename $0`: failed to replicate krb5 database to <%= slave %>"
  RC=1
fi
<% end -%>

exit $RC

{'fraction_non_alphanumeric': 0.20423412204234123, 'fraction_numerical': 0.014943960149439602, 'mean_word_length': 4.0886075949367084, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '7555599', 'n_tokens_mistral': 360, 'n_tokens_neox': 323, 'n_words': 88}