<commit_before><div class="block-header text-center text-uppercase">
  <h2><i class="md-devices c-indigo"> <%= @device.label %> </i></h2>
</div>
<div class="card">
  <div class="card-body card-padding">
    <div class="row">
      <div class="col-sm-3 label-info">Device Identifier</div>
      <div class="col-sm-9"><%= @device.identifier %></div>
    </div>
    <div class="row">
      <div class="col-sm-3 label-info">Device Label</div>
      <div class="col-sm-9"><%= @device.label %></div>
    </div>
    <div class="row">
      <div class="col-sm-3 label-info">Synced surveys count</div>
      <div class="col-sm-9"><%= current_project.device_surveys(@device).count %></div>
    </div>
    <% if @device.last_sync_entry(current_project) %>
        <div class="row <%= 'label-danger' if @device.last_sync_entry(current_project).num_complete_surveys > 0 %>">
          <div class="col-sm-3 label-info">Complete unsynced surveys count</div>
          <div class="col-sm-9"><%= @device.last_sync_entry(current_project).num_complete_surveys %></div>
        </div>
        <div class="row">
          <div class="col-sm-3 label-info">Incomplete unsynced surveys count</div>
          <div class="col-sm-9"><%= @device.last_sync_entry(current_project).num_incomplete_surveys %></div>
        </div>
        <div class="row">
          <div class="col-sm-3 label-info">Last Survey</div>
          <div class="col-sm-9"><%= @device.last_project_survey(current_project) ? (link_to @device.last_project_survey(current_project).uuid, project_survey_path(current_project, @device.last_project_survey(current_project))) : '' %></div>
        </div>
        <div class="row <%= 'label-danger' if @device.danger_zone?(current_project) %>">
          <div class="col-sm-3 label-info">Last sync time</div>
          <div class="col-sm-9"><%= @device.device_sync_entries.blank? ? '' : time_ago_in_words(@device.last_sync_entry(current_project).updated_at) %></div>
        </div>
        <div class="row <%= 'label-danger' if @device.last_sync_entry(current_project).current_version_code != (AndroidUpdate.latest_version.version.to_s if AndroidUpdate.latest_version) %>">
          <div class="col-sm-3 label-info">App Version Name</div>
          <div class="col-sm-9"><%= @device.device_sync_entries.blank? ? '' : @device.last_sync_entry(current_project).current_version_name %></div>
        </div>
        <div class="row">
          <div class="col-sm-3 label-info">OS build number</div><commit_msg>check for nil<commit_after><div class="block-header text-center text-uppercase">
  <h2><i class="md-devices c-indigo"> <%= @device.label %> </i></h2>
</div>
<div class="card">
  <div class="card-body card-padding">
    <div class="row">
      <div class="col-sm-3 label-info">Device Identifier</div>
      <div class="col-sm-9"><%= @device.identifier %></div>
    </div>
    <div class="row">
      <div class="col-sm-3 label-info">Device Label</div>
      <div class="col-sm-9"><%= @device.label %></div>
    </div>
    <div class="row">
      <div class="col-sm-3 label-info">Synced surveys count</div>
      <div class="col-sm-9"><%= current_project.device_surveys(@device).count %></div>
    </div>
    <% if @device.last_sync_entry(current_project) %>
        <div class="row <%= 'label-danger' if @device.last_sync_entry(current_project).num_complete_surveys && @device.last_sync_entry(current_project).num_complete_surveys > 0 %>">
          <div class="col-sm-3 label-info">Complete unsynced surveys count</div>
          <div class="col-sm-9"><%= @device.last_sync_entry(current_project).num_complete_surveys %></div>
        </div>
        <div class="row">
          <div class="col-sm-3 label-info">Incomplete unsynced surveys count</div>
          <div class="col-sm-9"><%= @device.last_sync_entry(current_project).num_incomplete_surveys %></div>
        </div>
        <div class="row">
          <div class="col-sm-3 label-info">Last Survey</div>
          <div class="col-sm-9"><%= @device.last_project_survey(current_project) ? (link_to @device.last_project_survey(current_project).uuid, project_survey_path(current_project, @device.last_project_survey(current_project))) : '' %></div>
        </div>
        <div class="row <%= 'label-danger' if @device.danger_zone?(current_project) %>">
          <div class="col-sm-3 label-info">Last sync time</div>
          <div class="col-sm-9"><%= @device.device_sync_entries.blank? ? '' : time_ago_in_words(@device.last_sync_entry(current_project).updated_at) %></div>
        </div>
        <div class="row <%= 'label-danger' if @device.last_sync_entry(current_project).current_version_code != (AndroidUpdate.latest_version.version.to_s if AndroidUpdate.latest_version) %>">
          <div class="col-sm-3 label-info">App Version Name</div>
          <div class="col-sm-9"><%= @device.device_sync_entries.blank? ? '' : @device.last_sync_entry(current_project).current_version_name %></div>
        </div>
        <div class="row">
          <div class="col-sm-3 label-info">OS build number</div>
{'fraction_non_alphanumeric': 0.18446601941747573, 'fraction_numerical': 0.007925500297206262, 'mean_word_length': 3.67840593141798, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 149, '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': '6177579', 'n_tokens_mistral': 1733, 'n_tokens_neox': 1678, 'n_words': 278}