Inspired by research that links task-personality alignment with improved development outcomes, we conduct an empirical study on personality-guided code generation using large language models (LLMs). This repository is the code and data of this study.
- MBPPGen - Contains core code and resources related to personality-guided code generation for MBPP Sanitized
- HumanEvalGen- Contains core code and resources related to personality-guided code generation for HumanEval +
- MBPP_Plus - Contains core code and resources related to personality-guided code generation for MBPP +
- APPSGen - Contains core code and resources related to personality-guided code generation for APPS
Before using this project, ensure you have installed all necessary dependencies. You can follow these steps to install them:
-
Clone this repository:
https://github.com/ab3xyz/Persona-Code.gitgit clone <repository-url> cd Persona-Code
-
Install dependencies:
pip install -r requirements.txt
First add your own API_KEY to the specific model, and modify the experiment_<model>.py in directory of the datasets to run the test you want.
See the data_<model> part for data generated by this study.