<commit_before>import declare from 'dojo/_base/declare';
import lang from 'dojo/_base/lang';
import Memory from 'dojo/store/Memory';
import GroupedList from 'argos/GroupedList';

/**
 * @class crm.Views.RightDrawer
 *
 *
 * @extends argos.GroupedList
 *
 */
const __class = declare('crm.Views.RightDrawer', [GroupedList], {
  // Templates
  cls: ' contextualContent',
  rowTemplate: new Simplate([
    '<li class="{%: $.cls %}" data-action="{%= $.action %}"',
    '{% if($.dataProps) { %}',
    '{% for(var prop in $.dataProps) { %}',
    ' data-{%= prop %}="{%= $.dataProps[prop] %}"',
    '{% } %}',
    '{% } %}',
    '>',
    '{% if ($$._hasIcon($)) { %}',
    '<div class="list-item-static-selector {%: $.iconCls %} ">',
    '{% if ($.icon) { %}',
    '<img src="{%: $.icon %}" alt="icon" class="icon" />',
    '{% } %}',
    '</div>',
    '{% } %}',
    '<div class="list-item-content">{%! $$.itemTemplate %}</div>',
    '</li>',
  ]),
  _hasIcon: function _hasIcon(entry) {
    return entry.iconTemplate || entry.cls || entry.icon || entry.iconCls;
  },
  itemTemplate: new Simplate([
    '<h3>{%: $.title %}</h3>',
  ]),

  // View Properties
  id: 'right_drawer',
  expose: false,
  enableSearch: false,
  customizationSet: 'right_drawer',
  dataProps: null,

  hasMoreData: function hasMoreData() {
    return false;
  },
  getGroupForEntry: function getGroupForEntry() {},
  init: function init() {
    this.inherited(arguments);
    this.connect(App, 'onRegistered', this._onRegistered);
  },<commit_msg>Disable pull to refresh in right drawer as well.<commit_after>import declare from 'dojo/_base/declare';
import lang from 'dojo/_base/lang';
import Memory from 'dojo/store/Memory';
import GroupedList from 'argos/GroupedList';

/**
 * @class crm.Views.RightDrawer
 *
 *
 * @extends argos.GroupedList
 *
 */
const __class = declare('crm.Views.RightDrawer', [GroupedList], {
  // Templates
  cls: ' contextualContent',
  rowTemplate: new Simplate([
    '<li class="{%: $.cls %}" data-action="{%= $.action %}"',
    '{% if($.dataProps) { %}',
    '{% for(var prop in $.dataProps) { %}',
    ' data-{%= prop %}="{%= $.dataProps[prop] %}"',
    '{% } %}',
    '{% } %}',
    '>',
    '{% if ($$._hasIcon($)) { %}',
    '<div class="list-item-static-selector {%: $.iconCls %} ">',
    '{% if ($.icon) { %}',
    '<img src="{%: $.icon %}" alt="icon" class="icon" />',
    '{% } %}',
    '</div>',
    '{% } %}',
    '<div class="list-item-content">{%! $$.itemTemplate %}</div>',
    '</li>',
  ]),
  _hasIcon: function _hasIcon(entry) {
    return entry.iconTemplate || entry.cls || entry.icon || entry.iconCls;
  },
  itemTemplate: new Simplate([
    '<h3>{%: $.title %}</h3>',
  ]),

  // View Properties
  id: 'right_drawer',
  expose: false,
  enableSearch: false,
  customizationSet: 'right_drawer',
  enablePullToRefresh: false,
  dataProps: null,

  hasMoreData: function hasMoreData() {
    return false;
  },
  getGroupForEntry: function getGroupForEntry() {},
  init: function init() {
    this.inherited(arguments);
    this.connect(App, 'onRegistered', this._onRegistered);
  },
{'fraction_non_alphanumeric': 0.2289312237649338, 'fraction_numerical': 0.0012915724895059735, 'mean_word_length': 3.476878612716763, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '7286601', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1099, 'n_words': 214}