Created By: demo
Created At: Fri, 10 Nov 2017 00:18:23 -0600
Input Dataset: 2015 September/GitHub
Last Submitted At: Fri, 10 Nov 2017 00:18:23 -0600
Last Finished At: Fri, 10 Nov 2017 00:20:31 -0600 (2m 8s)
Source Code
# How often are popular Java build systems used?
TOTAL: output sum of int;
ANT: output sum of int;
GRADLE: output sum of int;
MAVEN: output sum of int;
MAKE: output sum of int;
NONE: output sum of int;
hasAnt := false;
hasGradle := false;
hasMvn := false;
hasMake := false;
exists (i: int; lowercase(input.programming_languages[i]) == "java")
visit(input, visitor {
before Project -> TOTAL << 1;
after Project -> {
if (hasAnt) ANT << 1;
if (hasGradle) GRADLE << 1;
if (hasMvn) MAVEN << 1;
if (hasMake) MAKE << 1;
if (!(hasAnt || hasGradle || hasMvn || hasMake)) NONE << 1;
}
before node: CodeRepository -> {
snapshot := getsnapshot(node);
for (j := 0; j < len(snapshot); j++) {
if (match(`/build.xml$`, snapshot[j].name))
hasAnt = true;
else if (match(`/build.gradle$`, snapshot[j].name))
hasGradle = true;
else if (match(`/pom.xml$`, snapshot[j].name))
hasMvn = true;
else if (match(`/makefile$`, lowercase(snapshot[j].name)))
hasMake = true;
}
stop;
}
});
Output
Job Output Size: 94 bytes
ANT[] = 22211
GRADLE[] = 4162
MAKE[] = 11953
MAVEN[] = 30472
NONE[] = 495771
TOTAL[] = 554864
Compilation
Status: Finished
Started: Fri, 10 Nov 2017 00:18:25 -0600
Finished: Fri, 10 Nov 2017 00:18:39 -0600 (14s)
Execution
Status: Finished
Started: Fri, 10 Nov 2017 00:18:45 -0600
Finished: Fri, 10 Nov 2017 00:20:31 -0600 (1m 46s)