<commit_before>Serializable = require 'serializable'
Transaction = require './transaction'
BufferPatch = require './buffer-patch'
Checkpoint = require './checkpoint'
{last} = require 'underscore-plus'

TransactionAborted = new Error("Transaction Aborted")

# Manages undo/redo for {TextBuffer}
module.exports =
class History extends Serializable
  @registerDeserializers(Transaction, BufferPatch)

  currentTransaction: null
  transactionDepth: 0
  transactCallDepth: 0<commit_msg>Add serialization version to History<commit_after>Serializable = require 'serializable'
Transaction = require './transaction'
BufferPatch = require './buffer-patch'
Checkpoint = require './checkpoint'
{last} = require 'underscore-plus'

TransactionAborted = new Error("Transaction Aborted")

# Manages undo/redo for {TextBuffer}
module.exports =
class History extends Serializable
  @version: 1
  @registerDeserializers(Transaction, BufferPatch)

  currentTransaction: null
  transactionDepth: 0
  transactCallDepth: 0
{'fraction_non_alphanumeric': 0.0940940940940941, 'fraction_numerical': 0.005005005005005005, 'mean_word_length': 6.299270072992701, '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': '2440492', 'n_tokens_mistral': 273, 'n_tokens_neox': 261, 'n_words': 77}