{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,4,14]],"date-time":"2026-04-14T18:20:18Z","timestamp":1776190818913,"version":"3.50.1"},"reference-count":54,"publisher":"Elsevier BV","license":[{"start":{"date-parts":[[2026,7,1]],"date-time":"2026-07-01T00:00:00Z","timestamp":1782864000000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/www.elsevier.com\/tdm\/userlicense\/1.0\/"},{"start":{"date-parts":[[2026,7,1]],"date-time":"2026-07-01T00:00:00Z","timestamp":1782864000000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/www.elsevier.com\/legal\/tdmrep-license"},{"start":{"date-parts":[[2026,7,1]],"date-time":"2026-07-01T00:00:00Z","timestamp":1782864000000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-017"},{"start":{"date-parts":[[2026,7,1]],"date-time":"2026-07-01T00:00:00Z","timestamp":1782864000000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-037"},{"start":{"date-parts":[[2026,7,1]],"date-time":"2026-07-01T00:00:00Z","timestamp":1782864000000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-012"},{"start":{"date-parts":[[2026,7,1]],"date-time":"2026-07-01T00:00:00Z","timestamp":1782864000000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-029"},{"start":{"date-parts":[[2026,7,1]],"date-time":"2026-07-01T00:00:00Z","timestamp":1782864000000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-004"}],"funder":[{"DOI":"10.13039\/501100017610","name":"Shenzhen Science and Technology Innovation Program","doi-asserted-by":"publisher","award":["KJZD20240903095700001"],"award-info":[{"award-number":["KJZD20240903095700001"]}],"id":[{"id":"10.13039\/501100017610","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100012226","name":"Fundamental Research Funds for the Central Universities","doi-asserted-by":"publisher","award":["B250201038"],"award-info":[{"award-number":["B250201038"]}],"id":[{"id":"10.13039\/501100012226","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["U21B2016"],"award-info":[{"award-number":["U21B2016"]}],"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":["62272145"],"award-info":[{"award-number":["62272145"]}],"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":["62502550"],"award-info":[{"award-number":["62502550"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["elsevier.com","sciencedirect.com"],"crossmark-restriction":true},"short-container-title":["Expert Systems with Applications"],"published-print":{"date-parts":[[2026,7]]},"DOI":"10.1016\/j.eswa.2026.132048","type":"journal-article","created":{"date-parts":[[2026,3,14]],"date-time":"2026-03-14T07:49:24Z","timestamp":1773474564000},"page":"132048","update-policy":"https:\/\/doi.org\/10.1016\/elsevier_cm_policy","source":"Crossref","is-referenced-by-count":0,"special_numbering":"C","title":["Context-aware smart contract comment generation using information retrieval and scenario-driven chain-of-thought"],"prefix":"10.1016","volume":"318","author":[{"ORCID":"https:\/\/orcid.org\/0009-0008-8947-0768","authenticated-orcid":false,"given":"Ben","family":"Wang","sequence":"first","affiliation":[]},{"ORCID":"https:\/\/orcid.org\/0009-0003-9263-1714","authenticated-orcid":false,"given":"Yanxiang","family":"Tong","sequence":"additional","affiliation":[]},{"ORCID":"https:\/\/orcid.org\/0009-0006-8818-1433","authenticated-orcid":false,"given":"Guang","family":"Yang","sequence":"additional","affiliation":[]},{"ORCID":"https:\/\/orcid.org\/0009-0006-8039-4784","authenticated-orcid":false,"given":"Xiao","family":"Wang","sequence":"additional","affiliation":[]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7033-5688","authenticated-orcid":false,"given":"Hai","family":"Dong","sequence":"additional","affiliation":[]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2563-083X","authenticated-orcid":false,"given":"Yan","family":"Xiao","sequence":"additional","affiliation":[]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3594-408X","authenticated-orcid":false,"given":"Pengcheng","family":"Zhang","sequence":"additional","affiliation":[]}],"member":"78","reference":[{"key":"10.1016\/j.eswa.2026.132048_bib0001","doi-asserted-by":"crossref","unstructured":"Ahmad, W. U., Chakraborty, S., Ray, B., & Chang, K.-W. (2020). A transformer-based approach for source code summarization. arXiv: 2005.00653,.","DOI":"10.18653\/v1\/2020.acl-main.449"},{"key":"10.1016\/j.eswa.2026.132048_bib0002","series-title":"Proceedings of the 37th IEEE\/ACM international conference on automated software engineering","first-page":"1","article-title":"Few-shot training LLMs for project-specific code-summarization","author":"Ahmed","year":"2022"},{"key":"10.1016\/j.eswa.2026.132048_bib0003","series-title":"Proceedings of the ACL workshop on intrinsic and extrinsic evaluation measures for machine translation and\/or summarization","first-page":"65","article-title":"Meteor: An automatic metric for MT evaluation with improved correlation with human judgments","author":"Banerjee","year":"2005"},{"issue":"3","key":"10.1016\/j.eswa.2026.132048_bib0004","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3391195","article-title":"A survey on ethereum systems security: Vulnerabilities, attacks, and defenses","volume":"53","author":"Chen","year":"2020","journal-title":"ACM Computing Surveys (CSUR)"},{"issue":"2","key":"10.1016\/j.eswa.2026.132048_bib0005","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3488245","article-title":"Why do smart contracts self-destruct? Investigating the selfdestruct function on ethereum","volume":"31","author":"Chen","year":"2021","journal-title":"ACM Transactions on Software Engineering and Methodology (TOSEM)"},{"issue":"1","key":"10.1016\/j.eswa.2026.132048_bib0006","doi-asserted-by":"crossref","first-page":"37","DOI":"10.1177\/001316446002000104","article-title":"A coefficient of agreement for nominal scales","volume":"20","author":"Cohen","year":"1960","journal-title":"Educational and Psychological Measurement"},{"issue":"5","key":"10.1016\/j.eswa.2026.132048_bib0007","doi-asserted-by":"crossref","first-page":"378","DOI":"10.1037\/h0031619","article-title":"Measuring nominal scale agreement among many raters","volume":"76","author":"Fleiss","year":"1971","journal-title":"Psychological Bulletin"},{"key":"10.1016\/j.eswa.2026.132048_bib0008","unstructured":"Fried, D., Aghajanyan, A., Lin, J., Wang, S., Wallace, E., Shi, F., Zhong, R., Yih, W.-t., Zettlemoyer, L., & Lewis, M. (2022). Incoder: A generative model for code infilling and synthesis. arXiv: 2204.05999,."},{"issue":"5","key":"10.1016\/j.eswa.2026.132048_bib0009","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3641846","article-title":"sGuard+: Machine learning guided rule-based automated vulnerability repair on smart contracts","volume":"33","author":"Gao","year":"2024","journal-title":"ACM Transactions on Software Engineering and Methodology"},{"key":"10.1016\/j.eswa.2026.132048_bib0010","series-title":"2023 38th IEEE\/ACM international conference on automated software engineering (ASE)","first-page":"761","article-title":"What makes good in-context demonstrations for code intelligence tasks with LLMs?","author":"Gao","year":"2023"},{"issue":"1","key":"10.1016\/j.eswa.2026.132048_bib0011","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3412845","article-title":"Technical q8a site answer recommendation via question boosting","volume":"30","author":"Gao","year":"2020","journal-title":"ACM Transactions on Software Engineering and Methodology (TOSEM)"},{"issue":"3","key":"10.1016\/j.eswa.2026.132048_bib0012","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3550150","article-title":"I know what you are searching for: Code snippet recommendation from stack overflow posts","volume":"32","author":"Gao","year":"2023","journal-title":"ACM Transactions on Software Engineering and Methodology"},{"key":"10.1016\/j.eswa.2026.132048_bib0013","series-title":"Proceedings of the 46th IEEE\/ACM international conference on software engineering","first-page":"1","article-title":"Large language models are few-shot summarizers: Multi-intent comment generation via in-context learning","author":"Geng","year":"2024"},{"key":"10.1016\/j.eswa.2026.132048_bib0014","unstructured":"Guo, D., Ren, S., Lu, S., Feng, Z., Tang, D., Liu, S., Zhou, L., Duan, N., Svyatkovskiy, A., Fu, S. et al. (2020). GraphcodeBERT: Pre-training code representations with data flow. arXiv: 2009.08366,."},{"key":"10.1016\/j.eswa.2026.132048_bib0015","series-title":"Proceedings of the 32nd ACM\/IEEE international conference on software engineering-volume 2","first-page":"223","article-title":"Supporting program comprehension with source code summarization","author":"Haiduc","year":"2010"},{"key":"10.1016\/j.eswa.2026.132048_bib0016","series-title":"2010 17th working conference on reverse engineering","first-page":"35","article-title":"On the use of automated text summarization techniques for summarizing source code","author":"Haiduc","year":"2010"},{"key":"10.1016\/j.eswa.2026.132048_bib0017","series-title":"2023 38th IEEE\/ACM international conference on automated software engineering (ASE)","first-page":"294","article-title":"Smartcoco: Checking comment-code inconsistency in smart contracts via constraint propagation and binding","author":"Hao","year":"2023"},{"key":"10.1016\/j.eswa.2026.132048_bib0018","series-title":"Financial cryptography and data security: 24th international conference, FC 2020, Kota Kinabalu, Malaysia, February 10\u201314, 2020 revised selected papers 24","first-page":"654","article-title":"Characterizing code clones in the ethereum smart contract ecosystem","author":"He","year":"2020"},{"key":"10.1016\/j.eswa.2026.132048_bib0019","series-title":"2021 36th IEEE\/ACM international conference on automated software engineering (ASE)","first-page":"5","article-title":"Automating user notice generation for smart contract functions","author":"Hu","year":"2021"},{"key":"10.1016\/j.eswa.2026.132048_bib0020","doi-asserted-by":"crossref","first-page":"2179","DOI":"10.1007\/s10664-019-09730-9","article-title":"Deep code comment generation with hybrid lexical and syntactical information","volume":"25","author":"Hu","year":"2020","journal-title":"Empirical Software Engineering"},{"key":"10.1016\/j.eswa.2026.132048_bib0021","series-title":"Proceedings of the twenty-seventh international joint conference on artificial intelligence","first-page":"2269","article-title":"Summarizing source code with transferred API knowledge","author":"Hu","year":"2018"},{"key":"10.1016\/j.eswa.2026.132048_bib0022","series-title":"Proceedings of the 44th international conference on software engineering","first-page":"1693","article-title":"Practitioners\u2019 expectations on automated code comment generation","author":"Hu","year":"2022"},{"key":"10.1016\/j.eswa.2026.132048_bib0023","doi-asserted-by":"crossref","unstructured":"Huang, J., Tang, D., Zhong, W., Lu, S., Shou, L., Gong, M., Jiang, D., & Duan, N. (2021). WhiteningBERT: An easy unsupervised sentence embedding approach. arXiv: 2104.01767,.","DOI":"10.18653\/v1\/2021.findings-emnlp.23"},{"key":"10.1016\/j.eswa.2026.132048_bib0024","unstructured":"Huang, J., Zhao, J., Rong, Y., Guo, Y., He, Y., & Chen, H. (2023). Code representation pre-training with complements from program executions. arXiv: 2309.09980,."},{"key":"10.1016\/j.eswa.2026.132048_bib0025","series-title":"Introduction to transformers for NLP: With the hugging face library and models to solve problems","first-page":"51","article-title":"Hugging face","author":"Jain","year":"2022"},{"key":"10.1016\/j.eswa.2026.132048_bib0026","unstructured":"Klyuchinskaya, N., Jones, M. P., Lee, J., Paul, M., & Eisner, J. (2018). Nlgeval: A toolkit for evaluating text generation. https:\/\/github.com\/Maluuba\/nlg-eval."},{"key":"10.1016\/j.eswa.2026.132048_bib0027","series-title":"2019 IEEE\/ACM 41st international conference on software engineering (ICSE)","first-page":"795","article-title":"A neural model for generating natural language summaries of program subroutines","author":"LeClair","year":"2019"},{"key":"10.1016\/j.eswa.2026.132048_bib0028","series-title":"Text summarization branches out","first-page":"74","article-title":"Rouge: A package for automatic evaluation of summaries","author":"Lin","year":"2004"},{"key":"10.1016\/j.eswa.2026.132048_bib0029","series-title":"Proceedings of the IEEE\/ACM 46th international conference on software engineering","first-page":"1","article-title":"Evaluating code summarization techniques: A new metric and an empirical characterization","author":"Mastropaolo","year":"2024"},{"key":"10.1016\/j.eswa.2026.132048_bib0030","series-title":"Proceedings of the 40th annual meeting of the association for computational linguistics","first-page":"311","article-title":"Bleu: a method for automatic evaluation of machine translation","author":"Papineni","year":"2002"},{"key":"10.1016\/j.eswa.2026.132048_bib0031","series-title":"2017 IEEE\/ACM 14th international conference on mining software repositories (MSR)","first-page":"227","article-title":"Classifying code comments in java open-source software systems","author":"Pascarella","year":"2017"},{"key":"10.1016\/j.eswa.2026.132048_bib0032","doi-asserted-by":"crossref","DOI":"10.1016\/j.infsof.2022.107065","article-title":"Machine translation-based fine-grained comments generation for solidity smart contracts","volume":"153","author":"Shi","year":"2023","journal-title":"Information and Software Technology"},{"key":"10.1016\/j.eswa.2026.132048_bib0033","series-title":"Proceedings of the 44th international conference on software engineering","first-page":"1597","article-title":"On the evaluation of neural code summarization","author":"Shi","year":"2022"},{"key":"10.1016\/j.eswa.2026.132048_bib0034","series-title":"Proceedings of the 30th ACM joint european software engineering conference and symposium on the foundations of software engineering","first-page":"107","article-title":"Are we building on the rock? on the importance of data preprocessing for code summarization","author":"Shi","year":"2022"},{"issue":"1","key":"10.1016\/j.eswa.2026.132048_bib0035","doi-asserted-by":"crossref","first-page":"22","DOI":"10.1007\/s10515-024-00421-4","article-title":"Distilled GPT for source code summarization","volume":"31","author":"Su","year":"2024","journal-title":"Automated Software Engineering"},{"issue":"3","key":"10.1016\/j.eswa.2026.132048_bib0036","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3632742","article-title":"An extractive-and-abstractive framework for source code summarization","volume":"33","author":"Sun","year":"2024","journal-title":"ACM Transactions on Software Engineering and Methodology"},{"key":"10.1016\/j.eswa.2026.132048_bib0037","unstructured":"Sun, W., Fang, C., You, Y., Miao, Y., Liu, Y., Li, Y., Deng, G., Huang, S., Chen, Y., Zhang, Q. et al. (2023). Automatic code summarization via chatgpt: How far are we?arXiv: 2305.12865,."},{"key":"10.1016\/j.eswa.2026.132048_bib0038","series-title":"2025 IEEE\/ACM 47th international conference on software engineering (ICSE)","first-page":"1882-1894","article-title":"Source code summarization in the era of large language models","author":"Sun","year":"2025"},{"key":"10.1016\/j.eswa.2026.132048_bib0039","series-title":"Proceedings of the IEEE conference on computer vision and pattern recognition","first-page":"4566","article-title":"Cider: Consensus-based image description evaluation","author":"Vedantam","year":"2015"},{"key":"10.1016\/j.eswa.2026.132048_bib0040","doi-asserted-by":"crossref","DOI":"10.1145\/3750042","article-title":"A review of learning-based smart contract vulnerability detection: A perspective on code representation","author":"Wang","year":"2025","journal-title":"ACM Transactions on Software Engineering and Methodology"},{"key":"10.1016\/j.eswa.2026.132048_bib0041","doi-asserted-by":"crossref","unstructured":"Wang, Y., Wang, W., Joty, S., & Hoi, S. C. H. (2021). Codet5: Identifier-aware unified pre-trained encoder-decoder models for code understanding and generation. arXiv: 2109.00859,.","DOI":"10.18653\/v1\/2021.emnlp-main.685"},{"key":"10.1016\/j.eswa.2026.132048_bib0042","series-title":"Experimentation in software engineering","volume":"vol. 236","author":"Wohlin","year":"2012"},{"key":"10.1016\/j.eswa.2026.132048_bib0043","series-title":"2015 IEEE 22nd international conference on software analysis, evolution, and reengineering (SANER)","first-page":"380","article-title":"Clocom: Mining existing source code for automatic comment generation","author":"Wong","year":"2015"},{"key":"10.1016\/j.eswa.2026.132048_bib0044","series-title":"2013 28th IEEE\/ACM international conference on automated software engineering (ASE)","first-page":"562","article-title":"Autocomment: Mining question and answer sites for automatic comment generation","author":"Wong","year":"2013"},{"issue":"3","key":"10.1016\/j.eswa.2026.132048_bib0045","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3699597","article-title":"Automating comment generation for smart contract from bytecode","volume":"34","author":"Xiang","year":"2025","journal-title":"ACM Transactions on Software Engineering and Methodology"},{"key":"10.1016\/j.eswa.2026.132048_bib0046","unstructured":"Yang, A., Yang, B., Zhang, B., Hui, B., Zheng, B., Yu, B., Li, C., Liu, D., Huang, F., Wei, H. et al. (2024). Qwen2. 5 Technical report. arXiv: 2412.15115,."},{"key":"10.1016\/j.eswa.2026.132048_bib0047","series-title":"2021 8th international conference on dependable systems and their applications (DSA)","first-page":"30","article-title":"Comformer: Code comment generation via transformer and fusion method-based hybrid code representation","author":"Yang","year":"2021"},{"key":"10.1016\/j.eswa.2026.132048_bib0048","doi-asserted-by":"crossref","DOI":"10.1016\/j.knosys.2021.107858","article-title":"CCGIR: Information retrieval-based code comment generation method for smart contracts","volume":"237","author":"Yang","year":"2022","journal-title":"Knowledge-Based Systems"},{"key":"10.1016\/j.eswa.2026.132048_bib0049","series-title":"2021 IEEE\/ACM 29th international conference on program comprehension (ICPC)","first-page":"1","article-title":"A multi-modal transformer-based code summarization approach for smart contracts","author":"Yang","year":"2021"},{"key":"10.1016\/j.eswa.2026.132048_bib0050","series-title":"2021 IEEE\/ACM 29th international conference on program comprehension (ICPC)","first-page":"1","article-title":"A multi-modal transformer-based code summarization approach for smart contracts","author":"Yang","year":"2021"},{"key":"10.1016\/j.eswa.2026.132048_bib0051","doi-asserted-by":"crossref","DOI":"10.1016\/j.infsof.2024.107405","article-title":"Automatic smart contract comment generation via large language models and in-context learning","volume":"168","author":"Zhao","year":"2024","journal-title":"Information and Software Technology"},{"issue":"6","key":"10.1016\/j.eswa.2026.132048_bib0052","doi-asserted-by":"crossref","first-page":"1360","DOI":"10.1109\/TSE.2024.3383422","article-title":"Dappscan: building large-scale datasets for smart contract weaknesses in dapp projects","volume":"50","author":"Zheng","year":"2024","journal-title":"IEEE Transactions on Software Engineering"},{"issue":"3","key":"10.1016\/j.eswa.2026.132048_bib0053","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3631975","article-title":"Deep is better? An empirical comparison of information retrieval and deep learning approaches to code summarization","volume":"33","author":"Zhu","year":"2024","journal-title":"ACM Transactions on Software Engineering and Methodology"},{"issue":"10","key":"10.1016\/j.eswa.2026.132048_bib0054","doi-asserted-by":"crossref","first-page":"2084","DOI":"10.1109\/TSE.2019.2942301","article-title":"Smart contract development: Challenges and opportunities","volume":"47","author":"Zou","year":"2019","journal-title":"IEEE transactions on software engineering"}],"container-title":["Expert Systems with Applications"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/api.elsevier.com\/content\/article\/PII:S0957417426009619?httpAccept=text\/xml","content-type":"text\/xml","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/api.elsevier.com\/content\/article\/PII:S0957417426009619?httpAccept=text\/plain","content-type":"text\/plain","content-version":"vor","intended-application":"text-mining"}],"deposited":{"date-parts":[[2026,4,14]],"date-time":"2026-04-14T17:28:35Z","timestamp":1776187715000},"score":1,"resource":{"primary":{"URL":"https:\/\/linkinghub.elsevier.com\/retrieve\/pii\/S0957417426009619"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,7]]},"references-count":54,"alternative-id":["S0957417426009619"],"URL":"https:\/\/doi.org\/10.1016\/j.eswa.2026.132048","relation":{},"ISSN":["0957-4174"],"issn-type":[{"value":"0957-4174","type":"print"}],"subject":[],"published":{"date-parts":[[2026,7]]},"assertion":[{"value":"Elsevier","name":"publisher","label":"This article is maintained by"},{"value":"Context-aware smart contract comment generation using information retrieval and scenario-driven chain-of-thought","name":"articletitle","label":"Article Title"},{"value":"Expert Systems with Applications","name":"journaltitle","label":"Journal Title"},{"value":"https:\/\/doi.org\/10.1016\/j.eswa.2026.132048","name":"articlelink","label":"CrossRef DOI link to publisher maintained version"},{"value":"article","name":"content_type","label":"Content Type"},{"value":"\u00a9 2026 Elsevier Ltd. All rights are reserved, including those for text and data mining, AI training, and similar technologies.","name":"copyright","label":"Copyright"}],"article-number":"132048"}}