<commit_before>#header
  = render :partial => "rails_admin/main/title"
  %h1
  #user-navigation
    %ul.wat-cf
      %li= link_to header_icon(:config, t('admin.dashboard.name')), dashboard_path
      %li= link_to header_icon(:home, t('home.name').capitalize), (root_path rescue '/')
      %li= link_to header_icon(:account, _current_user.email), (edit_path(:user, _current_user) rescue '#')
      %li= link_to header_icon(:logout, t("admin.credentials.log_out")), (destroy_user_session_path rescue '/users/sign_out'), :method => (Devise.sign_out_via rescue :delete)<commit_msg>user edit link authorization<commit_after>#header
  = render :partial => "rails_admin/main/title"
  %h1
  #user-navigation
    %ul.wat-cf
      %li= link_to header_icon(:config, t('admin.dashboard.name')), dashboard_path
      %li= link_to header_icon(:home, t('home.name').capitalize), (root_path rescue '/')
      %li= link_to header_icon(:account, _current_user.email), (edit_path(:user, _current_user) rescue '#') if authorized?(:edit, _current_user)
      %li= link_to header_icon(:logout, t("admin.credentials.log_out")), (destroy_user_session_path rescue '/users/sign_out'), :method => (Devise.sign_out_via rescue :delete)
{'fraction_non_alphanumeric': 0.1583747927031509, 'fraction_numerical': 0.001658374792703151, 'mean_word_length': 5.454545454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5823147', 'n_tokens_mistral': 416, 'n_tokens_neox': 407, 'n_words': 77}