• Home
  • Search
  • Identification of Source Code Plagiarism Using a Natural Language Processing (NLP) Approach Based on Code Writing Style Analysis
  • https://doi.org/10.30871/jaic.v9i6.11206Copy DOI Icon

Identification of Source Code Plagiarism Using a Natural Language Processing (NLP) Approach Based on Code Writing Style Analysis

Show More
  • Abstract
  • Literature Map
  • Similar Papers
Abstract

Source code plagiarism identificatio requires a system capable of identifying semantic similarity rather than mere textual resemblance. This study utilized a dataset of 1,000 source code files, which after cleaning resulted in 996 individual code samples collected from GitHub repositories. The dataset included various programming languages (Python, Java, JavaScript, TypeScript, C++), divided into 697 training data, 149 validation data, and 149 testing data. The model employed was CodeBERT, configured with a hidden size of 768, 12 layers, and 12 attention heads. CodeBERT generated vector embeddings for each code sample, which were then projected by a Siamese Network to calculate cosine similarity between code pairs. Testing used a threshold of 0.80 to classify plagiarism. The identification results achieved an accuracy of 96.4%, precision of 95.2%, recall of 97.8%, F1-score of 96.4%, and an error rate of 4.6%. The system produced similarity scores and status labels of “plagiarism detected” or “not detected,” demonstrating the effectiveness of the CodeBERT-based approach for adaptive and intelligent code similarity identificatio.

Similar Papers
  • Conference Article
  • Citations20

MixCode: Enhancing Code Classification by Mixup-Based Data Augmentation

  • Mar 01, 2023
  • Zeming Dong +7
  • PDF
  • Supplementary Content
  • Citations49

Social and Behavioral Determinants of Health in the Era of Artificial Intelligence with Electronic Health Records: A Scoping Review

  • Jan 01, 2021
  • Health Data Science
  • Anusha Bompelli +9
  • PDF
  • Research Article
  • Citations17

Stylometric Fake News Detection Based on Natural Language Processing Using Named Entity Recognition: In-Domain and Cross-Domain Analysis

  • Aug 31, 2023
  • Electronics
  • Chih-Ming Tsai
  • Conference Article
  • Citations14

Engineering Paper] SCC: Automatic Classification of Code Snippets

  • Sep 01, 2018
  • Kamel Alreshedy +4
  • Conference Article
  • Citations4

Automatic Production of an Ontology with NLP: Comparison between a Prolog Based Approach and a Cloud Approach Based on Bluemix Watson Service

  • Jul 01, 2016
  • Beniamino Di Martino +4
  • Research Article
  • Citations45

How to identify class comment types? A multi-language approach for class comment classification

  • Jul 19, 2021
  • Journal of Systems and Software
  • Pooja Rani +4
  • Research Article

Natural language processing for geriatric syndromes: a systematic review of methods, applications, and challenges.

  • Mar 12, 2026
  • BMC medical informatics and decision making
  • Fahrurrozi Rahman +8
  • PDF
  • Research Article
  • Citations6

Large Language Models for Epidemiological Research via Automated Machine Learning: Case Study Using Data From the British National Child Development Study

  • Sep 19, 2023
  • JMIR Medical Informatics
  • Rasmus Wibaek +4
  • Research Article
  • Citations2

Emotion Classification on Social Media Comments Using Categorical Feature Extraction Along With the Bidirectional Encoder-based Recurrent Neural Network Classification

  • Dec 31, 2023
  • WSEAS TRANSACTIONS ON COMPUTERS
  • S Saranya +1
  • Book Chapter

Computational and Cognitive Approaches in Natural Language Processing

  • Dec 27, 2024
  • Akshi Kumar
  • Research Article
  • Citations5

Fractal Analysis of GPT-2 Token Embedding Spaces: Stability and Evolution of Correlation Dimension

  • Oct 17, 2024
  • Fractal and Fractional
  • Minhyeok Lee
  • Research Article
  • Citations50

A universal information theoretic approach to the identification of stopwords

  • Dec 01, 2019
  • Nature Machine Intelligence
  • Martin Gerlach +2
  • Research Article
  • Citations16

Challenges and Opportunities of Using Transformer-Based Multi-Task Learning in NLP Through ML Lifecycle: A Position Paper

  • Apr 30, 2024
  • Natural Language Processing Journal
  • Lovre Torbarina +5
  • Conference Article
  • Citations279

Toward Deep Learning Software Repositories

  • May 01, 2015
  • Martin White +3
  • Research Article

Intelligent JAVA Applications for the Internet and Intranets

  • Jan 01, 1998
  • Scalable Computing Practice and Experience
  • Haklin Kimm
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.