<commit_before>var $ = require('jquery');
var _ = require('underscore');
var View = require('cdb/core/view');
var CategoryItemsView = require('./items_view');
var WidgetSearchCategoryItemView = require('./item/search_item_view');
var placeholder = require('./search_items_no_results_template.tpl');

/**
 * Category list view
 */
module.exports = CategoryItemsView.extend({

  className: 'Widget-list is-hidden Widget-list--wrapped js-list',

  _renderList: function() {
    this.$el.removeClass('Widget-list--withBorders Widget-list--noresults');
    this.$el.addClass('Widget-list--wrapped');

    var groupItem;<commit_msg>Fixed problem not showing no-results module in search list<commit_after>var $ = require('jquery');
var _ = require('underscore');
var View = require('cdb/core/view');
var CategoryItemsView = require('./items_view');
var WidgetSearchCategoryItemView = require('./item/search_item_view');
var placeholder = require('./search_items_no_results_template.tpl');

/**
 * Category list view
 */
module.exports = CategoryItemsView.extend({

  className: 'Widget-list is-hidden Widget-list--wrapped js-list',

  render: function() {
    this.clearSubViews();
    this.$el.empty();
    var data = this.dataModel.getSearchResult();
    var isDataEmpty = data.isEmpty() || data.size() === 0;

    if (isDataEmpty) {
      this._renderPlaceholder();
    } else {
      this._renderList();
    }
    return this;
  },

  _renderList: function() {
    this.$el.removeClass('Widget-list--withBorders Widget-list--noresults');
    this.$el.addClass('Widget-list--wrapped');

    var groupItem;
{'fraction_non_alphanumeric': 0.1580262336039975, 'fraction_numerical': 0.0006246096189881324, 'mean_word_length': 4.375838926174497, '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': '1558771', 'n_tokens_mistral': 476, 'n_tokens_neox': 475, 'n_words': 92}