Skip to content

Commit

Permalink
Add ICSE18 versions of MuDetect.
Browse files Browse the repository at this point in the history
# Conflicts:
#	detectors/MuDetect/releases.yml
  • Loading branch information
salsolatragus committed Sep 1, 2017
1 parent abb12c8 commit 422d915
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
5 changes: 3 additions & 2 deletions detectors/MuDetect/releases.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- cli_version: 0.0.8
md5: c21773719c9911396a37065cf625106d
- cli_version: 0.0.10
md5: 533ba658a244623e07aca6951e8ff50b
tag: icse18
10 changes: 10 additions & 0 deletions detectors/MuDetectXP/MuDetectXP.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from data.detector import Detector
from data.detector_specialising.specialising_util import replace_dot_graph_with_image
from data.finding import Finding, SpecializedFinding


class MuDetectXP(Detector): # Commit: 347d8b887e2538d1138c951a40b247324657a6ad
def _specialize_finding(self, findings_path: str, finding: Finding) -> SpecializedFinding:
violation = replace_dot_graph_with_image(finding, "pattern_violation", findings_path)
target_env = replace_dot_graph_with_image(finding, "target_environment_mapping", findings_path)
return SpecializedFinding(finding, [violation, target_env])
3 changes: 3 additions & 0 deletions detectors/MuDetectXP/releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- cli_version: 0.0.10
md5: 5bc3949c1b914ab63c1639e5b79cb244
tag: icse18

0 comments on commit 422d915

Please sign in to comment.