original_docstring: 
          pop and return the value of root
          :return: the value of root
          
docstring: pop and return the value of root
docstring_tokens: pop and return the value of root
code: def extract(self):
          """
          pop and return the value of root
          :return: the value of root
          """
          if self._count<=0:
              raise Exception('The heap is empty!')
          value=self._elements[0]
          self._count-=1
          self._elements[0]=self._elements[self._count]
          self._siftdown(0)
          return value
code_tokens: def extract ( self ) : if self . _count <= 0 : raise Exception ( 'The heap is empty!' ) value = self . _elements [ 0 ] self . _count -= 1 self . _elements [ 0 ] = self . _elements [ self . _count ] self . _siftdown ( 0 ) return value
short_docstring: pop and return the value of root
short_docstring_tokens: pop and return the value of root
comment: """
          pop and return the value of root
          :return: the value of root
          """