<commit_before><h1><%= @booking.title %></h1>
<h2><%= @booking.room %></h2>
<%= @booking.booking_range %>
<p>
  <strong>Bokad av:</strong> <%= link_to @booking.user, @booking.user.user_profile_path %>
  <% if @booking.group.present? %>
  <br><strong>Förening:</strong> <%= @booking.group_sym.itize if @booking.group.present? %>
  <% end %>
  <% if @booking.party_report.present? && can?(:accept, Booking) %>
    <br><strong><%= Booking.human_attribute_name(:party_responsible) %>:</strong>
    <%= @booking.party_report.party_responsible_name %> (<%= @booking.party_report.party_responsible_phone %>)
  <% end %>
</p>

<p>
  <%= @booking.description %>
</p>

<% if @booking.party_report.present? %>
Bokningens status: <%= @booking.status_text %>.
<br><br>
<% end %>
<%= link_to 'Redigera', edit_booking_path(@booking), class: 'btn btn-boring' %>
<%= link_to 'Alla bokningar', bookings_path, class: 'btn btn-boring' %>
<br>
<% if @booking.party_report.present? && can?(:accept, Booking) %>
  <br>
  <%= link_to 'Markera bokning skickad',
  mark_as_sent_party_report_path(@booking.party_report, sent: 1),
  class: 'btn btn-boring' unless @booking.party_report.sent? %>
<commit_msg>Remove edit button when cannot edit (#70)<commit_after><h1><%= @booking.title %></h1>
<h2><%= @booking.room %></h2>
<%= @booking.booking_range %>
<p>
  <strong>Bokad av:</strong> <%= link_to @booking.user, @booking.user.user_profile_path %>
  <% if @booking.group.present? %>
  <br><strong>Förening:</strong> <%= @booking.group_sym.itize if @booking.group.present? %>
  <% end %>
  <% if @booking.party_report.present? && can?(:accept, Booking) %>
    <br><strong><%= Booking.human_attribute_name(:party_responsible) %>:</strong>
    <%= @booking.party_report.party_responsible_name %> (<%= @booking.party_report.party_responsible_phone %>)
  <% end %>
</p>

<p>
  <%= @booking.description %>
</p>

<% if @booking.party_report.present? %>
Bokningens status: <%= @booking.status_text %>.
<br><br>
<% end %>
<%= link_to 'Redigera', edit_booking_path(@booking), class: 'btn btn-boring' if can?(:edit, @booking) %>
<%= link_to 'Alla bokningar', bookings_path, class: 'btn btn-boring' %>
<br>
<% if @booking.party_report.present? && can?(:accept, Booking) %>
  <br>
  <%= link_to 'Markera bokning skickad',
  mark_as_sent_party_report_path(@booking.party_report, sent: 1),
  class: 'btn btn-boring' unless @booking.party_report.sent? %>

{'fraction_non_alphanumeric': 0.2111157196184156, 'fraction_numerical': 0.004977187888842804, 'mean_word_length': 5.554347826086956, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, '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': '3495365', 'n_tokens_mistral': 1013, 'n_tokens_neox': 923, 'n_words': 154}