{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,18]],"date-time":"2026-06-18T04:06:26Z","timestamp":1781755586384,"version":"3.54.5"},"reference-count":46,"publisher":"Springer Science and Business Media LLC","issue":"1","license":[{"start":{"date-parts":[[2023,3,6]],"date-time":"2023-03-06T00:00:00Z","timestamp":1678060800000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/www.springernature.com\/gp\/researchers\/text-and-data-mining"},{"start":{"date-parts":[[2023,3,6]],"date-time":"2023-03-06T00:00:00Z","timestamp":1678060800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.springernature.com\/gp\/researchers\/text-and-data-mining"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Autom Softw Eng"],"published-print":{"date-parts":[[2023,5]]},"DOI":"10.1007\/s10515-023-00376-y","type":"journal-article","created":{"date-parts":[[2023,3,6]],"date-time":"2023-03-06T09:04:04Z","timestamp":1678093444000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":3,"title":["AdaComplete: improve DL-based code completion method\u2019s domain adaptability"],"prefix":"10.1007","volume":"30","author":[{"given":"Zejun","family":"Wang","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Fang","family":"Liu","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yiyang","family":"Hao","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zhi","family":"Jin","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2023,3,6]]},"reference":[{"issue":"4","key":"376_CR1","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3212695","volume":"51","author":"M Allamanis","year":"2018","unstructured":"Allamanis, M., Barr, E.T., Devanbu, P., et al.: A survey of machine learning for big code and naturalness. ACM Comput. Surv. (CSUR) 51(4), 1\u201337 (2018)","journal-title":"ACM Comput. Surv. (CSUR)"},{"key":"376_CR2","unstructured":"Alon, U., Sadaka, R., Levy, O., et\u00a0al.: Structural language models of code. In: Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, Proceedings of Machine Learning Research, vol 119. PMLR, pp 245\u2013256, (2020) http:\/\/proceedings.mlr.press\/v119\/alon20a.html"},{"key":"376_CR3","unstructured":"Bakhtin, A., Szlam, A., Ranzato, M., et\u00a0al.: Lightweight adaptive mixture of neural and n-gram language models.(2018) arXiv e-prints arXiv\u20131804"},{"key":"376_CR4","unstructured":"Barone, AVM., Haddow, B., Germann, U., et\u00a0al.: Regularization techniques for fine-tuning in neural machine translation. (2017) arXiv preprint arXiv:1707.09920"},{"key":"376_CR5","unstructured":"Bhoopchand, A., Rockt\u00e4schel, T., Barr, E., et\u00a0al.: Learning python code suggestion with a sparse pointer network. (2016) arXiv preprint arXiv:1611.08307"},{"issue":"1","key":"376_CR6","first-page":"31","volume":"18","author":"PF Brown","year":"1992","unstructured":"Brown, P.F., Della Pietra, S.A., Della Pietra, V.J., et al.: An estimate of an upper bound for the entropy of english. Comput. Linguist. 18(1), 31\u201340 (1992)","journal-title":"Comput. Linguist."},{"key":"376_CR7","doi-asserted-by":"publisher","unstructured":"Bruch, M., Monperrus, M., Mezini, M.: Learning from examples to improve code completion systems. In: van Vliet H, Issarny V (eds) Proceedings of the 7th joint meeting of the European Software Engineering Conference and the ACM SIGSOFT International Symposium on Foundations of Software Engineering, 2009, Amsterdam, The Netherlands, August 24-28, 2009. ACM, pp 213\u2013222, (2009) https:\/\/doi.org\/10.1145\/1595696.1595728,","DOI":"10.1145\/1595696.1595728"},{"key":"376_CR8","volume-title":"Using Random Forest to Learn Imbalanced Data","author":"C Chen","year":"2004","unstructured":"Chen, C., Breiman, L.: Using Random Forest to Learn Imbalanced Data. University of California, Berkeley (2004)"},{"issue":"4","key":"376_CR9","doi-asserted-by":"publisher","first-page":"359","DOI":"10.1006\/csla.1999.0128","volume":"13","author":"SF Chen","year":"1999","unstructured":"Chen, S.F., Goodman, J.: An empirical study of smoothing techniques for language modeling. Comput. Speech Lang. 13(4), 359\u2013394 (1999)","journal-title":"Comput. Speech Lang."},{"key":"376_CR10","doi-asserted-by":"crossref","unstructured":"Ciniselli, M., Cooper, N., Pascarella, L., et\u00a0al.: An empirical study on the usage of bert models for code completion. In: 2021 IEEE\/ACM 18th International Conference on Mining Software Repositories (MSR), IEEE, pp. 108\u2013119 (2021)","DOI":"10.1109\/MSR52588.2021.00024"},{"key":"376_CR11","unstructured":"Corbi\u00e8re, C., Thome, N., Bar-Hen, A., et\u00a0al.: Addressing failure prediction by learning model confidence. In: Wallach HM, Larochelle H, Beygelzimer A, et\u00a0al (eds) Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pp. 2898\u20132909, (2019) https:\/\/proceedings.neurips.cc\/paper\/2019\/hash\/757f843a169cc678064d9530d12a1881-Abstract.html"},{"issue":"3","key":"376_CR12","doi-asserted-by":"publisher","first-page":"273","DOI":"10.1007\/BF00994018","volume":"20","author":"C Cortes","year":"1995","unstructured":"Cortes, C., Vapnik, V.: Support-vector networks. Mach. Learn 20(3), 273\u2013297 (1995). https:\/\/doi.org\/10.1007\/BF00994018","journal-title":"Mach. Learn"},{"key":"376_CR13","doi-asserted-by":"crossref","unstructured":"Dai, Z., Yang, Z., Yang, Y., et\u00a0al.: Transformer-xl: Attentive language models beyond a fixed-length context. (2019) arXiv preprint arXiv:1901.02860","DOI":"10.18653\/v1\/P19-1285"},{"key":"376_CR14","unstructured":"Dam, HK., Tran, T., Pham, T.: A deep language model for software code. (2016) arXiv preprint arXiv:1608.02715"},{"key":"376_CR15","unstructured":"Devlin, J., Chang, MW., Lee, K., et\u00a0al.: Bert: Pre-training of deep bidirectional transformers for language understanding. (2018) arXiv preprint arXiv:1810.04805"},{"key":"376_CR16","doi-asserted-by":"crossref","unstructured":"Feng, Z., Guo, D., Tang, D., et\u00a0al.: Codebert: A pre-trained model for programming and natural languages. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Findings, pp 1536\u20131547 (2020)","DOI":"10.18653\/v1\/2020.findings-emnlp.139"},{"issue":"2","key":"376_CR17","first-page":"23","volume":"12","author":"P Gage","year":"1994","unstructured":"Gage, P.: A new algorithm for data compression. C Users J. 12(2), 23\u201338 (1994)","journal-title":"C Users J."},{"key":"376_CR18","doi-asserted-by":"crossref","unstructured":"Hellendoorn, VJ., Devanbu, P.: Are deep neural networks the best choice for modeling source code? In: Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering, pp 763\u2013773 (2017)","DOI":"10.1145\/3106237.3106290"},{"key":"376_CR19","doi-asserted-by":"publisher","unstructured":"Hindle, A., Barr, ET., Su, Z., et\u00a0al.: On the naturalness of software. In: Glinz M, Murphy GC, Pezz\u00e8 M (eds) 34th International Conference on Software Engineering, ICSE 2012, June 2-9, 2012, Zurich, Switzerland. IEEE Computer Society, pp. 837\u2013847, (2012) https:\/\/doi.org\/10.1109\/ICSE.2012.6227135,","DOI":"10.1109\/ICSE.2012.6227135"},{"key":"376_CR20","unstructured":"Ho, TK.: Random decision forests. In: Proceedings of 3rd international conference on document analysis and recognition, IEEE, pp. 278\u2013282 (1995)"},{"key":"376_CR21","doi-asserted-by":"crossref","unstructured":"Hou, D., Pletcher, DM.: Towards a better code completion system by api grouping, filtering, and popularity-based ranking. In: Proceedings of the 2nd International Workshop on Recommendation Systems for Software Engineering, pp. 26\u201330 (2010)","DOI":"10.1145\/1808920.1808926"},{"key":"376_CR22","doi-asserted-by":"publisher","unstructured":"Kamath, A., Jia, R., Liang, P.: Selective question answering under domain shift. In: Jurafsky D, Chai J, Schluter N, et\u00a0al (eds) Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL 2020, Online, July 5-10, 2020. Association for Computational Linguistics, pp. 5684\u20135696, (2020) https:\/\/doi.org\/10.18653\/v1\/2020.acl-main.503,","DOI":"10.18653\/v1\/2020.acl-main.503"},{"key":"376_CR23","doi-asserted-by":"crossref","unstructured":"Karampatsis, RM., Babii, H., Robbes, R., et\u00a0al.: Big code!= big vocabulary: Open-vocabulary models for source code. In: 2020 IEEE\/ACM 42nd International Conference on Software Engineering (ICSE), IEEE, pp. 1073\u20131085 (2020)","DOI":"10.1145\/3377811.3380342"},{"key":"376_CR24","doi-asserted-by":"crossref","unstructured":"Kim, S., Zhao, J., Tian, Y., et\u00a0al.: Code prediction by feeding trees to transformers. (2020) arXiv preprint arXiv:2003.13848","DOI":"10.1109\/ICSE43902.2021.00026"},{"key":"376_CR25","doi-asserted-by":"publisher","unstructured":"Kim, S., Zhao, J., Tian, Y., et\u00a0al.: Code prediction by feeding trees to transformers. In: 43rd IEEE\/ACM International Conference on Software Engineering, ICSE 2021, Madrid, Spain, 22-30 May 2021. IEEE, pp. 150\u2013162, (2021) https:\/\/doi.org\/10.1109\/ICSE43902.2021.00026,","DOI":"10.1109\/ICSE43902.2021.00026"},{"key":"376_CR26","doi-asserted-by":"crossref","unstructured":"Kuang, K., Xiong, R., Cui, P., et\u00a0al.: Stable prediction with model misspecification and agnostic distribution shift. In: The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applicationsof Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020. AAAI Press, pp. 4485\u20134492, (2020) https:\/\/aaai.org\/ojs\/index.php\/AAAI\/article\/view\/5876","DOI":"10.1609\/aaai.v34i04.5876"},{"key":"376_CR27","doi-asserted-by":"publisher","unstructured":"Li, J., Wang, Y., Lyu, MR., et\u00a0al.: Code completion with neural attention and pointer networks. In: Lang J (ed) Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI 2018, July 13-19, 2018, Stockholm, Sweden. ijcai.org, pp. 4159\u20134165, (2018) https:\/\/doi.org\/10.24963\/ijcai.2018\/578,","DOI":"10.24963\/ijcai.2018\/578"},{"key":"376_CR28","unstructured":"Liu, C., Wang, X., Shin, R., et\u00a0al.: Neural code completion. (2017) https:\/\/openreview.net\/forum?id=rJbPBt9lg"},{"key":"376_CR29","doi-asserted-by":"crossref","unstructured":"Liu, F., Li, G., Wei, B., et\u00a0al.: A self-attentional neural architecture for code completion with multi-task learning. In: Proceedings of the 28th International Conference on Program Comprehension, pp. 37\u201347 (2020a)","DOI":"10.1145\/3387904.3389261"},{"key":"376_CR30","doi-asserted-by":"crossref","unstructured":"Liu, F., Li, G., Zhao, Y., et\u00a0al.: Multi-task learning based pre-trained language model for code completion. In: 2020 35th IEEE\/ACM International Conference on Automated Software Engineering (ASE), IEEE, pp. 473\u2013485 (2020b)","DOI":"10.1145\/3324884.3416591"},{"key":"376_CR31","doi-asserted-by":"crossref","unstructured":"Nguyen, TT., Nguyen, AT., Nguyen, HA., et\u00a0al.: A statistical semantic language model for source code. In: Proceedings of the 2013 9th Joint Meeting on Foundations of Software Engineering, pp. 532\u2013542 (2013)","DOI":"10.1145\/2491411.2491458"},{"key":"376_CR32","first-page":"2825","volume":"12","author":"F Pedregosa","year":"2011","unstructured":"Pedregosa, F., Varoquaux, G., Gramfort, A., et al.: Scikit-learn: machine learning in python. J. Mach. Learn. Res. 12, 2825\u20132830 (2011)","journal-title":"J. Mach. Learn. Res."},{"issue":"8","key":"376_CR33","first-page":"9","volume":"1","author":"A Radford","year":"2019","unstructured":"Radford, A., Wu, J., Child, R., et al.: Language models are unsupervised multitask learners. OpenAI Blog 1(8), 9 (2019)","journal-title":"OpenAI Blog"},{"key":"376_CR34","doi-asserted-by":"crossref","unstructured":"Raychev, V., Vechev, MT., Yahav, E.: Code completion with statistical language models. In: PLDI. ACM, pp. 419\u2013428 (2014)","DOI":"10.1145\/2666356.2594321"},{"issue":"2","key":"376_CR35","doi-asserted-by":"publisher","first-page":"181","DOI":"10.1007\/s10515-010-0064-x","volume":"17","author":"R Robbes","year":"2010","unstructured":"Robbes, R., Lanza, M.: Improving code completion with program history. Autom. Softw. Eng. 17(2), 181\u2013212 (2010). https:\/\/doi.org\/10.1007\/s10515-010-0064-x","journal-title":"Autom. Softw. Eng."},{"key":"376_CR36","doi-asserted-by":"crossref","unstructured":"Roos, P.: Fast and precise statistical code completion. In: ICSE (2). IEEE Computer Society, pp. 757\u2013759 (2015)","DOI":"10.1109\/ICSE.2015.240"},{"key":"376_CR37","doi-asserted-by":"publisher","unstructured":"Saenko, K., Kulis, B., Fritz, M., et\u00a0al.: Adapting visual category models to new domains. In: Daniilidis K, Maragos P, Paragios N (eds) Computer Vision - ECCV 2010, 11th European Conference on Computer Vision, Heraklion, Crete, Greece, September 5-11, 2010, Proceedings, Part IV, Lecture Notes in Computer Science, vol 6314. Springer, pp. 213\u2013226, (2010) https:\/\/doi.org\/10.1007\/978-3-642-15561-1_16,","DOI":"10.1007\/978-3-642-15561-1_16"},{"key":"376_CR38","unstructured":"Salton, G., Ross, R., Kelleher, J.: Attentive language models. In: Proceedings of the Eighth International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 441\u2013450 (2017)"},{"key":"376_CR39","doi-asserted-by":"crossref","unstructured":"Tu, Z., Su, Z., Devanbu, P.: On the localness of software. In: Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering, pp. 269\u2013280 (2014)","DOI":"10.1145\/2635868.2635875"},{"key":"376_CR40","unstructured":"Vashishth, S., Yadav, P., Bhandari, M., et\u00a0al.: Confidence-based graph convolutional networks for semi-supervised learning. In: The 22nd International Conference on Artificial Intelligence and Statistics, PMLR, pp. 1792\u20131801 (2019)"},{"key":"376_CR41","unstructured":"Vaswani, A., Shazeer, N., Parmar, N., et\u00a0al.: Attention is all you need. (2017) arXiv preprint arXiv:1706.03762"},{"key":"376_CR42","unstructured":"Vinyals, O., Fortunato, M., Jaitly, N.: Pointer networks. (2015) arXiv preprint arXiv:1506.03134"},{"key":"376_CR43","doi-asserted-by":"publisher","unstructured":"Wang, J., Lan, C., Liu, C., et\u00a0al.: Generalizing to unseen domains: A survey on domain generalization. In: Zhou Z (ed) Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI 2021, Virtual Event \/ Montreal, Canada, 19-27 August 2021. ijcai.org, pp. 4627\u20134635, (2021) https:\/\/doi.org\/10.24963\/ijcai.2021\/628,","DOI":"10.24963\/ijcai.2021\/628"},{"key":"376_CR44","unstructured":"Wang, Y., Li, H.: Code completion by modeling flattened abstract syntax trees as graphs. In: Proceedings of the AAAI Conference on Artificial Intelligence, pp. 14,015\u201314,023 (2021)"},{"issue":"1","key":"376_CR45","doi-asserted-by":"publisher","DOI":"10.1002\/smr.2414","volume":"34","author":"K Yang","year":"2022","unstructured":"Yang, K., Yu, H., Fan, G., et al.: A graph sequence neural architecture for code completion with semantic structure features. J. Softw. Evol. Process 34(1), e2414 (2022)","journal-title":"J. Softw. Evol. Process"},{"issue":"05","key":"376_CR46","doi-asserted-by":"publisher","first-page":"961","DOI":"10.1142\/S0218001407005703","volume":"21","author":"X Yang","year":"2007","unstructured":"Yang, X., Song, Q., Wang, Y.: A weighted support vector machine for data classification. Int. J. Pattern Recogn. Artif. Intell. 21(05), 961\u2013976 (2007)","journal-title":"Int. J. Pattern Recogn. Artif. Intell."}],"container-title":["Automated Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10515-023-00376-y.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10515-023-00376-y\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10515-023-00376-y.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2023,5,4]],"date-time":"2023-05-04T13:11:57Z","timestamp":1683205917000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s10515-023-00376-y"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,3,6]]},"references-count":46,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2023,5]]}},"alternative-id":["376"],"URL":"https:\/\/doi.org\/10.1007\/s10515-023-00376-y","relation":{},"ISSN":["0928-8910","1573-7535"],"issn-type":[{"value":"0928-8910","type":"print"},{"value":"1573-7535","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,3,6]]},"assertion":[{"value":"31 August 2022","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"17 January 2023","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"6 March 2023","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"The authors declare no competing interests.","order":2,"name":"Ethics","group":{"name":"EthicsHeading","label":"Conflict of interest"}}],"article-number":"11"}}