projects
/
pingpong.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add script that executes layer2 detection on all smarthome traces (traces where one...
[pingpong.git]
/
Code
/
Projects
/
SmartPlugDetector
/
src
/
main
/
java
/
edu
/
uci
/
iotproject
/
evaluation
/
DetectionResultsAnalyzer.java
diff --git
a/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/evaluation/DetectionResultsAnalyzer.java
b/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/evaluation/DetectionResultsAnalyzer.java
index 3fdacb348a225c3ff0f6c417c01fdc2bca14d0d5..51f4623b09ca611b6531aab6654eaea1e9b0b676 100644
(file)
--- a/
Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/evaluation/DetectionResultsAnalyzer.java
+++ b/
Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/evaluation/DetectionResultsAnalyzer.java
@@
-42,6
+42,10
@@
public class DetectionResultsAnalyzer {
try (BufferedReader br = new BufferedReader(new FileReader(detectionOutputFile))) {
String s;
while ((s = br.readLine()) != null) {
+ if (s.startsWith("#")) {
+ // Ignore comments.
+ continue;
+ }
detectedEvents.add(UserAction.fromString(s));
}
}