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]
Ohcount is saying that pdf.js on Ohloh is written in mostly Java, some JavaScript. But in reality it is ALL Javascript, no Java (and a little Python on the side).
All of the source files have .js or .html extensions.
Has anyone looked into this?
waddlesplash,
Just noticed this thread thanks to your last request. Haven't looked at it deeply but only two possibilities I can see: we don't use extensions exclusively in our processing but rely mostly on recognition algorithms that select what source is and what language it's in. There may be a problem there? Also if there are any remote references in the enlistments, they may have been included in the analyses.
Will look more deeply at it now.
Thanks!
waddlesplash,
Ohloh code definitely agrees that the project is mostly JavaScript. (It uses different code for source recognition than ohloh itself uses.) That said, I'll need to escalate this up to engineering to see if we have accidentally analyzed something other than we should have or if the coding style or content is fooling the recognition engine into thinking it is Java.
Will let you know what we find.
Thanks!
Javascript files in this repository have this as first line -
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
and looks like ohcount gives Emacs mode line preference over anything else including extension. See the code starting at https://github.com/blackducksw/ohcount/blob/master/src/detector.c#L122.
Looks like a bug to me; we'll fix it soon.
This has now been fixed. We'll re-analyze projects as we find them.
Comments to this topic are now closed. Please create a new topic to get technical support.
The user who created the topic can reopen this topic at any time.