text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Optimize while preserving behavior and order.
```python
def f77883(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m68269.py` with types and O(n) average.
```python
# m68269.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: C++
Framework/tooling: STL
Domain: model serving gateway
Logic challenge: transaction boundary bug
Task type: state_machine_patch
Difficulty: medium... | WithinUsAI/GOD_Coder_Complete_DataSet |
Add a clear docstring and type hints to this function:
```python
def f05753(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f05753(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f74161`.
```python
def f74161(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m82023 import f74161
def test_known():
assert f74161(3,4) == 25
def test_zero():
assert f74161(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for rate limiting.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must avoid global state, must provide clear error messages.
Difficulty: easy. Ensure the API is testable via dependency injection.
Deliverable: API + referenc... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: ye9be... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: ovxdmwb0zcgc.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of edge/IoT for scenario: payment processing.
Primary language: go.
Difficulty: hard.
Constraints: include tests or verification strategy, provide rollout and rollback guidance, include invariants and failure modes.
Component: component_ouazwsv.
Assume crash-only design; reco... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of operating systems for scenario: rate limiting gateway.
Primary language: rust.
Difficulty: medium.
Constraints: include tests or verification strategy, make the interface contract explicit, provide rollout and rollback guidance, include invariants and failure modes, assume... | WithinUsAI/Elite_GOD_Coder_100k |
Provision infrastructure for a document processing workload providing A/B experimentation.
Target platform: mobile (Android Kotlin).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must be secure-by-default, must avoid global state, must include documentation/comments, m... | WithinUsAI/GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: event ingestion.
Primary language: rust.
Difficulty: expert.
Constraints: avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, document performance characteristics, design for backward compa... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: compiler_frontend
Scenario: streaming ETL
Domain focus: secure enclaves (defensive)
Primary language: python
Difficulty: hard
Scale/SLO: 50 TB/day ingestion
Component: component_gvzkckbq
Constraints: include backward compatibility and migration plan, assume adversarial inputs; validate everything, include ve... | WithinUsAI/Omega_Genesis_Coder_100k |
Optimize while preserving behavior and order.
```python
def f47926(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m35418.py` with types and O(n) average.
```python
# m35418.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of sre/observability for scenario: multi-tenant SaaS.
Primary language: rust.
Difficulty: hard.
Constraints: include tests or verification strategy, include invariants and failure modes, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance.
Co... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of sre/observability for scenario: multi-tenant SaaS.
Primary language: go.
Difficulty: hard.
Constraints: include tests or verification strategy, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance, design for backward compatibility and migr... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor an existing codebase in IoT telemetry to support idempotent payments cleanly.
Target platform: mobile (iOS Swift).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must be production-ready, must include documentation/comments, must be observable (logs/metrics/tr... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of databases for scenario: chat messaging.
Primary language: python.
Difficulty: medium.
Constraints: design for backward compatibility and migrations, make the interface contract explicit, avoid undefined behavior and data races.
Component: component_bgcrymo.
Assume partial ... | WithinUsAI/Elite_GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: frpuy3w3_.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: static_analyzer
Scenario: document indexing pipeline
Domain focus: fault injection & chaos engineering
Primary language: sql
Difficulty: hard
Scale/SLO: p99 < 50ms
Component: component_otiywiln
Constraints: include backward compatibility and migration plan, assume adversarial inputs; validate everything, inc... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of networking for scenario: event ingestion.
Primary language: sql.
Difficulty: hard.
Constraints: provide rollout and rollback guidance, make the interface contract explicit, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, in... | WithinUsAI/Elite_GOD_Coder_100k |
Fix a subtle bug in a Python module used for event dispatching.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must include tests, stdlib-only, must be memory-efficient, must be easy to extend.
Difficulty: expert. Avoid quadratic behavior on large inputs.
Deliv... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of operating systems for scenario: multi-tenant SaaS.
Primary language: sql.
Difficulty: expert.
Constraints: document performance characteristics, make the interface contract explicit, design for backward compatibility and migrations, assume untrusted inputs; validate and sa... | WithinUsAI/Elite_GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker
Language: C++
Dependency challenge: idempotent retry design
Task type: build_reproducibility_f... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: supply_chain_security
Scenario: real-time notification hub
Domain focus: high-frequency trading systems (safe engineering)
Primary language: python
Difficulty: expert
Scale/SLO: multi-region active-active
Component: component_whumawot
Constraints: assume adversarial inputs; validate everything, include deter... | WithinUsAI/Omega_Genesis_Coder_100k |
Write pytest tests for `f40633`.
```python
def f40633(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m91519 import f40633
def test_known():
assert f40633(3,4) == 25
def test_zero():
assert f40633(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: n_238alb.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement a concurrent Python solution for log processing.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: must include tests, stdlib-only, must include type hints.
Difficulty: easy. Support both Windows and POSIX paths correctly.
Deliverable: implementatio... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: ckyqv... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f58364`.
```python
def f58364(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m94052 import f58364
def test_known():
assert f58364(3,4) == 25
def test_zero():
assert f58364(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f96002(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m42286.py` with types and O(n) average.
```python
# m42286.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: JavaScript
Framework/tooling: Playwright
Domain: team dashboard
Logic challenge: partial checkpoint corruption
Task type: edge_case_hardening
Diffic... | WithinUsAI/GOD_Coder_Complete_DataSet |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: i9hmsgo80p.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: System domain: benchmark harness
Stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker
Cross-layer incident: monorepo toolchain skew
Task type: cache_cons... | WithinUsAI/GOD_Coder_Complete_DataSet |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for event dispatching.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must include docstrings, must include tests.
Difficulty: hard. Ensure the API is testable via dependency injection.
Deliverable: corrected code and verifi... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f13921(n: int) -> int:
# sum 1..n inclusive
if n < 0: raise ValueError
total = 0
for k in range(n): # BUG
total += k
return total
```
Return unified diffs for `m87703.py` and `test_m87703.py`.
*** Begin Patch
*** Update File: m87703.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of gpu compute for scenario: analytics pipeline.
Primary language: go.
Difficulty: medium.
Constraints: assume untrusted inputs; validate and sanitize, document performance characteristics, design for backward compatibility and migrations, make the interface contract explicit... | WithinUsAI/Elite_GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: mp2u6f.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement a concurrent Python solution for configuration loading.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: must include docstrings, must be easy to extend.
Difficulty: easy. Avoid quadratic behavior on large inputs.
Deliverable: API + reference imple... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of compilers for scenario: job scheduler.
Primary language: python.
Difficulty: expert.
Constraints: assume untrusted inputs; validate and sanitize, include invariants and failure modes, avoid undefined behavior and data races, make the interface contract explicit.
Component:... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of gpu compute for scenario: edge sync.
Primary language: rust.
Difficulty: medium.
Constraints: document performance characteristics, include tests or verification strategy, avoid undefined behavior and data races, make the interface contract explicit.
Component: component_m... | WithinUsAI/Elite_GOD_Coder_100k |
Fix a subtle bug in a Python module used for configuration loading.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must avoid global state, must be easy to extend, must be memory-efficient, must include docstrings.
Difficulty: easy. Handle empty inputs and malfo... | WithinUsAI/python_GOD_coder_100k |
Design and implement an algorithm for caching layer.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must include type hints, stdlib-only, must be easy to extend.
Difficulty: medium. Guarantee deterministic output ordering.
Deliverable: API + reference ... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: p3hoff.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: storage_engine
Scenario: multi-tenant event ingestion
Domain focus: observability platforms
Primary language: rust
Difficulty: hard
Scale/SLO: 1M msgs/min
Component: component_ftmhzzbi
Constraints: include security threat model (defensive only), include failure modes and recovery, explicit contracts and inva... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C10325:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m70025.py` and `test_m70025.py`.
```python
# m70025.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: yboowsfv0.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize a Python workflow for metrics aggregation.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: stdlib-only, must be memory-efficient.
Difficulty: expert. Support both Windows and POSIX paths correctly.
Deliverable: corrected code and verification tests.
Strategy:
- Av... | WithinUsAI/python_GOD_coder_100k |
Write pytest tests for `f51631`.
```python
def f51631(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m50233 import f51631
def test_known():
assert f51631(3,4) == 25
def test_zero():
assert f51631(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f62911(n: int) -> int:
# sum 1..n inclusive
if n < 0: raise ValueError
total = 0
for k in range(n): # BUG
total += k
return total
```
Return unified diffs for `m23273.py` and `test_m23273.py`.
*** Begin Patch
*** Update File: m23273.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: tla_state_machine
Scenario: graph query service
Domain focus: program synthesis (safe)
Primary language: tla+
Difficulty: expert+
Scale/SLO: multi-region active-active
Component: component_fuexeatl
Constraints: include security threat model (defensive only), include deterministic replay plan, explicit contra... | WithinUsAI/Omega_Genesis_Coder_100k |
Implement a mobile feature for social media: background jobs.
Target platform: mobile.
Requirements: offline-safe behavior, UI state handling, and tests.
Constraints: must be easy to extend, must be secure-by-default, must include tests.
Difficulty: easy. Assume strict latency budget (p95 < 200ms).
Output: production-... | WithinUsAI/GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker
Language: Python
Dependency challenge: rate-limit bypass
Task type: lockfile_repair
Difficulty... | WithinUsAI/GOD_Coder_Complete_DataSet |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Repository domain: model serving gateway
Primary language: Python
Framework/tooling: Pydantic
Reported problem: stale cache invalidation
Task type: feature_de... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C89275:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m99175.py` and `test_m99175.py`.
```python
# m99175.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f99872(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f99872(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: compiler_frontend
Scenario: graph query service
Domain focus: cryptography engineering (defensive)
Primary language: bash
Difficulty: expert+
Scale/SLO: 99.99% availability
Component: component_iokzmtti
Constraints: avoid data races and undefined behavior, assume adversarial inputs; validate everything, incl... | WithinUsAI/Omega_Genesis_Coder_100k |
Provision infrastructure for a gaming workload providing role-based access control.
Target platform: mobile (Android Kotlin).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must include documentation/comments, must include clear error handling, must be easy to extend, m... | WithinUsAI/GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C62714:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m50978.py` and `test_m50978.py`.
```python
# m50978.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: JavaScript
Framework/tooling: Express
Domain: repo automation
Logic challenge: broken pagination cursor
Task type: state_machine_patch
Difficulty: h... | WithinUsAI/GOD_Coder_Complete_DataSet |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: l6igxqie.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: hetpi... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: Go
Framework/tooling: Fiber
Domain: document processing API
Logic challenge: race condition on worker shutdown
Task type: distributed_debug
Difficul... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C05314:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m31178.py` and `test_m31178.py`.
```python
# m31178.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: kernel_syscall_design
Scenario: streaming ETL
Domain focus: cryptography engineering (defensive)
Primary language: cpp
Difficulty: hard
Scale/SLO: 99.99% availability
Component: component_gliwcdat
Constraints: include backward compatibility and migration plan, include failure modes and recovery, include test... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C97225:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m61325.py` and `test_m61325.py`.
```python
# m61325.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Provision infrastructure for a document processing workload providing file uploads.
Target platform: ML (PyTorch + serving).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must be production-ready, must include tests, must be secure-by-default, must be observable (logs/... | WithinUsAI/GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: y0sxt... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f77573(n: int) -> int:
# sum 1..n inclusive
if n < 0: raise ValueError
total = 0
for k in range(n): # BUG
total += k
return total
```
Return unified diffs for `m53939.py` and `test_m53939.py`.
*** Begin Patch
*** Update File: m53939.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f10657(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m72951.py` with types and O(n) average.
```python
# m72951.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: Python
Framework/tooling: FastAPI
Domain: reporting engine
Logic challenge: mismatched API contract
Task type: transaction_integrity_fix
Difficulty:... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write a thorough test suite for a Python component used for ETL pipelines.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: stdlib-only, must be streaming-friendly, must be easy to extend.
Difficulty: easy. Ensure the API is testable via dependency injection.
Deliverable: productio... | WithinUsAI/python_GOD_coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Language: Rust
Dependency challenge: idempotent retry design
Task type: version_confli... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize while preserving behavior and order.
```python
def f00437(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m71491.py` with types and O(n) average.
```python
# m71491.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Improve typing and robustness of a Python module used for file synchronization.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: stdlib-only, must provide clear error messages, must include docstrings.
Difficulty: easy. Avoid quadratic behavior on large inputs.... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project domain: artifact registry
Implementation stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker
Software delivery problem: async cancellation bug
Tas... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C23530:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m01810.py` and `test_m01810.py`.
```python
# m01810.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of ml systems for scenario: document indexing.
Primary language: go.
Difficulty: expert.
Constraints: assume untrusted inputs; validate and sanitize, document performance characteristics, include invariants and failure modes, avoid undefined behavior and data races, include t... | WithinUsAI/Elite_GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: mechanized_spec
Scenario: job scheduler
Domain focus: program synthesis (safe)
Primary language: lean
Difficulty: expert
Scale/SLO: 10k RPS peak
Component: component_hktfbxad
Constraints: include deterministic replay plan, assume adversarial inputs; validate everything, include verification strategy, avoid d... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix the bug and add pytest tests.
```python
def f79989(n: int) -> int:
# sum 1..n inclusive
if n < 0: raise ValueError
total = 0
for k in range(n): # BUG
total += k
return total
```
Return unified diffs for `m11427.py` and `test_m11427.py`.
*** Begin Patch
*** Update File: m11427.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: vkc4g... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: C++
Framework/tooling: Catch2
Domain: artifact registry
Logic challenge: transaction boundary bug
Task type: edge_case_hardening
Difficulty: medium
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Design CI/CD for a e-commerce service delivering audit logs.
Target platform: backend (Node.js).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must be easy to extend, must be production-ready, must include tests, must include documentation/comments.
Difficulty: easy. Assum... | WithinUsAI/GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: vezi37.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of distributed systems for scenario: time-series metrics.
Primary language: python.
Difficulty: hard.
Constraints: design for backward compatibility and migrations, document performance characteristics, make the interface contract explicit, include tests or verification strat... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of compilers for scenario: chat messaging.
Primary language: python.
Difficulty: medium.
Constraints: make the interface contract explicit, avoid undefined behavior and data races, design for backward compatibility and migrations.
Component: component_shtmedm.
Assume cold-sta... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C45234:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m65018.py` and `test_m65018.py`.
```python
# m65018.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f23047`.
```python
def f23047(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m74721 import f23047
def test_known():
assert f23047(3,4) == 25
def test_zero():
assert f23047(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of gpu compute for scenario: time-series metrics.
Primary language: go.
Difficulty: medium.
Constraints: assume untrusted inputs; validate and sanitize, make the interface contract explicit, provide rollout and rollback guidance, include invariants and failure modes, avoid un... | WithinUsAI/Elite_GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: C++
Framework/tooling: STL
Domain: artifact registry
Logic challenge: N+1 query explosion
Task type: parser_validation_logic
Difficulty: medium
Ret... | WithinUsAI/GOD_Coder_Complete_DataSet |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: JavaScript
Framework/tooling: Express
Domain: observability collector
Logic challenge: idempotent retry design
Task type: performance_bottleneck_pat... | WithinUsAI/GOD_Coder_Complete_DataSet |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.