text
stringlengths
355
3.69k
source
stringclasses
6 values
Design a production system for document processing supporting multi-tenant isolation. Target platform: backend (Python FastAPI). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be easy to extend, must include tests, must be observable (logs/metrics/traces). Difficulty: e...
WithinUsAI/GOD_Coder_100k
Task type: compiler_backend_ir Scenario: feature-flag evaluation Domain focus: compiler toolchains Primary language: rust Difficulty: hard Scale/SLO: multi-region active-active Component: component_zpnbgaai Constraints: include test vectors and fuzz strategy, avoid data races and undefined behavior, assume adversarial ...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: smt_constraint_model Scenario: document indexing pipeline Domain focus: runtime systems Primary language: python Difficulty: hard Scale/SLO: 1M msgs/min Component: component_lwnynuld Constraints: include test vectors and fuzz strategy, include deterministic replay plan, include verification strategy, include...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: distributed_algorithm Scenario: multi-tenant event ingestion Domain focus: program synthesis (safe) Primary language: sql Difficulty: hard Scale/SLO: multi-region active-active Component: component_ptkypdik Constraints: include security threat model (defensive only), include test vectors and fuzz strategy, i...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of ml systems for scenario: multi-tenant SaaS. Primary language: rust. Difficulty: hard. Constraints: include invariants and failure modes, include tests or verification strategy, provide rollout and rollback guidance, avoid undefined behavior and data races. Component: compo...
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
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: supply_chain_security Scenario: streaming ETL Domain focus: runtime systems Primary language: bash Difficulty: expert+ Scale/SLO: 1M msgs/min Component: component_begresbd Constraints: include backward compatibility and migration plan, avoid data races and undefined behavior, include verification strategy, i...
WithinUsAI/Omega_Genesis_Coder_100k
Perform a code review for a social media PR implementing multi-tenant isolation. Target platform: mobile (Android Kotlin). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must be observable (logs/metrics/traces), must include clear error handling, must avoid global ...
WithinUsAI/GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C38109: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m41393.py` and `test_m41393.py`. ```python # m41393.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f91530`. ```python def f91530(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m98790 import f91530 def test_known(): assert f91530(3,4) == 25 def test_zero(): assert f91530(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: static_analyzer Scenario: streaming ETL Domain focus: GPU serving Primary language: sql Difficulty: hard Scale/SLO: 99.99% availability Component: component_rjszkpgb Constraints: avoid data races and undefined behavior, include verification strategy, include failure modes and recovery, include deterministic ...
WithinUsAI/Omega_Genesis_Coder_100k
Improve typing and robustness of a Python module used for metrics aggregation. 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: ...
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: v2edx...
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: secure_architecture Scenario: payment ledger Domain focus: observability platforms Primary language: sql Difficulty: hard Scale/SLO: 1M msgs/min Component: component_fedxsgvn Constraints: include failure modes and recovery, explicit contracts and invariants, include verification strategy, include security th...
WithinUsAI/Omega_Genesis_Coder_100k
Optimize while preserving behavior and order. ```python def f51042(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m93006.py` with types and O(n) average. ```python # m93006.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: e047ebh1ufz.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: 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 C24187: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m63399.py` and `test_m63399.py`. ```python # m63399.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f05468(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m57924.py` with types and O(n) average. ```python # m57924.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: System domain: data pipeline Stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions Cross-layer incident: slow cold start Task type: schema_con...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of high-performance services for scenario: edge sync. Primary language: go. Difficulty: hard. Constraints: provide rollout and rollback guidance, document performance characteristics, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize. Com...
WithinUsAI/Elite_GOD_Coder_100k
Create a comprehensive test plan and automated tests for role-based access control in a social media product. Target platform: backend (Python FastAPI). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must be performant under load, must be observable (logs/metrics/trace...
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: reporting engine Primary language: Python Framework/tooling: pytest Reported problem: monorepo toolchain skew Task type: feature_delivery D...
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 f75384(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m67912.py` with types and O(n) average. ```python # m67912.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: q40pvoamfdp.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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f93110(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m84730.py` with types and O(n) average. ```python # m84730.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f98813`. ```python def f98813(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m71259 import f98813 def test_known(): assert f98813(3,4) == 25 def test_zero(): assert f98813(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C90920: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m60840.py` and `test_m60840.py`. ```python # m60840.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: model serving gateway Primary language: C++ Framework/tooling: CMake Reported problem: idempotent retry design Task type: repo_issue_patch ...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C88301: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m22177.py` and `test_m22177.py`. ```python # m22177.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: i4e8o4ik.py ```p...
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: gtfrij.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: supply_chain_security Scenario: edge sync Domain focus: stream processing Primary language: go Difficulty: expert Scale/SLO: p99 < 50ms Component: component_dgaltkke Constraints: include deterministic replay plan, avoid data races and undefined behavior, explicit contracts and invariants, include failure mod...
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: qka1snv3e6w.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of high-performance services for scenario: analytics pipeline. Primary language: rust. Difficulty: hard. Constraints: design for backward compatibility and migrations, document performance characteristics, assume untrusted inputs; validate and sanitize. Component: component_m...
WithinUsAI/Elite_GOD_Coder_100k
Task type: runtime_gc Scenario: edge sync Domain focus: model checking Primary language: bash Difficulty: expert+ Scale/SLO: 10k RPS peak Component: component_hwbunoht Constraints: avoid data races and undefined behavior, explicit contracts and invariants, include failure modes and recovery, include deterministic repla...
WithinUsAI/Omega_Genesis_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: observability collector Implementation stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions Software delivery problem: async ...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: perf_microarchitecture Scenario: edge sync Domain focus: consensus & replication Primary language: typescript Difficulty: hard Scale/SLO: p99 < 150ms Component: component_cdgbioid Constraints: include failure modes and recovery, include verification strategy, include performance model and limits, assume adve...
WithinUsAI/Omega_Genesis_Coder_100k
Write secure, defensive Python code for ETL pipelines. Requirements: input validation, safe file handling, prevent path traversal, include tests. Constraints: must avoid global state, must be memory-efficient, must include docstrings. Difficulty: hard. Ensure the API is testable via dependency injection. Deliverable: ...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C96389: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m68953.py` and `test_m68953.py`. ```python # m68953.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: distributed_algorithm Scenario: real-time notification hub Domain focus: formal verification Primary language: typescript Difficulty: expert Scale/SLO: multi-region active-active Component: component_xkzruymc Constraints: include test vectors and fuzz strategy, explicit contracts and invariants, include dete...
WithinUsAI/Omega_Genesis_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Optimize while preserving behavior. File: bkx2h...
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: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Language: TypeScript Dependency challenge: S3-compatible upload inconsistency Task type: mig...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of networking for scenario: document indexing. Primary language: rust. Difficulty: medium. Constraints: include tests or verification strategy, include invariants and failure modes, avoid undefined behavior and data races, make the interface contract explicit, provide rollout...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of sre/observability for scenario: inventory & ordering. Primary language: bash. Difficulty: medium. Constraints: include invariants and failure modes, include tests or verification strategy, design for backward compatibility and migrations, avoid undefined behavior and data ...
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: Bash Framework/tooling: awk Domain: document processing API Logic challenge: timezone bug in reporting Task type: misleading_symptom_debug Difficult...
WithinUsAI/GOD_Coder_Complete_DataSet
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Repository domain: notification service Primary language: Java Framework/tooling: Gradle Reported problem: JWT refresh token rotation Task type: repo_issue_pa...
WithinUsAI/GOD_Coder_Complete_DataSet
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of networking for scenario: document indexing. Primary language: python. Difficulty: expert. Constraints: make the interface contract explicit, avoid undefined behavior and data races, design for backward compatibility and migrations, document performance characteristics, inc...
WithinUsAI/Elite_GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C74639: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m44203.py` and `test_m44203.py`. ```python # m44203.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f08659(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 `m01237.py` and `test_m01237.py`. *** Begin Patch *** Update File: m01237.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize a Python workflow for CLI tooling. Requirements: provide an optimized implementation and a small benchmark harness. Constraints: must handle Windows paths safely, must be easy to extend, must include docstrings. Difficulty: hard. Guarantee deterministic output ordering. Deliverable: implementation + tests. St...
WithinUsAI/python_GOD_coder_100k
Improve typing and robustness of a Python module used for rate limiting. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: must avoid global state, must handle Windows paths safely, must include docstrings. Difficulty: hard. Support both Windows and POSIX paths ...
WithinUsAI/python_GOD_coder_100k
Write pytest tests for `f38657`. ```python def f38657(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m76951 import f38657 def test_known(): assert f38657(3,4) == 25 def test_zero(): assert f38657(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: Project stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Language: Go Dependency challenge: stale cache invalidation Task type: build_reproducibility...
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: eneqj_0.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Design a small, production-grade Python API for ETL pipelines. Requirements: define data models and interfaces, implement reference version, include tests. Constraints: must include tests, stdlib-only. Difficulty: easy. Support both Windows and POSIX paths correctly. Deliverable: production-ready reference solution. A...
WithinUsAI/python_GOD_coder_100k
Implement idempotent payments for a content moderation product. Target platform: backend (Node.js). 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), must be product...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of gpu compute for scenario: payment processing. Primary language: python. Difficulty: hard. Constraints: avoid undefined behavior and data races, include invariants and failure modes, assume untrusted inputs; validate and sanitize, include tests or verification strategy, des...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of edge/IoT for scenario: document indexing. Primary language: rust. Difficulty: hard. Constraints: document performance characteristics, avoid undefined behavior and data races, design for backward compatibility and migrations, make the interface contract explicit, provide r...
WithinUsAI/Elite_GOD_Coder_100k
Write pytest tests for `f57268`. ```python def f57268(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m65324 import f57268 def test_known(): assert f57268(3,4) == 25 def test_zero(): assert f57268(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: supply_chain_security Scenario: streaming ETL Domain focus: runtime systems Primary language: bash Difficulty: hard Scale/SLO: 50 TB/day ingestion Component: component_mtvrohmu Constraints: include deterministic replay plan, assume adversarial inputs; validate everything, include backward compatibility and m...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of distributed systems for scenario: document indexing. Primary language: go. Difficulty: medium. Constraints: avoid undefined behavior and data races, include tests or verification strategy, make the interface contract explicit. Component: component_wikhwgt. Assume complianc...
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: s3sax...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f04978(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 `m57854.py` and `test_m57854.py`. *** Begin Patch *** Update File: m57854.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
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 include tests, must handle Windows paths safely. Difficulty: hard. Guarantee deterministic output ordering. Deliverable: corrected code and verific...
WithinUsAI/python_GOD_coder_100k
Debug and fix a subtle production bug related to analytics pipeline in a enterprise SaaS service. Target platform: mobile (iOS Swift). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include type hints where applicable, must be production-ready, must avoid global state. Dif...
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 an existing codebase in e-commerce to support analytics pipeline cleanly. Target platform: mobile (iOS Swift). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must include clear error handling, must be production-ready, must be performant under load. Difficulty...
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: fbfv2s_e.py ```p...
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: ay552...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: System domain: data pipeline Stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Cross-layer incident: transaction boundary bug Task type: observability...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C53055: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m50235.py` and `test_m50235.py`. ```python # m50235.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: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: mechanized_spec Scenario: feature-flag evaluation Domain focus: stream processing Primary language: lean Difficulty: expert Scale/SLO: 100k RPS peak Component: component_egnqgevn Constraints: assume adversarial inputs; validate everything, include deterministic replay plan, include failure modes and recovery...
WithinUsAI/Omega_Genesis_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Language: Rust Dependency challenge: memory leak in AST cache Task type: version_conflict_resolut...
WithinUsAI/GOD_Coder_Complete_DataSet
Optimize while preserving behavior and order. ```python def f95223(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m27889.py` with types and O(n) average. ```python # m27889.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker Language: Java Dependency challenge: multi-tenant access leak Task type: lockfile_repair Diffi...
WithinUsAI/GOD_Coder_Complete_DataSet
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Language: Rust Dependency challenge: gRPC retry storm Task type: migration_patch Difficulty:...
WithinUsAI/GOD_Coder_Complete_DataSet
Implement a concurrent Python solution for rate limiting. Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests. Constraints: must be streaming-friendly, must be easy to extend, stdlib-only. Difficulty: expert. Guarantee deterministic output ordering. Deliverable: implementati...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f97991(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 `m99713.py` and `test_m99713.py`. *** Begin Patch *** Update File: m99713.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Design a production system for social media supporting caching. Target platform: mobile (iOS Swift). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be easy to extend, must be observable (logs/metrics/traces), must be secure-by-default, must be performant under load, mus...
WithinUsAI/GOD_Coder_100k
Write pytest tests for `f10766`. ```python def f10766(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m01538 import f10766 def test_known(): assert f10766(3,4) == 25 def test_zero(): assert f10766(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: Bash Framework/tooling: awk Domain: feature flag service Logic challenge: multi-tenant access leak Task type: performance_bottleneck_patch Difficult...
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: wqfee...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of operating systems for scenario: payment processing. Primary language: python. Difficulty: medium. Constraints: provide rollout and rollback guidance, include invariants and failure modes, document performance characteristics, make the interface contract explicit. Component...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of edge/IoT for scenario: job scheduler. Primary language: typescript. Difficulty: expert. Constraints: make the interface contract explicit, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidanc...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f54877(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 `m36411.py` and `test_m36411.py`. *** Begin Patch *** Update File: m36411.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
Fix the bug and add pytest tests. ```python def f12922(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 `m01846.py` and `test_m01846.py`. *** Begin Patch *** Update File: m01846.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: lockfree_primitive Scenario: edge sync Domain focus: formal verification Primary language: cpp Difficulty: expert Scale/SLO: 50 TB/day ingestion Component: component_sgfmdgoi Constraints: include backward compatibility and migration plan, include deterministic replay plan, include test vectors and fuzz strat...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C69730: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m59210.py` and `test_m59210.py`. ```python # m59210.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: vwnk5cfi.py ```p...
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: qsce8...
WithinUsAI/Royal_Ghost_Coder_501k