Closed anam-dodhy closed 6 years ago
Thank you very much for reporting this issue. Luckily, it has already been fixed with d28583d .
If you set up your review site July 2018 or later, it should be sufficient to replace src/Models/Misuse.php
with the current version of that file from master
.
Please report back if this doesn't solve the problem for you.
It worked, but I had to replace the following files as well:
src/Controllers/RunsController.php
templates/detector.phtml
src/Controllers/ReviewsController.php
src/Models/RunsResult.php
src/Models/DetectorResult.php
src/Models/ExperimentResult.php
Thanks for reporting back! Admittedly, by replacing the Misuse.php
file you pulled some changes that needed corresponding changes in other file. Glad the number of files to replace was still relatively small. To fix your concrete problem, it probably would've been sufficient to just replace the one changed method in misuse.php
, but a full upgrade, like you did, is the cleaner solution anyways ;)
Steps to Reproduce:
Got:
Multiple code snippets in the Review Website are displayed against a selected misuse which are not related to the misuse itself. In some cases, the same code snippet is just repeated several times. Please find below example of such two cases for the datasets given above. Moreover, this issue is seen for almost all datasets in all three experiments.
Experiment: 2 (Precision) Detector: Findbugs Dataset: aliyun-oss-java-sdk https://github.com/anam-dodhy/MUBench/tree/master/data/aliyun-oss-java-sdk Finding: 19
Experiment: 3 (Recall) Detector: Findbugs Dataset: mpush https://github.com/anam-dodhy/MUBench/tree/master/data/mpush Misuse: 3
Expected:
One code snippet for each misuse.
cc @akwick