text: import git
  import json
  import psutil
  
  def commit_info(path_to_repo):
      repo = git.Repo.init(path_to_repo)
      return repo.commit().committed_datetime.isoformat(), str(repo.commit())
  
  
  def store_additional_data(rev, cdate, resources, filename):
      data = {
          'revision': rev,
          'softmasking': True,
          'commit_date': cdate,
          'resources': resources
      }
  
      with open(filename, 'w') as file:
          json.dump(data, file, indent=4)
  
  
  def check_memory():
      # startup memory check
      m = psutil.virtual_memory()
      print(f'Total memory: {m.total*10**(-9):.2f} GB')
      print(f'Currently used memory: {m.used*10**(-9):.2f} GB')
  