<commit_before>%form#entries-form{"data-remote" => "true"}
  %table#entries
    - @entries.each do |entry|
      %tr
        %td.chckbx
          = check_box_tag 'items[]', entry.id
        %td.title
          .outer
            .inner
              = star_icon(entry).html_safe
              \&nbsp;
              \#{link_to(entry.name, entry, { :remote => true, :class => read_or_not(entry) })}
        %td.date
          %em{:style => "color: gray;"}= pretty_date(entry.published_at)
:javascript
  $('form#entries-form input[type="checkbox"]').click(function() {
      var num_selected = $('form#entries-form input:checked').length;
      if (num_selected == 1 && !entries_selected) {
        $('#entries-selector').attr('checked', 'checked');
        $.toggle_entries_toolbar(false);
      } else if (num_selected == 0) {
        $('#entries-selector').removeAttr('checked');
        $.toggle_entries_toolbar(false);
      }
  });

  $('#entries .title .outer .inner a').click(function() {
    $(this).css('font-weight', 'normal');
  });<commit_msg>added notification text for when there are no feed to be loaded in the current view<commit_after>%form#entries-form{"data-remote" => "true"}
  %table#entries
    - if @entries.present?
      - @entries.each do |entry|
        %tr
          %td.chckbx
            = check_box_tag 'items[]', entry.id
          %td.title
            .outer
              .inner
                = star_icon(entry).html_safe
                \&nbsp;
                \#{link_to(entry.name, entry, { :remote => true, :class => read_or_not(entry) })}
          %td.date
            %em{:style => "color: gray;"}= pretty_date(entry.published_at)
    - else
      %p There are no items here yet
:javascript
  $('form#entries-form input[type="checkbox"]').click(function() {
      var num_selected = $('form#entries-form input:checked').length;
      if (num_selected == 1 && !entries_selected) {
        $('#entries-selector').attr('checked', 'checked');
        $.toggle_entries_toolbar(false);
      } else if (num_selected == 0) {
        $('#entries-selector').removeAttr('checked');
        $.toggle_entries_toolbar(false);
      }
  });

  $('#entries .title .outer .inner a').click(function() {
    $(this).css('font-weight', 'normal');
  });
{'fraction_non_alphanumeric': 0.17406593406593407, 'fraction_numerical': 0.0017582417582417582, 'mean_word_length': 2.4642313546423136, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4878684', 'n_tokens_mistral': 694, 'n_tokens_neox': 690, 'n_words': 133}