text
stringlengths
355
3.69k
source
stringclasses
6 values
Fix the bug and add pytest tests. ```python def f25833(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 `m75119.py` and `test_m75119.py`. *** Begin Patch *** Update File: m75119.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for metrics aggregation. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: stdlib-only, must handle Windows paths safely. Difficulty: hard. Provide helpful exceptions with actionable messages. Deliverable: corrected code an...
WithinUsAI/python_GOD_coder_100k
Implement an ML engineering workflow for calendar/scheduling focusing on rate limiting. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must include documentation/comments, must be easy to extend, must be observable ...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of compilers for scenario: multi-tenant SaaS. Primary language: rust. Difficulty: hard. Constraints: include invariants and failure modes, document performance characteristics, avoid undefined behavior and data races, include tests or verification strategy, assume untrusted i...
WithinUsAI/Elite_GOD_Coder_100k
Fix a subtle bug in a Python module used for rate limiting. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must be streaming-friendly, must be easy to extend, must avoid global state, must be memory-efficient. Difficulty: easy. Ensure the API is testable via dep...
WithinUsAI/python_GOD_coder_100k
Write pytest tests for `f06238`. ```python def f06238(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m58034 import f06238 def test_known(): assert f06238(3,4) == 25 def test_zero(): assert f06238(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f80367`. ```python def f80367(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m11481 import f80367 def test_known(): assert f80367(3,4) == 25 def test_zero(): assert f80367(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f40805`. ```python def f40805(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m20115 import f40805 def test_known(): assert f40805(3,4) == 25 def test_zero(): assert f40805(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Design a production system for customer support supporting webhooks. Target platform: infra (Terraform). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be performant under load, must be secure-by-default, must be easy to extend, must include documentation/comments. Diff...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f62912(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 `m80416.py` and `test_m80416.py`. *** Begin Patch *** Update File: m80416.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of edge/IoT for scenario: rate limiting gateway. Primary language: python. Difficulty: medium. Constraints: provide rollout and rollback guidance, avoid undefined behavior and data races, design for backward compatibility and migrations, include invariants and failure modes. ...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f08215(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 `m29745.py` and `test_m29745.py`. *** Begin Patch *** Update File: m29745.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: sfuih...
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: v1m0r...
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: ye6x9hh5.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: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of compilers for scenario: edge sync. Primary language: go. Difficulty: expert. Constraints: document performance characteristics, provide rollout and rollback guidance, include invariants and failure modes. Component: component_akskpjq. Assume schema changes every sprint; mu...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f91251(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 `m55893.py` and `test_m55893.py`. *** Begin Patch *** Update File: m55893.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 domain: reporting engine Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest Software delivery problem: memory leak in AST cache Task type: arch...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: distributed_algorithm Scenario: multi-tenant event ingestion Domain focus: runtime systems Primary language: bash Difficulty: expert+ Scale/SLO: p99 < 50ms Component: component_mwyzdres Constraints: include deterministic replay plan, include verification strategy, include test vectors and fuzz strategy, expl...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: event ingestion. Primary language: rust. Difficulty: hard. Constraints: include tests or verification strategy, provide rollout and rollback guidance, avoid undefined behavior and data races. Component: component_dhboxed. Assu...
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: gwryl...
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: luu0332.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for time series. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must be streaming-friendly, must be easy to extend, must include type hints. Difficulty: hard. Support both Windows and POSIX paths correctly. Deliverable: ...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of networking for scenario: inventory & ordering. Primary language: rust. Difficulty: expert. Constraints: make the interface contract explicit, design for backward compatibility and migrations, document performance characteristics, avoid undefined behavior and data races. Co...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f73700(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 `m39100.py` and `test_m39100.py`. *** Begin Patch *** Update File: m39100.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f07398(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f07398(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: compiler_backend_ir Scenario: payment ledger Domain focus: network protocols Primary language: cpp Difficulty: hard Scale/SLO: 50 TB/day ingestion Component: component_nxxugpbg Constraints: include performance model and limits, explicit contracts and invariants, include deterministic replay plan, include bac...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C48625: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m19125.py` and `test_m19125.py`. ```python # m19125.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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f68762(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 `m66966.py` and `test_m66966.py`. *** Begin Patch *** Update File: m66966.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Implement caching for a healthtech product. Target platform: web (React + TypeScript). Requirements: provide production-ready code, configuration, and tests. Constraints: must be production-ready, must include documentation/comments, must be secure-by-default, must avoid global state, must be easy to extend. Difficulty...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of high-performance services for scenario: rate limiting gateway. Primary language: rust. Difficulty: expert. Constraints: include tests or verification strategy, provide rollout and rollback guidance, avoid undefined behavior and data races, design for backward compatibility...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f55673(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 `m22239.py` and `test_m22239.py`. *** Begin Patch *** Update File: m22239.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f30736(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 `m47248.py` and `test_m47248.py`. *** Begin Patch *** Update File: m47248.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Create a comprehensive test plan and automated tests for A/B experimentation in a developer tooling product. Target platform: ML (PyTorch + serving). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must be secure-by-default, must be easy to extend, must avoid global sta...
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 a data pipeline for a enterprise SaaS product around rate limiting. Target platform: data (SQL + Python). Requirements: schema, ingestion, validation, backfills, and tests. Constraints: must include documentation/comments, must be observable (logs/metrics/traces), must include clear error handling, must be easy t...
WithinUsAI/GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C08352: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m39104.py` and `test_m39104.py`. ```python # m39104.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
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: monorepo toolchain skew Task type: ca...
WithinUsAI/GOD_Coder_Complete_DataSet
Write pytest tests for `f37370`. ```python def f37370(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m33910 import f37370 def test_known(): assert f37370(3,4) == 25 def test_zero(): assert f37370(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f86468(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 `m40924.py` and `test_m40924.py`. *** Begin Patch *** Update File: m40924.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: dgz_km3.py ```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: Fix a bug and add tests. File: fmjtkhmd7waq.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Implement role-based access control for a fintech product. Target platform: backend (Go). Requirements: provide production-ready code, configuration, and tests. Constraints: must avoid global state, must include type hints where applicable, must include clear error handling. Difficulty: medium. Assume schema evolves fr...
WithinUsAI/GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Optimize while preserving behavior. File: ew9at...
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: z5gc2lczd.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: Fix a bug and add tests. File: ec83t7.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Design a production system for document processing supporting real-time notifications. Target platform: mobile (iOS Swift). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be performant under load, must include type hints where applicable, must be secure-by-default. Diff...
WithinUsAI/GOD_Coder_100k
Design a production system for logistics supporting A/B experimentation. Target platform: backend (Python FastAPI). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must include type hints where applicable, must be easy to extend, must include tests, must avoid global state, m...
WithinUsAI/GOD_Coder_100k
Write a thorough test suite for a Python component used for caching layer. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must be memory-efficient, must include docstrings, must be streaming-friendly, must be easy to extend. Difficulty: hard. Ensure the API is testable via depende...
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: iu5i5...
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
Build an elite-grade solution in the domain of distributed systems for scenario: time-series metrics. Primary language: python. Difficulty: medium. Constraints: assume untrusted inputs; validate and sanitize, include tests or verification strategy, avoid undefined behavior and data races, include invariants and failure...
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: Repository domain: document processing API Primary language: Rust Framework/tooling: Serde Reported problem: async cancellation bug Task type: api_endpoint_wo...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of distributed systems for scenario: feature flagging. Primary language: python. Difficulty: expert. Constraints: include tests or verification strategy, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, document performance cha...
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: x98r4bi0c.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
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
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: SQLx Domain: observability collector Logic challenge: multi-tenant access leak Task type: state_machine_patch Difficulty: ha...
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: Go Framework/tooling: testify Domain: data pipeline Logic challenge: dead-letter queue replay Task type: transaction_integrity_fix Difficulty: hard ...
WithinUsAI/GOD_Coder_Complete_DataSet
Write pytest tests for `f45551`. ```python def f45551(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m20793 import f45551 def test_known(): assert f45551(3,4) == 25 def test_zero(): assert f45551(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to analytics pipeline in a education service. Target platform: infra (Terraform). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be secure-by-default, must be production-ready, must include type hints where applicable, must be ...
WithinUsAI/GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f19234(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m88462.py` with types and O(n) average. ```python # m88462.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for validation. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must avoid global state, must be streaming-friendly, must include type hints. Difficulty: hard. Support both Windows and POSIX paths correctly. 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
Build an elite-grade solution in the domain of distributed systems for scenario: event ingestion. Primary language: python. Difficulty: medium. Constraints: include tests or verification strategy, document performance characteristics, avoid undefined behavior and data races. Component: component_ywuktcd. Assume schema ...
WithinUsAI/Elite_GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f84215(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f84215(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to background jobs in a e-commerce service. Target platform: backend (Go). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must avoid global state, must be production-ready, must be secure-by-default, must include clear error handlin...
WithinUsAI/GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Optimize while preserving behavior. File: r7s1o...
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: uodpf...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor a Python module used for task scheduling into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must handle Windows paths safely, must be easy to extend, must include type hints, must be streaming-friendly. Difficulty: hard....
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C18485: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m78345.py` and `test_m78345.py`. ```python # m78345.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: MySQL Domain: document processing API Logic challenge: transaction boundary bug Task type: transaction_integrity_fix Difficul...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of high-performance services for scenario: job scheduler. Primary language: python. Difficulty: hard. Constraints: include tests or verification strategy, include invariants and failure modes, document performance characteristics, make the interface contract explicit, assume ...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f86437(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 `m69491.py` and `test_m69491.py`. *** Begin Patch *** Update File: m69491.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Perform a code review for a calendar/scheduling PR implementing idempotent payments. Target platform: mobile (Android Kotlin). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must be production-ready, must include type hints where applicable, must be easy to extend,...
WithinUsAI/GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: System domain: notification service Stack: Airflow, dbt, DuckDB, MinIO, pytest Cross-layer incident: idempotent retry design Task type: full_stack_bug_fix 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: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: sre_incident_sim Scenario: payment ledger Domain focus: constraint solving Primary language: bash Difficulty: hard Scale/SLO: 100k RPS peak Component: component_waydqxlm Constraints: explicit contracts and invariants, include backward compatibility and migration plan, include test vectors and fuzz strategy, ...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of networking for scenario: chat messaging. Primary language: go. Difficulty: expert. Constraints: assume untrusted inputs; validate and sanitize, include invariants and failure modes, make the interface contract explicit, document performance characteristics, design for back...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f41919(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 `m77417.py` and `test_m77417.py`. *** Begin Patch *** Update File: m77417.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f05404(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 `m00772.py` and `test_m00772.py`. *** Begin Patch *** Update File: m00772.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: Airflow, dbt, DuckDB, MinIO, pytest Language: SQL Dependency challenge: path traversal on downloads Task type: build_reproducibility_fix Diffic...
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: wrpkg...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of databases for scenario: document indexing. Primary language: python. Difficulty: hard. Constraints: provide rollout and rollback guidance, design for backward compatibility and migrations, make the interface contract explicit, include tests or verification strategy. Compon...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Create a small, production-ready Python package for validation. Requirements: include module code, CLI entrypoint, logging, and a minimal pyproject.toml. Constraints: must be streaming-friendly, must include type hints. Difficulty: easy. Include a small CLI example if relevant. Deliverable: production-ready reference ...
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 multi-tenant isolation in a gaming service. Target platform: infra (Terraform). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be performant under load, must be secure-by-default, must avoid global state, must be production-...
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: r0v3q7u7hgo.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: network_protocol Scenario: graph query service Domain focus: real-time scheduling Primary language: rust Difficulty: hard Scale/SLO: 100k RPS peak Component: component_tcbriraj Constraints: include performance model and limits, avoid data races and undefined behavior, include deterministic replay plan, inclu...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: lockfree_primitive Scenario: time-series metrics store Domain focus: query planning Primary language: cpp Difficulty: expert Scale/SLO: 100k RPS peak Component: component_hqyxgxow Constraints: include failure modes and recovery, include performance model and limits, avoid data races and undefined behavior, i...
WithinUsAI/Omega_Genesis_Coder_100k
Fix the bug and add pytest tests. ```python def f37088(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 `m19584.py` and `test_m19584.py`. *** Begin Patch *** Update File: m19584.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: cjxkmx.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor an existing codebase in enterprise SaaS to support offline-first sync cleanly. Target platform: data (SQL + Python). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must be production-ready, must include tests, must include documentation/comments, must be secur...
WithinUsAI/GOD_Coder_100k
Task type: distributed_algorithm Scenario: time-series metrics store Domain focus: formal verification Primary language: rust Difficulty: expert Scale/SLO: p99 < 150ms Component: component_qsooqqba Constraints: include security threat model (defensive only), include test vectors and fuzz strategy, include verification ...
WithinUsAI/Omega_Genesis_Coder_100k