-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.txt
32 lines (26 loc) · 1.76 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
If you use the release in GitHub repository, please install Git Large File Storage from https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage and run the following commands:
1. git init
2. git lfs install
3. git remote add origin https://github.com/NAIST-SE/CopilotForPRsEarlyAdoption
4. git fetch --tags
5. git lfs fetch origin <latest tag>
6. git lfs checkout
7. git lfs ls-files
Install Conda from https://conda.io/projects/conda/en/latest/user-guide/install/index.html
Create new Conda environment and install required libraries from requirements.txt (not limited to this version, any Python3 will work):
1. Open a terminal or command prompt.
2. conda create --name copilot4prs python=3.8.16
3. conda activate copilot4prs
4. pip install -r requirements.txt
Once all libraries are installed, a user can verify the correctness of installation by:
Follow these steps to execute the code:
1. Open a terminal or command prompt.
2. Launch Jupyter Notebook using the command `jupyter notebook`.
3. Obtain GitHub access tokens (https://docs.github.com/en/[email protected]/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) and put the token in `./scripts/env/tokens.txt`.
4. Due https://gist.github.com/idan/325676d192b32f169b032fde2d866c2c#github-next--technical-preview-sunsets, now copilot4prs has became `ghost`.
5. In the Jupyter Notebook interface, run `{script_name}.ipynb` in the order of `CollectCopilot4prs.ipynb`, `ParseHistory.ipynb`, and `BuildingResults.ipynb`.
To run R scripts, install required package from requirements_for_R_scripts.txt.
1. Install R 4.3.1 from CRAN (https://cran.r-project.org/).
2. Open a terminal or command prompt
3. cd scripts
4. Rscript `{script_name}.R`