text
stringlengths
355
3.69k
source
stringclasses
6 values
Build an elite-grade solution in the domain of databases for scenario: inventory & ordering. Primary language: rust. Difficulty: hard. Constraints: include tests or verification strategy, assume untrusted inputs; validate and sanitize, include invariants and failure modes, provide rollout and rollback guidance. Compone...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of realtime systems for scenario: multi-tenant SaaS. Primary language: bash. Difficulty: medium. Constraints: include invariants and failure modes, avoid undefined behavior and data races, assume untrusted inputs; validate and sanitize, include tests or verification strategy....
WithinUsAI/Elite_GOD_Coder_100k
Refactor a Python module used for telemetry ingestion into a clean, extensible design. Requirements: outline the new architecture briefly, then provide the refactored code and tests. Constraints: must handle Windows paths safely, must avoid global state. Difficulty: hard. Avoid quadratic behavior on large inputs. Deli...
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: i9k5o1i.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: System domain: benchmark harness Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Cross-layer incident: transaction boundary bug Task type: aut...
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: team dashboard Logic challenge: schema drift during deployment Task type: monorepo_toolchain_recovery Difficult...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: kernel_syscall_design Scenario: document indexing pipeline Domain focus: network protocols Primary language: cpp Difficulty: expert+ Scale/SLO: 50 TB/day ingestion Component: component_hkiroxqa Constraints: explicit contracts and invariants, include verification strategy, include performance model and limits...
WithinUsAI/Omega_Genesis_Coder_100k
Design a production system for customer support supporting webhooks. Target platform: backend (Python FastAPI). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must include type hints where applicable, must include documentation/comments, must be easy to extend, must include ...
WithinUsAI/GOD_Coder_100k
Add a clear docstring and type hints to this function: ```python def f79839(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f79839(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: chat messaging. Primary language: go. Difficulty: expert. Constraints: avoid undefined behavior and data races, document performance characteristics, include tests or verification strategy. Component: component_erjjttr. Assume compliance req...
WithinUsAI/Elite_GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: System domain: data pipeline Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Cross-layer incident: dead-letter queue replay Task type: full_st...
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: k_uwb22azs19.py ...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: tla_state_machine Scenario: time-series metrics store Domain focus: model checking Primary language: tla+ Difficulty: expert+ Scale/SLO: 99.99% availability Component: component_ukhhawnh Constraints: include test vectors and fuzz strategy, include deterministic replay plan, include security threat model (def...
WithinUsAI/Omega_Genesis_Coder_100k
Design and implement an algorithm for data modeling. Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests. Constraints: stdlib-only, must be memory-efficient, must provide clear error messages, must include type hints. Difficulty: medium. Guarantee deterministic output ord...
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: JavaScript Framework/tooling: Express Domain: team dashboard Logic challenge: monorepo toolchain skew Task type: parser_validation_logic Difficulty:...
WithinUsAI/GOD_Coder_Complete_DataSet
Add a clear docstring and type hints to this function: ```python def f82136(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f82136(s: str) -> str: """Normalize a string: keep only alphanumerics and lowercase the result.""" return "".join(ch for c...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f17553(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m31079.py` with types and O(n) average. ```python # m31079.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix a subtle bug in a Python module used for time series. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must include docstrings, must be streaming-friendly, stdlib-only. Difficulty: easy. Provide helpful exceptions with actionable messages. Deliverable: implem...
WithinUsAI/python_GOD_coder_100k
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 include docstrings, stdlib-only, must be memory-efficient, must include type hints. Difficulty: hard. Guarantee deterministic output ord...
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: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker Language: JavaScript Dependency challenge: schema drift during deployment Task type: b...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of ml systems for scenario: chat messaging. Primary language: go. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, include tests or verification strategy. Component: component_wcdbiji. Assume schema change...
WithinUsAI/Elite_GOD_Coder_100k
Build an elite-grade solution in the domain of distributed systems for scenario: event ingestion. Primary language: rust. Difficulty: expert. Constraints: include tests or verification strategy, avoid undefined behavior and data races, provide rollout and rollback guidance, make the interface contract explicit. Compone...
WithinUsAI/Elite_GOD_Coder_100k
Optimize while preserving behavior and order. ```python def f43538(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m91934.py` with types and O(n) average. ```python # m91934.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 ml systems for scenario: job scheduler. Primary language: python. Difficulty: hard. Constraints: design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, make the interface contract explicit. Component: component_glfuauj. Assume par...
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: vt45e2s.py ```py...
WithinUsAI/Royal_Ghost_Coder_501k
Task type: kernel_syscall_design Scenario: time-series metrics store Domain focus: stream processing Primary language: cpp Difficulty: expert Scale/SLO: p99 < 50ms Component: component_cwphrcfr Constraints: assume adversarial inputs; validate everything, explicit contracts and invariants, include deterministic replay p...
WithinUsAI/Omega_Genesis_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Language: JavaScript Dependency challenge: timezone bug in reporting Task type: container_ru...
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: Repository domain: payments platform Primary language: YAML Framework/tooling: Kubernetes Reported problem: invalid rollback sequence Task type: code_review_f...
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: Go Framework/tooling: testify Domain: notification service Logic challenge: gRPC retry storm Task type: misleading_symptom_debug Difficulty: hard R...
WithinUsAI/GOD_Coder_Complete_DataSet
Implement an ML engineering workflow for gaming focusing on audit logs. Target platform: ML (training + serving). Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring. Constraints: must include tests, must be secure-by-default, must include documentation/comments, must be easy...
WithinUsAI/GOD_Coder_100k
Task type: secure_architecture Scenario: feature-flag evaluation Domain focus: data lineage & governance Primary language: typescript Difficulty: expert Scale/SLO: p99 < 50ms Component: component_mmhnxtly Constraints: include verification strategy, include backward compatibility and migration plan, assume adversarial i...
WithinUsAI/Omega_Genesis_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Language: C++ Dependency challenge: gRPC retry storm Task type: lockfile_repair Difficulty: ...
WithinUsAI/GOD_Coder_Complete_DataSet
Optimize while preserving behavior and order. ```python def f93185(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m70455.py` with types and O(n) average. ```python # m70455.py from __future__ import annotations from typing import Iterable, List, Set, TypeVar T=TypeVar("T") d...
WithinUsAI/Royal_Ghost_Coder_501k
Improve typing and robustness of a Python module used for validation. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: must be streaming-friendly, must include tests. Difficulty: medium. Support both Windows and POSIX paths correctly. Deliverable: API + refere...
WithinUsAI/python_GOD_coder_100k
Task type: storage_engine Scenario: graph query service Domain focus: edge robotics (safe) Primary language: sql Difficulty: expert Scale/SLO: 1M msgs/min Component: component_ihrbfjfz Constraints: include failure modes and recovery, include security threat model (defensive only), include verification strategy, include...
WithinUsAI/Omega_Genesis_Coder_100k
Fix the bug and add pytest tests. ```python def f04886(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 `m00698.py` and `test_m00698.py`. *** Begin Patch *** Update File: m00698.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: System domain: developer platform Stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions Cross-layer incident: websocket reconnect storm Task t...
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: stdlib-only, must include type hints, must provide clear error messages, must include tests. Difficulty: expert. Handle empty inputs and malformed records...
WithinUsAI/python_GOD_coder_100k
Task type: ml_system_design Scenario: job scheduler Domain focus: formal verification Primary language: bash Difficulty: expert+ Scale/SLO: p99 < 50ms Component: component_ootkxiua Constraints: include verification strategy, explicit contracts and invariants, avoid data races and undefined behavior, include failure mod...
WithinUsAI/Omega_Genesis_Coder_100k
Design a small, production-grade Python API for parsing. Requirements: define data models and interfaces, implement reference version, include tests. Constraints: must be memory-efficient, stdlib-only, must be easy to extend. Difficulty: expert. Ensure the API is testable via dependency injection. Deliverable: impleme...
WithinUsAI/python_GOD_coder_100k
Implement A/B experimentation for a logistics product. Target platform: backend (Python FastAPI). Requirements: provide production-ready code, configuration, and tests. Constraints: must avoid global state, must be production-ready, must be secure-by-default, must include type hints where applicable. Difficulty: hard. ...
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: rpu4w...
WithinUsAI/Royal_Ghost_Coder_501k
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 handle Windows paths safely, must include docstrings. Difficulty: hard. Include a small CLI example if relevant. Deliverable: API + r...
WithinUsAI/python_GOD_coder_100k
Refactor an existing codebase in fraud detection to support idempotent payments cleanly. Target platform: backend (Go). Requirements: propose new modules/layers, dependency boundaries, and migration plan. Constraints: must be easy to extend, must avoid global state, must include clear error handling. Difficulty: hard. ...
WithinUsAI/GOD_Coder_100k
Design CI/CD for a calendar/scheduling service delivering background jobs. Target platform: mobile (iOS Swift). Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks. Constraints: must avoid global state, must include documentation/comments, must include clear error handling, must be easy to ex...
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: 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: poj03wm4o6dh.py ...
WithinUsAI/Royal_Ghost_Coder_501k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: nw4yt4mn0kp.py `...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: C# Framework/tooling: EF Core Domain: notification service Logic challenge: transaction boundary bug Task type: edge_case_hardening Difficulty: hard...
WithinUsAI/GOD_Coder_Complete_DataSet
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Refactor to modern typed Python with immutabilit...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions Language: Java Dependency challenge: idempotent retry design Task type: cve_depe...
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: vdae_yfkha.py ``...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Project domain: model serving gateway Implementation stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Software delivery problem: path traversal on downloa...
WithinUsAI/GOD_Coder_Complete_DataSet
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Optimize while preserving behavior. File: dnect...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f14044(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 `m16292.py` and `test_m16292.py`. *** Begin Patch *** Update File: m16292.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: krljk6txyntl.py ...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: Python Framework/tooling: Django Domain: team dashboard Logic challenge: unsafe deserialization Task type: distributed_debug Difficulty: hard Retur...
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: Rust Framework/tooling: cargo test Reported problem: idempotent retry design Task type: api_endpoint_work Di...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix a subtle bug in a Python module used for report generation. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must include tests, must be memory-efficient, must handle Windows paths safely. Difficulty: hard. Ensure the API is testable via dependency injection. ...
WithinUsAI/python_GOD_coder_100k
Task type: schema_evolution_contracts Scenario: rate limit gateway Domain focus: compiler toolchains Primary language: python Difficulty: hard Scale/SLO: multi-region active-active Component: component_ambcmaeo Constraints: include security threat model (defensive only), avoid data races and undefined behavior, include...
WithinUsAI/Omega_Genesis_Coder_100k
Build an elite-grade solution in the domain of edge/IoT for scenario: document indexing. Primary language: python. Difficulty: hard. Constraints: assume untrusted inputs; validate and sanitize, include invariants and failure modes, avoid undefined behavior and data races. Component: component_thslksa. Assume partial ne...
WithinUsAI/Elite_GOD_Coder_100k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: System domain: search service Stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker Cross-layer incident: CI failures after dependency upgrade Task type: obser...
WithinUsAI/GOD_Coder_Complete_DataSet
Build an elite-grade solution in the domain of sre/observability for scenario: chat messaging. Primary language: python. Difficulty: hard. Constraints: include invariants and failure modes, make the interface contract explicit, provide rollout and rollback guidance. Component: component_jffsxdg. Assume strict auditabil...
WithinUsAI/Elite_GOD_Coder_100k
Implement file uploads for a content moderation product. Target platform: data (SQL + Python). Requirements: provide production-ready code, configuration, and tests. Constraints: must include type hints where applicable, must be secure-by-default, must be performant under load. Difficulty: hard. Assume untrusted input;...
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: developer platform Stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker Cross-layer incident: S3-compatible upload inconsistency Task type...
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: System domain: auth service Stack: Airflow, dbt, DuckDB, MinIO, pytest Cross-layer incident: path traversal on downloads Task type: schema_contract_alignment ...
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 f98306(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 `m99758.py` and `test_m99758.py`. *** Begin Patch *** Update File: m99758.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: r9h0q7dq.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: System domain: auth service Stack: GitHub Actions, Docker Compose, Kubernetes, Terraform Cross-layer incident: CI failures after dependency upgrade Task type:...
WithinUsAI/GOD_Coder_Complete_DataSet
Fix the bug and add pytest tests. ```python def f67672(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 `m81096.py` and `test_m81096.py`. *** Begin Patch *** Update File: m81096.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Design a production system for gaming supporting event-driven workflows. Target platform: web (React + TypeScript). Requirements: APIs, data model, scaling strategy, failure modes, and security. Constraints: must include clear error handling, must be performant under load, must be easy to extend, must be production-rea...
WithinUsAI/GOD_Coder_100k
Fix the bug and add pytest tests. ```python def f03583(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 `m43369.py` and `test_m43369.py`. *** Begin Patch *** Update File: m43369.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 domain: document processing API Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform Software delivery problem: invalid rollbac...
WithinUsAI/GOD_Coder_Complete_DataSet
Write pytest tests for `f25289`. ```python def f25289(a: int, b: int) -> int: return a*a + b*b ``` Include edge cases and a property-style check. ```python import random from m89327 import f25289 def test_known(): assert f25289(3,4) == 25 def test_zero(): assert f25289(0,0) == 0 def test_property_nonne...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize while preserving behavior and order. ```python def f00967(xs): out=[] for x in xs: if x not in out: out.append(x) return out ``` Return `m57281.py` with types and O(n) average. ```python # m57281.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: observability collector Primary language: YAML Framework/tooling: Terraform Reported problem: rate-limit bypass Task type: code_review_fix ...
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: ASP.NET Core, SQL Server, EF Core, xUnit, Docker Language: SQL Dependency challenge: dead-letter queue replay Task type: build_reproducibility_...
WithinUsAI/GOD_Coder_Complete_DataSet
Improve typing and robustness of a Python module used for time series. Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests. Constraints: must provide clear error messages, must be streaming-friendly, must handle Windows paths safely, must include docstrings. Difficulty: easy. A...
WithinUsAI/python_GOD_coder_100k
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 be easy to extend, stdlib-only, must provide clear error messages. Difficulty: easy. Support both Windows and POSIX paths corre...
WithinUsAI/python_GOD_coder_100k
Write a thorough test suite for a Python component used for report generation. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must avoid global state, must be memory-efficient, must be easy to extend. Difficulty: easy. Guarantee deterministic output ordering. Deliverable: correct...
WithinUsAI/python_GOD_coder_100k
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access. Task: Fix a bug and add tests. File: t9nqq96c2.py ```...
WithinUsAI/Royal_Ghost_Coder_501k
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders. user: Language: C++ Framework/tooling: Catch2 Domain: team dashboard Logic challenge: path traversal on downloads Task type: misleading_symptom_debug Difficulty: ha...
WithinUsAI/GOD_Coder_Complete_DataSet
Task type: compiler_backend_ir Scenario: payment ledger Domain focus: program synthesis (safe) Primary language: cpp Difficulty: hard Scale/SLO: 1M msgs/min Component: component_iydxeutp Constraints: include verification strategy, include deterministic replay plan, include failure modes and recovery, assume adversarial...
WithinUsAI/Omega_Genesis_Coder_100k
Perform a code review for a document processing PR implementing real-time notifications. Target platform: ML (PyTorch + serving). Requirements: list critical issues, improvements, and provide an improved patch excerpt. Constraints: must include documentation/comments, must be performant under load, must include type hi...
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: fu9c3...
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: TypeScript Framework/tooling: Vitest Domain: reporting engine Logic challenge: slow cold start Task type: state_machine_patch Difficulty: hard Retu...
WithinUsAI/GOD_Coder_Complete_DataSet
Write a thorough test suite for a Python component used for time series. Requirements: cover edge cases, invalid inputs, and behavior invariants. Constraints: must include type hints, must handle Windows paths safely. Difficulty: medium. Provide helpful exceptions with actionable messages. Deliverable: API + reference...
WithinUsAI/python_GOD_coder_100k
Refactor to typed, mostly-immutable Python and add minimal tests. ```python class C93109: def __init__(self, values): self.values=list(values) def mean(self): return sum(self.values)/len(self.values) ``` Return `m76393.py` and `test_m76393.py`. ```python # m76393.py from __future__ import annotations from datacla...
WithinUsAI/Royal_Ghost_Coder_501k
Optimize a Python workflow for CLI tooling. Requirements: provide an optimized implementation and a small benchmark harness. Constraints: must be easy to extend, must avoid global state. Difficulty: medium. Guarantee deterministic output ordering. Deliverable: production-ready reference solution. Strategy: - Avoid rep...
WithinUsAI/python_GOD_coder_100k
Task type: ml_system_design Scenario: edge sync Domain focus: runtime systems Primary language: bash Difficulty: expert+ Scale/SLO: 50 TB/day ingestion Component: component_aurqujnt Constraints: include backward compatibility and migration plan, include security threat model (defensive only), include test vectors and f...
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: Docker Compose Domain: notification service Logic challenge: build reproducibility failure Task type: misleading_symptom_deb...
WithinUsAI/GOD_Coder_Complete_DataSet
Add a clear docstring and type hints to this function: ```python def f70325(s): return ''.join(x for x in s if x.isalnum()).lower() ``` ```python from __future__ import annotations def f70325(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
Build an elite-grade solution in the domain of edge/IoT for scenario: payment processing. Primary language: rust. Difficulty: hard. Constraints: design for backward compatibility and migrations, document performance characteristics, make the interface contract explicit. Component: component_qjeuhmt. Assume strict audit...
WithinUsAI/Elite_GOD_Coder_100k
Fix a subtle bug in a Python module used for parsing. Requirements: explain root cause briefly, provide corrected code, and add regression tests. Constraints: must include tests, must be streaming-friendly, must include docstrings. Difficulty: expert. Handle empty inputs and malformed records gracefully. Deliverable: ...
WithinUsAI/python_GOD_coder_100k
Fix the bug and add pytest tests. ```python def f22267(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 `m03181.py` and `test_m03181.py`. *** Begin Patch *** Update File: m03181.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Fix the bug and add pytest tests. ```python def f92400(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 `m13200.py` and `test_m13200.py`. *** Begin Patch *** Update File: m13200.py @@ d...
WithinUsAI/Royal_Ghost_Coder_501k
Implement event-driven workflows for a e-commerce product. Target platform: infra (Docker + Kubernetes). Requirements: provide production-ready code, configuration, and tests. Constraints: must include clear error handling, must include documentation/comments, must be observable (logs/metrics/traces). Difficulty: easy....
WithinUsAI/GOD_Coder_100k