system stringclasses 3
values | conversations listlengths 2 2 |
|---|---|
You're a programming assistant. | [
{
"role": "user",
"content": "How do I reverse a string in Python?"
},
{
"role": "assistant",
"content": "You can reverse a string like this: `reversed_str = my_str[::-1]`"
}
] |
You're a coding assistant. | [
{
"role": "user",
"content": "How do I install NumPy?"
},
{
"role": "assistant",
"content": "Run `pip install numpy` in your terminal."
}
] |
You're a helpful assistant for developers. | [
{
"role": "user",
"content": "What's the time complexity of binary search?"
},
{
"role": "assistant",
"content": "Binary search has a time complexity of O(log n)."
}
] |
null | [
{
"role": "user",
"content": "How can I make an API request in JavaScript?"
},
{
"role": "assistant",
"content": "Use `fetch()` or libraries like Axios. For example: `fetch(url).then(response => response.json()).then(data => console.log(data));`"
}
] |
No dataset card yet
- Downloads last month
- 2