<commit_before><%= content_for :javascript do %>
 $('.tooltip_unavailable').qtip({
   content: '<%= escape_javascript(t('recordings.unavailable_tip')) %>',
   position: {adjust: { screen: true }},
   show:  'mouseover',
   hide: { when: 'mouseout', fixed: true },
   style: 'mystyle'
  });
<% end %>

<% if not defined?(show_authors) %>
  <% show_authors = true %>
<% end %>

<div id="recording-list">
  <ul class="recording-item">
    <% recordings.each do |recording| %>
      <li class="<%= cycle('thread-even' , 'thread-odd') %>">

        <div class="recording-field">
          <% metaUser = recording.metadata.all.select{ |m| m.name == BigbluebuttonRails.metadata_user_id.to_s }.first %>
          <% metaTitle = recording.metadata.all.select{ |m| m.name == configatron.metadata.title }.first %>
          <% metaDesc = recording.metadata.all.select{ |m| m.name == configatron.metadata.description }.first %>
          <% if metaTitle.nil? or metaTitle.content.blank? %>
            <span class="recording-name"><%= t('recordings.no_title') %></span>:
          <% else %>
            <span class="recording-name"><%= metaTitle.content %></span>:
          <% end %>
          <% if metaDesc.nil? or metaDesc.content.blank? %>
            <span class="recording-description"><%= t('recordings.no_description') %></span>
          <% else %>
            <span class="recording-description"><%= metaDesc.content %></span>
          <% end %>
        </div>
        <div class="recording-details">
          <%= t('recordings.playback') %>:
          <% unless recording.available %>
            <%= t('recordings.unavailable') %>
            <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_unavailable icon",:style=>"cursor:pointer").html_safe %>
          <% else %>
            <% if recording.playback_formats.size > 0 %>
              <% recording.playback_formats.each do |playback| %>
                <a href="<%= playback.url %>" class="playback-link">
                  <%= image_tag "icons/16/play2.png", :class => "playback-icon" %>
                  <%= playback.format_type %>
                </a>
              <% end %>
            <% else %>
              <%= t('recordings.processing_dots') %>
            <% end %>
          <% end %>
        </div>
        <div class="recording-details">
          <% if show_authors %>
            <% unless metaUser.nil? %>
              <% user = User.find_by_id(metaUser.content) %>
              <% unless user.nil? %>
                <span class="recording-author"><commit_msg>Simpler tooltips for unavailable recordings<commit_after><% if not defined?(show_authors) %>
  <% show_authors = true %>
<% end %>

<div id="recording-list">
  <ul class="recording-item">
    <% recordings.each do |recording| %>
      <li class="<%= cycle('thread-even' , 'thread-odd') %>">

        <div class="recording-field">
          <% metaUser = recording.metadata.all.select{ |m| m.name == BigbluebuttonRails.metadata_user_id.to_s }.first %>
          <% metaTitle = recording.metadata.all.select{ |m| m.name == configatron.metadata.title }.first %>
          <% metaDesc = recording.metadata.all.select{ |m| m.name == configatron.metadata.description }.first %>
          <% if metaTitle.nil? or metaTitle.content.blank? %>
            <span class="recording-name"><%= t('recordings.no_title') %></span>:
          <% else %>
            <span class="recording-name"><%= metaTitle.content %></span>:
          <% end %>
          <% if metaDesc.nil? or metaDesc.content.blank? %>
            <span class="recording-description"><%= t('recordings.no_description') %></span>
          <% else %>
            <span class="recording-description"><%= metaDesc.content %></span>
          <% end %>
        </div>
        <div class="recording-details">
          <%= t('recordings.playback') %>:
          <% unless recording.available %>
            <%= t('recordings.unavailable') %>
            <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_unavailable icon",:style=>"cursor:pointer",:title => t('recordings.unavailable_tip')).html_safe %>
          <% else %>
            <% if recording.playback_formats.size > 0 %>
              <% recording.playback_formats.each do |playback| %>
                <a href="<%= playback.url %>" class="playback-link">
                  <%= image_tag "icons/16/play2.png", :class => "playback-icon" %>
                  <%= playback.format_type %>
                </a>
              <% end %>
            <% else %>
              <%= t('recordings.processing_dots') %>
            <% end %>
          <% end %>
        </div>
        <div class="recording-details">
          <% if show_authors %>
            <% unless metaUser.nil? %>
              <% user = User.find_by_id(metaUser.content) %>
              <% unless user.nil? %>
                <span class="recording-author">
{'fraction_non_alphanumeric': 0.18483123220821474, 'fraction_numerical': 0.0032533550223668157, 'mean_word_length': 2.249009247027741, 'pattern_counts': {'":': 0, '<': 118, '<?xml version=': 0, '>': 131, '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': '5441797', 'n_tokens_mistral': 1602, 'n_tokens_neox': 1428, 'n_words': 244}