text
stringlengths
355
3.69k
source
stringclasses
6 values
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: zbc4hfvy.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: supply_chain_security Scenario: payment ledger Domain focus: data lineage & governance Primary language: typescript Difficulty: expert Scale/SLO: multi-region active-active Component: component_xukzjqvr Constraints: include failure modes and recovery, avoid data races and undefined behavior, include verifica...
WithinUsAI/Omega_Genesis_Coder_100k
Optimize while preserving behavior and order. ```python def f44505(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m49215.py` with types and O(n) average. ```python # m49215.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: runtime_gc Scenario: streaming ETL Domain focus: distributed storage Primary language: go Difficulty: hard Scale/SLO: p99 < 150ms Component: component_okrpdbji Constraints: explicit contracts and invariants, include test vectors and fuzz strategy, include failure modes and recovery, include verification stra...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of operating systems for scenario: analytics pipeline. Primary language: typescript. Difficulty: expert. Constraints: document performance characteristics, include invariants and failure modes, avoid undefined behavior and data races, make the interface contract explicit. Com...
WithinUsAI/Elite_GOD_Coder_100k
Refactor a Python module used for event dispatching into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must be memory-efficient, must include type hints, must include tests. Difficulty: easy. Avoid quadratic behavior on large inp...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C23997: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m78769.py` and `test_m78769.py`. ```python # m78769.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f12395(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 `m87485.py` and `test_m87485.py`. *** Begin Patch *** Update File: m87485.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: xnjff...
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: wg25h...
WithinUsAI/Royal_Ghost_Coder_501k
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, must provide clear error messages. Difficulty: easy. Handle empty inputs and malformed ...
WithinUsAI/python_GOD_coder_100k
Write a thorough test suite for a Python component used for configuration loading. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must avoid global state, must handle Windows paths safely, must be streaming-friendly, must be memory-efficient. Difficulty: medium. Include a small CL...
WithinUsAI/python_GOD_coder_100k
Design a small, production-grade Python API for caching layer. Requirements: define data models and interfaces, implement reference version, include tests. Constraints: must avoid global state, must include docstrings, must handle Windows paths safely. Difficulty: hard. Guarantee deterministic output ordering. Deliver...
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: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Language: Go Dependency challenge: JWT refresh token rotation Task type: lockfile_repair Dif...
WithinUsAI/GOD_Coder_Complete_DataSet
Write pytest tests for `f42671`. ```python def f42671(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m48953 import f42671 def test_known(): assert f42671(3,4) == 25 def test_zero(): assert f42671(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: perf_microarchitecture Scenario: time-series metrics store Domain focus: model checking Primary language: python Difficulty: expert+ Scale/SLO: p99 < 150ms Component: component_qnslnkiy Constraints: include backward compatibility and migration plan, assume adversarial inputs; validate everything, include det...
WithinUsAI/Omega_Genesis_Coder_100k
Fix the bug and add pytest tests. ```python def f27512(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 `m18216.py` and `test_m18216.py`. *** Begin Patch *** Update File: m18216.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: p5enqfs.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: secure_architecture Scenario: rate limit gateway Domain focus: formal verification Primary language: rust Difficulty: expert+ Scale/SLO: 50 TB/day ingestion Component: component_xveubcex Constraints: assume adversarial inputs; validate everything, include test vectors and fuzz strategy, include verification ...
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: cqm2qy.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: Language: Rust Framework/tooling: Tokio Domain: auth service Logic challenge: race condition on worker shutdown Task type: multi_service_security_patch Diffic...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of compilers for scenario: rate limiting gateway. Primary language: rust. Difficulty: expert. Constraints: document performance characteristics, include tests or verification strategy, assume untrusted inputs; validate and sanitize, make the interface contract explicit, inclu...
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
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: Playwright Domain: developer platform Logic challenge: transaction boundary bug Task type: security_logic_interaction ...
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: z1qluv.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor an existing codebase in developer tooling to support background jobs cleanly. Target platform: infra (Docker + Kubernetes). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must be secure-by-default, must be observable (logs/metrics/traces), must be production-r...
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: c3v56...
WithinUsAI/Royal_Ghost_Coder_501k
Build a data pipeline for a document processing product around webhooks. Target platform: data (SQL + Python). Requirements: schema, ingestion, validation, backfills, and tests. Constraints: must include documentation/comments, must include clear error handling, must be easy to extend, must be performant under load, mu...
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: Repository domain: model serving gateway Primary language: Java Framework/tooling: Maven Reported problem: partial checkpoint corruption Task type: performanc...
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: ujm_xtu1opl.py `...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Language: Bash Dependency challenge: schema drift during deployment Task type: lockfile_repair Di...
WithinUsAI/GOD_Coder_Complete_DataSet
Optimize while preserving behavior and order. ```python def f75529(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m53647.py` with types and O(n) average. ```python # m53647.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to analytics pipeline in a fraud detection service. Target platform: infra (Docker + Kubernetes). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include documentation/comments, must include clear error handling, must be secure-...
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: System domain: auth service Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Cross-layer incident: dead-letter queue replay Task type: deploy_r...
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: skxsb5.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: Language: Go Framework/tooling: sqlc Domain: search service Logic challenge: N+1 query explosion Task type: concurrency_fix Difficulty: hard Return a rigorou...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f10686(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 `m30098.py` and `test_m30098.py`. *** Begin Patch *** Update File: m30098.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Java Framework/tooling: Hibernate Domain: notification service Logic challenge: schema drift during deployment Task type: algorithmic_correctness Di...
WithinUsAI/GOD_Coder_Complete_DataSet
Write pytest tests for `f14709`. ```python def f14709(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m16387 import f14709 def test_known(): assert f14709(3,4) == 25 def test_zero(): assert f14709(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Design and implement an algorithm for file synchronization. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must avoid global state, must be memory-efficient, must include docstrings, must include tests. Difficulty: hard. Handle empty inputs and malforme...
WithinUsAI/python_GOD_coder_100k
Task type: storage_engine Scenario: time-series metrics store Domain focus: secure enclaves (defensive) Primary language: sql Difficulty: expert Scale/SLO: 99.99% availability Component: component_ggurykqh Constraints: include security threat model (defensive only), include test vectors and fuzz strategy, include backw...
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: zvpmb3_qw.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f29536(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 `m75648.py` and `test_m75648.py`. *** Begin Patch *** Update File: m75648.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: C++ Framework/tooling: STL Domain: document processing API Logic challenge: rate-limit bypass Task type: state_machine_patch Difficulty: medium Ret...
WithinUsAI/GOD_Coder_Complete_DataSet
Write a thorough test suite for a Python component used for configuration loading. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must include docstrings, must provide clear error messages. Difficulty: medium. Support both Windows and POSIX paths correctly. Deliverable: implement...
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: Airflow, dbt, DuckDB, MinIO, pytest Language: Rust Dependency challenge: build reproducibility failure Task type: migration_patch Difficulty: m...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of distributed systems for scenario: time-series metrics. Primary language: go. Difficulty: medium. Constraints: provide rollout and rollback guidance, include invariants and failure modes, make the interface contract explicit, design for backward compatibility and migrations...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f04067(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 `m00581.py` and `test_m00581.py`. *** Begin Patch *** Update File: m00581.py @@ d...
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 provide clear error messages, must include docstrings. Difficulty: expert. Provide helpful exceptions with actionable messages. De...
WithinUsAI/python_GOD_coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: TypeScript Framework/tooling: Next.js Domain: search service Logic challenge: timezone bug in reporting Task type: performance_bottleneck_patch Diff...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C00744: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m69288.py` and `test_m69288.py`. ```python # m69288.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Create a comprehensive test plan and automated tests for analytics pipeline in a calendar/scheduling product. Target platform: infra (Docker + Kubernetes). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must be observable (logs/metrics/traces), must be secure-by-defaul...
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
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C62883: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m50991.py` and `test_m50991.py`. ```python # m50991.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Repository domain: document processing API Primary language: YAML Framework/tooling: Docker Compose Reported problem: rate-limit bypass Task type: feature_del...
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: lxqwjpjouad6.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f93607(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f93607(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f85383(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 `m40769.py` and `test_m40769.py`. *** Begin Patch *** Update File: m40769.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Implement offline-first sync for a fintech product. Target platform: infra (Terraform). Requirements: provide production-ready code, configuration, and tests. Constraints: must be production-ready, must include clear error handling, must be observable (logs/metrics/traces), must avoid global state, must be secure-by-de...
WithinUsAI/GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Java Framework/tooling: Spring Boot Domain: document processing API Logic challenge: multi-tenant access leak Task type: transaction_integrity_fix D...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of distributed systems for scenario: rate limiting gateway. Primary language: rust. Difficulty: hard. Constraints: document performance characteristics, provide rollout and rollback guidance, make the interface contract explicit, include invariants and failure modes. Componen...
WithinUsAI/Elite_GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f68271(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f68271(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: Repository domain: benchmark harness Primary language: YAML Framework/tooling: GitHub Actions Reported problem: build reproducibility failure Task type: perfo...
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: Python Framework/tooling: Django Domain: data pipeline Logic challenge: rate-limit bypass Task type: concurrency_fix Difficulty: hard Return a rigo...
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: in5nk_6lrobr.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of realtime systems for scenario: multi-tenant SaaS. Primary language: bash. Difficulty: expert. Constraints: avoid undefined behavior and data races, include tests or verification strategy, design for backward compatibility and migrations. Component: component_idwzowi. Assum...
WithinUsAI/Elite_GOD_Coder_100k
Task type: lockfree_primitive Scenario: time-series metrics store Domain focus: formal verification Primary language: rust Difficulty: expert Scale/SLO: multi-region active-active Component: component_sudvanej Constraints: include deterministic replay plan, explicit contracts and invariants, include test vectors and fu...
WithinUsAI/Omega_Genesis_Coder_100k
Optimize while preserving behavior and order. ```python def f95346(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m56478.py` with types and O(n) average. ```python # m56478.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: h33sln3k.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor an existing codebase in document processing to support A/B experimentation cleanly. Target platform: CI (GitHub Actions). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must be easy to extend, must include type hints where applicable, must be production-ready....
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: System domain: auth service Stack: Rust, Axum, SQLx, Redis, Tokio, Docker Cross-layer incident: transaction boundary bug Task type: cache_consistency_patch Di...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f15607(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 `m30801.py` and `test_m30801.py`. *** Begin Patch *** Update File: m30801.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
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: np9cusw.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f70411(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m95773.py` with types and O(n) average. ```python # m95773.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: distributed_algorithm Scenario: document indexing pipeline Domain focus: edge robotics (safe) Primary language: rust Difficulty: hard Scale/SLO: 100k RPS peak Component: component_enwerdtr Constraints: avoid data races and undefined behavior, include performance model and limits, assume adversarial inputs; v...
WithinUsAI/Omega_Genesis_Coder_100k
Create a comprehensive test plan and automated tests for file uploads in a gaming product. Target platform: ML (scikit + batch). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must avoid global state, must include type hints where applicable, must be performant under l...
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
Refactor a Python module used for CLI tooling into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must avoid global state, must be streaming-friendly. Difficulty: expert. Handle empty inputs and malformed records gracefully. 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: Fix a bug and add tests. File: c64eko7.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of compilers for scenario: rate limiting gateway. Primary language: bash. Difficulty: medium. Constraints: provide rollout and rollback guidance, include tests or verification strategy, design for backward compatibility and migrations. Component: component_fmcspgg. Assume sch...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Implement an ML engineering workflow for customer support focusing on file uploads. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must include type hints where applicable, must be production-ready, must be secure-b...
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: e6v5l3ogfw2.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: observability collector Implementation stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Software delivery problem: broken pagination ...
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: u7uws...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of high-performance services for scenario: rate limiting gateway. Primary language: python. Difficulty: hard. Constraints: make the interface contract explicit, avoid undefined behavior and data races, include tests or verification strategy, include invariants and failure mod...
WithinUsAI/Elite_GOD_Coder_100k
Implement search + pagination for a document processing product. Target platform: mobile (iOS Swift). Requirements: provide production-ready code, configuration, and tests. Constraints: must include clear error handling, must be production-ready, must be easy to extend, must be performant under load. Difficulty: easy. ...
WithinUsAI/GOD_Coder_100k
Fix a subtle bug in a Python module used for telemetry ingestion. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must include type hints, must be streaming-friendly, must provide clear error messages, must include docstrings. Difficulty: easy. Ensure the API is ...
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: developer platform Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform Software delivery problem: memory leak in AST c...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C86188: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m60476.py` and `test_m60476.py`. ```python # m60476.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C72081: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m13237.py` and `test_m13237.py`. ```python # m13237.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of distributed systems for scenario: feature flagging. Primary language: typescript. Difficulty: expert. Constraints: avoid undefined behavior and data races, include tests or verification strategy, document performance characteristics, include invariants and failure modes, a...
WithinUsAI/Elite_GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C92093: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m30161.py` and `test_m30161.py`. ```python # m30161.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f53519(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 `m36217.py` and `test_m36217.py`. *** Begin Patch *** Update File: m36217.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: k8k13ky8.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Provision infrastructure for a customer support workload providing search + pagination. Target platform: mobile (Android Kotlin). Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling. Constraints: must include clear error handling, must include documentation/comments, must be production-re...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of ml systems for scenario: inventory & ordering. Primary language: typescript. Difficulty: expert. Constraints: design for backward compatibility and migrations, include invariants and failure modes, assume untrusted inputs; validate and sanitize, document performance charac...
WithinUsAI/Elite_GOD_Coder_100k
Design and implement an algorithm for task scheduling. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: stdlib-only, must handle Windows paths safely, must avoid global state, must include docstrings. Difficulty: expert. Provide helpful exceptions with ac...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f54283(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 `m93469.py` and `test_m93469.py`. *** Begin Patch *** Update File: m93469.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k