text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Optimize while preserving behavior and order.
```python
def f91986(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m55998.py` with types and O(n) average.
```python
# m55998.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f88252(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 `m84036.py` and `test_m84036.py`.
*** Begin Patch
*** Update File: m84036.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Design CI/CD for a education service delivering caching.
Target platform: backend (Node.js).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must be easy to extend, must be performant under load, must include clear error handling, must include type hints where applicable, mu... | WithinUsAI/GOD_Coder_100k |
Task type: ml_system_design
Scenario: document indexing pipeline
Domain focus: static analysis
Primary language: python
Difficulty: hard
Scale/SLO: p99 < 50ms
Component: component_xzhlvchp
Constraints: explicit contracts and invariants, avoid data races and undefined behavior, include test vectors and fuzz strategy, in... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C45240:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m03480.py` and `test_m03480.py`.
```python
# m03480.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: runtime_gc
Scenario: identity and access
Domain focus: GPU serving
Primary language: python
Difficulty: hard
Scale/SLO: 50 TB/day ingestion
Component: component_qxxtwnbx
Constraints: avoid data races and undefined behavior, include failure modes and recovery, include deterministic replay plan, include verifi... | WithinUsAI/Omega_Genesis_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: lnwro... | 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 |
Fix the bug and add pytest tests.
```python
def f23624(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 `m46232.py` and `test_m46232.py`.
*** Begin Patch
*** Update File: m46232.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f23943`.
```python
def f23943(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m74849 import f23943
def test_known():
assert f23943(3,4) == 25
def test_zero():
assert f23943(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for telemetry ingestion.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must be streaming-friendly, must include type hints, must be easy to extend, must be memory-efficient.
Difficulty: hard. Provide helpful exceptions w... | WithinUsAI/python_GOD_coder_100k |
Refactor a Python module used for file synchronization into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must be streaming-friendly, must avoid global state.
Difficulty: easy. Include a small CLI example if relevant.
Deliverabl... | 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: kr4pw6mnlfdu.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: Project domain: artifact registry
Implementation stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Software delivery problem: multi-tenant access leak
Task type: ... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: tla_state_machine
Scenario: graph query service
Domain focus: large-scale ML systems
Primary language: tla+
Difficulty: hard
Scale/SLO: multi-region active-active
Component: component_ndlthqyx
Constraints: include verification strategy, include security threat model (defensive only), include performance mode... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of edge/IoT for scenario: edge sync.
Primary language: python.
Difficulty: hard.
Constraints: design for backward compatibility and migrations, include invariants and failure modes, make the interface contract explicit, include tests or verification strategy.
Component: compo... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C97109:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m84393.py` and `test_m84393.py`.
```python
# m84393.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Create a comprehensive test plan and automated tests for caching in a social media product.
Target platform: web (React + TypeScript).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must include type hints where applicable, must be performant under load, must include d... | 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 |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C88892:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m60684.py` and `test_m60684.py`.
```python
# m60684.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for validation.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must provide clear error messages, must include docstrings, must be easy to extend.
Difficulty: medium. Include a small CLI example if relevant.
Deliverable: API... | 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: h40y4... | WithinUsAI/Royal_Ghost_Coder_501k |
Design CI/CD for a healthtech service delivering role-based access control.
Target platform: infra (Docker + Kubernetes).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must be performant under load, must include type hints where applicable, must include documentation/comme... | WithinUsAI/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: xUnit
Domain: benchmark harness
Logic challenge: timezone bug in reporting
Task type: multi_file_migration_repair
Difficulty: ... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize a Python workflow for parsing.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must be easy to extend, must be streaming-friendly, must handle Windows paths safely.
Difficulty: hard. Include a small CLI example if relevant.
Deliverable: implementation + tests.
Str... | 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: Airflow, dbt, DuckDB, MinIO, pytest
Language: Python
Dependency challenge: gRPC retry storm
Task type: migration_patch
Difficulty: medium
Fix ... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize a Python workflow for log processing.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must be memory-efficient, must handle Windows paths safely, must include tests, must avoid global state.
Difficulty: expert. Handle empty inputs and malformed records gracefully.
... | WithinUsAI/python_GOD_coder_100k |
Design CI/CD for a IoT telemetry service delivering idempotent payments.
Target platform: backend (Go).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must be observable (logs/metrics/traces), must include clear error handling, must be secure-by-default.
Difficulty: easy. A... | 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 |
Optimize while preserving behavior and order.
```python
def f55056(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m65008.py` with types and O(n) average.
```python
# m65008.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize a Python workflow for time series.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must be easy to extend, must be streaming-friendly, must avoid global state.
Difficulty: medium. Include a small CLI example if relevant.
Deliverable: production-ready reference sol... | WithinUsAI/python_GOD_coder_100k |
Task type: tla_state_machine
Scenario: job scheduler
Domain focus: large-scale ML systems
Primary language: tla+
Difficulty: expert+
Scale/SLO: p99 < 150ms
Component: component_xpmtgxvj
Constraints: assume adversarial inputs; validate everything, include deterministic replay plan, include backward compatibility and mig... | WithinUsAI/Omega_Genesis_Coder_100k |
Implement rate limiting for a IoT telemetry product.
Target platform: backend (Python FastAPI).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must be performant under load, must include documentation/comments, must include type hints where applicable, must avoid global state, must ... | WithinUsAI/GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C41053:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m80081.py` and `test_m80081.py`.
```python
# m80081.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: hnz5w0bi.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: supply_chain_security
Scenario: real-time notification hub
Domain focus: secure enclaves (defensive)
Primary language: go
Difficulty: expert
Scale/SLO: multi-region active-active
Component: component_kdxexifk
Constraints: include test vectors and fuzz strategy, include security threat model (defensive only),... | WithinUsAI/Omega_Genesis_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: gidwti6.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f96137(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m56591.py` with types and O(n) average.
```python
# m56591.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement event-driven workflows for a customer support product.
Target platform: backend (Python FastAPI).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must include documentation/comments, must include tests, must avoid global state, must be observable (logs/metrics/traces).
Diff... | 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: o9ibgv.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of ml systems for scenario: inventory & ordering.
Primary language: rust.
Difficulty: hard.
Constraints: design for backward compatibility and migrations, include tests or verification strategy, include invariants and failure modes.
Component: component_whjjizt.
Assume strict... | WithinUsAI/Elite_GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f81469(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 `m83067.py` and `test_m83067.py`.
*** Begin Patch
*** Update File: m83067.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize a Python workflow for rate limiting.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must provide clear error messages, must be streaming-friendly, must handle Windows paths safely.
Difficulty: expert. Avoid quadratic behavior on large inputs.
Deliverable: API + r... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of operating systems for scenario: feature flagging.
Primary language: python.
Difficulty: expert.
Constraints: include tests or verification strategy, avoid undefined behavior and data races, design for backward compatibility and migrations, make the interface contract expli... | WithinUsAI/Elite_GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f03591(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 `m00513.py` and `test_m00513.py`.
*** Begin Patch
*** Update File: m00513.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Design a small, production-grade Python API for configuration loading.
Requirements: define data models and interfaces, implement reference version, include tests.
Constraints: stdlib-only, must be memory-efficient, must include tests, must provide clear error messages.
Difficulty: easy. Include a small CLI example if ... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f73262(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 `m10466.py` and `test_m10466.py`.
*** Begin Patch
*** Update File: m10466.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Design and implement an algorithm for CLI tooling.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must include type hints, must be easy to extend.
Difficulty: medium. Ensure the API is testable via dependency injection.
Deliverable: corrected code and ... | WithinUsAI/python_GOD_coder_100k |
Task type: lockfree_primitive
Scenario: feature-flag evaluation
Domain focus: cryptography engineering (defensive)
Primary language: cpp
Difficulty: expert+
Scale/SLO: 100k RPS peak
Component: component_hkhdrifs
Constraints: include backward compatibility and migration plan, assume adversarial inputs; validate everythi... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix a subtle bug in a Python module used for task scheduling.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must be streaming-friendly, must include docstrings.
Difficulty: easy. Avoid quadratic behavior on large inputs.
Deliverable: production-ready reference... | WithinUsAI/python_GOD_coder_100k |
Task type: network_protocol
Scenario: edge sync
Domain focus: high-frequency trading systems (safe engineering)
Primary language: bash
Difficulty: expert
Scale/SLO: 1M msgs/min
Component: component_wqzbdjfo
Constraints: include verification strategy, include deterministic replay plan, include failure modes and recovery... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix a subtle bug in a Python module used for caching layer.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must handle Windows paths safely, must include tests, must avoid global state, must be memory-efficient.
Difficulty: easy. Support both Windows and POSIX p... | 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 |
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: yp2yr0kw.py
```p... | 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: auth service
Logic challenge: invalid rollback sequence
Task type: multi_service_security_patch
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: Optimize while preserving behavior.
File: d_bi5... | 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: bwrv6gcjo.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: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f68774(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m52682.py` with types and O(n) average.
```python
# m52682.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: YAML
Framework/tooling: Kubernetes
Domain: observability collector
Logic challenge: JWT refresh token rotation
Task type: multi_service_security_pat... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of compilers for scenario: multi-tenant SaaS.
Primary language: python.
Difficulty: medium.
Constraints: make the interface contract explicit, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance, design for backward compatibility and migratio... | 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: Bash
Framework/tooling: jq
Domain: auth service
Logic challenge: schema drift during deployment
Task type: distributed_debug
Difficulty: hard
Retur... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: compiler_backend_ir
Scenario: document indexing pipeline
Domain focus: fault injection & chaos engineering
Primary language: cpp
Difficulty: expert
Scale/SLO: multi-region active-active
Component: component_eiayagqb
Constraints: explicit contracts and invariants, include failure modes and recovery, include s... | WithinUsAI/Omega_Genesis_Coder_100k |
Task type: storage_engine
Scenario: streaming ETL
Domain focus: high-frequency trading systems (safe engineering)
Primary language: bash
Difficulty: expert
Scale/SLO: 99.99% availability
Component: component_vvhcycpo
Constraints: assume adversarial inputs; validate everything, explicit contracts and invariants, include... | WithinUsAI/Omega_Genesis_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: uonk3gyojgp.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: Fix a bug and add tests.
File: dw2b091jdmk.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: Fix a bug and add tests.
File: g5mydqvxa.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of stream processing for scenario: feature flagging.
Primary language: typescript.
Difficulty: hard.
Constraints: make the interface contract explicit, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, include invariants and failure mode... | WithinUsAI/Elite_GOD_Coder_100k |
Write a thorough test suite for a Python component used for CLI tooling.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: stdlib-only, must include type hints, must include tests.
Difficulty: medium. Guarantee deterministic output ordering.
Deliverable: implementation + tests.
```p... | 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 |
Refactor an existing codebase in customer support to support multi-tenant isolation cleanly.
Target platform: mobile (iOS Swift).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must include type hints where applicable, must include tests, must be performant under load,... | WithinUsAI/GOD_Coder_100k |
Design CI/CD for a logistics service delivering offline-first sync.
Target platform: backend (Python FastAPI).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must be performant under load, must include documentation/comments, must be observable (logs/metrics/traces), must b... | WithinUsAI/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: Python
Framework/tooling: Airflow
Domain: data pipeline
Logic challenge: mismatched API contract
Task type: transaction_integrity_fix
Difficulty: ha... | 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: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor a Python module used for time series into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must be easy to extend, must include tests, must include type hints.
Difficulty: hard. Include a small CLI example if relevant.
Del... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f96610(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 `m85230.py` and `test_m85230.py`.
*** Begin Patch
*** Update File: m85230.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: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement a web feature for e-commerce: A/B experimentation.
Target platform: web (React + TypeScript).
Requirements: accessible UI, API integration, and tests.
Constraints: must be production-ready, must include tests, must include clear error handling.
Difficulty: expert. Assume schema evolves frequently; design for ... | WithinUsAI/GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C21250:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m86250.py` and `test_m86250.py`.
```python
# m86250.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Design a production system for gaming supporting background jobs.
Target platform: data (SQL + Python).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must be easy to extend, must be production-ready, must be performant under load, must include documentation/comments, must i... | 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 |
Build an elite-grade solution in the domain of stream processing for scenario: rate limiting gateway.
Primary language: go.
Difficulty: hard.
Constraints: include invariants and failure modes, avoid undefined behavior and data races, provide rollout and rollback guidance, design for backward compatibility and migration... | WithinUsAI/Elite_GOD_Coder_100k |
Debug and fix a subtle production bug related to background jobs in a calendar/scheduling service.
Target platform: infra (Docker + Kubernetes).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must avoid global state, must include tests, must be performant under load, must be se... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of databases for scenario: time-series metrics.
Primary language: rust.
Difficulty: hard.
Constraints: assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, provide rollout and rollback guidance, include invariants and failure modes.
Compone... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: secure_architecture
Scenario: time-series metrics store
Domain focus: real-time scheduling
Primary language: sql
Difficulty: expert
Scale/SLO: 50 TB/day ingestion
Component: component_czkiibit
Constraints: include security threat model (defensive only), include deterministic replay plan, include failure mode... | WithinUsAI/Omega_Genesis_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: h0ube... | 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: SQL
Framework/tooling: DuckDB
Domain: observability collector
Logic challenge: partial checkpoint corruption
Task type: parser_validation_logic
Diff... | 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: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f88578(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 `m12654.py` and `test_m12654.py`.
*** Begin Patch
*** Update File: m12654.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: 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: System domain: auth service
Stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Cross-layer incident: migration ordering failure
Task type: ... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of networking for scenario: feature flagging.
Primary language: rust.
Difficulty: expert.
Constraints: design for backward compatibility and migrations, make the interface contract explicit, avoid undefined behavior and data races.
Component: component_rgxkdyc.
Assume crash-o... | WithinUsAI/Elite_GOD_Coder_100k |
Optimize while preserving behavior and order.
```python
def f16952(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m88136.py` with types and O(n) average.
```python
# m88136.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
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: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: distributed_algorithm
Scenario: document indexing pipeline
Domain focus: GPU serving
Primary language: go
Difficulty: expert
Scale/SLO: 10k RPS peak
Component: component_orkykhzb
Constraints: include backward compatibility and migration plan, assume adversarial inputs; validate everything, include failure mo... | WithinUsAI/Omega_Genesis_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: System domain: payments platform
Stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Cross-layer incident: idempotent retry design
Task type: deploy_runtime_... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: compiler_frontend
Scenario: real-time notification hub
Domain focus: zero-downtime migrations
Primary language: sql
Difficulty: hard
Scale/SLO: p99 < 150ms
Component: component_ktjmwkgl
Constraints: include security threat model (defensive only), include test vectors and fuzz strategy, assume adversarial inp... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of sre/observability for scenario: edge sync.
Primary language: python.
Difficulty: expert.
Constraints: include invariants and failure modes, design for backward compatibility and migrations, document performance characteristics, assume untrusted inputs; validate and sanitiz... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: secure_architecture
Scenario: feature-flag evaluation
Domain focus: GPU serving
Primary language: typescript
Difficulty: expert+
Scale/SLO: p99 < 150ms
Component: component_ddaeemns
Constraints: explicit contracts and invariants, include deterministic replay plan, include test vectors and fuzz strategy, incl... | WithinUsAI/Omega_Genesis_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: SQL
Framework/tooling: SQLite
Domain: payments platform
Logic challenge: async cancellation bug
Task type: transaction_integrity_fix
Difficulty: har... | 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.