old_contents: """ Configuration of app.config dict
  """
  import os.path
  import logging
  log = logging.getLogger()
  
  # flask-sqlalchemy
  SQLALCHEMY_TRACK_MODIFICATIONS = False # explicitly remove deprecated feature
  
  # logging
  #path = app.config['LOGGING_PATH']
  #os.makedirs(path, exist_ok=True)
  #info_fh = RotatingFileHandler(os.path.join(path, 'mixmind.log'), maxBytes=10000000, backupCount=3)
  #info_fh.setFormatter(logging.Formatter('%(asctime)s %(levelname)s: %(message)s [in %(pathname)s:%(lineno)d]'))
  #info_fh.setLevel(logging.INFO)
  #log = logging.getLogger()
  
  # mix-mind
  MIXMIND_DIR = os.path.abspath(os.path.curdir)
  MIXMIND_RECIPES_DIR = os.path.join(MIXMIND_DIR, "recipes/")
  MIXMIND_INGREDIENTS_DIR = os.path.join(MIXMIND_DIR, "ingredients/")
  
  MIXMIND_DEFAULT_RECIPES = ["recipes_schubar.json", "IBA_all.json"]
  MIXMIND_DEFAULT_INGREDIENTS = ["12BBplus.csv"]
  
  def get_recipe_files():
      return get_checked_files(MIXMIND_RECIPES_DIR, MIXMIND_DEFAULT_RECIPES)
  
  def get_ingredient_files():
      return get_checked_files(MIXMIND_INGREDIENTS_DIR, MIXMIND_DEFAULT_INGREDIENTS)
  
  def get_checked_files(path, files):
      files = [os.path.join(path, f) for f in files]
      missing = {0}-{0}
      for f in files:
          if not os.path.isfile(f):
              missing.append(f)
              log.warning("{} not found, will be omitted".format(f))
      return list(set(files) - missing)
  
new_contents: """ Configuration of app.config dict
  """
  import os.path
  import logging
  log = logging.getLogger()
  
  # flask-sqlalchemy
  SQLALCHEMY_TRACK_MODIFICATIONS = False # explicitly remove deprecated feature
  
  # logging
  #path = app.config['LOGGING_PATH']
  #os.makedirs(path, exist_ok=True)
  #info_fh = RotatingFileHandler(os.path.join(path, 'mixmind.log'), maxBytes=10000000, backupCount=3)
  #info_fh.setFormatter(logging.Formatter('%(asctime)s %(levelname)s: %(message)s [in %(pathname)s:%(lineno)d]'))
  #info_fh.setLevel(logging.INFO)
  #log = logging.getLogger()
  
  # mix-mind
  MIXMIND_DIR = os.path.abspath(os.path.curdir)
  MIXMIND_RECIPES_DIR = os.path.join(MIXMIND_DIR, "recipes/")
  MIXMIND_INGREDIENTS_DIR = os.path.join(MIXMIND_DIR, "ingredients/")
  
  MIXMIND_DEFAULT_RECIPES = ["recipes_schubar.json", "IBA_all.json"]
  MIXMIND_DEFAULT_INGREDIENTS = ["12BBplus.csv"]
  
  def get_recipe_files():
      return get_checked_files(MIXMIND_RECIPES_DIR, MIXMIND_DEFAULT_RECIPES)
  
  def get_ingredient_files():
      return get_checked_files(MIXMIND_INGREDIENTS_DIR, MIXMIND_DEFAULT_INGREDIENTS)
  
  def get_checked_files(path, files):
      files = [os.path.join(path, f) for f in files]
      missing = {0}-{0}
      for f in files:
          if not os.path.isfile(f):
              missing.add(f)
              log.warning("{} not found, will be omitted".format(f))
      return list(set(files) - missing)
  
subject: Fix add not append to set