> he testified that he didn't use this code
I read that as implying that the emails included code. As a developer, my emails have included code; and it's not so surprising that his emails would have included code when he was working with an external party.
> if it's a clean room implementation
It cannot be a clean room implementation if the same individual is involved in the creation of both instances.