TheStreet.com Ratings provides exclusive stock, ETF and mutual fund ratings and commentary based on award-winning, proprietary tools. Its "safety first" approach to investing aims to reduce risk while seeking total return performance.

BOSTON (

TheStreet

) -- TheStreet.com's stock-rating model upgraded

Barrick Gold

(ABX)

to "buy."

The numbers

: Second-quarter net income rose 1% to $492 million, or 56 cents a share, as revenue grew 3% to $2 billion. Its gross margin fell from 53% to 49% and its operating margin rose from 30% to 31%. A quick ratio of 1.6 demonstrates ample liquidity. A debt-to-equity ratio of 0.3 is below the industry average, indicating restrained leverage.

The stock

: Barrick Gold is flat this year, lagging behind major U.S. indices. The stock trades at a price-to-earnings ratio of 50, a premium to the market and gold peers. Shares pay a 1.1% dividend yield.

The model upgraded

Anadarko Petroleum

(APC) - Get Report

to "buy."

The numbers

: The company swung to a second-quarter loss of $226 million, or 47 cents a share, from a profit of $23 million, or 3 cents a share, in the year-earlier period. Revenue fell 29% to $1.7 billion. Its gross margin rose from 53% to 56%, but its operating margin fell into negative territory. A quick ratio of 1.5 reflects ample liquidity. A debt-to-equity ratio of 0.7 demonstrates reasonable leverage.

The stock

: Anadarko Petroleum is up 63% this year, outpacing major U.S. indices. The stock trades at a price-to-earnings ratio of 12, a discount to the market and oil and gas peers. Shares pay a 0.6% dividend yield.

The model upgraded

CommVault Systems

(CVLT) - Get Report

, maker of data management software, to "buy."

The numbers

: Fiscal first-quarter net income dropped 30% to $2.4 million and earnings per share declined 25% to 6 cents. Revenue grew 10% to $60 million. Its gross margin remained steady at 86% and its operating margin climbed from 8% to 10%. A quick ratio of 1.9 and $119 million of cash demonstrate ample liquidity. The company holds no debt.

The stock

: CommVault is up 53% this year, outpacing major U.S. indices. The stock trades at a price-to-earnings ratio of 79, a premium to the market and systems software peers. The company does not pay dividends.

The model upgraded

Penn Virginia Resource Partners

(PVR)

, coal and natural gas seller, to "buy."

The numbers

: Second-quarter net income rose 41% to $13 million and earnings per share grew 30% to 13 cents, restrained by a higher share count. Revenue declined 46% to $149 million. Its gross margin rose from 23% to 31%, but its operating margin declined from 16% to 14%. A quick ratio of 1 reflects adequate liquidity. But a debt-to-equity ratio of 1.2 indicates higher-than-ideal leverage.

The stock

: Penn Virginia Resource Partners is up 53% this year, beating major U.S. indices. The stock trades at a price-to-earnings ratio of 14, a discount to the market and coal and consumable fuel peers. Shares pay a cash distribution yield of 11%. Cash distributions are taxed differently than dividends.

The model upgraded trucker

Werner Enterprises

(WERN) - Get Report

to "buy."

The numbers

: Second-quarter net income declined 30% to $13 million and earnings per share dropped 28% to 18 cents. Revenue fell 30% to $403 million. Its gross margin rose from 12% to 15% and its operating margin remained steady at 5%. The company has an ideal financial position, with $87 million of cash and no debt.

The stock

: Werner has ascended 10% this year, trailing major U.S. indices. The stock trades at a price-to-earnings ratio of 23, a premium to the market and trucking peers. Shares pay a dividend yield of 1.1%.

-- Reported by Jake Lynch in Boston.