Code Revert Prediction with Graph Neural Networks: A Case Study at J.P. Morgan Chase

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Pei, Yulong, Alamir, Salwa, Dolga, Rares, Shah, Sameena
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914714583302144
author Pei, Yulong
Alamir, Salwa
Dolga, Rares
Shah, Sameena
author_facet Pei, Yulong
Alamir, Salwa
Dolga, Rares
Shah, Sameena
contents Code revert prediction, a specialized form of software defect detection, aims to forecast or predict the likelihood of code changes being reverted or rolled back in software development. This task is very important in practice because by identifying code changes that are more prone to being reverted, developers and project managers can proactively take measures to prevent issues, improve code quality, and optimize development processes. However, compared to code defect detection, code revert prediction has been rarely studied in previous research. Additionally, many previous methods for code defect detection relied on independent features but ignored relationships between code scripts. Moreover, new challenges are introduced due to constraints in an industry setting such as company regulation, limited features and large-scale codebase. To overcome these limitations, this paper presents a systematic empirical study for code revert prediction that integrates the code import graph with code features. Different strategies to address anomalies and data imbalance have been implemented including graph neural networks with imbalance classification and anomaly detection. We conduct the experiments on real-world code commit data within J.P. Morgan Chase which is extremely imbalanced in order to make a comprehensive comparison of these different approaches for the code revert prediction problem.
format Preprint
id arxiv_https___arxiv_org_abs_2403_09507
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Code Revert Prediction with Graph Neural Networks: A Case Study at J.P. Morgan Chase
Pei, Yulong
Alamir, Salwa
Dolga, Rares
Shah, Sameena
Software Engineering
Code revert prediction, a specialized form of software defect detection, aims to forecast or predict the likelihood of code changes being reverted or rolled back in software development. This task is very important in practice because by identifying code changes that are more prone to being reverted, developers and project managers can proactively take measures to prevent issues, improve code quality, and optimize development processes. However, compared to code defect detection, code revert prediction has been rarely studied in previous research. Additionally, many previous methods for code defect detection relied on independent features but ignored relationships between code scripts. Moreover, new challenges are introduced due to constraints in an industry setting such as company regulation, limited features and large-scale codebase. To overcome these limitations, this paper presents a systematic empirical study for code revert prediction that integrates the code import graph with code features. Different strategies to address anomalies and data imbalance have been implemented including graph neural networks with imbalance classification and anomaly detection. We conduct the experiments on real-world code commit data within J.P. Morgan Chase which is extremely imbalanced in order to make a comprehensive comparison of these different approaches for the code revert prediction problem.
title Code Revert Prediction with Graph Neural Networks: A Case Study at J.P. Morgan Chase
topic Software Engineering
url https://arxiv.org/abs/2403.09507