<commit_before>"use strict";

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

  /* global HistoryObj */
  this.history = new HistoryObj(this.maxSize);
  this.position = 0;

  this.save = function(target, property, oldVal, newVal) {
    this.history.unshift([target, property, oldVal, newVal]);
  };<commit_msg>Avoid circular dependency in history<commit_after>"use strict";

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

  /* global HistoryObj */
  this.history = new HistoryObj(this.maxSize);
  this.position = 0;

  this.save = function(target, property, oldVal, newVal) {
    this.history.unshift([target, property, oldVal, newVal]);
  };
{'fraction_non_alphanumeric': 0.14948453608247422, 'fraction_numerical': 0.006185567010309278, 'mean_word_length': 4.920731707317073, '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': '5869384', 'n_tokens_mistral': 310, 'n_tokens_neox': 297, 'n_words': 59}