<commit_before><h1><%= @diary.title %></h1>

<h4>Entries in this diary</h4>
<% if @diary.entries.any? %>
    <ol>
    <% @diary.entries.each do |e| %>
          <li><%= link_to e.title, user_diary_entry_path(diary_id: @diary, id: e, user_id: @user) %></li>
    <% end %>
    </ol>
<% else %>
    <p>You haven't created any diary entries yet. Why not make a start?<%= link_to %></p>
<% end %>

<%= link_to 'Delete this diary', user_diary_path, method: :delete %>
<%= link_to 'Edit this diary', edit_user_diary_path %>
<%= link_to 'Back to your diaries', user_diaries_path %><commit_msg>Add confirmation to diary delete link<commit_after><h1><%= @diary.title %></h1>

<h4>Entries in this diary</h4>
<% if @diary.entries.any? %>
    <ol>
    <% @diary.entries.each do |e| %>
          <li><%= link_to e.title, user_diary_entry_path(diary_id: @diary, id: e, user_id: @user) %></li>
    <% end %>
    </ol>
<% else %>
    <p>You haven't created any diary entries yet. Why not make a start?<%= link_to %></p>
<% end %>

<%= link_to 'Delete this diary', user_diary_path, method: :delete, data: {confirm: 'Are you sure?'} %>
<%= link_to 'Edit this diary', edit_user_diary_path %>
<%= link_to 'Back to your diaries', user_diaries_path %>
{'fraction_non_alphanumeric': 0.19381107491856678, 'fraction_numerical': 0.006514657980456026, 'mean_word_length': 3.9757085020242915, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '2862532', 'n_tokens_mistral': 507, 'n_tokens_neox': 467, 'n_words': 128}