Let's suppose a developer writes software for a company which wants to open source the project. One might assume that the knowledge of the code being publicly available might have a psychological effect on the developer. This might lead him to writing higher quality code than if it was just an internal project where only a few members could read the code.
Are there studies that conclude such a behaviour or prove that this is not the case? I'm thinking of something like the Hawthorne Effect, where individuals modify their behaviour, because they are aware that they are under observation. In this case the individual is not under observation, but rather the result of his/her work.