<commit_before>module UsersHelper
  DreamstarImages = [
    "dreamstars-1-128.png",
    "dreamstars-2-128.png",
    "dreamstars-3-128.png",
    "dreamstars-4-128.png",
    "dreamstars-5-128.png",
    "dreamstars-6-128.png"
  ]
  
  def dreamstar_image_tag(rank)
    raw( image_tag("dreamstars/#{DreamstarImages[rank-1]}", :size => '128x128') )
  end
  def friends_header_image
    img_url = case @mode
    when "friends"
      "/images/icons/friend-32.png"
    when "following"
      "/images/icons/friend-follow-32.png"
    when "followers"
      "/images/icons/friend-follower-32.png"
    else
      "/images/icons/friend-32.png"
    end
    
    raw( img_url )
  end
  def assure_http(url)
    url.gsub(/^www./, 'http://www.')
    url = "http://#{url}" if url !~ /http:\/\//i 
  end
end<commit_msg>make sure check for user url http:// is at beginning - added return<commit_after>module UsersHelper
  DreamstarImages = [
    "dreamstars-1-128.png",
    "dreamstars-2-128.png",
    "dreamstars-3-128.png",
    "dreamstars-4-128.png",
    "dreamstars-5-128.png",
    "dreamstars-6-128.png"
  ]
  
  def dreamstar_image_tag(rank)
    raw( image_tag("dreamstars/#{DreamstarImages[rank-1]}", :size => '128x128') )
  end
  def friends_header_image
    img_url = case @mode
    when "friends"
      "/images/icons/friend-32.png"
    when "following"
      "/images/icons/friend-follow-32.png"
    when "followers"
      "/images/icons/friend-follower-32.png"
    else
      "/images/icons/friend-32.png"
    end
    
    raw( img_url )
  end
  def assure_http(url)
    url.gsub(/^www./, 'http://www.')
    url = "http://#{url}" if url !~ /^http:\/\//i 
    return url
  end
end
{'fraction_non_alphanumeric': 0.16566985645933013, 'fraction_numerical': 0.04665071770334928, 'mean_word_length': 2.544491525423729, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2237609', 'n_tokens_mistral': 703, 'n_tokens_neox': 630, 'n_words': 106}