<commit_before>- if @record.try(:name)
  #accordion.panel-group
    = miq_accordion_panel(truncate(@record.name, :length => truncate_length), true, "icon") do
      = render_quadicon(@record, :mode => :icon, :size => 72, :typ => :listnav)

    = miq_accordion_panel(_("Properties"), false, "stack_prop") do
      %ul.nav.nav-pills.nav-stacked
        %li
          = link_to_with_icon(_('Summary'),
            {:action => 'show', :id => @record, :display => 'main'},
            :title => _("Show Summary"))

    = miq_accordion_panel(_("Relationships"), false, "stack_rel") do
      %ul.nav.nav-pills.nav-stacked
        - if role_allows?(:feature => "provider_foreman_view") && @record.ext_management_system
          %li
            = link_to("#{ui_lookup(:model => @record.ext_management_system.class.to_s)}: #{@record.ext_management_system.name}",
              {:controller => "provider_foreman", :action => 'explorer', :id => "at-#{to_cid(@record.ext_management_system.id)}"},
              :title => _("Show parent %s for this Job") % ui_lookup(:model => @record.ext_management_system.class.to_s))
        - if role_allows?(:feature => "service_view") && @record.ext_management_system
          %li
            = link_to("#{ui_lookup(:table => "service")}: #{@record.service.name}",
              {:controller => "service", :action => 'show', :id => to_cid(@record.service.id)},
              :title => _("Show service %s for this Job") % ui_lookup(:table => "service"))
        = li_link(:count => @record.number_of(:parameters),
          :text          => _("Parameters"),
          :action        => 'parameters',
          :record_id     => @record.id,
          :title         => _("Show all Parameters"))
<commit_msg>Fix no :name on nil when showing some configuration_jobs<commit_after>- if @record.try(:name)
  #accordion.panel-group
    = miq_accordion_panel(truncate(@record.name, :length => truncate_length), true, "icon") do
      = render_quadicon(@record, :mode => :icon, :size => 72, :typ => :listnav)

    = miq_accordion_panel(_("Properties"), false, "stack_prop") do
      %ul.nav.nav-pills.nav-stacked
        %li
          = link_to_with_icon(_('Summary'),
            {:action => 'show', :id => @record, :display => 'main'},
            :title => _("Show Summary"))

    = miq_accordion_panel(_("Relationships"), false, "stack_rel") do
      %ul.nav.nav-pills.nav-stacked
        - if role_allows?(:feature => "provider_foreman_view") && @record.ext_management_system
          %li
            = link_to("#{ui_lookup(:model => @record.ext_management_system.class.to_s)}: #{@record.ext_management_system.name}",
              {:controller => "provider_foreman", :action => 'explorer', :id => "at-#{to_cid(@record.ext_management_system.id)}"},
              :title => _("Show parent %s for this Job") % ui_lookup(:model => @record.ext_management_system.class.to_s))
        - if role_allows?(:feature => "service_view") && @record.service
          %li
            = link_to("#{ui_lookup(:table => "service")}: #{@record.service.name}",
              {:controller => "service", :action => 'show', :id => to_cid(@record.service.id)},
              :title => _("Show service %s for this Job") % ui_lookup(:table => "service"))
        = li_link(:count => @record.number_of(:parameters),
          :text          => _("Parameters"),
          :action        => 'parameters',
          :record_id     => @record.id,
          :title         => _("Show all Parameters"))

{'fraction_non_alphanumeric': 0.1805436337625179, 'fraction_numerical': 0.0011444921316165952, 'mean_word_length': 2.9236812570145903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 57, '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': '2137662', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1081, 'n_words': 200}