I'm considering going back into school to get my graduate degree. A large part of my decision is the ability to Open Source all of my code. I'm really not familiar how the idea of IP reconciles itself with University as a concept, my experiences lie in corporate environments, where IP is a closely guarded secret. From what I've seen Open Source as an idea isn't yet a large part of the research process, though the process has increased in popularity considerably.
If I were to attempt to publish research to a journal where the research relies heavily on code, what challenges would I face if I made my code open source? Would there be any additional challenges if I shipped the examples from the paper in the source? What if I put the paper itself into the project as part of the source (IE releasing it under a copyleft license)?