original_docstring: Adds a num into the data structure.
          :type num: int
          :rtype: void
          
docstring: Adds a num into the data structure.
docstring_tokens: Adds a num into the data structure .
code: def addNum(self, num):
          """Adds a num into the data structure.
          :type num: int
          :rtype: void
          """
          # Balance smaller half and larger half.
          if not self.__max_heap or num > self.__min_heap[0]:
              heappush(self.__min_heap, num)
              if len(self.__min_heap) > len(self.__max_heap) + 1:
                  heappush(self.__max_heap, -heappop(self.__min_heap))
          else:
              heappush(self.__max_heap, -num)
              if len(self.__max_heap) > len(self.__min_heap):
                  heappush(self.__min_heap, -heappop(self.__max_heap))
code_tokens: def addNum ( self , num ) : if not self . __max_heap or num > self . __min_heap [ 0 ] : heappush ( self . __min_heap , num ) if len ( self . __min_heap ) > len ( self . __max_heap ) + 1 : heappush ( self . __max_heap , - heappop ( self . __min_heap ) ) else : heappush ( self . __max_heap , - num ) if len ( self . __max_heap ) > len ( self . __min_heap ) : heappush ( self . __min_heap , - heappop ( self . __max_heap ) )
short_docstring: Adds a num into the data structure.
short_docstring_tokens: Adds a num into the data structure .
comment: """Adds a num into the data structure.
          :type num: int
          :rtype: void
          """$SEP$# Balance smaller half and larger half.