Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Models (2406.01359v2)

Published 3 Jun 2024 in cs.CL and cs.SE

Abstract: Code completion models have made significant progress in recent years. Recently, repository-level code completion has drawn more attention in modern software development, and several baseline methods and benchmarks have been proposed. However, existing repository-level code completion methods often fall short of fully using the extensive context of a project repository, such as the intricacies of relevant files and class hierarchies. Besides, the existing benchmarks usually focus on limited code completion scenarios, which cannot reflect the repository-level code completion abilities well of existing methods. To address these limitations, we propose the R2C2-Coder to enhance and benchmark the real-world repository-level code completion abilities of code LLMs, where the R2C2-Coder includes a code prompt construction method R2C2-Enhance and a well-designed benchmark R2C2-Bench. Specifically, first, in R2C2-Enhance, we first construct the candidate retrieval pool and then assemble the completion prompt by retrieving from the retrieval pool for each completion cursor position. Second, based on R2C2 -Enhance, we can construct a more challenging and diverse R2C2-Bench with training, validation and test splits, where a context perturbation strategy is proposed to simulate the real-world repository-level code completion well. Extensive results on multiple benchmarks demonstrate the effectiveness of our R2C2-Coder.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (15)
  1. Ken Deng (13 papers)
  2. Jiaheng Liu (100 papers)
  3. He Zhu (57 papers)
  4. Congnan Liu (3 papers)
  5. Jingxin Li (8 papers)
  6. Jiakai Wang (33 papers)
  7. Peng Zhao (162 papers)
  8. Chenchen Zhang (19 papers)
  9. Yanan Wu (40 papers)
  10. Xueqiao Yin (1 paper)
  11. Yuanxing Zhang (30 papers)
  12. Wenbo Su (36 papers)
  13. Bangyu Xiang (2 papers)
  14. Tiezheng Ge (46 papers)
  15. Bo Zheng (205 papers)
Citations (2)
X Twitter Logo Streamline Icon: https://streamlinehq.com