text
stringlengths
355
3.69k
source
stringclasses
6 values
Create a small, production-ready Python package for log processing. Requirements: include module code, CLI entrypoint, logging, and a minimal pyproject.toml. Constraints: must handle Windows paths safely, must include docstrings. Difficulty: medium. Avoid quadratic behavior on large inputs. Deliverable: corrected code...
WithinUsAI/python_GOD_coder_100k
Optimize while preserving behavior and order. ```python def f92442(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m13206.py` with types and O(n) average. ```python # m13206.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 f97154(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 `m71022.py` and `test_m71022.py`. *** Begin Patch *** Update File: m71022.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: uz0od6ktzdov.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f56193(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 `m36599.py` and `test_m36599.py`. *** Begin Patch *** Update File: m36599.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: li30ysshz99.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
Design a small, production-grade Python API for event dispatching. Requirements: define data models and interfaces, implement reference version, include tests. Constraints: must be easy to extend, must include type hints, must include docstrings. Difficulty: hard. Provide helpful exceptions with actionable messages. D...
WithinUsAI/python_GOD_coder_100k
Design and implement an algorithm for CLI tooling. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must be memory-efficient, must include tests. Difficulty: easy. Ensure the API is testable via dependency injection. Deliverable: corrected code and verif...
WithinUsAI/python_GOD_coder_100k
Task type: query_optimizer Scenario: payment ledger Domain focus: large-scale ML systems Primary language: sql Difficulty: hard Scale/SLO: 1M msgs/min Component: component_zjacefyh Constraints: include failure modes and recovery, include security threat model (defensive only), assume adversarial inputs; validate everyt...
WithinUsAI/Omega_Genesis_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Create a comprehensive test plan and automated tests for file uploads in a social media product. Target platform: data (SQL + Python). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must be easy to extend, must be observable (logs/metrics/traces), must include clear er...
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: team dashboard Logic challenge: gRPC retry storm Task type: cross_stack_outage_fix Difficulty: expert Return a...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix a subtle bug in a Python module used for log processing. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must be streaming-friendly, must provide clear error messages, must include type hints. Difficulty: easy. Ensure the API is testable via dependency inject...
WithinUsAI/python_GOD_coder_100k
Write pytest tests for `f14833`. ```python def f14833(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m02119 import f14833 def test_known(): assert f14833(3,4) == 25 def test_zero(): assert f14833(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: tz53x8gor.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
Optimize while preserving behavior and order. ```python def f86861(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m98123.py` with types and O(n) average. ```python # m98123.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: taps2pq3.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: Language: JavaScript Framework/tooling: React Domain: payments platform Logic challenge: S3-compatible upload inconsistency Task type: misleading_symptom_debu...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: inventory & ordering. Primary language: python. Difficulty: expert. Constraints: provide rollout and rollback guidance, design for backward compatibility and migrations, document performance characteristics, make the interface...
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
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C95995: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m76615.py` and `test_m76615.py`. ```python # m76615.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: benchmark harness Stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Cross-layer incident: broken pagination cursor Task type: schema_co...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: secure_architecture Scenario: graph query service Domain focus: kernel primitives Primary language: python Difficulty: expert+ Scale/SLO: 10k RPS peak Component: component_lsnkhdxz Constraints: include deterministic replay plan, include test vectors and fuzz strategy, include verification strategy, assume ad...
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: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Language: Python Dependency challenge: stale cache invalidation Task type: lockfile_re...
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
Task type: static_analyzer Scenario: real-time notification hub Domain focus: cryptography engineering (defensive) Primary language: rust Difficulty: expert Scale/SLO: 1M msgs/min Component: component_kninooel Constraints: include test vectors and fuzz strategy, include performance model and limits, include security th...
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: kfvv1j9twls.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: Repository domain: team dashboard Primary language: C++ Framework/tooling: Catch2 Reported problem: memory leak in AST cache Task type: code_review_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: w78bw5.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
Build an elite-grade solution in the domain of gpu compute for scenario: feature flagging. Primary language: python. Difficulty: expert. Constraints: include invariants and failure modes, make the interface contract explicit, assume untrusted inputs; validate and sanitize. Component: component_iamjtos. Assume partial n...
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: CMake Domain: team dashboard Logic challenge: race condition on worker shutdown Task type: transaction_integrity_fix Difficul...
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: Repository domain: auth service Primary language: Bash Framework/tooling: GNU coreutils Reported problem: broken pagination cursor Task type: feature_delivery...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: network_protocol Scenario: feature-flag evaluation Domain focus: consensus & replication Primary language: typescript Difficulty: expert Scale/SLO: 1M msgs/min Component: component_ouknjrqy Constraints: include performance model and limits, include failure modes and recovery, include security threat model (d...
WithinUsAI/Omega_Genesis_Coder_100k
Perform a code review for a calendar/scheduling PR implementing search + pagination. Target platform: CI (GitHub Actions). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must be easy to extend, must be performant under load, must include clear error handling, must ...
WithinUsAI/GOD_Coder_100k
Build an elite-grade solution in the domain of high-performance services for scenario: document indexing. Primary language: python. Difficulty: hard. Constraints: document performance characteristics, provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize. Component: component_jzquimm. As...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of stream processing for scenario: event ingestion. Primary language: go. Difficulty: hard. Constraints: design for backward compatibility and migrations, include tests or verification strategy, provide rollout and rollback guidance, assume untrusted inputs; validate and sani...
WithinUsAI/Elite_GOD_Coder_100k
Task type: compiler_backend_ir Scenario: document indexing pipeline Domain focus: constraint solving Primary language: cpp Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_vodashen Constraints: include security threat model (defensive only), include deterministic replay plan, include failure mode...
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: d1_g3a508a3.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: Optimize while preserving behavior. File: ttya5...
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: hr567...
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: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Language: Python Dependency challenge: rate-limit bypass Task type: build_reproducibil...
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
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: Airflow, dbt, DuckDB, MinIO, pytest Language: SQL Dependency challenge: streaming timeout handling Task type: version_conflict_resolution Diffi...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix a subtle bug in a Python module used for CLI tooling. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must include type hints, must handle Windows paths safely, must be streaming-friendly, must include docstrings. Difficulty: expert. Avoid quadratic behavior ...
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: System domain: payments platform Stack: Airflow, dbt, DuckDB, MinIO, pytest Cross-layer incident: async cancellation bug Task type: deploy_runtime_patch Diffi...
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: sdhihjy3x.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Design a production system for document processing supporting analytics pipeline. Target platform: web (React + TypeScript). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must include documentation/comments, must be observable (logs/metrics/traces), must include tests, must...
WithinUsAI/GOD_Coder_100k
Design and implement an algorithm for ETL pipelines. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: must include tests, must handle Windows paths safely, must provide clear error messages. Difficulty: expert. Support both Windows and POSIX paths correct...
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: xUnit Domain: artifact registry Logic challenge: broken pagination cursor Task type: backwards_compatible_redesign Difficulty:...
WithinUsAI/GOD_Coder_Complete_DataSet
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Repository domain: job scheduler Primary language: Rust Framework/tooling: SQLx Reported problem: broken pagination cursor Task type: performance_patch Diffic...
WithinUsAI/GOD_Coder_Complete_DataSet
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: YAML Framework/tooling: Helm Domain: reporting engine Logic challenge: broken pagination cursor Task type: security_logic_interaction Difficulty: ha...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: runtime_gc Scenario: time-series metrics store Domain focus: program synthesis (safe) Primary language: rust Difficulty: expert Scale/SLO: 10k RPS peak Component: component_goqvblqm Constraints: assume adversarial inputs; validate everything, explicit contracts and invariants, include performance model and l...
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: oaeir_2mswlh.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of distributed systems for scenario: time-series metrics. Primary language: python. Difficulty: expert. Constraints: design for backward compatibility and migrations, make the interface contract explicit, document performance characteristics, assume untrusted inputs; validate...
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 f47961(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 `m35423.py` and `test_m35423.py`. *** Begin Patch *** Update File: m35423.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: payments platform Primary language: C++ Framework/tooling: STL Reported problem: stale cache invalidation Task type: repo_issue_patch Diffi...
WithinUsAI/GOD_Coder_Complete_DataSet
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: job scheduler Implementation stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Software delivery problem: idempotent retry design Task...
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: mcowk23sgi.py ``...
WithinUsAI/Royal_Ghost_Coder_501k
Design a production system for developer tooling supporting idempotent payments. Target platform: infra (Terraform). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be secure-by-default, must include tests, must be production-ready, must avoid global state. Difficulty: m...
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: csywwe.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of databases for scenario: job scheduler. Primary language: go. Difficulty: hard. Constraints: design for backward compatibility and migrations, document performance characteristics, assume untrusted inputs; validate and sanitize, include invariants and failure modes. Compone...
WithinUsAI/Elite_GOD_Coder_100k
Design a production system for fraud detection supporting webhooks. Target platform: backend (Node.js). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be easy to extend, must be production-ready, must include clear error handling, must be secure-by-default, must be perf...
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: xUnit Domain: model serving gateway Logic challenge: transaction boundary bug Task type: performance_bottleneck_patch Difficul...
WithinUsAI/GOD_Coder_Complete_DataSet
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 include docstrings, must handle Windows paths safely, must provide clear error messages, must include tests. Difficulty: hard. Supp...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C93573: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m84121.py` and `test_m84121.py`. ```python # m84121.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f03461(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f03461(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: rate limiting gateway. Primary language: rust. Difficulty: hard. Constraints: avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations. Component: component_svi...
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: iw3qj...
WithinUsAI/Royal_Ghost_Coder_501k
Create a comprehensive test plan and automated tests for search + pagination in a healthtech product. Target platform: backend (Python FastAPI). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must include clear error handling, must avoid global state, must be easy to e...
WithinUsAI/GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f43063(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f43063(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: sre_incident_sim Scenario: edge sync Domain focus: compiler toolchains Primary language: python Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_bzappbtw Constraints: include test vectors and fuzz strategy, avoid data races and undefined behavior, include security threat model (defensi...
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: dwp1kc6.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Design CI/CD for a content moderation service delivering caching. Target platform: web (React + TypeScript). Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks. Constraints: must be production-ready, must avoid global state, must be easy to extend. Difficulty: expert. Assume strict latency b...
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: System domain: observability collector Stack: Rust, Axum, SQLx, Redis, Tokio, Docker Cross-layer incident: multi-tenant access leak Task type: cache_consisten...
WithinUsAI/GOD_Coder_Complete_DataSet
Implement a web feature for logistics: A/B experimentation. Target platform: web (React + TypeScript). Requirements: accessible UI, API integration, and tests. Constraints: must avoid global state, must be secure-by-default, must be observable (logs/metrics/traces). Difficulty: medium. Include rollback strategy. Outpu...
WithinUsAI/GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C44432: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m57264.py` and `test_m57264.py`. ```python # m57264.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f38689(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f38689(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 stream processing for scenario: inventory & ordering. Primary language: rust. Difficulty: hard. Constraints: design for backward compatibility and migrations, make the interface contract explicit, avoid undefined behavior and data races, provide rollout and rollback guidan...
WithinUsAI/Elite_GOD_Coder_100k
Write pytest tests for `f60641`. ```python def f60641(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m08663 import f60641 def test_known(): assert f60641(3,4) == 25 def test_zero(): assert f60641(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: Fix a bug and add tests. File: la6gz43ab4sg.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for file synchronization. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must include docstrings, must avoid global state, must handle Windows paths safely, must include tests. Difficulty: expert. Guarantee deterministic ...
WithinUsAI/python_GOD_coder_100k
Task type: kernel_syscall_design Scenario: payment ledger Domain focus: stream processing Primary language: c Difficulty: hard Scale/SLO: 100k RPS peak Component: component_fsshoqsr 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: YAML Framework/tooling: Kubernetes Domain: observability collector Logic challenge: memory leak in AST cache Task type: edge_case_hardening Difficul...
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: schema drift during deployment Task type: build_reproducibility_fix ...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f51038(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 `m64434.py` and `test_m64434.py`. *** Begin Patch *** Update File: m64434.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Design a production system for content moderation supporting background jobs. Target platform: mobile (Android Kotlin). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must include clear error handling, must be performant under load, must include documentation/comments. Diffi...
WithinUsAI/GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Bash Framework/tooling: GNU coreutils Domain: reporting engine Logic challenge: transaction boundary bug Task type: misleading_symptom_debug Difficu...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: network_protocol Scenario: real-time notification hub Domain focus: kernel primitives Primary language: go Difficulty: expert Scale/SLO: p99 < 150ms Component: component_ygvddtzf Constraints: explicit contracts and invariants, avoid data races and undefined behavior, include failure modes and recovery, inclu...
WithinUsAI/Omega_Genesis_Coder_100k
Create a comprehensive test plan and automated tests for analytics pipeline in a social media product. Target platform: data (SQL + Python). Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates. Constraints: must be production-ready, must be easy to extend, must be performant under load, ...
WithinUsAI/GOD_Coder_100k
Implement an ML engineering workflow for developer tooling focusing on audit logs. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must include type hints where applicable, must include clear error handling, must be ...
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: yg50qu88ox.py ``...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C87080: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m45160.py` and `test_m45160.py`. ```python # m45160.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for rate limiting. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must include docstrings, must be easy to extend, must avoid global state, must be streaming-friendly. Difficulty: medium. Support both Windows and POSIX pa...
WithinUsAI/python_GOD_coder_100k
Write pytest tests for `f29577`. ```python def f29577(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m18511 import f29577 def test_known(): assert f29577(3,4) == 25 def test_zero(): assert f29577(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: lxl834t.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k