Human: What was the Hays Code? Assistant: 
The Hays Code was a set of guidelines for the production of motion pictures in the United States. It was established in 1930 by the Motion Picture Producers and Distributors of America (MPPDA), a trade association of Hollywood studios. The code was named after Will H. Hays, the president of the MPPDA.