Note: The code takes time to finish running
There are two ways to run Parameter Miner:
- Using Docker (Recommended)
- Running locally with Python
- Docker installed on your system
-
Pull the Docker image:
docker pull marwanwalid5/parameter-miner:latest
-
Run the analysis:
For Windows (PowerShell):
docker run -v "${PWD}\result:/app/result" marwanwalid5/parameter-miner:latest "<repository_url>" "result/output.csv"
For Windows (Command Prompt):
docker run -v "%cd%\result:/app/result" marwanwalid5/parameter-miner:latest "<repository_url>" "<output_path>"
For Linux/macOS:
docker run -v "$(pwd)/result:/app/result" marwanwalid5/parameter-miner:latest "<repository_url>" "<output_path>"
Replace
<repository_url>
with the GitHub repository URL you want to analyze.Replace
<output_path>
with the the path and file name you want to save the output to.
docker run -v "${PWD}\result:/app/result" marwanwalid5/parameter-miner:latest "https://github.com/mongodb/mongo-java-driver" "result/output.csv"
- Python installed on your system
- Git installed on your system
-
Clone the repository:
git clone https://github.com/MarwanWalid2/miner.git
-
Navigate to project directory:
cd miner
-
Install dependencies:
pip install -r requirements.txt
-
Run the code:
python -m src.main <repository_url> <output_path>
python -m src.main https://github.com/mongodb/mongo-java-driver result/output.csv
repository_url
: URL of the GitHub repository to analyzeoutput_path
: Path where the CSV output file will be saved
The tool will generate a CSV file in the specified output path.
The format will be:
Commit SHA,Java File,Old function Signature,New function Signature