This is the accomponying code and data to the research paper "Large language model analysis reveals key reasons behind massive farmer protests in Europe".

**Disclaimer**
The scripts use GPT through OpenAI API keys. To run the code, users have to insert their own API key at the highlighted positions in the code. Even without API key, figures etc. are reproducible. The user can skip the API-related code snippets.
It is a common issue regarding reproducibility that large language models are not deterministic by default (https://platform.openai.com/docs/advanced-usage). 
While we adjusted all model parameters in a way to make the results as reproducible as possible, it is unlikely that re-running the analysis will yield the exact same numerical results. 
However, this is a matter of minor numerical differences that do not change the results overall.

**
The codes and the virtual environment are stored in the "calc" folder. The other folder contain (intermediate) data and intermediate results
to run (parts of) the codes.

Prerequisites
Ensure you have Python >3.7 is installed on your system. You can download it from python.org.

**
1. Setup Instructions
Unzip this folder and save it to a location on your computer.


**
2. Create and Activate a Virtual Environment
It is recommended to use a virtual environment to manage dependencies.

For macOS/Linux:
python3 -m venv venv
source venv/bin/activate

For Windows:
python -m venv venv
venv\Scripts\activate


**
3. Install Dependencies
Once the virtual environment is activated, install the required dependencies:
pip install -r requirements.txt


**
4. Launch Jupyter Notebook
To run the Jupyter notebooks in this project, use the following command:
jupyter notebook

This will open Jupyter Notebook in your default web browser.


**
5. Run the Code
Navigate to the notebook you want to run and execute the cells.


**
Additional Notes
If you encounter issues, ensure your virtual environment is activated before running the notebook.


**
Contact
For questions or contributions, reach out via email to xxxxx.