Forums : Technical Issue Help

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.blackduck.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at [email protected]

Perl code analysis show negative LoC of DOS Batch Script

In the table Lines of Code By Language in Perl code analysis there is in last row 'DOS batch script' (really?) with -13,019 Code Lines (!!!), 219 Comment Lines (?), - Comment Ratio (???), -1,394 Blank Lines (!), and -14,194 Total Lines.

State for 2009-07-31 08:44+0000

Jakub Narębski over 16 years ago
 

Same for Fractal ( https://www.ohloh.net/p/8043/analyses/latest ): for XML, -507,112 code lines, 66,944 comment lines, - comment ratio, 54,417 blank lines, -385,751 total lines.

Lionel Debroux over 16 years ago
 

We'll be investigating these issues. We've made some changes to our line counter recently, and negative lines of code can result when the line counts reported by the new version of the counter don't balance those reported by an older version of our counter.

It might take a few days to get to the bottom of it. Thanks for the report -- we'll let you know what we find.

Robin Luckey over 16 years ago
 

@Jakub:

The differences happened in 1997 and the quick analysis is that some batch files are added by commiter Perl 5 Porters and then deleted by both Tim Bunch and Gurusamy Sarathy.

git log -- win32/bin/webget.bat

shows removal by Tim (ohloh sees this commit multiple times, since multiple branches are enlisted, here's one of them
and then, in the wrong time sequence, addition by Perl 5 Porters
The change by Gurusamy isn't shown. This might be because git log knows the changes were merged but Ohloh was confused or perhaps the git history is confused.

Perhaps the confusion is partly due to the way the repository was committed. But we do plan to improve Ohloh's ability to understand duplicate commits.

Andy Verprauskus over 16 years ago
 

@Lionel:

A fresh re-analysis of Fractal that I started before investigating it is still running. I'll investigate when the analysis is ready.

Andy Verprauskus over 16 years ago