The law is kinda weak. You really only need to slightly modify it for it to be copyrightable. No one really pushes full ChatGPT outputs as production code, and so it’s safe to assume code can almost always be copyrighted, as long as you did something yourself
You should look up the Zaria of the Dawn case. You need to make more than inconsequential edits for it to be copyrightable, and even then, only your edits are copyrightable.
The law is kinda weak. You really only need to slightly modify it for it to be copyrightable. No one really pushes full ChatGPT outputs as production code, and so it’s safe to assume code can almost always be copyrighted, as long as you did something yourself
You should look up the Zaria of the Dawn case. You need to make more than inconsequential edits for it to be copyrightable, and even then, only your edits are copyrightable.