text
stringlengths
355
3.69k
source
stringclasses
6 values
Add a clear docstring and type hints to this function: ```python def f84416(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f84416(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 operating systems for scenario: payment processing. Primary language: rust. Difficulty: expert. Constraints: avoid undefined behavior and data races, include invariants and failure modes, assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance...
WithinUsAI/Elite_GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f35649(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m90807.py` with types and O(n) average. ```python # m90807.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Implement a concurrent Python solution for ETL pipelines. Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests. Constraints: stdlib-only, must handle Windows paths safely. Difficulty: hard. Ensure the API is testable via dependency injection. Deliverable: implementation + tes...
WithinUsAI/python_GOD_coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Python Framework/tooling: Flask Domain: notification service Logic challenge: path traversal on downloads Task type: edge_case_hardening Difficulty:...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of realtime systems for scenario: multi-tenant SaaS. Primary language: python. Difficulty: hard. Constraints: design for backward compatibility and migrations, include invariants and failure modes, provide rollout and rollback guidance. Component: component_gaikcco. Assume cr...
WithinUsAI/Elite_GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f81525(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m83075.py` with types and O(n) average. ```python # m83075.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of realtime systems for scenario: analytics pipeline. Primary language: go. Difficulty: hard. Constraints: design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, include invariants and failure modes, provide rollout and rollback guid...
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: y2ce_b0n.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of compilers for scenario: multi-tenant SaaS. Primary language: rust. Difficulty: expert. Constraints: assume untrusted inputs; validate and sanitize, include tests or verification strategy, document performance characteristics. Component: component_ogduwbb. Assume cold-start...
WithinUsAI/Elite_GOD_Coder_100k
Write secure, defensive Python code for event dispatching. Requirements: input validation, safe file handling, prevent path traversal, include tests. Constraints: must be memory-efficient, must include type hints, stdlib-only, must handle Windows paths safely. Difficulty: hard. Handle empty inputs and malformed records...
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: k8z3caa7qmz8.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Write a thorough test suite for a Python component used for data modeling. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must provide clear error messages, must include tests, must include docstrings. Difficulty: easy. Provide helpful exceptions with actionable messages. Deliver...
WithinUsAI/python_GOD_coder_100k
Build an elite-grade solution in the domain of ml systems for scenario: rate limiting gateway. Primary language: typescript. Difficulty: medium. Constraints: avoid undefined behavior and data races, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize. Component: component_rm...
WithinUsAI/Elite_GOD_Coder_100k
Task type: lockfree_primitive Scenario: payment ledger Domain focus: secure enclaves (defensive) Primary language: cpp Difficulty: hard Scale/SLO: 100k RPS peak Component: component_btblnfth Constraints: include verification strategy, include performance model and limits, include deterministic replay plan, assume adver...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of ml systems for scenario: inventory & ordering. Primary language: typescript. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, include tests or verification strategy, provide rollout and rollback guidance. Component: component_ixhievd. Assume 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: Optimize while preserving behavior. File: ijhuf...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: lockfree_primitive Scenario: streaming ETL Domain focus: runtime systems Primary language: cpp Difficulty: hard Scale/SLO: 1M msgs/min Component: component_ebaxemwr Constraints: explicit contracts and invariants, include backward compatibility and migration plan, include verification strategy, include test v...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor a Python module used for time series into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must include docstrings, must provide clear error messages, stdlib-only. Difficulty: medium. Support both Windows and POSIX paths co...
WithinUsAI/python_GOD_coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: team dashboard Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform Software delivery problem: CI failures after depend...
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
Fix the bug and add pytest tests. ```python def f12176(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 `m73168.py` and `test_m73168.py`. *** Begin Patch *** Update File: m73168.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of databases for scenario: rate limiting gateway. Primary language: rust. Difficulty: medium. Constraints: provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, make the interface contract expl...
WithinUsAI/Elite_GOD_Coder_100k
Perform a code review for a fraud detection PR implementing webhooks. Target platform: mobile (iOS Swift). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must be performant under load, must avoid global state, must be production-ready, must include tests. Difficult...
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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f73653(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 `m53379.py` and `test_m53379.py`. *** Begin Patch *** Update File: m53379.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: Language: Python Framework/tooling: Airflow Domain: benchmark harness Logic challenge: broken pagination cursor Task type: concurrency_fix Difficulty: medium ...
WithinUsAI/GOD_Coder_Complete_DataSet
Optimize while preserving behavior and order. ```python def f36605(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m19515.py` with types and O(n) average. ```python # m19515.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: gmwkbwx.py ```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: epbdf...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Repository domain: repo automation Primary language: Java Framework/tooling: Gradle Reported problem: schema drift during deployment Task type: performance_pa...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: gpu_serving_pipeline Scenario: feature-flag evaluation Domain focus: cryptography engineering (defensive) Primary language: rust Difficulty: expert+ Scale/SLO: 100k RPS peak Component: component_ajtzufkh Constraints: avoid data races and undefined behavior, explicit contracts and invariants, include security...
WithinUsAI/Omega_Genesis_Coder_100k
Perform a code review for a content moderation PR implementing analytics pipeline. Target platform: web (React + TypeScript). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must be easy to extend, must include clear error handling, must be production-ready, 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: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f64775(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m37825.py` with types and O(n) average. ```python # m37825.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C35625: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m18125.py` and `test_m18125.py`. ```python # m18125.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Go Framework/tooling: sqlc Domain: auth service Logic challenge: partial checkpoint corruption Task type: performance_bottleneck_patch Difficulty: h...
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: Java Framework/tooling: Spring Boot Domain: document processing API Logic challenge: mismatched API contract Task type: cross_stack_outage_fix Diffi...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of realtime systems for scenario: payment processing. Primary language: typescript. Difficulty: expert. Constraints: provide rollout and rollback guidance, include tests or verification strategy, include invariants and failure modes. Component: component_ygqvwiq. Assume schem...
WithinUsAI/Elite_GOD_Coder_100k
Design a production system for document processing supporting background jobs. Target platform: infra (Docker + Kubernetes). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must be secure-by-default, must be production-ready, must include tests, must include documentation/com...
WithinUsAI/GOD_Coder_100k
Task type: mechanized_spec Scenario: edge sync Domain focus: secure enclaves (defensive) Primary language: lean Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_bphesvuf Constraints: include backward compatibility and migration plan, assume adversarial inputs; validate everything, include failure...
WithinUsAI/Omega_Genesis_Coder_100k
Task type: static_analyzer Scenario: edge sync Domain focus: query planning Primary language: typescript Difficulty: hard Scale/SLO: 1M msgs/min Component: component_hflajrsk Constraints: include security threat model (defensive only), include failure modes and recovery, include verification strategy, include performan...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of edge/IoT for scenario: time-series metrics. Primary language: bash. Difficulty: hard. Constraints: avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, make the interface contract explici...
WithinUsAI/Elite_GOD_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C90808: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m76216.py` and `test_m76216.py`. ```python # m76216.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Implement a web feature for education: A/B experimentation. Target platform: web (React + TypeScript). Requirements: accessible UI, API integration, and tests. Constraints: must include type hints where applicable, must include documentation/comments, must be observable (logs/metrics/traces), must be production-ready. ...
WithinUsAI/GOD_Coder_100k
Debug and fix a subtle production bug related to search + pagination in a e-commerce service. Target platform: backend (Node.js). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must include clear error handling, must be production-ready, must avoid global state. Difficulty: eas...
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: 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: SQL Dependency challenge: broken pagination cursor Task type: version_conflict_resoluti...
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: kernel_syscall_design Scenario: graph query service Domain focus: kernel primitives Primary language: cpp Difficulty: expert Scale/SLO: p99 < 150ms Component: component_apimgppz Constraints: include security threat model (defensive only), include failure modes and recovery, avoid data races and undefined beh...
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
Build an elite-grade solution in the domain of databases for scenario: job scheduler. Primary language: python. Difficulty: hard. Constraints: include invariants and failure modes, design for backward compatibility and migrations, document performance characteristics, include tests or verification strategy. Component: ...
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: artifact registry Logic challenge: S3-compatible upload inconsistency Task type: multi_file_migration_repair D...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: program_synthesis_safe Scenario: job scheduler Domain focus: secure enclaves (defensive) Primary language: go Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_mmpjibgd Constraints: include performance model and limits, include security threat model (defensive only), include backward co...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of gpu compute for scenario: inventory & ordering. Primary language: rust. Difficulty: hard. Constraints: include invariants and failure modes, assume untrusted inputs; validate and sanitize, make the interface contract explicit, avoid undefined behavior and data races. Compo...
WithinUsAI/Elite_GOD_Coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Produce an offline-first self-evolving code assi...
WithinUsAI/Royal_Ghost_Coder_501k
Fix 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 provide clear error messages, must include tests, must be streaming-friendly. Difficulty: easy. Guarantee deterministic output ordering. Deliverable: p...
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: j6zredt_3q.py ``...
WithinUsAI/Royal_Ghost_Coder_501k
Perform a code review for a IoT telemetry PR implementing offline-first sync. Target platform: data (SQL + Python). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must include type hints where applicable, must be secure-by-default, must be easy to extend, must avoi...
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: model serving gateway Stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Cross-layer incident: multi-tenant access leak Task type: full_...
WithinUsAI/GOD_Coder_Complete_DataSet
Improve typing and robustness of a Python module used for CLI tooling. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: must be memory-efficient, must be streaming-friendly. Difficulty: easy. Include a small CLI example if relevant. Deliverable: API + referenc...
WithinUsAI/python_GOD_coder_100k
Write pytest tests for `f12234`. ```python def f12234(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m87462 import f12234 def test_known(): assert f12234(3,4) == 25 def test_zero(): assert f12234(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Add a clear docstring and type hints to this function: ```python def f43932(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f43932(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: ynh3c5b4_wtm.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: static_analyzer Scenario: rate limit gateway Domain focus: stream processing Primary language: python Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_tuthhszj Constraints: explicit contracts and invariants, assume adversarial inputs; validate everything, include performance model and ...
WithinUsAI/Omega_Genesis_Coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C00937: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m23149.py` and `test_m23149.py`. ```python # m23149.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: chat messaging. Primary language: rust. Difficulty: expert. Constraints: assume untrusted inputs; validate and sanitize, include invariants and failure modes, design for backward compatibility and migrations, make the interfac...
WithinUsAI/Elite_GOD_Coder_100k
Task type: compiler_backend_ir Scenario: identity and access Domain focus: high-frequency trading systems (safe engineering) Primary language: cpp Difficulty: expert Scale/SLO: p99 < 50ms Component: component_tdpzxmyb Constraints: include backward compatibility and migration plan, include deterministic replay plan, inc...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of sre/observability for scenario: document indexing. Primary language: python. Difficulty: expert. Constraints: include invariants and failure modes, document performance characteristics, avoid undefined behavior and data races. Component: component_luelzhz. Assume cold-star...
WithinUsAI/Elite_GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f91790(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f91790(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Implement role-based access control for a IoT telemetry product. Target platform: backend (Node.js). Requirements: provide production-ready code, configuration, and tests. Constraints: must include type hints where applicable, must include clear error handling, must include tests. Difficulty: expert. Assume PII must be...
WithinUsAI/GOD_Coder_100k
Refactor an existing codebase in developer tooling to support multi-tenant isolation cleanly. Target platform: infra (Docker + Kubernetes). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must be easy to extend, must be performant under load, must be production-ready, m...
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: JavaScript Framework/tooling: Playwright Domain: repo automation Logic challenge: gRPC retry storm Task type: misleading_symptom_debug Difficulty: h...
WithinUsAI/GOD_Coder_Complete_DataSet
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C83817: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m44909.py` and `test_m44909.py`. ```python # m44909.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor an existing codebase in developer tooling to support analytics pipeline cleanly. Target platform: ML (scikit + batch). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must include documentation/comments, must be production-ready, must include tests. Difficulty:...
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: miciz8n5e0u.py `...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of distributed systems for scenario: job scheduler. Primary language: rust. Difficulty: hard. Constraints: include invariants and failure modes, provide rollout and rollback guidance, document performance characteristics, include tests or verification strategy. Component: com...
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: ujbyl24.py ```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: fm53l...
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: xpik9ot8vd1e.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of high-performance services for scenario: payment processing. Primary language: python. Difficulty: medium. Constraints: avoid undefined behavior and data races, include invariants and failure modes, assume untrusted inputs; validate and sanitize, make the interface contract...
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: p8wwbxmffpki.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of high-performance services for scenario: rate limiting gateway. Primary language: python. Difficulty: medium. Constraints: include tests or verification strategy, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, document perf...
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: Python Framework/tooling: pytest Domain: repo automation Logic challenge: broken pagination cursor Task type: state_machine_patch Difficulty: medium...
WithinUsAI/GOD_Coder_Complete_DataSet
Optimize while preserving behavior and order. ```python def f78168(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m54024.py` with types and O(n) average. ```python # m54024.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: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of ml systems for scenario: inventory & ordering. Primary language: rust. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, include tests or verification strategy, document performance characteristics. Component: component_bydnvrp. Assume strict a...
WithinUsAI/Elite_GOD_Coder_100k
Debug and fix a subtle production bug related to idempotent payments in a enterprise SaaS service. Target platform: infra (Docker + Kubernetes). Requirements: identify root cause, provide patch, and add regression tests. Constraints: must be performant under load, must include tests, must be easy to extend. Difficulty:...
WithinUsAI/GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f28058(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f28058(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C51431: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m73187.py` and `test_m73187.py`. ```python # m73187.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Write secure, defensive Python code for validation. Requirements: input validation, safe file handling, prevent path traversal, include tests. Constraints: must include type hints, must provide clear error messages, must avoid global state, stdlib-only. Difficulty: easy. Ensure the API is testable via dependency inject...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f23281(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 `m46183.py` and `test_m46183.py`. *** Begin Patch *** Update File: m46183.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: storage_engine Scenario: payment ledger Domain focus: runtime systems Primary language: bash Difficulty: hard Scale/SLO: p99 < 150ms Component: component_ccnbqvul Constraints: include failure modes and recovery, explicit contracts and invariants, include deterministic replay plan, include security threat mod...
WithinUsAI/Omega_Genesis_Coder_100k
Fix the bug and add pytest tests. ```python def f35183(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 `m62169.py` and `test_m62169.py`. *** Begin Patch *** Update File: m62169.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: o_t0f3cs.py ```p...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of gpu compute for scenario: feature flagging. Primary language: rust. Difficulty: expert. Constraints: design for backward compatibility and migrations, include tests or verification strategy, make the interface contract explicit, provide rollout and rollback guidance, assum...
WithinUsAI/Elite_GOD_Coder_100k
Fix a subtle bug in a Python module used for metrics aggregation. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must be easy to extend, must include docstrings. Difficulty: medium. Handle empty inputs and malformed records gracefully. Deliverable: API + refere...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f92251(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 `m98893.py` and `test_m98893.py`. *** Begin Patch *** Update File: m98893.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Build an elite-grade solution in the domain of databases for scenario: rate limiting gateway. Primary language: typescript. Difficulty: hard. Constraints: include invariants and failure modes, make the interface contract explicit, avoid undefined behavior and data races. Component: component_lofxsrm. Assume cold-start ...
WithinUsAI/Elite_GOD_Coder_100k