Does any university require students to release their source code in order to graduate? I wonder whether there is any university that requires students to release their source code (or at least part of it) in order to obtain their PhD.
Note: My answer pertains to schools in the US.


  Does any university require students to release their source code in order to graduate?


It depends on what you mean by "university." That is, I think there are fundamentally two different interpretations of your question. Since OP has not yet provided clarification, here goes ...

Interpretation #1

If what you want to know is:


  Are there dissertation committees which require students to release their source code in order to obtain approval of their dissertation? 


The answer to this variant of the question is yes, this is fairly common in the engineering departments I am familiar with. Typically what is done if source code is required by the dissertation committee is that it is included in the dissertation appendix. Other alternatives include placing the source code online and citing it in the dissertation (e.g., placing the code on GitHub).

Interpretation #2

If, on the other hand, what you want to know is:


  Are there universities which adopt a university-wide requirement for students to release their source code in order to obtain approval of their dissertation? 


The answer to this variant is (most likely) no.