<commit_before><% if controller and controller.class.name == 'WikiController' and controller.action_name == "show" and
        @page and @page.id and @page.visible? %>

    <%= link_to_if_authorized(l(:button_hide_wiki), {:action => 'change_privacy', :id => @page.title, :private => 1}, :method => :post, :class => 'icon icon-hide') if !@page.private? %>
    <%= link_to_if_authorized(l(:button_reveal_wiki), {:action => 'change_privacy', :id => @page.title, :private => 0}, :method => :post, :class => 'icon icon-reveal') if @page.private? %>

    <% if @page.private? %>
        <span class="private">Private</span>
    <% end %>

    <script type="text/javascript">
        $$('.contextual')[0].insert({top:$$('span.private')[0]})
        $$('.contextual')[0].insert({bottom:$$('.icon-reveal')[0]})
        $$('.contextual')[0].insert({bottom:$$('.icon-hide')[0]})
    </script>
<% end %>



<commit_msg>Issue #5059 done. Migrated to Redmine 2.1.4<commit_after><% if controller and controller.class.name == 'WikiController' and controller.action_name == "show" and
        @page and @page.id and @page.visible? %>

    <%= link_to_if_authorized(l(:button_hide_wiki), {:action => 'change_privacy', :id => @page.title, :private => 1}, :method => :post, :class => 'icon icon-hide') if !@page.private? %>
    <%= link_to_if_authorized(l(:button_reveal_wiki), {:action => 'change_privacy', :id => @page.title, :private => 0}, :method => :post, :class => 'icon icon-reveal') if @page.private? %>

    <% if @page.private? %>
        <span class="private">Private</span>
    <% end %>

    <script type="text/javascript">
        $('.contextual').prepend($('span.private'));
        $('.contextual').append($('.icon-reveal'));
        $('.contextual').append($('.icon-hide'));        
    </script>
<% end %>




{'fraction_non_alphanumeric': 0.22898230088495575, 'fraction_numerical': 0.009402654867256638, 'mean_word_length': 3.942622950819672, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 43, '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': '6943791', 'n_tokens_mistral': 643, 'n_tokens_neox': 590, 'n_words': 116}