Code Re-use Recommendation Based on Software Requirements Using Natural Language Processing in Python

Code reuse is a pivotal practice in software development, promoting efficiency, reducing redundancy, and ensuring higher quality software products. Recommender systems play a crucial role in this process by suggesting relevant code snippets or components based on specific requirements, thus easing the task of code reuse for developers. In this research paper, we present a Python code re-use recommendation system based on software requirements using Natural Language Processing (NLP). By employing the BERT model, we assess the similarity between software requirements in the e-commerce domain. The resulting software is then pre-processed and evaluated using the CodeBERT model to determine code similarity. Our findings show that similar requirements can indeed produce similar software, promoting efficient code reuse. This system can significantly benefit requirement engineers and developers by enabling the re-utilization of existing code within the same domain, demonstrating the broader applicability of our approach.

Authors

Institutions

Publication Details

Published
2024-10-09
DOI
https://doi.org/10.1109/techdev64369.2024.00009
Primary Topic
Scientific Computing and Data Management
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Code Re-use Recommendation Based on Software Requirements Using Natural Language Processing in Python

Wasi Haider Butt, Omer Khan, Hareem Farooqi
Scientific Computing and Data Management
article

Code Re-use Recommendation Based on Software Requirements Using Natural Language Processing in Python

Wasi Haider Butt, Omer Khan, Hareem Farooqi
article en

Abstract

Code reuse is a pivotal practice in software development, promoting efficiency, reducing redundancy, and ensuring higher quality software products. Recommender systems play a crucial role in this process by suggesting relevant code snippets or components based on specific requirements, thus easing the task of code reuse for developers. In this research paper, we present a Python code re-use recommendation system based on software requirements using Natural Language Processing (NLP). By employing the BERT model, we assess the similarity between software requirements in the e-commerce domain. The resulting software is then pre-processed and evaluated using the CodeBERT model to determine code similarity. Our findings show that similar requirements can indeed produce similar software, promoting efficient code reuse. This system can significantly benefit requirement engineers and developers by enabling the re-utilization of existing code within the same domain, demonstrating the broader applicability of our approach.

National University of Sciences and Technology (PK)
Quality Education
Openalex Percentile: Top 68%
Scientific Computing and Data Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Code Re-use Recommendation Based on Software Requirements Using Natural Language Processing in Python — Wasi Haider Butt, Omer Khan, et al. · (2024) | TGRS Research Map | TGRS