{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,25]],"date-time":"2026-11-25T18:15:59Z","timestamp":1795630559677,"version":"4.11.3"},"reference-count":89,"publisher":"Institute of Electrical and Electronics Engineers (IEEE)","issue":"12","license":[{"start":{"date-parts":[[2024,12,1]],"date-time":"2024-12-01T00:00:00Z","timestamp":1733011200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/ieeexplore.ieee.org\/Xplorehelp\/downloads\/license-information\/IEEE.html"},{"start":{"date-parts":[[2024,12,1]],"date-time":"2024-12-01T00:00:00Z","timestamp":1733011200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-029"},{"start":{"date-parts":[[2024,12,1]],"date-time":"2024-12-01T00:00:00Z","timestamp":1733011200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-037"}],"funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["62302437"],"award-info":[{"award-number":["62302437"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["62262031"],"award-info":[{"award-number":["62262031"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["62367003"],"award-info":[{"award-number":["62367003"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"name":"Distinguished Youth Fund Project of the Natural Science Foundation of Jiangxi Province","award":["20242BAB23011"],"award-info":[{"award-number":["20242BAB23011"]}]},{"name":"Gan Po Talent Support Program-Academic and Technical Leaders Training Program in Major Disciplines of Jiangxi Province","award":["20243BCE51007"],"award-info":[{"award-number":["20243BCE51007"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["IIEEE Trans. Software Eng."],"published-print":{"date-parts":[[2024,12]]},"DOI":"10.1109\/tse.2024.3486195","type":"journal-article","created":{"date-parts":[[2024,10,24]],"date-time":"2024-10-24T17:26:17Z","timestamp":1729790777000},"page":"3369-3384","source":"Crossref","is-referenced-by-count":33,"title":["A3-CodGen: A Repository-Level Code Generation Framework for Code Reuse With Local-Aware, Global-Aware, and Third-Party-Library-Aware"],"prefix":"10.1109","volume":"50","author":[{"ORCID":"https:\/\/orcid.org\/0009-0000-0865-0444","authenticated-orcid":false,"given":"Dianshu","family":"Liao","sequence":"first","affiliation":[{"name":"School of Computing, Australian National University, Canberra, ACT, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2162-0407","authenticated-orcid":false,"given":"Shidong","family":"Pan","sequence":"additional","affiliation":[{"name":"CSIRO&#x2019;s Data61, Sydney, NSW, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7434-0452","authenticated-orcid":false,"given":"Xiaoyu","family":"Sun","sequence":"additional","affiliation":[{"name":"School of Computing, Australian National University, Canberra, ACT, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5526-1617","authenticated-orcid":false,"given":"Xiaoxue","family":"Ren","sequence":"additional","affiliation":[{"name":"State Key Laboratory of Blockchain and Data Security, Zhejiang University, Hangzhou, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8877-4267","authenticated-orcid":false,"given":"Qing","family":"Huang","sequence":"additional","affiliation":[{"name":"School of Computer Information Engineering, Jiangxi Normal University, Jiangxi, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7663-1421","authenticated-orcid":false,"given":"Zhenchang","family":"Xing","sequence":"additional","affiliation":[{"name":"CSIRO&#x2019;s Data61, Sydney, NSW, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0004-6129-1654","authenticated-orcid":false,"given":"Huan","family":"Jin","sequence":"additional","affiliation":[{"name":"Jiangxi University of Technology, Jiangxi, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2602-8576","authenticated-orcid":false,"given":"Qinying","family":"Li","sequence":"additional","affiliation":[{"name":"Jiangxi University of Technology, Jiangxi, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"263","reference":[{"key":"ref1","doi-asserted-by":"publisher","DOI":"10.1145\/3368089.3417058"},{"key":"ref2","doi-asserted-by":"publisher","DOI":"10.1126\/science.abq1158"},{"key":"ref3","doi-asserted-by":"publisher","DOI":"10.1109\/JPROC.2004.840306"},{"key":"ref4","article-title":"CODET: Code generation with generated tests","author":"Chen","year":"2022"},{"key":"ref5","doi-asserted-by":"publisher","DOI":"10.1609\/aaai.v34i05.6430"},{"key":"ref6","doi-asserted-by":"publisher","DOI":"10.1016\/j.eswa.2006.09.022"},{"key":"ref7","doi-asserted-by":"publisher","DOI":"10.1109\/2.796110"},{"key":"ref8","article-title":"ChatGPT"},{"key":"ref9","article-title":"GitHub copilot. your AI pair programmer"},{"key":"ref10","article-title":"Evaluating large language models trained on code","author":"Chen","year":"2021"},{"key":"ref11","doi-asserted-by":"publisher","DOI":"10.1109\/icse48619.2023.00182"},{"key":"ref12","doi-asserted-by":"publisher","DOI":"10.1109\/ASE56229.2023.00159"},{"key":"ref13","doi-asserted-by":"publisher","DOI":"10.24963\/ijcai.2022\/329"},{"key":"ref14","doi-asserted-by":"publisher","DOI":"10.1145\/3478097"},{"key":"ref15","article-title":"Private-library-oriented code generation with large language models","author":"Zan","year":"2023"},{"key":"ref16","doi-asserted-by":"publisher","DOI":"10.1145\/3597503.3623316"},{"key":"ref17","article-title":"Efficiently measuring the cognitive ability of LLMS: An adaptive testing perspective","author":"Zhuang","year":"2023"},{"issue":"2","key":"ref18","first-page":"37","article-title":"Logic codes generation and transmission using an encoding-decoding system","volume":"5","author":"Gifany","year":"2013","journal-title":"Int. J. Adv. Eng. & Technol."},{"key":"ref19","article-title":"Our dataset and repository","year":"2024"},{"key":"ref20","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2021.emnlp-main.685"},{"key":"ref21","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2020.findings-emnlp.139"},{"key":"ref22","article-title":"Graphcodebert: Pre-training code representations with data flow","author":"Guo","year":"2020"},{"key":"ref23","article-title":"CodeGen: An open large language model for code with multi-turn program synthesis","volume-title":"Proc. Int. Conf. Learn. Representations","author":"Nijkamp","year":"2022"},{"key":"ref24","article-title":"InCoder: A generative model for code infilling and synthesis","author":"Fried","year":"2022"},{"key":"ref25","article-title":"CodeXGLUE: A machine learning benchmark dataset for code understanding and generation","author":"Lu","year":"2021"},{"key":"ref26","doi-asserted-by":"publisher","DOI":"10.1016\/j.infsof.2023.107336"},{"key":"ref27","doi-asserted-by":"publisher","DOI":"10.1145\/3520312.3534862"},{"key":"ref28","article-title":"CodeGeeX: A pre-trained model for code generation with multilingual evaluations on HumanEval-X","author":"Zheng","year":"2023"},{"key":"ref29","doi-asserted-by":"publisher","DOI":"10.1145\/3491101.3519665"},{"key":"ref30","article-title":"Code completion in pycharm","year":"2024"},{"key":"ref31","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2021.emnlp-main.685"},{"key":"ref32","article-title":"GPT-4 technical report","year":"2023"},{"key":"ref33","article-title":"Large language models can be easily distracted by irrelevant context","author":"Shi","year":"2023"},{"key":"ref34","article-title":"ClassEval: A manually-crafted benchmark for evaluating LLMS on class-level code generation","author":"Du","year":"2023"},{"key":"ref35","article-title":"A survey on evaluation of large language models","author":"Chang","year":"2023"},{"key":"ref36","article-title":"CoCoMIC: Code completion by jointly modeling in-file and cross-file context","author":"Ding","year":"2022"},{"key":"ref37","doi-asserted-by":"publisher","DOI":"10.1609\/aaai.v37i4.25653"},{"key":"ref38","article-title":"RepoFusion: Training code models to understand your repository","author":"Shrivastava","year":"2023"},{"key":"ref39","first-page":"180","article-title":"Code reuse in open source software","volume":"54","author":"Stefan","journal-title":"Manag. Sci."},{"key":"ref40","doi-asserted-by":"publisher","DOI":"10.1145\/358855.358861"},{"key":"ref41","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2019.00086"},{"key":"ref42","article-title":"SE factual knowledge in frozen giant code model: A study on FQN and its retrieval","author":"Huang","year":"2022"},{"key":"ref43","article-title":"Language models are few-shot learners","author":"Brown","year":"2020"},{"key":"ref44","article-title":"In-context instruction learning","author":"Ye","year":"2023"},{"key":"ref45","article-title":"GPT-3.5-turbo-16k","year":"2023"},{"issue":"1","key":"ref46","first-page":"1","article-title":"API entity and relation joint extraction from text via dynamic prompt-tuned language model","volume":"33","author":"Huang","year":"2023"},{"key":"ref47","doi-asserted-by":"publisher","DOI":"10.1145\/3551349.3556912"},{"key":"ref48","doi-asserted-by":"publisher","DOI":"10.24963\/ijcai.2022\/329"},{"key":"ref49","doi-asserted-by":"publisher","DOI":"10.1109\/ASE56229.2023.00159"},{"key":"ref50","first-page":"87","article-title":"Compositional API recommendation for library-oriented code generation","volume-title":"Proc. IEEE\/ACM 32nd Int. Conf. Program Comprehension (ICPC)","author":"Ma","year":"2024"},{"key":"ref51","doi-asserted-by":"publisher","DOI":"10.1109\/ASE56229.2023.00143"},{"key":"ref52","first-page":"24824","article-title":"Chain-of-thought prompting elicits reasoning in large language models","volume-title":"in Proc. Adv. Neural Inf. Process. Syst.","volume":"35","author":"Wei","year":"2022"},{"key":"ref53","article-title":"Quoc le","author":"Wang","year":"2022","journal-title":"Self-Consistency Improves Chain of Thought Reasoning in Language Models"},{"key":"ref54","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2023.ijcnlp-main.20"},{"key":"ref55","article-title":"OpenAI","year":"2023"},{"key":"ref56","article-title":"Vec2Vec: A compact neural network approach for transforming text embeddings with high fidelity","author":"Gao","year":"2023"},{"key":"ref57","article-title":"Jina embeddings 2: 8192-token general-purpose text embeddings for long documents","author":"G\u00fc","year":"2023"},{"key":"ref58","article-title":"Evaluating instruction-tuned large language models on code comprehension and generation","author":"Yuan","year":"2023"},{"key":"ref59","article-title":"Is your code generated by chatgpt really correct? Rigorous evaluation of large language models for code generation","author":"Liu","year":"2023"},{"key":"ref60","article-title":"LLM is like a box of chocolates: the non-determinism of chatGPT in code generation","author":"Ouyang","year":"2023"},{"key":"ref61","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2024.findings-emnlp.772"},{"key":"ref62","doi-asserted-by":"publisher","DOI":"10.1145\/3597503.3639074"},{"key":"ref63","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3510621"},{"key":"ref64","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3511561"},{"key":"ref65","doi-asserted-by":"publisher","DOI":"10.1109\/SANER50967.2021.00048"},{"key":"ref66","article-title":"Pycallgraph","year":"2023"},{"key":"ref67","article-title":"Pyan","year":"2023"},{"key":"ref68","doi-asserted-by":"publisher","DOI":"10.1007\/978-94-017-1404-4"},{"key":"ref69","doi-asserted-by":"publisher","DOI":"10.3115\/1073083.1073135"},{"key":"ref70","first-page":"74","article-title":"Rouge: A package for automatic evaluation of summaries","volume-title":"Proc. Annu. Meeting Assoc. Comput. Linguistics","author":"Lin","year":"2004"},{"key":"ref71","first-page":"228","article-title":"METEOR: An automatic metric for mt evaluation with improved correlation with human judgments","volume-title":"Proc. ACL Workshop Intrinsic Extrinsic Eval.","author":"Banerjee","year":"2005"},{"key":"ref72","doi-asserted-by":"publisher","DOI":"10.2307\/2529786"},{"issue":"12","key":"ref73","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3571730","article-title":"Survey of hallucination in natural language generation","volume":"55","author":"Ji","year":"2023","journal-title":"ACM Comput. Surveys"},{"key":"ref74","article-title":"How language model hallucinations can snowball","author":"Zhang","year":"2023"},{"key":"ref75","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2021.eacl-main.24"},{"key":"ref76","article-title":"A solution toward transparent and practical AI regulation: Privacy nutrition labels for open-source generative AI-based applications","author":"Si","year":"2024"},{"key":"ref77","article-title":"Reflexion: language agents with verbal reinforcement learning","volume-title":"Proc. Neural Inf. Process. Syst.","author":"Shinn","year":"2023"},{"key":"ref78","article-title":"Gpt-4o","year":"2024"},{"issue":"1","key":"ref79","first-page":"28","article-title":"The generalization of \u2018student\u2019s\u2019 problem when several different population varlances are involved","volume":"34","author":"Bl","year":"1947"},{"key":"ref80","doi-asserted-by":"publisher","DOI":"10.3390\/e23091174"},{"issue":"3","key":"ref81","first-page":"537","article-title":"A survey of automatic code generation fromnatural language","volume":"17","author":"Shin","year":"2021","journal-title":"J. Inf. Process. Syst."},{"key":"ref82","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/D18-1111"},{"issue":"9","key":"ref83","first-page":"1155","article-title":"Spoon: A library for implementing analyses and transformations of Java source code","volume":"46","author":"Pawlak","year":"2015","journal-title":"Softw.: Pract. Exp."},{"key":"ref84","article-title":"Repository-level prompt generation for large language models of code","author":"Disha Shrivastava","year":"2022"},{"key":"ref85","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2023.emnlp-main.151"},{"key":"ref86","article-title":"Generating code with the help of retrieved template functions and stack overflow answers","author":"Drain","year":"2021"},{"key":"ref87","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2021.findings-emnlp.232"},{"key":"ref88","article-title":"DocPrompting: Generating code by retrieving the docs","volume-title":"Proc. Int. Conf. Learn. Representations","author":"Zhou","year":"2022"},{"key":"ref89","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2022.findings-emnlp.21"}],"container-title":["IEEE Transactions on Software Engineering"],"original-title":[],"link":[{"URL":"http:\/\/xplorestaging.ieee.org\/ielx8\/32\/10794440\/10734067.pdf?arnumber=10734067","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,12,19]],"date-time":"2024-12-19T16:34:18Z","timestamp":1734626058000},"score":1,"resource":{"primary":{"URL":"https:\/\/ieeexplore.ieee.org\/document\/10734067\/"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,12]]},"references-count":89,"journal-issue":{"issue":"12"},"URL":"https:\/\/doi.org\/10.1109\/tse.2024.3486195","relation":{},"ISSN":["0098-5589","1939-3520","2326-3881"],"issn-type":[{"value":"0098-5589","type":"print"},{"value":"1939-3520","type":"electronic"},{"value":"2326-3881","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,12]]}}}