SAN FRANCISCO — The number of commercial lawsuits filed in federal court has slowly declined since 2009 but Greenberg Traurig has cleaned up by representing both plaintiffs and defendants, according to a new report by legal analytics firm Lex Machina.

The Commercial Litigation Report, released Thursday, is the first by the Menlo Park, California, company to offer a data-driven overview of business-to-business cases involving breach of contract and other business torts. Lex Machina has previously released similar reports about intellectual property and securities litigation, among other practice areas.