text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
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: job scheduler
Logic challenge: timezone bug in reporting
Task type: distributed_debug
Difficulty: hard
R... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor an existing codebase in IoT telemetry to support real-time notifications cleanly.
Target platform: mobile (Android Kotlin).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must include documentation/comments, must be observable (logs/metrics/traces), must be ea... | 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: Go
Framework/tooling: Fiber
Domain: search service
Logic challenge: timezone bug in reporting
Task type: edge_case_hardening
Difficulty: medium
Ret... | WithinUsAI/GOD_Coder_Complete_DataSet |
Debug and fix a subtle production bug related to rate limiting in a fintech service.
Target platform: CI (GitHub Actions).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must be production-ready, must be secure-by-default, must be easy to extend, must include type hints where a... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of sre/observability for scenario: payment processing.
Primary language: rust.
Difficulty: medium.
Constraints: avoid undefined behavior and data races, design for backward compatibility and migrations, include invariants and failure modes, document performance characteristic... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of databases for scenario: chat messaging.
Primary language: rust.
Difficulty: expert.
Constraints: provide rollout and rollback guidance, document performance characteristics, design for backward compatibility and migrations, include invariants and failure modes.
Component: ... | WithinUsAI/Elite_GOD_Coder_100k |
Perform a code review for a document processing PR implementing event-driven workflows.
Target platform: data (SQL + Python).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must be observable (logs/metrics/traces), must be production-ready, must be performant under... | WithinUsAI/GOD_Coder_100k |
Write a thorough test suite for a Python component used for data modeling.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must avoid global state, must include docstrings.
Difficulty: hard. Provide helpful exceptions with actionable messages.
Deliverable: corrected code and verif... | WithinUsAI/python_GOD_coder_100k |
Optimize while preserving behavior and order.
```python
def f88611(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m98373.py` with types and O(n) average.
```python
# m98373.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C66058:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m20466.py` and `test_m20466.py`.
```python
# m20466.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement a concurrent Python solution for configuration loading.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: must handle Windows paths safely, must avoid global state.
Difficulty: easy. Avoid quadratic behavior on large inputs.
Deliverable: production-... | WithinUsAI/python_GOD_coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C44776:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m95752.py` and `test_m95752.py`.
```python
# m95752.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: TypeScript
Framework/tooling: Vitest
Domain: team dashboard
Logic challenge: N+1 query explosion
Task type: concurrency_fix
Difficulty: hard
Return... | WithinUsAI/GOD_Coder_Complete_DataSet |
Design a production system for enterprise SaaS supporting file uploads.
Target platform: backend (Go).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must be performant under load, must be production-ready, must avoid global state, must be easy to extend, must include type h... | 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: Fix a bug and add tests.
File: vr8ndjr6f_.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f57471(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 `m65353.py` and `test_m65353.py`.
*** Begin Patch
*** Update File: m65353.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 |
Fix the bug and add pytest tests.
```python
def f79640(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 `m68520.py` and `test_m68520.py`.
*** Begin Patch
*** Update File: m68520.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor a Python module used for rate limiting into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must be memory-efficient, must include docstrings, must avoid global state, must include type hints.
Difficulty: hard. Support bot... | 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: Java
Framework/tooling: Hibernate
Domain: job scheduler
Logic challenge: monorepo toolchain skew
Task type: misleading_symptom_debug
Difficulty: har... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: static_analyzer
Scenario: graph query service
Domain focus: consensus & replication
Primary language: rust
Difficulty: hard
Scale/SLO: p99 < 150ms
Component: component_bqdgktpc
Constraints: include backward compatibility and migration plan, include test vectors and fuzz strategy, avoid data races and undefin... | WithinUsAI/Omega_Genesis_Coder_100k |
Provision infrastructure for a gaming workload providing offline-first sync.
Target platform: backend (Go).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must avoid global state, must include tests, must include type hints where applicable.
Difficulty: hard. Assume sch... | WithinUsAI/GOD_Coder_100k |
Task type: secure_architecture
Scenario: edge sync
Domain focus: kernel primitives
Primary language: sql
Difficulty: hard
Scale/SLO: 100k RPS peak
Component: component_gqkopszd
Constraints: avoid data races and undefined behavior, include backward compatibility and migration plan, include failure modes and recovery, as... | 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: Java
Framework/tooling: Maven
Domain: auth service
Logic challenge: broken pagination cursor
Task type: backwards_compatible_redesign
Difficulty: ex... | WithinUsAI/GOD_Coder_Complete_DataSet |
Create a small, production-ready Python package for configuration loading.
Requirements: include module code, CLI entrypoint, logging, and a minimal pyproject.toml.
Constraints: must be memory-efficient, must include tests.
Difficulty: expert. Include a small CLI example if relevant.
Deliverable: production-ready refe... | 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: SQL
Framework/tooling: SQLite
Domain: search service
Logic challenge: unsafe deserialization
Task type: concurrency_fix
Difficulty: hard
Return a 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: Fix a bug and add tests.
File: tdr7nmf1q3.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: bc9fnaxa.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: d61k_mqobhx.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
Design a production system for fraud detection supporting analytics pipeline.
Target platform: ML (scikit + batch).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must be secure-by-default, must be production-ready, must be observable (logs/metrics/traces), must include type... | 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: euq1b... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of databases for scenario: feature flagging.
Primary language: bash.
Difficulty: medium.
Constraints: include tests or verification strategy, include invariants and failure modes, design for backward compatibility and migrations, provide rollout and rollback guidance, avoid u... | 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: tklu5f2om63.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
Improve typing and robustness of a Python module used for data modeling.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: must be easy to extend, must include tests.
Difficulty: hard. Guarantee deterministic output ordering.
Deliverable: API + reference implem... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f63253(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 `m66179.py` and `test_m66179.py`.
*** Begin Patch
*** Update File: m66179.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Provision infrastructure for a fraud detection workload providing webhooks.
Target platform: backend (Node.js).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must include type hints where applicable, must be secure-by-default, must avoid global state, must include docu... | 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: model serving gateway
Primary language: C++
Framework/tooling: Catch2
Reported problem: stale cache invalidation
Task type: security_patch
... | 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: Rust, Axum, SQLx, Redis, Tokio, Docker
Language: TypeScript
Dependency challenge: CI failures after dependency upgrade
Task type: lockfile_repa... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor a Python module used for log processing into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must be memory-efficient, must be easy to extend, stdlib-only, must include tests.
Difficulty: expert. Handle empty inputs and ma... | WithinUsAI/python_GOD_coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C78130:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m06010.py` and `test_m06010.py`.
```python
# m06010.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for caching layer.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must be streaming-friendly, must avoid global state, must include docstrings.
Difficulty: hard. Handle empty inputs and malformed records gracefully.
Delivera... | 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: q4q11... | 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: updx54hefxg.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: va74kg1wggb6.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f96000(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m28000.py` with types and O(n) average.
```python
# m28000.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 f68474(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 `m09782.py` and `test_m09782.py`.
*** Begin Patch
*** Update File: m09782.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: mtiqn... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C86585:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m22045.py` and `test_m22045.py`.
```python
# m22045.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: C++
Framework/tooling: STL
Domain: job scheduler
Logic challenge: mismatched API contract
Task type: monorepo_toolchain_recovery
Difficulty: expert
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Implement rate limiting for a logistics product.
Target platform: mobile (iOS Swift).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must include documentation/comments, must be performant under load, must be production-ready, must be easy to extend, must include clear error handlin... | WithinUsAI/GOD_Coder_100k |
Improve typing and robustness of a Python module used for telemetry ingestion.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: must be streaming-friendly, stdlib-only, must be easy to extend.
Difficulty: easy. Handle empty inputs and malformed records graceful... | 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: vy99fxvqp.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of distributed systems for scenario: analytics pipeline.
Primary language: python.
Difficulty: expert.
Constraints: design for backward compatibility and migrations, document performance characteristics, avoid undefined behavior and data races.
Component: component_ocrrgjw.
A... | WithinUsAI/Elite_GOD_Coder_100k |
Write pytest tests for `f26731`.
```python
def f26731(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m89533 import f26731
def test_known():
assert f26731(3,4) == 25
def test_zero():
assert f26731(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: Language: JavaScript
Framework/tooling: React
Domain: team dashboard
Logic challenge: N+1 query explosion
Task type: distributed_debug
Difficulty: hard
Retur... | 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: gce9biqv0ym.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: ml_system_design
Scenario: real-time notification hub
Domain focus: stream processing
Primary language: rust
Difficulty: expert
Scale/SLO: p99 < 150ms
Component: component_eoiegjhf
Constraints: include security threat model (defensive only), include test vectors and fuzz strategy, avoid data races and undefi... | WithinUsAI/Omega_Genesis_Coder_100k |
Implement offline-first sync for a social media product.
Target platform: backend (Go).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must be performant under load, must be production-ready, must include tests.
Difficulty: medium. Assume GDPR-style deletion requests must be support... | WithinUsAI/GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C23084:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m09468.py` and `test_m09468.py`.
```python
# m09468.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement an ML engineering workflow for e-commerce focusing on audit logs.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must avoid global state, must be performant under load, must be observable (logs/metrics/tra... | 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: Project stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Language: JavaScript
Dependency challenge: gRPC retry storm
Task type: container... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: robust_e2e_testing
Scenario: rate limit gateway
Domain focus: runtime systems
Primary language: go
Difficulty: expert
Scale/SLO: 50 TB/day ingestion
Component: component_ophptagz
Constraints: include deterministic replay plan, include failure modes and recovery, assume adversarial inputs; validate everything... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C60509:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m66193.py` and `test_m66193.py`.
```python
# m66193.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f02355`.
```python
def f02355(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m71765 import f02355
def test_known():
assert f02355(3,4) == 25
def test_zero():
assert f02355(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Secure-by-default implementation for file uploads in a e-commerce product.
Target platform: infra (Terraform).
Requirements: threat model, input validation, authz/authn guidance, safe storage, tests.
Constraints: must be observable (logs/metrics/traces), must avoid global state, must be production-ready, must include t... | WithinUsAI/GOD_Coder_100k |
Write a thorough test suite for a Python component used for validation.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: stdlib-only, must handle Windows paths safely, must provide clear error messages.
Difficulty: easy. Include a small CLI example if relevant.
Deliverable: API + r... | 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: Bash
Framework/tooling: GNU coreutils
Domain: team dashboard
Logic challenge: race condition on worker shutdown
Task type: cross_stack_outage_fix
Di... | WithinUsAI/GOD_Coder_Complete_DataSet |
Implement multi-tenant isolation for a social media product.
Target platform: infra (Docker + Kubernetes).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must avoid global state, must be production-ready, must be easy to extend, must be performant under load, must include tests.
Dif... | WithinUsAI/GOD_Coder_100k |
Task type: verification_properties
Scenario: document indexing pipeline
Domain focus: observability platforms
Primary language: rust
Difficulty: hard
Scale/SLO: 99.99% availability
Component: component_ufuhsnob
Constraints: include performance model and limits, assume adversarial inputs; validate everything, include se... | WithinUsAI/Omega_Genesis_Coder_100k |
Task type: network_protocol
Scenario: multi-tenant event ingestion
Domain focus: GPU serving
Primary language: python
Difficulty: expert
Scale/SLO: p99 < 50ms
Component: component_esnbngdn
Constraints: include deterministic replay plan, assume adversarial inputs; validate everything, include security threat model (defe... | 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: C#
Framework/tooling: xUnit
Domain: benchmark harness
Logic challenge: JWT refresh token rotation
Task type: edge_case_hardening
Difficulty: medium
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix the bug and add pytest tests.
```python
def f01241(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 `m14463.py` and `test_m14463.py`.
*** Begin Patch
*** Update File: m14463.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor an existing codebase in education to support event-driven workflows cleanly.
Target platform: infra (Docker + Kubernetes).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must include documentation/comments, must include tests, must include type hints where app... | 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: observability collector
Logic challenge: mismatched API contract
Task type: security_logic_interaction... | 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 |
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: ap2gg... | 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: payments platform
Implementation stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Software delivery problem: N+1 query explosio... | 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: Java
Framework/tooling: Hibernate
Domain: repo automation
Logic challenge: unsafe deserialization
Task type: multi_file_migration_repair
Difficulty:... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: runtime_gc
Scenario: streaming ETL
Domain focus: stream processing
Primary language: bash
Difficulty: hard
Scale/SLO: 1M msgs/min
Component: component_eyklwmpd
Constraints: include backward compatibility and migration plan, include test vectors and fuzz strategy, avoid data races and undefined behavior, incl... | 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: 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: Optimize while preserving behavior.
File: pk9ui... | 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: ir51e... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f86847(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f86847(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f39913(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m48559.py` with types and O(n) average.
```python
# m48559.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of realtime systems for scenario: multi-tenant SaaS.
Primary language: go.
Difficulty: expert.
Constraints: document performance characteristics, provide rollout and rollback guidance, include invariants and failure modes, design for backward compatibility and migrations, mak... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of ml systems for scenario: document indexing.
Primary language: rust.
Difficulty: medium.
Constraints: make the interface contract explicit, avoid undefined behavior and data races, design for backward compatibility and migrations, document performance characteristics, assum... | WithinUsAI/Elite_GOD_Coder_100k |
Build a data pipeline for a gaming product around analytics pipeline.
Target platform: data (SQL + Python).
Requirements: schema, ingestion, validation, backfills, and tests.
Constraints: must be secure-by-default, must be production-ready, must be performant under load, must include tests, must include type hints wher... | WithinUsAI/GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f40419(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 `m62917.py` and `test_m62917.py`.
*** Begin Patch
*** Update File: m62917.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Design and implement an algorithm for telemetry ingestion.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must be streaming-friendly, must include docstrings, must provide clear error messages.
Difficulty: easy. Handle empty inputs and malformed records... | 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: Rust
Framework/tooling: cargo test
Domain: feature flag service
Logic challenge: stale cache invalidation
Task type: security_logic_interaction
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: Repository domain: document processing API
Primary language: JavaScript
Framework/tooling: React
Reported problem: schema drift during deployment
Task type: c... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize while preserving behavior and order.
```python
def f43035(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m49005.py` with types and O(n) average.
```python
# m49005.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 |
Build an elite-grade solution in the domain of compilers for scenario: document indexing.
Primary language: typescript.
Difficulty: expert.
Constraints: avoid undefined behavior and data races, design for backward compatibility and migrations, include invariants and failure modes.
Component: component_sflfaun.
Assume p... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: time-series metrics.
Primary language: python.
Difficulty: medium.
Constraints: make the interface contract explicit, include tests or verification strategy, provide rollout and rollback guidance, document performance characte... | WithinUsAI/Elite_GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f07476(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 `m01068.py` and `test_m01068.py`.
*** Begin Patch
*** Update File: m01068.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor a Python module used for telemetry ingestion into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must provide clear error messages, must include tests, must be memory-efficient.
Difficulty: hard. Include a small CLI examp... | 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 domain: reporting engine
Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest
Software delivery problem: monorepo toolchain skew
Task type: incid... | WithinUsAI/GOD_Coder_Complete_DataSet |
Design CI/CD for a logistics service delivering background jobs.
Target platform: backend (Python FastAPI).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must avoid global state, must include documentation/comments, must be production-ready, must include tests, must be obs... | WithinUsAI/GOD_Coder_100k |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.