text
stringlengths
355
3.69k
source
stringclasses
6 values
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 CI/CD for a content moderation service delivering idempotent payments. Target platform: infra (Terraform). Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks. Constraints: must avoid global state, must include tests, must include documentation/comments. Difficulty: easy. Assume strict...
WithinUsAI/GOD_Coder_100k
Design CI/CD for a logistics service delivering caching. Target platform: data (SQL + Python). Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks. Constraints: must include tests, must be performant under load, must include type hints where applicable, must be observable (logs/metrics/traces...
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: l0cq4dbxm22.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Design CI/CD for a enterprise SaaS service delivering role-based access control. Target platform: data (SQL + Python). Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks. Constraints: must include documentation/comments, must include tests, must be observable (logs/metrics/traces). Difficult...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f74817(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 `m67831.py` and `test_m67831.py`. *** Begin Patch *** Update File: m67831.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: System domain: developer platform Stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Cross-layer incident: timezone bug in reporting Task type: observabilit...
WithinUsAI/GOD_Coder_Complete_DataSet
Design and implement an algorithm for rate limiting. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must handle Windows paths safely, must include docstrings. Difficulty: hard. Ensure the API is testable via dependency injection. Deliverable: corrected...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of edge/IoT for scenario: multi-tenant SaaS. Primary language: go. Difficulty: medium. Constraints: assume untrusted inputs; validate and sanitize, include invariants and failure modes, document performance characteristics, make the interface contract explicit. Component: com...
WithinUsAI/Elite_GOD_Coder_100k
Implement an ML engineering workflow for healthtech focusing on analytics pipeline. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must be performant under load, must include type hints where applicable, must includ...
WithinUsAI/GOD_Coder_100k
Task type: distributed_algorithm Scenario: multi-tenant event ingestion Domain focus: consensus & replication Primary language: go Difficulty: expert Scale/SLO: 99.99% availability Component: component_vhugcwzv Constraints: include deterministic replay plan, include failure modes and recovery, include security threat m...
WithinUsAI/Omega_Genesis_Coder_100k
Write a thorough test suite for a Python component used for report generation. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must avoid global state, must be easy to extend. Difficulty: hard. Handle empty inputs and malformed records gracefully. Deliverable: production-ready ref...
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: Go Framework/tooling: Gin Domain: benchmark harness Logic challenge: rate-limit bypass Task type: edge_case_hardening Difficulty: medium Return a r...
WithinUsAI/GOD_Coder_Complete_DataSet
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Optimize while preserving behavior. File: kynwp...
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: qxn985.py ```pyt...
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: Python Framework/tooling: Django Domain: team dashboard Logic challenge: log redaction failure Task type: backwards_compatible_redesign Difficulty: ...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of databases for scenario: chat messaging. Primary language: python. Difficulty: hard. Constraints: include tests or verification strategy, document performance characteristics, make the interface contract explicit. Component: component_preqikd. Assume cold-start and memory l...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of compilers for scenario: rate limiting gateway. Primary language: bash. Difficulty: medium. Constraints: include tests or verification strategy, avoid undefined behavior and data races, include invariants and failure modes, make the interface contract explicit, assume untru...
WithinUsAI/Elite_GOD_Coder_100k
Fix a subtle bug in a Python module used for validation. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: stdlib-only, must be easy to extend, must provide clear error messages. Difficulty: medium. Avoid quadratic behavior on large inputs. Deliverable: API + refe...
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: Project domain: team dashboard Implementation stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Software delivery problem: multi-tenant access leak Ta...
WithinUsAI/GOD_Coder_Complete_DataSet
Design and implement an algorithm for caching layer. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must handle Windows paths safely, must be easy to extend, must include tests, stdlib-only. Difficulty: easy. Provide helpful exceptions with actionable m...
WithinUsAI/python_GOD_coder_100k
Task type: static_analyzer Scenario: job scheduler Domain focus: cryptography engineering (defensive) Primary language: bash Difficulty: expert Scale/SLO: p99 < 50ms Component: component_fhlbujgy Constraints: include security threat model (defensive only), avoid data races and undefined behavior, include deterministic ...
WithinUsAI/Omega_Genesis_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: notification service Implementation stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Software delivery problem: broken pagination cursor T...
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: Project domain: repo automation Implementation stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Software delivery problem: mismatched API contr...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: distributed_algorithm Scenario: feature-flag evaluation Domain focus: stream processing Primary language: bash Difficulty: expert+ Scale/SLO: p99 < 50ms Component: component_nnmrnhxm Constraints: include backward compatibility and migration plan, include failure modes and recovery, include performance model ...
WithinUsAI/Omega_Genesis_Coder_100k
Implement an ML engineering workflow for e-commerce focusing on A/B experimentation. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must avoid global state, must include tests, must be performant under load. Difficu...
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: hknka...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f05613(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 `m43659.py` and `test_m43659.py`. *** Begin Patch *** Update File: m43659.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f95924(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f95924(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: Fix a bug and add tests. File: erlcp8i.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f15872(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f15872(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
Design CI/CD for a developer tooling service delivering multi-tenant isolation. Target platform: ML (PyTorch + serving). Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks. Constraints: must be secure-by-default, must include type hints where applicable, must include tests, must include docu...
WithinUsAI/GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f71808(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m24544.py` with types and O(n) average. ```python # m24544.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 rate limiting into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must be easy to extend, must include type hints, must include docstrings, must be memory-efficient. Difficulty: hard. Support both...
WithinUsAI/python_GOD_coder_100k
Design a small, production-grade Python API for event dispatching. Requirements: define data models and interfaces, implement reference version, include tests. Constraints: must handle Windows paths safely, must include tests. Difficulty: hard. Handle empty inputs and malformed records gracefully. Deliverable: product...
WithinUsAI/python_GOD_coder_100k
Debug and fix a subtle production bug related to idempotent payments in a customer support service. Target platform: ML (PyTorch + serving). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include clear error handling, must include documentation/comments, must include type ...
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: C# Framework/tooling: NUnit Domain: notification service Logic challenge: rate-limit bypass Task type: transaction_integrity_fix Difficulty: hard R...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f72161(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 `m96023.py` and `test_m96023.py`. *** Begin Patch *** Update File: m96023.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to analytics pipeline in a e-commerce service. Target platform: infra (Terraform). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be easy to extend, must be secure-by-default, must include clear error handling. Difficulty: easy...
WithinUsAI/GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: YAML Framework/tooling: Kubernetes Domain: data pipeline Logic challenge: unsafe deserialization Task type: distributed_debug Difficulty: hard Retu...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f37720(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 `m33960.py` and `test_m33960.py`. *** Begin Patch *** Update File: m33960.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f35877(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f35877(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: Project stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Language: Go Dependency challenge: invalid rollback sequence Task type: build_reproducibility_fix...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of realtime systems for scenario: chat messaging. Primary language: bash. Difficulty: expert. Constraints: include tests or verification strategy, design for backward compatibility and migrations, provide rollout and rollback guidance. Component: component_tvexkva. Assume 50k...
WithinUsAI/Elite_GOD_Coder_100k
Perform a code review for a enterprise SaaS PR implementing offline-first sync. Target platform: infra (Docker + Kubernetes). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must include tests, must be performant under load, must be easy to extend, must avoid global...
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: oxi_1xxt8.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: mechanized_spec Scenario: time-series metrics store Domain focus: model checking Primary language: lean Difficulty: expert Scale/SLO: p99 < 50ms Component: component_wfnyqzdv Constraints: include security threat model (defensive only), explicit contracts and invariants, include backward compatibility and mig...
WithinUsAI/Omega_Genesis_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: rfuw5r.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: YAML Framework/tooling: Docker Compose Domain: search service Logic challenge: dead-letter queue replay Task type: parser_validation_logic Difficult...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor an existing codebase in e-commerce to support idempotent payments cleanly. Target platform: infra (Docker + Kubernetes). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must be performant under load, must include type hints where applicable, must be production-...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of realtime systems for scenario: feature flagging. Primary language: rust. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance, include invariants and failure modes. Component: component_draodlm. Assume strict ...
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: System domain: feature flag service Stack: Airflow, dbt, DuckDB, MinIO, pytest Cross-layer incident: gRPC retry storm Task type: auth_session_repair Difficult...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C84861: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m37297.py` and `test_m37297.py`. ```python # m37297.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Design a production system for document processing supporting webhooks. Target platform: mobile (Android Kotlin). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must avoid global state, must include type hints where applicable, must be secure-by-default, must be easy to exte...
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: x4qp6_.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
Add a clear docstring and type hints to this function: ```python def f14565(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f14565(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
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 be memory-efficient, must include tests, must provide clear error messages. Difficulty: easy. Provide helpful exceptions with 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: Optimize while preserving behavior. File: ahw5b...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f96716(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 `m42388.py` and `test_m42388.py`. *** Begin Patch *** Update File: m42388.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: JavaScript Framework/tooling: Playwright Domain: benchmark harness Logic challenge: mismatched API contract Task type: backwards_compatible_redesign...
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: xxsil3_f60c.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: distributed_algorithm Scenario: real-time notification hub Domain focus: static analysis Primary language: python Difficulty: hard Scale/SLO: p99 < 50ms Component: component_hinytndx Constraints: assume adversarial inputs; validate everything, include verification strategy, explicit contracts and invariants,...
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: System domain: feature flag service Stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Cross-layer incident: log redaction failure Task type: cache_consiste...
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: TypeScript Framework/tooling: Next.js Domain: payments platform Logic challenge: schema drift during deployment Task type: algorithmic_correctness D...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C39479: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m56883.py` and `test_m56883.py`. ```python # m56883.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of sre/observability for scenario: edge sync. Primary language: rust. Difficulty: expert. Constraints: assume untrusted inputs; validate and sanitize, document performance characteristics, design for backward compatibility and migrations. Component: component_jndyanx. Assume ...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f18552(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 `m16936.py` and `test_m16936.py`. *** Begin Patch *** Update File: m16936.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: GitHub Actions, Docker Compose, Kubernetes, Terraform Language: Java Dependency challenge: CI failures after dependency upgrade Task type: buil...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of stream processing for scenario: multi-tenant SaaS. Primary language: go. Difficulty: expert. Constraints: design for backward compatibility and migrations, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize. Component: component_rjxhvwf...
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: t10g9...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f89096(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 `m12728.py` and `test_m12728.py`. *** Begin Patch *** Update File: m12728.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: System domain: job scheduler Stack: GitHub Actions, Docker Compose, Kubernetes, Terraform Cross-layer incident: rate-limit bypass Task type: schema_contract_a...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C91926: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m76302.py` and `test_m76302.py`. ```python # m76302.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f55252(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 `m65036.py` and `test_m65036.py`. *** Begin Patch *** Update File: m65036.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f19721(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f19721(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: Bash Framework/tooling: curl Domain: repo automation Logic challenge: optimistic locking conflict Task type: security_logic_interaction Difficulty: ...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: ml_system_design Scenario: time-series metrics store Domain focus: fault injection & chaos engineering Primary language: rust Difficulty: hard Scale/SLO: multi-region active-active Component: component_hmicbqum Constraints: include performance model and limits, include deterministic replay plan, include secu...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of stream processing for scenario: time-series metrics. Primary language: rust. Difficulty: expert. Constraints: include tests or verification strategy, design for backward compatibility and migrations, document performance characteristics, provide rollout and rollback guidan...
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: System domain: feature flag service Stack: Airflow, dbt, DuckDB, MinIO, pytest Cross-layer incident: idempotent retry design Task type: cache_consistency_patc...
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
Build an elite-grade solution in the domain of distributed systems for scenario: inventory & ordering. Primary language: rust. Difficulty: medium. Constraints: provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, design for backward compatibilit...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f29397(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 `m32771.py` and `test_m32771.py`. *** Begin Patch *** Update File: m32771.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for caching layer. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must be streaming-friendly, must be memory-efficient. Difficulty: medium. Provide helpful exceptions with actionable messages. Deliverable: implementation...
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
Perform a code review for a IoT telemetry PR implementing idempotent payments. Target platform: CI (GitHub Actions). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must include type hints where applicable, must be performant under load, must be observable (logs/met...
WithinUsAI/GOD_Coder_100k
Build a data pipeline for a e-commerce product around offline-first sync. Target platform: data (SQL + Python). Requirements: schema, ingestion, validation, backfills, and tests. Constraints: must be production-ready, must be observable (logs/metrics/traces), must be performant under load, must include clear error hand...
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: team dashboard Primary language: C++ Framework/tooling: Catch2 Reported problem: invalid rollback sequence Task type: repo_issue_patch Diff...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: sre_incident_sim Scenario: edge sync Domain focus: cryptography engineering (defensive) Primary language: bash Difficulty: expert Scale/SLO: 1M msgs/min Component: component_exuxibrb Constraints: explicit contracts and invariants, include verification strategy, assume adversarial inputs; validate everything,...
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: GitHub Actions, Docker Compose, Kubernetes, Terraform Language: SQL Dependency challenge: mismatched API contract Task type: cve_dependency_rem...
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
Write pytest tests for `f37929`. ```python def f37929(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m76847 import f37929 def test_known(): assert f37929(3,4) == 25 def test_zero(): assert f37929(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Implement an ML engineering workflow for e-commerce focusing on A/B experimentation. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must be easy to extend, must be production-ready, must include documentation/commen...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of stream processing for scenario: document indexing. Primary language: python. Difficulty: medium. Constraints: document performance characteristics, include tests or verification strategy, include invariants and failure modes, avoid undefined behavior and data races, make t...
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
Task type: perf_microarchitecture Scenario: rate limit gateway Domain focus: runtime systems Primary language: sql Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_bafbqmby Constraints: assume adversarial inputs; validate everything, include backward compatibility and migration plan, include secu...
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: Rust Framework/tooling: Tokio Domain: document processing API Logic challenge: multi-tenant access leak Task type: edge_case_hardening Difficulty: h...
WithinUsAI/GOD_Coder_Complete_DataSet