<commit_before>/**
 * HistoryManager helps to keep track of the navigation
 *
 * @namespace Barba.Pjax.HistoryManager
 */
var HistoryManager = {
  /**
   * Keep track of the states in historic order
   * @memberOf Barba.Pjax.HistoryManger
   * @type {Array}
   */
  states: [],

  /**
   * Add a new set of url and namespace
   * @param {String} url
   * @param {String} [namespae] namespace
   */
  add: function(url, namespace) {
    if (!namespace)
      namespace = undefined;

    this.states.push({
      url: url,
      namespace: namespace
    });
  },

  /**
   * [currentStatus description]
   * @return {Object} [description]
   */
  currentStatus: function() {
    return this.states[this.states.length - 1];
  },

  /**
   * Return the last url from states
   * @return {String} currentUrl
   */
  currentUrl: function() {
    return this.currentStatus.url;
  },

  /**
   * [currentNamespace description]
   * @return {String} currentNamespace
   */
  currentNamespace: function() {
    return this.currentStatus.namespace;
  },

  /**
   * [prevStatus description]
   * @return {Object} [description]
   */
  prevStatus: function() {
    var states = this.states;

    if (states.length < 2)<commit_msg>Remove unused methods<commit_after>/**
 * HistoryManager helps to keep track of the navigation
 *
 * @namespace Barba.Pjax.HistoryManager
 */
var HistoryManager = {
  /**
   * Keep track of the states in historic order
   * @memberOf Barba.Pjax.HistoryManger
   * @type {Array}
   */
  states: [],

  /**
   * Add a new set of url and namespace
   * @param {String} url
   * @param {String} [namespae] namespace
   */
  add: function(url, namespace) {
    if (!namespace)
      namespace = undefined;

    this.states.push({
      url: url,
      namespace: namespace
    });
  },

  /**
   * [currentStatus description]
   * @return {Object} [description]
   */
  currentStatus: function() {
    return this.states[this.states.length - 1];
  },

  /**
   * [prevStatus description]
   * @return {Object} [description]
   */
  prevStatus: function() {
    var states = this.states;

    if (states.length < 2)
{'fraction_non_alphanumeric': 0.13540197461212977, 'fraction_numerical': 0.0018805829807240243, 'mean_word_length': 2.7008695652173915, 'pattern_counts': {'":': 0, '<': 5, '<?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': '211093', 'n_tokens_mistral': 666, 'n_tokens_neox': 648, 'n_words': 175}