Hitesh Sajnani

Hitesh Sajnani

Auto-generated profile, based on publicly available information

Hitesh Sajnani

Trade Desk, Redmond, United States

Research Focus & Metrics

Academic Career Length

13Years (2014-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
14 May 2016
Verified
Conference Paper
Open access
VSVaibhav Saini
Vaibhav Saini
HSHitesh Sajnani
Hitesh Sajnani
JKJae-Woo Kim
Jae-Woo Kim
CLCristina Lopes
Cristina Lopes
Given the availability of large source-code repositories, there has been a large number of applications for large-scale clone detection. Unfortunately, despite a decade of active research, there is a marked lack in clone detectors that scale to big software systems or large repositories, specifically for detecting near-miss (Type 3) clones where significant editing activities may take place in the cloned code. This paper demonstrates: (i) SourcererCC, a token-based clone detector that targets the first three clone types, and exploits an index to achieve scalability to large inter-project repositories using a standard workstation. It uses an optimized inverted-index to quickly query the potential clones of a given code block. Filtering heuristics based on token ordering are used to significantly reduce the size of the index, the number of code-block comparisons needed to detect the clones, as well as the number of required token-comparisons needed to judge a potential clone; and (ii) SourcererCC-I, an Eclipse plug-in, that uses SourcererCC's core engine to identify and navigate clones (both inter and intra project) in real-time during software development. In our experiments, comparing SourcererCC with the state-of-the-art tools 1, we found that it is the only clone detection tool to successfully scale to 250 MLOC on a standard workstation with 12 GB RAM and efficiently detect the first three types of clones (precision 86% and recall 86-100%). Link to the demo: https://youtu.be/17F_9Qp-ks4

1 September 2014
Verified
Conference Paper
Closed access
HSHitesh Sajnani
Hitesh Sajnani
VSVaibhav Saini
Vaibhav Saini
CLCristina V. Lopes
Cristina V. Lopes
Code cloning via copy-and-paste is a common practice in software engineering. Traditionally, this practice has been considered harmful, and a symptom that some important design abstraction is being ignored. As such, many previous studies suggest approaches to facilitate the discovery, removal, and refactoring of clones. However, not many studies exist that empirically investigate the relationship of code clones with code quality. In this paper, we conduct an empirical study of 31 open source Java projects (1.7 MSLOC) to explore the relationship between code clones and a set of bug patterns reported by Find Bugs. We found that: (i) the defect density in cloned code is 3.7 times less than that of the rest of the code, (ii) 66% of the bug patterns associated with code clones are related to issues in coding style and practice, the two least problematic of the Find Bugs' categories, while that number is 49% for non-cloned code, and (iii) 75% of the bug patterns in cloned code are duplicated without any changes, while 25% are only present in one of the clones. These results show that, when using Find Bugs to detect bug patterns, there is a positive differentiation of cloned code with respect to the rest of the code: the cloned code has considerably less, and less problematic, bug patterns. While our study does not unveil any explanation for this, results from other, more qualitative studies indicate that developers use copy-and-paste intentionally and wisely, which may explain the quantitative observations of our study. Overall, these research results suggest that the practice of code cloning in Java, and possibly in all other object-oriented languages, needs to be given serious consideration on the part of tool designers.

30 November 2023
Verified
Conference Paper
Open access
SASumit Asthana
Sumit Asthana
HSHitesh Sajnani
Hitesh Sajnani
EVElena Voyloshnikova
Elena Voyloshnikova
BABirendra Acharya
Birendra Acharya
KHKim Herzig
Kim Herzig

1 May 2021
Verified
Conference Paper
Closed access
AJAn Ju
An Ju
HSHitesh Sajnani
Hitesh Sajnani
SKScot Kelly
Scot Kelly
KHKim Herzig
Kim Herzig
The artifacts is publicly available at [1]