messages listlengths 2 2 |
|---|
[
{
"role": "user",
"content": "Write unit tests in Python for palindrome check."
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"palindrome check in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Optimize this JavaScript approach for binary search."
},
{
"role": "assistant",
"content": "function solve(input) {\n // binary search in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Parse and validate rate limiter in TypeScript."
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // rate limiter in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Write a Go function for LRU cache."
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // LRU cache in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Fix this Rust snippet for JWT verification: off-by-one index error"
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // JWT verification in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Refactor this SQL code for CSV parsing: nested if-else chain"
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Create a minimal Bash API handler for JSON schema validation."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Write unit tests in C++ for pagination."
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // pagination in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Optimize this Python approach for retry with backoff."
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"retry with backoff in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Parse and validate debounce utility in JavaScript."
},
{
"role": "assistant",
"content": "function solve(input) {\n // debounce utility in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Write a TypeScript function for file upload validation."
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // file upload validation in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Fix this Go snippet for date range overlap: null/None access"
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // date range overlap in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Refactor this Rust code for top-k elements: duplicated parsing logic"
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // top-k elements in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Create a minimal SQL API handler for two-sum."
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Write unit tests in Bash for merge intervals."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Optimize this C++ approach for deduplicate preserving order."
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // deduplicate preserving order in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Parse and validate slug generation in Python."
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"slug generation in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Write a JavaScript function for email validation."
},
{
"role": "assistant",
"content": "function solve(input) {\n // email validation in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Fix this TypeScript snippet for URL normalization: incorrect async await usage"
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // URL normalization in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Refactor this Go code for RBAC permission check: manual string concatenation in loop"
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // RBAC permission check in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Create a minimal Rust API handler for webhook signature check."
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // webhook signature check in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Write unit tests in SQL for rolling average."
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Optimize this Bash approach for moving window max."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Parse and validate fibonacci memoization in C++."
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // fibonacci memoization in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Write a Python function for command-line args parsing."
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"command-line args parsing in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Fix this JavaScript snippet for palindrome check: mutation of shared state"
},
{
"role": "assistant",
"content": "function solve(input) {\n // palindrome check in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Refactor this TypeScript code for binary search: callback pyramid"
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // binary search in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Create a minimal Go API handler for rate limiter."
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // rate limiter in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Write unit tests in Rust for LRU cache."
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // LRU cache in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Optimize this SQL approach for JWT verification."
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Parse and validate CSV parsing in Bash."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Write a C++ function for JSON schema validation."
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // JSON schema validation in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Fix this Python snippet for pagination: wrong boundary condition"
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"pagination in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Refactor this JavaScript code for retry with backoff: long function doing multiple things"
},
{
"role": "assistant",
"content": "function solve(input) {\n // retry with backoff in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Create a minimal TypeScript API handler for debounce utility."
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // debounce utility in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Write unit tests in Go for file upload validation."
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // file upload validation in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Optimize this Rust approach for date range overlap."
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // date range overlap in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Parse and validate top-k elements in SQL."
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Write a Bash function for two-sum."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Fix this C++ snippet for merge intervals: missing error handling"
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // merge intervals in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Refactor this Python code for deduplicate preserving order: loop with repeated condition checks"
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"deduplicate preserving order in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Create a minimal JavaScript API handler for slug generation."
},
{
"role": "assistant",
"content": "function solve(input) {\n // slug generation in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Write unit tests in TypeScript for email validation."
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // email validation in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Optimize this Go approach for URL normalization."
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // URL normalization in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Parse and validate RBAC permission check in Rust."
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // RBAC permission check in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Write a SQL function for webhook signature check."
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Fix this Bash snippet for rolling average: off-by-one index error"
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Refactor this C++ code for moving window max: nested if-else chain"
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // moving window max in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Create a minimal Python API handler for fibonacci memoization."
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"fibonacci memoization in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Write unit tests in JavaScript for command-line args parsing."
},
{
"role": "assistant",
"content": "function solve(input) {\n // command-line args parsing in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Optimize this TypeScript approach for palindrome check."
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // palindrome check in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Parse and validate binary search in Go."
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // binary search in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Write a Rust function for rate limiter."
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // rate limiter in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Fix this SQL snippet for LRU cache: null/None access"
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Refactor this Bash code for JWT verification: duplicated parsing logic"
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Create a minimal C++ API handler for CSV parsing."
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // CSV parsing in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Write unit tests in Python for JSON schema validation."
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"JSON schema validation in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Optimize this JavaScript approach for pagination."
},
{
"role": "assistant",
"content": "function solve(input) {\n // pagination in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Parse and validate retry with backoff in TypeScript."
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // retry with backoff in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Write a Go function for debounce utility."
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // debounce utility in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Fix this Rust snippet for file upload validation: incorrect async await usage"
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // file upload validation in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Refactor this SQL code for date range overlap: manual string concatenation in loop"
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Create a minimal Bash API handler for top-k elements."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Write unit tests in C++ for two-sum."
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // two-sum in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Optimize this Python approach for merge intervals."
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"merge intervals in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Parse and validate deduplicate preserving order in JavaScript."
},
{
"role": "assistant",
"content": "function solve(input) {\n // deduplicate preserving order in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Write a TypeScript function for slug generation."
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // slug generation in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Fix this Go snippet for email validation: mutation of shared state"
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // email validation in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Refactor this Rust code for URL normalization: callback pyramid"
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // URL normalization in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Create a minimal SQL API handler for RBAC permission check."
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Write unit tests in Bash for webhook signature check."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Optimize this C++ approach for rolling average."
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // rolling average in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Parse and validate moving window max in Python."
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"moving window max in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Write a JavaScript function for fibonacci memoization."
},
{
"role": "assistant",
"content": "function solve(input) {\n // fibonacci memoization in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Fix this TypeScript snippet for command-line args parsing: wrong boundary condition"
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // command-line args parsing in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Refactor this Go code for palindrome check: long function doing multiple things"
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // palindrome check in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Create a minimal Rust API handler for binary search."
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // binary search in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Write unit tests in SQL for rate limiter."
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Optimize this Bash approach for LRU cache."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Parse and validate JWT verification in C++."
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // JWT verification in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Write a Python function for CSV parsing."
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"CSV parsing in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Fix this JavaScript snippet for JSON schema validation: missing error handling"
},
{
"role": "assistant",
"content": "function solve(input) {\n // JSON schema validation in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Refactor this TypeScript code for pagination: loop with repeated condition checks"
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // pagination in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Create a minimal Go API handler for retry with backoff."
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // retry with backoff in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Write unit tests in Rust for debounce utility."
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // debounce utility in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Optimize this SQL approach for file upload validation."
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Parse and validate date range overlap in Bash."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Write a C++ function for top-k elements."
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // top-k elements in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Fix this Python snippet for two-sum: off-by-one index error"
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"two-sum in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Refactor this JavaScript code for merge intervals: nested if-else chain"
},
{
"role": "assistant",
"content": "function solve(input) {\n // merge intervals in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Create a minimal TypeScript API handler for deduplicate preserving order."
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // deduplicate preserving order in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Write unit tests in Go for slug generation."
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // slug generation in Go\n return input\n}"
}
] |
[
{
"role": "user",
"content": "Optimize this Rust approach for email validation."
},
{
"role": "assistant",
"content": "pub fn solve(input: &str) -> String {\n // email validation in Rust\n input.to_string()\n}"
}
] |
[
{
"role": "user",
"content": "Parse and validate URL normalization in SQL."
},
{
"role": "assistant",
"content": "SELECT id, name\nFROM items\nORDER BY id DESC\nLIMIT 10;"
}
] |
[
{
"role": "user",
"content": "Write a Bash function for RBAC permission check."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"${1:-}\"\necho \"$input\""
}
] |
[
{
"role": "user",
"content": "Fix this C++ snippet for webhook signature check: null/None access"
},
{
"role": "assistant",
"content": "#include <string>\nstd::string solve(const std::string& input) {\n // webhook signature check in C++\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Refactor this Python code for rolling average: duplicated parsing logic"
},
{
"role": "assistant",
"content": "def solve(input_value):\n \"\"\"rolling average in Python.\"\"\"\n return input_value"
}
] |
[
{
"role": "user",
"content": "Create a minimal JavaScript API handler for moving window max."
},
{
"role": "assistant",
"content": "function solve(input) {\n // moving window max in JavaScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Write unit tests in TypeScript for fibonacci memoization."
},
{
"role": "assistant",
"content": "export function solve(input: unknown): unknown {\n // fibonacci memoization in TypeScript\n return input;\n}"
}
] |
[
{
"role": "user",
"content": "Optimize this Go approach for command-line args parsing."
},
{
"role": "assistant",
"content": "func Solve(input string) string {\n // command-line args parsing in Go\n return input\n}"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.