text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
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 include type hints, stdlib-only, must handle Windows paths safely.
Difficulty: easy. Guarantee deterministic output ordering.
Deliverable: API + reference ... | 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: s4i8d2mcu.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Language: Bash
Dependency challenge: transaction boundary bug
Task type: container_runtime_fix
Di... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize a Python workflow for task scheduling.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must be easy to extend, must include docstrings, must be memory-efficient, must avoid global state.
Difficulty: medium. Handle empty inputs and malformed records gracefully.
Del... | WithinUsAI/python_GOD_coder_100k |
Task type: compiler_backend_ir
Scenario: feature-flag evaluation
Domain focus: observability platforms
Primary language: cpp
Difficulty: expert
Scale/SLO: 1M msgs/min
Component: component_cgicfhec
Constraints: include security threat model (defensive only), include verification strategy, include performance model and l... | WithinUsAI/Omega_Genesis_Coder_100k |
Add a clear docstring and type hints to this function:
```python
def f71799(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f71799(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: j45r8t00tb3d.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: 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: y4ebahyoyoy.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: payment processing.
Primary language: go.
Difficulty: hard.
Constraints: avoid undefined behavior and data races, make the interface contract explicit, document performance characteristics, provide rollout and rollback guidanc... | WithinUsAI/Elite_GOD_Coder_100k |
Write pytest tests for `f89727`.
```python
def f89727(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m69961 import f89727
def test_known():
assert f89727(3,4) == 25
def test_zero():
assert f89727(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: secure_architecture
Scenario: document indexing pipeline
Domain focus: fault injection & chaos engineering
Primary language: bash
Difficulty: expert+
Scale/SLO: 50 TB/day ingestion
Component: component_vitnolva
Constraints: assume adversarial inputs; validate everything, avoid data races and undefined behavi... | WithinUsAI/Omega_Genesis_Coder_100k |
Implement a web feature for IoT telemetry: background jobs.
Target platform: web (React + TypeScript).
Requirements: accessible UI, API integration, and tests.
Constraints: must include clear error handling, must be performant under load, must include documentation/comments.
Difficulty: hard. Assume PII must be protect... | 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 |
Improve typing and robustness of a Python module used for rate limiting.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: must include tests, must handle Windows paths safely, must be easy to extend, must include type hints.
Difficulty: medium. Guarantee determ... | 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 stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Language: YAML
Dependency challenge: multi-tenant access leak
Task type: version_conflict_resolut... | 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: f0mnp715l2n.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: Repository domain: payments platform
Primary language: Java
Framework/tooling: Maven
Reported problem: websocket reconnect storm
Task type: test_repair
Diffic... | 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 be easy to extend, must include tests, must include type hints.
Difficulty: easy. Handle empty inputs a... | 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: TypeScript
Framework/tooling: Node.js
Domain: team dashboard
Logic challenge: mismatched API contract
Task type: transaction_integrity_fix
Difficult... | WithinUsAI/GOD_Coder_Complete_DataSet |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: xvnrc... | 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: coljlb9fsy.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of operating systems for scenario: document indexing.
Primary language: go.
Difficulty: medium.
Constraints: include tests or verification strategy, include invariants and failure modes, avoid undefined behavior and data races, design for backward compatibility and migrations... | WithinUsAI/Elite_GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f40278(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 `m05754.py` and `test_m05754.py`.
*** Begin Patch
*** Update File: m05754.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: Language: Java
Framework/tooling: Maven
Domain: benchmark harness
Logic challenge: S3-compatible upload inconsistency
Task type: cross_stack_outage_fix
Diffic... | 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: ASP.NET Core, SQL Server, EF Core, xUnit, Docker
Language: Rust
Dependency challenge: multi-tenant access leak
Task type: lockfile_repair
Diffi... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize while preserving behavior and order.
```python
def f33449(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m76207.py` with types and O(n) average.
```python
# m76207.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of operating systems for scenario: time-series metrics.
Primary language: python.
Difficulty: medium.
Constraints: design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, document performance characteristics, avoid undefined behavior ... | 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: alw_3... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C72964:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m90228.py` and `test_m90228.py`.
```python
# m90228.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f45232`.
```python
def f45232(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m92176 import f45232
def test_known():
assert f45232(3,4) == 25
def test_zero():
assert f45232(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of distributed systems for scenario: multi-tenant SaaS.
Primary language: python.
Difficulty: hard.
Constraints: assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, make the interface contract explicit.
Component: component_rdksya... | WithinUsAI/Elite_GOD_Coder_100k |
Provision infrastructure for a customer support workload providing rate limiting.
Target platform: CI (GitHub Actions).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must avoid global state, must include documentation/comments, must be secure-by-default, must be produc... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of networking for scenario: document indexing.
Primary language: rust.
Difficulty: expert.
Constraints: provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, include tests or verification strategy, design for backward compatibility and migrati... | 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: fhaqh3ooih.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: System domain: artifact registry
Stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Cross-layer incident: unsafe deserialization
Task type: cache_consistency_patch... | 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: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f32035(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m76005.py` with types and O(n) average.
```python
# m76005.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f29402(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m18486.py` with types and O(n) average.
```python
# m18486.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f88151`.
```python
def f88151(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m12593 import f88151
def test_known():
assert f88151(3,4) == 25
def test_zero():
assert f88151(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of high-performance services for scenario: chat messaging.
Primary language: go.
Difficulty: hard.
Constraints: assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, design for backward compatibility and migrations, provide rollout and rollb... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C51831:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m03987.py` and `test_m03987.py`.
```python
# m03987.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C20020:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m01540.py` and `test_m01540.py`.
```python
# m01540.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: static_analyzer
Scenario: edge sync
Domain focus: observability platforms
Primary language: rust
Difficulty: hard
Scale/SLO: 99.99% availability
Component: component_igiabyav
Constraints: assume adversarial inputs; validate everything, include security threat model (defensive only), include test vectors and ... | 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: Fix a bug and add tests.
File: efvpy8b0sm5t.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Language: Java
Dependency challenge: unsafe deserialization
Task type: cve_dependency_rem... | 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: expert.
Constraints: include invariants and failure modes, avoid undefined behavior and data races, provide rollout and rollback guidance, document performance characteristics.
Componen... | 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 |
Design a production system for customer support supporting offline-first sync.
Target platform: ML (scikit + batch).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must include tests, must include clear error handling, must be secure-by-default, must include type hints where... | WithinUsAI/GOD_Coder_100k |
Task type: query_optimizer
Scenario: real-time notification hub
Domain focus: large-scale ML systems
Primary language: typescript
Difficulty: hard
Scale/SLO: 100k RPS peak
Component: component_smqyiodg
Constraints: include deterministic replay plan, include failure modes and recovery, explicit contracts and invariants,... | WithinUsAI/Omega_Genesis_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: amthi... | WithinUsAI/Royal_Ghost_Coder_501k |
Debug and fix a subtle production bug related to analytics pipeline in a gaming service.
Target platform: ML (PyTorch + serving).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must avoid global state, must be secure-by-default, must include type hints where applicable, must in... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of ml systems for scenario: event ingestion.
Primary language: typescript.
Difficulty: expert.
Constraints: make the interface contract explicit, avoid undefined behavior and data races, provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, do... | 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: vzhi3fz.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f37679(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f37679(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 compilers for scenario: job scheduler.
Primary language: python.
Difficulty: hard.
Constraints: avoid undefined behavior and data races, include invariants and failure modes, assume untrusted inputs; validate and sanitize, make the interface contract explicit, provide roll... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C83851:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m29527.py` and `test_m29527.py`.
```python
# m29527.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: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of edge/IoT for scenario: event ingestion.
Primary language: rust.
Difficulty: hard.
Constraints: design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, provide rollout and rollback guidance.
... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: verification_properties
Scenario: multi-tenant event ingestion
Domain focus: compiler toolchains
Primary language: go
Difficulty: expert
Scale/SLO: 10k RPS peak
Component: component_kuspvghz
Constraints: include deterministic replay plan, assume adversarial inputs; validate everything, include backward compa... | WithinUsAI/Omega_Genesis_Coder_100k |
Perform a code review for a content moderation PR implementing real-time notifications.
Target platform: infra (Terraform).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must be easy to extend, must include documentation/comments, must be secure-by-default, must b... | WithinUsAI/GOD_Coder_100k |
Add a clear docstring and type hints to this function:
```python
def f26959(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f26959(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of realtime systems for scenario: job scheduler.
Primary language: bash.
Difficulty: medium.
Constraints: include tests or verification strategy, assume untrusted inputs; validate and sanitize, make the interface contract explicit, document performance characteristics.
Compon... | WithinUsAI/Elite_GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f40547(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 `m77221.py` and `test_m77221.py`.
*** Begin Patch
*** Update File: m77221.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of sre/observability for scenario: job scheduler.
Primary language: go.
Difficulty: expert.
Constraints: provide rollout and rollback guidance, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, make the interface contract explicit, inclu... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C37211:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m18247.py` and `test_m18247.py`.
```python
# m18247.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: Optimize while preserving behavior.
File: fblou... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C30285:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m86945.py` and `test_m86945.py`.
```python
# m86945.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: JavaScript
Framework/tooling: Node.js
Domain: observability collector
Logic challenge: invalid rollback sequence
Task type: cross_stack_outage_fix
D... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write pytest tests for `f67803`.
```python
def f67803(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m66829 import f67803
def test_known():
assert f67803(3,4) == 25
def test_zero():
assert f67803(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Secure-by-default implementation for role-based access control in a document processing product.
Target platform: ML (PyTorch + serving).
Requirements: threat model, input validation, authz/authn guidance, safe storage, tests.
Constraints: must be easy to extend, must be production-ready, must include type hints where ... | 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: Java
Framework/tooling: Maven
Domain: auth service
Logic challenge: schema drift during deployment
Task type: monorepo_toolchain_recovery
Difficulty... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix the bug and add pytest tests.
```python
def f89052(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 `m98436.py` and `test_m98436.py`.
*** Begin Patch
*** Update File: m98436.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f04997(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m43571.py` with types and O(n) average.
```python
# m43571.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: i67agl4.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: wf7b0mv.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: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C30987:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m86999.py` and `test_m86999.py`.
```python
# m86999.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: Produce an offline-first self-evolving code assi... | 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: must be easy to extend, must be streaming-friendly.
Difficulty: hard. Support both Windows and POSIX paths correctly.
Deliverable: production-ready referenc... | WithinUsAI/python_GOD_coder_100k |
Implement idempotent payments for a gaming product.
Target platform: backend (Python FastAPI).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must include type hints where applicable, must be performant under load, must include tests.
Difficulty: hard. Assume GDPR-style deletion req... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of compilers for scenario: time-series metrics.
Primary language: typescript.
Difficulty: medium.
Constraints: make the interface contract explicit, avoid undefined behavior and data races, design for backward compatibility and migrations.
Component: component_otfnuuo.
Assume... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: secure_architecture
Scenario: identity and access
Domain focus: distributed storage
Primary language: rust
Difficulty: expert+
Scale/SLO: p99 < 150ms
Component: component_pvvnwywr
Constraints: include failure modes and recovery, avoid data races and undefined behavior, include verification strategy, include ... | 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: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C47758:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m11366.py` and `test_m11366.py`.
```python
# m11366.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: System domain: payments platform
Stack: Airflow, dbt, DuckDB, MinIO, pytest
Cross-layer incident: build reproducibility failure
Task type: schema_contract_ali... | 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: t7jf9_cjb7an.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Design a production system for developer tooling supporting multi-tenant isolation.
Target platform: infra (Terraform).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must be performant under load, must be production-ready, must include tests, must include documentation/comm... | 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: t_k5y... | 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: p_x48yj.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: hvxgc8wm_.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize a Python workflow for log processing.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must be easy to extend, stdlib-only.
Difficulty: easy. Provide helpful exceptions with actionable messages.
Deliverable: API + reference implementation + tests.
Strategy:
- Avoid... | 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: observability collector
Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Software delivery problem: N+1 query explo... | WithinUsAI/GOD_Coder_Complete_DataSet |
Design a production system for IoT telemetry supporting file uploads.
Target platform: ML (PyTorch + serving).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must be secure-by-default, must include type hints where applicable, must be performant under load, must include docu... | WithinUsAI/GOD_Coder_100k |
Implement a mobile feature for education: audit logs.
Target platform: mobile.
Requirements: offline-safe behavior, UI state handling, and tests.
Constraints: must be easy to extend, must include type hints where applicable, must be observable (logs/metrics/traces), must include clear error handling.
Difficulty: easy. ... | WithinUsAI/GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C62376:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m50952.py` and `test_m50952.py`.
```python
# m50952.py
from __future__ import annotations
from datacla... | 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.