text
stringlengths
355
3.69k
source
stringclasses
6 values
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C85272: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m21944.py` and `test_m21944.py`. ```python # m21944.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Design CI/CD for a healthtech service delivering background jobs. Target platform: backend (Node.js). Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks. Constraints: must be production-ready, must include tests, must be easy to extend, must include type hints where applicable. Difficulty: e...
WithinUsAI/GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C75345: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m36565.py` and `test_m36565.py`. ```python # m36565.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: SQL Framework/tooling: SQLite Domain: repo automation Logic challenge: monorepo toolchain skew Task type: concurrency_fix Difficulty: medium Return...
WithinUsAI/GOD_Coder_Complete_DataSet
Build a data pipeline for a e-commerce product around rate limiting. Target platform: data (SQL + Python). Requirements: schema, ingestion, validation, backfills, and tests. Constraints: must be easy to extend, must avoid global state, must be production-ready, must be performant under load. Difficulty: medium. Assume ...
WithinUsAI/GOD_Coder_100k
Write pytest tests for `f09479`. ```python def f09479(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m58497 import f09479 def test_known(): assert f09479(3,4) == 25 def test_zero(): assert f09479(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 domain: team dashboard Implementation stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Software delivery problem: migration ordering failure ...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C83499: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m06423.py` and `test_m06423.py`. ```python # m06423.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: runtime_gc Scenario: rate limit gateway Domain focus: real-time scheduling Primary language: go Difficulty: hard Scale/SLO: 100k RPS peak Component: component_yxpjcxjb Constraints: assume adversarial inputs; validate everything, include deterministic replay plan, include performance model and limits, include...
WithinUsAI/Omega_Genesis_Coder_100k
Fix the bug and add pytest tests. ```python def f55550(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 `m93650.py` and `test_m93650.py`. *** Begin Patch *** Update File: m93650.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: TypeScript Framework/tooling: Next.js Domain: feature flag service Logic challenge: unsafe deserialization Task type: security_logic_interaction Dif...
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: ukxv02s8v0rr.py ...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Repository domain: artifact registry Primary language: C++ Framework/tooling: Catch2 Reported problem: dead-letter queue replay Task type: bug_fix Difficulty:...
WithinUsAI/GOD_Coder_Complete_DataSet
Debug and fix a subtle production bug related to file uploads in a developer tooling service. Target platform: ML (PyTorch + serving). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include clear error handling, must include tests, must include documentation/comments, must...
WithinUsAI/GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Rust Framework/tooling: Axum Domain: feature flag service Logic challenge: async cancellation bug Task type: concurrency_fix Difficulty: medium Ret...
WithinUsAI/GOD_Coder_Complete_DataSet
Design a production system for developer tooling supporting search + pagination. Target platform: infra (Docker + Kubernetes). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be performant under load, must include tests, must include clear error handling. Difficulty: har...
WithinUsAI/GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f68830(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f68830(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Provision infrastructure for a calendar/scheduling workload providing A/B experimentation. Target platform: backend (Python FastAPI). Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling. Constraints: must include clear error handling, must be secure-by-default, must include documentation/...
WithinUsAI/GOD_Coder_100k
Debug and fix a subtle production bug related to caching in a healthtech service. Target platform: mobile (iOS Swift). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include tests, must avoid global state, must include documentation/comments, must include clear error handl...
WithinUsAI/GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: a2utfc6laua.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C80706: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m52362.py` and `test_m52362.py`. ```python # m52362.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of networking for scenario: feature flagging. Primary language: go. Difficulty: expert. Constraints: make the interface contract explicit, provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, include invariants and failure modes, design for b...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of operating systems for scenario: payment processing. Primary language: go. Difficulty: medium. Constraints: design for backward compatibility and migrations, include invariants and failure modes, avoid undefined behavior and data races. Component: component_hqjvvfb. 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: Fix a bug and add tests. File: ca2mea.py ```pyt...
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: j5sj0o00g.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
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: search service Implementation stack: Rust, Axum, SQLx, Redis, Tokio, Docker Software delivery problem: unsafe deserialization Task type: archi...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f10053(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 `m58579.py` and `test_m58579.py`. *** Begin Patch *** Update File: m58579.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: ulh6x...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C04482: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m31114.py` and `test_m31114.py`. ```python # m31114.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: e5zbah.py ```pyt...
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: ujuzbqewviv.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of gpu compute for scenario: document indexing. Primary language: python. Difficulty: hard. Constraints: document performance characteristics, provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize. Component: component_utgkbox. Assume crash-onl...
WithinUsAI/Elite_GOD_Coder_100k
Task type: smt_constraint_model Scenario: graph query service Domain focus: program synthesis (safe) Primary language: smtlib Difficulty: expert Scale/SLO: 99.99% availability Component: component_ilbtecuz Constraints: include backward compatibility and migration plan, include security threat model (defensive only), in...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: compiler_frontend Scenario: feature-flag evaluation Domain focus: high-frequency trading systems (safe engineering) Primary language: typescript Difficulty: expert+ Scale/SLO: 100k RPS peak Component: component_rshydgcn Constraints: explicit contracts and invariants, assume adversarial inputs; validate every...
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 domain: artifact registry Implementation stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Software delivery problem: async cancellation bug T...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: compiler_backend_ir Scenario: job scheduler Domain focus: program synthesis (safe) Primary language: cpp Difficulty: expert Scale/SLO: 50 TB/day ingestion Component: component_trqwfwtx Constraints: include verification strategy, explicit contracts and invariants, assume adversarial inputs; validate everythin...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of distributed systems for scenario: chat messaging. Primary language: go. Difficulty: expert. Constraints: make the interface contract explicit, provide rollout and rollback guidance, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize. Co...
WithinUsAI/Elite_GOD_Coder_100k
Task type: gpu_serving_pipeline Scenario: document indexing pipeline Domain focus: kernel primitives Primary language: go Difficulty: expert Scale/SLO: 10k RPS peak Component: component_hlogkqac Constraints: include test vectors and fuzz strategy, include failure modes and recovery, avoid data races and undefined behav...
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: System domain: payments platform Stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker Cross-layer incident: mismatched API contract Task type: observabilit...
WithinUsAI/GOD_Coder_Complete_DataSet
Optimize while preserving behavior and order. ```python def f16126(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m88018.py` with types and O(n) average. ```python # m88018.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 f47453(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 `m06779.py` and `test_m06779.py`. *** Begin Patch *** Update File: m06779.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of gpu compute for scenario: job scheduler. Primary language: go. Difficulty: hard. Constraints: document performance characteristics, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance. Comp...
WithinUsAI/Elite_GOD_Coder_100k
Task type: compiler_frontend Scenario: job scheduler Domain focus: fault injection & chaos engineering Primary language: sql Difficulty: expert+ Scale/SLO: multi-region active-active Component: component_wtuijesr Constraints: include performance model and limits, explicit contracts and invariants, include deterministic...
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: 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: System domain: payments platform Stack: Rust, Axum, SQLx, Redis, Tokio, Docker Cross-layer incident: gRPC retry storm Task type: schema_contract_alignment Dif...
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: System domain: reporting engine Stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Cross-layer incident: invalid rollback sequence Task type: schema_co...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f68674(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 `m38382.py` and `test_m38382.py`. *** Begin Patch *** Update File: m38382.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Design a production system for content moderation supporting audit logs. Target platform: backend (Node.js). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be easy to extend, must be production-ready, must include tests. Difficulty: medium. Assume 10k RPS peak traffic. ...
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: Bash Framework/tooling: sed Domain: team dashboard Logic challenge: gRPC retry storm Task type: multi_service_security_patch Difficulty: hard Retur...
WithinUsAI/GOD_Coder_Complete_DataSet
Create a small, production-ready Python package for caching layer. Requirements: include module code, CLI entrypoint, logging, and a minimal pyproject.toml. Constraints: must include type hints, must be memory-efficient, must avoid global state, must handle Windows paths safely. Difficulty: easy. Include a small CLI ex...
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
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C98889: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m61453.py` and `test_m61453.py`. ```python # m61453.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
Debug and fix a subtle production bug related to A/B experimentation in a content moderation service. Target platform: data (SQL + Python). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include documentation/comments, must avoid global state, must include type hints where...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f01280(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 `m43040.py` and `test_m43040.py`. *** Begin Patch *** Update File: m43040.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: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Language: Java Dependency challenge: path traversal on downloads Task type: container_...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f75559(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 `m67937.py` and `test_m67937.py`. *** Begin Patch *** Update File: m67937.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of distributed systems for scenario: payment processing. Primary language: python. Difficulty: expert. Constraints: document performance characteristics, make the interface contract explicit, provide rollout and rollback guidance. Component: component_gcbozgk. Assume cold-sta...
WithinUsAI/Elite_GOD_Coder_100k
Implement caching for a fraud detection product. Target platform: mobile (Android Kotlin). Requirements: provide production-ready code, configuration, and tests. Constraints: must include documentation/comments, must be performant under load, must be observable (logs/metrics/traces), must include clear error handling. ...
WithinUsAI/GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C25082: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m17314.py` and `test_m17314.py`. ```python # m17314.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of compilers for scenario: chat messaging. Primary language: go. Difficulty: hard. Constraints: include invariants and failure modes, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance, design for backward compatibility and migrations, make ...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f67317(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 `m95331.py` and `test_m95331.py`. *** Begin Patch *** Update File: m95331.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f93928(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 `m27704.py` and `test_m27704.py`. *** Begin Patch *** Update File: m27704.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f55384(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m07912.py` with types and O(n) average. ```python # m07912.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: document processing API Stack: GitHub Actions, Docker Compose, Kubernetes, Terraform Cross-layer incident: JWT refresh token rotation Task type...
WithinUsAI/GOD_Coder_Complete_DataSet
Write a thorough test suite for a Python component used for log processing. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must be memory-efficient, must avoid global state, must include docstrings. Difficulty: easy. Avoid quadratic behavior on large inputs. Deliverable: correcte...
WithinUsAI/python_GOD_coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: JavaScript Framework/tooling: Playwright Domain: benchmark harness Logic challenge: schema drift during deployment Task type: edge_case_hardening Di...
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: System domain: artifact registry Stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker Cross-layer incident: invalid rollback sequence Task type: cache_cons...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C78992: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m98384.py` and `test_m98384.py`. ```python # m98384.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: Optimize while preserving behavior. File: n9z9d...
WithinUsAI/Royal_Ghost_Coder_501k
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: must be easy to extend, must include docstrings, must include tests. Difficulty: hard. Include a small CLI example if relevant...
WithinUsAI/python_GOD_coder_100k
Debug and fix a subtle production bug related to analytics pipeline in a education service. Target platform: backend (Node.js). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be easy to extend, must avoid global state, must be secure-by-default. Difficulty: expert. 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: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of databases for scenario: edge sync. Primary language: go. Difficulty: expert. Constraints: include tests or verification strategy, document performance characteristics, assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, provide rollout ...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of sre/observability for scenario: event ingestion. Primary language: python. Difficulty: hard. Constraints: include tests or verification strategy, include invariants and failure modes, design for backward compatibility and migrations, avoid undefined behavior and data races...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f82156(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 `m40308.py` and `test_m40308.py`. *** Begin Patch *** Update File: m40308.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
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 provide clear error messages, must include type hints, stdlib-only, must include docstrings. Difficulty: hard. Guarantee determi...
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: jzyx7vxra8h.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f01830(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 `m71690.py` and `test_m71690.py`. *** Begin Patch *** Update File: m71690.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f28967(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m61281.py` with types and O(n) average. ```python # m61281.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
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: Project stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Language: Go Dependency challenge: schema drift during deployment Task type: build_rep...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C41292: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m95484.py` and `test_m95484.py`. ```python # m95484.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
Design a production system for enterprise SaaS supporting webhooks. Target platform: backend (Node.js). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be production-ready, must include type hints where applicable, must include documentation/comments. Difficulty: hard. A...
WithinUsAI/GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: Airflow, dbt, DuckDB, MinIO, pytest Language: Go Dependency challenge: stale cache invalidation Task type: lockfile_repair Difficulty: medium ...
WithinUsAI/GOD_Coder_Complete_DataSet
Improve typing and robustness of a Python module used for ETL pipelines. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: must include type hints, must avoid global state. Difficulty: hard. Ensure the API is testable via dependency injection. Deliverable: API ...
WithinUsAI/python_GOD_coder_100k
Write pytest tests for `f63002`. ```python def f63002(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m23286 import f63002 def test_known(): assert f63002(3,4) == 25 def test_zero(): assert f63002(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: Go Framework/tooling: net/http Domain: model serving gateway Logic challenge: CI failures after dependency upgrade Task type: transaction_integrity_...
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: g9gpig.py ```pyt...
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: pzv0f0zt.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C93519: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m37963.py` and `test_m37963.py`. ```python # m37963.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for file synchronization. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must be easy to extend, must include docstrings, must avoid global state, stdlib-only. Difficulty: hard. Guarantee deterministic output ordering. D...
WithinUsAI/python_GOD_coder_100k
Implement idempotent payments for a fintech product. Target platform: ML (scikit + batch). Requirements: provide production-ready code, configuration, and tests. Constraints: must avoid global state, must include type hints where applicable, must be observable (logs/metrics/traces), must include tests. Difficulty: easy...
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: phas9ps09p3.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f73825(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m81975.py` with types and O(n) average. ```python # m81975.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k