{"title":"A Multilanguage Source Code Retrieval System Using Structural-Semantic Fingerprints ","authors":"Mohamed Amine Ouddan, Hassane Essafi","volume":3,"journal":"International Journal of Computer and Systems Engineering","pagesStart":630,"pagesEnd":636,"ISSN":"1307-6892","URL":"https:\/\/publications.waset.org\/pdf\/12393","abstract":"Source code retrieval is of immense importance in the software engineering field. The complex tasks of retrieving and extracting information from source code documents is vital in the development cycle of the large software systems. The two main subtasks which result from these activities are code duplication prevention and plagiarism detection. In this paper, we propose a Mohamed Amine Ouddan, and Hassane Essafi source code retrieval system based on two-level fingerprint representation, respectively the structural and the semantic information within a source code. A sequence alignment technique is applied on these fingerprints in order to quantify the similarity between source code portions. The specific purpose of the system is to detect plagiarism and duplicated code between programs written in different programming languages belonging to the same class, such as C, C\u00b5, Java and CSharp. These four languages are supported by the actual version of the system which is designed such that it may be easily adapted for any programming language. ","references":"[1] M. Fowler and K. Beck, Improving the Design of Existing Code,\r\nAddison-Wesley Professional, 1999.\r\n[2] J. Kerievsky, Refactoring to Patterns, Addison-Wesley Professional,\r\n2004.\r\n[3] J.-P. Retaill\u00e9, Refactoring des applications Java\/J2EE, Eyrolles, 2005.\r\n[4] E.L. Burd and M. Munro, \"Investigating the Maintenance Implications\r\nof the Replication of Code\", International Conference on Software\r\nMaintenance, IEEE Computer Society, Bari, Italy, 1-3 October1997.\r\n[5] C. Kapser and M.W. Godfrey, \"Toward a taxonomy of clones in source\r\ncode: A case study\", In Proceedings of the First International Workshop\r\non Evolution of Large-scale Industrial Software Applications (ELISA),\r\nIEEE, September, 2003.\r\n[6] S. Ducasse, M. Rieger, and S. Demeyer. \"A language independent\r\napproach for detecting duplicated code\", International Conference on\r\nSoftware Maintenance, IEEE Computer Society, Oxford, England, 1999,\r\npages 109-118.\r\n[7] B.S. Baker, \"On finding duplication and near-duplication in large\r\nsoftware system\", Proceedings of Second Working Conference on\r\nReverse Engineering, 1995.\r\n[8] M. Halstead, \"Elements of Software Science\". Elsevier, New York,\r\n1977.\r\n[9] K. Ottenstein, \"An algorithmic approach to the detection and prevention\r\nof plagiarism\", ACM SIGCSE Bull, Vol 8, 1976, pages 30-41.\r\n[10] J. Donaldson, A. Lancaster, and P. Sposato, \"A plagiarism detection\r\nsystem\", ACM SIGCSE Bull, vol 13, 1981, pages15-20.\r\n[11] J.A. Faidhi and S.K. Robinson, \"An empirical approach for detecting\r\nprogram similarity and plagiarism within a university programming\r\nenvironment\", Computer Education, Vol. 11, 1987, pages 11-19.\r\n[12] K. Verco and M. Wise, \"Software for detecting suspected plagiarism:\r\ncomparing structure and attribute counting systems\", Proceedings of the\r\nFirst Australian Conference on Computer Science Education, In J.\r\nRosenberg, editor, ACM Press, 1996.\r\n[13] J.F. Sowa, \"Conceptual structures: information processing in mind and\r\nmachine\", In Proceedings of the 1993 ACM\/SIGAPP symposium on\r\napplied computing, ACM Press, 1993, pages 476-481.\r\n[14] G. Mishne and M. Rijke, \"Source Code Retrieval using Conceptual\r\nSimilarity\", Language & Inference Technology Group University of\r\nAmsterdam, 2004.\r\n[15] M. Wise, \"YAP3: improved detection of similarities in computer\r\nprogram and other text\", In Proc. 27th SIGCSE Technical Symp. on\r\nComputer Science Education, Philadelphia USA, February 15-18, 1996,\r\npages 130-134.\r\n[16] L. Prechelt, G. Malpohl, and M. Philippsen, \"Finding plagiarisms\r\namong a set of programs with Jplag\", Technical Report No. 1\/00,\r\nUniversity of Karlsruhe, Department of Informatics, March 2000.\r\n[17] A. Aiken, \"MOSS: a system for detecting software plagiarism\",\r\nUniversity of Berkeley, CA, available\r\nhttp:\/\/www.cs.berkeley.edu\/~aiken\/moss.html,1998.\r\n[18] C.A.R. Hoare, \"Some Properties of Predicate Transformers\", Journal of\r\nthe ACM, 25(3), July, 1978, pages 461-480.\r\n[19] M.A. Ouddan and H. Essafi, \" Caract\u00e9risation de Documents Code\r\nSource Bas\u00e9e sur un Dictionnaire de Grammaire: Application \u251c\u00e1 la\r\nD\u00e9tection de Plagiats\", International Conference on Sciences of\r\nElectronic, Technology of Information and Telecommunications, SETIT\r\n2007, IEEE, Tunisia, 25-29 Mars, 2007.\r\n[20] J. Helfman, \"Dotplot Patterns: A Literal Look at Pattern Languages\",\r\nTAPOS, 2(1), 1995, pages 31-41.\r\n[21] M.A. Ouddan, S. Sayah, M. Ta\u00efleb and H.Essafi, \"Audio Database\r\nRetrieval Based on Sequence Alignment\", ICSES'06, International\r\nConference on Signals and Electronic Systems, Poland 17-20 Septembre\r\n2006.\r\n[22] http:\/\/www.antlr.org\/","publisher":"World Academy of Science, Engineering and Technology","index":"Open Science Index 3, 2007"}