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
Add a clear docstring and type hints to this function: ```python def f06761(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f06761(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 log processing 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 include type hints, must be streaming-friendly. Difficulty: expert. Guarantee determinist...
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: khdlrvwu7lfn.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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
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 docstrings, must avoid global state, must handle Windows paths safely. Difficulty: easy. Support both Windows and POSIX paths correctly. Delive...
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 stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Language: Java Dependency challenge: monorepo toolchain skew Task type: build_reproducibility_fix...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: kernel_syscall_design Scenario: multi-tenant event ingestion Domain focus: constraint solving Primary language: rust Difficulty: hard Scale/SLO: 10k RPS peak Component: component_qpfybsfr Constraints: assume adversarial inputs; validate everything, include performance model and limits, explicit contracts 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: Repository domain: observability collector Primary language: SQL Framework/tooling: PostgreSQL Reported problem: race condition on worker shutdown Task type: ...
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 stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions Language: Go Dependency challenge: log redaction failure Task type: build_reprod...
WithinUsAI/GOD_Coder_Complete_DataSet
Write a thorough test suite for a Python component used for rate limiting. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must include docstrings, must include tests. Difficulty: easy. Include a small CLI example if relevant. Deliverable: API + reference implementation + tests. `...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C65670: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m66590.py` and `test_m66590.py`. ```python # m66590.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: Project domain: benchmark harness Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest Software delivery problem: invalid rollback sequence Task type: te...
WithinUsAI/GOD_Coder_Complete_DataSet
Write pytest tests for `f41147`. ```python def f41147(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m63021 import f41147 def test_known(): assert f41147(3,4) == 25 def test_zero(): assert f41147(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Implement idempotent payments for a document processing product. Target platform: web (React + TypeScript). Requirements: provide production-ready code, configuration, and tests. Constraints: must include documentation/comments, must include type hints where applicable, must avoid global state, must be production-ready...
WithinUsAI/GOD_Coder_100k
Task type: compiler_backend_ir Scenario: document indexing pipeline Domain focus: stream processing Primary language: cpp Difficulty: expert+ Scale/SLO: p99 < 150ms Component: component_wjltfhtw Constraints: explicit contracts and invariants, include failure modes and recovery, assume adversarial inputs; validate every...
WithinUsAI/Omega_Genesis_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: reporting engine Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest Software delivery problem: CI failures after dependency upgrade Tas...
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: zjomp...
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: YAML Framework/tooling: GitHub Actions Domain: search service Logic challenge: dead-letter queue replay Task type: backwards_compatible_redesign Dif...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: smt_constraint_model Scenario: rate limit gateway Domain focus: zero-downtime migrations Primary language: python Difficulty: expert Scale/SLO: 1M msgs/min Component: component_ffepgzue Constraints: include verification strategy, include deterministic replay plan, assume adversarial inputs; validate everythi...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: secure_architecture Scenario: feature-flag evaluation Domain focus: consensus & replication Primary language: bash Difficulty: hard Scale/SLO: 100k RPS peak Component: component_syhepgmc Constraints: include test vectors and fuzz strategy, avoid data races and undefined behavior, explicit contracts and invar...
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
Write a thorough test suite for a Python component used for validation. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must avoid global state, must include type hints. Difficulty: expert. Support both Windows and POSIX paths correctly. Deliverable: corrected code and verificatio...
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: qpkap...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor a Python module used for time series into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: stdlib-only, must include type hints, must handle Windows paths safely. Difficulty: medium. Avoid quadratic behavior on large inputs...
WithinUsAI/python_GOD_coder_100k
Implement a mobile feature for calendar/scheduling: idempotent payments. Target platform: mobile. Requirements: offline-safe behavior, UI state handling, and tests. Constraints: must be secure-by-default, must avoid global state, must include clear error handling, must include tests, must be easy to extend. Difficulty:...
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: u_3bx...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C33859: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m64143.py` and `test_m64143.py`. ```python # m64143.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f60779(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m94397.py` with types and O(n) average. ```python # m94397.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Design a small, production-grade Python API for metrics aggregation. Requirements: define data models and interfaces, implement reference version, include tests. Constraints: must include docstrings, must be streaming-friendly, must provide clear error messages. Difficulty: easy. Avoid quadratic behavior on large input...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C64972: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m58844.py` and `test_m58844.py`. ```python # m58844.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f75376(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f75376(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for metrics aggregation. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: stdlib-only, must handle Windows paths safely. Difficulty: easy. Avoid quadratic behavior on large inputs. Deliverable: API + reference implementati...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C82830: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m67910.py` and `test_m67910.py`. ```python # m67910.py from __future__ import annotations from datacla...
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 handle Windows paths safely, must provide clear error messages, stdlib-only, must include type hints. Difficulty: easy. Guarantee deterministic ...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: chat messaging. Primary language: python. Difficulty: medium. Constraints: provide rollout and rollback guidance, document performance characteristics, include invariants and failure modes, include tests or verification strate...
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: ibad92oap62.py `...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Rust Framework/tooling: Axum Domain: team dashboard Logic challenge: transaction boundary bug Task type: security_logic_interaction Difficulty: hard...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C48104: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m96008.py` and `test_m96008.py`. ```python # m96008.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize a Python workflow for configuration loading. Requirements: provide an optimized implementation and a small benchmark harness. Constraints: must avoid global state, stdlib-only. Difficulty: medium. Include a small CLI example if relevant. Deliverable: implementation + tests. Strategy: - Avoid repeated parsing;...
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: m2zi81ul3s.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: z0gd3...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of databases for scenario: payment processing. Primary language: rust. Difficulty: medium. Constraints: provide rollout and rollback guidance, design for backward compatibility and migrations, make the interface contract explicit. Component: component_owreeth. Assume cold-sta...
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: wl2ze...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to role-based access control in a content moderation service. Target platform: ML (PyTorch + serving). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be observable (logs/metrics/traces), must avoid global state, must include te...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of realtime systems for scenario: inventory & ordering. Primary language: bash. Difficulty: expert. Constraints: avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, make the interface contract explicit, include tests or verification strate...
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: yayazr9sr.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f73844(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f73844(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: lnzudfm63sh.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f01042(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 `m43006.py` and `test_m43006.py`. *** Begin Patch *** Update File: m43006.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of stream processing for scenario: edge sync. Primary language: python. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance, avoid undefined behavior and data races. Component: component_ijzdpht. Assume 50k RPS ...
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
Refactor a Python module used for parsing into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must include docstrings, stdlib-only, must be streaming-friendly, must be easy to extend. Difficulty: easy. Provide helpful exceptions w...
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: YAML Framework/tooling: Kubernetes Domain: team dashboard Logic challenge: multi-tenant access leak Task type: performance_bottleneck_patch Difficul...
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: j6q5y...
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 databases for scenario: multi-tenant SaaS. Primary language: bash. Difficulty: medium. Constraints: provide rollout and rollback guidance, include invariants and failure modes, assume untrusted inputs; validate and sanitize, include tests or verification strategy, make the...
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: YAML Framework/tooling: Helm Domain: payments platform Logic challenge: slow cold start Task type: monorepo_toolchain_recovery Difficulty: hard Ret...
WithinUsAI/GOD_Coder_Complete_DataSet
Write pytest tests for `f11231`. ```python def f11231(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m73033 import f11231 def test_known(): assert f11231(3,4) == 25 def test_zero(): assert f11231(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: JavaScript Framework/tooling: Jest Domain: benchmark harness Logic challenge: idempotent retry design Task type: parser_validation_logic Difficulty:...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f78367(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 `m25481.py` and `test_m25481.py`. *** Begin Patch *** Update File: m25481.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of compilers for scenario: chat messaging. Primary language: bash. Difficulty: medium. Constraints: avoid undefined behavior and data races, design for backward compatibility and migrations, make the interface contract explicit. Component: component_yvihkhq. Assume 50k RPS an...
WithinUsAI/Elite_GOD_Coder_100k
Build a data pipeline for a fraud detection product around search + pagination. Target platform: data (SQL + Python). Requirements: schema, ingestion, validation, backfills, and tests. Constraints: must be secure-by-default, must include clear error handling, must include documentation/comments. Difficulty: easy. Assum...
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
Debug and fix a subtle production bug related to search + pagination in a IoT telemetry service. Target platform: web (React + TypeScript). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include tests, must include documentation/comments, must be observable (logs/metrics/t...
WithinUsAI/GOD_Coder_100k
Task type: smt_constraint_model Scenario: streaming ETL Domain focus: large-scale ML systems Primary language: smtlib Difficulty: expert+ Scale/SLO: 1M msgs/min Component: component_nzowwqzy Constraints: include security threat model (defensive only), assume adversarial inputs; validate everything, include deterministi...
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: C# Framework/tooling: NUnit Domain: developer platform Logic challenge: N+1 query explosion Task type: misleading_symptom_debug Difficulty: hard Re...
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: C# Framework/tooling: xUnit Domain: search service Logic challenge: dead-letter queue replay Task type: edge_case_hardening Difficulty: hard Return...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix a subtle bug in a Python module used for time series. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must be memory-efficient, must be easy to extend. Difficulty: hard. Avoid quadratic behavior on large inputs. Deliverable: production-ready reference soluti...
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: Optimize while preserving behavior. File: wafme...
WithinUsAI/Royal_Ghost_Coder_501k
Implement background jobs for a document processing product. Target platform: backend (Go). Requirements: provide production-ready code, configuration, and tests. Constraints: must include type hints where applicable, must be production-ready, must be secure-by-default, must include documentation/comments. Difficulty: ...
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: Java Framework/tooling: Spring Boot Domain: repo automation Logic challenge: idempotent retry design Task type: multi_service_security_patch Difficu...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C70229: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m74633.py` and `test_m74633.py`. ```python # m74633.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor a Python module used for file synchronization into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must be easy to extend, must include docstrings. Difficulty: expert. Handle empty inputs and malformed records gracefully. ...
WithinUsAI/python_GOD_coder_100k
Create a comprehensive test plan and automated tests for A/B experimentation in a gaming product. Target platform: infra (Docker + Kubernetes). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must be easy to extend, must be secure-by-default, must be performant under lo...
WithinUsAI/GOD_Coder_100k
Task type: compiler_backend_ir Scenario: rate limit gateway Domain focus: consensus & replication Primary language: cpp Difficulty: expert Scale/SLO: 100k RPS peak Component: component_fnhchnzf Constraints: explicit contracts and invariants, include security threat model (defensive only), avoid data races and undefined...
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: JavaScript Framework/tooling: Playwright Domain: document processing API Logic challenge: gRPC retry storm Task type: performance_bottleneck_patch D...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of distributed systems for scenario: multi-tenant SaaS. Primary language: python. Difficulty: hard. Constraints: include invariants and failure modes, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations. Component: component_qubniv...
WithinUsAI/Elite_GOD_Coder_100k
Task type: formal_proof_sketch Scenario: feature-flag evaluation Domain focus: zero-downtime migrations Primary language: go Difficulty: expert Scale/SLO: 10k RPS peak Component: component_xpqzegdz Constraints: include performance model and limits, include deterministic replay plan, include security threat model (defen...
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: Optimize while preserving behavior. File: z6xf4...
WithinUsAI/Royal_Ghost_Coder_501k
Design a production system for logistics supporting rate limiting. Target platform: mobile (iOS Swift). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be observable (logs/metrics/traces), must be performant under load, must include clear error handling. Difficulty: medi...
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: observability collector Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest Software delivery problem: N+1 query explosion Task type: ro...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f58764(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 `m51252.py` and `test_m51252.py`. *** Begin Patch *** Update File: m51252.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C67858: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m59066.py` and `test_m59066.py`. ```python # m59066.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f75869(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m82267.py` with types and O(n) average. ```python # m82267.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C26523: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m71271.py` and `test_m71271.py`. ```python # m71271.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Implement a concurrent Python solution for validation. Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests. Constraints: must handle Windows paths safely, must include tests. Difficulty: expert. Handle empty inputs and malformed records gracefully. Deliverable: production-re...
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: ti9k2n2.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: 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: ro8dbmjz8lgx.py ...
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 provide clear error messages, must be streaming-friendly. Difficulty: expert. Provide helpful exceptions with actionable messag...
WithinUsAI/python_GOD_coder_100k
Optimize while preserving behavior and order. ```python def f58792(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m51256.py` with types and O(n) average. ```python # m51256.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f73947(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f73947(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to event-driven workflows in a developer tooling service. Target platform: mobile (Android Kotlin). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be performant under load, must be production-ready, must include clear error han...
WithinUsAI/GOD_Coder_100k
Task type: storage_engine Scenario: payment ledger Domain focus: real-time scheduling Primary language: go Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_iaqbzfxu Constraints: include backward compatibility and migration plan, include test vectors and fuzz strategy, avoid data races and undefin...
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: Repository domain: artifact registry Primary language: TypeScript Framework/tooling: React Reported problem: monorepo toolchain skew Task type: repo_issue_pat...
WithinUsAI/GOD_Coder_Complete_DataSet