text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Repository domain: search service
Primary language: C++
Framework/tooling: STL
Reported problem: transaction boundary bug
Task type: test_repair
Difficulty: h... | 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: n7z0s... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: compiler_backend_ir
Scenario: multi-tenant event ingestion
Domain focus: compiler toolchains
Primary language: rust
Difficulty: hard
Scale/SLO: 99.99% availability
Component: component_bazfyahh
Constraints: explicit contracts and invariants, include test vectors and fuzz strategy, include deterministic repla... | WithinUsAI/Omega_Genesis_Coder_100k |
Task type: supply_chain_security
Scenario: job scheduler
Domain focus: static analysis
Primary language: go
Difficulty: hard
Scale/SLO: p99 < 150ms
Component: component_xyvifwuf
Constraints: include performance model and limits, include failure modes and recovery, include verification strategy, include test vectors and... | 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: JavaScript
Framework/tooling: Vite
Domain: notification service
Logic challenge: transaction boundary bug
Task type: transaction_integrity_fix
Diffi... | WithinUsAI/GOD_Coder_Complete_DataSet |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Repository domain: reporting engine
Primary language: Bash
Framework/tooling: jq
Reported problem: build reproducibility failure
Task type: api_endpoint_work
... | 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 domain: auth service
Implementation stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Software delivery problem: mismatched API co... | 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: System domain: notification service
Stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Cross-layer incident: JWT refresh token rotation
Tas... | WithinUsAI/GOD_Coder_Complete_DataSet |
Create a comprehensive test plan and automated tests for real-time notifications in a document processing product.
Target platform: ML (scikit + batch).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must include clear error handling, must include documentation/comment... | 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: twi8i5y.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: u9x27v7wvl.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement offline-first sync for a document processing product.
Target platform: backend (Node.js).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must include documentation/comments, must be observable (logs/metrics/traces), must include type hints where applicable, must include te... | 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: Spring Boot
Domain: data pipeline
Logic challenge: broken pagination cursor
Task type: security_logic_interaction
Difficulty... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor a Python module used for task scheduling into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must be easy to extend, must provide clear error messages, must include tests.
Difficulty: hard. Support both Windows and POSIX ... | WithinUsAI/python_GOD_coder_100k |
Task type: formal_proof_sketch
Scenario: payment ledger
Domain focus: compiler toolchains
Primary language: bash
Difficulty: expert+
Scale/SLO: p99 < 50ms
Component: component_dhvcvgwo
Constraints: explicit contracts and invariants, avoid data races and undefined behavior, include performance model and limits, assume a... | 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 |
Task type: distributed_algorithm
Scenario: feature-flag evaluation
Domain focus: stream processing
Primary language: python
Difficulty: expert
Scale/SLO: 1M msgs/min
Component: component_nclvqkxx
Constraints: include test vectors and fuzz strategy, include verification strategy, include performance model and limits, av... | WithinUsAI/Omega_Genesis_Coder_100k |
Implement a concurrent Python solution for metrics aggregation.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: must include docstrings, stdlib-only.
Difficulty: easy. Ensure the API is testable via dependency injection.
Deliverable: API + reference impleme... | WithinUsAI/python_GOD_coder_100k |
Write pytest tests for `f82167`.
```python
def f82167(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m68881 import f82167
def test_known():
assert f82167(3,4) == 25
def test_zero():
assert f82167(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: ip41mphz.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: network_protocol
Scenario: graph query service
Domain focus: fault injection & chaos engineering
Primary language: typescript
Difficulty: hard
Scale/SLO: multi-region active-active
Component: component_gpnfiqvj
Constraints: include security threat model (defensive only), include performance model and limits,... | 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 |
Write pytest tests for `f82954`.
```python
def f82954(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m40422 import f82954
def test_known():
assert f82954(3,4) == 25
def test_zero():
assert f82954(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement caching for a logistics product.
Target platform: infra (Docker + Kubernetes).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must include type hints where applicable, must be observable (logs/metrics/traces), must include documentation/comments, must be secure-by-default,... | WithinUsAI/GOD_Coder_100k |
Design CI/CD for a enterprise SaaS service delivering multi-tenant isolation.
Target platform: backend (Node.js).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must avoid global state, must be secure-by-default, must be performant under load, must include clear error handl... | WithinUsAI/GOD_Coder_100k |
Write pytest tests for `f45382`.
```python
def f45382(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m63626 import f45382
def test_known():
assert f45382(3,4) == 25
def test_zero():
assert f45382(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: Python
Framework/tooling: SQLAlchemy
Domain: feature flag service
Logic challenge: mismatched API contract
Task type: performance_bottleneck_patch
D... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C14065:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m78005.py` and `test_m78005.py`.
```python
# m78005.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: frcw_... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: distributed_algorithm
Scenario: real-time notification hub
Domain focus: stream processing
Primary language: typescript
Difficulty: expert
Scale/SLO: 100k RPS peak
Component: component_okkvcqnl
Constraints: include security threat model (defensive only), include verification strategy, avoid data races and un... | WithinUsAI/Omega_Genesis_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Language: YAML
Dependency challenge: stale cache invalidation
Task type: version_conflict... | 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: rzvw_fy4z.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: mechanized_spec
Scenario: identity and access
Domain focus: compiler toolchains
Primary language: lean
Difficulty: hard
Scale/SLO: 50 TB/day ingestion
Component: component_dnhxeunu
Constraints: include verification strategy, include test vectors and fuzz strategy, include performance model and limits, 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: Optimize while preserving behavior.
File: bp5d7... | 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: Optimize while preserving behavior.
File: g75xr... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of operating systems for scenario: inventory & ordering.
Primary language: go.
Difficulty: medium.
Constraints: provide rollout and rollback guidance, avoid undefined behavior and data races, document performance characteristics.
Component: component_tohtbbg.
Assume strict au... | WithinUsAI/Elite_GOD_Coder_100k |
Write a thorough test suite for a Python component used for metrics aggregation.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must be easy to extend, must include docstrings.
Difficulty: medium. Include a small CLI example if relevant.
Deliverable: corrected code and verificati... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f16647(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 `m59521.py` and `test_m59521.py`.
*** Begin Patch
*** Update File: m59521.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: Go
Framework/tooling: Fiber
Domain: notification service
Logic challenge: monorepo toolchain skew
Task type: state_machine_patch
Difficulty: medium
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize while preserving behavior and order.
```python
def f15882(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m45126.py` with types and O(n) average.
```python
# m45126.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of databases for scenario: feature flagging.
Primary language: sql.
Difficulty: expert.
Constraints: assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance, design for backward compatibility and migrations.
Component: component_ncgbtzd.
Assume c... | 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 |
Debug and fix a subtle production bug related to audit logs in a education service.
Target platform: mobile (iOS Swift).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must include documentation/comments, must include tests, must be performant under load.
Difficulty: expert. As... | 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: network_protocol
Scenario: multi-tenant event ingestion
Domain focus: zero-downtime migrations
Primary language: bash
Difficulty: expert
Scale/SLO: multi-region active-active
Component: component_vwsurfjh
Constraints: avoid data races and undefined behavior, include security threat model (defensive only), in... | WithinUsAI/Omega_Genesis_Coder_100k |
Task type: smt_constraint_model
Scenario: feature-flag evaluation
Domain focus: query planning
Primary language: smtlib
Difficulty: hard
Scale/SLO: 50 TB/day ingestion
Component: component_ahzmujpg
Constraints: include test vectors and fuzz strategy, explicit contracts and invariants, avoid data races and undefined beh... | WithinUsAI/Omega_Genesis_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: C++
Framework/tooling: Boost
Domain: reporting engine
Logic challenge: idempotent retry design
Task type: multi_service_security_patch
Difficulty: e... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix a subtle bug in a Python module used for task scheduling.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: stdlib-only, must be streaming-friendly.
Difficulty: expert. Provide helpful exceptions with actionable messages.
Deliverable: implementation + tests.
`... | WithinUsAI/python_GOD_coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C74194:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m74938.py` and `test_m74938.py`.
```python
# m74938.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of databases for scenario: time-series metrics.
Primary language: go.
Difficulty: hard.
Constraints: include invariants and failure modes, provide rollout and rollback guidance, design for backward compatibility and migrations, avoid undefined behavior and data races.
Compone... | WithinUsAI/Elite_GOD_Coder_100k |
Add a clear docstring and type hints to this function:
```python
def f71383(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f71383(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: compiler_backend_ir
Scenario: real-time notification hub
Domain focus: edge robotics (safe)
Primary language: rust
Difficulty: expert+
Scale/SLO: 50 TB/day ingestion
Component: component_mlhnofgd
Constraints: include performance model and limits, include verification strategy, include failure modes and recov... | WithinUsAI/Omega_Genesis_Coder_100k |
Write pytest tests for `f08045`.
```python
def f08045(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m15435 import f08045
def test_known():
assert f08045(3,4) == 25
def test_zero():
assert f08045(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of databases for scenario: multi-tenant SaaS.
Primary language: typescript.
Difficulty: expert.
Constraints: avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, make the interface contract explicit.
Component: component_ujjvwvm.
Assume 50k... | 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: g8f2w... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f63413(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 `m09059.py` and `test_m09059.py`.
*** Begin Patch
*** Update File: m09059.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: TypeScript
Framework/tooling: Vitest
Domain: reporting engine
Logic challenge: optimistic locking conflict
Task type: backwards_compatible_redesign
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor an existing codebase in fraud detection to support analytics pipeline cleanly.
Target platform: ML (scikit + batch).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must be easy to extend, must be observable (logs/metrics/traces), must be secure-by-default, mus... | WithinUsAI/GOD_Coder_100k |
Task type: storage_engine
Scenario: feature-flag evaluation
Domain focus: kernel primitives
Primary language: go
Difficulty: expert
Scale/SLO: 99.99% availability
Component: component_bgdyhkok
Constraints: include backward compatibility and migration plan, avoid data races and undefined behavior, include failure modes ... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of operating systems for scenario: feature flagging.
Primary language: bash.
Difficulty: expert.
Constraints: assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance, make the interface contract explicit, document performance characteristics.
Com... | 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: y1p_v... | 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: uzdnn... | 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 |
Task type: mechanized_spec
Scenario: streaming ETL
Domain focus: program synthesis (safe)
Primary language: lean
Difficulty: expert
Scale/SLO: 1M msgs/min
Component: component_iharunbz
Constraints: include verification strategy, include performance model and limits, include security threat model (defensive only), avoid... | 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 |
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: document processing API
Logic challenge: log redaction failure
Task type: state_machine_patch
Difficulty: har... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: inventory & ordering.
Primary language: sql.
Difficulty: hard.
Constraints: design for backward compatibility and migrations, avoid undefined behavior and data races, make the interface contract explicit, include tests or veri... | 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 |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C44851:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m26527.py` and `test_m26527.py`.
```python
# m26527.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C66352:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m05104.py` and `test_m05104.py`.
```python
# m05104.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: 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 |
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: v72q0... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f96268(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 `m42324.py` and `test_m42324.py`.
*** Begin Patch
*** Update File: m42324.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C25178:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m32706.py` and `test_m32706.py`.
```python
# m32706.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: kwrqxxj1f.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f45539(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 `m35077.py` and `test_m35077.py`.
*** Begin Patch
*** Update File: m35077.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 |
Build an elite-grade solution in the domain of stream processing for scenario: document indexing.
Primary language: bash.
Difficulty: medium.
Constraints: avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, make the interface contrac... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of networking for scenario: feature flagging.
Primary language: bash.
Difficulty: hard.
Constraints: provide rollout and rollback guidance, include tests or verification strategy, assume untrusted inputs; validate and sanitize, document performance characteristics, include in... | 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: JavaScript
Framework/tooling: Vite
Domain: team dashboard
Logic challenge: schema drift during deployment
Task type: edge_case_hardening
Difficulty:... | 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 docstrings, must be streaming-friendly, must be memory-efficient.
Difficulty: hard. Handle empty inputs and malformed records gracefull... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of ml systems for scenario: edge sync.
Primary language: typescript.
Difficulty: hard.
Constraints: document performance characteristics, include invariants and failure modes, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance.
Component: co... | 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: dsct01b.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: tla_state_machine
Scenario: payment ledger
Domain focus: edge robotics (safe)
Primary language: tla+
Difficulty: expert+
Scale/SLO: 1M msgs/min
Component: component_guolftlo
Constraints: include performance model and limits, assume adversarial inputs; validate everything, include backward compatibility and m... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C57721:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m27517.py` and `test_m27517.py`.
```python
# m27517.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f62138(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f62138(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 f79039(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 `m25577.py` and `test_m25577.py`.
*** Begin Patch
*** Update File: m25577.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of edge/IoT for scenario: multi-tenant SaaS.
Primary language: python.
Difficulty: hard.
Constraints: include tests or verification strategy, include invariants and failure modes, assume untrusted inputs; validate and sanitize, document performance characteristics.
Component:... | 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: ychryz.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: Optimize while preserving behavior.
File: ff74e... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: static_analyzer
Scenario: edge sync
Domain focus: data lineage & governance
Primary language: go
Difficulty: expert
Scale/SLO: 100k RPS peak
Component: component_plrgjwnr
Constraints: include backward compatibility and migration plan, include failure modes and recovery, include security threat model (defensi... | WithinUsAI/Omega_Genesis_Coder_100k |
Task type: static_analyzer
Scenario: edge sync
Domain focus: observability platforms
Primary language: rust
Difficulty: expert+
Scale/SLO: 1M msgs/min
Component: component_nnnakmea
Constraints: include performance model and limits, include failure modes and recovery, include verification strategy, include backward comp... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of operating systems for scenario: rate limiting gateway.
Primary language: python.
Difficulty: hard.
Constraints: provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, document performance cha... | 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: GitHub Actions, Docker Compose, Kubernetes, Terraform
Language: C++
Dependency challenge: N+1 query explosion
Task type: migration_patch
Diffic... | 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: v1kvew.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 |
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: C++
Dependency challenge: memory leak in AST cache
Task type: cve_depe... | WithinUsAI/GOD_Coder_Complete_DataSet |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.