Copilot is now available and will have a 60-day trial, after which it will cost $10 per month

GitHub announced that it has completed testing of the GitHub smart assistant Co-pilot, that you can generate generic constructs as you write code. The system was developed in collaboration with the OpenAI project and uses the OpenAI Codex machine learning platform, trained on a wide variety of source code hosted in public GitHub repositories.

The code generation supports programming languages Python, JavaScript, TypeScript, Ruby, Go, C# and C++ using multiple frameworks. Modules are available to integrate GitHub Copilot with Neovim, JetBrains IDE, Visual Studio, and Visual Studio Code.

Judging from the telemetry collected during the testing process, the service allows to generate code of a sufficiently high quality; for example, developers accepted 26% of the proposed recommendations in GitHub Copilot as-is.

GitHub Copilot differs from traditional code completion systems in the ability to form quite complex blocks of code, up to ready-to-use functions synthesized taking into account the current context.

GitHub Copilot adapts to the way a developer writes code and takes into account the APIs and frameworks used in the program. For example, if there is an example of a JSON structure in the comment, when you start writing a function to parse this structure, GitHub Copilot will provide ready-to-use code, and by writing routine enumerations of repeated descriptions, it will form the rest.

In a blog post, GitHub CEO Thomas Dohmke said that GitHub Copilot was designed as an editor extension to make sure nothing gets in the way of what developers are doing.

“GitHub Copilot distills the collective knowledge of developers around the world into an editor extension that suggests code in real time, to help you stay focused on what matters most: building great software,” he explained.

According to Dohmke, around 1,2 million developers have tried Copilot during its preview stage. Apparently, it has also been quite useful, as Dohmke claims that he has written up to 40% of developer code written in popular languages ​​like Python.

"Like the rise of compilers and open source, we believe AI-assisted coding will fundamentally change the nature of software development, giving developers a new tool to write code more easily and quickly," said Dohmke. .

GitHub Copilot's ability to generate pre-built blocks of code has generated controversy over possible infringement of the copyleft license. When forming the machine learning model, real source texts from open project repositories hosted on GitHub were used.

Many of these projects are provided under copyleft licenses, such as the GPL, which requires that the code in derivative works be provided under a compatible license. If Copilot pastes existing code, developers may inadvertently violate the license of the project from which the code was borrowed.

It is not yet clear if a job generated by a machine learning system can be considered a derivative. Questions also arise about whether a machine learning model is copyrighted and, if so, who owns these rights and how they relate to the rights to the code on which the model is built.

On the one hand, the generated blocks can repeat text passages from existing projects, but on the other hand, the system recreates the code structure and does not copy the code itself.

According to a GitHub study, only 1% of recommendations suggested by Copilot include code snippets from existing projects of more than 150 characters. In most situations, repetition occurs when Copilot does not correctly determine context or provide generic solutions to a problem.

To avoid replacing existing code, a special filter has been added to Copilot that does not allow overlapping with existing projects. When configuring, the developer can turn this filter on or off at his discretion. Among other problems, it is noted the possibility that the synthesized code could repeat the errors and vulnerabilities present in the code used to train the model.

Finally, it is worth mentioning that the service is free for maintainers of popular open source projects and for students. While for other categories of users, access to GitHub Copilot is paid ($10 per month or $100 per year), but free trial access is provided for 60 days.

Finally, if you are interested in knowing more about it, you can consult the details In the following link.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.