<commit_before>module ImageHelper
  
  def group_image_tag(size=80,url=false)
    group =  self.respond_to?(:group) ? self.group : self

    src = group.image_url
    src = Maktoub.home_domain + src if url
    style = size ? "width:#{size}px;height:#{size}px;" : ""
    ret = "<img src=\"#{src}\"  style=\"#{style}\" alt=\"#{group.name}\" />"
    ret.html_safe
  end
    
end<commit_msg>small issue when the image is not found for groups<commit_after>module ImageHelper
  
  def group_image_tag(size=80,url=false)
    group =  self.respond_to?(:group) ? self.group : self

    src = group.image_url
    src = Maktoub.home_domain + src if url
    style = size ? "width:#{size}px;height:#{size}px;overflow:hidden;" : ""
    ret = "<img src=\"#{src}\"  style=\"#{style}\" alt=\"#{group.name}\" />"
    ret.html_safe
  end
    
end
{'fraction_non_alphanumeric': 0.17412333736396615, 'fraction_numerical': 0.0048367593712212815, 'mean_word_length': 3.404255319148936, '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': '7206081', 'n_tokens_mistral': 300, 'n_tokens_neox': 301, 'n_words': 60}