<commit_before><?php 
use_helper('Button', 'Ajax', 'Javascript');

$module = $sf_context->getModuleName();
$lang = $document->getCulture();
$has_rights = $sf_user->hasCredential('moderator');
$redirected = $document->get('redirects_to');
$is_archive = $document->isArchive();
$is_protected = $document->get('is_protected');
?>
<div id="nav_tools" class="nav_box">
    <div id="nav_tools_top"></div>
    <div id="nav_tools_content">
        <ul>
            <li><?php echo button_back($module) ?></li>
            <?php if (!$is_archive): ?>
              <li><?php echo button_prev($module,$id); ?></li>
              <li><?php echo button_next($module,$id); ?></li>
            <?php endif ?>
            <li><?php echo button_search($module) ?></li>
            <li><?php echo button_print() ?></li>
            <?php if ($has_rights && !$is_archive && !$redirected): ?>
                <li><?php echo button_protect($module, $id, $document->get('is_protected'));?></li>
                <li><?php echo button_merge($module, $id) ?></li>
            <?php endif ?>
            <?php if ($has_rights && !$is_archive): ?>
                <li><?php echo button_delete($module, $id) ?></li>
                <li><?php echo button_delete_culture($module, $id, $document->get('culture')) ?></li>
            <?php endif ?>
            <?php if ($has_rights && !$is_archive && !$redirected && $document->get('geom_wkt')): ?>
                <li><?php echo button_delete_geom($module, $id) ?></li>
            <?php endif ?>
            <?php if ($has_rights && !$is_archive): ?>
                <li><?php echo button_clear_cache($module, $id) ?></li>
            <?php endif ?>
            <?php if ($needs_delete_action && !$redirected): ?><commit_msg>refresh geo for sites: visible menu<commit_after><?php 
use_helper('Button', 'Ajax', 'Javascript');

$module = $sf_context->getModuleName();
$lang = $document->getCulture();
$has_rights = $sf_user->hasCredential('moderator');
$redirected = $document->get('redirects_to');
$is_archive = $document->isArchive();
$is_protected = $document->get('is_protected');
?>
<div id="nav_tools" class="nav_box">
    <div id="nav_tools_top"></div>
    <div id="nav_tools_content">
        <ul>
            <li><?php echo button_back($module) ?></li>
            <?php if (!$is_archive): ?>
              <li><?php echo button_prev($module,$id); ?></li>
              <li><?php echo button_next($module,$id); ?></li>
            <?php endif ?>
            <li><?php echo button_search($module) ?></li>
            <li><?php echo button_print() ?></li>
            <?php if ($has_rights && !$is_archive && !$redirected): ?>
                <li><?php echo button_protect($module, $id, $document->get('is_protected'));?></li>
                <li><?php echo button_merge($module, $id) ?></li>
            <?php endif ?>
            <?php if ($has_rights && !$is_archive): ?>
                <li><?php echo button_delete($module, $id) ?></li>
                <li><?php echo button_delete_culture($module, $id, $document->get('culture')) ?></li>
            <?php endif ?>
            <?php if ($has_rights && !$is_archive && !$redirected && $document->get('geom_wkt')): ?>
                <li><?php echo button_delete_geom($module, $id) ?></li>
            <?php endif ?>
            <?php if ($has_rights && !$is_archive): ?>
                <li><?php echo button_clear_cache($module, $id) ?></li>
            <?php endif ?>
            <?php if ($has_rights && !$is_archive && !$redirected): ?>
{'fraction_non_alphanumeric': 0.20988355580800908, 'fraction_numerical': 0.0, 'mean_word_length': 2.738853503184713, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 121, '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': '3824572', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1110, 'n_words': 228}