<commit_before>class IssueDecorator < ApplicationDecorator
  decorates :issue
  delegate :closed?, to: :issue

  def map
    h.render partial: 'map', locals: { issue: issue }
  end

  def brief_description
    h.truncate issue.description, length: 90, separator: '.', omission: "\u2026"
  end

  def description
    h.auto_link h.simple_format issue.description
  end

  def standard_photo_image
    return '' if photo.nil?
    h.image_tag standard_photo_url, class: 'issue-photo'
  end

  def small_icon_path(default = true)
    icon_path('s', default)
  end

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

  def large_icon_path(default = true)
    icon_path('l', default)
  end

  def tip_icon_path(default = true)
    icon_path('tip', default)
  end

  def icon_path(size, default = true)
    icon = nil
    icon ||= icon_from_tags
    icon ||= 'misc' if default
    return '' if icon.nil?
    h.image_path "map-icons/#{size}-#{icon}.png"
  end

  def creator_link
    h.t 'issues.compact.created_by_html', creator_link: h.link_to_profile(issue.created_by)
  end

  def tags_list
    h.render partial: 'shared/tags/list', locals: { tags: issue.tags }
  end

  def thread_count
    issue.threads.count
  end

  def creation_time
    h.time_tag_with_title(issue.created_at) do
      h.t('issues.show.issue_created_at', time_ago: h.time_ago_in_words(issue.created_at))
    end
  end

  def vote_count
    issue.plusminus
  end

  def standard_photo_url
    if photo
      photo.thumb('358x200>').url
    end
  end
end<commit_msg>Increase the size of the standard photo for issues.<commit_after>class IssueDecorator < ApplicationDecorator
  decorates :issue
  delegate :closed?, to: :issue

  def map
    h.render partial: 'map', locals: { issue: issue }
  end

  def brief_description
    h.truncate issue.description, length: 90, separator: '.', omission: "\u2026"
  end

  def description
    h.auto_link h.simple_format issue.description
  end

  def standard_photo_image
    return '' if photo.nil?
    h.image_tag standard_photo_url, class: 'issue-photo'
  end

  def small_icon_path(default = true)
    icon_path('s', default)
  end

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

  def large_icon_path(default = true)
    icon_path('l', default)
  end

  def tip_icon_path(default = true)
    icon_path('tip', default)
  end

  def icon_path(size, default = true)
    icon = nil
    icon ||= icon_from_tags
    icon ||= 'misc' if default
    return '' if icon.nil?
    h.image_path "map-icons/#{size}-#{icon}.png"
  end

  def creator_link
    h.t 'issues.compact.created_by_html', creator_link: h.link_to_profile(issue.created_by)
  end

  def tags_list
    h.render partial: 'shared/tags/list', locals: { tags: issue.tags }
  end

  def thread_count
    issue.threads.count
  end

  def creation_time
    h.time_tag_with_title(issue.created_at) do
      h.t('issues.show.issue_created_at', time_ago: h.time_ago_in_words(issue.created_at))
    end
  end

  def vote_count
    issue.plusminus
  end

  def standard_photo_url
    if photo
      photo.thumb('360x540>').url
    end
  end
end
{'fraction_non_alphanumeric': 0.10063492063492063, 'fraction_numerical': 0.007619047619047619, 'mean_word_length': 3.3282967032967035, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6624951', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1077, 'n_words': 261}