<commit_before>class TemplatePicker
  attr_accessor :post

  TEMPLATES = %w{ status_with_photo_backdrop
                  note
                  photo_backdrop
                  status
                }

  def initialize(post)
    self.post = post
  end

  def template_name
    TEMPLATES.each do |template|
      return TemplatePicker.jsonify_name(template) if self.send("#{template}?".to_sym)
    end

    'status' #default
  end

  def status_with_photo_backdrop?
    status? && photo_backdrop?
  end

  def note?
    self.status? && post.text(:plain_text => true).length > 200
  end

  def photo_backdrop?
    post.photos.size == 1 
  end

  def status?
    post.text?
  end<commit_msg>Remove photo backdrop in single post view.<commit_after>class TemplatePicker
  attr_accessor :post

  TEMPLATES = %w{ status_with_photo_backdrop
                  note
                  photo_backdrop
                  status
                }

  def initialize(post)
    self.post = post
  end

  def template_name
    TEMPLATES.each do |template|
      return TemplatePicker.jsonify_name(template) if self.send("#{template}?".to_sym)
    end

    'status' #default
  end

  def status_with_photo_backdrop?
    status? && photo_backdrop?
  end

  def note?
    self.status? && post.text(:plain_text => true).length > 200
  end

  def photo_backdrop?
    false # No backdrop, ever.
  end

  def status?
    post.text?
  end
{'fraction_non_alphanumeric': 0.08067940552016985, 'fraction_numerical': 0.004953998584571833, 'mean_word_length': 2.2731481481481484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6400522', 'n_tokens_mistral': 474, 'n_tokens_neox': 432, 'n_words': 105}