GitHub Copilot: the perfect Code compLeeter? Article Swipe
YOU?
·
· 2024
· Open Access
·
· DOI: https://doi.org/10.48550/arxiv.2406.11326
This paper aims to evaluate GitHub Copilot's generated code quality based on the LeetCode problem set using a custom automated framework. We evaluate the results of Copilot for 4 programming languages: Java, C++, Python3 and Rust. We aim to evaluate Copilot's reliability in the code generation stage, the correctness of the generated code and its dependency on the programming language, problem's difficulty level and problem's topic. In addition to that, we evaluate code's time and memory efficiency and compare it to the average human results. In total, we generate solutions for 1760 problems for each programming language and evaluate all the Copilot's suggestions for each problem, resulting in over 50000 submissions to LeetCode spread over a 2-month period. We found that Copilot successfully solved most of the problems. However, Copilot was rather more successful in generating code in Java and C++ than in Python3 and Rust. Moreover, in case of Python3 Copilot proved to be rather unreliable in the code generation phase. We also discovered that Copilot's top-ranked suggestions are not always the best. In addition, we analysed how the topic of the problem impacts the correctness rate. Finally, based on statistics information from LeetCode, we can conclude that Copilot generates more efficient code than an average human.
Related Topics
- Type
- preprint
- Language
- en
- Landing Page
- http://arxiv.org/abs/2406.11326
- https://arxiv.org/pdf/2406.11326
- OA Status
- green
- Cited By
- 4
- Related Works
- 10
- OpenAlex ID
- https://openalex.org/W4399795041
Raw OpenAlex JSON
- OpenAlex ID
-
https://openalex.org/W4399795041Canonical identifier for this work in OpenAlex
- DOI
-
https://doi.org/10.48550/arxiv.2406.11326Digital Object Identifier
- Title
-
GitHub Copilot: the perfect Code compLeeter?Work title
- Type
-
preprintOpenAlex work type
- Language
-
enPrimary language
- Publication year
-
2024Year of publication
- Publication date
-
2024-06-17Full publication date if available
- Authors
-
Ilja Siroš, Dave Singelée, Bart PreneelList of authors in order
- Landing page
-
https://arxiv.org/abs/2406.11326Publisher landing page
- PDF URL
-
https://arxiv.org/pdf/2406.11326Direct link to full text PDF
- Open access
-
YesWhether a free full text is available
- OA status
-
greenOpen access status per OpenAlex
- OA URL
-
https://arxiv.org/pdf/2406.11326Direct OA link when available
- Concepts
-
Code (set theory), Computer science, Business, Computer security, Programming language, Set (abstract data type)Top concepts (fields/topics) attached by OpenAlex
- Cited by
-
4Total citation count in OpenAlex
- Citations by year (recent)
-
2025: 2, 2024: 2Per-year citation counts (last 5 years)
- Related works (count)
-
10Other works algorithmically related by OpenAlex
Full payload
| id | https://openalex.org/W4399795041 |
|---|---|
| doi | https://doi.org/10.48550/arxiv.2406.11326 |
| ids.doi | https://doi.org/10.48550/arxiv.2406.11326 |
| ids.openalex | https://openalex.org/W4399795041 |
| fwci | |
| type | preprint |
| title | GitHub Copilot: the perfect Code compLeeter? |
| biblio.issue | |
| biblio.volume | |
| biblio.last_page | |
| biblio.first_page | |
| topics[0].id | https://openalex.org/T10715 |
| topics[0].field.id | https://openalex.org/fields/17 |
| topics[0].field.display_name | Computer Science |
| topics[0].score | 0.9803000092506409 |
| topics[0].domain.id | https://openalex.org/domains/3 |
| topics[0].domain.display_name | Physical Sciences |
| topics[0].subfield.id | https://openalex.org/subfields/1705 |
| topics[0].subfield.display_name | Computer Networks and Communications |
| topics[0].display_name | Distributed and Parallel Computing Systems |
| topics[1].id | https://openalex.org/T11986 |
| topics[1].field.id | https://openalex.org/fields/18 |
| topics[1].field.display_name | Decision Sciences |
| topics[1].score | 0.9427000284194946 |
| topics[1].domain.id | https://openalex.org/domains/2 |
| topics[1].domain.display_name | Social Sciences |
| topics[1].subfield.id | https://openalex.org/subfields/1802 |
| topics[1].subfield.display_name | Information Systems and Management |
| topics[1].display_name | Scientific Computing and Data Management |
| topics[2].id | https://openalex.org/T11181 |
| topics[2].field.id | https://openalex.org/fields/17 |
| topics[2].field.display_name | Computer Science |
| topics[2].score | 0.9405999779701233 |
| topics[2].domain.id | https://openalex.org/domains/3 |
| topics[2].domain.display_name | Physical Sciences |
| topics[2].subfield.id | https://openalex.org/subfields/1705 |
| topics[2].subfield.display_name | Computer Networks and Communications |
| topics[2].display_name | Advanced Data Storage Technologies |
| is_xpac | False |
| apc_list | |
| apc_paid | |
| concepts[0].id | https://openalex.org/C2776760102 |
| concepts[0].level | 3 |
| concepts[0].score | 0.7398936152458191 |
| concepts[0].wikidata | https://www.wikidata.org/wiki/Q5139990 |
| concepts[0].display_name | Code (set theory) |
| concepts[1].id | https://openalex.org/C41008148 |
| concepts[1].level | 0 |
| concepts[1].score | 0.5743259787559509 |
| concepts[1].wikidata | https://www.wikidata.org/wiki/Q21198 |
| concepts[1].display_name | Computer science |
| concepts[2].id | https://openalex.org/C144133560 |
| concepts[2].level | 0 |
| concepts[2].score | 0.3476020097732544 |
| concepts[2].wikidata | https://www.wikidata.org/wiki/Q4830453 |
| concepts[2].display_name | Business |
| concepts[3].id | https://openalex.org/C38652104 |
| concepts[3].level | 1 |
| concepts[3].score | 0.3426514267921448 |
| concepts[3].wikidata | https://www.wikidata.org/wiki/Q3510521 |
| concepts[3].display_name | Computer security |
| concepts[4].id | https://openalex.org/C199360897 |
| concepts[4].level | 1 |
| concepts[4].score | 0.16378432512283325 |
| concepts[4].wikidata | https://www.wikidata.org/wiki/Q9143 |
| concepts[4].display_name | Programming language |
| concepts[5].id | https://openalex.org/C177264268 |
| concepts[5].level | 2 |
| concepts[5].score | 0.0 |
| concepts[5].wikidata | https://www.wikidata.org/wiki/Q1514741 |
| concepts[5].display_name | Set (abstract data type) |
| keywords[0].id | https://openalex.org/keywords/code |
| keywords[0].score | 0.7398936152458191 |
| keywords[0].display_name | Code (set theory) |
| keywords[1].id | https://openalex.org/keywords/computer-science |
| keywords[1].score | 0.5743259787559509 |
| keywords[1].display_name | Computer science |
| keywords[2].id | https://openalex.org/keywords/business |
| keywords[2].score | 0.3476020097732544 |
| keywords[2].display_name | Business |
| keywords[3].id | https://openalex.org/keywords/computer-security |
| keywords[3].score | 0.3426514267921448 |
| keywords[3].display_name | Computer security |
| keywords[4].id | https://openalex.org/keywords/programming-language |
| keywords[4].score | 0.16378432512283325 |
| keywords[4].display_name | Programming language |
| language | en |
| locations[0].id | pmh:oai:arXiv.org:2406.11326 |
| locations[0].is_oa | True |
| locations[0].source.id | https://openalex.org/S4306400194 |
| locations[0].source.issn | |
| locations[0].source.type | repository |
| locations[0].source.is_oa | True |
| locations[0].source.issn_l | |
| locations[0].source.is_core | False |
| locations[0].source.is_in_doaj | False |
| locations[0].source.display_name | arXiv (Cornell University) |
| locations[0].source.host_organization | https://openalex.org/I205783295 |
| locations[0].source.host_organization_name | Cornell University |
| locations[0].source.host_organization_lineage | https://openalex.org/I205783295 |
| locations[0].license | |
| locations[0].pdf_url | https://arxiv.org/pdf/2406.11326 |
| locations[0].version | submittedVersion |
| locations[0].raw_type | text |
| locations[0].license_id | |
| locations[0].is_accepted | False |
| locations[0].is_published | False |
| locations[0].raw_source_name | |
| locations[0].landing_page_url | http://arxiv.org/abs/2406.11326 |
| locations[1].id | doi:10.48550/arxiv.2406.11326 |
| locations[1].is_oa | True |
| locations[1].source.id | https://openalex.org/S4306400194 |
| locations[1].source.issn | |
| locations[1].source.type | repository |
| locations[1].source.is_oa | True |
| locations[1].source.issn_l | |
| locations[1].source.is_core | False |
| locations[1].source.is_in_doaj | False |
| locations[1].source.display_name | arXiv (Cornell University) |
| locations[1].source.host_organization | https://openalex.org/I205783295 |
| locations[1].source.host_organization_name | Cornell University |
| locations[1].source.host_organization_lineage | https://openalex.org/I205783295 |
| locations[1].license | cc-by |
| locations[1].pdf_url | |
| locations[1].version | |
| locations[1].raw_type | article |
| locations[1].license_id | https://openalex.org/licenses/cc-by |
| locations[1].is_accepted | False |
| locations[1].is_published | |
| locations[1].raw_source_name | |
| locations[1].landing_page_url | https://doi.org/10.48550/arxiv.2406.11326 |
| indexed_in | arxiv, datacite |
| authorships[0].author.id | https://openalex.org/A5099230540 |
| authorships[0].author.orcid | |
| authorships[0].author.display_name | Ilja Siroš |
| authorships[0].author_position | first |
| authorships[0].raw_author_name | Siroš, Ilja |
| authorships[0].is_corresponding | False |
| authorships[1].author.id | https://openalex.org/A5009111901 |
| authorships[1].author.orcid | https://orcid.org/0000-0001-9084-698X |
| authorships[1].author.display_name | Dave Singelée |
| authorships[1].author_position | middle |
| authorships[1].raw_author_name | Singelée, Dave |
| authorships[1].is_corresponding | False |
| authorships[2].author.id | https://openalex.org/A5039506639 |
| authorships[2].author.orcid | https://orcid.org/0000-0003-2005-9651 |
| authorships[2].author.display_name | Bart Preneel |
| authorships[2].author_position | last |
| authorships[2].raw_author_name | Preneel, Bart |
| authorships[2].is_corresponding | False |
| has_content.pdf | False |
| has_content.grobid_xml | False |
| is_paratext | False |
| open_access.is_oa | True |
| open_access.oa_url | https://arxiv.org/pdf/2406.11326 |
| open_access.oa_status | green |
| open_access.any_repository_has_fulltext | False |
| created_date | 2025-10-10T00:00:00 |
| display_name | GitHub Copilot: the perfect Code compLeeter? |
| has_fulltext | False |
| is_retracted | False |
| updated_date | 2025-11-06T06:51:31.235846 |
| primary_topic.id | https://openalex.org/T10715 |
| primary_topic.field.id | https://openalex.org/fields/17 |
| primary_topic.field.display_name | Computer Science |
| primary_topic.score | 0.9803000092506409 |
| primary_topic.domain.id | https://openalex.org/domains/3 |
| primary_topic.domain.display_name | Physical Sciences |
| primary_topic.subfield.id | https://openalex.org/subfields/1705 |
| primary_topic.subfield.display_name | Computer Networks and Communications |
| primary_topic.display_name | Distributed and Parallel Computing Systems |
| related_works | https://openalex.org/W4391375266, https://openalex.org/W2748952813, https://openalex.org/W2390279801, https://openalex.org/W2358668433, https://openalex.org/W4396701345, https://openalex.org/W2376932109, https://openalex.org/W2001405890, https://openalex.org/W4396696052, https://openalex.org/W2382290278, https://openalex.org/W4395014643 |
| cited_by_count | 4 |
| counts_by_year[0].year | 2025 |
| counts_by_year[0].cited_by_count | 2 |
| counts_by_year[1].year | 2024 |
| counts_by_year[1].cited_by_count | 2 |
| locations_count | 2 |
| best_oa_location.id | pmh:oai:arXiv.org:2406.11326 |
| best_oa_location.is_oa | True |
| best_oa_location.source.id | https://openalex.org/S4306400194 |
| best_oa_location.source.issn | |
| best_oa_location.source.type | repository |
| best_oa_location.source.is_oa | True |
| best_oa_location.source.issn_l | |
| best_oa_location.source.is_core | False |
| best_oa_location.source.is_in_doaj | False |
| best_oa_location.source.display_name | arXiv (Cornell University) |
| best_oa_location.source.host_organization | https://openalex.org/I205783295 |
| best_oa_location.source.host_organization_name | Cornell University |
| best_oa_location.source.host_organization_lineage | https://openalex.org/I205783295 |
| best_oa_location.license | |
| best_oa_location.pdf_url | https://arxiv.org/pdf/2406.11326 |
| best_oa_location.version | submittedVersion |
| best_oa_location.raw_type | text |
| best_oa_location.license_id | |
| best_oa_location.is_accepted | False |
| best_oa_location.is_published | False |
| best_oa_location.raw_source_name | |
| best_oa_location.landing_page_url | http://arxiv.org/abs/2406.11326 |
| primary_location.id | pmh:oai:arXiv.org:2406.11326 |
| primary_location.is_oa | True |
| primary_location.source.id | https://openalex.org/S4306400194 |
| primary_location.source.issn | |
| primary_location.source.type | repository |
| primary_location.source.is_oa | True |
| primary_location.source.issn_l | |
| primary_location.source.is_core | False |
| primary_location.source.is_in_doaj | False |
| primary_location.source.display_name | arXiv (Cornell University) |
| primary_location.source.host_organization | https://openalex.org/I205783295 |
| primary_location.source.host_organization_name | Cornell University |
| primary_location.source.host_organization_lineage | https://openalex.org/I205783295 |
| primary_location.license | |
| primary_location.pdf_url | https://arxiv.org/pdf/2406.11326 |
| primary_location.version | submittedVersion |
| primary_location.raw_type | text |
| primary_location.license_id | |
| primary_location.is_accepted | False |
| primary_location.is_published | False |
| primary_location.raw_source_name | |
| primary_location.landing_page_url | http://arxiv.org/abs/2406.11326 |
| publication_date | 2024-06-17 |
| publication_year | 2024 |
| referenced_works_count | 0 |
| abstract_inverted_index.4 | 28 |
| abstract_inverted_index.a | 17, 115 |
| abstract_inverted_index.In | 66, 85, 174 |
| abstract_inverted_index.We | 21, 36, 118, 162 |
| abstract_inverted_index.an | 205 |
| abstract_inverted_index.be | 154 |
| abstract_inverted_index.in | 42, 107, 134, 137, 142, 147, 157 |
| abstract_inverted_index.it | 79 |
| abstract_inverted_index.of | 25, 49, 125, 149, 181 |
| abstract_inverted_index.on | 11, 56, 190 |
| abstract_inverted_index.to | 3, 38, 68, 80, 111, 153 |
| abstract_inverted_index.we | 70, 87, 176, 195 |
| abstract_inverted_index.C++ | 140 |
| abstract_inverted_index.aim | 37 |
| abstract_inverted_index.all | 99 |
| abstract_inverted_index.and | 34, 53, 63, 74, 77, 97, 139, 144 |
| abstract_inverted_index.are | 169 |
| abstract_inverted_index.can | 196 |
| abstract_inverted_index.for | 27, 90, 93, 103 |
| abstract_inverted_index.how | 178 |
| abstract_inverted_index.its | 54 |
| abstract_inverted_index.not | 170 |
| abstract_inverted_index.set | 15 |
| abstract_inverted_index.the | 12, 23, 43, 47, 50, 57, 81, 100, 126, 158, 172, 179, 182, 185 |
| abstract_inverted_index.was | 130 |
| abstract_inverted_index.1760 | 91 |
| abstract_inverted_index.C++, | 32 |
| abstract_inverted_index.Java | 138 |
| abstract_inverted_index.This | 0 |
| abstract_inverted_index.aims | 2 |
| abstract_inverted_index.also | 163 |
| abstract_inverted_index.case | 148 |
| abstract_inverted_index.code | 8, 44, 52, 136, 159, 203 |
| abstract_inverted_index.each | 94, 104 |
| abstract_inverted_index.from | 193 |
| abstract_inverted_index.more | 132, 201 |
| abstract_inverted_index.most | 124 |
| abstract_inverted_index.over | 108, 114 |
| abstract_inverted_index.than | 141, 204 |
| abstract_inverted_index.that | 120, 165, 198 |
| abstract_inverted_index.time | 73 |
| abstract_inverted_index.50000 | 109 |
| abstract_inverted_index.Java, | 31 |
| abstract_inverted_index.Rust. | 35, 145 |
| abstract_inverted_index.based | 10, 189 |
| abstract_inverted_index.best. | 173 |
| abstract_inverted_index.found | 119 |
| abstract_inverted_index.human | 83 |
| abstract_inverted_index.level | 62 |
| abstract_inverted_index.paper | 1 |
| abstract_inverted_index.rate. | 187 |
| abstract_inverted_index.that, | 69 |
| abstract_inverted_index.topic | 180 |
| abstract_inverted_index.using | 16 |
| abstract_inverted_index.GitHub | 5 |
| abstract_inverted_index.always | 171 |
| abstract_inverted_index.code's | 72 |
| abstract_inverted_index.custom | 18 |
| abstract_inverted_index.human. | 207 |
| abstract_inverted_index.memory | 75 |
| abstract_inverted_index.phase. | 161 |
| abstract_inverted_index.proved | 152 |
| abstract_inverted_index.rather | 131, 155 |
| abstract_inverted_index.solved | 123 |
| abstract_inverted_index.spread | 113 |
| abstract_inverted_index.stage, | 46 |
| abstract_inverted_index.topic. | 65 |
| abstract_inverted_index.total, | 86 |
| abstract_inverted_index.2-month | 116 |
| abstract_inverted_index.Copilot | 26, 121, 129, 151, 199 |
| abstract_inverted_index.Python3 | 33, 143, 150 |
| abstract_inverted_index.average | 82, 206 |
| abstract_inverted_index.compare | 78 |
| abstract_inverted_index.impacts | 184 |
| abstract_inverted_index.period. | 117 |
| abstract_inverted_index.problem | 14, 183 |
| abstract_inverted_index.quality | 9 |
| abstract_inverted_index.results | 24 |
| abstract_inverted_index.Finally, | 188 |
| abstract_inverted_index.However, | 128 |
| abstract_inverted_index.LeetCode | 13, 112 |
| abstract_inverted_index.addition | 67 |
| abstract_inverted_index.analysed | 177 |
| abstract_inverted_index.conclude | 197 |
| abstract_inverted_index.evaluate | 4, 22, 39, 71, 98 |
| abstract_inverted_index.generate | 88 |
| abstract_inverted_index.language | 96 |
| abstract_inverted_index.problem, | 105 |
| abstract_inverted_index.problems | 92 |
| abstract_inverted_index.results. | 84 |
| abstract_inverted_index.Copilot's | 6, 40, 101, 166 |
| abstract_inverted_index.LeetCode, | 194 |
| abstract_inverted_index.Moreover, | 146 |
| abstract_inverted_index.addition, | 175 |
| abstract_inverted_index.automated | 19 |
| abstract_inverted_index.efficient | 202 |
| abstract_inverted_index.generated | 7, 51 |
| abstract_inverted_index.generates | 200 |
| abstract_inverted_index.language, | 59 |
| abstract_inverted_index.problem's | 60, 64 |
| abstract_inverted_index.problems. | 127 |
| abstract_inverted_index.resulting | 106 |
| abstract_inverted_index.solutions | 89 |
| abstract_inverted_index.dependency | 55 |
| abstract_inverted_index.difficulty | 61 |
| abstract_inverted_index.discovered | 164 |
| abstract_inverted_index.efficiency | 76 |
| abstract_inverted_index.framework. | 20 |
| abstract_inverted_index.generating | 135 |
| abstract_inverted_index.generation | 45, 160 |
| abstract_inverted_index.languages: | 30 |
| abstract_inverted_index.statistics | 191 |
| abstract_inverted_index.successful | 133 |
| abstract_inverted_index.top-ranked | 167 |
| abstract_inverted_index.unreliable | 156 |
| abstract_inverted_index.correctness | 48, 186 |
| abstract_inverted_index.information | 192 |
| abstract_inverted_index.programming | 29, 58, 95 |
| abstract_inverted_index.reliability | 41 |
| abstract_inverted_index.submissions | 110 |
| abstract_inverted_index.suggestions | 102, 168 |
| abstract_inverted_index.successfully | 122 |
| cited_by_percentile_year | |
| countries_distinct_count | 0 |
| institutions_distinct_count | 3 |
| citation_normalized_percentile |