<commit_before>class CorporateCategoryDecorator < CategoryDecorator
  delegate :third_level_navigation

  def render_contents
    partial = if object.parent?
                parent_partial_path
              elsif object.child?
                child_partial_path
              end

    h.render partial, contents: contents
  end

  private

  def parent_partial_path
    if self.object.third_level_navigation
      'child_categories'
    else
      'categories/child_categories'
    end
  end

  def child_partial_path
    if self.object.third_level_navigation
      'content_items'
    else
      'categories/content_items'
    end
  end
end<commit_msg>corporate sub categories always use child partial<commit_after>class CorporateCategoryDecorator < CategoryDecorator
  delegate :third_level_navigation

  def render_contents
    h.render partial_path, contents: contents
  end

  private

  def partial_path
    if self.object.third_level_navigation
      'content_items'
    else
      'categories/content_items'
    end
  end
end
{'fraction_non_alphanumeric': 0.04061895551257253, 'fraction_numerical': 0.0, 'mean_word_length': 2.9204545454545454, 'pattern_counts': {'":': 0, '<': 5, '<?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': '362082', 'n_tokens_mistral': 294, 'n_tokens_neox': 280, 'n_words': 68}