text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Refactor an existing codebase in gaming to support rate limiting cleanly.
Target platform: infra (Terraform).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must be performant under load, must be production-ready, must be secure-by-default, must be observable (logs/met... | WithinUsAI/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: stdlib-only, must include docstrings, must provide clear error messages.
Difficulty: hard. Support both Windows and POSIX paths correctly.
Deliver... | 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: Repository domain: data pipeline
Primary language: SQL
Framework/tooling: MySQL
Reported problem: invalid rollback sequence
Task type: performance_patch
Diffi... | 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: Language: Bash
Framework/tooling: GNU coreutils
Domain: reporting engine
Logic challenge: S3-compatible upload inconsistency
Task type: backwards_compatible_r... | 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 |
Implement an ML engineering workflow for logistics focusing on real-time notifications.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must include documentation/comments, must be secure-by-default, must be observab... | 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: EF Core
Domain: benchmark harness
Logic challenge: websocket reconnect storm
Task type: monorepo_toolchain_recovery
Difficulty... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write pytest tests for `f90556`.
```python
def f90556(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m41508 import f90556
def test_known():
assert f90556(3,4) == 25
def test_zero():
assert f90556(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 |
Optimize while preserving behavior and order.
```python
def f24255(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m03465.py` with types and O(n) average.
```python
# m03465.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: 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: x9q75jlv2a69.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Create a comprehensive test plan and automated tests for search + pagination in a healthtech product.
Target platform: backend (Python FastAPI).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must be performant under load, must avoid global state, must include type hin... | 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: Repository domain: reporting engine
Primary language: JavaScript
Framework/tooling: Express
Reported problem: log redaction failure
Task type: repo_issue_patc... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: compiler_backend_ir
Scenario: multi-tenant event ingestion
Domain focus: program synthesis (safe)
Primary language: cpp
Difficulty: expert
Scale/SLO: 50 TB/day ingestion
Component: component_buqqtqrr
Constraints: include verification strategy, explicit contracts and invariants, avoid data races and undefined... | 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: GitHub Actions, Docker Compose, Kubernetes, Terraform
Language: YAML
Dependency challenge: unsafe deserialization
Task type: container_runtime_... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize while preserving behavior and order.
```python
def f00962(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m71566.py` with types and O(n) average.
```python
# m71566.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: NUnit
Domain: notification service
Logic challenge: transaction boundary bug
Task type: edge_case_hardening
Difficulty: medium... | WithinUsAI/GOD_Coder_Complete_DataSet |
Implement search + pagination for a e-commerce product.
Target platform: backend (Node.js).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must be secure-by-default, must include type hints where applicable, must avoid global state, must be production-ready.
Difficulty: hard. Includ... | WithinUsAI/GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f81612(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 `m54516.py` and `test_m54516.py`.
*** Begin Patch
*** Update File: m54516.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f88245(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 `m84035.py` and `test_m84035.py`.
*** Begin Patch
*** Update File: m84035.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for log processing.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must be easy to extend, must be memory-efficient, must provide clear error messages.
Difficulty: easy. Support both Windows and POSIX paths correctly.
De... | WithinUsAI/python_GOD_coder_100k |
Debug and fix a subtle production bug related to analytics pipeline in a education service.
Target platform: mobile (iOS Swift).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must be performant under load, must avoid global state, must include documentation/comments, must be o... | WithinUsAI/GOD_Coder_100k |
Optimize while preserving behavior and order.
```python
def f23724(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m60532.py` with types and O(n) average.
```python
# m60532.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for ETL pipelines.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must be easy to extend, must avoid global state, must include tests.
Difficulty: hard. Guarantee deterministic output ordering.
Deliverable: production-re... | WithinUsAI/python_GOD_coder_100k |
Task type: mechanized_spec
Scenario: multi-tenant event ingestion
Domain focus: runtime systems
Primary language: lean
Difficulty: expert+
Scale/SLO: 50 TB/day ingestion
Component: component_ylhwokvd
Constraints: avoid data races and undefined behavior, include failure modes and recovery, include test vectors and fuzz ... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C98832:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m46064.py` and `test_m46064.py`.
```python
# m46064.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f24382(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f24382(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | 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: Optimize while preserving behavior.
File: er81i... | 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: job scheduler
Stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker
Cross-layer incident: invalid rollback sequence
Task type: observabilit... | 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: rsfbo... | 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: Project domain: artifact registry
Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest
Software delivery problem: invalid rollback sequence
Task type: ar... | WithinUsAI/GOD_Coder_Complete_DataSet |
Create a comprehensive test plan and automated tests for webhooks in a social media product.
Target platform: mobile (Android Kotlin).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must be secure-by-default, must include type hints where applicable, must include clear... | 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: u2iyrxn.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Design a production system for education supporting multi-tenant isolation.
Target platform: backend (Node.js).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must include type hints where applicable, must be observable (logs/metrics/traces), must be easy to extend.
Difficul... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of stream processing for scenario: time-series metrics.
Primary language: python.
Difficulty: expert.
Constraints: make the interface contract explicit, provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, include tests or verification strate... | 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: Optimize while preserving behavior.
File: z2jdf... | 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: GitHub Actions, Docker Compose, Kubernetes, Terraform
Language: Java
Dependency challenge: timezone bug in reporting
Task type: container_runti... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: smt_constraint_model
Scenario: streaming ETL
Domain focus: query planning
Primary language: python
Difficulty: expert+
Scale/SLO: 10k RPS peak
Component: component_eizkqwnz
Constraints: include test vectors and fuzz strategy, include deterministic replay plan, assume adversarial inputs; validate everything, ... | WithinUsAI/Omega_Genesis_Coder_100k |
Perform a code review for a IoT telemetry PR implementing analytics pipeline.
Target platform: backend (Python FastAPI).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must be observable (logs/metrics/traces), must include type hints where applicable, must be perfo... | 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: icur2... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C34987:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m94999.py` and `test_m94999.py`.
```python
# m94999.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C45681:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m80437.py` and `test_m80437.py`.
```python
# m80437.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: storage_engine
Scenario: real-time notification hub
Domain focus: consensus & replication
Primary language: typescript
Difficulty: expert
Scale/SLO: 1M msgs/min
Component: component_mutkwmiz
Constraints: include backward compatibility and migration plan, include failure modes and recovery, include performanc... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C97750:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m76750.py` and `test_m76750.py`.
```python
# m76750.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f90530(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 `m55790.py` and `test_m55790.py`.
*** Begin Patch
*** Update File: m55790.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: b4jc2bnd5.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: Language: Bash
Framework/tooling: GNU coreutils
Domain: reporting engine
Logic challenge: unsafe deserialization
Task type: performance_bottleneck_patch
Diffi... | 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: team dashboard
Primary language: Rust
Framework/tooling: SQLx
Reported problem: invalid rollback sequence
Task type: api_endpoint_work
Diff... | WithinUsAI/GOD_Coder_Complete_DataSet |
Debug and fix a subtle production bug related to multi-tenant isolation in a education service.
Target platform: backend (Node.js).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must include tests, must be easy to extend, must include documentation/comments, must be 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: Optimize while preserving behavior.
File: jm2n5... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of gpu compute for scenario: analytics pipeline.
Primary language: bash.
Difficulty: expert.
Constraints: make the interface contract explicit, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, include tests or verification stra... | 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: SQL
Framework/tooling: MySQL
Domain: notification service
Logic challenge: memory leak in AST cache
Task type: distributed_debug
Difficulty: hard
R... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize while preserving behavior and order.
```python
def f70639(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m24377.py` with types and O(n) average.
```python
# m24377.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: Fix a bug and add tests.
File: a7cd0b35.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of databases for scenario: multi-tenant SaaS.
Primary language: rust.
Difficulty: expert.
Constraints: make the interface contract explicit, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, document performance characteristics.... | 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 |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C87147:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m91319.py` and `test_m91319.py`.
```python
# m91319.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: hc1ntpnp1q.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 |
Create a comprehensive test plan and automated tests for A/B experimentation in a content moderation product.
Target platform: backend (Python FastAPI).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must be easy to extend, must include type hints where applicable, mus... | 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 |
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: Fix a bug and add tests.
File: oo902e3a.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f97723(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 `m85389.py` and `test_m85389.py`.
*** Begin Patch
*** Update File: m85389.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f07637(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 `m01091.py` and `test_m01091.py`.
*** Begin Patch
*** Update File: m01091.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement idempotent payments for a social media product.
Target platform: ML (PyTorch + serving).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must be secure-by-default, must be performant under load, must include clear error handling.
Difficulty: expert. Include rollback strateg... | 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: Language: YAML
Framework/tooling: GitHub Actions
Domain: team dashboard
Logic challenge: monorepo toolchain skew
Task type: state_machine_patch
Difficulty: me... | 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: q61vl... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: program_synthesis_safe
Scenario: feature-flag evaluation
Domain focus: query planning
Primary language: typescript
Difficulty: hard
Scale/SLO: 100k RPS peak
Component: component_kcmrwfpa
Constraints: assume adversarial inputs; validate everything, include backward compatibility and migration plan, include te... | 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: Python
Framework/tooling: FastAPI
Domain: payments platform
Logic challenge: websocket reconnect storm
Task type: distributed_debug
Difficulty: hard... | 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: jrxvewd2sxye.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 stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Language: C#
Dependency challenge: N+1 query explosion
Task type: migration_patch
Diff... | WithinUsAI/GOD_Coder_Complete_DataSet |
Add a clear docstring and type hints to this function:
```python
def f80262(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f80262(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f33413(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 `m19059.py` and `test_m19059.py`.
*** Begin Patch
*** Update File: m19059.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 |
Task type: network_protocol
Scenario: document indexing pipeline
Domain focus: zero-downtime migrations
Primary language: rust
Difficulty: expert+
Scale/SLO: p99 < 150ms
Component: component_fyxtyceu
Constraints: include test vectors and fuzz strategy, include backward compatibility and migration plan, include verifica... | 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: kt9flne.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f41266`.
```python
def f41266(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m63038 import f41266
def test_known():
assert f41266(3,4) == 25
def test_zero():
assert f41266(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of operating systems for scenario: feature flagging.
Primary language: python.
Difficulty: hard.
Constraints: assume untrusted inputs; validate and sanitize, document performance characteristics, include invariants and failure modes.
Component: component_xtesxrk.
Assume crash... | 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: System domain: data pipeline
Stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Cross-layer incident: mismatched API contract
Task type: auth_session_repair
Diffic... | WithinUsAI/GOD_Coder_Complete_DataSet |
Provision infrastructure for a developer tooling workload providing idempotent payments.
Target platform: mobile (iOS Swift).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must include type hints where applicable, must be observable (logs/metrics/traces), must be easy ... | 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: e5rxdv42cv.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: document processing API
Stack: Airflow, dbt, DuckDB, MinIO, pytest
Cross-layer incident: multi-tenant access leak
Task type: auth_session_repai... | 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: qkk9i... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of edge/IoT for scenario: rate limiting gateway.
Primary language: python.
Difficulty: expert.
Constraints: provide rollout and rollback guidance, include invariants and failure modes, design for backward compatibility and migrations, make the interface contract explicit, doc... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C46911:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m65147.py` and `test_m65147.py`.
```python
# m65147.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement a web feature for calendar/scheduling: search + pagination.
Target platform: web (React + TypeScript).
Requirements: accessible UI, API integration, and tests.
Constraints: must include tests, must be performant under load, must be easy to extend, must include clear error handling.
Difficulty: hard. Assume PI... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of realtime systems for scenario: edge sync.
Primary language: python.
Difficulty: expert.
Constraints: include invariants and failure modes, provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize.
Component: component_jibmfqu.
Assume strict aud... | 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 |
Implement an ML engineering workflow for customer support focusing on file uploads.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must include tests, must be easy to extend, must include type hints where applicable... | 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: Rust
Framework/tooling: cargo test
Domain: developer platform
Logic challenge: stale cache invalidation
Task type: concurrency_fix
Difficulty: hard
... | WithinUsAI/GOD_Coder_Complete_DataSet |
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 provide clear error messages, must avoid global state.
Difficulty: hard. Guarantee deterministic output ordering.
Deliv... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f33718(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 `m47674.py` and `test_m47674.py`.
*** Begin Patch
*** Update File: m47674.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement a web feature for e-commerce: caching.
Target platform: web (React + TypeScript).
Requirements: accessible UI, API integration, and tests.
Constraints: must avoid global state, must include tests, must be production-ready, must be observable (logs/metrics/traces).
Difficulty: easy. Assume strict latency budge... | 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: hqxqd... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f06722(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f06722(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | 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.