Installation
PIG is available on GitHub. To get started, clone the repository using the following command:
git clone https://github.com/andthemomentoflife/artifact_pig.git
Note
The repository link above is tentative and may be updated in a future release. Please check back for the latest URL.
Required Packages
PIG depends on the following packages:
Package |
Description |
|---|---|
|
LLM client used to send queries to the LLM during API migration. |
|
Enables partial transplantation of LLM-generated code by executing GumTree (made in jar file). |
|
Used alongside GumTree for token-level analysis during code transplantation. |
|
Handles post-processing of migrated code by removing unused imports and variables. |
|
Required for running the actual benchmark evaluations. |
|
Used to identify API mapping candidates when a library implementation is provided as a |
Dependency Installation
You can install the dependencies in one of two ways:
Option 1: Install all at once (recommended)
Use the provided requirements.txt to install all packages in a single command:
pip install -r requirements.txt
Option 2: Install individually
Alternatively, you can install each package manually:
pip install openai jpype1 asttokens autoflake openpyxl Cython