Back to search

The Ohio State University

Empirical Analysis of Code Clones in Mini-Programs

Abstract

dc:description

Mini-programs are lightweight JavaScript programs run within mobile super apps such as WeChat. They take up less storage than native apps, and, like web apps, they do not require installation. Many vendors today offer services (e.g., healthcare, education, shopping) through mini-programs. This thesis investigates the occurrence of cloned mini-programs and the reasons behind. By analyzing 3.98 million mini-programs using Cryptographic Hashing Function (CHF) and Locality Sensitive Hashing (LSH), we systematically detect and characterize the mini-programs based on code similarity. Surprisingly, the results show that 3,379,341 mini-programs have shared identical code with others that involves 100,199 duplicated groups among them. Although a vast number of mini-programs contain identical JavaScript code, we have observed that a significant portion of them feature minor alterations. This is primarily because the majority of these cloned mini-programs are created using templates, with a large percentage of mini-programs being derived from just 25 templates. This emphasizes the prevalent issue of code duplication within the mini-program framework and the popularity of employing templates to streamline mini-program development. These findings hold considerable implications for software quality assessment, plagiarism detection, and bug fixes within the mini-program ecosystem.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
masters
Discipline thesis:degree_discipline
Computer Science and Engineering
Grantor dc:publisher
The Ohio State University
Year dc:date
2023

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Yao, Yifan
Advisor dc:contributor.advisor
  • Lin, Zhiqiang

Subjects

dc:subject × 5

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Yao, Yifan. Empirical Analysis of Code Clones in Mini-Programs. masters thesis, The Ohio State University, 2023. http://rave.ohiolink.edu/etdc/view?acc_num=osu1681950676379543