<commit_before>module ApplicationHelper

  def signin_path(provider)
    "/auth/#{provider.to_s}"
  end

  def avatar(user)
    src = user.avatar || '/assets/default/avatar.png'
    image_tag(src, alt: "", title: user.name, class: 'user-avatar')
  end<commit_msg>Fixed asset path in avatar helper<commit_after>module ApplicationHelper

  def signin_path(provider)
    "/auth/#{provider.to_s}"
  end

  def avatar(user)
    src = user.avatar || asset_path('default/avatar.png')
    image_tag(src, alt: "", title: user.name, class: 'user-avatar')
  end
{'fraction_non_alphanumeric': 0.14181818181818182, 'fraction_numerical': 0.0, 'mean_word_length': 4.101851851851852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '105750', 'n_tokens_mistral': 194, 'n_tokens_neox': 186, 'n_words': 40}