Research Article

Balanced Adversarial Tight Matching for Cross-Project Defect Prediction

Table 2

Twenty handcrafted features.

MetricDescription

WMCThis measures the average number of weighted methods in a class [34]
DITIt represents the number of direct and indirect parent classes [34]
NOCThis feature counts the number of direct subclasses a class has [34]
CBOIt indicates the level of association between a class and other classes [34]
RFCIt represents the total number of methods a class can respond to [34]
LCOMIt indicates the level of relatedness and sharing among methods in a class [34]
LCOM3An enhanced version of LCOM that calculates the sharing of member variables among methods more accurately [34]
NPMThis counts the total number of public methods in a class [35]
LOCIt measures the total number of lines of code in a class [35]
DAMIt measures the degree to which a class depends on external classes [35]
MOAIt measures the degree to which a class aggregates (contains) other classes [35]
MFAIt measures the proportion of abstract methods in a class [35]
CAMIt measures the level of cohesion among methods in a class [35]
ICIt measures the degree to which a class depends on inheritance [33]
CBMIt measures the level of method invocation between methods in a class [33]
AMCIt represents the average complexity of methods in a class [33]
CAIt represents the number of classes referencing a class [36]
CEIt represents the number of classes referenced by a class [36]
Max CCIt represents the highest complexity of a method within a class [37]
Avg CCIt represents the average complexity of all methods in a class [37]