<commit_before>#!/bin/bash
# Managed by puppet
# This file manages the atop binary files. It will keep binary files for last
# <%= @rotate %> days instead of 30 days provided by atop.
PATH=/sbin:/bin:/usr/sbin:/usr/bin

# remove files older than <%= @rotate %> days
find <%= @logpath %> -type f -name 'atop_*' -mtime +<%= @rotate %> -delete

# remove atop_current if it is a broken symlink
test -L <%= @logpath %>/atop_current -a ! -e <%= logpath %>/atop_current && \
  rm <%= @logpath %>/atop_current

# link current to most recent file if it exists
recent=$(find <%= @logpath %>/atop_* -type f | tail -1)
if [ -n "$recent" ]; then
  ln -f -s "$recent" <%= @logpath %>/atop_current
fi
<commit_msg>Fix depricated variable call in template<commit_after>#!/bin/bash
# Managed by puppet
# This file manages the atop binary files. It will keep binary files for last
# <%= @rotate %> days instead of 30 days provided by atop.
PATH=/sbin:/bin:/usr/sbin:/usr/bin

# remove files older than <%= @rotate %> days
find <%= @logpath %> -type f -name 'atop_*' -mtime +<%= @rotate %> -delete

# remove atop_current if it is a broken symlink
test -L <%= @logpath %>/atop_current -a ! -e <%= @logpath %>/atop_current && \
  rm <%= @logpath %>/atop_current

# link current to most recent file if it exists
recent=$(find <%= @logpath %>/atop_* -type f | tail -1)
if [ -n "$recent" ]; then
  ln -f -s "$recent" <%= @logpath %>/atop_current
fi

{'fraction_non_alphanumeric': 0.16643258426966293, 'fraction_numerical': 0.004213483146067416, 'mean_word_length': 3.6875, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '255308', 'n_tokens_mistral': 545, 'n_tokens_neox': 470, 'n_words': 183}