In the UK government, before programming was considered a high-value skill, the vast majority of programmers were women. So much so that programming was measured in girl hours (which were paid less than man hours).
When it became clear that programming was going to be a big deal, women were systematically excluded, flipping the gender balance (although they had trouble hiring initially because men saw it as lesser work).