original_docstring: Starts a simspark instance as separate process and waits until it is completely started.
docstring: Starts a simspark instance as separate process and waits until it is completely started.
docstring_tokens: Starts a simspark instance as separate process and waits until it is completely started .
code: def __start_application(self):
          """Starts a simspark instance as separate process and waits until it is completely started."""
          if self.__start_instance:
              logging.info('Start Simspark')
              self.__p = subprocess.Popen([self.app], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
              # wait until nothing is printed by simspark anymore
              l = [0, 1]
              while l[0] != l[1]:
                  l = [l[1], len(self.__p.stdout.peek())]
                  time.sleep(0.25)
              logging.info('Simspark started')
          else:
              logging.info('No instance of Simspark started!')
code_tokens: def __start_application ( self ) : if self . __start_instance : logging . info ( 'Start Simspark' ) self . __p = subprocess . Popen ( [ self . app ] , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) l = [ 0 , 1 ] while l [ 0 ] != l [ 1 ] : l = [ l [ 1 ] , len ( self . __p . stdout . peek ( ) ) ] time . sleep ( 0.25 ) logging . info ( 'Simspark started' ) else : logging . info ( 'No instance of Simspark started!' )
short_docstring: Starts a simspark instance as separate process and waits until it is completely started.
short_docstring_tokens: Starts a simspark instance as separate process and waits until it is completely started .
comment: """Starts a simspark instance as separate process and waits until it is completely started."""$SEP$# wait until nothing is printed by simspark anymore