text
stringlengths
355
3.69k
source
stringclasses
6 values
Refactor a Python module used for time series into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must handle Windows paths safely, must avoid global state, must include tests, must provide clear error messages. Difficulty: medium...
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: 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
Implement offline-first sync for a fintech product. Target platform: web (React + TypeScript). Requirements: provide production-ready code, configuration, and tests. Constraints: must be observable (logs/metrics/traces), must include documentation/comments, must include type hints where applicable. Difficulty: expert. ...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f42189(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 `m06027.py` and `test_m06027.py`. *** Begin Patch *** Update File: m06027.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f07716(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 `m15388.py` and `test_m15388.py`. *** Begin Patch *** Update File: m15388.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: feature flag service Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Cross-layer incident: unsafe deserialization Task type: fu...
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: pl1uz...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of distributed systems for scenario: rate limiting gateway. Primary language: python. Difficulty: expert. Constraints: assume untrusted inputs; validate and sanitize, include tests or verification strategy, design for backward compatibility and migrations, make the interface ...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f51803(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 `m78829.py` and `test_m78829.py`. *** Begin Patch *** Update File: m78829.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: perf_microarchitecture Scenario: rate limit gateway Domain focus: formal verification Primary language: typescript Difficulty: expert+ Scale/SLO: 1M msgs/min Component: component_afdidcdo Constraints: include backward compatibility and migration plan, include test vectors and fuzz strategy, include performan...
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: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Language: C++ Dependency challenge: CI failures after dependency upgrade Task type: version_...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: perf_microarchitecture Scenario: feature-flag evaluation Domain focus: network protocols Primary language: sql Difficulty: expert Scale/SLO: 100k RPS peak Component: component_arnqfjex Constraints: include backward compatibility and migration plan, include failure modes and recovery, include verification str...
WithinUsAI/Omega_Genesis_Coder_100k
Write pytest tests for `f52931`. ```python def f52931(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m36133 import f52931 def test_known(): assert f52931(3,4) == 25 def test_zero(): assert f52931(0,0) == 0 def test_property_nonne...
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: lmw8egqs1wn.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: robust_e2e_testing Scenario: identity and access Domain focus: stream processing Primary language: bash Difficulty: hard Scale/SLO: 50 TB/day ingestion Component: component_hscexzxt Constraints: include failure modes and recovery, include performance model and limits, include security threat model (defensive...
WithinUsAI/Omega_Genesis_Coder_100k
Implement event-driven workflows for a calendar/scheduling product. Target platform: ML (scikit + batch). Requirements: provide production-ready code, configuration, and tests. Constraints: must be performant under load, must be production-ready, must include clear error handling. Difficulty: expert. Assume untrusted i...
WithinUsAI/GOD_Coder_100k
Refactor an existing codebase in social media to support caching cleanly. Target platform: mobile (Android Kotlin). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must be observable (logs/metrics/traces), must include tests, must be performant under load, must include ...
WithinUsAI/GOD_Coder_100k
Task type: compiler_frontend Scenario: payment ledger Domain focus: kernel primitives Primary language: rust Difficulty: hard Scale/SLO: 100k RPS peak Component: component_jzyfgiye Constraints: include failure modes and recovery, include test vectors and fuzz strategy, include backward compatibility and migration plan,...
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: Python Framework/tooling: Airflow Domain: document processing API Logic challenge: stale cache invalidation Task type: misleading_symptom_debug Diff...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of sre/observability for scenario: document indexing. Primary language: go. Difficulty: expert. Constraints: assume untrusted inputs; validate and sanitize, include invariants and failure modes, avoid undefined behavior and data races, provide rollout and rollback guidance, i...
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: TypeScript Framework/tooling: Express Domain: reporting engine Logic challenge: N+1 query explosion Task type: distributed_debug Difficulty: hard R...
WithinUsAI/GOD_Coder_Complete_DataSet
Write a thorough test suite for a Python component used for metrics aggregation. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must be streaming-friendly, must include docstrings. Difficulty: expert. Support both Windows and POSIX paths correctly. Deliverable: corrected code and...
WithinUsAI/python_GOD_coder_100k
Task type: static_analyzer Scenario: document indexing pipeline Domain focus: runtime systems Primary language: rust Difficulty: hard Scale/SLO: 100k RPS peak Component: component_auydifth Constraints: assume adversarial inputs; validate everything, include deterministic replay plan, avoid data races and undefined beha...
WithinUsAI/Omega_Genesis_Coder_100k
Write pytest tests for `f49247`. ```python def f49247(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m21321 import f49247 def test_known(): assert f49247(3,4) == 25 def test_zero(): assert f49247(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f78435(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f78435(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Create a small, production-ready Python package for report generation. Requirements: include module code, CLI entrypoint, logging, and a minimal pyproject.toml. Constraints: must provide clear error messages, must handle Windows paths safely. Difficulty: medium. Include a small CLI example if relevant. Deliverable: pr...
WithinUsAI/python_GOD_coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: YAML Framework/tooling: Helm Domain: artifact registry Logic challenge: CI failures after dependency upgrade Task type: multi_service_security_patch...
WithinUsAI/GOD_Coder_Complete_DataSet
Provision infrastructure for a enterprise SaaS workload providing background jobs. Target platform: mobile (Android Kotlin). Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling. Constraints: must include tests, must be observable (logs/metrics/traces), must be secure-by-default. Difficult...
WithinUsAI/GOD_Coder_100k
Write pytest tests for `f41845`. ```python def f41845(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m48835 import f41845 def test_known(): assert f41845(3,4) == 25 def test_zero(): assert f41845(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of databases for scenario: event ingestion. Primary language: rust. Difficulty: medium. Constraints: avoid undefined behavior and data races, make the interface contract explicit, document performance characteristics. Component: component_npfchbp. Assume compliance requires d...
WithinUsAI/Elite_GOD_Coder_100k
Design and implement an algorithm for validation. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must include docstrings, must provide clear error messages, must avoid global state. Difficulty: easy. Include a small CLI example if relevant. 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: Bash Framework/tooling: curl Domain: data pipeline Logic challenge: partial checkpoint corruption Task type: algorithmic_correctness Difficulty: med...
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: veezh...
WithinUsAI/Royal_Ghost_Coder_501k
Design a small, production-grade Python API for time series. Requirements: define data models and interfaces, implement reference version, include tests. Constraints: must avoid global state, must include docstrings, must provide clear error messages. Difficulty: easy. Support both Windows and POSIX paths correctly. D...
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: Repository domain: document processing API Primary language: Java Framework/tooling: Spring Boot Reported problem: websocket reconnect storm Task type: api_en...
WithinUsAI/GOD_Coder_Complete_DataSet
Build a data pipeline for a developer tooling product around multi-tenant isolation. Target platform: data (SQL + Python). Requirements: schema, ingestion, validation, backfills, and tests. Constraints: must include tests, must avoid global state, must be secure-by-default. Difficulty: easy. Assume untrusted input; val...
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: xuqa3...
WithinUsAI/Royal_Ghost_Coder_501k
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 be easy to extend, must provide clear error messages, must handle Windows paths safely, must avoid global state. Difficulty: med...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C78981: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m44537.py` and `test_m44537.py`. ```python # m44537.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Design a production system for content moderation supporting idempotent payments. Target platform: backend (Node.js). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must include type hints where applicable, must avoid global state, must be performant under load, must include...
WithinUsAI/GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Repository domain: team dashboard Primary language: Rust Framework/tooling: cargo test Reported problem: migration ordering failure Task type: feature_deliver...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C10988: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m70076.py` and `test_m70076.py`. ```python # m70076.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: runtime_gc Scenario: rate limit gateway Domain focus: fault injection & chaos engineering Primary language: sql Difficulty: expert Scale/SLO: p99 < 150ms Component: component_vxehpnbc Constraints: include deterministic replay plan, include security threat model (defensive only), avoid data races and undefine...
WithinUsAI/Omega_Genesis_Coder_100k
Write pytest tests for `f22705`. ```python def f22705(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m31815 import f22705 def test_known(): assert f22705(3,4) == 25 def test_zero(): assert f22705(0,0) == 0 def test_property_nonne...
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: Optimize while preserving behavior. File: v00np...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of compilers for scenario: job scheduler. Primary language: go. Difficulty: medium. Constraints: assume untrusted inputs; validate and sanitize, include tests or verification strategy, avoid undefined behavior and data races, include invariants and failure modes. Component: c...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of networking for scenario: feature flagging. Primary language: python. Difficulty: expert. Constraints: provide rollout and rollback guidance, avoid undefined behavior and data races, design for backward compatibility and migrations, assume untrusted inputs; validate and san...
WithinUsAI/Elite_GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f27066(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f27066(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: beyels.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Create a comprehensive test plan and automated tests for rate limiting in a document processing product. Target platform: data (SQL + Python). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must avoid global state, must include clear error handling, must include type h...
WithinUsAI/GOD_Coder_100k
Task type: runtime_gc Scenario: payment ledger Domain focus: program synthesis (safe) Primary language: sql Difficulty: expert+ Scale/SLO: 1M msgs/min Component: component_aaeeyqts Constraints: include failure modes and recovery, include deterministic replay plan, explicit contracts and invariants, include security thr...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of compilers for scenario: inventory & ordering. Primary language: python. Difficulty: hard. Constraints: include tests or verification strategy, make the interface contract explicit, document performance characteristics. Component: component_dakzfko. Assume partial network p...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of stream processing for scenario: edge sync. Primary language: typescript. Difficulty: medium. Constraints: make the interface contract explicit, include tests or verification strategy, include invariants and failure modes, assume untrusted inputs; validate and sanitize, doc...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Optimize while preserving behavior. File: muguq...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: GitHub Actions, Docker Compose, Kubernetes, Terraform Language: C# Dependency challenge: broken pagination cursor Task type: container_runtime_...
WithinUsAI/GOD_Coder_Complete_DataSet
Debug and fix a subtle production bug related to caching in a calendar/scheduling service. Target platform: data (SQL + Python). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include type hints where applicable, must be performant under load, must include clear error hand...
WithinUsAI/GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C16368: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m24336.py` and `test_m24336.py`. ```python # m24336.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f87609(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m41087.py` with types and O(n) average. ```python # m41087.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 f61671(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m65953.py` with types and O(n) average. ```python # m65953.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
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 avoid global state, must include docstrings, must be memory-efficient. Difficulty: hard. Handle empty inputs and malformed records gracefully. Del...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of ml systems for scenario: edge sync. Primary language: python. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, include invariants and failure modes, design for backward compatibility and migrations, make the interface contract explicit. Compon...
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: JavaScript Framework/tooling: Vite Domain: observability collector Logic challenge: CI failures after dependency upgrade Task type: state_machine_pa...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: lockfree_primitive Scenario: payment ledger Domain focus: cryptography engineering (defensive) Primary language: rust Difficulty: hard Scale/SLO: 99.99% availability Component: component_pwnpfbga Constraints: include verification strategy, assume adversarial inputs; validate everything, explicit contracts an...
WithinUsAI/Omega_Genesis_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: repo automation Implementation stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker Software delivery problem: log redaction failure Task 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: hn6to3jyp.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
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: niusfc.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Design CI/CD for a healthtech service delivering audit logs. Target platform: backend (Go). Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks. Constraints: must include type hints where applicable, must include tests, must be performant under load, must avoid global state, must be productio...
WithinUsAI/GOD_Coder_100k
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 provide clear error messages, must be memory-efficient, stdlib-only, must handle Windows paths safely. Difficulty: medium. ...
WithinUsAI/python_GOD_coder_100k
Improve typing and robustness of a Python module used for log processing. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: stdlib-only, must avoid global state, must handle Windows paths safely, must be memory-efficient. Difficulty: expert. Support both Windows...
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: Rust, Axum, SQLx, Redis, Tokio, Docker Software delivery problem: unsafe deserialization Task ty...
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: l9m7rcvv_fj.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: Fix a bug and add tests. File: c2hqc1rrovb1.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: Fix a bug and add tests. File: pwu_gr.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Implement multi-tenant isolation for a fraud detection product. Target platform: backend (Node.js). Requirements: provide production-ready code, configuration, and tests. Constraints: must be easy to extend, must include tests, must be observable (logs/metrics/traces). Difficulty: expert. Include rollback strategy. Ou...
WithinUsAI/GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f91158(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f91158(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Design and implement an algorithm for file synchronization. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must be memory-efficient, must handle Windows paths safely, must include type hints, must avoid global state. Difficulty: expert. Guarantee determ...
WithinUsAI/python_GOD_coder_100k
Optimize while preserving behavior and order. ```python def f81100(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m97300.py` with types and O(n) average. ```python # m97300.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: smt_constraint_model Scenario: identity and access Domain focus: zero-downtime migrations Primary language: python Difficulty: expert Scale/SLO: p99 < 50ms Component: component_ttczakqg Constraints: include security threat model (defensive only), include test vectors and fuzz strategy, include verification s...
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: t9rgxy.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: Optimize while preserving behavior. File: rpmmv...
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: JUnit Domain: team dashboard Logic challenge: broken pagination cursor Task type: algorithmic_correctness Difficulty: hard ...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of high-performance services for scenario: job scheduler. Primary language: typescript. Difficulty: expert. Constraints: design for backward compatibility and migrations, make the interface contract explicit, include tests or verification strategy, document performance charac...
WithinUsAI/Elite_GOD_Coder_100k
Task type: smt_constraint_model Scenario: feature-flag evaluation Domain focus: network protocols Primary language: smtlib Difficulty: expert Scale/SLO: 99.99% availability Component: component_gdpjsyhv Constraints: assume adversarial inputs; validate everything, include failure modes and recovery, include deterministi...
WithinUsAI/Omega_Genesis_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: payments platform Implementation stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker Software delivery problem: monorepo toolchain skew Ta...
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
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: Rust, Axum, SQLx, Redis, Tokio, Docker Software delivery problem: log redaction failure Task type: prd_to_p...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of ml systems for scenario: inventory & ordering. Primary language: typescript. Difficulty: expert. Constraints: include tests or verification strategy, document performance characteristics, provide rollout and rollback guidance, include invariants and failure modes, avoid un...
WithinUsAI/Elite_GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f04567(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f04567(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f41196(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m63028.py` with types and O(n) average. ```python # m63028.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f08509(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 `m29787.py` and `test_m29787.py`. *** Begin Patch *** Update File: m29787.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: developer platform Primary language: JavaScript Framework/tooling: Express Reported problem: slow cold start Task type: performance_patch D...
WithinUsAI/GOD_Coder_Complete_DataSet
Implement event-driven workflows for a logistics product. Target platform: CI (GitHub Actions). Requirements: provide production-ready code, configuration, and tests. Constraints: must be easy to extend, must include clear error handling, must be performant under load, must avoid global state. Difficulty: hard. Include...
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: jy9047yg2.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: Fix a bug and add tests. File: ynvscniuy_.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
Build an elite-grade solution in the domain of distributed systems for scenario: event ingestion. Primary language: go. Difficulty: expert. Constraints: make the interface contract explicit, include tests or verification strategy, design for backward compatibility and migrations, include invariants and failure modes, a...
WithinUsAI/Elite_GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f77479(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m82497.py` with types and O(n) average. ```python # m82497.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k