text
stringlengths
355
3.69k
source
stringclasses
6 values
Design a production system for content moderation supporting background jobs. Target platform: backend (Node.js). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be performant under load, must avoid global state, must include documentation/comments, must be easy to exten...
WithinUsAI/GOD_Coder_100k
Task type: static_analyzer Scenario: identity and access Domain focus: constraint solving Primary language: typescript Difficulty: expert+ Scale/SLO: p99 < 50ms Component: component_zszuuxmm Constraints: avoid data races and undefined behavior, include backward compatibility and migration plan, include failure modes an...
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: nc28aplp.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
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 be memory-efficient, must be easy to extend, must handle Windows paths safely, must provide clear error messages. Difficulty: easy. Gu...
WithinUsAI/python_GOD_coder_100k
Add a clear docstring and type hints to this function: ```python def f12481(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f12481(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Optimize while preserving behavior. File: zy2om...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: ml_system_design Scenario: time-series metrics store Domain focus: distributed storage Primary language: sql Difficulty: expert Scale/SLO: 10k RPS peak Component: component_reqoctlu Constraints: include test vectors and fuzz strategy, include deterministic replay plan, explicit contracts and invariants, incl...
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: bs_fn...
WithinUsAI/Royal_Ghost_Coder_501k
Implement A/B experimentation for a calendar/scheduling product. Target platform: infra (Docker + Kubernetes). Requirements: provide production-ready code, configuration, and tests. Constraints: must include documentation/comments, must be secure-by-default, must include clear error handling, must include type hints wh...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f97378(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 `m71054.py` and `test_m71054.py`. *** Begin Patch *** Update File: m71054.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
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: wu8obs12.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C88095: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m68315.py` and `test_m68315.py`. ```python # m68315.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f75886(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m53698.py` with types and O(n) average. ```python # m53698.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: tla_state_machine Scenario: document indexing pipeline Domain focus: data lineage & governance Primary language: tla+ Difficulty: expert Scale/SLO: 100k RPS peak Component: component_ivsspnnf Constraints: include deterministic replay plan, include test vectors and fuzz strategy, include verification strategy...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor a Python module used for report generation into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: stdlib-only, must include type hints, must include docstrings. Difficulty: expert. Include a small CLI example if relevant. D...
WithinUsAI/python_GOD_coder_100k
Optimize while preserving behavior and order. ```python def f16399(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m88057.py` with types and O(n) average. ```python # m88057.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f55179(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 `m93597.py` and `test_m93597.py`. *** Begin Patch *** Update File: m93597.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: Go Framework/tooling: sqlc Domain: notification service Logic challenge: stale cache invalidation Task type: security_logic_interaction 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: dnakramx4vn8.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C52626: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m50202.py` and `test_m50202.py`. ```python # m50202.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Implement event-driven workflows for a content moderation product. Target platform: data (SQL + Python). Requirements: provide production-ready code, configuration, and tests. Constraints: must include clear error handling, must include tests, must be easy to extend, must be secure-by-default. Difficulty: hard. Assume ...
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
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: Fiber Domain: data pipeline Logic challenge: monorepo toolchain skew Task type: cross_stack_outage_fix Difficulty: expert Ret...
WithinUsAI/GOD_Coder_Complete_DataSet
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Design a small, production-grade Python API for metrics aggregation. Requirements: define data models and interfaces, implement reference version, include tests. Constraints: must be streaming-friendly, must be easy to extend, must include docstrings, stdlib-only. Difficulty: easy. Handle empty inputs and malformed rec...
WithinUsAI/python_GOD_coder_100k
Task type: static_analyzer Scenario: time-series metrics store Domain focus: program synthesis (safe) Primary language: python Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_uevuzeoj Constraints: assume adversarial inputs; validate everything, include test vectors and fuzz strategy, include sec...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: ml_system_design Scenario: rate limit gateway Domain focus: distributed storage Primary language: sql Difficulty: expert Scale/SLO: p99 < 150ms Component: component_prqmggpv Constraints: include performance model and limits, include verification strategy, include deterministic replay plan, include security t...
WithinUsAI/Omega_Genesis_Coder_100k
Design and implement an algorithm for file synchronization. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must include type hints, stdlib-only, must be streaming-friendly, must avoid global state. Difficulty: hard. Include a small CLI example if releva...
WithinUsAI/python_GOD_coder_100k
Task type: lockfree_primitive Scenario: multi-tenant event ingestion Domain focus: zero-downtime migrations Primary language: rust Difficulty: expert Scale/SLO: 100k RPS peak Component: component_menquluf Constraints: include verification strategy, include test vectors and fuzz strategy, avoid data races and undefined ...
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: Repository domain: search service Primary language: C++ Framework/tooling: STL Reported problem: path traversal on downloads Task type: feature_delivery Diffi...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: supply_chain_security Scenario: real-time notification hub Domain focus: formal verification Primary language: sql Difficulty: expert+ Scale/SLO: p99 < 150ms Component: component_zluhpyyh Constraints: avoid data races and undefined behavior, assume adversarial inputs; validate everything, explicit contracts ...
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: YAML Framework/tooling: Terraform Domain: notification service Logic challenge: optimistic locking conflict Task type: transaction_integrity_fix Dif...
WithinUsAI/GOD_Coder_Complete_DataSet
Add a clear docstring and type hints to this function: ```python def f11926(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f11926(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: 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: e7v2m0k.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: System domain: search service Stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker Cross-layer incident: stale cache invalidation Task type: auth_session_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: Optimize while preserving behavior. File: hddgy...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f86956(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m26708.py` with types and O(n) average. ```python # m26708.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: benchmark harness Stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Cross-layer incident: mismatched API contract Task type: cache_cons...
WithinUsAI/GOD_Coder_Complete_DataSet
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Java Framework/tooling: Hibernate Domain: team dashboard Logic challenge: monorepo toolchain skew Task type: distributed_debug Difficulty: hard Ret...
WithinUsAI/GOD_Coder_Complete_DataSet
Write a thorough test suite for a Python component used for metrics aggregation. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must avoid global state, must be easy to extend, must be streaming-friendly. Difficulty: medium. Avoid quadratic behavior on large inputs. 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: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to rate limiting in a content moderation service. Target platform: data (SQL + Python). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be performant under load, must include documentation/comments, must be easy to extend, must ...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of ml systems for scenario: job scheduler. Primary language: typescript. Difficulty: hard. Constraints: document performance characteristics, provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, include invariants and failure modes, avoid und...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: vpcrbk.py ```pyt...
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: stdlib-only, must provide clear error messages, must handle Windows paths safely, must be streaming-friendly. Difficulty: expert. Include a small CLI example...
WithinUsAI/python_GOD_coder_100k
Design and implement an algorithm for configuration loading. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must be easy to extend, must avoid global state, must be streaming-friendly. Difficulty: medium. Include a small CLI example if relevant. Delive...
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: aru3y0x0bp.py ``...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f00431(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m28633.py` with types and O(n) average. ```python # m28633.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: kernel_syscall_design Scenario: rate limit gateway Domain focus: compiler toolchains Primary language: c Difficulty: expert+ Scale/SLO: 50 TB/day ingestion Component: component_wyfteqai Constraints: include verification strategy, explicit contracts and invariants, include deterministic replay plan, assume ad...
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: hz2ot...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f51106(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 `m50158.py` and `test_m50158.py`. *** Begin Patch *** Update File: m50158.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of realtime systems for scenario: document indexing. Primary language: python. Difficulty: hard. Constraints: include invariants and failure modes, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, make the interface contract explicit, d...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: j8moa2caz7.py ``...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for report generation. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must avoid global state, must provide clear error messages, must be streaming-friendly. Difficulty: hard. Include a small CLI example if relevant. Del...
WithinUsAI/python_GOD_coder_100k
Task type: network_protocol Scenario: identity and access Domain focus: high-frequency trading systems (safe engineering) Primary language: typescript Difficulty: expert+ Scale/SLO: multi-region active-active Component: component_lfvrinje Constraints: include failure modes and recovery, include performance model and li...
WithinUsAI/Omega_Genesis_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f10193(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 `m58599.py` and `test_m58599.py`. *** Begin Patch *** Update File: m58599.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: Project stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Language: C++ Dependency challenge: multi-tenant access leak Task type: build_reproducibility_fix...
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: kf3hh...
WithinUsAI/Royal_Ghost_Coder_501k
Perform a code review for a healthtech PR implementing A/B experimentation. Target platform: web (React + TypeScript). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must be secure-by-default, must avoid global state, must include tests, must include documentation/...
WithinUsAI/GOD_Coder_100k
Debug and fix a subtle production bug related to webhooks in a e-commerce service. Target platform: CI (GitHub Actions). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be secure-by-default, must be observable (logs/metrics/traces), must include documentation/comments, must...
WithinUsAI/GOD_Coder_100k
Implement a concurrent Python solution for event dispatching. Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests. Constraints: must include type hints, stdlib-only, must include docstrings. Difficulty: hard. Avoid quadratic behavior on large inputs. Deliverable: corrected c...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f12022(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 `m73146.py` and `test_m73146.py`. *** Begin Patch *** Update File: m73146.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: supply_chain_security Scenario: rate limit gateway Domain focus: secure enclaves (defensive) Primary language: typescript Difficulty: hard Scale/SLO: 100k RPS peak Component: component_firfhlum Constraints: include backward compatibility and migration plan, assume adversarial inputs; validate everything, inc...
WithinUsAI/Omega_Genesis_Coder_100k
Write a thorough test suite for a Python component used for event dispatching. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must include docstrings, must include type hints, must handle Windows paths safely, must include tests. Difficulty: easy. Ensure the API is testable via de...
WithinUsAI/python_GOD_coder_100k
Task type: lockfree_primitive Scenario: multi-tenant event ingestion Domain focus: consensus & replication Primary language: cpp Difficulty: hard Scale/SLO: 100k RPS peak Component: component_loneblav Constraints: include performance model and limits, include verification strategy, avoid data races and undefined behavi...
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
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
Implement an ML engineering workflow for e-commerce focusing on audit logs. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must avoid global state, must be easy to extend, must be secure-by-default. Difficulty: easy...
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: Go Framework/tooling: Fiber Domain: notification service Logic challenge: N+1 query explosion Task type: multi_file_migration_repair Difficulty: har...
WithinUsAI/GOD_Coder_Complete_DataSet
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Bash Framework/tooling: GNU coreutils Domain: repo automation Logic challenge: rate-limit bypass Task type: backwards_compatible_redesign 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: Language: YAML Framework/tooling: Terraform Domain: team dashboard Logic challenge: mismatched API contract Task type: performance_bottleneck_patch Difficulty...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C47669: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m57513.py` and `test_m57513.py`. ```python # m57513.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C78766: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m82982.py` and `test_m82982.py`. ```python # m82982.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C10733: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m85441.py` and `test_m85441.py`. ```python # m85441.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C56766: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m88982.py` and `test_m88982.py`. ```python # m88982.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: Project stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Language: YAML Dependency challenge: memory leak in AST cache Task type: build_reproducibili...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C64594: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m35738.py` and `test_m35738.py`. ```python # m35738.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f07907(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m29701.py` with types and O(n) average. ```python # m29701.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: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: runtime_gc Scenario: multi-tenant event ingestion Domain focus: GPU serving Primary language: sql Difficulty: expert+ Scale/SLO: 1M msgs/min Component: component_yvevwnjy Constraints: assume adversarial inputs; validate everything, include performance model and limits, include security threat model (defensiv...
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: f1v_s...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of sre/observability for scenario: rate limiting gateway. Primary language: typescript. Difficulty: expert. Constraints: include tests or verification strategy, document performance characteristics, avoid undefined behavior and data races. Component: component_yvqgxhn. Assume...
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
Design a small, production-grade Python API for parsing. Requirements: define data models and interfaces, implement reference version, include tests. Constraints: must include type hints, must be streaming-friendly. Difficulty: easy. Provide helpful exceptions with actionable messages. Deliverable: corrected code and ...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of operating systems for scenario: feature flagging. Primary language: go. Difficulty: expert. Constraints: document performance characteristics, include invariants and failure modes, provide rollout and rollback guidance. Component: component_jzwwccw. Assume compliance requi...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f88959(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 `m84137.py` and `test_m84137.py`. *** Begin Patch *** Update File: m84137.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: SQL Framework/tooling: MySQL Domain: notification service Logic challenge: schema drift during deployment Task type: distributed_debug Difficulty: h...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of ml systems for scenario: inventory & ordering. Primary language: go. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, include invariants and failure modes, provide rollout and rollback guidance. Compone...
WithinUsAI/Elite_GOD_Coder_100k
Task type: lockfree_primitive Scenario: multi-tenant event ingestion Domain focus: query planning Primary language: cpp Difficulty: hard Scale/SLO: multi-region active-active Component: component_mffatrxk Constraints: include test vectors and fuzz strategy, include performance model and limits, include deterministic re...
WithinUsAI/Omega_Genesis_Coder_100k
Implement a mobile feature for document processing: background jobs. Target platform: mobile. Requirements: offline-safe behavior, UI state handling, and tests. Constraints: must be performant under load, must include documentation/comments, must be secure-by-default. Difficulty: hard. Assume 10k RPS peak traffic. Out...
WithinUsAI/GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C78167: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m59859.py` and `test_m59859.py`. ```python # m59859.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: Language: YAML Framework/tooling: Kubernetes Domain: team dashboard Logic challenge: async cancellation bug Task type: backwards_compatible_redesign Difficult...
WithinUsAI/GOD_Coder_Complete_DataSet
Implement a mobile feature for fintech: search + pagination. Target platform: mobile. Requirements: offline-safe behavior, UI state handling, and tests. Constraints: must include documentation/comments, must be performant under load, must be production-ready. Difficulty: expert. Assume schema evolves frequently; design...
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
Task type: network_protocol Scenario: identity and access Domain focus: program synthesis (safe) Primary language: rust Difficulty: hard Scale/SLO: p99 < 150ms Component: component_hckfnoyd Constraints: include performance model and limits, explicit contracts and invariants, include security threat model (defensive onl...
WithinUsAI/Omega_Genesis_Coder_100k
Optimize a Python workflow for CLI tooling. Requirements: provide an optimized implementation and a small benchmark harness. Constraints: must be streaming-friendly, must provide clear error messages, must be easy to extend, must avoid global state. Difficulty: easy. Handle empty inputs and malformed records gracefully...
WithinUsAI/python_GOD_coder_100k
Optimize while preserving behavior and order. ```python def f25785(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m32255.py` with types and O(n) average. ```python # m32255.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k