text
stringlengths
355
3.69k
source
stringclasses
6 values
Optimize while preserving behavior and order. ```python def f97338(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m85334.py` with types and O(n) average. ```python # m85334.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
Fix the bug and add pytest tests. ```python def f49176(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 `m64168.py` and `test_m64168.py`. *** Begin Patch *** Update File: m64168.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: repo automation Primary language: Bash Framework/tooling: sed Reported problem: partial checkpoint corruption Task type: security_patch Dif...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: storage_engine Scenario: rate limit gateway Domain focus: kernel primitives Primary language: go Difficulty: expert Scale/SLO: p99 < 50ms Component: component_eqpxhfjx Constraints: include deterministic replay plan, explicit contracts and invariants, include security threat model (defensive only), include pe...
WithinUsAI/Omega_Genesis_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Optimize while preserving behavior. File: xncbu...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: secure_architecture Scenario: time-series metrics store Domain focus: data lineage & governance Primary language: sql Difficulty: expert+ Scale/SLO: 50 TB/day ingestion Component: component_ztywlvrt Constraints: include backward compatibility and migration plan, include deterministic replay plan, assume adve...
WithinUsAI/Omega_Genesis_Coder_100k
Design a production system for fraud detection supporting role-based access control. Target platform: ML (scikit + batch). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must include documentation/comments, must avoid global state, must be production-ready, must include type...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f09393(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 `m44199.py` and `test_m44199.py`. *** Begin Patch *** Update File: m44199.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: lockfree_primitive Scenario: real-time notification hub Domain focus: query planning Primary language: rust Difficulty: expert+ Scale/SLO: p99 < 50ms Component: component_stflwmbh Constraints: assume adversarial inputs; validate everything, avoid data races and undefined behavior, include deterministic repla...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of gpu compute for scenario: analytics pipeline. Primary language: python. Difficulty: medium. Constraints: provide rollout and rollback guidance, include tests or verification strategy, make the interface contract explicit, design for backward compatibility and migrations, a...
WithinUsAI/Elite_GOD_Coder_100k
Refactor an existing codebase in education to support event-driven workflows cleanly. Target platform: backend (Node.js). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must include tests, must be easy to extend, must be production-ready, 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: Fix a bug and add tests. File: fd5ddwx.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Write a thorough test suite for a Python component used for file synchronization. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must be memory-efficient, must be easy to extend. Difficulty: medium. Support both Windows and POSIX paths correctly. Deliverable: production-ready ref...
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: cn0wsszbb.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for configuration loading. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must be memory-efficient, must be easy to extend, must provide clear error messages. Difficulty: medium. Support both Windows and POSIX paths corre...
WithinUsAI/python_GOD_coder_100k
Create a comprehensive test plan and automated tests for A/B experimentation in a enterprise SaaS product. Target platform: backend (Go). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must include clear error handling, must be performant under load, must be secure-by-...
WithinUsAI/GOD_Coder_100k
Optimize a Python workflow for configuration loading. Requirements: provide an optimized implementation and a small benchmark harness. Constraints: stdlib-only, must avoid global state, must include tests, must handle Windows paths safely. Difficulty: easy. Provide helpful exceptions with actionable messages. Delivera...
WithinUsAI/python_GOD_coder_100k
Task type: perf_microarchitecture Scenario: graph query service Domain focus: constraint solving Primary language: python Difficulty: expert Scale/SLO: 50 TB/day ingestion Component: component_fjebgcxu Constraints: include security threat model (defensive only), avoid data races and undefined behavior, include backward...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor a Python module used for metrics aggregation into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: stdlib-only, must avoid global state, must be streaming-friendly, must provide clear error messages. Difficulty: medium. Ens...
WithinUsAI/python_GOD_coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of ml systems for scenario: multi-tenant SaaS. Primary language: go. Difficulty: hard. Constraints: include tests or verification strategy, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, document performance characteristics. ...
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: itjeu0cwpsa8.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of sre/observability for scenario: chat messaging. Primary language: go. Difficulty: medium. Constraints: make the interface contract explicit, avoid undefined behavior and data races, provide rollout and rollback guidance. Component: component_ltbtxfp. Assume strict auditabi...
WithinUsAI/Elite_GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f86336(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m98048.py` with types and O(n) average. ```python # m98048.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: 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: vjiet...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f69601(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 `m09943.py` and `test_m09943.py`. *** Begin Patch *** Update File: m09943.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of distributed systems for scenario: document indexing. Primary language: python. Difficulty: medium. Constraints: assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, avoid undefined behavior and data races, provide rollout and ro...
WithinUsAI/Elite_GOD_Coder_100k
Task type: supply_chain_security Scenario: graph query service Domain focus: program synthesis (safe) Primary language: typescript Difficulty: expert Scale/SLO: 1M msgs/min Component: component_fyndfmyx Constraints: assume adversarial inputs; validate everything, include failure modes and recovery, avoid data races and...
WithinUsAI/Omega_Genesis_Coder_100k
Fix a subtle bug in a Python module used for rate limiting. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must include docstrings, must handle Windows paths safely. Difficulty: medium. Avoid quadratic behavior on large inputs. Deliverable: implementation + tes...
WithinUsAI/python_GOD_coder_100k
Write secure, defensive Python code for log processing. Requirements: input validation, safe file handling, prevent path traversal, include tests. Constraints: must avoid global state, stdlib-only. Difficulty: hard. Avoid quadratic behavior on large inputs. Deliverable: API + reference implementation + tests. ```pytho...
WithinUsAI/python_GOD_coder_100k
Optimize while preserving behavior and order. ```python def f81335(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m25905.py` with types and O(n) average. ```python # m25905.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: mechanized_spec Scenario: time-series metrics store Domain focus: runtime systems Primary language: lean Difficulty: expert+ Scale/SLO: multi-region active-active Component: component_jnzvcype Constraints: include deterministic replay plan, explicit contracts and invariants, include security threat model (de...
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: CMake Domain: feature flag service Logic challenge: monorepo toolchain skew Task type: cross_stack_outage_fix Difficulty: har...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C47030: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m11310.py` and `test_m11310.py`. ```python # m11310.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f52672`. ```python def f52672(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m36096 import f52672 def test_known(): assert f52672(3,4) == 25 def test_zero(): assert f52672(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Provision infrastructure for a healthtech workload providing caching. Target platform: data (SQL + Python). Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling. Constraints: must be performant under load, must include tests, must avoid global state, must be production-ready, must be obser...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of distributed systems for scenario: analytics pipeline. Primary language: python. Difficulty: medium. Constraints: include tests or verification strategy, include invariants and failure modes, design for backward compatibility and migrations, document performance characteris...
WithinUsAI/Elite_GOD_Coder_100k
Task type: network_protocol Scenario: real-time notification hub Domain focus: network protocols Primary language: python Difficulty: expert Scale/SLO: 100k RPS peak Component: component_pjhlqljd Constraints: include performance model and limits, include security threat model (defensive only), include failure modes and...
WithinUsAI/Omega_Genesis_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions Language: TypeScript Dependency challenge: rate-limit bypass Task type: migratio...
WithinUsAI/GOD_Coder_Complete_DataSet
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of operating systems for scenario: multi-tenant SaaS. Primary language: python. Difficulty: expert. Constraints: provide rollout and rollback guidance, design for backward compatibility and migrations, make the interface contract explicit. Component: component_ebxwejf. Assume...
WithinUsAI/Elite_GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: feature flag service Implementation stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Software delivery problem: rate-limit bypass Task typ...
WithinUsAI/GOD_Coder_Complete_DataSet
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: arzdmmr0_.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Implement rate limiting for a developer tooling product. Target platform: data (SQL + Python). Requirements: provide production-ready code, configuration, and tests. Constraints: must be secure-by-default, must be observable (logs/metrics/traces), must be production-ready, must include type hints where applicable. Diff...
WithinUsAI/GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Bash Framework/tooling: GNU coreutils Domain: artifact registry Logic challenge: timezone bug in reporting Task type: monorepo_toolchain_recovery Di...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: tla_state_machine Scenario: real-time notification hub Domain focus: high-frequency trading systems (safe engineering) Primary language: tla+ Difficulty: expert Scale/SLO: 99.99% availability Component: component_nlsntpmy Constraints: include backward compatibility and migration plan, assume adversarial inpu...
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: DuckDB Domain: developer platform Logic challenge: streaming timeout handling Task type: parser_validation_logic Difficulty: ...
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: System domain: model serving gateway Stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Cross-layer incident: monorepo toolchain skew Task type: full_stack_...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: lockfree_primitive Scenario: identity and access Domain focus: zero-downtime migrations Primary language: cpp Difficulty: hard Scale/SLO: 10k RPS peak Component: component_ycncjwsz Constraints: include performance model and limits, include failure modes and recovery, include security threat model (defensive ...
WithinUsAI/Omega_Genesis_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
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: wcxcf3v1.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: static_analyzer Scenario: payment ledger Domain focus: cryptography engineering (defensive) Primary language: typescript Difficulty: hard Scale/SLO: 99.99% availability Component: component_vhieknof Constraints: explicit contracts and invariants, include verification strategy, avoid data races and undefined ...
WithinUsAI/Omega_Genesis_Coder_100k
Write a thorough test suite for a Python component used for configuration loading. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must include docstrings, must be easy to extend, must be memory-efficient. Difficulty: easy. Guarantee deterministic output ordering. Deliverable: pro...
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: cev_b...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of networking for scenario: analytics pipeline. Primary language: sql. Difficulty: expert. Constraints: document performance characteristics, make the interface contract explicit, include tests or verification strategy. Component: component_hjtgjjt. Assume cold-start and memo...
WithinUsAI/Elite_GOD_Coder_100k
Task type: query_optimizer Scenario: edge sync Domain focus: large-scale ML systems Primary language: sql Difficulty: expert+ Scale/SLO: p99 < 150ms Component: component_mxvxodej Constraints: include security threat model (defensive only), include verification strategy, include performance model and limits, include det...
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: n2tknbeg.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: fvkfsx3lew7a.py ...
WithinUsAI/Royal_Ghost_Coder_501k
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 handle Windows paths safely, stdlib-only. Difficulty: medium. Include a small CLI example if relevant. Deliverable: production-ready reference solution. ``...
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
Debug and fix a subtle production bug related to role-based access control in a e-commerce service. Target platform: mobile (Android Kotlin). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must avoid global state, must be secure-by-default, must include documentation/comments. ...
WithinUsAI/GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f76280(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f76280(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: nue5hl.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f20266(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 `m60038.py` and `test_m60038.py`. *** Begin Patch *** Update File: m60038.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Secure-by-default implementation for audit logs in a logistics product. Target platform: infra (Terraform). Requirements: threat model, input validation, authz/authn guidance, safe storage, tests. Constraints: must include tests, must include type hints where applicable, must include documentation/comments, must avoid ...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: rate limiting gateway. Primary language: bash. Difficulty: expert. Constraints: document performance characteristics, include invariants and failure modes, make the interface contract explicit, avoid undefined behavior and dat...
WithinUsAI/Elite_GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C40945: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m87765.py` and `test_m87765.py`. ```python # m87765.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f88710(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f88710(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: tla_state_machine Scenario: identity and access Domain focus: model checking Primary language: tla+ Difficulty: expert Scale/SLO: p99 < 50ms Component: component_evojsqtb Constraints: assume adversarial inputs; validate everything, include verification strategy, avoid data races and undefined behavior, expli...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor an existing codebase in calendar/scheduling to support caching cleanly. Target platform: backend (Node.js). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must be easy to extend, must avoid global state, must be observable (logs/metrics/traces), must include d...
WithinUsAI/GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f13109(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f13109(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: SQL Framework/tooling: PostgreSQL Domain: artifact registry Logic challenge: partial checkpoint corruption Task type: parser_validation_logic Diffic...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor a Python module used for task scheduling 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 docstrings, must avoid global state, stdlib-only. Difficulty: hard. Handle empty inputs a...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f87029(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 `m98147.py` and `test_m98147.py`. *** Begin Patch *** Update File: m98147.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: search service Primary language: Rust Framework/tooling: Tokio Reported problem: multi-tenant access leak Task type: bug_fix Difficulty: ha...
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: job scheduler Implementation stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Software delivery problem: log redaction failure Task type: ...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C40324: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m56948.py` and `test_m56948.py`. ```python # m56948.py from __future__ import annotations from datacla...
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 handle Windows paths safely, must include tests, stdlib-only, must provide clear error messages. Difficulty: easy. Include a small CLI example if rele...
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: document processing API Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform Software delivery problem: log redaction f...
WithinUsAI/GOD_Coder_Complete_DataSet
Add a clear docstring and type hints to this function: ```python def f37952(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f37952(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C41340: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m03180.py` and `test_m03180.py`. ```python # m03180.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: compiler_frontend Scenario: payment ledger Domain focus: network protocols Primary language: typescript Difficulty: expert Scale/SLO: 100k RPS peak Component: component_btoavpse Constraints: include verification strategy, include test vectors and fuzz strategy, include failure modes and recovery, avoid data ...
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: vxerwnny.py ```p...
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: developer platform Primary language: JavaScript Framework/tooling: Express Reported problem: websocket reconnect storm Task type: api_endpo...
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: YAML Framework/tooling: GitHub Actions Domain: repo automation Logic challenge: invalid rollback sequence Task type: edge_case_hardening Difficulty:...
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: i6g2e...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: lockfree_primitive Scenario: payment ledger Domain focus: observability platforms Primary language: cpp Difficulty: expert+ Scale/SLO: 10k RPS peak Component: component_xsjeqyhf Constraints: include deterministic replay plan, include security threat model (defensive only), avoid data races and undefined beha...
WithinUsAI/Omega_Genesis_Coder_100k
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 include docstrings, must include type hints, must handle Windows paths safely, must be easy to extend. Difficulty: expert. Provide helpful exceptions wi...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f74492(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 `m96356.py` and `test_m96356.py`. *** Begin Patch *** Update File: m96356.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of sre/observability for scenario: job scheduler. Primary language: python. Difficulty: medium. Constraints: include invariants and failure modes, make the interface contract explicit, include tests or verification strategy, assume untrusted inputs; validate and sanitize, des...
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: sfjro7.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C15584: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m31968.py` and `test_m31968.py`. ```python # m31968.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of gpu compute for scenario: chat messaging. Primary language: python. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance, make the interface contract explicit, include tests or verification strategy. Component...
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: Repository domain: search service Primary language: Bash Framework/tooling: sed Reported problem: mismatched API contract Task type: security_patch Difficulty...
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: System domain: repo automation Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Cross-layer incident: unsafe deserialization Task type: schema_...
WithinUsAI/GOD_Coder_Complete_DataSet