<commit_before>- if asset
  = format_field("Owner", link_to(asset.organization.short_name, organization_path(asset.organization)) )
  = format_field("Description", asset.description )
  = format_field("Asset Tag", asset.asset_tag )
  = format_field("External ID", asset.external_id ) if asset.external_id
  = format_field("Manufacturer", link_to(asset.manufacturer.code, inventory_index_path(:manufacturer_id => asset.manufacturer_id)) ) unless asset.manufacturer_id.blank?
  = format_field("Class", asset.asset_type )
  = format_field("Type", asset.asset_subtype )
  = format_field("Status",  asset.service_status_type.nil? ? 'Unknown' : asset.service_status_type.name )
  = format_field("Groups",  format_asset_groups(asset)) unless asset.asset_groups.empty?
  = format_field("Parent",  link_to(asset.parent.name, inventory_path(asset.parent))) unless asset.parent.nil?
- else
  %p No asset found
<commit_msg>[#112758763] guest cant remove asset group<commit_after>- if asset
  = format_field("Owner", link_to(asset.organization.short_name, organization_path(asset.organization)) )
  = format_field("Description", asset.description )
  = format_field("Asset Tag", asset.asset_tag )
  = format_field("External ID", asset.external_id ) if asset.external_id
  = format_field("Manufacturer", link_to(asset.manufacturer.code, inventory_index_path(:manufacturer_id => asset.manufacturer_id)) ) unless asset.manufacturer_id.blank?
  = format_field("Class", asset.asset_type )
  = format_field("Type", asset.asset_subtype )
  = format_field("Status",  asset.service_status_type.nil? ? 'Unknown' : asset.service_status_type.name )
  - unless asset.asset_groups.empty?
    - if current_user.has_role? :guest
      = format_field("Groups",  format_as_labels(asset.asset_groups))
    - else
      = format_field("Groups",  format_asset_groups(asset))
  = format_field("Parent",  link_to(asset.parent.name, inventory_path(asset.parent))) unless asset.parent.nil?
- else
  %p No asset found

{'fraction_non_alphanumeric': 0.12935826174835777, 'fraction_numerical': 0.004547751389590703, 'mean_word_length': 6.122302158273381, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3735484', 'n_tokens_mistral': 637, 'n_tokens_neox': 616, 'n_words': 99}