<commit_before>.container.col-md-8
  h5.mb-3 Host Details
  hr
  .row
    .col 
      = @host_machine.name
  br

  .card
    .card-body
      .table-responsive
        table.table.table-striped
          thead
            tr
              th Group Name
              th 
          tbody
            - @host_machine.groups.each do |group|
              tr
                td
                  = link_to "#{group.name}", group_path(group)
                td
                  = link_to "Delete", [@machine, group], method: :delete, data: {confirm: 'Are you sure to remove this machine from the group??'} if current_user.admin?
      br
      = "*This host does not have any group" if @host_machine.groups.count == 0
      br
      hr
      - if current_user.admin?
        = form_tag  add_group_to_machine_path, method: :post do
          .row
            .col 
              | Assign group
            .col
            .col
              = select_tag "group_id", options_from_collection_for_select(@groups.sort_by { |group| group.name}, "id", "name"), class: "form-control"
            .col<commit_msg>[gio] add autocomplete on show host page<commit_after>.container.col-md-8
  h5.mb-3 Host Details
  hr
  .row
    .col 
      = @host_machine.name
  br

  .card
    .card-body
      .table-responsive
        table.table.table-striped
          thead
            tr
              th Group Name
              th 
          tbody
            - @host_machine.groups.each do |group|
              tr
                td
                  = link_to "#{group.name}", group_path(group)
                td
                  = link_to "Delete", [@machine, group], method: :delete, data: {confirm: 'Are you sure to remove this machine from the group??'} if current_user.admin?
      br
      = "*This host does not have any group" if @host_machine.groups.count == 0
      br
      hr
      - if current_user.admin?
        = form_tag  add_group_to_machine_path, method: :post do
          .row
            .col 
              | Assign group
            .col
            .col
              = text_field_tag "group_id", "", class: "form-control"
            .col
{'fraction_non_alphanumeric': 0.0935754189944134, 'fraction_numerical': 0.0037243947858473, 'mean_word_length': 1.3877777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7376085', 'n_tokens_mistral': 641, 'n_tokens_neox': 612, 'n_words': 170}