Teachers are well aware of the need to not discriminate by gender, but an undergraduate student? I was not the social butterfly I am now. I lacked the skills to untangle my own motivations. I don't recall collaborating with any female peers on anything technical until I started postgraduate study.
I don't have a solution. Just highlighting this as a problem.
See also: http://adainitiative.org/