<commit_before>cdb.geo.ui.Widget.List.ItemView = cdb.core.View.extend({

  tagName: 'li',
  className: 'Widget-listItem',

  events: {
    'click .js-button': '_onItemClick'
  },

  _TEMPLATE: ' ' +
    '<% if (isClickable) { %>'+
      '<button type="button" class="Widget-listItemInner Widget-listButton Widget-listButton--withBorder js-button">'+
    '<% } else { %>'+
      '<div class="Widget-listItemInner">'+
    '<% } %>'+
      '<div class="Widget-contentSpaced Widget-contentSpaced--topAligned Widget-contentSpaced--start">'+
        '<em class="Widget-dot Widget-listDot"></em>'+
        '<% if (itemsCount > 0) { %>'+
          '<div class="Widget-contentFull">'+
            '<p class="Widget-textSmall Widget-textSmall--upper Widget-textSmall--bold"><%- items[0][1] %></p>'+
            '<% if (itemsCount > 2) { %>'+
              '<dl class="Widget-inlineList">'+
              '<% for (var i = 1, l = itemsCount; i < l; i++) { %>'+
                '<div class="Widget-inlineListItem Widget-textSmaller Widget-textSmaller--noEllip">'+
                  '<dd class="Widget-textSmaller--bold Widget-textSmaller--dark"><%- items[i][1] %></dd>'+
                  '<dt><%- items[i][0] %></dt>'+
                '</div>'+
              '<% } %>'+
              '</dl>'+
            '<% } else if (itemsCount === 2) { %>'+
              '<dl class="Widget-textSmaller Widget-textSmaller--noEllip u-tSpace">'+
                '<dd class="Widget-textSmaller--bold Widget-textSmaller--dark u-rSpace"><%- items[1][1] %></dd>'+
                '<dt><%- items[1][0] %></dt>'+
              '</dl>'+
            '<% } %>'+
          '</div>'+
        '<% } %>'+
      '</div>'+
    '<% if (isClickable) { %>'+
      '</button>'+
    '<% } else { %>'+
      '</div>'+
    '<% } %>',

  initialize: function() {
    this.viewModel = this.options.viewModel;
  },

  render: function() {
    var template = _.template(this._TEMPLATE);
    var data = this.model.toJSON();
    var hasInteractivity = true; // this._hasInteractivity(data);
    var items = this._sanitizeData(data);

    this.$el.html(
      template({
        items: items,
        isClickable: hasInteractivity,
        itemsCount: _.size(items)
      })
    );<commit_msg>Removing static interactivity value for list item<commit_after>cdb.geo.ui.Widget.List.ItemView = cdb.core.View.extend({

  tagName: 'li',
  className: 'Widget-listItem',

  events: {
    'click .js-button': '_onItemClick'
  },

  _TEMPLATE: ' ' +
    '<% if (isClickable) { %>'+
      '<button type="button" class="Widget-listItemInner Widget-listButton Widget-listButton--withBorder js-button">'+
    '<% } else { %>'+
      '<div class="Widget-listItemInner">'+
    '<% } %>'+
      '<div class="Widget-contentSpaced Widget-contentSpaced--topAligned Widget-contentSpaced--start">'+
        '<em class="Widget-dot Widget-listDot"></em>'+
        '<% if (itemsCount > 0) { %>'+
          '<div class="Widget-contentFull">'+
            '<p class="Widget-textSmall Widget-textSmall--upper Widget-textSmall--bold"><%- items[0][1] %></p>'+
            '<% if (itemsCount > 2) { %>'+
              '<dl class="Widget-inlineList">'+
              '<% for (var i = 1, l = itemsCount; i < l; i++) { %>'+
                '<div class="Widget-inlineListItem Widget-textSmaller Widget-textSmaller--noEllip">'+
                  '<dd class="Widget-textSmaller--bold Widget-textSmaller--dark"><%- items[i][1] %></dd>'+
                  '<dt><%- items[i][0] %></dt>'+
                '</div>'+
              '<% } %>'+
              '</dl>'+
            '<% } else if (itemsCount === 2) { %>'+
              '<dl class="Widget-textSmaller Widget-textSmaller--noEllip u-tSpace">'+
                '<dd class="Widget-textSmaller--bold Widget-textSmaller--dark u-rSpace"><%- items[1][1] %></dd>'+
                '<dt><%- items[1][0] %></dt>'+
              '</dl>'+
            '<% } %>'+
          '</div>'+
        '<% } %>'+
      '</div>'+
    '<% if (isClickable) { %>'+
      '</button>'+
    '<% } else { %>'+
      '</div>'+
    '<% } %>',

  initialize: function() {
    this.viewModel = this.options.viewModel;
  },

  render: function() {
    var template = _.template(this._TEMPLATE);
    var data = this.model.toJSON();
    var hasInteractivity = this._hasInteractivity(data);
    var items = this._sanitizeData(data);

    this.$el.html(
      template({
        items: items,
        isClickable: hasInteractivity,
        itemsCount: _.size(items)
      })
    );
{'fraction_non_alphanumeric': 0.21350810930904243, 'fraction_numerical': 0.005332148411464119, 'mean_word_length': 2.204270462633452, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 95, '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': '6808793', 'n_tokens_mistral': 1494, 'n_tokens_neox': 1489, 'n_words': 245}