<commit_before>"use strict";

angular.module('arethusa.hist').service('history', function(configurator) {
  this.conf = configurator.configurationFor('history');
  this.template = this.conf.template;
  this.maxSize = this.conf.maxSize || 20;
  this.main = this.conf.main;
  this.listener = this.conf.listener;

  /* global HistoryObj */
  var hist = new HistoryObj(this.maxSize);

  this.history = hist.elements;

  this.save = function(event) {
    hist.save(event);
  };

  this.undo = function() {
    hist.undo();
  };

  this.canBeUndone = function() {
    return hist.canBeUndone();
  };

  this.redo = function() {
    hist.redo();
  };

  this.canBeRedone = function() {
    return hist.canBeRedone();
  };

  this.catchEvent = this.save;
});<commit_msg>Formally declare name inside of hist service<commit_after>"use strict";

angular.module('arethusa.hist').service('history', function(configurator) {
  this.conf = configurator.configurationFor('history');
  this.template = this.conf.template;
  this.maxSize = this.conf.maxSize || 20;
  this.main = this.conf.main;
  this.listener = this.conf.listener;
  this.name = this.conf.name;

  /* global HistoryObj */
  var hist = new HistoryObj(this.maxSize);

  this.history = hist.elements;

  this.save = function(event) {
    hist.save(event);
  };

  this.undo = function() {
    hist.undo();
  };

  this.canBeUndone = function() {
    return hist.canBeUndone();
  };

  this.redo = function() {
    hist.redo();
  };

  this.canBeRedone = function() {
    return hist.canBeRedone();
  };

  this.catchEvent = this.save;
});
{'fraction_non_alphanumeric': 0.1608832807570978, 'fraction_numerical': 0.002523659305993691, 'mean_word_length': 3.4676056338028167, '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': '353490', 'n_tokens_mistral': 550, 'n_tokens_neox': 527, 'n_words': 92}