{"id":42225,"date":"2021-06-30T09:36:15","date_gmt":"2021-06-30T09:36:15","guid":{"rendered":"http:\/\/icloud.pe\/blog\/?guid=904b26ed6b2a8f34305aeee09c2e125b"},"modified":"2021-06-30T09:36:15","modified_gmt":"2021-06-30T09:36:15","slug":"github-copilot-is-an-ai-tool-that-helps-devs-to-write-better-code","status":"publish","type":"post","link":"https:\/\/icloud.pe\/blog\/github-copilot-is-an-ai-tool-that-helps-devs-to-write-better-code\/","title":{"rendered":"GitHub Copilot is an AI tool that helps devs to write better code"},"content":{"rendered":"<p><span class=\"field field-name-field-author field-type-node-reference field-label-hidden\"><br \/>\n      <span class=\"field-item even\"><a href=\"https:\/\/www.cloudpro.co.uk\/authors\/zach-marzouk\">Zach Marzouk<\/a><\/span><br \/>\n  <\/span><\/p>\n<div class=\"field field-name-field-published-date field-type-datetime field-label-hidden\">\n<div class=\"field-items\">\n<div class=\"field-item even\"><span class=\"date-display-single\">30 Jun, 2021<\/span><\/div>\n<\/p><\/div>\n<\/div>\n<p class=\"short-teaser\">\n<a href=\"https:\/\/www.cloudpro.co.uk\/\" title=\"\" class=\"combined-link\"><\/a><\/p>\n<div class=\"field field-name-body\">\n<p><a href=\"https:\/\/www.itpro.co.uk\/search\/github\" >GitHub<\/a>\u00a0has launched a preview of GitHub Copilot, a new\u00a0<a href=\"https:\/\/www.itpro.co.uk\/search\/ai\" >AI<\/a>\u00a0pair programmer that helps developers to write better code.<\/p>\n<p>The Microsoft-owned company said the tool \u201cdraws context from the code you\u2019re working on,\u201d and suggests whole lines or entire functions. This, GitHub says, could enable engineers to be more productive and potentially lower the barriers to enter\u00a0<a href=\"https:\/\/www.itpro.co.uk\/search\/software%20development\" >software development<\/a>.<\/p>\n<p><!--wysiwyg_see-related_plugin--><\/p>\n<p>\n\u201cIt helps you quickly discover alternative ways to solve problems, write tests, and explore new APIs without having to tediously tailor a search for answers on the internet. As you type, it adapts to the way you write code\u2014to help you complete your work faster,\u201d said Nat Friedman, CEO of GitHub.<\/p>\n<p>GitHub Copilot was developed in collaboration with\u00a0<a href=\"https:\/\/www.itpro.co.uk\/search\/openai\" >OpenAI<\/a>, an AI research startup backed by Microsoft,\u00a0and powered by OpenAI Codex, a new AI system created by the company. Essentially, the GitHub Copilot editor extension sends comments and code to the GitHub Copilot service, which in turn uses OpenAI Codex to synthesise and suggest individual lines and whole functions.<\/p>\n<p>The company said the system \u201chas broad knowledge of how people use code\u201d and is more capable than GPT -3 in code generation, as it was trained on a data set that includes a larger concentration of public source code.<\/p>\n<div data-editor-embed-uuid=\"2.0761104771509E+19\" data-embed-button=\"twitter\" data-entity-embed-display=\"view_mode:paragraph.preview\" data-entity-type=\"paragraph\" data-entity-uuid=\"14709099-fabf-4812-b5e3-b573e2f9b83c\" data-langcode=\"en\" class=\"embedded-entity\">\n<div class=\"paragraph paragraph--type--social-embed paragraph--view-mode--preview\">\n<div class=\"field field--name-field-social-provider field--type-entity-reference field--label-hidden field__item\">Twitter<\/div>\n<div class=\"field field--name-field-social-embed field--type-string field--label-hidden field__item\"><a href=\"https:\/\/twitter.com\/github\/status\/1409883156333879300\">https:\/\/twitter.com\/github\/status\/1409883156333879300<\/a><\/div>\n<\/div>\n<\/div>\n<p>GitHub expects the technology to \u201cenable existing engineers to be more productive, reducing manual tasks and helping them focus on interesting work\u201d. It also believes the tool has the potential to lower barriers to entry, enabling more people to explore software development and join the next generation of\u00a0<a href=\"https:\/\/www.itpro.co.uk\/search\/developer\" >developers<\/a>.<\/p>\n<p>GitHub added that the new tool works with a broad set of frameworks and languages, but the technical preview, which is now open to be signed up to, works \u201cespecially well\u201d for\u00a0<a href=\"https:\/\/www.itpro.co.uk\/search\/python\" >Python<\/a>, JavaScript, TypeScript,\u00a0<a href=\"https:\/\/www.itpro.co.uk\/search\/ruby\" >Ruby<\/a>\u00a0and Go.<\/p>\n<p>The company benchmarked the tool against a set of Python functions and blanked out the function bodies and asked GitHub Copilot to fill them in. The model got them right 43% of the time on the first try and 57% of the time when allowed 10 attempts.<\/p>\n<p>If the technical preview is a success, GitHub plans to build a commercial version of GitHub Copilot in the future. Through the preview it aims to learn how people use the tool and what it takes to operate at scale. <\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>      Zach Marzouk<\/p>\n<p>        30 Jun, 2021    <\/p>\n<p>      GitHub\u00a0has launched a preview of GitHub Copilot, a new\u00a0AI\u00a0pair programmer that helps developers to write better code.<br \/>\nThe Microsoft-owned company said the tool \u201cdraws context from the code you\u2019r&#8230;<\/p>\n","protected":false},"author":654,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-42225","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/42225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/users\/654"}],"replies":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/comments?post=42225"}],"version-history":[{"count":1,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/42225\/revisions"}],"predecessor-version":[{"id":42226,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/42225\/revisions\/42226"}],"wp:attachment":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/media?parent=42225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/categories?post=42225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/tags?post=42225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}