Query
stringlengths
2
286
Type
stringclasses
19 values
Rust: implement a token-bucket rate limiter
Coding
Explain how to implement a token-bucket rate limiter in C++, with an example.
Coding
Show me PHP code to strip whitespace from a string.
Coding
Explain how to measure a function's execution time in Haskell, with an example.
Coding
What's the idiomatic way to transpose a 2D array in C++?
Coding
Refactor-friendly Elixir example: group items by a key
Coding
Could you show a Perl implementation to compute a SHA-256 hash and explain its complexity?
Coding
Can you help me remove duplicates from a list while keeping order using TypeScript?
Coding
Need Lua code to transpose a 2D array — keep it minimal.
Coding
I'm new to Java. How would I serialize a class to JSON?
Coding
Need Go code to read a file line by line — keep it minimal.
Coding
I'm new to Haskell. How would I compute the first n Fibonacci numbers?
Coding
what's the most efficient way to find all permutations of a string in Bash?
Coding
remove duplicates from a list while keeping order in Python
Coding
Show me Dart code to deep clone an object.
Coding
What's the idiomatic way to base64-encode a string in Perl
Coding
What's the most efficient way to deep clone an object in C?
Coding
How do I connect to a PostgreSQL database in PHP?
Coding
I'm new to PHP. How would I group items by a key?
Coding
Show me Python code to schedule a recurring job.
Coding
Could you show a Swift implementation to find the longest common subsequence of two strings and explain its complexity
Coding
Need Elixir code to write a unit test for a function — keep it minimal.
Coding
How do I compute the median of a list in Go?
Coding
Show me C code to schedule a recurring job.
Coding
What's the idiomatic way to convert a string to snake_case in C#?
Coding
How do I implement bubble sort in Scala?
Coding
Write a C++ function to convert a string to snake_case.
Coding
write C# to create a simple REST endpoint, with comments
Coding
write Elixir to count vowels in a string, with comments
Coding
I'm new to R. How would I schedule a recurring job?
Coding
Show me Perl code to count word frequencies in a text file.
Coding
What's the most efficient way to implement a stack in Elixir?
Coding
Show me R code to reverse a linked list.
Coding
Show me Perl code to compute the first n Fibonacci numbers
Coding
Refactor-friendly PowerShell example: remove duplicates from a list while keeping order
Coding
JavaScript: handle exceptions when opening a file
Coding
write C++ to implement a token-bucket rate limiter, with comments
Coding
Need TypeScript code to write a unit test for a function — keep it minimal.
Coding
Explain Python's GIL and how it affects multithreading
Coding
I'm new to Go. How would I base64-encode a string?
Coding
can you help me download a file from a URL using Go?
Coding
write Rust to compute a SHA-256 hash, with comments
Coding
Give me a R snippet that can reverse a linked list.
Coding
write C# to connect to a PostgreSQL database, with comments
Coding
parse command-line arguments in Lua
Coding
Write a Scala function to debounce a function call.
Coding
What's the most efficient way to count word frequencies in a text file in Haskell?
Coding
How do I implement a token-bucket rate limiter in R
Coding
Explain how to calculate a factorial in Rust, with an example.
Coding
Refactor-friendly Dart example: download a file from a URL
Coding
Show me PowerShell code to compute a SHA-256 hash
Coding
Show me Perl code to find all permutations of a string.
Coding
Refactor-friendly Kotlin example: implement an LRU cache
Coding
Explain how to parse a CSV file in Kotlin, with an example.
Coding
Refactor-friendly Bash example: write a unit test for a function
Coding
I'm new to Haskell. How would I rotate a matrix 90 degrees?
Coding
Refactor-friendly Perl example: debounce a function call
Coding
I'm new to Java. How would I parse an XML document?
Coding
How do I do a left join in pandas
Coding
I'm new to Bash. How would I strip whitespace from a string?
Coding
Explain how to send an HTTP POST request in Java, with an example.
Coding
Write a C++ function to implement a stack.
Coding
write Elixir to open a WebSocket connection, with comments
Coding
Give me a R snippet that can retry a request with exponential backoff.
Coding
Need Dart code to validate an IPv4 address — keep it minimal
Coding
Rust: calculate a factorial
Coding
what's the idiomatic way to group items by a key in Scala?
Coding
Could you show a JavaScript implementation to compute the median of a list and explain its complexity?
Coding
Refactor-friendly Elixir example: sort a list of objects by a field
Coding
Python: retry a request with exponential backoff
Coding
what's the most efficient way to remove duplicates from a list while keeping order in Go?
Coding
Give me a C++ snippet that can build a trie for autocomplete.
Coding
Give me a C# snippet that can implement a token-bucket rate limiter.
Coding
Can you help me generate a UUID using Swift?
Coding
Show me Dart code to schedule a recurring job.
Coding
What's the idiomatic way to find the k-th largest element in an array in C++?
Coding
can you help me implement Dijkstra's algorithm using Scala?
Coding
Could you show a Scala implementation to rotate a matrix 90 degrees and explain its complexity?
Coding
What's the idiomatic way to check for balanced parentheses in Lua?
Coding
What's the idiomatic way to paginate a list of results in Perl?
Coding
implement a queue using two stacks in Kotlin
Coding
Explain how to implement a token-bucket rate limiter in R, with an example.
Coding
Can you help me download a file from a URL using PowerShell?
Coding
How do I walk a directory tree recursively in Rust?
Coding
Refactor-friendly C example: build a trie for autocomplete
Coding
Give me a TypeScript snippet that can build a trie for autocomplete.
Coding
Explain how to compute the first n Fibonacci numbers in JavaScript, with an example.
Coding
What's the most efficient way to sort a list of objects by a field in C++?
Coding
Bash: validate an IPv4 address
Coding
Can you help me memoize a recursive function using Bash
Coding
Could you show a Rust implementation to open a WebSocket connection and explain its complexity?
Coding
What's the idiomatic way to create a simple REST endpoint in Go?
Coding
Show me Rust code to find duplicate elements in an array.
Coding
what's the most efficient way to count word frequencies in a text file in Ruby?
Coding
write TypeScript to count word frequencies in a text file, with comments
Coding
Refactor-friendly Kotlin example: parse command-line arguments
Coding
Write a Java function to handle exceptions when opening a file.
Coding
Need PowerShell code to compute the first n Fibonacci numbers — keep it minimal.
Coding
Write a Java function to convert Celsius to Fahrenheit.
Coding
Need C++ code to convert a string to snake_case — keep it minimal
Coding