input: from typing import List
  
  
  class VersionControl:
      """Implement a basic version control system that keeps track of changes in the code.
      This class should allow committing the current state of the code and restoring to a previous state.
  
      Example usage:
      >>> vc = VersionControl("Initial line")
      >>> vc.commit()
      >>> vc.lines = "Changed line"
      >>> vc.commit()
      >>> vc.restore()
      >>> vc.lines
      'Changed line'
      """
  
      def __init__(self, lines: str):
          self.lines = lines
          self.mark = 0
  
      def commit(self):
          self.mark += 1
          log_file = open("log_file.txt", "a+")
          log_file.write(str(self.mark) + ": " + str(self.lines) + "\n")
          log_file.close()
  
      def restore(self):
          log_file = open("log_file.txt", "r")
          lines = log_file.readlines()
          to_mark = self.mark-1
  
          if to_mark >= 0:
              self.lines = lines[to_mark].split(": ")[1].strip()
          log_file.close()
output:     
      def rollback(self):
          log_file = open("log_file.txt", "r")
          lines = log_file.readlines()
          log_file.close()
          if self.mark > 1:
              self.mark -= 1
              self.lines = lines[self.mark-1].split(": ")[1].strip()
  
      def get_history(self):
          log_file = open("log_file.txt", "r")
          history = log_file.readlines()
          log_file.close()
          return [line.strip() for line in history]
  