<commit_before>%aside#controls{ class: signed_in? ? 'user unhover' : 'signin' }
  .wrap
    - unless signed_in?
      .signin-form
        %div= 'Unknown ' + flash[:wrong_user] if flash[:wrong_user]
        %div= 'Error '   + flash[:wrong_auth] if flash[:wrong_auth]
        %a.signin-button( href="/auth/google" )
          %span Войти через Google
    - else
      .signed-in
        = form_tag session_path, method: :delete do
          = current_user.email
          = submit_tag '×', title: 'Выйти'

      = yield :controls<commit_msg>Show current user name instead of email in control panel<commit_after>%aside#controls{ class: signed_in? ? 'user unhover' : 'signin' }
  .wrap
    - unless signed_in?
      .signin-form
        %div= 'Unknown ' + flash[:wrong_user] if flash[:wrong_user]
        %div= 'Error '   + flash[:wrong_auth] if flash[:wrong_auth]
        %a.signin-button( href="/auth/google" )
          %span Войти через Google
    - else
      .signed-in
        = form_tag session_path, method: :delete do
          = current_user.title
          = submit_tag '×', title: 'Выйти'

      = yield :controls
{'fraction_non_alphanumeric': 0.12822796081923418, 'fraction_numerical': 0.0, 'mean_word_length': 2.4478527607361964, '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': '7225028', 'n_tokens_mistral': 374, 'n_tokens_neox': 365, 'n_words': 88}