<commit_before>module UploadsHelper
  
  def download_url(upload)
    "http://#{request.host_with_port}/#{upload.download_path}"
  end
  
  def image_code(upload)
    "<img src='#{download_url(upload)}' />"
  end
  
end<commit_msg>changed html code output for images<commit_after>module UploadsHelper
  
  def download_url(upload)
    "http://#{request.host_with_port}/#{upload.download_path}"
  end
  
  def image_code(upload)
    "<a href='#{upload_url(upload)}'><img src='#{download_url(upload)}' /></a>"
  end
  
end
{'fraction_non_alphanumeric': 0.15576923076923077, 'fraction_numerical': 0.0, 'mean_word_length': 4.542553191489362, 'pattern_counts': {'":': 0, '<': 7, '<?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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3600904', 'n_tokens_mistral': 184, 'n_tokens_neox': 191, 'n_words': 30}