GitHub Copilot, GitHub’s service that intelligently suggests lines of code, is now available in a plan for enterprises months after launching for individual users and educators.
Called GitHub Copilot for Business, the new plan, which costs $19 per user per month, comes with all the features in the single-license Copilot tier along with corporate licensing and policy controls. That includes a toggle that lets IT admins prevent suggested code that matches public code on GitHub from being shown to developers, a likely response to the intellectual property controversies brewing around Copilot.
Available as a downloadable extension for development environments, including Microsoft Visual Studio, Neovim and JetBrains, Copilot is powered by an AI model called Codex, developed by OpenAI, that’s trained on billions of lines of public code to suggest additional lines of code and functions given the context of existing code. Copilot — which had over 400,000 subscribers as of August — can surface a programming approach or solution in response to a description of what a developer wants to accomplish (e.g., “Say hello world”), drawing on its knowledge base and the current context.
GitHub claims that fair use — the doctrine in U.S. law that permits the use of copyrighted material without first having to obtain permission from the rights holder — protects it in the event that Copilot was knowingly or unknowingly developed against copyrighted code. But not everyone agrees. The Free Software Foundation, a nonprofit that advocates for the free software movement, has called Copilot “unacceptable and unjust.” And Microsoft, GitHub and OpenAI are being sued in a class action lawsuit that accuses them of violating copyright law by allowing Copilot to regurgitate sections of licensed code without providing credit.
GitHub’s attempt at rectifying this is a filter, first introduced to the Copilot platform in June, that checks code suggestions with their surrounding code of about 150 characters against public GitHub code and hides suggestions if there’s a match or “near match.” But it’s an imperfect measure. Tim Davis, a computer science professor at Texas A&M University, found that enabling the filter caused Copilot to emit large chunks of his copyrighted code, including all attribution and license text.
@github copilot, with “public code” blocked, emits large chunks of my copyrighted code, with no attribution, no LGPL license. For example, the simple prompt “sparse matrix transpose, cs_” produces my cs_transpose in CSparse. My code on left, github on right. Not OK. pic.twitter.com/sqpOThi8nf
— Tim Davis (@DocSparse) October 16, 2022
GitHub plans to introduce additional features in 2023 aimed at helping developers make informed decisions about whether to use Copilot’s suggestions, including the ability to identify strings matching public code with a reference to those repositories. And for GitHub Copilot for Business customers, GitHub claims it won’t retain code snippets for training or share code, regardless of whether the data comes from public repositories, private repositories, non-GitHub repositories or local files.
But it’s unclear whether those steps will be enough to allay companies’ fears over legal challenges.