text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Build an elite-grade solution in the domain of ml systems for scenario: multi-tenant SaaS.
Primary language: go.
Difficulty: hard.
Constraints: design for backward compatibility and migrations, include tests or verification strategy, avoid undefined behavior and data races.
Component: component_lpxspkv.
Assume complian... | 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: a15tklgb8.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: job scheduler
Primary language: Python
Framework/tooling: pandas
Reported problem: stale cache invalidation
Task type: repo_issue_patch
Dif... | WithinUsAI/GOD_Coder_Complete_DataSet |
Add a clear docstring and type hints to this function:
```python
def f81372(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f81372(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 CLI tooling.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must be easy to extend, must avoid global state.
Difficulty: hard. Avoid quadratic behavior on large inputs.
Deliverable: production-ready reference solution.
`... | WithinUsAI/python_GOD_coder_100k |
Fix a subtle bug in a Python module used for event dispatching.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must be memory-efficient, must include tests, must include type hints, stdlib-only.
Difficulty: medium. Support both Windows and POSIX paths correctly.... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: analytics pipeline.
Primary language: go.
Difficulty: hard.
Constraints: document performance characteristics, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, make the interfac... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of stream processing for scenario: payment processing.
Primary language: bash.
Difficulty: medium.
Constraints: assume untrusted inputs; validate and sanitize, document performance characteristics, avoid undefined behavior and data races, provide rollout and rollback guidance... | 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: rx7db1mvy4r.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: job scheduler
Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Software delivery problem: multi-tenant access leak
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor an existing codebase in gaming to support event-driven workflows cleanly.
Target platform: ML (scikit + batch).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must be production-ready, must be easy to extend, must avoid global state, must be secure-by-default,... | WithinUsAI/GOD_Coder_100k |
Implement an ML engineering workflow for fintech focusing on A/B experimentation.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must include documentation/comments, must avoid global state, must be easy to extend.
... | WithinUsAI/GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f43612(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 `m20516.py` and `test_m20516.py`.
*** Begin Patch
*** Update File: m20516.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: data pipeline
Stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker
Cross-layer incident: path traversal on downloads
Task type: cache_consis... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build a data pipeline for a developer tooling product around caching.
Target platform: data (SQL + Python).
Requirements: schema, ingestion, validation, backfills, and tests.
Constraints: must be production-ready, must be performant under load, must be secure-by-default, must avoid global state, must be observable (log... | WithinUsAI/GOD_Coder_100k |
Task type: secure_architecture
Scenario: rate limit gateway
Domain focus: static analysis
Primary language: go
Difficulty: expert
Scale/SLO: 100k RPS peak
Component: component_odlpioxk
Constraints: include test vectors and fuzz strategy, avoid data races and undefined behavior, assume adversarial inputs; validate every... | WithinUsAI/Omega_Genesis_Coder_100k |
Perform a code review for a calendar/scheduling PR implementing role-based access control.
Target platform: infra (Terraform).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must be secure-by-default, must include documentation/comments, must be production-ready, m... | WithinUsAI/GOD_Coder_100k |
Design CI/CD for a enterprise SaaS service delivering background jobs.
Target platform: ML (PyTorch + serving).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must be observable (logs/metrics/traces), must include tests, must include documentation/comments, must include cle... | 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: cjeb70.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Create a small, production-ready Python package for rate limiting.
Requirements: include module code, CLI entrypoint, logging, and a minimal pyproject.toml.
Constraints: must be streaming-friendly, must include tests, must provide clear error messages, must be easy to extend.
Difficulty: hard. Provide helpful exception... | 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: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize a Python workflow for caching layer.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must be memory-efficient, must be streaming-friendly, must include type hints.
Difficulty: hard. Avoid quadratic behavior on large inputs.
Deliverable: corrected code and verifica... | 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: awk
Domain: team dashboard
Logic challenge: streaming timeout handling
Task type: monorepo_toolchain_recovery
Difficulty: ex... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C40731:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m49287.py` and `test_m49287.py`.
```python
# m49287.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: mkh8w... | 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 |
Design CI/CD for a fintech service delivering event-driven workflows.
Target platform: data (SQL + Python).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must include documentation/comments, must include tests, must avoid global state, must be production-ready, must includ... | 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: aulo7p2.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f22350(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m46050.py` with types and O(n) average.
```python
# m46050.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f49298(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 `m35614.py` and `test_m35614.py`.
*** Begin Patch
*** Update File: m35614.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: SQL
Framework/tooling: SQLite
Domain: job scheduler
Logic challenge: log redaction failure
Task type: edge_case_hardening
Difficulty: medium
Return... | WithinUsAI/GOD_Coder_Complete_DataSet |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: Bash
Framework/tooling: jq
Domain: artifact registry
Logic challenge: idempotent retry design
Task type: monorepo_toolchain_recovery
Difficulty: har... | 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: qaf8jsqdnldf.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: rn0t7kby_2ro.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f79397(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m82771.py` with types and O(n) average.
```python
# m82771.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor a Python module used for configuration loading into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must include tests, stdlib-only, must include docstrings.
Difficulty: hard. Include a small CLI example if relevant.
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 |
Create a comprehensive test plan and automated tests for audit logs in a content moderation product.
Target platform: ML (scikit + batch).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must be easy to extend, must be performant under load, must include tests.
Difficul... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of databases for scenario: time-series metrics.
Primary language: rust.
Difficulty: hard.
Constraints: include invariants and failure modes, include tests or verification strategy, design for backward compatibility and migrations.
Component: component_rkxphnc.
Assume cold-sta... | WithinUsAI/Elite_GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project domain: team dashboard
Implementation stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Software delivery problem: monorepo toolchain sk... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: static_analyzer
Scenario: identity and access
Domain focus: secure enclaves (defensive)
Primary language: bash
Difficulty: expert
Scale/SLO: 99.99% availability
Component: component_gdbcehuy
Constraints: include deterministic replay plan, avoid data races and undefined behavior, include backward compatibilit... | 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: hrhtsbm5akj.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for CLI tooling.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must include type hints, must be memory-efficient, must be streaming-friendly.
Difficulty: hard. Avoid quadratic behavior on large inputs.
Deliverable: producti... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: rate limiting gateway.
Primary language: typescript.
Difficulty: expert.
Constraints: design for backward compatibility and migrations, include tests or verification strategy, include invariants and failure modes, assume untru... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of edge/IoT for scenario: feature flagging.
Primary language: rust.
Difficulty: medium.
Constraints: provide rollout and rollback guidance, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize.
Component: component_mxsgkey.
Assume c... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: distributed_algorithm
Scenario: edge sync
Domain focus: program synthesis (safe)
Primary language: typescript
Difficulty: hard
Scale/SLO: p99 < 150ms
Component: component_xzaevnnd
Constraints: explicit contracts and invariants, include verification strategy, include test vectors and fuzz strategy, assume adv... | 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: ogr54... | 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: wfh8q... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f46185(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f46185(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C00239:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m15403.py` and `test_m15403.py`.
```python
# m15403.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C65123:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m43471.py` and `test_m43471.py`.
```python
# m43471.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f95069`.
```python
def f95069(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m27867 import f95069
def test_known():
assert f95069(3,4) == 25
def test_zero():
assert f95069(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of realtime systems for scenario: analytics pipeline.
Primary language: rust.
Difficulty: hard.
Constraints: document performance characteristics, include invariants and failure modes, include tests or verification strategy.
Component: component_xmhdbhs.
Assume compliance req... | 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: bcd2pt1.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of databases for scenario: analytics pipeline.
Primary language: go.
Difficulty: medium.
Constraints: avoid undefined behavior and data races, include tests or verification strategy, include invariants and failure modes.
Component: component_fwuvpfs.
Assume 50k RPS and p99 < ... | WithinUsAI/Elite_GOD_Coder_100k |
Provision infrastructure for a logistics workload providing caching.
Target platform: infra (Docker + Kubernetes).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must be performant under load, must include type hints where applicable, must be secure-by-default.
Difficul... | WithinUsAI/GOD_Coder_100k |
Optimize while preserving behavior and order.
```python
def f03968(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m43424.py` with types and O(n) average.
```python
# m43424.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
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: search service
Primary language: YAML
Framework/tooling: Terraform
Reported problem: unsafe deserialization
Task type: performance_patch
Di... | WithinUsAI/GOD_Coder_Complete_DataSet |
Implement a mobile feature for document processing: multi-tenant isolation.
Target platform: mobile.
Requirements: offline-safe behavior, UI state handling, and tests.
Constraints: must avoid global state, must be easy to extend, must be performant under load.
Difficulty: hard. Assume mobile clients are occasionally of... | WithinUsAI/GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: Bash
Framework/tooling: sed
Domain: payments platform
Logic challenge: timezone bug in reporting
Task type: algorithmic_correctness
Difficulty: hard... | 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 |
Add a clear docstring and type hints to this function:
```python
def f97372(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f97372(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f66804`.
```python
def f66804(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m80972 import f66804
def test_known():
assert f66804(3,4) == 25
def test_zero():
assert f66804(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: SQL
Framework/tooling: MySQL
Domain: artifact registry
Logic challenge: timezone bug in reporting
Task type: transaction_integrity_fix
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: Fix a bug and add tests.
File: re78jomc2026.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: c4rc4m5tn3ps.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement a concurrent Python solution for configuration loading.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: must be memory-efficient, must provide clear error messages.
Difficulty: hard. Provide helpful exceptions with actionable messages.
Deliverable... | WithinUsAI/python_GOD_coder_100k |
Task type: storage_engine
Scenario: rate limit gateway
Domain focus: stream processing
Primary language: go
Difficulty: hard
Scale/SLO: 100k RPS peak
Component: component_iamhnarf
Constraints: avoid data races and undefined behavior, include performance model and limits, include deterministic replay plan, include verif... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix the bug and add pytest tests.
```python
def f62609(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 `m66087.py` and `test_m66087.py`.
*** Begin Patch
*** Update File: m66087.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: secure_architecture
Scenario: real-time notification hub
Domain focus: compiler toolchains
Primary language: rust
Difficulty: expert
Scale/SLO: 1M msgs/min
Component: component_oaxklkho
Constraints: include test vectors and fuzz strategy, include deterministic replay plan, include failure modes and recovery,... | 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 |
Fix the bug and add pytest tests.
```python
def f57025(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 `m79575.py` and `test_m79575.py`.
*** Begin Patch
*** Update File: m79575.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: YAML
Framework/tooling: Helm
Domain: model serving gateway
Logic challenge: rate-limit bypass
Task type: performance_bottleneck_patch
Difficulty: ha... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix the bug and add pytest tests.
```python
def f09145(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 `m72735.py` and `test_m72735.py`.
*** Begin Patch
*** Update File: m72735.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: secure_architecture
Scenario: identity and access
Domain focus: zero-downtime migrations
Primary language: python
Difficulty: expert+
Scale/SLO: multi-region active-active
Component: component_kvejvwhd
Constraints: include backward compatibility and migration plan, include failure modes and recovery, assume ... | WithinUsAI/Omega_Genesis_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: Python
Framework/tooling: SQLAlchemy
Domain: data pipeline
Logic challenge: N+1 query explosion
Task type: multi_file_migration_repair
Difficulty: h... | 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: payments platform
Implementation stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Software delivery problem: race condition on worker shut... | 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: poh6e_5nbv.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f57576(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m65368.py` with types and O(n) average.
```python
# m65368.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
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 domain: benchmark harness
Implementation stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker
Software delivery problem: idempotent retry design
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write pytest tests for `f38466`.
```python
def f38466(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m62638 import f38466
def test_known():
assert f38466(3,4) == 25
def test_zero():
assert f38466(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: pytest
Domain: developer platform
Logic challenge: stale cache invalidation
Task type: multi_file_migration_repair
Difficu... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: network_protocol
Scenario: multi-tenant event ingestion
Domain focus: GPU serving
Primary language: go
Difficulty: expert+
Scale/SLO: 100k RPS peak
Component: component_ouvnlrhy
Constraints: avoid data races and undefined behavior, include backward compatibility and migration plan, assume adversarial inputs;... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C79970:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m67690.py` and `test_m67690.py`.
```python
# m67690.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for caching layer.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must avoid global state, must be streaming-friendly, must be memory-efficient.
Difficulty: medium. Provide helpful exceptions with actionable messages.
Delive... | WithinUsAI/python_GOD_coder_100k |
Add a clear docstring and type hints to this function:
```python
def f52328(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f52328(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: uj9h7e_mc.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f56295(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m65185.py` with types and O(n) average.
```python
# m65185.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of distributed systems for scenario: analytics pipeline.
Primary language: python.
Difficulty: medium.
Constraints: avoid undefined behavior and data races, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, provide rollout and r... | WithinUsAI/Elite_GOD_Coder_100k |
Write pytest tests for `f30103`.
```python
def f30103(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m75729 import f30103
def test_known():
assert f30103(3,4) == 25
def test_zero():
assert f30103(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: Repository domain: reporting engine
Primary language: C#
Framework/tooling: ASP.NET Core
Reported problem: dead-letter queue replay
Task type: security_patch
... | WithinUsAI/GOD_Coder_Complete_DataSet |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: System domain: data pipeline
Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Cross-layer incident: rate-limit bypass
Task type: deploy_runtime... | WithinUsAI/GOD_Coder_Complete_DataSet |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: Java
Framework/tooling: Spring Boot
Domain: auth service
Logic challenge: build reproducibility failure
Task type: backwards_compatible_redesign
Dif... | 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 |
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: qyrhox_jrobj.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f25304(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m46472.py` with types and O(n) average.
```python
# m46472.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f91724(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f91724(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: e03n5m639.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: developer platform
Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Software delivery problem: dead-letter queue re... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix the bug and add pytest tests.
```python
def f93388(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 `m70484.py` and `test_m70484.py`.
*** Begin Patch
*** Update File: m70484.py
@@
d... | 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.