original_docstring: Maxheap version of a heappop followed by a heappush.
docstring: Maxheap version of a heappop followed by a heappush.
docstring_tokens: Maxheap version of a heappop followed by a heappush .
code: def _heapreplace_max(heap, item):
      """Maxheap version of a heappop followed by a heappush."""
      returnitem = heap[0]    # raises appropriate IndexError if heap is empty
      heap[0] = item
      _siftup_max(heap, 0)
      return returnitem
code_tokens: def _heapreplace_max ( heap , item ) : returnitem = heap [ 0 ] heap [ 0 ] = item _siftup_max ( heap , 0 ) return returnitem
short_docstring: Maxheap version of a heappop followed by a heappush.
short_docstring_tokens: Maxheap version of a heappop followed by a heappush .
comment: """Maxheap version of a heappop followed by a heappush."""$SEP$# raises appropriate IndexError if heap is empty