From d66580f2531c791803203e5db86380c165ebeb95 Mon Sep 17 00:00:00 2001 From: WGC575 Date: Mon, 20 Nov 2023 20:44:16 -0800 Subject: [PATCH] [v202311202244] Updated script documentations. --- scripts/README.MD | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/scripts/README.MD b/scripts/README.MD index 5e57f55f..a1b57e00 100644 --- a/scripts/README.MD +++ b/scripts/README.MD @@ -2,7 +2,7 @@ The python scripts in this directory provide the functionalities to run the analysis in batch. -This document explains, **in the order of execution**, how do each file functions. +This document explains how do each file functions and how to use them in a correct order. ## Available Python Scripts @@ -94,23 +94,53 @@ python run_clustering.py ``` -### Example +### 5.2 Example ```console python detect_smells.py “cassandra” ``` -## extract_metrics.py +## 6. extract_metrics.py -## plotter.py +**NOTE: This script has been outdated for a while and lack maintenance. It will be correctly documented after it's updated appropriately.** + + +[extract_metrics.py](scripts\extract_metrics.py) runs **ACDC**, **ARC**, **PKG**, and **Limbo** metric extraction, calling the same java component ```edu.usc.softarch.arcade.metrics.data.SystemMetrics```. + +### 6.1 Command + +To be added. + +### 6.2 Example + +To be added. + +## 7. plotter.py + + +[plotter.py](scripts\plotter.py) runs visualization to generate first .dot data files and then .svg and .png files. +For **ACDC**, **ARC**, **PKG**, and **Limbo**, the script calls the same java component ```edu.usc.softarch.arcade.clustering.RsfToDot```, uses the package ```pydot``` to generate charts. +However, with **Limbo** and **ARC**, it will additionally call ```ARCADE_Core.jar edu.usc.softarch.arcade.clustering.ClusterMatcher``` to match clusters. + +### 7.1 Command + +```console +python plotter.py +``` + +### 7.2 Example + +```console +python plotter.py “cassandra” +```