Skip to content

Commit ad9d701

Browse files
author
Varun Iyengar
committed
Addressed Mike feedback
1 parent 03eae25 commit ad9d701

13 files changed

+82
-109
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ This repository provides scripts and setup files for running both kinds of evalu
2222

2323
### Setup
2424

25-
To set up the environment, refer to the following:
25+
To set up the environment, refer to:
2626

27-
* `scripts/mutation-prerequisites.md` for mutation analysis
28-
* `scripts/defects4j-prerequisites.md` for defect detection
27+
* `scripts/prerequisites.md` for all prerequisites and setup instructions
2928

3029
### Running Scripts
3130

scripts/defects4j-evosuite.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ USAGE_STRING="usage: defects4j-evosuite.sh -b id -o RESULTS_CSV [-t total_time]
4242
#------------------------------------------------------------------------------
4343
# Prerequisites:
4444
#------------------------------------------------------------------------------
45-
# See file `defects4j-prerequisites.md`.
45+
# See file `prerequisites.md`.
4646

4747
# Fail this script on errors.
4848
set -e

scripts/defects4j-prerequisites.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

scripts/defects4j-randoop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ USAGE_STRING="usage: defects4j-randoop.sh -b id -o RESULTS_CSV [-f features] [-t
4545
#------------------------------------------------------------------------------
4646
# Prerequisites:
4747
#------------------------------------------------------------------------------
48-
# See file `defects4j-prerequisites.md`.
48+
# See file `prerequisites.md`.
4949

5050
# Fail this script on errors.
5151
set -e

scripts/experiment-scripts/README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,31 @@ figures and tables.
1212

1313
### Setup
1414

15-
To set up the environment, refer to the following:
15+
To set up the environment, refer to:
1616

17-
* `scripts/mutation-prerequisites.md` for mutation analysis
18-
* `scripts/defects4j-prerequisites.md` for defect detection
17+
* `scripts/prerequisites.md` for all prerequisites and setup instructions
18+
19+
#### Python Dependencies
20+
21+
Before running any experiment scripts, ensure the following Python packages are installed:
22+
23+
* `pandas`
24+
* `matplotlib`
25+
* `seaborn`
26+
27+
Install these packages using your preferred Python package manager. For example:
28+
29+
**With pip:**
30+
31+
```bash
32+
pip install pandas matplotlib seaborn
33+
```
34+
35+
**With uv:**
36+
37+
```bash
38+
uv pip install pandas matplotlib seaborn
39+
```
1940

2041
### Running Scripts
2142

scripts/experiment-scripts/defects4j-table4.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#------------------------------------------------------------------------------
2929
# Prerequisites:
3030
#------------------------------------------------------------------------------
31-
# See file `defects4j-prerequisites.md`.
31+
# See file `prerequisites.md`.
3232
#
3333
#===============================================================================
3434

@@ -41,10 +41,6 @@ if [ -z "$PYTHON_EXECUTABLE" ]; then
4141
exit 1
4242
fi
4343

44-
pip install pandas
45-
pip install matplotlib
46-
pip install seaborn
47-
4844
# Clean up previous run artifacts
4945
rm -rf "$GRT_TESTING_ROOT"/build/defects4j-src/*
5046
rm -rf "$GRT_TESTING_ROOT"/build/randoop-tests/*

scripts/experiment-scripts/mutation-fig6-table3.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#------------------------------------------------------------------------------
2929
# Prerequisites:
3030
#------------------------------------------------------------------------------
31-
# See file `mutation-prerequisites.md`.
31+
# See file `prerequisites.md`.
3232
#
3333
#===============================================================================
3434

@@ -37,10 +37,6 @@ GRT_TESTING_ROOT="$(realpath "$SCRIPT_DIR"/../)"
3737

3838
. "$SCRIPT_DIR"/common.sh
3939

40-
pip install pandas
41-
pip install matplotlib
42-
pip install seaborn
43-
4440
# Clean up previous run artifacts.
4541
make -C "$GRT_TESTING_ROOT" clean
4642
rm -f "$GRT_TESTING_ROOT"/results/fig6-table3.pdf

scripts/experiment-scripts/mutation-fig7.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,14 @@
2828
#------------------------------------------------------------------------------
2929
# Prerequisites:
3030
#------------------------------------------------------------------------------
31-
# See file `mutation-prerequisites.md`.
31+
# See file `prerequisites.md`.
3232
#
3333
#===============================================================================
3434

3535
SCRIPT_DIR="$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd -P)"
3636
GRT_TESTING_ROOT="$(realpath "$SCRIPT_DIR"/../)"
3737
. "$SCRIPT_DIR"/common.sh
3838

39-
pip install pandas
40-
pip install matplotlib
41-
pip install seaborn
42-
4339
# Clean up previous run artifacts
4440
make -C "$GRT_TESTING_ROOT" clean
4541
rm -f "$GRT_TESTING_ROOT"/results/fig7.pdf

scripts/experiment-scripts/mutation-fig8-9.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#------------------------------------------------------------------------------
3333
# Prerequisites:
3434
#------------------------------------------------------------------------------
35-
# See file `mutation-prerequisites.md`.
35+
# See file `prerequisites.md`.
3636
#
3737
#===============================================================================
3838

@@ -41,10 +41,6 @@ GRT_TESTING_ROOT="$(realpath "$SCRIPT_DIR"/../)"
4141

4242
. "$SCRIPT_DIR"/common.sh
4343

44-
pip install pandas
45-
pip install matplotlib
46-
pip install seaborn
47-
4844
# Clean up previous run artifacts
4945
make -C "$GRT_TESTING_ROOT" clean
5046
rm -f "$GRT_TESTING_ROOT"/results/fig8-9.pdf

scripts/mutation-evosuite.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ USAGE_STRING="usage: mutation-evosuite.sh [-h] [-v] [-r] [-o RESULTS_CSV] [-t to
4141
#------------------------------------------------------------------------------
4242
# Prerequisites:
4343
#------------------------------------------------------------------------------
44-
# See file `mutation-prerequisites.md`.
44+
# See file `prerequisites.md`.
4545

4646
# Fail this script on errors.
4747
set -e

0 commit comments

Comments
 (0)