Research Article

Software Defect Prediction Based on Hybrid Swarm Intelligence and Deep Learning

Table 1

Commonly used software metrics for process-oriented software.

CategoryMetrics

McCabe metricsCyclomatic complexity ()
Essential complexity (ev())
Module design complexity (iv())
Halstead metricsUnique operators ()
Unique operands ()
Total operators ()
Total operands ( )
Vocabulary ()
Length ()
Program volume ()
Program difficulty ()
Program level (Lv)
Intelligence (I)
Programming effort ()
Programming time (T)
LOC metricsLOCphy
LOComment
LOBlank
LOCComment
Reformatted code information for fileTotal source lines
Expansion factor
Procedure informationAverage length of basic blocks
Procedure entry points
Procedure exit points
Comments associated with proceduresTotal comments
Comments in headers
Comments in declarations
Ratio of comments to executable linesExecutable reformatted lines
Total comments/Executable lines
Header comments/executable lines
Declaration comments/executable lines
Code comments/executable lines
Complexity metricsKnots
Loop/interval analysisNumber of loops
Depth of loop nesting
Number of order 1 intervals
Maximum interval nesting
Reducible intervals
LCSAJ and unreachabilityTotal LCSAJs
Reachable LCSAJs
Unreachable LCSAJs
Maximum LCSAJ density
Unreachable lines
Unreachable branches
Dataflow informationGlobals in procedure
File fan in
Fan out