SearcharxivSearch

arXiv subjects

Tamal Mondal

Publications and source records attributed to Tamal Mondal.

2 recordsLinked to original sources

AFGNN: API Misuse Detection using Graph Neural Networks and Clustering

Application Programming Interfaces (APIs) are crucial to software development, enabling integration of existing systems with new applications by reusing tried and tested code, saving development time and increasing software safety. In particular, the Java standard library APIs, along with numerous third-party APIs, are extensively utilized in the development of enterprise application software. However, their misuse remains a significant source of bugs and vulnerabilities. Furthermore, due to the limited examples in the official API documentation, developers often rely on online portals and generative AI models to learn unfamiliar APIs, but using such examples may introduce unintentional errors in the software. In this paper, we present AFGNN, a novel Graph Neural Network (GNN)-based framework for efficiently detecting API misuses in Java code. AFGNN uses a novel API Flow Graph (AFG) representation that captures the API execution sequence, data, and control flow information present in the code to model the API usage patterns. AFGNN uses self-supervised pre-training with AFG representation to effectively compute the embeddings for unknown API usage examples and cluster them to identify different usage patterns. Experiments on popular API usage datasets show that AFGNN significantly outperforms state-of-the-art small language models and API misuse detectors.

cs.SE

AirCalypse: Can Twitter Help in Urban Air Quality Measurement and Who are the Influential Users?

In this digital age, Online Social Media's ubiquity has led it to it's role as a "Sensor". Starting from disaster response to political predictions, online social media like Twitter, have been instrumental and are actively researched areas. In this work, we have focused on something quite insidious in the current context, i.e., air pollution in developing regions. Starting as an empirical study on using Twitter as a "Sensor" to measure air quality, the focal point of this work is to identify the users who have been actively tweeting in the air pollution events in Delhi, the capital of India. From these users, we try to identify the influential ones, who play a significant role in creating the initial awareness and hence act as "Sensors". We have utilized a tailored "TRank" algorithm for finding out the influential users by considering \textit{Retweet, Favorite, and Follower influence} of the users. After ranking the users based on their social influence, we further study the behavior, i.e., perception of pollution from those users' posts with respect to the actual air pollution levels using the physical sensors. The tracking of influential users in air quality monitoring assists in developing a crowd sensed air quality measurement framework, which can augment the physical air quality sensors for raising awareness against air pollution.

physics.soc-ph