The reason for the somewhat balanced gender ratio here is much more mundane than what these articles would make you believe.
In India, engineering is one of the "default" career paths for most poor/middle class families children for leading a stable life. It's pretty depressing honestly, children spend the first 20-22 years of their life being a book-worm and they get to choose from a set of "acceptable" careers (Engineering, Medicine, Business). Any unorthodox career paths are out of question unless you are the rebellious kind.
What effect does this have on the workforce? You get people (both men and women) who are barely interested in what they do. Programming/Computers doesn't mean anything to them, it's just a day job which helps them provide for themselves. This is the main differentiation between the US/European workforce and ours. It's not that women here enter the CS industry in greater numbers because of their own interest in the field, it's just that nobody gives a shit about it so the ratio is equal. This is the case with the service based companies which comprise a huge portion of the workforce. The number of women in startups (which people join on their own volition) is comparable to the US counterparts. The current company where I work, out of ~60 engineers, 4 are women.
In US/Europe, you have greater freedom and choice when you consider your career, which you generally choose based on your own interests. IMO, inculcating tech/computers as a hobby at a young age in girls and dispelling the fact that it's only for "nerds" will do a lot more to equal the numbers than any affirmative action hiring ever will.