Very little of public Github is public domain. Public domain means that no ownership is asserted and any use is permissible. Most code on Github is free and open-source code, but with formal licenses that have rules stating what is and is not permissible. Often Apache or MIT, which are liberal in what users are permitted to do with the code but do not allow everything possible, and they still assert clear ownership over the source.
This turns out to be a major problem when using an LLM to generate code: If it's appropriating source code which has been licensed by the Gnu Public License (another of the more popular FOSS licenses, and possibly the most famous, at least within software development), the terms of the GPL encompass all the code that incorporates the GPL-licensed code, meaning that your software is now also GPL-licensed. Which is of no meaningful consequence when you're hacking up a shell script to do a convenient file management task on your personal computer, but it has severe consequences in a corporate environment.
At my last coding job, before ChatGPT existed, we had to have license reviews before every software release, to ensure that we had not incorporated any code that had a GPL or non-free commercial license. Senior developers and lawyers were involved. It was slow, annoying, and had hundreds of millions of dollars at stake (as one of those companies making huge corporate backend software, we were less bothered with the possibility of our code being made public than we were with our clients suddenly being able to use our work without paying us any more). ChatGPT does not cite its sources, so relying on it can be a bad idea with massive consequences.
Companies have been using private code repository services hosted by Github and its competitors for over a decade. It's a common and, as such things go, reasonably successful form of cloud services, and had justified its existence long before ChatGPT came into being. Github, which is owned by Microsoft, which also uses Github as their own private repo, should presumably know better than to allow LLMs to scrape private code, even if Microsoft is perfectly happy to allow LLMs free reign over all the public repos it hosts.
ChatGPT can learn from public Github code without using it in a design. AI can learn how you want layout, functions to look, order of the functions, etc from public domain code to write in the style of a person. And yes, there are also private Github areas that are not available to the public.
Security is a bag concern, but it’s common these days for companies to use Amazon or other file servers as well as things such as Amazon Workspace for consultants that they hire. That way consultants don’t have accounts on company systems.
Licensing must be resolved as you said. It is a can of worms that will be more easily resolved with time I hope. Code generated should also be partially attributed to the AI system that helped with the design. Easier to deal with if you are writing open source code. Some companies make their code open source so that you’ll buy their hardware. Microcontrollers are one example, you want open source libraries.
I’m still not comfortable with cloud based designs.
Last edited: