Stocks rise on corporate results, rising commodities