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