input: from typing import List
  
  class VersionControl:
      def __init__(self, lines: List[str]):
          self.lines = lines
          self.mark = 0
   
      def commit(self) -> None:
          self.mark += 1
          log_file = open("log_file.txt", "a+")
          log_file.write(str(self.mark) + ": " + str(self.lines))
          log_file.close()
   
      def restore(self) -> List[str]:
          log_file = open("log_file.txt", "r")
          lines = log_file.readlines()
          to_mark = self.mark-1
   
          self.lines = lines[to_mark]
          log_file.close()
          return self.lines
  
  # Example test case:
  # >>> vc = VersionControl(['print("Hello")', 'print("World")'])
  # >>> vc.commit()
  # >>> vc.lines.append('print("Python")')
  # >>> vc.commit()
  # >>> vc.restore()
  # ['print("Hello")', 'print("World")']
  
output:     def restore(self) -> List[str]:
          log_file = open("log_file.txt", "r")
          lines = log_file.readlines()
          to_mark = self.mark-1
          
          if to_mark >= 0 and to_mark < len(lines):
              self.lines = eval(lines[to_mark].split(": ")[1])
          else:
              self.lines = []
          
          log_file.close()
          return self.lines