<commit_before>class Wiki::App
  get '/_/user' do
    hash = Wiki.md5(@user.email)
    %{<a href="/profile"><img src="http://www.gravatar.com/avatar/#{hash}?d=identicon&s=20" alt="Gravatar" style="float: left; margin: -2px 5px -2px 0;"/></a>} + super()
  end
end<commit_msg>gravatar plugin improved<commit_after>author      '<NAME>'
description 'Display gravatar'

class Wiki::App
  get '/_/user' do
    hash = Wiki.md5(@user.email.downcase)
    img = %{<img src="http://www.gravatar.com/avatar/#{hash}?d=identicon&s=20" alt="Gravatar" style="float:left;margin:-2px 5px -2px 0"/>}
    (@user.anonymous? ? img : %{<a href="/profile">#{img}</a>}) + super()
  end
end

{'fraction_non_alphanumeric': 0.21654135338345865, 'fraction_numerical': 0.021052631578947368, 'mean_word_length': 4.414634146341464, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3067075', 'n_tokens_mistral': 267, 'n_tokens_neox': 252, 'n_words': 49}