Hi there,
I have submit a Boa example with input dataset "2015 September/GitHub (small)". The example counts the AST nodes to measure the projects. However, there is no output after compiling and executing.
Meanwhile, when I run the example with SourceForge dataset, the output is generated successfully.
I was wondering why this happened. Thank you so much in advance.
--------------------------------------------------------------------------
# What are the 5 largest projects, in terms of AST nodes?
# Output is in Millions of AST nodes.
p: Project = input;
top5: output top(5) of string weight int;
astCount := 0;
visit(p, visitor {
# only look at the latest snapshot
before n: CodeRepository -> {
snapshot := getsnapshot(n);
foreach (i: int; def(snapshot[i]))
visit(snapshot[i]);
stop;
}
# by default, count all visited nodes
before _ -> astCount++;
# these nodes are not part of the AST, so do nothing when visiting
before Project, ChangedFile -> ;
});
top5 << p.project_url weight astCount / 1000000;
------------------------------------------------------------------------
Best,
Zhiyuan