text
stringlengths
355
3.69k
source
stringclasses
6 values
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: Boost Domain: model serving gateway Logic challenge: multi-tenant access leak Task type: security_logic_interaction Difficult...
WithinUsAI/GOD_Coder_Complete_DataSet
Design a production system for customer support supporting idempotent payments. Target platform: mobile (Android Kotlin). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be secure-by-default, must be easy to extend, must be performant under load. Difficulty: easy. Assume...
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: SQL Framework/tooling: SQLite Domain: feature flag service Logic challenge: CI failures after dependency upgrade Task type: multi_file_migration_rep...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor a Python module used for event dispatching into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must include docstrings, stdlib-only, must include type hints. Difficulty: hard. Support both Windows and POSIX paths correctl...
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 stack: Airflow, dbt, DuckDB, MinIO, pytest Language: Rust Dependency challenge: slow cold start Task type: migration_patch Difficulty: medium Fix thi...
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: pfaj6ai.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f09177(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m01311.py` with types and O(n) average. ```python # m01311.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Repository domain: model serving gateway Primary language: C# Framework/tooling: xUnit Reported problem: JWT refresh token rotation Task type: api_endpoint_wo...
WithinUsAI/GOD_Coder_Complete_DataSet
Build a data pipeline for a enterprise SaaS product around A/B experimentation. Target platform: data (SQL + Python). Requirements: schema, ingestion, validation, backfills, and tests. Constraints: must be easy to extend, must be observable (logs/metrics/traces), must include clear error handling. Difficulty: medium. A...
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: curl Domain: document processing API Logic challenge: async cancellation bug 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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: compiler_frontend Scenario: feature-flag evaluation Domain focus: network protocols Primary language: sql Difficulty: hard Scale/SLO: 99.99% availability Component: component_vkojwlci Constraints: include verification strategy, include security threat model (defensive only), assume adversarial inputs; valida...
WithinUsAI/Omega_Genesis_Coder_100k
Improve typing and robustness of a Python module used for caching layer. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: must include type hints, must avoid global state, must be easy to extend. Difficulty: expert. Include a small CLI example if relevant. Del...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of operating systems for scenario: rate limiting gateway. Primary language: rust. Difficulty: medium. Constraints: assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, document performance characteristics. Component: component_ewfpwdf. Assu...
WithinUsAI/Elite_GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C46482: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m65114.py` and `test_m65114.py`. ```python # m65114.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: kernel_syscall_design Scenario: feature-flag evaluation Domain focus: data lineage & governance Primary language: cpp Difficulty: expert+ Scale/SLO: 10k RPS peak Component: component_sqnmkhkq Constraints: include test vectors and fuzz strategy, include backward compatibility and migration plan, assume advers...
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
Write a thorough test suite for a Python component used for file synchronization. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: stdlib-only, must be memory-efficient. Difficulty: expert. Avoid quadratic behavior on large inputs. Deliverable: corrected code and verification tests...
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: kkerwzim_7.py ``...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of high-performance services for scenario: time-series metrics. Primary language: rust. Difficulty: hard. Constraints: provide rollout and rollback guidance, include invariants and failure modes, document performance characteristics. Component: component_dlgtqgi. Assume 50k R...
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: Rust Framework/tooling: Tokio Domain: model serving gateway Logic challenge: CI failures after dependency upgrade Task type: distributed_debug 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: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of operating systems for scenario: edge sync. Primary language: python. Difficulty: expert. Constraints: avoid undefined behavior and data races, include tests or verification strategy, include invariants and failure modes. Component: component_lzsamsf. Assume crash-only desi...
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: data pipeline Implementation stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Software delivery problem: websocket reconnect storm Ta...
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: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Language: SQL Dependency challenge: transaction boundary bug Task type: build_reproducibilit...
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: SQL Framework/tooling: MySQL Domain: auth service Logic challenge: JWT refresh token rotation Task type: parser_validation_logic Difficulty: medium ...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of databases for scenario: edge sync. Primary language: python. Difficulty: medium. Constraints: include invariants and failure modes, design for backward compatibility and migrations, include tests or verification strategy, provide rollout and rollback guidance. Component: c...
WithinUsAI/Elite_GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f45187(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f45187(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Write a thorough test suite for a Python component used for ETL pipelines. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must include tests, must be streaming-friendly. Difficulty: medium. Provide helpful exceptions with actionable messages. Deliverable: corrected code and verif...
WithinUsAI/python_GOD_coder_100k
Task type: mechanized_spec Scenario: real-time notification hub Domain focus: runtime systems Primary language: lean Difficulty: expert+ Scale/SLO: 1M msgs/min Component: component_wbdtnqep Constraints: assume adversarial inputs; validate everything, include performance model and limits, include security threat model (...
WithinUsAI/Omega_Genesis_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: ouztdt1a7.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f11381(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 `m44483.py` and `test_m44483.py`. *** Begin Patch *** Update File: m44483.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of gpu compute for scenario: event ingestion. Primary language: bash. Difficulty: hard. Constraints: make the interface contract explicit, document performance characteristics, assume untrusted inputs; validate and sanitize, include tests or verification strategy, include inv...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: hvajzr.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f49256(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m35608.py` with types and O(n) average. ```python # m35608.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 f10772(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 `m44396.py` and `test_m44396.py`. *** Begin Patch *** Update File: m44396.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Write pytest tests for `f63996`. ```python def f63996(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m23428 import f63996 def test_known(): assert f63996(3,4) == 25 def test_zero(): assert f63996(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of edge/IoT for scenario: chat messaging. Primary language: python. Difficulty: medium. Constraints: design for backward compatibility and migrations, document performance characteristics, provide rollout and rollback guidance. Component: component_fpvfgpx. Assume 50k RPS and...
WithinUsAI/Elite_GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C71945: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m74765.py` and `test_m74765.py`. ```python # m74765.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: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: rate limiting gateway. Primary language: sql. Difficulty: medium. Constraints: make the interface contract explicit, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance. Component: component_c...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: l1hioy.py ```pyt...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: data pipeline Implementation stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Software delivery problem: streaming timeout handling T...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of stream processing for scenario: multi-tenant SaaS. Primary language: go. Difficulty: expert. Constraints: document performance characteristics, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, make the interface contract explicit, in...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f94021(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 `m42003.py` and `test_m42003.py`. *** Begin Patch *** Update File: m42003.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
Task type: secure_architecture Scenario: payment ledger Domain focus: static analysis Primary language: sql Difficulty: expert Scale/SLO: multi-region active-active Component: component_vgcoqlce Constraints: include performance model and limits, assume adversarial inputs; validate everything, avoid data races and undef...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C35173: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m87321.py` and `test_m87321.py`. ```python # m87321.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of realtime systems for scenario: inventory & ordering. Primary language: sql. Difficulty: medium. Constraints: provide rollout and rollback guidance, make the interface contract explicit, assume untrusted inputs; validate and sanitize, document performance characteristics, d...
WithinUsAI/Elite_GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C27464: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m86728.py` and `test_m86728.py`. ```python # m86728.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: YAML Framework/tooling: GitHub Actions Domain: developer platform Logic challenge: schema drift during deployment Task type: transaction_integrity_f...
WithinUsAI/GOD_Coder_Complete_DataSet
Write secure, defensive Python code for configuration loading. Requirements: input validation, safe file handling, prevent path traversal, include tests. Constraints: must include tests, must be streaming-friendly, must avoid global state, must include docstrings. Difficulty: medium. Guarantee deterministic output orde...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f28750(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 `m61250.py` and `test_m61250.py`. *** Begin Patch *** Update File: m61250.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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of operating systems for scenario: chat messaging. Primary language: rust. Difficulty: medium. Constraints: avoid undefined behavior and data races, design for backward compatibility and migrations, provide rollout and rollback guidance, make the interface contract explicit. ...
WithinUsAI/Elite_GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f05448(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f05448(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Provision infrastructure for a gaming workload providing audit logs. Target platform: backend (Python FastAPI). Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling. Constraints: must include clear error handling, must include documentation/comments, must avoid global state, must include t...
WithinUsAI/GOD_Coder_100k
Task type: tla_state_machine Scenario: multi-tenant event ingestion Domain focus: consensus & replication Primary language: tla+ Difficulty: hard Scale/SLO: 99.99% availability Component: component_rndgiwoi Constraints: include performance model and limits, explicit contracts and invariants, include test vectors and fu...
WithinUsAI/Omega_Genesis_Coder_100k
Secure-by-default implementation for analytics pipeline in a developer tooling product. Target platform: CI (GitHub Actions). Requirements: threat model, input validation, authz/authn guidance, safe storage, tests. Constraints: must include type hints where applicable, must be performant under load, must include clear ...
WithinUsAI/GOD_Coder_100k
Write a thorough test suite for a Python component used for task scheduling. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must include type hints, must avoid global state. Difficulty: expert. Support both Windows and POSIX paths correctly. Deliverable: corrected code and verifi...
WithinUsAI/python_GOD_coder_100k
Fix a subtle bug in a Python module used for caching layer. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must provide clear error messages, must include tests, must be memory-efficient. Difficulty: easy. Support both Windows and POSIX paths correctly. Deliver...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of ml systems for scenario: inventory & ordering. Primary language: rust. Difficulty: medium. Constraints: assume untrusted inputs; validate and sanitize, make the interface contract explicit, include invariants and failure modes. Component: component_vypekla. Assume strict a...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f74168(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 `m82024.py` and `test_m82024.py`. *** Begin Patch *** Update File: m82024.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
Fix the bug and add pytest tests. ```python def f19953(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 `m74279.py` and `test_m74279.py`. *** Begin Patch *** Update File: m74279.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: distributed_algorithm Scenario: rate limit gateway Domain focus: compiler toolchains Primary language: sql Difficulty: expert+ Scale/SLO: 10k RPS peak Component: component_reznwsaq Constraints: assume adversarial inputs; validate everything, avoid data races and undefined behavior, include test vectors and f...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: mechanized_spec Scenario: graph query service Domain focus: runtime systems Primary language: lean Difficulty: hard Scale/SLO: p99 < 50ms Component: component_lwkbdhkg Constraints: include backward compatibility and migration plan, assume adversarial inputs; validate everything, include test vectors and fuzz...
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: ASP.NET Core, SQL Server, EF Core, xUnit, Docker Language: YAML Dependency challenge: monorepo toolchain skew Task type: cve_dependency_remedia...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of stream processing for scenario: edge sync. Primary language: sql. Difficulty: expert. Constraints: include tests or verification strategy, avoid undefined behavior and data races, include invariants and failure modes, assume untrusted inputs; validate and sanitize, documen...
WithinUsAI/Elite_GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f77914(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 `m39702.py` and `test_m39702.py`. *** Begin Patch *** Update File: m39702.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: wbv7rw0m.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: secure_architecture Scenario: time-series metrics store Domain focus: network protocols Primary language: go Difficulty: hard Scale/SLO: 50 TB/day ingestion Component: component_ahkqhrzv Constraints: avoid data races and undefined behavior, include performance model and limits, assume adversarial inputs; val...
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: reporting engine Implementation stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker Software delivery problem: slow cold start Task type: ...
WithinUsAI/GOD_Coder_Complete_DataSet
Provision infrastructure for a IoT telemetry workload providing file uploads. Target platform: ML (scikit + batch). Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling. Constraints: must include tests, must be observable (logs/metrics/traces), must be easy to extend, must be production-re...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f36202(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 `m90886.py` and `test_m90886.py`. *** Begin Patch *** Update File: m90886.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C12077: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m00929.py` and `test_m00929.py`. ```python # m00929.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Implement audit logs for a fraud detection product. Target platform: ML (PyTorch + serving). Requirements: provide production-ready code, configuration, and tests. Constraints: must include type hints where applicable, must be observable (logs/metrics/traces), must be production-ready. Difficulty: expert. Assume schema...
WithinUsAI/GOD_Coder_100k
Task type: distributed_algorithm Scenario: time-series metrics store Domain focus: GPU serving Primary language: python Difficulty: hard Scale/SLO: 1M msgs/min Component: component_voemdpgs Constraints: include verification strategy, include failure modes and recovery, explicit contracts and invariants, include test ve...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor a Python module used for configuration loading into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must include type hints, must be easy to extend, stdlib-only. Difficulty: expert. Avoid quadratic behavior on large inputs...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: feature flagging. Primary language: go. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, provide rollout and rollback guidance, make the interface...
WithinUsAI/Elite_GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f47408(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m35344.py` with types and O(n) average. ```python # m35344.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: tla_state_machine Scenario: rate limit gateway Domain focus: program synthesis (safe) Primary language: tla+ Difficulty: expert Scale/SLO: 99.99% availability Component: component_xesoazyh Constraints: avoid data races and undefined behavior, include deterministic replay plan, include security threat model (...
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: Repository domain: observability collector Primary language: Java Framework/tooling: Hibernate Reported problem: transaction boundary bug Task type: test_repa...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: compiler_backend_ir Scenario: job scheduler Domain focus: secure enclaves (defensive) Primary language: rust Difficulty: expert Scale/SLO: 10k RPS peak Component: component_yjeddvzo Constraints: assume adversarial inputs; validate everything, include deterministic replay plan, include security threat model (...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of high-performance services for scenario: rate limiting gateway. Primary language: rust. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, document performance characteristics, provide rollout and rollback guidance. Component: component_lhddbxt. ...
WithinUsAI/Elite_GOD_Coder_100k
Implement an ML engineering workflow for content moderation focusing on search + pagination. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must include documentation/comments, must avoid global state, 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: System domain: benchmark harness Stack: Airflow, dbt, DuckDB, MinIO, pytest Cross-layer incident: dead-letter queue replay Task type: deploy_runtime_patch Dif...
WithinUsAI/GOD_Coder_Complete_DataSet
Write secure, defensive Python code for validation. Requirements: input validation, safe file handling, prevent path traversal, include tests. Constraints: must handle Windows paths safely, must avoid global state. Difficulty: medium. Ensure the API is testable via dependency injection. Deliverable: production-ready r...
WithinUsAI/python_GOD_coder_100k
Debug and fix a subtle production bug related to offline-first sync in a education service. Target platform: backend (Python FastAPI). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include tests, must be observable (logs/metrics/traces), must be performant under load, mus...
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: k129h...
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: model serving gateway Implementation stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions Software delivery problem: partial ...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f72666(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 `m53238.py` and `test_m53238.py`. *** Begin Patch *** Update File: m53238.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: Project stack: GitHub Actions, Docker Compose, Kubernetes, Terraform Language: C# Dependency challenge: unsafe deserialization Task type: version_conflict_res...
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: C# Framework/tooling: ASP.NET Core Domain: feature flag service Logic challenge: invalid rollback sequence Task type: security_logic_interaction Dif...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C27685: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m86745.py` and `test_m86745.py`. ```python # m86745.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize a Python workflow for rate limiting. Requirements: provide an optimized implementation and a small benchmark harness. Constraints: must avoid global state, must be easy to extend, must handle Windows paths safely. Difficulty: medium. Include a small CLI example if relevant. Deliverable: API + reference implem...
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: i5akq14gk.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f36925(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f36925(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: 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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k