def gc_runner(self):
    logging.debug("Starting GC thread.")

    while self.gc_running:
      # Scan each application's last GC time.
      try:
        app_list = self.run_with_retry(self.handle.get_children, APPS_PATH)

        for app in app_list:
          app_id = urllib.unquote_plus(app)
          # App is already encoded, so we should not use
          # self.get_app_root_path.
          app_path = PATH_SEPARATOR.join([APPS_PATH, app])
          self.try_garbage_collection(app_id, app_path)
      except kazoo.exceptions.NoNodeError:
        # There were no nodes for this application.
        pass
      except kazoo.exceptions.OperationTimeoutError as ote:
        logging.warning("GC operation timed out while trying to get {0}"\
          " with {1}".format(APPS_PATH, str(ote)))
      except kazoo.exceptions.ZookeeperError as zk_exception:
        logging.exception(zk_exception)
        self.reestablish_connection()
      except kazoo.exceptions.KazooException as kazoo_exception:
        logging.exception(kazoo_exception)
        self.reestablish_connection()
      except Exception as exception:
        logging.error("UNKNOWN EXCEPTION")
        logging.exception(exception)
        self.reestablish_connection()

      with self.gc_cv:
        self.gc_cv.wait(GC_INTERVAL)

    logging.debug("Stopping GC thread.")
- Domain = union([e.free()|e.constants() for e in all_expressions])
dataset/ETHPy150Open AppScale/appscale/AppDB/zkappscale/zktransaction.py/ZKTransaction.gc_runner--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/inference/nonmonotonic.py/UniqueNamesProver.assumptions