code itself cannot show intent. the code is executed when the person chooses to run it to fulfill their intent which can be judged to be bad in hindsight if it caused harm to others.
a gun by itself doesn't show intent to commit assassinations. only when it's taken by a revolutionary and aimed at the heart of capitalist pigs will the intent be realized.
the gun maker cannot be held responsible for creating a device that intended to kill someone important.