<commit_before>class PlanningApplicationDecorator < ApplicationDecorator

  def planning_application
    @model
  end

  def issue_link
    h.link_to issue_title, planning_application.issue
  end

  def map
    h.render partial: "map", locals: {planning_application: planning_application}
  end

  def medium_icon_path(default=true)
    icon_path("m", default)
  end

  def icon_path(size, default=true)
    icon = nil
    icon ||= "planning" if default
    return "" if icon.nil?
    h.image_path "map-icons/#{size}-#{icon}.png"
  end
end<commit_msg>Correct planning application decorator link reference (which was crashing dashboard)<commit_after>class PlanningApplicationDecorator < ApplicationDecorator

  def planning_application
    @model
  end

  def issue_link
    h.link_to issue.title, planning_application.issue
  end

  def map
    h.render partial: "map", locals: {planning_application: planning_application}
  end

  def medium_icon_path(default=true)
    icon_path("m", default)
  end

  def icon_path(size, default=true)
    icon = nil
    icon ||= "planning" if default
    return "" if icon.nil?
    h.image_path "map-icons/#{size}-#{icon}.png"
  end
end
{'fraction_non_alphanumeric': 0.09121909633418585, 'fraction_numerical': 0.0, 'mean_word_length': 3.9957446808510637, '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': '6979566', 'n_tokens_mistral': 376, 'n_tokens_neox': 363, 'n_words': 94}