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.

The number of commercial cases filed in federal court has fallen steadily each year since 2009, when 7,809 commercial cases were filed, according to the report. Brian Howard, associate general counsel and legal data scientist at Lex Machina, attributed the trend in part to business litigation reaching a high point around the 2009 economic crisis.