{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,4]],"date-time":"2026-11-04T19:47:10Z","timestamp":1793821630269,"version":"4.6.1"},"reference-count":46,"publisher":"MDPI AG","issue":"1","license":[{"start":{"date-parts":[[2023,1,4]],"date-time":"2023-01-04T00:00:00Z","timestamp":1672790400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Computers"],"abstract":"<jats:p>Source code clones are common in software development as part of reuse practice. However, they are also often a source of errors compromising software maintainability. The existing work on code clone detection mainly focuses on clones in a single programming language. However, nowadays software is increasingly developed on a multilanguage platform on which code is reused across different programming languages. Detecting code clones in such a platform is challenging and has not been studied much. In this paper, we present CLCD-I, a deep neural network-based approach for detecting cross-language code clones by using InferCode which is an embedding technique for source code. The design of our model is twofold: (a) taking as input InferCode embeddings of source code in two different programming languages and (b) forwarding them to a Siamese architecture for comparative processing. We compare the performance of CLCD-I with LSTM autoencoders and the existing approaches on cross-language code clone detection. The evaluation shows the CLCD-I outperforms LSTM autoencoders by 30% on average and the existing approaches by 15% on average.<\/jats:p>","DOI":"10.3390\/computers12010012","type":"journal-article","created":{"date-parts":[[2023,1,4]],"date-time":"2023-01-04T03:27:44Z","timestamp":1672802864000},"page":"12","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":45,"title":["CLCD-I: Cross-Language Clone Detection by Using Deep Learning with InferCode"],"prefix":"10.3390","volume":"12","author":[{"given":"Mohammad A.","family":"Yahya","sequence":"first","affiliation":[{"name":"Computer Science and Engineering Department, Oakland University, Rochester, MI 48309, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7133-9111","authenticated-orcid":false,"given":"Dae-Kyoo","family":"Kim","sequence":"additional","affiliation":[{"name":"Computer Science and Engineering Department, Oakland University, Rochester, MI 48309, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2023,1,4]]},"reference":[{"key":"ref_1","unstructured":"Baxter, I.D., Yahin, A., Moura, L., Sant\u2019Anna, M., and Bier, L. (1998, January 16\u201319). Clone detection using abstract syntax trees. Proceedings of the International Conference on Software Maintenance, Bethesda, MD, USA."},{"key":"ref_2","unstructured":"Di Lucca, G.A., Di Penta, M., and Fasolino, A.R. (2002, January 26\u201329). An approach to identify duplicated web pages. Proceedings of the 26th Annual International Computer Software and Applications, Oxford, UK."},{"key":"ref_3","unstructured":"Monden, A., Nakae, D., Kamiya, T., Sato, S., and Matsumoto, K. (2002, January 4\u20137). Software quality analysis by code clones in industrial legacy software. Proceedings of the 8th IEEE Symposium on Software Metrics, Ottawa, ON, Canada."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Krinke, J. (2007, January 28\u201331). A Study of Consistent and Inconsistent Changes to Code Clones. Proceedings of the 14th Working Conference on Reverse Engineering, Vancouver, BC, Canada.","DOI":"10.1109\/WCRE.2007.7"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"577","DOI":"10.1109\/TSE.2007.70725","article-title":"Comparison and evaluation of clone detection tools","volume":"33","author":"Bellon","year":"2007","journal-title":"IEEE Trans. Softw. Eng."},{"key":"ref_6","first-page":"64","article-title":"A survey on software clone detection research","volume":"541","author":"Roy","year":"2007","journal-title":"Queen\u2019s Sch. Comput. TR"},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Zhang, J., Wang, X., Zhang, H., Sun, H., Wang, K., and Liu, X. (2019, January 25\u201331). A Novel Neural Source Code Representation Based on Abstract Syntax Tree. Proceedings of the 41st IEEE\/ACM International Conference on Software Engineering, Montreal, QC, Canada.","DOI":"10.1109\/ICSE.2019.00086"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Yuan, Y., Kong, W., Hou, G., Hu, Y., Watanabe, M., and Fukuda, A. (2020, January 3\u20136). From Local to Global Semantic Clone Detection. Proceedings of the 6th IEEE International Conference on Dependable Systems and Their Applications, Harbin, China.","DOI":"10.1109\/DSA.2019.00012"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"304","DOI":"10.1109\/TR.2020.3001918","article-title":"FCCA: Hybrid Code Representation for Functional Clone Detection Using Attention Networks","volume":"70","author":"Hua","year":"2020","journal-title":"IEEE Trans. Reliab."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"125062","DOI":"10.1109\/ACCESS.2019.2938825","article-title":"Fast Code Clone Detection Based on Weighted Recursive Autoencoders","volume":"7","author":"Zeng","year":"2019","journal-title":"IEEE Access"},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Wang, W., Li, G., Ma, B., Xia, X., and Jin, Z. (2020, January 18\u201321). Detecting Code Clones with Graph Neural Network and Flow-Augmented Abstract Syntax Tree. Proceedings of the IEEE 27th International Conference on Software Analysis, Evolution and Reengineering, London, ON, Canada.","DOI":"10.1109\/SANER48275.2020.9054857"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"5027198","DOI":"10.1155\/2020\/5027198","article-title":"A Deep Learning Approach for a Source Code Detection Model Using Self-Attention","volume":"2020","author":"Meng","year":"2020","journal-title":"Complexity"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"111141","DOI":"10.1016\/j.jss.2021.111141","article-title":"Deep learning application on code clone detection: A review of current knowledge","volume":"184","author":"Lei","year":"2022","journal-title":"J. Syst. Softw."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Nafi, K.W., Kar, T.S., Roy, B., Roy, C.K., and Schneider, K.A. (2019, January 10\u201315). CLCDSA: Cross Language Code Clone Detection Using Syntactical Features and API Documentation. Proceedings of the 34th IEEE\/ACM International Conference on Automated Software Engineering, San Diego, CA, USA.","DOI":"10.1109\/ASE.2019.00099"},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Perez, D., and Chiba, S. (2019, January 26\u201327). Cross-language clone detection by learning over abstract syntax trees. Proceedings of the 16th IEEE\/ACM International Conference on Mining Software Repositories, Montreal, QC, Canada.","DOI":"10.1109\/MSR.2019.00078"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Bui, N.D., Yu, Y., and Jiang, L. (2021, January 25\u201328). InferCode: Self-Supervised Learning of Code Representations by Predicting Subtrees. Proceedings of the 43rd IEEE\/ACM International Conference on Software Engineering, Virtual.","DOI":"10.1109\/ICSE43902.2021.00109"},{"key":"ref_17","unstructured":"Bromley, J., Guyon, I., LeCun, Y., S\u00e4ckinger, E., and Shah, R. (December, January 29). Signature verification using a \u201csiamese\u201d time delay neural network. Proceedings of the 6th International Conference on Neural Information Processing Systems, Denver, CO, USA."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"White, M., Tufano, M., Vendome, C., and Poshyvanyk, D. (2016, January 3\u20137). Deep Learning Code Fragments for Code Clone Detection. Proceedings of the 31st IEEE\/ACM International Conference on Automated Software Engineering, Singapore.","DOI":"10.1145\/2970276.2970326"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Li, L., Feng, H., Zhuang, W., Meng, N., and Ryder, B. (2017, January 17\u201322). CCLearner: A Deep Learning-Based Clone Detection Approach. Proceedings of the IEEE International Conference on Software Maintenance and Evolution, Shanghai, China.","DOI":"10.1109\/ICSME.2017.46"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Wei, H., and Li, M. (2017, January 19\u201325). Supervised Deep Features for Software Functional Clone Detection by Exploiting Lexical and Syntactical Information in Source Code. Proceedings of the 26th International Joint Conference on Artificial Intelligence, Melbourne, Australia.","DOI":"10.24963\/ijcai.2017\/423"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Zhao, G., and Huang, J. (2018, January 4\u20139). DeepSim: Deep Learning Code Functional Similarity. Proceedings of the 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, Lake Buena Vista, FL, USA.","DOI":"10.1145\/3236024.3236068"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Sheneamer, A. (2018, January 17\u201320). CCDLC Detection Framework-Combining Clustering with Deep Learning Classification for Semantic Clones. Proceedings of the 17th IEEE International Conference on Machine Learning and Applications, Orlando, FL, USA.","DOI":"10.1109\/ICMLA.2018.00111"},{"key":"ref_23","unstructured":"Chen, L., Wei, Y., and Zhang, S. (May, January 30). Capturing Source Code Semantics via Tree-Based Convolution over API-Enhanced AST. Proceedings of the 16th ACM International Conference on Computing Frontiers, Alghero, Italy."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Fang, C., Liu, Z., Shi, Y., Huang, J., and Shi, Q. (2020, January 18\u201322). Functional Code Clone Detection with Syntax and Semantics Fusion Learning. Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis, Virtual.","DOI":"10.1145\/3395363.3397362"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Saini, V., Farmahinifarahani, F., Lu, Y., Baldi, P., and Lopes, C. (2018, January 4\u20139). Oreo: Detection of Clones in the Twilight Zone. Proceedings of the 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, Lake Buena Vista, FL, USA.","DOI":"10.1145\/3236024.3236026"},{"key":"ref_26","unstructured":"Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013). Efficient Estimation of Word Representations in Vector Space. arXiv."},{"key":"ref_27","unstructured":"Narayanan, A., Chandramohan, M., Venkatesan, R., Chen, L., Liu, Y., and Jaiswal, S. (2017). Graph2vec: Learning Distributed Representations of Graphs. arXiv."},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Grover, A., and Leskovec, J. (2016, January 13\u201317). node2vec: Scalable Feature Learning for Networks. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA.","DOI":"10.1145\/2939672.2939754"},{"key":"ref_29","unstructured":"Le, Q., and Mikolov, T. (2014, January 21\u201326). Distributed Representations of Sentences and Documents. Proceedings of the 31st International Conference on Machine Learning, Beijing, China."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Yu, H., Lam, W., Chen, L., Li, G., Xie, T., and Wang, Q. (2019, January 25). Neural Detection of Semantic Code Clones Via Tree-Based Convolution. Proceedings of the 27th IEEE\/ACM International Conference on Program Comprehension, Montreal, QC, Canada.","DOI":"10.1109\/ICPC.2019.00021"},{"key":"ref_31","unstructured":"Koehren, W. (2020, March 20). Neural Network Embeddings Explained. Available online: https:\/\/towardsdatascience.com\/neural-networke\\protect\\discretionary{\\char\\hyphenchar\\font}{}{}mbeddings-explained-4d028e6f0526."},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Wang, C., Gao, J., Jiang, Y., Xing, Z., Zhang, H., Yin, W., Gu, M., and Sun, J. (2019, January 15\u201319). Go-Clone: Graph-Embedding Based Clone Detector for Golang. Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis, Beijing, China.","DOI":"10.1145\/3293882.3338996"},{"key":"ref_33","unstructured":"Gao, Y., Wang, Z., Liu, S., Yang, L., Sang, W., and Cai, Y. (October, January 29). TECCD: A Tree Embedding Approach for Code Clone Detection. Proceedings of the IEEE International Conference on Software Maintenance and Evolution, Cleveland, OH, USA."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Wei, H., and Li, M. (2018, January 13\u201319). Positive and Unlabeled Learning for Detecting Software Functional Clones with Adversarial Training. Proceedings of the 27th International Joint Conference on Artificial Intelligence, Stockholm, Sweden.","DOI":"10.24963\/ijcai.2018\/394"},{"key":"ref_35","unstructured":"Li, Y., Tarlow, D., Brockschmidt, M., and Zemel, R. (2015). Gated Graph Sequence Neural Networks. arXiv."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"61","DOI":"10.1109\/TNN.2008.2005605","article-title":"The Graph Neural Network Model","volume":"20","author":"Scarselli","year":"2009","journal-title":"IEEE Trans. Neural Netw."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"24948","DOI":"10.1109\/ACCESS.2020.2966532","article-title":"Review Sharing via Deep Semi-Supervised Code Clone Detection","volume":"8","author":"Guo","year":"2020","journal-title":"IEEE Access"},{"key":"ref_38","unstructured":"Svajlenko, J., Islam, J.F., Keivanloo, I., Roy, C.K., and Mia, M. (October, January 29). Towards a Big Data Curated Benchmark of Inter-Project Code Clones. Proceedings of the International Conference on Software Maintenance and Evolution, Victoria, BC, Canada."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Mou, L., Li, G., Zhang, L., Wang, T., and Jin, Z. (2016, January 12\u201317). Convolutional Neural Networks over Tree Structures for Programming Language Processing. Proceedings of the 30th AAAI Conference on Artificial Intelligence, Phoenix, AZ, USA.","DOI":"10.1609\/aaai.v30i1.10139"},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Mou, L., Peng, H., Li, G., Xu, Y., Zhang, L., and Jin, Z. (2015). Discriminative neural sentence modeling by tree-based convolution. arXiv.","DOI":"10.18653\/v1\/D15-1279"},{"key":"ref_41","doi-asserted-by":"crossref","unstructured":"Chilowicz, M., Duris, E., and Roussel, G. (2009, January 17\u201319). Syntax tree fingerprinting for source code similarity detection. Proceedings of the 17th IEEE International Conference on Program Comprehension, Vancouver, BC, Canada.","DOI":"10.1109\/ICPC.2009.5090050"},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3290353","article-title":"code2vec: Learning distributed representations of code","volume":"3","author":"Alon","year":"2019","journal-title":"Proc. ACM Program. Lang."},{"key":"ref_43","unstructured":"Alon, U., Brody, S., Levy, O., and Yahav, E. (2018). code2seq: Generating sequences from structured representations of code. arXiv."},{"key":"ref_44","unstructured":"Hadsell, R., Chopra, S., and LeCun, Y. (2006, January 17\u201322). Dimensionality reduction by learning an invariant mapping. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, New York, NY, USA."},{"key":"ref_45","doi-asserted-by":"crossref","unstructured":"Luong, M.T., Pham, H., and Manning, C.D. (2015). Effective approaches to attention-based neural machine translation. arXiv.","DOI":"10.18653\/v1\/D15-1166"},{"key":"ref_46","unstructured":"Bahdanau, D., Cho, K., and Bengio, Y. (2015, January 7\u20139). Neural machine translation by jointly learning to align and translate. Proceedings of the 3rd International Conference on Learning Representations, San Diego, CA, USA."}],"container-title":["Computers"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2073-431X\/12\/1\/12\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T17:58:17Z","timestamp":1760119097000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2073-431X\/12\/1\/12"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,1,4]]},"references-count":46,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2023,1]]}},"alternative-id":["computers12010012"],"URL":"https:\/\/doi.org\/10.3390\/computers12010012","relation":{},"ISSN":["2073-431X"],"issn-type":[{"value":"2073-431X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,1,4]]}}}