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 info@openhub.net

Strange behavior of project statistics and categorization

Hi,

I would like to raise your attention on a project report I came across and which is evidently behaving strangely enough to be perhaps of some help to diagnose a possible Ohloh bug.

The project is https://www.ohloh.net/p/11790/analyses/latest and (at that url) appears as not having any line of code. Apparently, the project seems to be likely dealing with Haskell language.

However, it is mysteriously listed as top project in the category https://www.ohloh.net/p?q=language%3Amatlab .

With -27,603 lines of code (it's negative, yes). Could it be possible that the language ranking is wrongly considering the absolute value of the number of LOC, so that a wrongly generated negative value would be considered as positive? Or maybe, could a negative signed integer be badly converted as unsigned? If so, an unelegant workaround could be simply to add a max filter:

projectLOC = max( 0, projectLOC );

Hoping this post could be helpful for maintainers.

Best regards,

D.

Daniele de Rigo over 13 years ago