Probably wrong granularity; we would likely have to wait a bit for this detailed ML. But you can make various groups that follow certain "ideology" and see which ones thrive under what circumstances/in what kind of environment or not. Kinda like A/B testing but internally on their own coders. Then you can view e.g. maintenance costs (that might be your code quality metrics aggregated over time) etc. If there is one company that can pull this off, it's Google. I would be very interested in results to be honest. Then this could be generalized for governments and provide fact-based guidelines on how to govern well.