text
stringlengths
355
3.69k
source
stringclasses
6 values
Add observability for caching in a developer tooling system. Target platform: backend (Python FastAPI). Requirements: structured logs, metrics, tracing, dashboards, and alerting rules. Constraints: must be production-ready, must avoid global state, must include clear error handling. Difficulty: expert. Assume 10k RPS p...
WithinUsAI/GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f13146(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m01878.py` with types and O(n) average. ```python # m01878.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: static_analyzer Scenario: edge sync Domain focus: data lineage & governance Primary language: sql Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_qcvfhvlf Constraints: assume adversarial inputs; validate everything, include failure modes and recovery, include security threat model (de...
WithinUsAI/Omega_Genesis_Coder_100k
Write pytest tests for `f82978`. ```python def f82978(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m11854 import f82978 def test_known(): assert f82978(3,4) == 25 def test_zero(): assert f82978(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Improve typing and robustness of a Python module used for time series. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: stdlib-only, must be streaming-friendly. Difficulty: expert. Ensure the API is testable via dependency injection. Deliverable: production-re...
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: Bash Framework/tooling: sed Domain: job scheduler Logic challenge: timezone bug in reporting Task type: monorepo_toolchain_recovery Difficulty: expe...
WithinUsAI/GOD_Coder_Complete_DataSet
Write a thorough test suite for a Python component used for task scheduling. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must include docstrings, must be streaming-friendly, must be memory-efficient. Difficulty: expert. Include a small CLI example if relevant. Deliverable: API...
WithinUsAI/python_GOD_coder_100k
Create a comprehensive test plan and automated tests for multi-tenant isolation in a IoT telemetry product. Target platform: backend (Python FastAPI). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must be observable (logs/metrics/traces), must avoid global state, must...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f87909(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 `m83987.py` and `test_m83987.py`. *** Begin Patch *** Update File: m83987.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f60099(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 `m37157.py` and `test_m37157.py`. *** Begin Patch *** Update File: m37157.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: Bash Dependency challenge: dead-letter queue replay Task type: version_conflict_resolution Diffic...
WithinUsAI/GOD_Coder_Complete_DataSet
Implement an ML engineering workflow for developer tooling focusing on idempotent payments. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must be production-ready, must be easy to extend, must be observable (logs/m...
WithinUsAI/GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f96572(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m13796.py` with types and O(n) average. ```python # m13796.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize a Python workflow for task scheduling. Requirements: provide an optimized implementation and a small benchmark harness. Constraints: stdlib-only, must be memory-efficient, must include type hints. Difficulty: hard. Guarantee deterministic output ordering. Deliverable: production-ready reference solution. Stra...
WithinUsAI/python_GOD_coder_100k
Write pytest tests for `f74259`. ```python def f74259(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m82037 import f74259 def test_known(): assert f74259(3,4) == 25 def test_zero(): assert f74259(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Write secure, defensive Python code for data modeling. Requirements: input validation, safe file handling, prevent path traversal, include tests. Constraints: stdlib-only, must include type hints, must be memory-efficient, must be easy to extend. Difficulty: easy. Provide helpful exceptions with actionable messages. D...
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: Java Framework/tooling: Spring Boot Domain: reporting engine Logic challenge: race condition on worker shutdown Task type: state_machine_patch Diffi...
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
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: rok7am_.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C72636: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m20972.py` and `test_m20972.py`. ```python # m20972.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: distributed_algorithm Scenario: multi-tenant event ingestion Domain focus: distributed storage Primary language: go Difficulty: expert+ Scale/SLO: 1M msgs/min Component: component_vlkwwhsr Constraints: assume adversarial inputs; validate everything, include performance model and limits, include backward comp...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of edge/IoT for scenario: feature flagging. Primary language: python. Difficulty: hard. Constraints: include tests or verification strategy, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations. Component: component_wftnjjt. Assume ...
WithinUsAI/Elite_GOD_Coder_100k
Task type: storage_engine Scenario: feature-flag evaluation Domain focus: program synthesis (safe) Primary language: go Difficulty: expert+ Scale/SLO: p99 < 50ms Component: component_suimqyzc Constraints: include deterministic replay plan, avoid data races and undefined behavior, include test vectors and fuzz strategy,...
WithinUsAI/Omega_Genesis_Coder_100k
Write pytest tests for `f05869`. ```python def f05869(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m72267 import f05869 def test_known(): assert f05869(3,4) == 25 def test_zero(): assert f05869(0,0) == 0 def test_property_nonne...
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: x8smf...
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
Build an elite-grade solution in the domain of operating systems for scenario: chat messaging. Primary language: python. Difficulty: hard. Constraints: design for backward compatibility and migrations, avoid undefined behavior and data races, include tests or verification strategy. Component: component_qwukyvn. Assume ...
WithinUsAI/Elite_GOD_Coder_100k
Write a thorough test suite for a Python component used for ETL pipelines. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must be memory-efficient, must include type hints. Difficulty: medium. Include a small CLI example if relevant. Deliverable: corrected code and verification t...
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: SQL Framework/tooling: MySQL Domain: artifact registry Logic challenge: mismatched API contract Task type: concurrency_fix Difficulty: medium Retur...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor a Python module used for rate limiting into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must provide clear error messages, must be easy to extend. Difficulty: medium. Provide helpful exceptions with actionable messages...
WithinUsAI/python_GOD_coder_100k
Task type: query_optimizer Scenario: document indexing pipeline Domain focus: compiler toolchains Primary language: bash Difficulty: expert+ Scale/SLO: multi-region active-active Component: component_mxkbeilb Constraints: include deterministic replay plan, explicit contracts and invariants, assume adversarial inputs; v...
WithinUsAI/Omega_Genesis_Coder_100k
Perform a code review for a healthtech PR implementing multi-tenant isolation. Target platform: CI (GitHub Actions). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must include documentation/comments, must be production-ready, must be observable (logs/metrics/trace...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f38521(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 `m05503.py` and `test_m05503.py`. *** Begin Patch *** Update File: m05503.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: chat messaging. Primary language: go. Difficulty: medium. Constraints: avoid undefined behavior and data races, include tests or verification strategy, make the interface contract explicit, include invariants and failure modes...
WithinUsAI/Elite_GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: C++ Framework/tooling: CMake Domain: benchmark harness Logic challenge: partial checkpoint corruption Task type: multi_service_security_patch Diffic...
WithinUsAI/GOD_Coder_Complete_DataSet
Implement an ML engineering workflow for fintech focusing on offline-first sync. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must be secure-by-default, must include clear error handling, must be easy to extend. D...
WithinUsAI/GOD_Coder_100k
Build a data pipeline for a logistics product around caching. Target platform: data (SQL + Python). Requirements: schema, ingestion, validation, backfills, and tests. Constraints: must be observable (logs/metrics/traces), must be easy to extend, must avoid global state, must be production-ready, must be secure-by-defau...
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
Design and implement an algorithm for rate limiting. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must be streaming-friendly, must provide clear error messages. Difficulty: easy. Avoid quadratic behavior on large inputs. Deliverable: corrected code a...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f42268(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 `m20324.py` and `test_m20324.py`. *** Begin Patch *** Update File: m20324.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: exw6s5nkzcy.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of networking for scenario: payment processing. Primary language: go. Difficulty: medium. Constraints: make the interface contract explicit, include tests or verification strategy, provide rollout and rollback guidance, include invariants and failure modes, avoid undefined be...
WithinUsAI/Elite_GOD_Coder_100k
Implement an ML engineering workflow for calendar/scheduling focusing on file uploads. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must be performant under load, must be observable (logs/metrics/traces), must inc...
WithinUsAI/GOD_Coder_100k
Task type: lockfree_primitive Scenario: real-time notification hub Domain focus: observability platforms Primary language: cpp Difficulty: expert Scale/SLO: 100k RPS peak Component: component_pwciuiwo Constraints: include security threat model (defensive only), include verification strategy, include test vectors and fu...
WithinUsAI/Omega_Genesis_Coder_100k
Write secure, defensive Python code for event dispatching. Requirements: input validation, safe file handling, prevent path traversal, include tests. Constraints: must be memory-efficient, must include tests. Difficulty: hard. Provide helpful exceptions with actionable messages. Deliverable: production-ready reference...
WithinUsAI/python_GOD_coder_100k
Design and implement an algorithm for time series. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must handle Windows paths safely, must be easy to extend. Difficulty: easy. Handle empty inputs and malformed records gracefully. Deliverable: API + refer...
WithinUsAI/python_GOD_coder_100k
Design a small, production-grade Python API for metrics aggregation. Requirements: define data models and interfaces, implement reference version, include tests. Constraints: must be memory-efficient, must include docstrings, stdlib-only. Difficulty: medium. Ensure the API is testable via dependency injection. Deliver...
WithinUsAI/python_GOD_coder_100k
Task type: lockfree_primitive Scenario: document indexing pipeline Domain focus: large-scale ML systems Primary language: rust Difficulty: hard Scale/SLO: p99 < 150ms Component: component_zxauxuxb Constraints: include performance model and limits, include security threat model (defensive only), assume adversarial input...
WithinUsAI/Omega_Genesis_Coder_100k
Create a comprehensive test plan and automated tests for analytics pipeline in a developer tooling product. Target platform: infra (Docker + Kubernetes). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must include tests, must be easy to extend, must be performant under...
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: wgfex...
WithinUsAI/Royal_Ghost_Coder_501k
Create a small, production-ready Python package for configuration loading. Requirements: include module code, CLI entrypoint, logging, and a minimal pyproject.toml. Constraints: must be memory-efficient, stdlib-only, must include docstrings. Difficulty: hard. Avoid quadratic behavior on large inputs. Deliverable: impl...
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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f67511(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 `m81073.py` and `test_m81073.py`. *** Begin Patch *** Update File: m81073.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f26808`. ```python def f26808(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m89544 import f26808 def test_known(): assert f26808(3,4) == 25 def test_zero(): assert f26808(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Create a comprehensive test plan and automated tests for search + pagination in a social media product. Target platform: web (React + TypeScript). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must include documentation/comments, must include tests, must be production...
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: YAML Framework/tooling: Terraform Domain: observability collector Logic challenge: race condition on worker shutdown Task type: multi_service_securi...
WithinUsAI/GOD_Coder_Complete_DataSet
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Python Framework/tooling: Django Domain: data pipeline Logic challenge: dead-letter queue replay Task type: parser_validation_logic Difficulty: medi...
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: yxpcib.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: 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 stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions Language: YAML Dependency challenge: broken pagination cursor Task type: lockfil...
WithinUsAI/GOD_Coder_Complete_DataSet
Improve typing and robustness of a Python module used for CLI tooling. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: stdlib-only, must be memory-efficient. Difficulty: easy. Guarantee deterministic output ordering. Deliverable: API + reference implementatio...
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: stdlib-only, must include type hints. Difficulty: expert. Provide helpful exceptions with actionable messages. Deliverable: corrected code and v...
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: 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: qwvk8w2s1.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: Optimize while preserving behavior. File: oro4d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: storage_engine Scenario: feature-flag evaluation Domain focus: edge robotics (safe) Primary language: python Difficulty: expert Scale/SLO: p99 < 50ms Component: component_jsgddnrb Constraints: include backward compatibility and migration plan, include failure modes and recovery, include performance model and...
WithinUsAI/Omega_Genesis_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions Language: Python Dependency challenge: JWT refresh token rotation Task type: loc...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: compiler_backend_ir Scenario: multi-tenant event ingestion Domain focus: large-scale ML systems Primary language: rust Difficulty: hard Scale/SLO: 99.99% availability Component: component_xjzkklur Constraints: include performance model and limits, avoid data races and undefined behavior, include backward com...
WithinUsAI/Omega_Genesis_Coder_100k
Implement analytics pipeline for a developer tooling product. Target platform: data (SQL + Python). Requirements: provide production-ready code, configuration, and tests. Constraints: must be easy to extend, must be performant under load, must include type hints where applicable. Difficulty: hard. Assume GDPR-style del...
WithinUsAI/GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f01211(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m00173.py` with types and O(n) average. ```python # m00173.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Provision infrastructure for a calendar/scheduling workload providing idempotent payments. Target platform: backend (Python FastAPI). Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling. Constraints: must include clear error handling, must include documentation/comments, must be easy to e...
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: SQLx Domain: job scheduler Logic challenge: unsafe deserialization Task type: backwards_compatible_redesign Difficulty: expe...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of realtime systems for scenario: edge sync. Primary language: python. Difficulty: medium. Constraints: document performance characteristics, include invariants and failure modes, assume untrusted inputs; validate and sanitize, make the interface contract explicit, include te...
WithinUsAI/Elite_GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f83525(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m69075.py` with types and O(n) average. ```python # m69075.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Implement an ML engineering workflow for education focusing on idempotent payments. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must be production-ready, must include clear error handling, must be secure-by-defau...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f78108(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 `m25444.py` and `test_m25444.py`. *** Begin Patch *** Update File: m25444.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: 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
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: p3d86et83xdf.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for telemetry ingestion. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must be easy to extend, must provide clear error messages. Difficulty: easy. Avoid quadratic behavior on large inputs. Deliverable: corrected code a...
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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize a Python workflow for ETL pipelines. Requirements: provide an optimized implementation and a small benchmark harness. Constraints: must be memory-efficient, must handle Windows paths safely. Difficulty: hard. Ensure the API is testable via dependency injection. Deliverable: API + reference implementation + te...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f39798(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 `m77114.py` and `test_m77114.py`. *** Begin Patch *** Update File: m77114.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: Repository domain: team dashboard Primary language: YAML Framework/tooling: Terraform Reported problem: stale cache invalidation Task type: bug_fix Difficulty...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of stream processing for scenario: rate limiting gateway. Primary language: sql. Difficulty: expert. Constraints: assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, include tests or verification strategy, make the interface contract expli...
WithinUsAI/Elite_GOD_Coder_100k
Task type: secure_architecture Scenario: job scheduler Domain focus: runtime systems Primary language: bash Difficulty: hard Scale/SLO: 50 TB/day ingestion Component: component_wycggyco Constraints: include backward compatibility and migration plan, explicit contracts and invariants, include deterministic replay plan, ...
WithinUsAI/Omega_Genesis_Coder_100k
Fix the bug and add pytest tests. ```python def f67019(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 `m66717.py` and `test_m66717.py`. *** Begin Patch *** Update File: m66717.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: tla_state_machine Scenario: multi-tenant event ingestion Domain focus: constraint solving Primary language: tla+ Difficulty: hard Scale/SLO: 50 TB/day ingestion Component: component_ywcdpoaf Constraints: include verification strategy, include security threat model (defensive only), avoid data races and undef...
WithinUsAI/Omega_Genesis_Coder_100k
Optimize while preserving behavior and order. ```python def f01903(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m43129.py` with types and O(n) average. ```python # m43129.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: sz1iut5girxx.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f92539`. ```python def f92539(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m56077 import f92539 def test_known(): assert f92539(3,4) == 25 def test_zero(): assert f92539(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of distributed systems for scenario: edge sync. Primary language: python. Difficulty: expert. Constraints: assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, include invariants and failure modes, provide rollout and rollback guid...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Repository domain: model serving gateway Primary language: TypeScript Framework/tooling: Node.js Reported problem: gRPC retry storm Task type: code_review_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: Fix a bug and add tests. File: mynwohwt.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Write secure, defensive Python code for rate limiting. Requirements: input validation, safe file handling, prevent path traversal, include tests. Constraints: must include type hints, must be easy to extend, must avoid global state, must handle Windows paths safely. Difficulty: medium. Handle empty inputs and malformed...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of gpu compute for scenario: job scheduler. Primary language: bash. Difficulty: expert. Constraints: provide rollout and rollback guidance, avoid undefined behavior and data races, include tests or verification strategy, document performance characteristics, assume untrusted ...
WithinUsAI/Elite_GOD_Coder_100k
Design and implement an algorithm for file synchronization. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must avoid global state, must include type hints, must provide clear error messages. Difficulty: easy. Ensure the API is testable via dependency i...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f28427(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 `m04061.py` and `test_m04061.py`. *** Begin Patch *** Update File: m04061.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k