LOC in a project

84 views
Skip to first unread message

charles...@gmail.com

unread,
Oct 21, 2015, 6:24:10 AM10/21/15
to Boa Language and Infrastructure User Forum
Hi,

I am new to boa I was looking for a way to get the number of lines of code for a given project. I haven't come across an example.Based of the domain specific types, I wasn't sure how to do this. Does anyone know of a way to do this?

Thanks

Charles

Robert E Dyer

unread,
Oct 22, 2015, 1:30:23 AM10/22/15
to boa-...@googlegroups.com
Hi Charles,

Boa’s dataset does not directly contain the Lines of Code (LoC) of files.

That said however, you can definitely get a good proxy for that metric by looking at the number of declarations/statements in the file.  Just visit those nodes and increment a counter.

- Robert

--
More information about Boa: http://boa.cs.iastate.edu/
---
You received this message because you are subscribed to the Google Groups "Boa Language and Infrastructure User Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boa-user+u...@googlegroups.com.
To post to this group, send email to boa-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

________________________________________________
Robert Dyer | Assistant Professor | Department of Computer Science
BGSU | rd...@bgsu.edu | 419.372.3469 | 244 Hayes | Bowling Green, OH

Want to mine ultra-large-scale software repositories with minimal initial
investment? Check out Boa! http://boa.cs.iastate.edu/

Robert Dyer

unread,
Oct 25, 2015, 1:36:27 PM10/25/15
to Boa Language and Infrastructure User Forum
Take a look at these two jobs, which compute Logical Lines of Code (LLoC):

On Sep'15 (GitHub) dataset: http://boa.cs.iastate.edu/boa/?q=boa/job/public/13764

Perhaps these will help you!

- Robert
Reply all
Reply to author
Forward
0 new messages