text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Write a thorough test suite for a Python component used for log processing.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must include tests, must be memory-efficient, must avoid global state.
Difficulty: medium. Ensure the API is testable via dependency injection.
Deliverable: ... | WithinUsAI/python_GOD_coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Language: C#
Dependency challenge: path traversal on downloads
Task type: migration_pa... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write pytest tests for `f86741`.
```python
def f86741(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m40963 import f86741
def test_known():
assert f86741(3,4) == 25
def test_zero():
assert f86741(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor a Python module used for ETL pipelines into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must provide clear error messages, must be streaming-friendly, must avoid global state, must include docstrings.
Difficulty: hard.... | WithinUsAI/python_GOD_coder_100k |
Debug and fix a subtle production bug related to idempotent payments in a gaming service.
Target platform: infra (Docker + Kubernetes).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must be easy to extend, must be production-ready, must be performant under load, must include c... | WithinUsAI/GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f36601(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 `m90943.py` and `test_m90943.py`.
*** Begin Patch
*** Update File: m90943.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Write secure, defensive Python code for time series.
Requirements: input validation, safe file handling, prevent path traversal, include tests.
Constraints: must include tests, must include docstrings.
Difficulty: easy. Avoid quadratic behavior on large inputs.
Deliverable: corrected code and verification tests.
```py... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f21862(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 `m60266.py` and `test_m60266.py`.
*** Begin Patch
*** Update File: m60266.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: Fix a bug and add tests.
File: ijxey4gtx7.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Design a production system for calendar/scheduling supporting background jobs.
Target platform: data (SQL + Python).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must include documentation/comments, must be easy to extend, must include tests, must be production-ready, must... | WithinUsAI/GOD_Coder_100k |
Task type: static_analyzer
Scenario: feature-flag evaluation
Domain focus: program synthesis (safe)
Primary language: bash
Difficulty: expert
Scale/SLO: p99 < 50ms
Component: component_bhrwniqb
Constraints: include test vectors and fuzz strategy, include deterministic replay plan, include failure modes and recovery, ex... | WithinUsAI/Omega_Genesis_Coder_100k |
Task type: lockfree_primitive
Scenario: payment ledger
Domain focus: compiler toolchains
Primary language: rust
Difficulty: expert
Scale/SLO: 99.99% availability
Component: component_xifbdcxs
Constraints: include deterministic replay plan, include performance model and limits, include verification strategy, assume adve... | WithinUsAI/Omega_Genesis_Coder_100k |
Implement a concurrent Python solution for log processing.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: stdlib-only, must include docstrings, must handle Windows paths safely.
Difficulty: medium. Provide helpful exceptions with actionable messages.
Deliv... | 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: System domain: model serving gateway
Stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Cross-layer incident: idempotent retry design
Task ... | 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: rs_y14pv1r.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of ml systems for scenario: rate limiting gateway.
Primary language: python.
Difficulty: medium.
Constraints: make the interface contract explicit, include invariants and failure modes, include tests or verification strategy, design for backward compatibility and migrations.
... | 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: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Language: JavaScript
Dependency challenge: optimistic locking conflict
Task type: migration_patch... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C91293:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m68561.py` and `test_m68561.py`.
```python
# m68561.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for ETL pipelines.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must handle Windows paths safely, must include tests, must provide clear error messages, must be memory-efficient.
Difficulty: expert. Guarantee determinis... | WithinUsAI/python_GOD_coder_100k |
Perform a code review for a e-commerce PR implementing real-time notifications.
Target platform: ML (scikit + batch).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must be performant under load, must be easy to extend, must be production-ready.
Difficulty: easy. A... | WithinUsAI/GOD_Coder_100k |
Implement an ML engineering workflow for customer support focusing on offline-first sync.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must avoid global state, must include clear error handling, must be observable... | 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: zm6e7... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize a Python workflow for task scheduling.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must include docstrings, must provide clear error messages.
Difficulty: easy. Include a small CLI example if relevant.
Deliverable: corrected code and verification tests.
Strate... | WithinUsAI/python_GOD_coder_100k |
Improve typing and robustness of a Python module used for ETL pipelines.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: must avoid global state, must provide clear error messages.
Difficulty: easy. Guarantee deterministic output ordering.
Deliverable: correc... | WithinUsAI/python_GOD_coder_100k |
Task type: tla_state_machine
Scenario: edge sync
Domain focus: large-scale ML systems
Primary language: tla+
Difficulty: expert+
Scale/SLO: p99 < 50ms
Component: component_mlhikhzw
Constraints: include backward compatibility and migration plan, avoid data races and undefined behavior, include performance model and limi... | WithinUsAI/Omega_Genesis_Coder_100k |
Design a production system for e-commerce supporting analytics pipeline.
Target platform: infra (Terraform).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must be performant under load, must include clear error handling, must be secure-by-default, must avoid global state.
D... | WithinUsAI/GOD_Coder_100k |
Create a comprehensive test plan and automated tests for caching in a gaming product.
Target platform: backend (Node.js).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must be secure-by-default, must include type hints where applicable, must include tests.
Difficulty:... | WithinUsAI/GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f20609(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 `m60087.py` and `test_m60087.py`.
*** Begin Patch
*** Update File: m60087.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Design CI/CD for a IoT telemetry service delivering webhooks.
Target platform: infra (Terraform).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must include type hints where applicable, must include tests, must be performant under load, must include clear error handling.
D... | WithinUsAI/GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: Airflow, dbt, DuckDB, MinIO, pytest
Language: Python
Dependency challenge: streaming timeout handling
Task type: container_runtime_fix
Difficul... | WithinUsAI/GOD_Coder_Complete_DataSet |
Improve typing and robustness of a Python module used for caching layer.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: must be memory-efficient, must handle Windows paths safely, stdlib-only.
Difficulty: hard. Provide helpful exceptions with actionable messa... | 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: ASP.NET Core, SQL Server, EF Core, xUnit, Docker
Software delivery problem: invalid rollback seq... | WithinUsAI/GOD_Coder_Complete_DataSet |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: gpu_serving_pipeline
Scenario: identity and access
Domain focus: GPU serving
Primary language: typescript
Difficulty: hard
Scale/SLO: 10k RPS peak
Component: component_myhbhhxh
Constraints: include security threat model (defensive only), include failure modes and recovery, explicit contracts and invariants, ... | 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: Go
Framework/tooling: gRPC
Domain: notification service
Logic challenge: unsafe deserialization
Task type: state_machine_patch
Difficulty: hard
Ret... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: network_protocol
Scenario: multi-tenant event ingestion
Domain focus: kernel primitives
Primary language: bash
Difficulty: expert+
Scale/SLO: p99 < 150ms
Component: component_hvgbkkkv
Constraints: include failure modes and recovery, include security threat model (defensive only), include performance model an... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix the bug and add pytest tests.
```python
def f31173(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 `m18739.py` and `test_m18739.py`.
*** Begin Patch
*** Update File: m18739.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Perform a code review for a education PR implementing A/B experimentation.
Target platform: backend (Go).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must be secure-by-default, must include clear error handling, must be production-ready, must be easy to extend, ... | 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: SQL
Framework/tooling: SQLite
Domain: job scheduler
Logic challenge: rate-limit bypass
Task type: misleading_symptom_debug
Difficulty: hard
Return ... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: gpu_serving_pipeline
Scenario: rate limit gateway
Domain focus: edge robotics (safe)
Primary language: go
Difficulty: hard
Scale/SLO: 99.99% availability
Component: component_vnazrhzt
Constraints: include failure modes and recovery, include performance model and limits, include verification strategy, avoid d... | 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: k38jg4r0.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of edge/IoT for scenario: inventory & ordering.
Primary language: python.
Difficulty: medium.
Constraints: include tests or verification strategy, provide rollout and rollback guidance, document performance characteristics, make the interface contract explicit.
Component: com... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of operating systems for scenario: rate limiting gateway.
Primary language: rust.
Difficulty: hard.
Constraints: make the interface contract explicit, provide rollout and rollback guidance, avoid undefined behavior and data races, include tests or verification strategy.
Compo... | 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: C++
Framework/tooling: STL
Domain: job scheduler
Logic challenge: multi-tenant access leak
Task type: misleading_symptom_debug
Difficulty: hard
Ret... | 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: aus9cy33q.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 |
Task type: distributed_algorithm
Scenario: feature-flag evaluation
Domain focus: real-time scheduling
Primary language: bash
Difficulty: expert
Scale/SLO: 10k RPS peak
Component: component_wvhhjwuv
Constraints: explicit contracts and invariants, include performance model and limits, avoid data races and undefined behav... | WithinUsAI/Omega_Genesis_Coder_100k |
Write a thorough test suite for a Python component used for log processing.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: stdlib-only, must be streaming-friendly, must avoid global state.
Difficulty: easy. Support both Windows and POSIX paths correctly.
Deliverable: implementati... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f66858(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 `m66694.py` and `test_m66694.py`.
*** Begin Patch
*** Update File: m66694.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: Fix a bug and add tests.
File: nch88o7.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of ml systems for scenario: rate limiting gateway.
Primary language: rust.
Difficulty: medium.
Constraints: design for backward compatibility and migrations, avoid undefined behavior and data races, make the interface contract explicit, document performance characteristics.
C... | WithinUsAI/Elite_GOD_Coder_100k |
Implement an ML engineering workflow for developer tooling focusing on real-time notifications.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must be production-ready, must be secure-by-default, must include type h... | WithinUsAI/GOD_Coder_100k |
Task type: secure_architecture
Scenario: document indexing pipeline
Domain focus: observability platforms
Primary language: typescript
Difficulty: expert
Scale/SLO: 100k RPS peak
Component: component_njhcfvmw
Constraints: avoid data races and undefined behavior, include test vectors and fuzz strategy, include failure m... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of sre/observability for scenario: rate limiting gateway.
Primary language: rust.
Difficulty: hard.
Constraints: design for backward compatibility and migrations, document performance characteristics, assume untrusted inputs; validate and sanitize, include tests or verificati... | 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: ya74a... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for report generation.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must be streaming-friendly, must include type hints, must be easy to extend, must handle Windows paths safely.
Difficulty: expert. Avoid quadratic behavior... | WithinUsAI/python_GOD_coder_100k |
Optimize while preserving behavior and order.
```python
def f90986(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m12998.py` with types and O(n) average.
```python
# m12998.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: secure_architecture
Scenario: job scheduler
Domain focus: edge robotics (safe)
Primary language: go
Difficulty: expert
Scale/SLO: p99 < 50ms
Component: component_bqpzptvf
Constraints: explicit contracts and invariants, include verification strategy, include failure modes and recovery, include security threat... | WithinUsAI/Omega_Genesis_Coder_100k |
Optimize while preserving behavior and order.
```python
def f09087(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m58441.py` with types and O(n) average.
```python
# m58441.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for task scheduling.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must be streaming-friendly, stdlib-only.
Difficulty: easy. Avoid quadratic behavior on large inputs.
Deliverable: implementation + tests.
```python
# tests ... | WithinUsAI/python_GOD_coder_100k |
Optimize a Python workflow for data modeling.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must provide clear error messages, must include type hints, must avoid global state, stdlib-only.
Difficulty: medium. Guarantee deterministic output ordering.
Deliverable: API + r... | WithinUsAI/python_GOD_coder_100k |
Fix a subtle bug in a Python module used for rate limiting.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must be easy to extend, must be streaming-friendly.
Difficulty: medium. Support both Windows and POSIX paths correctly.
Deliverable: production-ready refe... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of gpu compute for scenario: time-series metrics.
Primary language: sql.
Difficulty: medium.
Constraints: document performance characteristics, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, include invariants and failure modes, make ... | 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: yy_qz... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f49692`.
```python
def f49692(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m49956 import f49692
def test_known():
assert f49692(3,4) == 25
def test_zero():
assert f49692(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: vuzleszdu.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of databases for scenario: edge sync.
Primary language: sql.
Difficulty: hard.
Constraints: provide rollout and rollback guidance, include invariants and failure modes, avoid undefined behavior and data races, make the interface contract explicit, design for backward compatib... | WithinUsAI/Elite_GOD_Coder_100k |
Build a data pipeline for a social media product around analytics pipeline.
Target platform: data (SQL + Python).
Requirements: schema, ingestion, validation, backfills, and tests.
Constraints: must include tests, must include documentation/comments, must be production-ready, must be performant under load, must be obse... | WithinUsAI/GOD_Coder_100k |
Create a small, production-ready Python package for metrics aggregation.
Requirements: include module code, CLI entrypoint, logging, and a minimal pyproject.toml.
Constraints: must be streaming-friendly, must include tests, must include docstrings.
Difficulty: medium. Support both Windows and POSIX paths correctly.
De... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of sre/observability for scenario: chat messaging.
Primary language: go.
Difficulty: hard.
Constraints: include tests or verification strategy, include invariants and failure modes, design for backward compatibility and migrations, make the interface contract explicit.
Compon... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: storage_engine
Scenario: multi-tenant event ingestion
Domain focus: constraint solving
Primary language: rust
Difficulty: expert+
Scale/SLO: 1M msgs/min
Component: component_gdpiozqd
Constraints: include verification strategy, include deterministic replay plan, include failure modes and recovery, include per... | WithinUsAI/Omega_Genesis_Coder_100k |
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 streaming-friendly, must include type hints, must avoid global state, must handle Windows paths safely.
Difficulty: easy... | WithinUsAI/python_GOD_coder_100k |
Write pytest tests for `f86940`.
```python
def f86940(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m12420 import f86940
def test_known():
assert f86940(3,4) == 25
def test_zero():
assert f86940(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: JavaScript
Framework/tooling: Express
Domain: search service
Logic challenge: websocket reconnect storm
Task type: multi_service_security_patch
Diff... | WithinUsAI/GOD_Coder_Complete_DataSet |
Design CI/CD for a calendar/scheduling service delivering webhooks.
Target platform: web (React + TypeScript).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must include tests, must be secure-by-default, must include type hints where applicable.
Difficulty: hard. Assume sc... | 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: sdk6h98yb3yl.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of databases for scenario: chat messaging.
Primary language: go.
Difficulty: expert.
Constraints: design for backward compatibility and migrations, avoid undefined behavior and data races, document performance characteristics.
Component: component_llagtym.
Assume crash-only d... | 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: Rust, Axum, SQLx, Redis, Tokio, Docker
Language: C#
Dependency challenge: path traversal on downloads
Task type: container_runtime_fix
Difficul... | 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: mlteo... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: perf_microarchitecture
Scenario: edge sync
Domain focus: static analysis
Primary language: sql
Difficulty: expert
Scale/SLO: 99.99% availability
Component: component_rmairirn
Constraints: explicit contracts and invariants, assume adversarial inputs; validate everything, include verification strategy, include... | WithinUsAI/Omega_Genesis_Coder_100k |
Design and implement an algorithm for event dispatching.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must include tests, must handle Windows paths safely.
Difficulty: easy. Support both Windows and POSIX paths correctly.
Deliverable: corrected code ... | WithinUsAI/python_GOD_coder_100k |
Optimize while preserving behavior and order.
```python
def f57012(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m36716.py` with types and O(n) average.
```python
# m36716.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: k8lfyg9e_3.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor an existing codebase in IoT telemetry to support multi-tenant isolation cleanly.
Target platform: mobile (iOS Swift).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must be observable (logs/metrics/traces), must be production-ready, must be performant under lo... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of distributed systems for scenario: payment processing.
Primary language: python.
Difficulty: hard.
Constraints: design for backward compatibility and migrations, document performance characteristics, provide rollout and rollback guidance, assume untrusted inputs; validate a... | WithinUsAI/Elite_GOD_Coder_100k |
Implement background jobs for a document processing product.
Target platform: ML (scikit + batch).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must include type hints where applicable, must include documentation/comments, must be observable (logs/metrics/traces).
Difficulty: expe... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of networking for scenario: payment processing.
Primary language: rust.
Difficulty: expert.
Constraints: document performance characteristics, avoid undefined behavior and data races, design for backward compatibility and migrations, provide rollout and rollback guidance.
Com... | WithinUsAI/Elite_GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker
Language: JavaScript
Dependency challenge: JWT refresh token rotation
Task type: migration_pat... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C21812:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m55524.py` and `test_m55524.py`.
```python
# m55524.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: j4bywxnvj.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f99609(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 `m57087.py` and `test_m57087.py`.
*** Begin Patch
*** Update File: m57087.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 |
Fix the bug and add pytest tests.
```python
def f49161(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 `m07023.py` and `test_m07023.py`.
*** Begin Patch
*** Update File: m07023.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f70063(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m10009.py` with types and O(n) average.
```python
# m10009.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 f96126(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f96126(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | 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: document processing API
Implementation stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Software delivery problem: log redactio... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write pytest tests for `f80235`.
```python
def f80235(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m68605 import f80235
def test_known():
assert f80235(3,4) == 25
def test_zero():
assert f80235(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: query_optimizer
Scenario: graph query service
Domain focus: static analysis
Primary language: python
Difficulty: expert
Scale/SLO: multi-region active-active
Component: component_mxdevsaz
Constraints: include backward compatibility and migration plan, avoid data races and undefined behavior, include performa... | 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: gnfy25v61.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C24005:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m63385.py` and `test_m63385.py`.
```python
# m63385.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.