Public code is searchable by anyone, but private code can only be searched by users who have access to it.