The transportation bill contains a record 4,000 earmarks , which is an ignominious achievement for Republicans , '' said Representative Jeff Flake , Republican of Arizona , referring to the pet projects . ''