<commit_before><% 
  wrapper_tag ||= :div
%>

<% content_tag wrapper_tag, :class => 'user_box vcard' do %>
  <%= link_to( image_tag( user.photo.url(:profile), :class => 'user-photo photo' ), user ) if user.photo.file? %>
  <div class='user_head'>
    <h3><%= link_to user.fullname, user, :name => "id_#{user.id}", :id => "id_#{user.id}", :class => 'fn n' %></h3>
    <% unless user.affiliation.blank? -%>
    <span class='affiliation org'><%= user.affiliation %></span>
    <% end -%>
  </div>
  <div class='user_body'>
    <div class='user_links'>
      <ul>
        <% unless user.website.blank? %>
          <li>Website: <%= display_link_to(user.website, :nofollow => true, :popup => true, :class => 'url') %></li>
        <% end %>
        <% unless user.blog_url.blank? %>
          <li>Blog: <%= display_link_to(user.blog_url, :nofollow => true, :popup => true, :class => 'url') %></li>
        <% end %>
        <% unless user.twitter.blank? %>
          <li>Twitter: <%= display_link_to(user.twitter_url, :title => user.twitter, :nofollow => true, :popup => true, :class => 'url') %></li>
        <% end %>
        <% unless user.identica.blank? %>
          <li>Identi.ca: <%= display_link_to(user.identica_url, :title => user.identica, :nofollow => true, :popup => true, :class => 'url') %></li>
        <% end %>
      </ul>
    </div>

  <% unless user.biography.blank? %>
    <h4>Biography</h4>
    <div class='note'>
      <%= display_textile_for user.biography %>
    </div>
  <% end %>
  
  <% if @event.schedule_published? && !user.sessions.empty? %>
    <h4 class='sessions'>Sessions</h4>
    <%= render :partial => 'proposals/list_concise', :locals => { :items => user.sessions, :hide_rooms => true }%>
  <% end -%>

  </div>
<% end -%><commit_msg>Added option to users/_block to display the sub list instead of the concise list.<commit_after><% 
  wrapper_tag ||= :div
  display_sub_list ||= false
%>

<% content_tag wrapper_tag, :class => 'user_box vcard' do %>
  <%= link_to( image_tag( user.photo.url(:profile), :class => 'user-photo photo' ), user ) if user.photo.file? %>
  <div class='user_head'>
    <h3><%= link_to user.fullname, user, :name => "id_#{user.id}", :id => "id_#{user.id}", :class => 'fn n' %></h3>
    <% unless user.affiliation.blank? -%>
    <span class='affiliation org'><%= user.affiliation %></span>
    <% end -%>
  </div>
  <div class='user_body'>
    <div class='user_links'>
      <ul>
        <% unless user.website.blank? %>
          <li>Website: <%= display_link_to(user.website, :nofollow => true, :popup => true, :class => 'url') %></li>
        <% end %>
        <% unless user.blog_url.blank? %>
          <li>Blog: <%= display_link_to(user.blog_url, :nofollow => true, :popup => true, :class => 'url') %></li>
        <% end %>
        <% unless user.twitter.blank? %>
          <li>Twitter: <%= display_link_to(user.twitter_url, :title => user.twitter, :nofollow => true, :popup => true, :class => 'url') %></li>
        <% end %>
        <% unless user.identica.blank? %>
          <li>Identi.ca: <%= display_link_to(user.identica_url, :title => user.identica, :nofollow => true, :popup => true, :class => 'url') %></li>
        <% end %>
      </ul>
    </div>

  <% unless user.biography.blank? %>
    <h4>Biography</h4>
    <div class='note'>
      <%= display_textile_for user.biography %>
    </div>
  <% end %>
  
  <% if display_sub_list %>
    <%= render :partial => 'proposals/sub_list', :locals => { :container => user }%>
  <% else %>
    <% if @event.proposal_status_published? && @event.schedule_published? && !user.sessions.empty? %>
      <h4 class='sessions'>Sessions</h4>
      <%= render :partial => 'proposals/list_concise', :locals => { :items => user.sessions, :hide_rooms => true }%>
    <% end -%>
  <% end -%>

  </div>
<% end -%>
{'fraction_non_alphanumeric': 0.21730013106159896, 'fraction_numerical': 0.003145478374836173, 'mean_word_length': 3.042372881355932, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 160, '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': '1186212', 'n_tokens_mistral': 1458, 'n_tokens_neox': 1350, 'n_words': 276}