text
stringlengths
355
3.69k
source
stringclasses
6 values
Fix the bug and add pytest tests. ```python def f09008(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 `m44144.py` and `test_m44144.py`. *** Begin Patch *** Update File: m44144.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: System domain: reporting engine Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Cross-layer incident: mismatched API contract Task type: schem...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f57663(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 `m36809.py` and `test_m36809.py`. *** Begin Patch *** Update File: m36809.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: static_analyzer Scenario: multi-tenant event ingestion Domain focus: static analysis Primary language: sql Difficulty: expert+ Scale/SLO: p99 < 50ms Component: component_avwxsiqy Constraints: explicit contracts and invariants, assume adversarial inputs; validate everything, include test vectors and fuzz stra...
WithinUsAI/Omega_Genesis_Coder_100k
Design a production system for gaming supporting file uploads. Target platform: data (SQL + Python). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must avoid global state, must be production-ready, must be secure-by-default. Difficulty: expert. Assume mobile clients are occ...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f65741(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 `m37963.py` and `test_m37963.py`. *** Begin Patch *** Update File: m37963.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f97696(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f97696(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 sre/observability for scenario: feature flagging. Primary language: sql. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, make the interface contract explicit, include invariants and failure modes. Component: component_khbngbi. Assume crash-on...
WithinUsAI/Elite_GOD_Coder_100k
Write a thorough test suite for a Python component used for CLI tooling. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must be memory-efficient, must avoid global state, must provide clear error messages. Difficulty: hard. Handle empty inputs and malformed records gracefully. De...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of edge/IoT for scenario: inventory & ordering. Primary language: python. Difficulty: hard. Constraints: make the interface contract explicit, include tests or verification strategy, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrati...
WithinUsAI/Elite_GOD_Coder_100k
Task type: mechanized_spec Scenario: identity and access Domain focus: secure enclaves (defensive) Primary language: lean Difficulty: expert+ Scale/SLO: 10k RPS peak Component: component_csasxrqa Constraints: avoid data races and undefined behavior, include performance model and limits, include backward compatibility a...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor an existing codebase in social media to support event-driven workflows cleanly. Target platform: mobile (Android Kotlin). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must include type hints where applicable, must be easy to extend, must include documentatio...
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
Build an elite-grade solution in the domain of gpu compute for scenario: time-series metrics. Primary language: python. Difficulty: medium. Constraints: include invariants and failure modes, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations. Component: component_qpaikhm. A...
WithinUsAI/Elite_GOD_Coder_100k
Debug and fix a subtle production bug related to A/B experimentation in a customer support service. Target platform: infra (Terraform). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be secure-by-default, must be easy to extend, must avoid global state, must include docume...
WithinUsAI/GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: C++ Framework/tooling: CMake Domain: feature flag service Logic challenge: async cancellation bug Task type: multi_file_migration_repair Difficulty:...
WithinUsAI/GOD_Coder_Complete_DataSet
Design a small, production-grade Python API for parsing. Requirements: define data models and interfaces, implement reference version, include tests. Constraints: must include tests, must be streaming-friendly, stdlib-only, must avoid global state. Difficulty: hard. Guarantee deterministic output ordering. Deliverable...
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: Java Framework/tooling: Maven Domain: search service Logic challenge: broken pagination cursor Task type: concurrency_fix Difficulty: hard Return a...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f54584(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 `m93512.py` and `test_m93512.py`. *** Begin Patch *** Update File: m93512.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: Fix a bug and add tests. File: bie34sjwhkgl.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f72066(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f72066(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f19823(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 `m45689.py` and `test_m45689.py`. *** Begin Patch *** Update File: m45689.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: Fix a bug and add tests. File: rgpkrh4n7w.py ``...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of high-performance services for scenario: analytics pipeline. Primary language: sql. Difficulty: medium. Constraints: make the interface contract explicit, assume untrusted inputs; validate and sanitize, document performance characteristics, include invariants and failure mo...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of ml systems for scenario: rate limiting gateway. Primary language: rust. Difficulty: expert. Constraints: make the interface contract explicit, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance, avoid undefined behavior and data races. Co...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of compilers for scenario: rate limiting gateway. Primary language: rust. Difficulty: expert. Constraints: make the interface contract explicit, design for backward compatibility and migrations, include invariants and failure modes, provide rollout and rollback guidance. Comp...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of stream processing for scenario: payment processing. Primary language: go. Difficulty: medium. Constraints: document performance characteristics, avoid undefined behavior and data races, include tests or verification strategy, assume untrusted inputs; validate and sanitize,...
WithinUsAI/Elite_GOD_Coder_100k
Task type: supply_chain_security Scenario: document indexing pipeline Domain focus: fault injection & chaos engineering Primary language: sql Difficulty: hard Scale/SLO: 10k RPS peak Component: component_lgoumcfp Constraints: include deterministic replay plan, include verification strategy, explicit contracts and invar...
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: xUnit Domain: artifact registry Logic challenge: optimistic locking conflict Task type: multi_file_migration_repair Difficulty...
WithinUsAI/GOD_Coder_Complete_DataSet
Add a clear docstring and type hints to this function: ```python def f38947(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f38947(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: JavaScript Framework/tooling: Jest Domain: document processing API Logic challenge: dead-letter queue replay Task type: cross_stack_outage_fix Diffi...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C27615: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m71355.py` and `test_m71355.py`. ```python # m71355.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
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: nt7h35vu.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: q0bc3h5lc.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f66322`. ```python def f66322(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m38046 import f66322 def test_known(): assert f66322(3,4) == 25 def test_zero(): assert f66322(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f39912(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 `m91416.py` and `test_m91416.py`. *** Begin Patch *** Update File: m91416.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: Fix a bug and add tests. File: cf8zyx21.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: benchmark harness Primary language: TypeScript Framework/tooling: Vitest Reported problem: CI failures after dependency upgrade Task type: ...
WithinUsAI/GOD_Coder_Complete_DataSet
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: xe8b5g.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Repository domain: repo automation Primary language: Bash Framework/tooling: GNU coreutils Reported problem: dead-letter queue replay Task type: code_review_f...
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
Build an elite-grade solution in the domain of compilers for scenario: inventory & ordering. Primary language: go. Difficulty: medium. Constraints: provide rollout and rollback guidance, design for backward compatibility and migrations, include tests or verification strategy, avoid undefined behavior and data races, as...
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: C++ Framework/tooling: STL Domain: data pipeline Logic challenge: stale cache invalidation Task type: transaction_integrity_fix Difficulty: hard Re...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: sre_incident_sim Scenario: streaming ETL Domain focus: GPU serving Primary language: typescript Difficulty: expert Scale/SLO: 10k RPS peak Component: component_yrjctkwj Constraints: include performance model and limits, include backward compatibility and migration plan, include security threat model (defensi...
WithinUsAI/Omega_Genesis_Coder_100k
Design CI/CD for a fintech service delivering idempotent payments. Target platform: infra (Terraform). Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks. Constraints: must include clear error handling, must include type hints where applicable, must be easy to extend, must be production-read...
WithinUsAI/GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C44310: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m41870.py` and `test_m41870.py`. ```python # m41870.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: System domain: notification service Stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Cross-layer incident: async cancellation bug Task type: full_stack_bu...
WithinUsAI/GOD_Coder_Complete_DataSet
Perform a code review for a healthtech PR implementing event-driven workflows. Target platform: CI (GitHub Actions). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must be observable (logs/metrics/traces), must be easy to extend, must include documentation/comments...
WithinUsAI/GOD_Coder_100k
Implement a concurrent Python solution for metrics aggregation. Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests. Constraints: must handle Windows paths safely, must be easy to extend, must include docstrings. Difficulty: expert. Handle empty inputs and malformed records g...
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: gh2qy5r6m6.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: Python Framework/tooling: FastAPI Domain: model serving gateway Logic challenge: path traversal on downloads Task type: transaction_integrity_fix Di...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: gpu_serving_pipeline Scenario: payment ledger Domain focus: data lineage & governance Primary language: rust Difficulty: expert+ Scale/SLO: p99 < 50ms Component: component_whpqiqsa Constraints: avoid data races and undefined behavior, assume adversarial inputs; validate everything, include performance model ...
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: oc54z...
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: Rust, Axum, SQLx, Redis, Tokio, Docker Software delivery problem: unsafe deserialization Task type:...
WithinUsAI/GOD_Coder_Complete_DataSet
Optimize while preserving behavior and order. ```python def f93542(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m70506.py` with types and O(n) average. ```python # m70506.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: Fix a bug and add tests. File: ptk4ovzl.py ```p...
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 be streaming-friendly, must be memory-efficient, must include tests. Difficulty: easy. Provide helpful exceptions with actionable messages. Deliverable: pr...
WithinUsAI/python_GOD_coder_100k
Implement a web feature for fintech: background jobs. Target platform: web (React + TypeScript). Requirements: accessible UI, API integration, and tests. Constraints: must be secure-by-default, must include tests, must include documentation/comments. Difficulty: easy. Assume 10k RPS peak traffic. Output: design + impl...
WithinUsAI/GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C13634: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m31818.py` and `test_m31818.py`. ```python # m31818.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: Optimize while preserving behavior. File: cn0h3...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C17626: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m55202.py` and `test_m55202.py`. ```python # m55202.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: Fix a bug and add tests. File: v5gvgx1fo2dt.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: Tokio Domain: notification service Logic challenge: migration ordering failure Task type: multi_file_migration_repair Diffic...
WithinUsAI/GOD_Coder_Complete_DataSet
Write pytest tests for `f59357`. ```python def f59357(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m37051 import f59357 def test_known(): assert f59357(3,4) == 25 def test_zero(): assert f59357(0,0) == 0 def test_property_nonne...
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 provide clear error messages, stdlib-only. Difficulty: expert. Support both Windows and POSIX paths correctly. Deliverable: production-ready reference solut...
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: hpocpvra.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C29753: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m09981.py` and `test_m09981.py`. ```python # m09981.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f59278(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f59278(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: rqmne7y.py ```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: YAML Framework/tooling: Kubernetes Domain: auth service Logic challenge: JWT refresh token rotation Task type: cross_stack_outage_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 stack: Rust, Axum, SQLx, Redis, Tokio, Docker Language: SQL Dependency challenge: unsafe deserialization Task type: migration_patch Difficulty: hard ...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of gpu compute for scenario: event ingestion. Primary language: go. Difficulty: expert. Constraints: assume untrusted inputs; validate and sanitize, include tests or verification strategy, avoid undefined behavior and data races, make the interface contract explicit. Componen...
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
Fix the bug and add pytest tests. ```python def f67554(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 `m38222.py` and `test_m38222.py`. *** Begin Patch *** Update File: m38222.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of realtime systems for scenario: chat messaging. Primary language: rust. Difficulty: medium. Constraints: assume untrusted inputs; validate and sanitize, include tests or verification strategy, make the interface contract explicit, avoid undefined behavior and data races, de...
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: Repository domain: notification service Primary language: TypeScript Framework/tooling: React Reported problem: unsafe deserialization Task type: api_endpoint...
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: iaopn28d.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C80675: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m36975.py` and `test_m36975.py`. ```python # m36975.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: SQL Framework/tooling: SQLite Domain: notification service Logic challenge: memory leak in AST cache Task type: state_machine_patch Difficulty: hard...
WithinUsAI/GOD_Coder_Complete_DataSet
Implement a concurrent Python solution for file synchronization. Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests. Constraints: must provide clear error messages, must include type hints, must include tests. Difficulty: expert. Support both Windows and POSIX paths correctl...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of distributed systems for scenario: document indexing. Primary language: rust. Difficulty: expert. Constraints: include invariants and failure modes, provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, 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: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f26716(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 `m32388.py` and `test_m32388.py`. *** Begin Patch *** Update File: m32388.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: glkng...
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 streaming-friendly, must include type hints. Difficulty: easy. Handle empty inputs and malformed records gracefully. ...
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: Python Framework/tooling: Django Domain: job scheduler Logic challenge: broken pagination cursor Task type: monorepo_toolchain_recovery Difficulty: ...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of operating systems for scenario: feature flagging. Primary language: bash. Difficulty: medium. Constraints: include invariants and failure modes, document performance characteristics, make the interface contract explicit. Component: component_bqzdyrn. Assume crash-only desi...
WithinUsAI/Elite_GOD_Coder_100k
Design CI/CD for a customer support service delivering real-time notifications. Target platform: web (React + TypeScript). Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks. Constraints: must be easy to extend, must be secure-by-default, must include clear error handling, must include type ...
WithinUsAI/GOD_Coder_100k
Write pytest tests for `f67071`. ```python def f67071(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m38153 import f67071 def test_known(): assert f67071(3,4) == 25 def test_zero(): assert f67071(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: TypeScript Framework/tooling: Node.js Domain: search service Logic challenge: gRPC retry storm Task type: multi_file_migration_repair Difficulty: ha...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of distributed systems for scenario: inventory & ordering. Primary language: bash. Difficulty: hard. Constraints: avoid undefined behavior and data races, make the interface contract explicit, provide rollout and rollback guidance, include invariants and failure modes, includ...
WithinUsAI/Elite_GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f40575(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m77225.py` with types and O(n) average. ```python # m77225.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Language: C# Dependency challenge: transaction boundary bug Task type: migration_patch Difficulty...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: kernel_syscall_design Scenario: multi-tenant event ingestion Domain focus: compiler toolchains Primary language: rust Difficulty: hard Scale/SLO: p99 < 50ms Component: component_dmapswnq Constraints: include failure modes and recovery, include deterministic replay plan, avoid data races and undefined behavio...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of realtime systems for scenario: chat messaging. Primary language: python. Difficulty: medium. Constraints: design for backward compatibility and migrations, make the interface contract explicit, avoid undefined behavior and data races, assume untrusted inputs; validate and ...
WithinUsAI/Elite_GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C44935: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m64995.py` and `test_m64995.py`. ```python # m64995.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: repo automation Implementation stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Software delivery problem: optimistic locking conflic...
WithinUsAI/GOD_Coder_Complete_DataSet