<commit_before>var BaseObject = require('../base/base_object');
var Styler = require('../base/styler');
var JST = require('../base/jst');

var SpinnerThreeBouncePlugin = BaseObject.extend({
  pluginName: 'spinner_three_bounce',
  attributes: {
    "data-spinner":""
  },
  initialize: function(options) {
    this.template = JST[this.pluginName];
    this.listenTo(this.container, 'container:state:buffering', this.onBuffering);
    this.listenTo(this.container, 'container:state:bufferfull', this.onBufferFull);
    this.render();
  },
  onBuffering: function() {
    this.$el.show();
  },
  onBufferFull: function() {
    this.$el.hide();
  },
  render: function() {
    this.$el.html(this.template());
    this.style = Styler.styleFor(this.pluginName);
    this.container.$el.append(this.style);
    this.container.$el.append(this.$el);
    this.$el.hide();
    return this;
  }
});

module.exports = SpinnerThreeBouncePlugin;
<commit_msg>fix paths for spinner plugin<commit_after>var BaseObject = require('../../base/base_object');
var Styler = require('../../base/styler');
var JST = require('../../base/jst');

var SpinnerThreeBouncePlugin = BaseObject.extend({
  pluginName: 'spinner_three_bounce',
  attributes: {
    "data-spinner":""
  },
  initialize: function(options) {
    this.template = JST[this.pluginName];
    this.listenTo(this.container, 'container:state:buffering', this.onBuffering);
    this.listenTo(this.container, 'container:state:bufferfull', this.onBufferFull);
    this.render();
  },
  onBuffering: function() {
    this.$el.show();
  },
  onBufferFull: function() {
    this.$el.hide();
  },
  render: function() {
    this.$el.hide();
    this.$el.html(this.template());
    var style = Styler.getStyleFor(this.pluginName);
    this.container.$el.append(style);
    this.container.$el.append(this.$el);
    return this;
  }
});

module.exports = SpinnerThreeBouncePlugin;

{'fraction_non_alphanumeric': 0.17795275590551182, 'fraction_numerical': 0.0, 'mean_word_length': 4.029023746701847, 'pattern_counts': {'":': 2, '<': 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': '357247', 'n_tokens_mistral': 630, 'n_tokens_neox': 625, 'n_words': 95}