<commit_before>/*jshint indent:2, curly:true eqeqeq:true, immed:true, latedef:true, 
newcap:true, noarg:true, regexp:true, undef:true, trailing:true
white:true*/
/*global enyo:true, XT:true */

(function () {

  enyo.kind({
    name: "XV.Pullout",
    kind: "enyo.Slideable",
    classes: "pullout",
    value: -100,
    min: -100,
    unit: '%',
    components: [
      {name: "shadow", classes: "pullout-shadow"},
      {name: "grabber", kind: "onyx.Grabber", classes: "pullout-grabbutton"},
      {kind: "FittableRows", classes: "enyo-fit", components: [
        {name: "client", classes: "pullout-toolbar"},
        {name: "pulloutItems", fit: true, style: "position: relative;", components: [
          {name: "history", kind: "FittableRows", showing: false, classes: "enyo-fit", components: [
            {kind: "onyx.RadioGroup", classes: "history-header", components: [
              {content: "Saved", active: true},
              {content: "Recents"}
            ]},
            {fit: true, kind: "Scroller", classes: "history-scroller", components: [
              {kind: "List", onItemSelect: "itemSelect"}
            ]}
          ]}
        ]}
      ]}
    ],
    addPulloutItem: function (inSender, inEvent) {
      var item = {
        name: inEvent.name,
        showing: false
      };
      if (inEvent.getParameterWidget) {
        item.kind = inEvent.getParameterWidget();
      }
      if (item.kind) {
        if (this._pulloutItems === undefined) {
          this._pulloutItems = [];
        }
        this._pulloutItems.push(item);
      }
    },
    create: function () {
      this.inherited(arguments);
      var pulloutItems = this._pulloutItems || [],
        i;
      for (i = 0; i < pulloutItems.length; i++) {
        this.$.pulloutItems.createComponent(pulloutItems[i]);
      }
    },
    getItem: function (name) {
      return this.$.pulloutItems.$[name] || this.$[name];
    },
    togglePullout: function (name) {
      var item = this.getItem(name),
        children = this.$.pulloutItems.children,
        i;
      if (item.showing && this.isAtMax()) {
        this.animateToMin();
      } else {
        this.animateToMax();
        for (i = 0; i < children.length; i++) {
          children[i].hide();
        }
        item.show();
        item.resized();
      }
    }
  });

}());<commit_msg>remove unneeded functions.<commit_after>/*jshint indent:2, curly:true eqeqeq:true, immed:true, latedef:true, 
newcap:true, noarg:true, regexp:true, undef:true, trailing:true
white:true*/
/*global enyo:true, XT:true */

(function () {

  enyo.kind({
    name: "XV.Pullout",
    kind: "enyo.Slideable",
    classes: "pullout",
    value: -100,
    min: -100,
    unit: '%',
    components: [
      {name: "shadow", classes: "pullout-shadow"},
      {name: "grabber", kind: "onyx.Grabber", classes: "pullout-grabbutton"},
      {kind: "FittableRows", classes: "enyo-fit", components: [
        {name: "client", classes: "pullout-toolbar"},
        {name: "pulloutItems", fit: true, style: "position: relative;", components: [
          {name: "history", kind: "FittableRows", showing: false, classes: "enyo-fit", components: [
            {kind: "onyx.RadioGroup", classes: "history-header", components: [
              {content: "Saved", active: true},
              {content: "Recents"}
            ]},
            {fit: true, kind: "Scroller", classes: "history-scroller", components: [
              {kind: "List", onItemSelect: "itemSelect"}
            ]}
          ]}
        ]}
      ]}
    ],
    getItem: function (name) {
      return this.$.pulloutItems.$[name] || this.$[name];
    },
    togglePullout: function (name) {
      var item = this.getItem(name),
        children = this.$.pulloutItems.children,
        i;
      if (item.showing && this.isAtMax()) {
        this.animateToMin();
      } else {
        this.animateToMax();
        for (i = 0; i < children.length; i++) {
          children[i].hide();
        }
        item.show();
        item.resized();
      }
    }
  });

}());
{'fraction_non_alphanumeric': 0.17116002968093, 'fraction_numerical': 0.004204798417017067, 'mean_word_length': 2.2798053527980535, 'pattern_counts': {'":': 0, '<': 6, '<?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': '7179146', 'n_tokens_mistral': 1339, 'n_tokens_neox': 1304, 'n_words': 271}