Who know how this is determined.
To me it's based on the transaction at what price. If it is at the ask, I see that as a buy. If at the bid, I see that as a sell.
After all each transaction has a buyer and a seller. The MMs just confuse the issue, get rid of them and let the computer handle equal share amount trades or portions of a buy/sell trasactions.