<commit_before>SimpleNavigation::Configuration.run do |navigation|
  navigation.items do |primary|
    navigation.renderer = SimpleNavigationRenderers::Bootstrap3
    primary.dom_class = 'pull-right'

    if signed_in?
      primary.item :logged, {text: current_user.fullname}, nil do |user|
        user.item :logout, {icon: 'fa fa-fw fa-sign-out', text: 'Logout'},
                           destroy_user_session_url, method: :delete
      end
    else
      primary.item :login, {icon: 'fa fa-fw fa-sign-in', text: 'Login'}, new_user_session_url
    end
  end
end<commit_msg>fix escaping issue on login menu when logged<commit_after>SimpleNavigation::Configuration.run do |navigation|
  navigation.items do |primary|
    navigation.renderer = SimpleNavigationRenderers::Bootstrap3
    primary.dom_class = 'pull-right'

    if signed_in?
      primary.item :logged, current_user.fullname.html_safe, nil do |user|
        user.item :logout, {icon: 'fa fa-fw fa-sign-out', text: 'Logout'},
                           destroy_user_session_url, method: :delete
      end
    else
      primary.item :login, {icon: 'fa fa-fw fa-sign-in', text: 'Login'}, new_user_session_url
    end
  end
end
{'fraction_non_alphanumeric': 0.10933557611438183, 'fraction_numerical': 0.001682085786375105, 'mean_word_length': 3.1901408450704225, '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': '217150', 'n_tokens_mistral': 366, 'n_tokens_neox': 366, 'n_words': 93}