text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Task type: compiler_frontend
Scenario: document indexing pipeline
Domain focus: consensus & replication
Primary language: go
Difficulty: expert
Scale/SLO: p99 < 150ms
Component: component_xxzactuw
Constraints: include backward compatibility and migration plan, assume adversarial inputs; validate everything, avoid data ... | 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: Project domain: feature flag service
Implementation stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Software delivery problem: gRPC retry storm
Task type... | WithinUsAI/GOD_Coder_Complete_DataSet |
Implement role-based access control for a enterprise SaaS product.
Target platform: infra (Docker + Kubernetes).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must include clear error handling, must be production-ready, must be observable (logs/metrics/traces), must be easy to exte... | WithinUsAI/GOD_Coder_100k |
Optimize while preserving behavior and order.
```python
def f30651(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m90093.py` with types and O(n) average.
```python
# m90093.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: Optimize while preserving behavior.
File: aukyx... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement role-based access control for a logistics product.
Target platform: mobile (iOS Swift).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must be easy to extend, must be secure-by-default, must include tests, must be observable (logs/metrics/traces), must include type hints w... | 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: JavaScript
Framework/tooling: Node.js
Domain: benchmark harness
Logic challenge: streaming timeout handling
Task type: transaction_integrity_fix
Dif... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: sre_incident_sim
Scenario: time-series metrics store
Domain focus: consensus & replication
Primary language: bash
Difficulty: expert
Scale/SLO: 1M msgs/min
Component: component_xymfppvd
Constraints: avoid data races and undefined behavior, include performance model and limits, include verification strategy, ... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix the bug and add pytest tests.
```python
def f16177(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 `m02311.py` and `test_m02311.py`.
*** Begin Patch
*** Update File: m02311.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Design a production system for education supporting search + pagination.
Target platform: web (React + TypeScript).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must avoid global state, must include tests, must be observable (logs/metrics/traces), must include clear error ... | WithinUsAI/GOD_Coder_100k |
Write pytest tests for `f04864`.
```python
def f04864(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m43552 import f04864
def test_known():
assert f04864(3,4) == 25
def test_zero():
assert f04864(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f06434(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m58062.py` with types and O(n) average.
```python
# m58062.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: kernel_syscall_design
Scenario: graph query service
Domain focus: constraint solving
Primary language: rust
Difficulty: expert
Scale/SLO: p99 < 150ms
Component: component_cjardipg
Constraints: explicit contracts and invariants, avoid data races and undefined behavior, assume adversarial inputs; validate ever... | WithinUsAI/Omega_Genesis_Coder_100k |
Debug and fix a subtle production bug related to event-driven workflows in a enterprise SaaS service.
Target platform: infra (Terraform).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must include type hints where applicable, must include tests, must include clear error handli... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: multi-tenant SaaS.
Primary language: go.
Difficulty: medium.
Constraints: include invariants and failure modes, include tests or verification strategy, document performance characteristics.
Component: component_iqtvmld.
Assume... | 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: dfvk3aev.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of gpu compute for scenario: job scheduler.
Primary language: python.
Difficulty: medium.
Constraints: document performance characteristics, assume untrusted inputs; validate and sanitize, make the interface contract explicit, include invariants and failure modes.
Component: ... | 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: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C12131:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m47087.py` and `test_m47087.py`.
```python
# m47087.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f30969(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 `m61567.py` and `test_m61567.py`.
*** Begin Patch
*** Update File: m61567.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f95352(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m99336.py` with types and O(n) average.
```python
# m99336.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 f23368(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 `m17624.py` and `test_m17624.py`.
*** Begin Patch
*** Update File: m17624.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Design a production system for fraud detection supporting multi-tenant isolation.
Target platform: backend (Python FastAPI).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must avoid global state, must include tests, must include type hints where applicable, must include cle... | 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: q_uvk... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f81633(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f81633(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor a Python module used for task scheduling into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must include type hints, must include docstrings, must handle Windows paths safely, must be memory-efficient.
Difficulty: hard. ... | 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: tlt207.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement a concurrent Python solution for validation.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: stdlib-only, must include type hints.
Difficulty: expert. Provide helpful exceptions with actionable messages.
Deliverable: corrected code and verificatio... | WithinUsAI/python_GOD_coder_100k |
Task type: supply_chain_security
Scenario: job scheduler
Domain focus: network protocols
Primary language: sql
Difficulty: expert
Scale/SLO: p99 < 150ms
Component: component_qzayohzd
Constraints: include failure modes and recovery, avoid data races and undefined behavior, assume adversarial inputs; validate everything,... | 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: Project stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Language: C++
Dependency challenge: dead-letter queue replay
Task type: build_reproduc... | WithinUsAI/GOD_Coder_Complete_DataSet |
Implement a concurrent Python solution for task scheduling.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: must provide clear error messages, must include tests.
Difficulty: medium. Include a small CLI example if relevant.
Deliverable: API + reference impl... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of sre/observability for scenario: feature flagging.
Primary language: bash.
Difficulty: expert.
Constraints: design for backward compatibility and migrations, avoid undefined behavior and data races, make the interface contract explicit, include invariants and failure modes.... | 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: network_protocol
Scenario: job scheduler
Domain focus: large-scale ML systems
Primary language: bash
Difficulty: expert+
Scale/SLO: 50 TB/day ingestion
Component: component_qjhmpxyr
Constraints: include failure modes and recovery, avoid data races and undefined behavior, include performance model and limits,... | 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: k_6sh... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of ml systems for scenario: analytics pipeline.
Primary language: sql.
Difficulty: medium.
Constraints: assume untrusted inputs; validate and sanitize, include invariants and failure modes, document performance characteristics.
Component: component_qjlzctr.
Assume schema chan... | 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 |
Build a data pipeline for a fraud detection product around background jobs.
Target platform: data (SQL + Python).
Requirements: schema, ingestion, validation, backfills, and tests.
Constraints: must be observable (logs/metrics/traces), must be secure-by-default, must be performant under load, must be easy to extend, mu... | WithinUsAI/GOD_Coder_100k |
Write pytest tests for `f99081`.
```python
def f99081(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m85583 import f99081
def test_known():
assert f99081(3,4) == 25
def test_zero():
assert f99081(0,0) == 0
def test_property_nonne... | 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: reporting engine
Stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Cross-layer incident: schema drift during deployment
Task type: auth_session_rep... | 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: dsjprjjgh00a.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f80905(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m54415.py` with types and O(n) average.
```python
# m54415.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Debug and fix a subtle production bug related to offline-first sync in a IoT telemetry service.
Target platform: CI (GitHub Actions).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must be performant under load, must include clear error handling, must be observable (logs/metric... | WithinUsAI/GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f99542(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 `m28506.py` and `test_m28506.py`.
*** Begin Patch
*** Update File: m28506.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f27118`.
```python
def f27118(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m03874 import f27118
def test_known():
assert f27118(3,4) == 25
def test_zero():
assert f27118(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: gpu_serving_pipeline
Scenario: time-series metrics store
Domain focus: compiler toolchains
Primary language: typescript
Difficulty: expert
Scale/SLO: p99 < 150ms
Component: component_atdrfhgs
Constraints: avoid data races and undefined behavior, explicit contracts and invariants, include performance model an... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of sre/observability for scenario: inventory & ordering.
Primary language: rust.
Difficulty: medium.
Constraints: provide rollout and rollback guidance, include tests or verification strategy, document performance characteristics, avoid undefined behavior and data races, make... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: time-series metrics.
Primary language: go.
Difficulty: medium.
Constraints: design for backward compatibility and migrations, avoid undefined behavior and data races, include tests or verification strategy, assume untrusted in... | 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: JavaScript
Framework/tooling: Express
Domain: job scheduler
Logic challenge: build reproducibility failure
Task type: multi_service_security_patch
D... | WithinUsAI/GOD_Coder_Complete_DataSet |
Create a small, production-ready Python package for rate limiting.
Requirements: include module code, CLI entrypoint, logging, and a minimal pyproject.toml.
Constraints: must include type hints, must be memory-efficient, must include tests, must be easy to extend.
Difficulty: medium. Include a small CLI example if rele... | 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: Produce an offline-first self-evolving code assi... | 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 |
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: benchmark harness
Primary language: Rust
Framework/tooling: SQLx
Reported problem: mismatched API contract
Task type: feature_delivery
Diff... | 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: System domain: developer platform
Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Cross-layer incident: race condition on worker shutdown
Task... | WithinUsAI/GOD_Coder_Complete_DataSet |
Design and implement an algorithm for configuration loading.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must include tests, must include type hints, must provide clear error messages, must be streaming-friendly.
Difficulty: medium. Provide helpful e... | WithinUsAI/python_GOD_coder_100k |
Task type: distributed_algorithm
Scenario: identity and access
Domain focus: consensus & replication
Primary language: typescript
Difficulty: expert
Scale/SLO: multi-region active-active
Component: component_easrorhe
Constraints: include security threat model (defensive only), assume adversarial inputs; validate everyt... | 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: Project domain: data pipeline
Implementation stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Software delivery problem: stale cache invalidation
Task type: inci... | WithinUsAI/GOD_Coder_Complete_DataSet |
Implement analytics pipeline for a social media product.
Target platform: infra (Docker + Kubernetes).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must be performant under load, must include tests, must include clear error handling, must be observable (logs/metrics/traces).
Diffi... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of sre/observability for scenario: inventory & ordering.
Primary language: go.
Difficulty: hard.
Constraints: include tests or verification strategy, design for backward compatibility and migrations, avoid undefined behavior and data races, document performance characteristic... | 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: z2o6kzwern.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: ix19z9a_v5oa.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 |
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: zaw9d2dg.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f88379(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 `m41197.py` and `test_m41197.py`.
*** Begin Patch
*** Update File: m41197.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: Produce an offline-first self-evolving code assi... | 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 |
Write pytest tests for `f63589`.
```python
def f63589(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m66227 import f63589
def test_known():
assert f63589(3,4) == 25
def test_zero():
assert f63589(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: beqlqc5pyau.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: compiler_frontend
Scenario: document indexing pipeline
Domain focus: runtime systems
Primary language: bash
Difficulty: expert+
Scale/SLO: multi-region active-active
Component: component_hqydgtgl
Constraints: include performance model and limits, include verification strategy, avoid data races and undefined ... | WithinUsAI/Omega_Genesis_Coder_100k |
Add a clear docstring and type hints to this function:
```python
def f83184(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f83184(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | 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: Repository domain: payments platform
Primary language: Python
Framework/tooling: SQLAlchemy
Reported problem: gRPC retry storm
Task type: repo_issue_patch
Dif... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix the bug and add pytest tests.
```python
def f37729(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 `m48247.py` and `test_m48247.py`.
*** Begin Patch
*** Update File: m48247.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: Fix a bug and add tests.
File: pqynk4wyzu.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f13575(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 `m16225.py` and `test_m16225.py`.
*** Begin Patch
*** Update File: m16225.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Design CI/CD for a social media service delivering audit logs.
Target platform: CI (GitHub Actions).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must include documentation/comments, must include clear error handling, must be secure-by-default, must avoid global state.
Di... | WithinUsAI/GOD_Coder_100k |
Design and implement an algorithm for data modeling.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must avoid global state, must be easy to extend, must include docstrings, must include type hints.
Difficulty: expert. Include a small CLI example if rel... | 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: Language: Go
Framework/tooling: sqlc
Domain: artifact registry
Logic challenge: stale cache invalidation
Task type: performance_bottleneck_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: Optimize while preserving behavior.
File: s58ti... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f61300(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 `m65900.py` and `test_m65900.py`.
*** Begin Patch
*** Update File: m65900.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of databases for scenario: chat messaging.
Primary language: rust.
Difficulty: medium.
Constraints: document performance characteristics, include invariants and failure modes, assume untrusted inputs; validate and sanitize.
Component: component_jmcxdle.
Assume 50k RPS and p99... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C01813:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m38601.py` and `test_m38601.py`.
```python
# m38601.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: Go
Framework/tooling: sqlc
Domain: auth service
Logic challenge: unsafe deserialization
Task type: performance_bottleneck_patch
Difficulty: hard
Re... | 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: Project stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Language: Python
Dependency challenge: migration ordering failure
Task type: bui... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of stream processing for scenario: multi-tenant SaaS.
Primary language: rust.
Difficulty: expert.
Constraints: make the interface contract explicit, assume untrusted inputs; validate and sanitize, include tests or verification strategy, design for backward compatibility and m... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: smt_constraint_model
Scenario: job scheduler
Domain focus: network protocols
Primary language: smtlib
Difficulty: expert+
Scale/SLO: p99 < 150ms
Component: component_rykhnmgi
Constraints: assume adversarial inputs; validate everything, include backward compatibility and migration plan, avoid data races and u... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix the bug and add pytest tests.
```python
def f64954(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 `m66422.py` and `test_m66422.py`.
*** Begin Patch
*** Update File: m66422.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f27381`.
```python
def f27381(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m32483 import f27381
def test_known():
assert f27381(3,4) == 25
def test_zero():
assert f27381(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor a Python module used for ETL pipelines into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must include tests, must be streaming-friendly, must be memory-efficient, must include type hints.
Difficulty: expert. Avoid quadr... | 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: ngx09... | 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: usfdpy9xn0.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: mfcopngn.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: tla_state_machine
Scenario: document indexing pipeline
Domain focus: formal verification
Primary language: tla+
Difficulty: hard
Scale/SLO: 99.99% availability
Component: component_whrbnspo
Constraints: avoid data races and undefined behavior, include verification strategy, assume adversarial inputs; validat... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: payment processing.
Primary language: python.
Difficulty: expert.
Constraints: make the interface contract explicit, design for backward compatibility and migrations, include tests or verification strategy, document performanc... | 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: Repository domain: document processing API
Primary language: SQL
Framework/tooling: SQLite
Reported problem: async cancellation bug
Task type: performance_pat... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write pytest tests for `f04957`.
```python
def f04957(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m57851 import f04957
def test_known():
assert f04957(3,4) == 25
def test_zero():
assert f04957(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: Produce an offline-first self-evolving code assi... | 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: tla_state_machine
Scenario: identity and access
Domain focus: edge robotics (safe)
Primary language: tla+
Difficulty: expert+
Scale/SLO: p99 < 150ms
Component: component_swasesfk
Constraints: explicit contracts and invariants, include failure modes and recovery, avoid data races and undefined behavior, inclu... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor an existing codebase in fintech to support analytics pipeline cleanly.
Target platform: backend (Python FastAPI).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must be observable (logs/metrics/traces), must include type hints where applicable, must include do... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.