<commit_before>module Photish::Plugin::FooterLinks

  def self.is_for?(type)
    [
      Photish::Plugin::Type::Collection,
      Photish::Plugin::Type::Album,
      Photish::Plugin::Type::Photo,
      Photish::Plugin::Type::Image
    ].include?(type)
  end

  def links_with_seperator(links, seperator)
    @cached_results ||= {}
    @cached_results.fetch("#{links}#{seperator}") do |k|
      @cached_results[k] = render(links, seperator)
    end
  end

  def render(links, seperator)
    html = ''
    links.each_with_index do |link, index|
      if index == (links.count - 1)
        text = link[:text]
      else
        text = "#{link[:text]} #{seperator} "
      end
      html << "<a href=\"" << link[:url] << "\">" << text << "</a>"
    end
    html
  end
end

<commit_msg>simple<commit_after>module Photish::Plugin::FooterLinks

  def self.is_for?(type)
    [
      Photish::Plugin::Type::Collection,
      Photish::Plugin::Type::Album,
      Photish::Plugin::Type::Photo,
      Photish::Plugin::Type::Image
    ].include?(type)
  end

  def links_with_seperator(links, seperator)
    html = ''
    links.each_with_index do |link, index|
      if index == (links.count - 1)
        text = link[:text]
      else
        text = "#{link[:text]} #{seperator} "
      end
      html << "<a href=\"" << link[:url] << "\">" << text << "</a>"
    end
    html
  end
end


{'fraction_non_alphanumeric': 0.17479970866715222, 'fraction_numerical': 0.0014566642388929353, 'mean_word_length': 2.816666666666667, 'pattern_counts': {'":': 0, '<': 27, '<?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': '4666583', 'n_tokens_mistral': 475, 'n_tokens_neox': 468, 'n_words': 90}