text
stringlengths
355
3.69k
source
stringclasses
6 values
Build an elite-grade solution in the domain of compilers for scenario: chat messaging. Primary language: rust. Difficulty: hard. Constraints: include invariants and failure modes, design for backward compatibility and migrations, provide rollout and rollback guidance, include tests or verification strategy, avoid undef...
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: System domain: data pipeline Stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions Cross-layer incident: optimistic locking conflict 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: Optimize while preserving behavior. File: p_wrz...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: sre_incident_sim Scenario: payment ledger Domain focus: secure enclaves (defensive) Primary language: go Difficulty: expert Scale/SLO: 100k RPS peak Component: component_wtwtdmej Constraints: include test vectors and fuzz strategy, include backward compatibility and migration plan, include deterministic repl...
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: wewmz...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: lockfree_primitive Scenario: job scheduler Domain focus: kernel primitives Primary language: rust Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_vhpbrpqx Constraints: include deterministic replay plan, include backward compatibility and migration plan, assume adversarial inputs; vali...
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: b18nob.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: thg5hod7x1_.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize a Python workflow for metrics aggregation. Requirements: provide an optimized implementation and a small benchmark harness. Constraints: must include tests, must handle Windows paths safely, must be memory-efficient, must include docstrings. Difficulty: easy. Guarantee deterministic output ordering. Deliverab...
WithinUsAI/python_GOD_coder_100k
Perform a code review for a IoT telemetry PR implementing webhooks. Target platform: mobile (Android Kotlin). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must include tests, must be production-ready, must be easy to extend, must include documentation/comments. D...
WithinUsAI/GOD_Coder_100k
Refactor a Python module used for caching layer into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must include type hints, must handle Windows paths safely. Difficulty: easy. Include a small CLI example if relevant. Deliverable...
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: k_vre...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C09782: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m39214.py` and `test_m39214.py`. ```python # m39214.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: distributed_algorithm Scenario: feature-flag evaluation Domain focus: constraint solving Primary language: go Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_hjcvohtr Constraints: include deterministic replay plan, assume adversarial inputs; validate everything, include security threa...
WithinUsAI/Omega_Genesis_Coder_100k
Add a clear docstring and type hints to this function: ```python def f69029(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f69029(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 event dispatching. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must be streaming-friendly, must handle Windows paths safely, stdlib-only. Difficulty: hard. Avoid quadratic behavior on large inputs. Deliverable: ...
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: v33cubh.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: Project domain: feature flag service Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest Software delivery problem: schema drift during deployment Task ...
WithinUsAI/GOD_Coder_Complete_DataSet
Add a clear docstring and type hints to this function: ```python def f57366(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f57366(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 f86457(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 `m12351.py` and `test_m12351.py`. *** Begin Patch *** Update File: m12351.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: a37fv...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of compilers for scenario: feature flagging. Primary language: go. Difficulty: hard. Constraints: design for backward compatibility and migrations, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, document performance characteristics, i...
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: Project domain: auth service Implementation stack: Rust, Axum, SQLx, Redis, Tokio, Docker Software delivery problem: slow cold start Task type: release_engine...
WithinUsAI/GOD_Coder_Complete_DataSet
Optimize while preserving behavior and order. ```python def f49064(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m64152.py` with types and O(n) average. ```python # m64152.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f65206`. ```python def f65206(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m66458 import f65206 def test_known(): assert f65206(3,4) == 25 def test_zero(): assert f65206(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: Optimize while preserving behavior. File: q041c...
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: m1d5rl.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: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f38738(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 `m05534.py` and `test_m05534.py`. *** Begin Patch *** Update File: m05534.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
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: supply_chain_security Scenario: real-time notification hub Domain focus: compiler toolchains Primary language: typescript Difficulty: hard Scale/SLO: 10k RPS peak Component: component_lyuurypj Constraints: include test vectors and fuzz strategy, include verification strategy, include performance model and li...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: ml_system_design Scenario: rate limit gateway Domain focus: real-time scheduling Primary language: rust Difficulty: expert Scale/SLO: multi-region active-active Component: component_vocwuzrn Constraints: include performance model and limits, include deterministic replay plan, include test vectors and fuzz st...
WithinUsAI/Omega_Genesis_Coder_100k
Design and implement an algorithm for telemetry ingestion. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must include tests, must avoid global state. Difficulty: easy. Guarantee deterministic output ordering. Deliverable: implementation + tests. Probl...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C00776: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m07752.py` and `test_m07752.py`. ```python # m07752.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: c_40s...
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: Node.js Domain: job scheduler Logic challenge: stale cache invalidation Task type: misleading_symptom_debug 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: Fix a bug and add tests. File: iy4mzrrf6.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of networking for scenario: payment processing. Primary language: go. Difficulty: expert. Constraints: assume untrusted inputs; validate and sanitize, include invariants and failure modes, include tests or verification strategy, design for backward compatibility and migration...
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: feature flag service Primary language: JavaScript Framework/tooling: Jest Reported problem: dead-letter queue replay Task type: feature_del...
WithinUsAI/GOD_Coder_Complete_DataSet
Implement multi-tenant isolation for a calendar/scheduling product. Target platform: ML (PyTorch + serving). Requirements: provide production-ready code, configuration, and tests. Constraints: must include documentation/comments, must be production-ready, must be performant under load, must avoid global state. Difficul...
WithinUsAI/GOD_Coder_100k
Design a production system for logistics supporting role-based access control. Target platform: infra (Docker + Kubernetes). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must include tests, must include documentation/comments, must be performant under load, must include cl...
WithinUsAI/GOD_Coder_100k
Debug and fix a subtle production bug related to file uploads in a enterprise SaaS service. Target platform: mobile (iOS Swift). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be secure-by-default, must be performant under load, must include tests, must include type hints ...
WithinUsAI/GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: YAML Framework/tooling: Terraform Domain: reporting engine Logic challenge: path traversal on downloads Task type: parser_validation_logic Difficult...
WithinUsAI/GOD_Coder_Complete_DataSet
Write pytest tests for `f76487`. ```python def f76487(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m96641 import f76487 def test_known(): assert f76487(3,4) == 25 def test_zero(): assert f76487(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: Project domain: notification service Implementation stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Software delivery problem: broken pagination cur...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C64812: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m66524.py` and `test_m66524.py`. ```python # m66524.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Improve typing and robustness of a Python module used for parsing. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: must include docstrings, must be memory-efficient. Difficulty: medium. Guarantee deterministic output ordering. Deliverable: corrected code and ...
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: C# Framework/tooling: ASP.NET Core Domain: notification service Logic challenge: migration ordering failure Task type: cross_stack_outage_fix Diffic...
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: xfxrya.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for task scheduling. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must include tests, stdlib-only, must be streaming-friendly. Difficulty: easy. Provide helpful exceptions with actionable messages. Deliverable: correct...
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
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: Go Dependency challenge: monorepo toolchain skew Task type: version_conflict_resolution...
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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor a Python module used for caching layer into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must be streaming-friendly, must provide clear error messages, must include type hints. Difficulty: medium. Avoid quadratic behavi...
WithinUsAI/python_GOD_coder_100k
Write pytest tests for `f20312`. ```python def f20312(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m88616 import f20312 def test_known(): assert f20312(3,4) == 25 def test_zero(): assert f20312(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of gpu compute for scenario: multi-tenant SaaS. Primary language: python. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, make the interface contract explicit, document performance characteristics. Component: component_fttgzdg. Assume crash-only...
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: reporting engine Implementation stack: Rust, Axum, SQLx, Redis, Tokio, Docker Software delivery problem: race condition on worker shutdown Tas...
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: C++ Dependency challenge: optimistic locking conflict Task type: lockfile_repair Difficulty: h...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: compiler_backend_ir Scenario: graph query service Domain focus: runtime systems Primary language: cpp Difficulty: expert+ Scale/SLO: p99 < 150ms Component: component_ppahnrel Constraints: include security threat model (defensive only), include performance model and limits, include deterministic replay plan, ...
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: agobhysr5.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: Bash Framework/tooling: sed Domain: developer platform Logic challenge: memory leak in AST cache Task type: transaction_integrity_fix Difficulty: ha...
WithinUsAI/GOD_Coder_Complete_DataSet
Add a clear docstring and type hints to this function: ```python def f64635(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f64635(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Perform a code review for a fintech PR implementing audit logs. Target platform: data (SQL + Python). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must include tests, must be production-ready, must avoid global state. Difficulty: expert. Assume strict latency bud...
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: Python Framework/tooling: Django Domain: reporting engine Logic challenge: schema drift during deployment Task type: concurrency_fix Difficulty: har...
WithinUsAI/GOD_Coder_Complete_DataSet
Design CI/CD for a document processing service delivering search + pagination. Target platform: ML (scikit + batch). Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks. Constraints: must include documentation/comments, must include type hints where applicable, must include clear error handli...
WithinUsAI/GOD_Coder_100k
Task type: kernel_syscall_design Scenario: real-time notification hub Domain focus: query planning Primary language: cpp Difficulty: expert Scale/SLO: 100k RPS peak Component: component_jxkvblmm Constraints: assume adversarial inputs; validate everything, include deterministic replay plan, include failure modes and rec...
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: rec25...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of stream processing for scenario: time-series metrics. Primary language: python. Difficulty: hard. Constraints: include invariants and failure modes, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize. Component: component_huzrfm...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of networking for scenario: rate limiting gateway. Primary language: sql. Difficulty: expert. Constraints: design for backward compatibility and migrations, include invariants and failure modes, avoid undefined behavior and data races. Component: component_pdehlve. Assume cra...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of edge/IoT for scenario: rate limiting gateway. Primary language: python. Difficulty: medium. Constraints: include tests or verification strategy, assume untrusted inputs; validate and sanitize, make the interface contract explicit, avoid undefined behavior and data races. C...
WithinUsAI/Elite_GOD_Coder_100k
Implement A/B experimentation for a fintech product. Target platform: mobile (Android Kotlin). Requirements: provide production-ready code, configuration, and tests. Constraints: must be secure-by-default, must be easy to extend, must include tests, must include documentation/comments, must include type hints where app...
WithinUsAI/GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f66960(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m95280.py` with types and O(n) average. ```python # m95280.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: tvuwz4dfr.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Perform a code review for a content moderation PR implementing event-driven workflows. Target platform: data (SQL + Python). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must be production-ready, must be performant under load, must include documentation/comments,...
WithinUsAI/GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f33175(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m19025.py` with types and O(n) average. ```python # m19025.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Secure-by-default implementation for file uploads in a fraud detection product. Target platform: backend (Python FastAPI). Requirements: threat model, input validation, authz/authn guidance, safe storage, tests. Constraints: must be production-ready, must include documentation/comments, must include tests, must be secu...
WithinUsAI/GOD_Coder_100k
Debug and fix a subtle production bug related to rate limiting in a developer tooling service. Target platform: infra (Docker + Kubernetes). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include clear error handling, must be easy to extend, must be production-ready, must ...
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: STL Domain: feature flag service Logic challenge: migration ordering failure Task type: concurrency_fix Difficulty: hard Ret...
WithinUsAI/GOD_Coder_Complete_DataSet
Implement background jobs for a healthtech product. Target platform: backend (Python FastAPI). Requirements: provide production-ready code, configuration, and tests. Constraints: must be secure-by-default, must include type hints where applicable, must include documentation/comments, must be easy to extend. Difficulty:...
WithinUsAI/GOD_Coder_100k
Task type: program_synthesis_safe Scenario: identity and access Domain focus: program synthesis (safe) Primary language: python Difficulty: expert Scale/SLO: p99 < 150ms Component: component_chqusbvi Constraints: include failure modes and recovery, include verification strategy, explicit contracts and invariants, inclu...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: smt_constraint_model Scenario: edge sync Domain focus: stream processing Primary language: python Difficulty: expert Scale/SLO: multi-region active-active Component: component_wivtantm Constraints: avoid data races and undefined behavior, include performance model and limits, include test vectors and fuzz st...
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: Fix a bug and add tests. File: hp6xao1cwwlv.py ...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: System domain: feature flag service Stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions Cross-layer incident: S3-compatible upload inconsist...
WithinUsAI/GOD_Coder_Complete_DataSet
Write secure, defensive Python code for report generation. Requirements: input validation, safe file handling, prevent path traversal, include tests. Constraints: must provide clear error messages, must include docstrings. Difficulty: easy. Handle empty inputs and malformed records gracefully. Deliverable: implementat...
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: vw_bf2.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f97895`. ```python def f97895(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m13985 import f97895 def test_known(): assert f97895(3,4) == 25 def test_zero(): assert f97895(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f73271(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m24753.py` with types and O(n) average. ```python # m24753.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: compiler_backend_ir Scenario: streaming ETL Domain focus: model checking Primary language: cpp Difficulty: expert Scale/SLO: 50 TB/day ingestion Component: component_qissmgbo Constraints: explicit contracts and invariants, include performance model and limits, include verification strategy, assume adversaria...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor a Python module used for parsing into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must avoid global state, must be memory-efficient, must be easy to extend, must handle Windows paths safely. Difficulty: easy. Avoid qua...
WithinUsAI/python_GOD_coder_100k
Perform a code review for a education PR implementing rate limiting. Target platform: web (React + TypeScript). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must be production-ready, must be easy to extend, must include tests, must be performant under load, must ...
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: pmeab...
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: document processing API Primary language: Go Framework/tooling: sqlc Reported problem: JWT refresh token rotation Task type: performance_pa...
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 networking for scenario: edge sync. Primary language: bash. Difficulty: medium. Constraints: assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, avoid undefined behavior and data races, make the interface contract explicit. Com...
WithinUsAI/Elite_GOD_Coder_100k
Write pytest tests for `f49238`. ```python def f49238(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m07034 import f49238 def test_known(): assert f49238(3,4) == 25 def test_zero(): assert f49238(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f15973(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 `m45139.py` and `test_m45139.py`. *** Begin Patch *** Update File: m45139.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Write a thorough test suite for a Python component used for time series. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must include type hints, must be streaming-friendly. Difficulty: medium. Ensure the API is testable via dependency injection. Deliverable: API + reference imple...
WithinUsAI/python_GOD_coder_100k