text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Debug and fix a subtle production bug related to role-based access control in a healthtech service.
Target platform: mobile (iOS Swift).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must avoid global state, must include documentation/comments, must be easy to extend, must be ... | WithinUsAI/GOD_Coder_100k |
Task type: network_protocol
Scenario: payment ledger
Domain focus: high-frequency trading systems (safe engineering)
Primary language: go
Difficulty: expert
Scale/SLO: 100k RPS peak
Component: component_memyfotk
Constraints: include security threat model (defensive only), include verification strategy, include performa... | WithinUsAI/Omega_Genesis_Coder_100k |
Write pytest tests for `f65542`.
```python
def f65542(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m66506 import f65542
def test_known():
assert f65542(3,4) == 25
def test_zero():
assert f65542(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f15094(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m16442.py` with types and O(n) average.
```python
# m16442.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Perform a code review for a education PR implementing audit logs.
Target platform: ML (scikit + batch).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must be secure-by-default, must avoid global state, must include clear error handling, must include tests.
Difficu... | 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: Rust
Framework/tooling: Serde
Domain: payments platform
Logic challenge: build reproducibility failure
Task type: monorepo_toolchain_recovery
Diffic... | WithinUsAI/GOD_Coder_Complete_DataSet |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project domain: repo automation
Implementation stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Software delivery problem: N+1 query explosion
Task type: release... | 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: xbwd9... | 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: igqc84.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: network_protocol
Scenario: streaming ETL
Domain focus: runtime systems
Primary language: bash
Difficulty: expert+
Scale/SLO: 100k RPS peak
Component: component_ptifgsvp
Constraints: assume adversarial inputs; validate everything, include verification strategy, explicit contracts and invariants, include deter... | WithinUsAI/Omega_Genesis_Coder_100k |
Design a production system for e-commerce supporting caching.
Target platform: backend (Python FastAPI).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must include tests, must include clear error handling, must include documentation/comments.
Difficulty: hard. Assume PII mu... | WithinUsAI/GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f91700(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 `m13100.py` and `test_m13100.py`.
*** Begin Patch
*** Update File: m13100.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: distributed_algorithm
Scenario: real-time notification hub
Domain focus: constraint solving
Primary language: sql
Difficulty: expert
Scale/SLO: 99.99% availability
Component: component_tipjuxgk
Constraints: include security threat model (defensive only), avoid data races and undefined behavior, explicit cont... | WithinUsAI/Omega_Genesis_Coder_100k |
Task type: compiler_backend_ir
Scenario: edge sync
Domain focus: high-frequency trading systems (safe engineering)
Primary language: cpp
Difficulty: hard
Scale/SLO: 99.99% availability
Component: component_mcbudnez
Constraints: avoid data races and undefined behavior, include verification strategy, include test vectors... | WithinUsAI/Omega_Genesis_Coder_100k |
Debug and fix a subtle production bug related to A/B experimentation in a logistics service.
Target platform: web (React + TypeScript).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must include clear error handling, must include documentation/comments, must avoid global state... | 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: TypeScript
Framework/tooling: Vitest
Domain: payments platform
Logic challenge: race condition on worker shutdown
Task type: edge_case_hardening
Dif... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize a Python workflow for event dispatching.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must be streaming-friendly, must be memory-efficient, must include tests, must avoid global state.
Difficulty: medium. Ensure the API is testable via dependency injection.
Del... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: m88k_... | 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: data pipeline
Logic challenge: race condition on worker shutdown
Task type: parser_validation_logic
Difficulty:... | 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: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Software delivery problem: gRPC retry storm
T... | 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: must be memory-efficient, must include type hints, must be easy to extend, must provide clear error messages.
Difficulty: expert. Provide helpful excepti... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of ml systems for scenario: event ingestion.
Primary language: python.
Difficulty: expert.
Constraints: avoid undefined behavior and data races, make the interface contract explicit, design for backward compatibility and migrations, document performance characteristics, inclu... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: query_optimizer
Scenario: identity and access
Domain focus: cryptography engineering (defensive)
Primary language: rust
Difficulty: expert
Scale/SLO: p99 < 50ms
Component: component_yhbvxgzz
Constraints: assume adversarial inputs; validate everything, include verification strategy, include test vectors and f... | 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: System domain: benchmark harness
Stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Cross-layer incident: optimistic locking conflict
Task type: aut... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C84426:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m98802.py` and `test_m98802.py`.
```python
# m98802.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Perform a code review for a content moderation PR implementing idempotent payments.
Target platform: data (SQL + Python).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must be observable (logs/metrics/traces), must include type hints where applicable, must include... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of stream processing for scenario: rate limiting gateway.
Primary language: python.
Difficulty: expert.
Constraints: make the interface contract explicit, provide rollout and rollback guidance, avoid undefined behavior and data races, design for backward compatibility and mig... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of gpu compute for scenario: analytics pipeline.
Primary language: typescript.
Difficulty: hard.
Constraints: include tests or verification strategy, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, design for backward compatibility and... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: secure_architecture
Scenario: payment ledger
Domain focus: program synthesis (safe)
Primary language: rust
Difficulty: hard
Scale/SLO: multi-region active-active
Component: component_idnmcxyu
Constraints: include backward compatibility and migration plan, include verification strategy, include security threa... | 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: o7ndk7.py
```pyt... | 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: benchmark harness
Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Cross-layer incident: migration ordering failure
Task type: f... | 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: must be memory-efficient, must include type hints, stdlib-only.
Difficulty: medium. Provide helpful exceptions with actionable messages.
Deliverable: AP... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of networking for scenario: inventory & ordering.
Primary language: go.
Difficulty: medium.
Constraints: make the interface contract explicit, document performance characteristics, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize.
Compon... | 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: System domain: data pipeline
Stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Cross-layer incident: partial checkpoint corruption
Task type: schema_contra... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write pytest tests for `f72695`.
```python
def f72695(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m10385 import f72695
def test_known():
assert f72695(3,4) == 25
def test_zero():
assert f72695(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for file synchronization.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must handle Windows paths safely, must be streaming-friendly, must include docstrings, must include type hints.
Difficulty: hard. Guarantee deterministi... | WithinUsAI/python_GOD_coder_100k |
Write pytest tests for `f20426`.
```python
def f20426(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m02918 import f20426
def test_known():
assert f20426(3,4) == 25
def test_zero():
assert f20426(0,0) == 0
def test_property_nonne... | 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, stdlib-only, must be memory-efficient, must include docstrings.
Difficulty: medium. Provide helpful exceptions with actio... | 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: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker
Software delivery problem: CI failures after ... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of compilers for scenario: chat messaging.
Primary language: go.
Difficulty: hard.
Constraints: avoid undefined behavior and data races, include tests or verification strategy, assume untrusted inputs; validate and sanitize, document performance characteristics.
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: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f68941(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 `m95563.py` and `test_m95563.py`.
*** Begin Patch
*** Update File: m95563.py
@@
d... | 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 include type hints, must include docstrings, must include tests.
Difficulty: hard. Handle empty inputs and malformed records ... | WithinUsAI/python_GOD_coder_100k |
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 docstrings, must include type hints.
Difficulty: expert. Provide helpful exceptions with actionable messages.
Deliverable: API + reference implemen... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: dxxxqm1.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Repository domain: observability collector
Primary language: Python
Framework/tooling: FastAPI
Reported problem: unsafe deserialization
Task type: code_review... | 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 |
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: dpwckr53r97z.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Repository domain: payments platform
Primary language: YAML
Framework/tooling: Docker Compose
Reported problem: monorepo toolchain skew
Task type: feature_del... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of stream processing for scenario: event ingestion.
Primary language: go.
Difficulty: medium.
Constraints: avoid undefined behavior and data races, include tests or verification strategy, make the interface contract explicit.
Component: component_vmqeynj.
Assume 50k RPS and p... | 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: document processing API
Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Software delivery problem: monorepo toolch... | 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 |
Refactor a Python module used for parsing into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must include type hints, must provide clear error messages.
Difficulty: medium. Support both Windows and POSIX paths correctly.
Deliver... | WithinUsAI/python_GOD_coder_100k |
Refactor an existing codebase in logistics to support caching cleanly.
Target platform: ML (PyTorch + serving).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must include type hints where applicable, must include clear error handling, must avoid global state, must be ... | WithinUsAI/GOD_Coder_100k |
Implement search + pagination for a developer tooling product.
Target platform: backend (Python FastAPI).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must be production-ready, must include clear error handling, must include type hints where applicable, must be secure-by-default.
... | WithinUsAI/GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Write secure, defensive Python code for data modeling.
Requirements: input validation, safe file handling, prevent path traversal, include tests.
Constraints: must be memory-efficient, must provide clear error messages, must be streaming-friendly, must be easy to extend.
Difficulty: expert. Guarantee deterministic outp... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: vykec_6ydhy4.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: kernel_syscall_design
Scenario: graph query service
Domain focus: cryptography engineering (defensive)
Primary language: rust
Difficulty: hard
Scale/SLO: 99.99% availability
Component: component_caqxjxia
Constraints: include deterministic replay plan, include security threat model (defensive only), include f... | WithinUsAI/Omega_Genesis_Coder_100k |
Implement idempotent payments for a IoT telemetry product.
Target platform: web (React + TypeScript).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must be secure-by-default, must be production-ready, must include type hints where applicable, must include clear error handling, must... | 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: yvj7txogu1xv.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for time series.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must provide clear error messages, must be memory-efficient.
Difficulty: hard. Include a small CLI example if relevant.
Deliverable: implementation + tests.... | 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: benchmark harness
Implementation stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Software delivery problem: CI failures after dependency upgrade... | 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 |
Design and implement an algorithm for CLI tooling.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must avoid global state, must include docstrings.
Difficulty: easy. Avoid quadratic behavior on large inputs.
Deliverable: corrected code and verification... | WithinUsAI/python_GOD_coder_100k |
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 provide clear error messages.
Difficulty: easy. Guarantee deterministic output ordering.
Deliverable: API + referen... | 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: JavaScript
Framework/tooling: Express
Domain: benchmark harness
Logic challenge: unsafe deserialization
Task type: cross_stack_outage_fix
Difficulty... | 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: tto9x8.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Design CI/CD for a logistics service delivering file uploads.
Target platform: data (SQL + Python).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must be easy to extend, must include documentation/comments, must include tests.
Difficulty: hard. Assume PII must be protected... | 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: t1wlw... | WithinUsAI/Royal_Ghost_Coder_501k |
Design and implement an algorithm for metrics aggregation.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must avoid global state, must include docstrings.
Difficulty: hard. Handle empty inputs and malformed records gracefully.
Deliverable: implementat... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of high-performance services for scenario: rate limiting gateway.
Primary language: python.
Difficulty: expert.
Constraints: design for backward compatibility and migrations, include tests or verification strategy, assume untrusted inputs; validate and sanitize, avoid undefin... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of distributed systems for scenario: job scheduler.
Primary language: python.
Difficulty: hard.
Constraints: avoid undefined behavior and data races, make the interface contract explicit, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance.
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: Optimize while preserving behavior.
File: ah2jd... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f03540(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 `m86220.py` and `test_m86220.py`.
*** Begin Patch
*** Update File: m86220.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: irxoe... | WithinUsAI/Royal_Ghost_Coder_501k |
Design CI/CD for a content moderation service delivering multi-tenant isolation.
Target platform: web (React + TypeScript).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must be performant under load, must be observable (logs/metrics/traces), must include clear error handl... | 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: kwa7f8f.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Design and implement an algorithm for report generation.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must include tests, stdlib-only.
Difficulty: hard. Support both Windows and POSIX paths correctly.
Deliverable: implementation + tests.
Problem: com... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: g4z5g... | WithinUsAI/Royal_Ghost_Coder_501k |
Add observability for rate limiting in a healthtech system.
Target platform: ML (PyTorch + serving).
Requirements: structured logs, metrics, tracing, dashboards, and alerting rules.
Constraints: must include tests, must be secure-by-default, must be production-ready.
Difficulty: easy. Assume schema evolves frequently; ... | 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: gpu_serving_pipeline
Scenario: payment ledger
Domain focus: static analysis
Primary language: python
Difficulty: hard
Scale/SLO: p99 < 150ms
Component: component_mmhfrfre
Constraints: assume adversarial inputs; validate everything, include test vectors and fuzz strategy, avoid data races and undefined behavi... | 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: Catch2
Domain: auth service
Logic challenge: slow cold start
Task type: multi_file_migration_repair
Difficulty: hard
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: Project domain: artifact registry
Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest
Software delivery problem: multi-tenant access leak
Task type: arc... | 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 |
Optimize while preserving behavior and order.
```python
def f80042(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m40006.py` with types and O(n) average.
```python
# m40006.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Secure-by-default implementation for analytics pipeline in a education product.
Target platform: backend (Go).
Requirements: threat model, input validation, authz/authn guidance, safe storage, tests.
Constraints: must include tests, must be secure-by-default, must be performant under load, must include clear error hand... | 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: vk4ml... | 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: auth service
Primary language: Rust
Framework/tooling: Tokio
Reported problem: websocket reconnect storm
Task type: code_review_fix
Difficu... | WithinUsAI/GOD_Coder_Complete_DataSet |
Perform a code review for a developer tooling PR implementing A/B experimentation.
Target platform: backend (Go).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must avoid global state, must be secure-by-default, must include tests, must include documentation/comme... | WithinUsAI/GOD_Coder_100k |
Refactor a Python module used for rate limiting into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must include tests, must be memory-efficient.
Difficulty: medium. Support both Windows and POSIX paths correctly.
Deliverable: co... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: mf3hyuw4pj1.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: secure_architecture
Scenario: payment ledger
Domain focus: secure enclaves (defensive)
Primary language: python
Difficulty: expert
Scale/SLO: 100k RPS peak
Component: component_bufscldk
Constraints: include test vectors and fuzz strategy, include security threat model (defensive only), include backward compa... | WithinUsAI/Omega_Genesis_Coder_100k |
Write a thorough test suite for a Python component used for file synchronization.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: stdlib-only, must be easy to extend.
Difficulty: hard. Avoid quadratic behavior on large inputs.
Deliverable: implementation + tests.
```python
# tests... | WithinUsAI/python_GOD_coder_100k |
Write pytest tests for `f51036`.
```python
def f51036(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m50148 import f51036
def test_known():
assert f51036(3,4) == 25
def test_zero():
assert f51036(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: 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: C#
Framework/tooling: EF Core
Domain: reporting engine
Logic challenge: migration ordering failure
Task type: multi_file_migration_repair
Difficulty... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of networking for scenario: multi-tenant SaaS.
Primary language: rust.
Difficulty: medium.
Constraints: avoid undefined behavior and data races, include tests or verification strategy, assume untrusted inputs; validate and sanitize, include invariants and failure modes.
Compo... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: compiler_frontend
Scenario: job scheduler
Domain focus: stream processing
Primary language: go
Difficulty: hard
Scale/SLO: multi-region active-active
Component: component_pzyzmhfd
Constraints: include failure modes and recovery, include performance model and limits, include backward compatibility and migrati... | WithinUsAI/Omega_Genesis_Coder_100k |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.