Silicon Valley technology firms have had serious problems with demographic diversity, including accusations of hostile climates toward women and minority employees. A new analysis of company-level employment data I helped conduct finds, however, that some firms seem to have figured out how to create more diverse workplaces.