text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Fix a subtle bug in a Python module used for telemetry ingestion.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must provide clear error messages, must handle Windows paths safely, must avoid global state.
Difficulty: expert. Avoid quadratic behavior on large i... | WithinUsAI/python_GOD_coder_100k |
Task type: query_optimizer
Scenario: identity and access
Domain focus: GPU serving
Primary language: rust
Difficulty: expert
Scale/SLO: p99 < 150ms
Component: component_coovqfjl
Constraints: include test vectors and fuzz strategy, assume adversarial inputs; validate everything, include verification strategy, include se... | 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: TypeScript
Dependency challenge: partial checkpoint corruption
Task type: cve_depe... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of realtime systems for scenario: payment processing.
Primary language: go.
Difficulty: medium.
Constraints: make the interface contract explicit, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, provide rollout and rollback gu... | WithinUsAI/Elite_GOD_Coder_100k |
Optimize while preserving behavior and order.
```python
def f71305(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m81615.py` with types and O(n) average.
```python
# m81615.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 C69887:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m82299.py` and `test_m82299.py`.
```python
# m82299.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for telemetry ingestion.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must include type hints, must include tests.
Difficulty: hard. Avoid quadratic behavior on large inputs.
Deliverable: corrected code and verificatio... | 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: artifact registry
Implementation stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Software delivery problem: migration ordering... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: payment processing.
Primary language: python.
Difficulty: expert.
Constraints: document performance characteristics, include invariants and failure modes, include tests or verification strategy, provide rollout and rollback gu... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor an existing codebase in customer support to support real-time notifications cleanly.
Target platform: CI (GitHub Actions).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must include type hints where applicable, must be secure-by-default, must include clear er... | WithinUsAI/GOD_Coder_100k |
Provision infrastructure for a fraud detection workload providing webhooks.
Target platform: infra (Terraform).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must include clear error handling, must include tests, must be secure-by-default, must be observable (logs/metr... | 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: pfwzz... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: SQL
Framework/tooling: PostgreSQL
Domain: data pipeline
Logic challenge: optimistic locking conflict
Task type: parser_validation_logic
Difficulty: ... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix the bug and add pytest tests.
```python
def f12892(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 `m87556.py` and `test_m87556.py`.
*** Begin Patch
*** Update File: m87556.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for data modeling.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must provide clear error messages, must avoid global state.
Difficulty: easy. Provide helpful exceptions with actionable messages.
Deliverable: production... | 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: egb_v6onfda4.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project domain: artifact registry
Implementation stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Software delivery problem: path traversal on downloads
Task typ... | 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: d7ftgoov.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: Optimize while preserving behavior.
File: yioz3... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f15301(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 `m45043.py` and `test_m45043.py`.
*** Begin Patch
*** Update File: m45043.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: ysgjc... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: lockfree_primitive
Scenario: feature-flag evaluation
Domain focus: fault injection & chaos engineering
Primary language: rust
Difficulty: expert
Scale/SLO: p99 < 150ms
Component: component_fcrhvdko
Constraints: explicit contracts and invariants, include failure modes and recovery, assume adversarial inputs; ... | 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: failpd.py
```pyt... | 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: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f39537(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 `m62791.py` and `test_m62791.py`.
*** Begin Patch
*** Update File: m62791.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: System domain: notification service
Stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Cross-layer incident: timezone bug in reporting
Task type: cache_consistency... | 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: pimy2mvypz.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 |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C93189:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m22553.py` and `test_m22553.py`.
```python
# m22553.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C40754:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m80058.py` and `test_m80058.py`.
```python
# m80058.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: c0ppo6jf4.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for report generation.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must include type hints, must include docstrings, must include tests.
Difficulty: expert. Avoid quadratic behavior on large inputs.
Deliverable: corre... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of sre/observability for scenario: time-series metrics.
Primary language: typescript.
Difficulty: expert.
Constraints: document performance characteristics, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize.
Component: component_... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of edge/IoT for scenario: payment processing.
Primary language: go.
Difficulty: expert.
Constraints: provide rollout and rollback guidance, include invariants and failure modes, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations.
... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of compilers for scenario: document indexing.
Primary language: python.
Difficulty: medium.
Constraints: make the interface contract explicit, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize.
Component: component_lpiwalu.
Assume partial... | 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: xbq35tx9kdy.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project domain: benchmark harness
Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Software delivery problem: migration ordering fa... | WithinUsAI/GOD_Coder_Complete_DataSet |
Design a production system for fraud detection supporting analytics pipeline.
Target platform: infra (Docker + Kubernetes).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must be observable (logs/metrics/traces), must include type hints where applicable, must be easy to exte... | 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: mqs0wrvz11ma.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: Rust
Framework/tooling: Tokio
Domain: document processing API
Logic challenge: path traversal on downloads
Task type: misleading_symptom_debug
Diffi... | WithinUsAI/GOD_Coder_Complete_DataSet |
Create a comprehensive test plan and automated tests for role-based access control in a enterprise SaaS product.
Target platform: mobile (iOS Swift).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must avoid global state, must include type hints where applicable, must ... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of compilers for scenario: inventory & ordering.
Primary language: sql.
Difficulty: medium.
Constraints: document performance characteristics, include invariants and failure modes, provide rollout and rollback guidance.
Component: component_tlaqzcc.
Assume compliance requires... | 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: ys1wlxly2si.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: query_optimizer
Scenario: job scheduler
Domain focus: stream processing
Primary language: rust
Difficulty: hard
Scale/SLO: p99 < 50ms
Component: component_fucxxcgt
Constraints: include security threat model (defensive only), include verification strategy, assume adversarial inputs; validate everything, expli... | WithinUsAI/Omega_Genesis_Coder_100k |
Optimize a Python workflow for parsing.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must be streaming-friendly, stdlib-only.
Difficulty: medium. Handle empty inputs and malformed records gracefully.
Deliverable: API + reference implementation + tests.
Strategy:
- Avoid... | WithinUsAI/python_GOD_coder_100k |
Fix a subtle bug in a Python module used for telemetry ingestion.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must provide clear error messages, must include docstrings.
Difficulty: hard. Include a small CLI example if relevant.
Deliverable: API + reference ... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of edge/IoT for scenario: inventory & ordering.
Primary language: rust.
Difficulty: hard.
Constraints: include tests or verification strategy, include invariants and failure modes, make the interface contract explicit, provide rollout and rollback guidance.
Component: compone... | 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: iyv4t... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f23690(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m17670.py` with types and O(n) average.
```python
# m17670.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: compiler_frontend
Scenario: rate limit gateway
Domain focus: zero-downtime migrations
Primary language: go
Difficulty: expert
Scale/SLO: 10k RPS peak
Component: component_acmgdiry
Constraints: include verification strategy, avoid data races and undefined behavior, explicit contracts and invariants, assume ad... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of gpu compute for scenario: edge sync.
Primary language: python.
Difficulty: hard.
Constraints: assume untrusted inputs; validate and sanitize, make the interface contract explicit, include invariants and failure modes, provide rollout and rollback guidance.
Component: compo... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor a Python module used for caching layer into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must avoid global state, must be easy to extend, must provide clear error messages, must be streaming-friendly.
Difficulty: easy. ... | WithinUsAI/python_GOD_coder_100k |
Write a thorough test suite for a Python component used for rate limiting.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must include tests, must provide clear error messages, must be easy to extend, must be memory-efficient.
Difficulty: medium. Provide helpful exceptions with ac... | 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: r8m0t... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f28979`.
```python
def f28979(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m46997 import f28979
def test_known():
assert f28979(3,4) == 25
def test_zero():
assert f28979(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Design CI/CD for a calendar/scheduling service delivering real-time notifications.
Target platform: backend (Node.js).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must include documentation/comments, must include type hints where applicable, must be production-ready, 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: Optimize while preserving behavior.
File: r5gt2... | 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: kcxqurgo0.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: runtime_gc
Scenario: streaming ETL
Domain focus: distributed storage
Primary language: typescript
Difficulty: hard
Scale/SLO: 99.99% availability
Component: component_ewopqkdq
Constraints: include backward compatibility and migration plan, explicit contracts and invariants, include security threat model (def... | WithinUsAI/Omega_Genesis_Coder_100k |
Task type: mechanized_spec
Scenario: payment ledger
Domain focus: cryptography engineering (defensive)
Primary language: lean
Difficulty: hard
Scale/SLO: 1M msgs/min
Component: component_mfdvxrjl
Constraints: include failure modes and recovery, explicit contracts and invariants, include test vectors and fuzz strategy, ... | 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: Rust
Framework/tooling: Axum
Domain: team dashboard
Logic challenge: mismatched API contract
Task type: multi_file_migration_repair
Difficulty: expe... | WithinUsAI/GOD_Coder_Complete_DataSet |
Add a clear docstring and type hints to this function:
```python
def f06644(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f06644(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 databases for scenario: multi-tenant SaaS.
Primary language: python.
Difficulty: hard.
Constraints: include tests or verification strategy, include invariants and failure modes, design for backward compatibility and migrations, avoid undefined behavior and data races.
Comp... | 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 |
Fix the bug and add pytest tests.
```python
def f18624(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 `m31232.py` and `test_m31232.py`.
*** Begin Patch
*** Update File: m31232.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: Rust, Axum, SQLx, Redis, Tokio, Docker
Language: Go
Dependency challenge: partial checkpoint corruption
Task type: cve_dependency_remediation
D... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C34956:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m79612.py` and `test_m79612.py`.
```python
# m79612.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f14273`.
```python
def f14273(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m02039 import f14273
def test_known():
assert f14273(3,4) == 25
def test_zero():
assert f14273(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: secure_architecture
Scenario: edge sync
Domain focus: consensus & replication
Primary language: python
Difficulty: expert
Scale/SLO: multi-region active-active
Component: component_ysqzqiwk
Constraints: include failure modes and recovery, include security threat model (defensive only), assume adversarial inp... | WithinUsAI/Omega_Genesis_Coder_100k |
Create a comprehensive test plan and automated tests for file uploads in a calendar/scheduling product.
Target platform: data (SQL + Python).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must be performant under load, must include documentation/comments, must avoid g... | 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: d4_79sz.py
```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: Python
Framework/tooling: Celery
Domain: reporting engine
Logic challenge: idempotent retry design
Task type: parser_validation_logic
Difficulty: ha... | WithinUsAI/GOD_Coder_Complete_DataSet |
Improve typing and robustness of a Python module used for metrics aggregation.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: must avoid global state, must handle Windows paths safely.
Difficulty: expert. Include a small CLI example if relevant.
Deliverable:... | WithinUsAI/python_GOD_coder_100k |
Optimize a Python workflow for validation.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must be streaming-friendly, must include docstrings, must include type hints.
Difficulty: hard. Include a small CLI example if relevant.
Deliverable: API + reference implementation +... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f91388(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 `m84484.py` and `test_m84484.py`.
*** Begin Patch
*** Update File: m84484.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for time series.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: stdlib-only, must be streaming-friendly, must be easy to extend.
Difficulty: easy. Provide helpful exceptions with actionable messages.
Deliverable: impleme... | WithinUsAI/python_GOD_coder_100k |
Provision infrastructure for a social media workload providing background jobs.
Target platform: infra (Docker + Kubernetes).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must be secure-by-default, must include clear error handling, must be production-ready, must be o... | 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: xj03r... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: compiler_frontend
Scenario: rate limit gateway
Domain focus: secure enclaves (defensive)
Primary language: go
Difficulty: hard
Scale/SLO: 99.99% availability
Component: component_goeezqob
Constraints: include deterministic replay plan, include test vectors and fuzz strategy, avoid data races and undefined be... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C91866:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m91682.py` and `test_m91682.py`.
```python
# m91682.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f07038(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f07038(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 f40014(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 `m20002.py` and `test_m20002.py`.
*** Begin Patch
*** Update File: m20002.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: Repository domain: artifact registry
Primary language: TypeScript
Framework/tooling: Express
Reported problem: rate-limit bypass
Task type: security_patch
Dif... | WithinUsAI/GOD_Coder_Complete_DataSet |
Add a clear docstring and type hints to this function:
```python
def f60122(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f60122(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for ETL pipelines.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must handle Windows paths safely, must include type hints, must be easy to extend.
Difficulty: expert. Avoid quadratic behavior on large inputs.
Deliverable: ... | 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: jq
Domain: benchmark harness
Logic challenge: async cancellation bug
Task type: transaction_integrity_fix
Difficulty: hard
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor an existing codebase in document processing to support caching cleanly.
Target platform: backend (Go).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must be easy to extend, must avoid global state, must be production-ready, must include type hints where appli... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of realtime systems for scenario: job scheduler.
Primary language: rust.
Difficulty: hard.
Constraints: design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, make the interface contract explicit, provide rollout and rollback guidanc... | WithinUsAI/Elite_GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Repository domain: observability collector
Primary language: Java
Framework/tooling: JUnit
Reported problem: slow cold start
Task type: bug_fix
Difficulty: ha... | WithinUsAI/GOD_Coder_Complete_DataSet |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
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: C#
Framework/tooling: NUnit
Reported problem: S3-compatible upload inconsistency
Task type: perfo... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of stream processing for scenario: chat messaging.
Primary language: python.
Difficulty: expert.
Constraints: provide rollout and rollback guidance, design for backward compatibility and migrations, make the interface contract explicit, document performance characteristics, i... | WithinUsAI/Elite_GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Repository domain: search service
Primary language: Java
Framework/tooling: Gradle
Reported problem: transaction boundary bug
Task type: code_review_fix
Diffi... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write a thorough test suite for a Python component used for configuration loading.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: stdlib-only, must be streaming-friendly, must provide clear error messages.
Difficulty: hard. Avoid quadratic behavior on large inputs.
Deliverable: c... | WithinUsAI/python_GOD_coder_100k |
Fix a subtle bug in a Python module used for parsing.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must handle Windows paths safely, must be easy to extend, must include docstrings.
Difficulty: expert. Ensure the API is testable via dependency injection.
Deli... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: static_analyzer
Scenario: time-series metrics store
Domain focus: consensus & replication
Primary language: rust
Difficulty: hard
Scale/SLO: p99 < 50ms
Component: component_ogptbafa
Constraints: include verification strategy, include performance model and limits, assume adversarial inputs; validate everythin... | WithinUsAI/Omega_Genesis_Coder_100k |
Design a production system for social media supporting analytics pipeline.
Target platform: backend (Go).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must include clear error handling, must be secure-by-default, must include documentation/comments, must include tests.
Dif... | WithinUsAI/GOD_Coder_100k |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.