--
Hi guys,I'm newer here and I'm research around Android Projects, so what is the difference between these code:the first:
p: Project = input;isAndroidProject := false;count: output sum of int;visit(p, visitor{before rev: Revision -> {exists(i:int; "AndroidManifest.xml" == rev.files[i].name) {test[p.name] << rev.files[i].name + " | " + rev.log;isAndroidProject = true;stop;}stop;}before cr: CodeRepository -> {foreach (i:int; def(cr.revisions[i]))visit(cr.revisions[i]);if (!isAndroidProject)stop;count << 1;snapshot := getsnapshot(cr, "SOURCE_JAVA_JLS");foreach (i:int; def(snapshot[i]))visit(snapshot[i]);stop;}});
the second:
p: Project = input;isAndroidProject := false;count: output sum of int;visit(p, visitor{before rev: Revision -> {exists(i:int; match("AndroidManifest.xml", rev.files[i].name)) {test[p.name] << rev.files[i].name + " | " + rev.log;isAndroidProject = true;stop;}stop;}before cr: CodeRepository -> {foreach (i:int; def(cr.revisions[i]))visit(cr.revisions[i]);if (!isAndroidProject)stop;count << 1;snapshot := getsnapshot(cr, "SOURCE_JAVA_JLS");foreach (i:int; def(snapshot[i]))visit(snapshot[i]);stop;}});
NOTE: the difference is the "match" and "==" to compare the file in the revision is a AndroidManifest.xml file.Which of these codes is the best for the answer "Number of Android Projects on GitHub?"?
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+unsubscribe@googlegroups.com.
To post to this group, send email to boa-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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.