Most people license out the software under specific requirements and prohibitions. BSD requires attribution. GPL variants require adherence to copyleft when distributing derivative works. A little under half of all github repos don't even have a license, which means that though the source is published, no one has any license under which to copy it or derive new works from it.
So far as I have seen, whether aggregating and munging these works into abstract LLM weights constitutes fair use is still legally unclear. If not deemed fair use, it is almost certainly a massive violation of copyright.
If you don't want your code to be used as possible inspiration, then you are not actually for open source, and are using the wrong license. The licenses are legal bindings, not moral bindings.
"Don't use any concept found within this code" would be a license that doesn't really fit with any current copyright law, and it wouldn't allow any software to exist, except that made in the 70's.
That is, they knowingly and willingly broke the law by stealing an unprecedented volume of proprietary, copyrighted materials.
Books: Bartz v. Anthropic
Films and TV: Disney Enterprises Inc. v. Midjourney Inc.
Music: Concord Music Group, Inc. v. Anthropic
Photography: Getty Images v Stability AI
Journalism: Postmedia Network Inc., Torstar Corporation, The Globe and Mail Inc., and The Canadian Press v. Anthropic PBC
[0] https://en.wikipedia.org/wiki/Grand_Upright_Music%2C_Ltd._v.....
Or at least just childishly naive for failing to notice that beforehand.
The point of the open source I work on is to contribute to a commons, not to have it stolen so that it can be used to destroy those commons, used for the profit of techbros, and used to justify the murder of children.