task_categories:question-answering task_categories:text-classification language:en region:us
---
task_categories:
- question-answering
- text-classification
language:
- en
---
### Dataset Description
This dataset, compiled by Brendan Dolan-Gavitt, contains ~100 thousand `c++` functions and GPT-3.5 turbo-generated summaries of the code's purpose.
An example of Brendan's original prompt and GPT-3.5's summary may be found below. 

```
int gg_set_focus_pos(gg_widget_t *widget, int x, int y) {
	return 1;
}

Q. What language is the above code written in?
A. C/C++.
Q. What is the purpose of the above code?
A.
This code defines a function called `gg_set_focus_pos` that takes a pointer to a `gg_widget_t` structure
and two integer arguments `x` and `y`. The function returns an integer value of 1. The purpose of this
function is not clear from this code snippet alone, as it does not contain any implementation details.
However, based on the function name and arguments, it is likely that this function sets the focus
position of a graphical user interface (GUI) widget to the specified `x` and `y` coordinates.

Tags: GUI, widget, focus, position, function.
```

The link to the dataset's announcement may be found here: https://twitter.com/moyix/status/1644355889602654210