original_docstring: 
          Pops the most recent command request off the queue, removes
          any duplicates of this request from the queue and executes
          the request. Sleeps for 10ms between queue checks.
          
docstring: Pops the most recent command request off the queue, removes
  any duplicates of this request from the queue and executes
  the request. Sleeps for 10ms between queue checks.
docstring_tokens: Pops the most recent command request off the queue removes any duplicates of this request from the queue and executes the request . Sleeps for 10ms between queue checks .
code: def run(self):
          """
          Pops the most recent command request off the queue, removes
          any duplicates of this request from the queue and executes
          the request. Sleeps for 10ms between queue checks.
          """
          while (self.running):
              self.buffer_mutex.lock()
              if (len(self.command_buffer) > 0):
                  [channel, amplitude] = self.command_buffer.pop()
                  self.command_buffer = removeChannelDuplicates(self.command_buffer, channel)
                  self.buffer_mutex.unlock()
                  self.deviceSetAmplitude(channel, amplitude)
              else:
                  self.buffer_mutex.unlock()
              self.msleep(10)
code_tokens: def run ( self ) : while ( self . running ) : self . buffer_mutex . lock ( ) if ( len ( self . command_buffer ) > 0 ) : [ channel , amplitude ] = self . command_buffer . pop ( ) self . command_buffer = removeChannelDuplicates ( self . command_buffer , channel ) self . buffer_mutex . unlock ( ) self . deviceSetAmplitude ( channel , amplitude ) else : self . buffer_mutex . unlock ( ) self . msleep ( 10 )
short_docstring: Pops the most recent command request off the queue, removes
  any duplicates of this request from the queue and executes
  the request.
short_docstring_tokens: Pops the most recent command request off the queue removes any duplicates of this request from the queue and executes the request .
comment: """
          Pops the most recent command request off the queue, removes
          any duplicates of this request from the queue and executes
          the request. Sleeps for 10ms between queue checks.
          """