Research Article

Fine-Grained Software Defect Prediction Based on the Method-Call Sequence

Algorithm 1

Parsing source code process.
Input: Source files , the set of AST node types to be retained,
Output: AST token sequences for each method
Algorithm:
(1)for , do
(2) constructing AST from
(3) split into method
(4)for, m do
(5)   constructing AST from
(6)  Traversing in by DFS
(7)  if in
(8)   Adding into
(9)  end if
(10)  Adding into
(11)  end for
(12)end for
(13)return