<commit_before>
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title"><%= @report.title %></h3>
  </div>
  <div class="panel-body">
    <p>
      <strong>Status:</strong>
      <span class="label label-info">
      <% if status_title(@report.status + 1) %>
        <%= status_title(@report.status) %></span> Mark as
        <%= link_to status_title(@report.status + 1), application_report_update_status_path(current_application, @report), method: :put %> ?
      <% end %>
    </p>
    <p>
      <strong>Fix in build:</strong>
      <%= @report.build.nil? ? "n/a" : link_to(@report.build.title, @report.build.itunes_url)  %>
    </p>
    <p>
      <strong>Device:</strong>
      <%= @report.device_model || "n/a" %>
    </p>

    <p>
      <strong>OS:</strong>
      <%= @report.os_version || "n/a" %>
    </p>

    <p>
      <strong>Description:</strong>
      <%= @report.message %>
    </p>

  </div>
</div>


<ul id="myTab" class="nav nav-pills">
  <% if @report.screen_capture_file_name %>
    <li><a href="#video" data-toggle="tab">Video</a></li>
    <li><a href="#screenshot" data-toggle="tab">Screenshot</a></li>
  <% else %>
    <li><a href="#screenshot" data-toggle="tab">Screenshot</a></li>
  <% end %>
  <li><a href="#dumped-view" data-toggle="tab">Dumped View</a></li>
  <li><a href="#logs" data-toggle="tab">Logs</a></li>
  <% if @report.crash_logs %>
  <li><a href="#crash" data-toggle="tab">Crash</a></li>
  <% end %>
  <li><a href="#comments">Comments</a></li>

  <% if @report.jira_ticket %>
  <li class="pull-right"><%= link_to "Jira ticket", @report.jira_ticket, target: "blank" %></li>
  <% elsif @show_jira %>
  <li class="pull-right"><%= link_to "Create Jira ticket", report_create_jira_issue_url(@report), method: :post %></li>
  <% end %>
</ul>

<div id="myTabContent" class="tab-content">
  <% if @report.screen_capture_file_name %>
	 <div class="tab-pane fade in active" id="video">
     <p><a href="<%= @report.screen_capture.url %>">Download</a></p>
     <video width="320" height="480" controls>
       <source src="<%= @report.screen_capture.url %>" type="video/mp4">
     </video>
	 </div>
   <% end %>
   
	 <div class="tab-pane fade" id="screenshot">
	 	 <p><%= screenshot_tag(@report) %></p>
	 </div>
	 <div class="tab-pane fade" id="logs">
	 	<p><%= raw(logs_to_html(@report.logs)) %></p>
	 </div>
   <% if @report.crash_logs %>
	   <div class="tab-pane fade" id="crash">
	 	   <p><%= simple_format h(@report.crash_logs) %></p>
	   </div><commit_msg>update link to create a jira ticket<commit_after>
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title"><%= @report.title %></h3>
  </div>
  <div class="panel-body">
    <p>
      <strong>Status:</strong>
      <span class="label label-info">
      <% if status_title(@report.status + 1) %>
        <%= status_title(@report.status) %></span> Mark as
        <%= link_to status_title(@report.status + 1), application_report_update_status_path(current_application, @report), method: :put %> ?
      <% end %>
    </p>
    <p>
      <strong>Fix in build:</strong>
      <%= @report.build.nil? ? "n/a" : link_to(@report.build.title, @report.build.itunes_url)  %>
    </p>
    <p>
      <strong>Device:</strong>
      <%= @report.device_model || "n/a" %>
    </p>

    <p>
      <strong>OS:</strong>
      <%= @report.os_version || "n/a" %>
    </p>

    <p>
      <strong>Description:</strong>
      <%= @report.message %>
    </p>

  </div>
</div>


<ul id="myTab" class="nav nav-pills">
  <% if @report.screen_capture_file_name %>
    <li><a href="#video" data-toggle="tab">Video</a></li>
    <li><a href="#screenshot" data-toggle="tab">Screenshot</a></li>
  <% else %>
    <li><a href="#screenshot" data-toggle="tab">Screenshot</a></li>
  <% end %>
  <li><a href="#dumped-view" data-toggle="tab">Dumped View</a></li>
  <li><a href="#logs" data-toggle="tab">Logs</a></li>
  <% if @report.crash_logs %>
  <li><a href="#crash" data-toggle="tab">Crash</a></li>
  <% end %>
  <li><a href="#comments">Comments</a></li>

  <% if @report.jira_ticket %>
  <li class="pull-right"><%= link_to "Jira ticket", @report.jira_ticket, target: "blank" %></li>
  <% elsif @show_jira %>
  <li class="pull-right"><%= link_to "Create Jira ticket", application_report_create_jira_issue_url(current_application, @report), method: :post %></li>
  <% end %>
</ul>

<div id="myTabContent" class="tab-content">
  <% if @report.screen_capture_file_name %>
	 <div class="tab-pane fade in active" id="video">
     <p><a href="<%= @report.screen_capture.url %>">Download</a></p>
     <video width="320" height="480" controls>
       <source src="<%= @report.screen_capture.url %>" type="video/mp4">
     </video>
	 </div>
   <% end %>
   
	 <div class="tab-pane fade" id="screenshot">
	 	 <p><%= screenshot_tag(@report) %></p>
	 </div>
	 <div class="tab-pane fade" id="logs">
	 	<p><%= raw(logs_to_html(@report.logs)) %></p>
	 </div>
   <% if @report.crash_logs %>
	   <div class="tab-pane fade" id="crash">
	 	   <p><%= simple_format h(@report.crash_logs) %></p>
	   </div>
{'fraction_non_alphanumeric': 0.23143249069174995, 'fraction_numerical': 0.004311189496374682, 'mean_word_length': 3.532859680284192, 'pattern_counts': {'":': 0, '<': 229, '<?xml version=': 0, '>': 229, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '644053', 'n_tokens_mistral': 2044, 'n_tokens_neox': 1893, 'n_words': 344}