text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Debug and fix a subtle production bug related to analytics pipeline in a gaming service.
Target platform: web (React + TypeScript).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must be performant under load, must include clear error handling, must include documentation/commen... | 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: SQL
Dependency challenge: async cancellation bug
Task type: lockfile_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 |
Perform a code review for a enterprise SaaS PR implementing A/B experimentation.
Target platform: infra (Docker + Kubernetes).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must include type hints where applicable, must avoid global state, must be performant under... | 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 domain: repo automation
Implementation stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Software delivery problem: path traversal... | 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: xih5agy.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: static_analyzer
Scenario: time-series metrics store
Domain focus: cryptography engineering (defensive)
Primary language: python
Difficulty: hard
Scale/SLO: multi-region active-active
Component: component_avavyyqe
Constraints: avoid data races and undefined behavior, include failure modes and recovery, includ... | 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: x8g116z1c5jt.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: perf_microarchitecture
Scenario: edge sync
Domain focus: distributed storage
Primary language: typescript
Difficulty: hard
Scale/SLO: 50 TB/day ingestion
Component: component_kvqwyqay
Constraints: explicit contracts and invariants, include performance model and limits, avoid data races and undefined behavior... | 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 |
Optimize while preserving behavior and order.
```python
def f51281(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m50183.py` with types and O(n) average.
```python
# m50183.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Create a comprehensive test plan and automated tests for analytics pipeline in a enterprise SaaS product.
Target platform: infra (Docker + Kubernetes).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must be observable (logs/metrics/traces), must be secure-by-default, m... | WithinUsAI/GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C52634:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m34818.py` and `test_m34818.py`.
```python
# m34818.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Design a small, production-grade Python API for task scheduling.
Requirements: define data models and interfaces, implement reference version, include tests.
Constraints: stdlib-only, must be memory-efficient, must include type hints, must provide clear error messages.
Difficulty: hard. Guarantee deterministic output o... | 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: a6n34p6yac.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C38211:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m95247.py` and `test_m95247.py`.
```python
# m95247.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f43994(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m49142.py` with types and O(n) average.
```python
# m49142.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: q4u4v7ufst.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f01568(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 `m00224.py` and `test_m00224.py`.
*** Begin Patch
*** Update File: m00224.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: Fix a bug and add tests.
File: qlg4kse.py
```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: kcizwrahss9w.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: h4iusa9irgsa.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: eoa_u3.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: System domain: benchmark harness
Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Cross-layer incident: monorepo toolchain skew
Task type: depl... | 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: me7vk7riy.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: c7n4iwx4xlc.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of compilers for scenario: chat messaging.
Primary language: go.
Difficulty: expert.
Constraints: provide rollout and rollback guidance, avoid undefined behavior and data races, document performance characteristics, assume untrusted inputs; validate and sanitize, include test... | 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 |
Build an elite-grade solution in the domain of gpu compute for scenario: event ingestion.
Primary language: rust.
Difficulty: expert.
Constraints: document performance characteristics, provide rollout and rollback guidance, make the interface contract explicit, include invariants and failure modes, design for backward ... | 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 |
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: q8e5zrxd.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement an ML engineering workflow for fraud detection focusing on idempotent payments.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must include type hints where applicable, must be easy to extend, must include... | WithinUsAI/GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of operating systems for scenario: rate limiting gateway.
Primary language: python.
Difficulty: medium.
Constraints: document performance characteristics, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance, include tests or verification stra... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: lockfree_primitive
Scenario: job scheduler
Domain focus: large-scale ML systems
Primary language: rust
Difficulty: expert+
Scale/SLO: 50 TB/day ingestion
Component: component_dcziispo
Constraints: assume adversarial inputs; validate everything, avoid data races and undefined behavior, include verification st... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of ml systems for scenario: job scheduler.
Primary language: rust.
Difficulty: medium.
Constraints: assume untrusted inputs; validate and sanitize, document performance characteristics, make the interface contract explicit, avoid undefined behavior and data races, design for ... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of databases for scenario: chat messaging.
Primary language: go.
Difficulty: expert.
Constraints: assume untrusted inputs; validate and sanitize, include tests or verification strategy, include invariants and failure modes, design for backward compatibility and migrations, pr... | WithinUsAI/Elite_GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: Bash
Framework/tooling: jq
Domain: search service
Logic challenge: log redaction failure
Task type: distributed_debug
Difficulty: hard
Return a rig... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of networking for scenario: chat messaging.
Primary language: go.
Difficulty: expert.
Constraints: make the interface contract explicit, assume untrusted inputs; validate and sanitize, document performance characteristics.
Component: component_knzoqbr.
Assume schema changes e... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of networking for scenario: rate limiting gateway.
Primary language: rust.
Difficulty: medium.
Constraints: avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, make the interface contract explicit, design for backward compatibility and mig... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: static_analyzer
Scenario: edge sync
Domain focus: GPU serving
Primary language: typescript
Difficulty: hard
Scale/SLO: 100k RPS peak
Component: component_wnseyzoo
Constraints: include performance model and limits, include deterministic replay plan, assume adversarial inputs; validate everything, include fail... | 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: Repository domain: search service
Primary language: YAML
Framework/tooling: Docker Compose
Reported problem: memory leak in AST cache
Task type: repo_issue_pa... | WithinUsAI/GOD_Coder_Complete_DataSet |
Debug and fix a subtle production bug related to background jobs in a healthtech 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 include documentation/comments, must be easy ... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of realtime systems for scenario: edge sync.
Primary language: go.
Difficulty: medium.
Constraints: include tests or verification strategy, avoid undefined behavior and data races, include invariants and failure modes, provide rollout and rollback guidance.
Component: compone... | WithinUsAI/Elite_GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker
Language: TypeScript
Dependency challenge: idempotent retry design
Task type: container_runtim... | WithinUsAI/GOD_Coder_Complete_DataSet |
Improve typing and robustness of a Python module used for CLI tooling.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: must be memory-efficient, stdlib-only, must handle Windows paths safely, must avoid global state.
Difficulty: expert. Avoid quadratic behavio... | 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: SQLx
Domain: auth service
Logic challenge: migration ordering failure
Task type: multi_service_security_patch
Difficulty: ex... | 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: payments platform
Logic challenge: rate-limit bypass
Task type: monorepo_toolchain_recovery
Difficulty: ha... | WithinUsAI/GOD_Coder_Complete_DataSet |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
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: bf3xb... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C26001:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m25077.py` and `test_m25077.py`.
```python
# m25077.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f05691(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 `m00813.py` and `test_m00813.py`.
*** Begin Patch
*** Update File: m00813.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of distributed systems for scenario: event ingestion.
Primary language: rust.
Difficulty: medium.
Constraints: provide rollout and rollback guidance, avoid undefined behavior and data races, design for backward compatibility and migrations, make the interface contract explici... | WithinUsAI/Elite_GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project domain: payments platform
Implementation stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Software delivery problem: stale cache invalidation
Task... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix a subtle bug in a Python module used for file synchronization.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must include tests, must be memory-efficient, must be easy to extend, must include docstrings.
Difficulty: medium. Ensure the API is testable via de... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f68410(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 `m52630.py` and `test_m52630.py`.
*** Begin Patch
*** Update File: m52630.py
@@
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: Project stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Language: SQL
Dependency challenge: S3-compatible upload inconsistency
Task type: cve_dep... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of distributed systems for scenario: rate limiting gateway.
Primary language: sql.
Difficulty: medium.
Constraints: provide rollout and rollback guidance, include tests or verification strategy, document performance characteristics.
Component: component_yvgrvhp.
Assume schema... | 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: syx2_8rqzfl.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: compiler_frontend
Scenario: document indexing pipeline
Domain focus: network protocols
Primary language: typescript
Difficulty: expert
Scale/SLO: 10k RPS peak
Component: component_xzqypwhq
Constraints: include verification strategy, explicit contracts and invariants, include deterministic replay plan, assume... | 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: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker
Language: Go
Dependency challenge: unsafe deserialization
Task type: lockfile_repair
Difficu... | 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: es88y47njf.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 |
Perform a code review for a social media PR implementing role-based access control.
Target platform: backend (Python FastAPI).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must include documentation/comments, must be performant under load, must be observable (log... | 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: m1__xp0ur.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: Java
Framework/tooling: Gradle
Domain: repo automation
Logic challenge: websocket reconnect storm
Task type: backwards_compatible_redesign
Difficult... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of realtime systems for scenario: rate limiting gateway.
Primary language: go.
Difficulty: hard.
Constraints: include tests or verification strategy, design for backward compatibility and migrations, document performance characteristics.
Component: component_wndsifz.
Assume c... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: distributed_algorithm
Scenario: graph query service
Domain focus: kernel primitives
Primary language: sql
Difficulty: expert+
Scale/SLO: p99 < 50ms
Component: component_xdtsemxo
Constraints: avoid data races and undefined behavior, assume adversarial inputs; validate everything, include verification strategy... | WithinUsAI/Omega_Genesis_Coder_100k |
Debug and fix a subtle production bug related to caching in a gaming service.
Target platform: ML (scikit + batch).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must include tests, must avoid global state, must include clear error handling.
Difficulty: expert. Assume schema e... | WithinUsAI/GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: distributed_algorithm
Scenario: real-time notification hub
Domain focus: network protocols
Primary language: sql
Difficulty: expert
Scale/SLO: 10k RPS peak
Component: component_joxzebqc
Constraints: include verification strategy, include failure modes and recovery, explicit contracts and invariants, include ... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix the bug and add pytest tests.
```python
def f46166(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 `m63738.py` and `test_m63738.py`.
*** Begin Patch
*** Update File: m63738.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for rate limiting.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must be memory-efficient, must include docstrings, stdlib-only, must be easy to extend.
Difficulty: expert. Provide helpful exceptions with actionable messages... | WithinUsAI/python_GOD_coder_100k |
Write pytest tests for `f82676`.
```python
def f82676(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m54668 import f82676
def test_known():
assert f82676(3,4) == 25
def test_zero():
assert f82676(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Debug and fix a subtle production bug related to event-driven workflows in a content moderation service.
Target platform: infra (Docker + Kubernetes).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must be performant under load, must include tests, must be secure-by-default.
Di... | WithinUsAI/GOD_Coder_100k |
Refactor a Python module used for time series into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must include docstrings, must avoid global state, must include tests.
Difficulty: easy. Support both Windows and POSIX paths correct... | WithinUsAI/python_GOD_coder_100k |
Write pytest tests for `f86970`.
```python
def f86970(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m26710 import f86970
def test_known():
assert f86970(3,4) == 25
def test_zero():
assert f86970(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: C++
Framework/tooling: Boost
Domain: data pipeline
Logic challenge: log redaction failure
Task type: backwards_compatible_redesign
Difficulty: exper... | WithinUsAI/GOD_Coder_Complete_DataSet |
Implement an ML engineering workflow for education focusing on webhooks.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must be production-ready, must be easy to extend, must be performant under load, must include d... | 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: Bash
Framework/tooling: sed
Domain: payments platform
Logic challenge: unsafe deserialization
Task type: algorithmic_correctness
Difficulty: hard
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: i03ihdvx3f.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f41058(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m77294.py` with types and O(n) average.
```python
# m77294.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f94969(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f94969(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of stream processing for scenario: rate limiting gateway.
Primary language: go.
Difficulty: medium.
Constraints: include tests or verification strategy, design for backward compatibility and migrations, include invariants and failure modes, provide rollout and rollback guidan... | WithinUsAI/Elite_GOD_Coder_100k |
Write pytest tests for `f93668`.
```python
def f93668(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m70524 import f93668
def test_known():
assert f93668(3,4) == 25
def test_zero():
assert f93668(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Create a small, production-ready Python package for configuration loading.
Requirements: include module code, CLI entrypoint, logging, and a minimal pyproject.toml.
Constraints: must avoid global state, must include tests, must handle Windows paths safely, must provide clear error messages.
Difficulty: medium. Guarante... | WithinUsAI/python_GOD_coder_100k |
Task type: query_optimizer
Scenario: graph query service
Domain focus: observability platforms
Primary language: python
Difficulty: expert+
Scale/SLO: p99 < 50ms
Component: component_njyoppej
Constraints: include security threat model (defensive only), avoid data races and undefined behavior, explicit contracts and inv... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix the bug and add pytest tests.
```python
def f45100(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 `m49300.py` and `test_m49300.py`.
*** Begin Patch
*** Update File: m49300.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: ho2wi... | 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: xzo55jcl.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f58542(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 `m65506.py` and `test_m65506.py`.
*** Begin Patch
*** Update File: m65506.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: Optimize while preserving behavior.
File: yzvnj... | 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 stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker
Language: Python
Dependency challenge: log redaction failure
Task type: build_reproducibilit... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of realtime systems for scenario: event ingestion.
Primary language: sql.
Difficulty: hard.
Constraints: design for backward compatibility and migrations, make the interface contract explicit, include tests or verification strategy, document performance characteristics.
Compo... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: mechanized_spec
Scenario: rate limit gateway
Domain focus: fault injection & chaos engineering
Primary language: lean
Difficulty: expert
Scale/SLO: p99 < 150ms
Component: component_tqtmzgon
Constraints: assume adversarial inputs; validate everything, include security threat model (defensive only), avoid data... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C71428:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m43956.py` and `test_m43956.py`.
```python
# m43956.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: df1uzvi.py
```py... | 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.