楠本研究室

業績一覧

ホーム業績一覧

Type-2 Code Clone Detection for Dockerfiles

Type-2 Code Clone Detection for Dockerfiles
Proc. 15th International Workshop on Software Clones, pp.1-7 (2021)
概要: This paper proposes a Type-2 code clone detection technique for Dockerfiles. Docker is a platform for realizing containerized virtual environments that has been attracting significant attention as a technology support for server infrastructures. In Docker, the procedure to realize a virtual environment is described in the form of a source code called a Dockerfile. Therefore, code clones such as repetitions and duplications with similar structures are often included. In this study, we propose a Type-2 code clone detection technique for deriving patterns within Dockerfiles. More specifically, our technique detects code clones by normalizing tokens properly, separating Docker syntax and shell syntax, and then adopting suffix array algorithm for each syntax. We conducted application experiments on approximately 5,000 Dockerfiles available on GitHub and found that our technique could detect Type-2 code clones with a high precision. Our technique derived some patterns in Dockerfiles, such as those used for building a new distribution on a container. タグ: clone, code, detection, dockerfiles, type-2
@inproceedings{TomoakiTsuru2021,
  author = {Tomoaki Tsuru and Tasuku Nakagawa and Shinsuke Matsumoto and Yoshiki Higo and Shinji Kusumoto},
  title = {Type-2 Code Clone Detection for Dockerfiles},
  booktitle = {Proc. 15th International Workshop on Software Clones},
  pages = {1--7},
  year = {2021},
  month = {oct}
}