text
stringlengths
355
3.69k
source
stringclasses
6 values
Build a data pipeline for a IoT telemetry product around rate limiting. Target platform: data (SQL + Python). Requirements: schema, ingestion, validation, backfills, and tests. Constraints: must be observable (logs/metrics/traces), must include documentation/comments, must avoid global state, must be performant under l...
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
Refactor a Python module used for ETL pipelines into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must be streaming-friendly, must be easy to extend, must include type hints. Difficulty: easy. Include a small CLI example if rele...
WithinUsAI/python_GOD_coder_100k
Task type: smt_constraint_model Scenario: payment ledger Domain focus: stream processing Primary language: python Difficulty: hard Scale/SLO: 100k RPS peak Component: component_shfveahp Constraints: include deterministic replay plan, explicit contracts and invariants, include failure modes and recovery, include test ve...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C68402: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m12954.py` and `test_m12954.py`. ```python # m12954.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of operating systems for scenario: analytics pipeline. Primary language: bash. Difficulty: hard. Constraints: make the interface contract explicit, include tests or verification strategy, document performance characteristics. Component: component_dwvizkk. Assume compliance re...
WithinUsAI/Elite_GOD_Coder_100k
Optimize a Python workflow for rate limiting. Requirements: provide an optimized implementation and a small benchmark harness. Constraints: must provide clear error messages, stdlib-only, must be easy to extend, must be memory-efficient. Difficulty: hard. Guarantee deterministic output ordering. Deliverable: productio...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C65596: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m58892.py` and `test_m58892.py`. ```python # m58892.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: PostgreSQL Domain: job scheduler Logic challenge: transaction boundary bug Task type: parser_validation_logic Difficulty: har...
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: storage_engine Scenario: payment ledger Domain focus: constraint solving Primary language: python Difficulty: expert+ Scale/SLO: p99 < 150ms Component: component_iummkeko Constraints: include performance model and limits, include deterministic replay plan, include test vectors and fuzz strategy, avoid data r...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: compiler_backend_ir Scenario: graph query service Domain focus: GPU serving Primary language: rust Difficulty: hard Scale/SLO: 50 TB/day ingestion Component: component_jarlweec Constraints: include failure modes and recovery, include deterministic replay plan, include test vectors and fuzz strategy, avoid da...
WithinUsAI/Omega_Genesis_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f70179(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f70179(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f23829(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f23829(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
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: Gin Domain: repo automation Logic challenge: CI failures after dependency upgrade Task type: distributed_debug Difficulty: har...
WithinUsAI/GOD_Coder_Complete_DataSet
Add a clear docstring and type hints to this function: ```python def f09792(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f09792(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Secure-by-default implementation for real-time notifications in a fraud detection product. Target platform: ML (PyTorch + serving). Requirements: threat model, input validation, authz/authn guidance, safe storage, tests. Constraints: must include documentation/comments, must be production-ready, must be performant unde...
WithinUsAI/GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Repository domain: payments platform Primary language: Go Framework/tooling: net/http Reported problem: invalid rollback sequence Task type: code_review_fix D...
WithinUsAI/GOD_Coder_Complete_DataSet
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 include type hints, must be memory-efficient, must be streaming-friendly. Difficulty: medium. Support both Windows and POSIX paths correctly. Deliverabl...
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: yjmk59.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Write a thorough test suite for a Python component used for file synchronization. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must include docstrings, must be easy to extend, must avoid global state, stdlib-only. Difficulty: medium. Provide helpful exceptions with actionable me...
WithinUsAI/python_GOD_coder_100k
Add observability for search + pagination in a developer tooling system. Target platform: web (React + TypeScript). Requirements: structured logs, metrics, tracing, dashboards, and alerting rules. Constraints: must avoid global state, must be performant under load, must be secure-by-default. Difficulty: easy. Assume sc...
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: xmik0...
WithinUsAI/Royal_Ghost_Coder_501k
Create a comprehensive test plan and automated tests for multi-tenant isolation in a e-commerce product. Target platform: backend (Go). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must be performant under load, must be secure-by-default, must include type hints wher...
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 domain: feature flag service Implementation stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Software delivery problem: path traversal ...
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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f40897(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f40897(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f53816(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f53816(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: System domain: benchmark harness Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Cross-layer incident: build reproducibility failure Task type...
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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: schema_evolution_contracts Scenario: payment ledger Domain focus: secure enclaves (defensive) Primary language: python Difficulty: hard Scale/SLO: 1M msgs/min Component: component_pdyuguta Constraints: assume adversarial inputs; validate everything, include security threat model (defensive only), include per...
WithinUsAI/Omega_Genesis_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Bash Framework/tooling: awk Domain: notification service Logic challenge: JWT refresh token rotation Task type: misleading_symptom_debug Difficulty:...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of stream processing for scenario: job scheduler. Primary language: python. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, include invariants and failure modes, design for backward compatibility and migrations, 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
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Implement file uploads for a fraud detection product. Target platform: mobile (iOS Swift). Requirements: provide production-ready code, configuration, and tests. Constraints: must be observable (logs/metrics/traces), must include type hints where applicable, must avoid global state, must include tests, must be performa...
WithinUsAI/GOD_Coder_100k
Improve typing and robustness of a Python module used for telemetry ingestion. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: must include type hints, must include tests, must handle Windows paths safely. Difficulty: hard. Avoid quadratic behavior on large in...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C59871: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m43067.py` and `test_m43067.py`. ```python # m43067.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f59392(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m37056.py` with types and O(n) average. ```python # m37056.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 f77292(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 `m96756.py` and `test_m96756.py`. *** Begin Patch *** Update File: m96756.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
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: Node.js Domain: benchmark harness Logic challenge: gRPC retry storm Task type: parser_validation_logic Difficulty: har...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor a Python module used for data modeling 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 handle Windows paths safely, must include tests, must provide clear error messages. Difficulty: mediu...
WithinUsAI/python_GOD_coder_100k
Create a comprehensive test plan and automated tests for event-driven workflows in a document processing product. Target platform: backend (Node.js). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must be observable (logs/metrics/traces), must include tests, must inclu...
WithinUsAI/GOD_Coder_100k
Task type: query_optimizer Scenario: document indexing pipeline Domain focus: observability platforms Primary language: rust Difficulty: expert+ Scale/SLO: 10k RPS peak Component: component_roucsfun Constraints: avoid data races and undefined behavior, include performance model and limits, include deterministic replay ...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: distributed_algorithm Scenario: streaming ETL Domain focus: formal verification Primary language: bash Difficulty: expert+ Scale/SLO: 10k RPS peak Component: component_jestflxd Constraints: assume adversarial inputs; validate everything, include failure modes and recovery, include backward compatibility and ...
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
Design a production system for gaming supporting search + pagination. Target platform: backend (Node.js). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be production-ready, must include tests, must include clear error handling, must include type hints where applicable....
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of compilers for scenario: time-series metrics. Primary language: rust. Difficulty: hard. Constraints: design for backward compatibility and migrations, document performance characteristics, include tests or verification strategy, include invariants and failure modes, assume ...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of high-performance services for scenario: edge sync. Primary language: rust. Difficulty: medium. Constraints: include invariants and failure modes, assume untrusted inputs; validate and sanitize, make the interface contract explicit. Component: component_caeknvu. Assume cold...
WithinUsAI/Elite_GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C27122: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m94394.py` and `test_m94394.py`. ```python # m94394.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f53453`. ```python def f53453(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m64779 import f53453 def test_known(): assert f53453(3,4) == 25 def test_zero(): assert f53453(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of networking for scenario: time-series metrics. Primary language: python. Difficulty: medium. Constraints: include invariants and failure modes, include tests or verification strategy, design for backward compatibility and migrations. Component: component_mbbmkfp. Assume sch...
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: d95ad85c.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Implement a web feature for gaming: background jobs. Target platform: web (React + TypeScript). Requirements: accessible UI, API integration, and tests. Constraints: must be easy to extend, must include documentation/comments, must be performant under load, must include type hints where applicable, must be observable (...
WithinUsAI/GOD_Coder_100k
Fix a subtle bug in a Python module used for log processing. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must include docstrings, must provide clear error messages, must be easy to extend. Difficulty: medium. Ensure the API is testable via dependency injectio...
WithinUsAI/python_GOD_coder_100k
Write pytest tests for `f85096`. ```python def f85096(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m40728 import f85096 def test_known(): assert f85096(3,4) == 25 def test_zero(): assert f85096(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: 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: Optimize while preserving behavior. File: ptwe2...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f80226(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 `m54318.py` and `test_m54318.py`. *** Begin Patch *** Update File: m54318.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Create a comprehensive test plan and automated tests for rate limiting in a enterprise SaaS product. Target platform: ML (scikit + batch). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must avoid global state, must be observable (logs/metrics/traces), must be secure-b...
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: awk Domain: auth service Logic challenge: race condition on worker shutdown Task type: state_machine_patch Difficulty: hard ...
WithinUsAI/GOD_Coder_Complete_DataSet
Improve typing and robustness of a Python module used for task scheduling. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: must include tests, must include docstrings, must be easy to extend. Difficulty: medium. Provide helpful exceptions with actionable messa...
WithinUsAI/python_GOD_coder_100k
Fix a subtle bug in a Python module used for CLI tooling. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must include type hints, must include docstrings, must avoid global state. Difficulty: expert. Ensure the API is testable via dependency injection. Delivera...
WithinUsAI/python_GOD_coder_100k
Optimize a Python workflow for telemetry ingestion. Requirements: provide an optimized implementation and a small benchmark harness. Constraints: must be memory-efficient, must include tests, stdlib-only. Difficulty: easy. Guarantee deterministic output ordering. Deliverable: corrected code and verification tests. Str...
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
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: multi-tenant SaaS. Primary language: python. Difficulty: hard. Constraints: design for backward compatibility and migrations, make the interface contract explicit, include tests or verification strategy, provide rollout and ro...
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: Project domain: notification service Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest Software delivery problem: mismatched API contract Task type: r...
WithinUsAI/GOD_Coder_Complete_DataSet
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: mechanized_spec Scenario: job scheduler Domain focus: real-time scheduling Primary language: lean Difficulty: expert+ Scale/SLO: p99 < 150ms Component: component_svwehymo Constraints: include security threat model (defensive only), include verification strategy, include test vectors and fuzz strategy, avoid ...
WithinUsAI/Omega_Genesis_Coder_100k
Fix the bug and add pytest tests. ```python def f82074(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 `m54582.py` and `test_m54582.py`. *** Begin Patch *** Update File: m54582.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Go Framework/tooling: sqlc Domain: search service Logic challenge: multi-tenant access leak Task type: backwards_compatible_redesign Difficulty: har...
WithinUsAI/GOD_Coder_Complete_DataSet
Write pytest tests for `f62446`. ```python def f62446(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m51778 import f62446 def test_known(): assert f62446(3,4) == 25 def test_zero(): assert f62446(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: 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: Rust, Axum, SQLx, Redis, Tokio, Docker Cross-layer incident: rate-limit bypass Task type: observability_debug_fix Diff...
WithinUsAI/GOD_Coder_Complete_DataSet
Implement rate limiting for a gaming product. Target platform: backend (Go). Requirements: provide production-ready code, configuration, and tests. Constraints: must be easy to extend, must be secure-by-default, must include documentation/comments. Difficulty: hard. Assume mobile clients are occasionally offline. Outp...
WithinUsAI/GOD_Coder_100k
Debug and fix a subtle production bug related to caching in a gaming service. Target platform: backend (Node.js). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include documentation/comments, must avoid global state, must be easy to extend. Difficulty: expert. Assume sche...
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: uyyuztj2zl.py ``...
WithinUsAI/Royal_Ghost_Coder_501k
Design and implement an algorithm for parsing. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must include tests, must include docstrings, must include type hints. Difficulty: hard. Ensure the API is testable via dependency injection. Deliverable: API ...
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: atjlb...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f61940`. ```python def f61940(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m37420 import f61940 def test_known(): assert f61940(3,4) == 25 def test_zero(): assert f61940(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: Fix a bug and add tests. File: unx7oi26.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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Create a small, production-ready Python package for rate limiting. Requirements: include module code, CLI entrypoint, logging, and a minimal pyproject.toml. Constraints: must include docstrings, stdlib-only. Difficulty: medium. Support both Windows and POSIX paths correctly. Deliverable: API + reference implementation...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of operating systems for scenario: chat messaging. Primary language: rust. Difficulty: expert. Constraints: provide rollout and rollback guidance, include invariants and failure modes, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, in...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Design and implement an algorithm for report generation. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must provide clear error messages, must be easy to extend, must be streaming-friendly, stdlib-only. Difficulty: hard. Handle empty inputs and malform...
WithinUsAI/python_GOD_coder_100k
Optimize while preserving behavior and order. ```python def f94865(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m70695.py` with types and O(n) average. ```python # m70695.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: compiler_backend_ir Scenario: graph query service Domain focus: cryptography engineering (defensive) Primary language: rust Difficulty: expert+ Scale/SLO: multi-region active-active Component: component_lakusjyp Constraints: explicit contracts and invariants, include deterministic replay plan, avoid data rac...
WithinUsAI/Omega_Genesis_Coder_100k
Design and implement an algorithm for time series. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must be memory-efficient, must be easy to extend, must include type hints. Difficulty: expert. Guarantee deterministic output ordering. Deliverable: API +...
WithinUsAI/python_GOD_coder_100k
Design a production system for customer support supporting analytics pipeline. Target platform: ML (PyTorch + serving). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must include tests, must be production-ready, must be easy to extend. Difficulty: medium. Assume PII must be...
WithinUsAI/GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f93035(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m99005.py` with types and O(n) average. ```python # m99005.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor a Python module used for CLI tooling into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must include tests, must include docstrings, must include type hints, must handle Windows paths safely. Difficulty: medium. Include ...
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: qb2tz2p0qj3.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to background jobs in a calendar/scheduling service. Target platform: infra (Docker + Kubernetes). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include type hints where applicable, must include documentation/comments, must be...
WithinUsAI/GOD_Coder_100k