Software:GitHub Copilot

From HandWiki
Short description: Artificial intelligence tool
GitHub Copilot
GitHub Copilot logo.svg
Developer(s)GitHub, OpenAI
Initial releaseOctober 2021; 2 years ago (2021-10)
Stable release
1.7.4421
Operating systemMicrosoft Windows, Linux, macOS, Web
Websitecopilot.github.com

GitHub Copilot (not to be confused with "Copilot X", the name of GitHub's "vision" for next-gen Copilot features[1]) is a cloud-based artificial intelligence tool developed by GitHub (owned by Microsoft) and OpenAI (49% owned by Microsoft) to assist users of Visual Studio Code, Visual Studio, Neovim, and JetBrains integrated development environments (IDEs) by autocompleting code.[2] Currently available by subscription to individual developers and to businesses, the tool was first announced by GitHub on 29 June 2021, and works best for users coding in Python, JavaScript, TypeScript, Ruby, and Go.[3]

History

On June 29, 2021, GitHub announced GitHub Copilot for technical preview in the Visual Studio Code development environment.[2][4] GitHub Copilot was released as a plugin on the JetBrains marketplace on October 29, 2021.[5] October 27, 2021, GitHub released the GitHub Copilot Neovim plugin as a public repository.[6] GitHub announced Copilot's availability for the Visual Studio 2022 IDE on March 29, 2022.[7] On June 21, 2022, GitHub announced that Copilot was out of "technical preview", and is available as a subscription-based service for individual developers.[8]

GitHub Copilot is the evolution of the 'Bing Code Search' plugin for Visual Studio 2013, which was a Microsoft Research project released in February 2014.[9] This plugin integrated with various sources, including MSDN and StackOverflow, to provide high-quality contextually relevant code snippets in response to natural language queries.[10]

Features

When provided with a programming problem in natural language, Copilot is capable of generating solution code.[11] It is also able to describe input code in English and translate code between programming languages.[11]

According to its website, GitHub Copilot includes assistive features for programmers, such as the conversion of code comments to runnable code, and autocomplete for chunks of code, repetitive sections of code, and entire methods and/or functions.[3][12] GitHub reports that Copilot’s autocomplete feature is accurate roughly half of the time; with some Python function header code, for example, Copilot correctly autocompleted the rest of the function body code 43% of the time on the first try and 57% of the time after ten attempts.[3]

GitHub states that Copilot’s features allow programmers to navigate unfamiliar coding frameworks and languages by reducing the amount of time users spend reading documentation.[3]

Implementation

GitHub Copilot is powered by the OpenAI Codex,[13] which is a modified, production version of the Generative Pre-trained Transformer 3 (GPT-3), a language model using deep-learning to produce human-like text.[14] The Codex model is additionally trained on gigabytes of source code in a dozen programming languages.

Copilot’s OpenAI Codex is trained on a selection of the English language, public GitHub repositories, and other publicly available source code.[3] This includes a filtered dataset of 159 gigabytes of Python code sourced from 54 million public GitHub repositories.[15]

OpenAI’s GPT-3 is licensed exclusively to Microsoft, GitHub’s parent company.[16]

Reception

Since Copilot's release, there have been concerns with its security and educational impact, as well as licensing controversy surrounding the code it produces.[17][11][18]

Licensing controversy

While GitHub CEO Nat Friedman stated in June 2021 that "training ML systems on public data is fair use",[19] a class-action lawsuit filed in November 2022 called this "pure speculation", asserting that "no Court has considered the question of whether 'training ML systems on public data is fair use.'"[20] The lawsuit from Joseph Saveri Law Firm, LLP challenges the legality of Copilot on several claims, ranging from breach of contract with GitHub's users, to breach of privacy under the CCPA for sharing PII.[21][20]

GitHub admits that a small proportion of the tool's output may be copied verbatim, which has led to fears that the output code is insufficiently transformative to be classified as fair use and may infringe on the copyright of the original owner.[17] In June 2022, the Software Freedom Conservancy announced it would end all uses of GitHub in its own projects,[22] accusing Copilot of ignoring code licenses used in training data.[23] In a customer-support message, GitHub stated that "training machine learning models on publicly available data is considered fair use across the machine learning community",[20] but the class action lawsuit called this "false" and additionally noted that "regardless of this concept's level of acceptance in 'the machine learning community,' under Federal law, it is illegal".[20]

FSF white papers

On July 28 2021, the Free Software Foundation (FSF) published a funded call for white papers on philosophical and legal questions around Copilot.[24] Donald Robertson, the Licensing and Compliance Manager of the FSF, stated that "Copilot raises many [...] questions which require deeper examination."[24] On February 24, 2022, the FSF announced they had received 22 papers on the subject and using an anonymous review process chose 5 papers to highlight.[25]

Privacy concerns

The Copilot service is cloud-based and requires continuous communication with the GitHub Copilot servers.[26] This opaque architecture has fueled concerns over telemetry and data mining of individual keystrokes.[27][28]

Security concerns

A paper accepted for publication in the IEEE Symposium on Security and Privacy in 2022 assessed the security of code generated by Copilot for the MITRE’s top 25 code weakness enumerations (e.g., cross-site scripting, path traversal) across 89 different scenarios and 1,689 programs.[18] This was done along the axes of diversity of weaknesses (its ability to respond to scenarios that may lead to various code weaknesses), diversity of prompts (its ability to respond to the same code weakness with subtle variation), and diversity of domains (its ability to generate register transfer level hardware specifications in Verilog).[18] The study found that across these axes in multiple languages, 39.33% of top suggestions and 40.73% of total suggestions led to code vulnerabilities. Additionally, they found that small, non-semantic (i.e., comments) changes made to code could impact code safety.[18]

Education concerns

A February 2022 paper released by the Association for Computing Machinery evaluates the impact Codex, the technology used by Github Copilot, may have on the education of novice programmers.[11] The study utilizes assessment questions from an introductory programming class at The University of Auckland and compares Codex’s responses with student performance.[11] Researchers found that Codex, on average, performed better than most students; however, its performance decreased on questions that limited what features could be used in the solution (e.g., conditionals, collections, and loops).[11] Given this type of problem, "only two of [Codex’s] 10 solutions produced the correct output, but both [...] violated [the] constraint." The paper concludes that Codex may be useful in providing a variety of solutions to learners, but may also lead to over-reliance and plagiarism.[11]

See also

References

  1. "GitHub Copilot gets a new ChatGPT-like assistant to help developers write and fix code". 22 March 2023. https://www.theverge.com/2023/3/22/23651456/github-copilot-x-gpt-4-code-chat-voice-support. 
  2. 2.0 2.1 Gershgorn, Dave (29 June 2021). "GitHub and OpenAI launch a new AI tool that generates its own code" (in en-US). https://www.theverge.com/2021/6/29/22555777/github-openai-ai-tool-autocomplete-code. 
  3. 3.0 3.1 3.2 3.3 3.4 "GitHub Copilot · Your AI pair programmer" (in en-US). https://copilot.github.com/. 
  4. "Introducing GitHub Copilot: your AI pair programmer" (in en-US). 29 June 2021. https://github.blog/2021-06-29-introducing-github-copilot-ai-pair-programmer/. 
  5. "GitHub Copilot - IntelliJ IDEs Plugin | Marketplace". https://plugins.jetbrains.com/plugin/17718-github-copilot/versions/stable. 
  6. Copilot.vim, GitHub, 7 April 2022, https://github.com/github/copilot.vim, retrieved 7 April 2022 
  7. "GitHub Copilot now available for Visual Studio 2022" (in en-US). 29 March 2022. https://github.blog/2022-03-29-github-copilot-now-available-for-visual-studio-2022/. 
  8. "GitHub Copilot is generally available to all developers" (in en-US). 21 June 2022. https://github.blog/2022-06-21-github-copilot-is-generally-available-to-all-developers/. 
  9. Lardinois, Frederic (2014-02-17). "Microsoft Launches Smart Visual Studio Add-On For Code Snippet Search" (in en-US). https://techcrunch.com/2014/02/17/microsoft-launches-smart-visual-studio-add-on-for-code-snippet-search/. 
  10. "Bing Code Search" (in en-US). 2014-02-11. https://www.microsoft.com/en-us/research/video/bing-code-search/. 
  11. 11.0 11.1 11.2 11.3 11.4 11.5 11.6 Finnie-Ansley, James; Denny, Paul; Becker, Brett A.; Luxton-Reilly, Andrew; Prather, James (14 February 2022). "The Robots Are Coming: Exploring the Implications of OpenAI Codex on Introductory Programming" (in en-US). Australasian Computing Education Conference. ACE '22. New York, NY, USA: Association for Computing Machinery. pp. 10–19. doi:10.1145/3511861.3511863. ISBN 978-1-4503-9643-1. 
  12. Sobania, Dominik; Schweim, Dirk; Rothlauf, Franz (2022). "A Comprehensive Survey on Program Synthesis with Evolutionary Algorithms". IEEE Transactions on Evolutionary Computation 27: 82–97. doi:10.1109/TEVC.2022.3162324. ISSN 1941-0026. https://ieeexplore.ieee.org/document/9743417. 
  13. Krill, Paul (12 August 2021). "OpenAI offers API for GitHub Copilot AI model" (in en). https://www.infoworld.com/article/3629469/openai-offers-api-for-github-copilot-ai-model.html. 
  14. "OpenAI Releases GPT-3, The Largest Model So Far" (in en-US). 3 June 2020. https://analyticsindiamag.com/open-ai-gpt-3-language-model/. 
  15. "OpenAI Announces 12 Billion Parameter Code-Generation AI Codex" (in en). https://www.infoq.com/news/2021/08/openai-codex/. 
  16. "OpenAI is giving Microsoft exclusive access to its GPT-3 language model" (in en). https://www.technologyreview.com/2020/09/23/1008729/openai-is-giving-microsoft-exclusive-access-to-its-gpt-3-language-model/. 
  17. 18.0 18.1 18.2 18.3 Pearce, Hammond; Ahmad, Baleegh; Tan, Benjamin; Dolan-Gavitt, Brendan; Karri, Ramesh (16 December 2021). "Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributions". arXiv:2108.09293 [cs.CR].
  18. Nat Friedman [@natfriedman]. "In general: (1) training ML systems on public data is fair use" (in en). https://twitter.com/natfriedman/status/1409914420579344385.  Missing or empty |date= (help)
  19. 20.0 20.1 20.2 20.3 Butterick, Matthew (November 3, 2022). "GitHub Copilot litigation". Joseph Saveri Law Firm. https://githubcopilotlitigation.com/. 
  20. Vincent, James (2022-11-08). "The lawsuit that could rewrite the rules of AI copyright" (in en-US). https://www.theverge.com/2022/11/8/23446821/microsoft-openai-github-copilot-class-action-lawsuit-ai-copyright-violation-training-data. 
  21. "Give Up GitHub: The Time Has Come!" (in en). https://sfconservancy.org/blog/2022/jun/30/give-up-github-launch/. 
  22. "If Software is My Copilot, Who Programmed My Software?" (in en). https://sfconservancy.org/blog/2022/feb/03/github-copilot-copyleft-gpl/. 
  23. 24.0 24.1 "FSF-funded call for white papers on philosophical and legal questions around Copilot". Free Software Foundation. 28 July 2021. https://www.fsf.org/blogs/licensing/fsf-funded-call-for-white-papers-on-philosophical-and-legal-questions-around-copilot. 
  24. "Publication of the FSF-funded white papers on questions around Copilot". Free Software Foundation. 24 February 2022. https://www.fsf.org/news/publication-of-the-fsf-funded-white-papers-on-questions-around-copilot. 
  25. "GitHub Copilot - Your AI pair programmer". https://github.com/features/copilot/#faq-privacy. 
  26. "CoPilot: Privacy & DataMining". https://github.com/community/community/discussions/7263. 
  27. Stallman, Richard. "Who does that server really serve?". https://www.gnu.org/philosophy/who-does-that-server-really-serve.en.html. 

External links