text
stringlengths
355
3.69k
source
stringclasses
6 values
Fix the bug and add pytest tests. ```python def f50002(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 `m64286.py` and `test_m64286.py`. *** Begin Patch *** Update File: m64286.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of networking for scenario: feature flagging. Primary language: rust. Difficulty: expert. Constraints: make the interface contract explicit, provide rollout and rollback guidance, include invariants and failure modes, document performance characteristics. Component: component...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: C# Framework/tooling: EF Core Domain: payments platform Logic challenge: schema drift during deployment Task type: multi_file_migration_repair Diffi...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: tla_state_machine Scenario: identity and access Domain focus: large-scale ML systems Primary language: tla+ Difficulty: expert Scale/SLO: 1M msgs/min Component: component_ehgcmyaf Constraints: include performance model and limits, include backward compatibility and migration plan, assume adversarial inputs; ...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of edge/IoT for scenario: time-series metrics. Primary language: rust. Difficulty: medium. Constraints: include tests or verification strategy, design for backward compatibility and migrations, make the interface contract explicit, include invariants and failure modes. Compon...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Provision infrastructure for a content moderation workload providing search + pagination. Target platform: backend (Python FastAPI). Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling. Constraints: must avoid global state, must be production-ready, must include tests, must be secure-by-d...
WithinUsAI/GOD_Coder_100k
Task type: network_protocol Scenario: real-time notification hub Domain focus: network protocols Primary language: bash Difficulty: expert+ Scale/SLO: p99 < 150ms Component: component_suzrnsgs Constraints: include deterministic replay plan, explicit contracts and invariants, include security threat model (defensive onl...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of distributed systems for scenario: feature flagging. Primary language: rust. Difficulty: expert. Constraints: avoid undefined behavior and data races, include tests or verification strategy, make the interface contract explicit. Component: component_srryrml. Assume crash-on...
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: hzi3_p.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to multi-tenant isolation in a fraud detection service. Target platform: ML (PyTorch + serving). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include tests, must avoid global state, must include clear error handling. Difficul...
WithinUsAI/GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: YAML Framework/tooling: GitHub Actions Domain: search service Logic challenge: migration ordering failure Task type: multi_file_migration_repair Dif...
WithinUsAI/GOD_Coder_Complete_DataSet
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to caching in a fraud detection service. Target platform: mobile (Android Kotlin). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be easy to extend, must include clear error handling, must be production-ready. Difficulty: mediu...
WithinUsAI/GOD_Coder_100k
Write secure, defensive Python code for validation. Requirements: input validation, safe file handling, prevent path traversal, include tests. Constraints: must include docstrings, must include tests. Difficulty: expert. Support both Windows and POSIX paths correctly. Deliverable: API + reference implementation + test...
WithinUsAI/python_GOD_coder_100k
Refactor a Python module used for validation into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must include tests, must provide clear error messages, must avoid global state. Difficulty: expert. 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: Fix a bug and add tests. File: r8f0tikou.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: Project domain: feature flag service Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest Software delivery problem: S3-compatible upload inconsistency T...
WithinUsAI/GOD_Coder_Complete_DataSet
Add a clear docstring and type hints to this function: ```python def f14570(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f14570(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: Optimize while preserving behavior. File: hrwug...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of stream processing for scenario: inventory & ordering. Primary language: bash. Difficulty: expert. Constraints: provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, include invariants and failure mod...
WithinUsAI/Elite_GOD_Coder_100k
Implement real-time notifications for a fintech product. Target platform: CI (GitHub Actions). Requirements: provide production-ready code, configuration, and tests. Constraints: must be performant under load, must include documentation/comments, must include clear error handling, must include tests. Difficulty: hard. ...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of databases for scenario: time-series metrics. Primary language: rust. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, make the interface contract explicit, avoid undefined behavior and data races, include invariants and failure modes. Componen...
WithinUsAI/Elite_GOD_Coder_100k
Fix a subtle bug in a Python module used for parsing. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must avoid global state, must be memory-efficient. Difficulty: hard. Guarantee deterministic output ordering. Deliverable: corrected code and verification tests...
WithinUsAI/python_GOD_coder_100k
Task type: sre_incident_sim Scenario: rate limit gateway Domain focus: observability platforms Primary language: bash Difficulty: hard Scale/SLO: 10k RPS peak Component: component_dykkvked Constraints: avoid data races and undefined behavior, explicit contracts and invariants, include deterministic replay plan, include...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: static_analyzer Scenario: payment ledger Domain focus: real-time scheduling Primary language: bash Difficulty: expert Scale/SLO: 50 TB/day ingestion Component: component_xgfdrepk Constraints: avoid data races and undefined behavior, include test vectors and fuzz strategy, include security threat model (defen...
WithinUsAI/Omega_Genesis_Coder_100k
Implement background jobs for a developer tooling product. Target platform: mobile (Android Kotlin). Requirements: provide production-ready code, configuration, and tests. Constraints: must include documentation/comments, must avoid global state, must be observable (logs/metrics/traces). Difficulty: easy. Assume strict...
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: l_sxx...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f87497(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f87497(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: yesk7cq.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
Task type: smt_constraint_model Scenario: graph query service Domain focus: formal verification Primary language: python Difficulty: expert Scale/SLO: 10k RPS peak Component: component_lzvdkxce Constraints: include performance model and limits, include backward compatibility and migration plan, include failure modes an...
WithinUsAI/Omega_Genesis_Coder_100k
Write pytest tests for `f75017`. ```python def f75017(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m96431 import f75017 def test_known(): assert f75017(3,4) == 25 def test_zero(): assert f75017(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f23846(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 `m31978.py` and `test_m31978.py`. *** Begin Patch *** Update File: m31978.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Implement file uploads for a healthtech product. Target platform: backend (Python FastAPI). Requirements: provide production-ready code, configuration, and tests. Constraints: must include documentation/comments, must be production-ready, must be observable (logs/metrics/traces), must include tests. Difficulty: hard. A...
WithinUsAI/GOD_Coder_100k
Implement a concurrent Python solution for time series. Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests. Constraints: must include tests, stdlib-only, must provide clear error messages, must include type hints. Difficulty: hard. Ensure the API is testable via dependency i...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C93173: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m53321.py` and `test_m53321.py`. ```python # m53321.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to real-time notifications in a developer tooling service. Target platform: backend (Go). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include type hints where applicable, must include tests, must be performant under load, mu...
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: sge2g9urbkz.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Secure-by-default implementation for search + pagination in a IoT telemetry product. Target platform: backend (Node.js). Requirements: threat model, input validation, authz/authn guidance, safe storage, tests. Constraints: must include type hints where applicable, must avoid global state, must be observable (logs/metri...
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
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: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Language: SQL Dependency challenge: transaction boundary bug Task type: build_reproducibilit...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: gpu_serving_pipeline Scenario: rate limit gateway Domain focus: compiler toolchains Primary language: python Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_fuisdcyy Constraints: include security threat model (defensive only), include failure modes and recovery, explicit contracts 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: Fix a bug and add tests. File: b3sqot7.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: 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 f06513(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f06513(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: distributed_algorithm Scenario: streaming ETL Domain focus: GPU serving Primary language: sql Difficulty: expert+ Scale/SLO: multi-region active-active Component: component_ztaepdiy Constraints: assume adversarial inputs; validate everything, include deterministic replay plan, include verification strategy, ...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of edge/IoT for scenario: job scheduler. Primary language: bash. Difficulty: expert. Constraints: include tests or verification strategy, document performance characteristics, design for backward compatibility and migrations. Component: component_odvgyvk. Assume cold-start an...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
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
Fix the bug and add pytest tests. ```python def f54232(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 `m79176.py` and `test_m79176.py`. *** Begin Patch *** Update File: m79176.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: auth service Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest Software delivery problem: async cancellation bug Task type: architectu...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C05030: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m77310.py` and `test_m77310.py`. ```python # m77310.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Write a thorough test suite for a Python component used for log processing. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must include docstrings, must include type hints, must include tests. Difficulty: expert. Ensure the API is testable via dependency injection. Deliverable: i...
WithinUsAI/python_GOD_coder_100k
Implement a web feature for enterprise SaaS: role-based access control. Target platform: web (React + TypeScript). Requirements: accessible UI, API integration, and tests. Constraints: must be secure-by-default, must avoid global state, must include documentation/comments. Difficulty: expert. Assume schema evolves freq...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f17158(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 `m59594.py` and `test_m59594.py`. *** Begin Patch *** Update File: m59594.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Repository domain: reporting engine Primary language: Go Framework/tooling: Gin Reported problem: unsafe deserialization Task type: repo_issue_patch Difficult...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C98930: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m07610.py` and `test_m07610.py`. ```python # m07610.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: data pipeline Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform Software delivery problem: idempotent retry design T...
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: vzel39.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: Fix a bug and add tests. File: jjp09aqy5.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: compiler_backend_ir Scenario: multi-tenant event ingestion Domain focus: runtime systems Primary language: cpp Difficulty: expert Scale/SLO: 100k RPS peak Component: component_oosixiqt Constraints: include security threat model (defensive only), include verification strategy, include deterministic replay pla...
WithinUsAI/Omega_Genesis_Coder_100k
Fix the bug and add pytest tests. ```python def f47256(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 `m49608.py` and `test_m49608.py`. *** Begin Patch *** Update File: m49608.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f40232`. ```python def f40232(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m77176 import f40232 def test_known(): assert f40232(3,4) == 25 def test_zero(): assert f40232(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: tla_state_machine Scenario: multi-tenant event ingestion Domain focus: stream processing Primary language: tla+ Difficulty: expert Scale/SLO: 99.99% availability Component: component_dxudacoz Constraints: include failure modes and recovery, include verification strategy, include security threat model (defens...
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: vsl1d...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f65376(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f65376(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of compilers for scenario: rate limiting gateway. Primary language: python. Difficulty: expert. Constraints: provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, include tests or verification strategy....
WithinUsAI/Elite_GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C28397: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m17569.py` and `test_m17569.py`. ```python # m17569.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of edge/IoT for scenario: feature flagging. Primary language: typescript. Difficulty: hard. Constraints: avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance. Component: component_gctguht. Assume 50k RP...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f59144(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 `m65592.py` and `test_m65592.py`. *** Begin Patch *** Update File: m65592.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f04124(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 `m57732.py` and `test_m57732.py`. *** Begin Patch *** Update File: m57732.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: Java Framework/tooling: Hibernate Domain: benchmark harness Logic challenge: partial checkpoint corruption Task type: monorepo_toolchain_recovery Di...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of operating systems for scenario: payment processing. Primary language: go. Difficulty: hard. Constraints: include invariants and failure modes, avoid undefined behavior and data races, make the interface contract explicit, assume untrusted inputs; validate and sanitize, des...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f11913(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 `m44559.py` and `test_m44559.py`. *** Begin Patch *** Update File: m44559.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: secure_architecture Scenario: streaming ETL Domain focus: secure enclaves (defensive) Primary language: python Difficulty: hard Scale/SLO: 99.99% availability Component: component_cvaltcbs Constraints: include verification strategy, include performance model and limits, assume adversarial inputs; validate ev...
WithinUsAI/Omega_Genesis_Coder_100k
Optimize while preserving behavior and order. ```python def f05486(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m86498.py` with types and O(n) average. ```python # m86498.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
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: juvxihgb2y.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: System domain: payments platform Stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Cross-layer incident: rate-limit bypass Task type: full_stack_bug_f...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: network_protocol Scenario: real-time notification hub Domain focus: stream processing Primary language: python Difficulty: expert Scale/SLO: 100k RPS peak Component: component_ulynugbo Constraints: include failure modes and recovery, include performance model and limits, include deterministic replay plan, as...
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: Java Framework/tooling: Hibernate Domain: team dashboard Logic challenge: S3-compatible upload inconsistency Task type: concurrency_fix Difficulty: ...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: query_optimizer Scenario: feature-flag evaluation Domain focus: data lineage & governance Primary language: python Difficulty: expert Scale/SLO: 1M msgs/min Component: component_btysroyn Constraints: include security threat model (defensive only), include backward compatibility and migration plan, avoid data...
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: SQL Framework/tooling: MySQL Domain: document processing API Logic challenge: timezone bug in reporting Task type: parser_validation_logic Difficult...
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: nszkdc.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f00140(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m00020.py` with types and O(n) average. ```python # m00020.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f84798(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m12114.py` with types and O(n) average. ```python # m12114.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Design and implement an algorithm for configuration loading. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must include tests, must be memory-efficient. Difficulty: easy. Handle empty inputs and malformed records gracefully. Deliverable: production-re...
WithinUsAI/python_GOD_coder_100k
Build a data pipeline for a calendar/scheduling product around background jobs. Target platform: data (SQL + Python). Requirements: schema, ingestion, validation, backfills, and tests. Constraints: must be easy to extend, must include clear error handling, must include documentation/comments, must be production-ready. ...
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: j5nnt...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: reporting engine Implementation stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Software delivery problem: monorepo toolchain ...
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 include docstrings, must include tests, must handle Windows paths safely. Difficulty: medium. Ensure the API is testable via dependency injection. ...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f49004(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 `m35572.py` and `test_m35572.py`. *** Begin Patch *** Update File: m35572.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Optimize while preserving behavior. File: cc4dj...
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: fg3ui51.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Implement an ML engineering workflow for IoT telemetry focusing on idempotent payments. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must be easy to extend, must be performant under load, must avoid global state, ...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of compilers for scenario: job scheduler. Primary language: sql. Difficulty: hard. Constraints: make the interface contract explicit, include tests or verification strategy, include invariants and failure modes. Component: component_uawkbuc. Assume partial network partitions ...
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: us5y85ztn.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Debug and fix a subtle production bug related to analytics pipeline in a fintech service. Target platform: backend (Python FastAPI). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be performant under load, must be production-ready, must include tests, must include type hin...
WithinUsAI/GOD_Coder_100k