original_docstring: 
      This is the main entry point for the program
      
docstring: This is the main entry point for the program
docstring_tokens: This is the main entry point for the program
code: def main():
      """
      This is the main entry point for the program
      """
      # Create the queue of work
      work_queue = queue.Queue()
  
      # Put some work in the queue
      for work in [15, 10, 5, 2]:
          work_queue.put(work)
  
      tasks = [task("One", work_queue), task("Two", work_queue)]
  
      # Run the tasks
      done = False
      with Timer(text="\nTotal elapsed time: {:.1f}"):
          while not done:
              for t in tasks:
                  try:
                      next(t)
                  except StopIteration:
                      tasks.remove(t)
                  if len(tasks) == 0:
                      done = True
code_tokens: def main ( ) : work_queue = queue . Queue ( ) for work in [ 15 , 10 , 5 , 2 ] : work_queue . put ( work ) tasks = [ task ( "One" , work_queue ) , task ( "Two" , work_queue ) ] done = False with Timer ( text = "\nTotal elapsed time: {:.1f}" ) : while not done : for t in tasks : try : next ( t ) except StopIteration : tasks . remove ( t ) if len ( tasks ) == 0 : done = True
short_docstring: This is the main entry point for the program
short_docstring_tokens: This is the main entry point for the program
comment: """
      This is the main entry point for the program
      """$SEP$# Create the queue of work$SEP$# Put some work in the queue$SEP$# Run the tasks