Hi everyone,
I had a small problem with the Codeface commit data of BusyBox regarding
the number of added lines of a commit. I do not know if everyone is
aware of that. So, I decided to write this mail just for documentation
reasons.
In the Codeface commit table, there is a column "AddedLines", which
represents the number of added lines per commit. Moreover, the Codeface
commitDependency table contains a column "size" representing the number
of added lines per artifact within a commit (e.g., added lines per
function).
So, usually, the following equation should hold for a commit: sum(size)
<= addedLines, where sum(size) is the sum of the "size"-values for all
artifacts belonging to the considered commit. (In the above equation, it
is only a <= and not a = since it may be the case that Codeface does not
analyze all artifacts that are part of a commit).
Nevertheless, while analyzing the BusyBox data, I found a commit where
addedLines=0, deletedLines=0, but size=11. I used 'git show -p
088d9e0f05a8bda93db07acd20557ab96e083086' to show that commit and got
the following output:
diff --git a/tests/busybox.REGRESS.sh b/tests/busybox.REGRESS.sh
index f493ead..a5a31ad 100755
Binary files a/tests/busybox.REGRESS.sh and b/tests/busybox.REGRESS.sh
differ