Github Copilot
本文最后更新于:2023年4月28日 07:58
Introduction
GitHub Copilot is a cloud-based artificial intelligence tool developed by GitHub and OpenAI to assist users of Visual Studio Code, Visual Studio, Neovim, and JetBrains integrated development environments (IDEs) by autocompleting code.
GitHub Copilot is powered by the OpenAI Codex, 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. The Codex model is additionally trained on gigabytes of source code in a dozen programming languages.
When provided with a programming problem in natural language, Codex is capable of generating solution code. It is also able to describe input code and translate code between programming languages.
Usage
1. Generate code
2. Generate comment
3. Generate content
4. Write comment to generate code
5. Write code with context
6. Write algorithmic function
7. Translate code between programming languages
8. Translate content
GitHub Copilot Labs
1. Explain code
2. Use prompt to generate answers like ChatGPT
3. Translate code into other programming languages
4. Readable
- Before
- After
5. Add types
- Before
- After
6. And so on
GitHub Copilot X
With chat and terminal interfaces, support for pull requests, and early adoption of OpenAI’s GPT-4, GitHub Copilot X is our vision for the future of AI-powered software development. Integrated into every part of your workflow.
link: GitHub Copilot X
Privacy Statement
link: GitHub Copilot for Business Privacy Statement
Specific Terms
link: GitHub Copilot Product Specific Terms
Questions
1. What data does Copilot for Business collect?
GitHub Copilot for Business relies on file content and additional data to work. It collects data to provide the service, some of which is then retained for further analysis and product improvements.
Copilot for Business processes data as described below:
Prompts
A Prompt is the contextual information the GitHub Copilot extension sends when a user is working on a file and pauses typing, or when the user opens the Copilot pane. Copilot for Business Prompts are only transmitted in real-time. Copilot for Business does not retain Prompts.
Suggestions
A Suggestion is one or more lines of proposed text returned to the GitHub Copilot extension after a Prompt is received and processed by the AI-model. Copilot for Business Suggestions are only transmitted in real-time. Copilot for Business does not retain Suggestions.
User Engagement Data
When you use GitHub Copilot it will collect User Engagement Data. This is usage information about events generated when interacting with the IDE or editor. These events include user edit actions like whether Suggestions are accepted or dismissed, and error and general usage data to identify metrics like latency and features engagement. This information may include personal data, such as pseudonymous identifiers.
2. How is the data in Copilot for Business used and shared?
User Engagement Data is used by GitHub and Microsoft to provide the service and to enable improvements.
Such uses may include:
Evaluating GitHub Copilot, e.g., by measuring the positive impact it has on the user
Fine tuning ranking and sorting algorithms and Prompt crafting
Detecting potential abuse of GitHub Copilot or violation of Acceptable Use Policies
Conducting experiments and research related to developers and their use of developer tools and services