<commit_before>#user_recent_contents.box
  %h1= @user.name
  %p Compte créé le #{l @user.created_at.to_date}
  - unless @user.account && @user.account.active_for_authentication?
    %p Compte fermé
  - if @user.account && @user.account.viewable_by?(current_account)
    - a = @user.account
    %ul
      %li Courriel&nbsp;: #{a.email}
      %li Rôle&nbsp;: #{a.display_role(@user.nodes.where(public: true).count>0)}
      %li Dernière connexion&nbsp;: #{a.current_sign_in_at ? l(@user.account.current_sign_in_at) : "-"}
      %li Karma&nbsp;: #{a.karma} (minimum&nbsp;: #{a.min_karma}, maximum&nbsp;: #{a.max_karma})
    - if current_account.admin?
      = button_to "+50XP", karma_admin_account_path(@user.account.id)
    - if current_account.can_block?
      %button.more.block Interdire de commenter
      .more_actions(style="display: none;")
        %ul
          %li= button_to "24h", moderation_block_index_path(nb_days: 1, account_id: @user.account.id), remote: true, class: "block"
          %li= button_to "2 jours", moderation_block_index_path(nb_days: 2, account_id: @user.account.id), remote: true, class: "block"
          %li= button_to "une semaine", moderation_block_index_path(nb_days: 7, account_id: @user.account.id), remote: true, class: "block"
          %li= button_to "un mois", moderation_block_index_path(nb_days: 30, account_id: @user.account.id), remote: true, class: "block"
    - if current_account.can_plonk?
      %button.more.plonk Interdire de tribune
      .more_actions(style="display: none;")
        %ul
          %li= button_to "24h", moderation_plonk_index_path(nb_days: 1, account_id: @user.account.id), remote: true, class: "plonk"
          %li= button_to "2 jours", moderation_plonk_index_path(nb_days: 2, account_id: @user.account.id), remote: true, class: "plonk"
          %li= button_to "une semaine", moderation_plonk_index_path(nb_days: 7, account_id: @user.account.id), remote: true, class: "plonk"
          %li= button_to "un mois", moderation_plonk_index_path(nb_days: 30, account_id: @user.account.id), remote: true, class: "plonk"
      - if @user.account.logs.any?
        %h2 Historique
        %ul
          = list_of(@user.account.logs) do |log|
            #{l log.created_at} - #{log.user.try :name} - #{log.description}<commit_msg>Add descriptive tags and classes to user-specific moderation log<commit_after>#user_recent_contents.box
  %h1= @user.name
  %p Compte créé le #{l @user.created_at.to_date}
  - unless @user.account && @user.account.active_for_authentication?
    %p Compte fermé
  - if @user.account && @user.account.viewable_by?(current_account)
    - a = @user.account
    %ul
      %li Courriel&nbsp;: #{a.email}
      %li Rôle&nbsp;: #{a.display_role(@user.nodes.where(public: true).count>0)}
      %li Dernière connexion&nbsp;: #{a.current_sign_in_at ? l(@user.account.current_sign_in_at) : "-"}
      %li Karma&nbsp;: #{a.karma} (minimum&nbsp;: #{a.min_karma}, maximum&nbsp;: #{a.max_karma})
    - if current_account.admin?
      = button_to "+50XP", karma_admin_account_path(@user.account.id)
    - if current_account.can_block?
      %button.more.block Interdire de commenter
      .more_actions.block(style="display: none;")
        %ul
          %li= button_to "24h", moderation_block_index_path(nb_days: 1, account_id: @user.account.id), remote: true, class: "block"
          %li= button_to "2 jours", moderation_block_index_path(nb_days: 2, account_id: @user.account.id), remote: true, class: "block"
          %li= button_to "une semaine", moderation_block_index_path(nb_days: 7, account_id: @user.account.id), remote: true, class: "block"
          %li= button_to "un mois", moderation_block_index_path(nb_days: 30, account_id: @user.account.id), remote: true, class: "block"
    - if current_account.can_plonk?
      %button.more.plonk Interdire de tribune
      .more_actions.plonk(style="display: none;")
        %ul
          %li= button_to "24h", moderation_plonk_index_path(nb_days: 1, account_id: @user.account.id), remote: true, class: "plonk"
          %li= button_to "2 jours", moderation_plonk_index_path(nb_days: 2, account_id: @user.account.id), remote: true, class: "plonk"
          %li= button_to "une semaine", moderation_plonk_index_path(nb_days: 7, account_id: @user.account.id), remote: true, class: "plonk"
          %li= button_to "un mois", moderation_plonk_index_path(nb_days: 30, account_id: @user.account.id), remote: true, class: "plonk"
      - if @user.account.logs.any?
        %h2.history Historique
        %ul.history
          = list_of(@user.account.logs) do |log|
            %span.date
              #{l log.created_at}
            %span.sep
              \-
            %span.name
              #{log.user.try :name}
            %span.sep
              \-
            %span.description
              #{log.description}
{'fraction_non_alphanumeric': 0.1429750361048071, 'fraction_numerical': 0.008665153703321642, 'mean_word_length': 3.391304347826087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7199853', 'n_tokens_mistral': 1756, 'n_tokens_neox': 1721, 'n_words': 352}