You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn’t find a way to access code comments or line numbers through BOA (I assume comments are simply ignored by the scanner and not even passed to the parser), because there are not part of the AST. Adding line numbers to each node (start line, end line) would help a lot, because then one could simply checkout the files from GitHub and access the code comments or any other information that is not included in the BOA dataset. Furthermore, line numbers would also facilitate to align information mined with BOA with information mined with other tools.
The text was updated successfully, but these errors were encountered:
Just an FYI - Boa had support for positional information on the AST nodes from day one. However, we found that keeping that information made the dataset substantially larger (and at the time, too big for our servers to handle) and so we disabled this.
We might revisit these two points in the future and see if we are able to incorporate them now. We have picked up a few extra tricks over the years that might allow this.
I couldn’t find a way to access code comments or line numbers through BOA (I assume comments are simply ignored by the scanner and not even passed to the parser), because there are not part of the AST. Adding line numbers to each node (start line, end line) would help a lot, because then one could simply checkout the files from GitHub and access the code comments or any other information that is not included in the BOA dataset. Furthermore, line numbers would also facilitate to align information mined with BOA with information mined with other tools.
The text was updated successfully, but these errors were encountered: