original_docstring:  If a thread is querying the log files for live data, then block until task clears. 
docstring: If a thread is querying the log files for live data, then block until task clears.
docstring_tokens: If a thread is querying the log files for live data then block until task clears .
code: def _wait_for_thread(self):
          """ If a thread is querying the log files for live data, then block until task clears. """
          while True:
              if self._is_training and self._is_querying.is_set():
                  logger.debug("Waiting for available thread")
                  time.sleep(1)
                  continue
              break
code_tokens: def _wait_for_thread ( self ) : while True : if self . _is_training and self . _is_querying . is_set ( ) : logger . debug ( "Waiting for available thread" ) time . sleep ( 1 ) continue break
short_docstring: If a thread is querying the log files for live data, then block until task clears.
short_docstring_tokens: If a thread is querying the log files for live data then block until task clears .
comment: """ If a thread is querying the log files for live data, then block until task clears. """