text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Task type: mechanized_spec
Scenario: document indexing pipeline
Domain focus: stream processing
Primary language: lean
Difficulty: expert
Scale/SLO: 99.99% availability
Component: component_qobvxixt
Constraints: include performance model and limits, include security threat model (defensive only), explicit contracts and... | WithinUsAI/Omega_Genesis_Coder_100k |
Provision infrastructure for a healthtech workload providing multi-tenant isolation.
Target platform: infra (Terraform).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must include clear error handling, must include documentation/comments, must be production-ready, must... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of realtime systems for scenario: multi-tenant SaaS.
Primary language: typescript.
Difficulty: medium.
Constraints: include tests or verification strategy, document performance characteristics, make the interface contract explicit, provide rollout and rollback guidance.
Compo... | WithinUsAI/Elite_GOD_Coder_100k |
Write secure, defensive Python code for CLI tooling.
Requirements: input validation, safe file handling, prevent path traversal, include tests.
Constraints: must avoid global state, must be easy to extend.
Difficulty: hard. Ensure the API is testable via dependency injection.
Deliverable: implementation + tests.
```py... | 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: Repository domain: benchmark harness
Primary language: SQL
Framework/tooling: PostgreSQL
Reported problem: optimistic locking conflict
Task type: api_endpoint... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix the bug and add pytest tests.
```python
def f58654(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 `m65522.py` and `test_m65522.py`.
*** Begin Patch
*** Update File: m65522.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: job scheduler.
Primary language: rust.
Difficulty: medium.
Constraints: make the interface contract explicit, avoid undefined behavior and data races, design for backward compatibility and migrations.
Component: component_kdtf... | WithinUsAI/Elite_GOD_Coder_100k |
Write a thorough test suite for a Python component used for ETL pipelines.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must be memory-efficient, must avoid global state.
Difficulty: hard. Support both Windows and POSIX paths correctly.
Deliverable: corrected code and verificat... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: aoy5q... | 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: yzxqq... | 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 |
Write a thorough test suite for a Python component used for file synchronization.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must avoid global state, must include tests.
Difficulty: hard. Ensure the API is testable via dependency injection.
Deliverable: production-ready refer... | WithinUsAI/python_GOD_coder_100k |
Write pytest tests for `f87013`.
```python
def f87013(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m83859 import f87013
def test_known():
assert f87013(3,4) == 25
def test_zero():
assert f87013(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: dcemb... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement an ML engineering workflow for healthtech focusing on offline-first sync.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must be easy to extend, must include clear error handling, must include documentatio... | WithinUsAI/GOD_Coder_100k |
Task type: distributed_algorithm
Scenario: graph query service
Domain focus: real-time scheduling
Primary language: go
Difficulty: expert+
Scale/SLO: 50 TB/day ingestion
Component: component_zjzziyzc
Constraints: avoid data races and undefined behavior, include test vectors and fuzz strategy, include deterministic repl... | WithinUsAI/Omega_Genesis_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: cfqck1rvv6.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 stack: Airflow, dbt, DuckDB, MinIO, pytest
Language: Rust
Dependency challenge: memory leak in AST cache
Task type: migration_patch
Difficulty: hard
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write pytest tests for `f66366`.
```python
def f66366(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m52338 import f66366
def test_known():
assert f66366(3,4) == 25
def test_zero():
assert f66366(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: secure_architecture
Scenario: edge sync
Domain focus: program synthesis (safe)
Primary language: python
Difficulty: hard
Scale/SLO: 50 TB/day ingestion
Component: component_bhgqmqeq
Constraints: include performance model and limits, include failure modes and recovery, include backward compatibility and migra... | 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: cl9tvqfa.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for ETL pipelines.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must handle Windows paths safely, must be streaming-friendly.
Difficulty: easy. Ensure the API is testable via dependency injection.
Deliverable: implemen... | 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: Rust, Axum, SQLx, Redis, Tokio, Docker
Language: Bash
Dependency challenge: mismatched API contract
Task type: migration_patch
Difficulty: medi... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of compilers for scenario: document indexing.
Primary language: python.
Difficulty: hard.
Constraints: include tests or verification strategy, design for backward compatibility and migrations, make the interface contract explicit, provide rollout and rollback guidance.
Compon... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C95934:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m68918.py` and `test_m68918.py`.
```python
# m68918.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f02561(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f02561(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: n2250wcm7sm.py
`... | WithinUsAI/Royal_Ghost_Coder_501k |
Design a production system for education supporting audit logs.
Target platform: infra (Docker + Kubernetes).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must avoid global state, must include clear error handling, must be production-ready.
Difficulty: expert. Assume schem... | 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: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Cross-layer incident: transaction boundary bug
Task... | WithinUsAI/GOD_Coder_Complete_DataSet |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize a Python workflow for time series.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must handle Windows paths safely, must provide clear error messages.
Difficulty: expert. Guarantee deterministic output ordering.
Deliverable: production-ready reference solution.
S... | 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: TypeScript
Framework/tooling: React
Domain: search service
Logic challenge: broken pagination cursor
Task type: distributed_debug
Difficulty: hard
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize a Python workflow for log processing.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: stdlib-only, must be memory-efficient.
Difficulty: easy. Avoid quadratic behavior on large inputs.
Deliverable: API + reference implementation + tests.
Strategy:
- Avoid repeated... | WithinUsAI/python_GOD_coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: nf16s... | 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 |
Implement real-time notifications for a IoT telemetry product.
Target platform: mobile (Android Kotlin).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must be performant under load, must include type hints where applicable, must be production-ready, must be observable (logs/metrics... | 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: Project stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Language: SQL
Dependency challenge: transaction boundary bug
Task type: lockfile_repair
Difficulty: hard... | WithinUsAI/GOD_Coder_Complete_DataSet |
Improve typing and robustness of a Python module used for event dispatching.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: must include docstrings, must be streaming-friendly, must avoid global state.
Difficulty: medium. Guarantee deterministic output orderi... | 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: zqg3au8d5h.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: gqopx... | 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: cd32wd0suqfn.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: zcdllwt_xrkn.py
... | WithinUsAI/Royal_Ghost_Coder_501k |
Design and implement an algorithm for data modeling.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must handle Windows paths safely, must include tests, must be memory-efficient, must include type hints.
Difficulty: hard. Guarantee deterministic output... | WithinUsAI/python_GOD_coder_100k |
Add a clear docstring and type hints to this function:
```python
def f40158(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f40158(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Secure-by-default implementation for rate limiting in a e-commerce product.
Target platform: mobile (Android Kotlin).
Requirements: threat model, input validation, authz/authn guidance, safe storage, tests.
Constraints: must be secure-by-default, must be observable (logs/metrics/traces), must include clear error handli... | 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: uhxkb_d.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize a Python workflow for rate limiting.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must be streaming-friendly, must avoid global state, must handle Windows paths safely, must provide clear error messages.
Difficulty: medium. Guarantee deterministic output orderin... | 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: Repository domain: benchmark harness
Primary language: C#
Framework/tooling: NUnit
Reported problem: monorepo toolchain skew
Task type: security_patch
Difficu... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: compiler_backend_ir
Scenario: real-time notification hub
Domain focus: runtime systems
Primary language: rust
Difficulty: expert
Scale/SLO: 50 TB/day ingestion
Component: component_eplpwklx
Constraints: include deterministic replay plan, include failure modes and recovery, include security threat model (defe... | 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: reporting engine
Logic challenge: schema drift during deployment
Task type: performance_bottleneck_pa... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of realtime systems for scenario: document indexing.
Primary language: rust.
Difficulty: medium.
Constraints: make the interface contract explicit, design for backward compatibility and migrations, assume untrusted inputs; validate and sanitize, avoid undefined behavior and d... | WithinUsAI/Elite_GOD_Coder_100k |
Design CI/CD for a enterprise SaaS service delivering multi-tenant isolation.
Target platform: mobile (iOS Swift).
Requirements: pipelines, checks, artifact strategy, deployments, and rollbacks.
Constraints: must be easy to extend, must avoid global state, must be secure-by-default, must be performant under load, must ... | WithinUsAI/GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: mr71x... | 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: Flask
Domain: benchmark harness
Logic challenge: path traversal on downloads
Task type: performance_bottleneck_patch
Diffi... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: smt_constraint_model
Scenario: payment ledger
Domain focus: query planning
Primary language: python
Difficulty: expert
Scale/SLO: 50 TB/day ingestion
Component: component_pzwukirm
Constraints: include security threat model (defensive only), include deterministic replay plan, include failure modes and recover... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor an existing codebase in social media to support caching cleanly.
Target platform: infra (Docker + Kubernetes).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must be easy to extend, must be production-ready, must be performant under load, must avoid global sta... | 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 |
Refactor a Python module used for data modeling into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must include docstrings, must be streaming-friendly, must include type hints, must be easy to extend.
Difficulty: expert. Guarante... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of edge/IoT for scenario: chat messaging.
Primary language: python.
Difficulty: expert.
Constraints: avoid undefined behavior and data races, design for backward compatibility and migrations, document performance characteristics, make the interface contract explicit.
Componen... | WithinUsAI/Elite_GOD_Coder_100k |
Optimize while preserving behavior and order.
```python
def f94160(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m84880.py` with types and O(n) average.
```python
# m84880.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 operating systems for scenario: edge sync.
Primary language: go.
Difficulty: expert.
Constraints: make the interface contract explicit, provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, ... | 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: fzddcu.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: Language: YAML
Framework/tooling: GitHub Actions
Domain: payments platform
Logic challenge: slow cold start
Task type: transaction_integrity_fix
Difficulty: h... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of edge/IoT for scenario: document indexing.
Primary language: go.
Difficulty: medium.
Constraints: assume untrusted inputs; validate and sanitize, provide rollout and rollback guidance, document performance characteristics, design for backward compatibility and migrations.
C... | 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: developer platform
Implementation stack: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker
Software delivery problem: log redaction failure
T... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize a Python workflow for metrics aggregation.
Requirements: provide an optimized implementation and a small benchmark harness.
Constraints: must include type hints, must handle Windows paths safely, must be streaming-friendly, must provide clear error messages.
Difficulty: hard. Provide helpful exceptions with ac... | WithinUsAI/python_GOD_coder_100k |
Add a clear docstring and type hints to this function:
```python
def f49697(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f49697(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: xo7naq.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: o9t904af6ga8.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: reporting engine
Stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker
Cross-layer incident: schema drift during deployment
Task type: cache_... | WithinUsAI/GOD_Coder_Complete_DataSet |
Add a clear docstring and type hints to this function:
```python
def f83574(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f83574(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | 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: observability collector
Implementation stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Software delivery problem: monore... | 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: e73qv... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C52195:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m04015.py` and `test_m04015.py`.
```python
# m04015.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: compiler_backend_ir
Scenario: multi-tenant event ingestion
Domain focus: program synthesis (safe)
Primary language: rust
Difficulty: expert
Scale/SLO: 50 TB/day ingestion
Component: component_ovqujent
Constraints: include deterministic replay plan, avoid data races and undefined behavior, include performance... | 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 stream processing for scenario: chat messaging.
Primary language: sql.
Difficulty: medium.
Constraints: provide rollout and rollback guidance, include invariants and failure modes, avoid undefined behavior and data races, make the interface contract explicit, design for ba... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of stream processing for scenario: chat messaging.
Primary language: rust.
Difficulty: hard.
Constraints: assume untrusted inputs; validate and sanitize, document performance characteristics, provide rollout and rollback guidance.
Component: component_rgurdbh.
Assume crash-on... | WithinUsAI/Elite_GOD_Coder_100k |
Write a thorough test suite for a Python component used for file synchronization.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must be memory-efficient, must be streaming-friendly, must provide clear error messages.
Difficulty: expert. Handle empty inputs and malformed records g... | WithinUsAI/python_GOD_coder_100k |
Write a thorough test suite for a Python component used for time series.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must be streaming-friendly, must include type hints, must handle Windows paths safely, stdlib-only.
Difficulty: expert. Provide helpful exceptions with actionabl... | WithinUsAI/python_GOD_coder_100k |
Write pytest tests for `f63678`.
```python
def f63678(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m51954 import f63678
def test_known():
assert f63678(3,4) == 25
def test_zero():
assert f63678(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Write secure, defensive Python code for caching layer.
Requirements: input validation, safe file handling, prevent path traversal, include tests.
Constraints: stdlib-only, must be streaming-friendly, must be easy to extend, must include docstrings.
Difficulty: easy. Support both Windows and POSIX paths correctly.
Deli... | WithinUsAI/python_GOD_coder_100k |
Task type: ml_system_design
Scenario: document indexing pipeline
Domain focus: secure enclaves (defensive)
Primary language: typescript
Difficulty: hard
Scale/SLO: 10k RPS peak
Component: component_qybspvrw
Constraints: avoid data races and undefined behavior, include backward compatibility and migration plan, explicit... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix a subtle bug in a Python module used for event dispatching.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must be memory-efficient, must handle Windows paths safely.
Difficulty: medium. Ensure the API is testable via dependency injection.
Deliverable: corr... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f44194(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 `m77742.py` and `test_m77742.py`.
*** Begin Patch
*** Update File: m77742.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f12195(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m58885.py` with types and O(n) average.
```python
# m58885.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for caching layer.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must include docstrings, must be memory-efficient, must avoid global state, must be streaming-friendly.
Difficulty: easy. Include a small CLI example if releva... | WithinUsAI/python_GOD_coder_100k |
Task type: distributed_algorithm
Scenario: multi-tenant event ingestion
Domain focus: network protocols
Primary language: typescript
Difficulty: expert+
Scale/SLO: p99 < 150ms
Component: component_kducibmg
Constraints: include failure modes and recovery, include test vectors and fuzz strategy, explicit contracts and in... | WithinUsAI/Omega_Genesis_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f93842`.
```python
def f93842(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m13406 import f93842
def test_known():
assert f93842(3,4) == 25
def test_zero():
assert f93842(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f28534(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f28534(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement a web feature for healthtech: real-time notifications.
Target platform: web (React + TypeScript).
Requirements: accessible UI, API integration, and tests.
Constraints: must include documentation/comments, must be observable (logs/metrics/traces), must include type hints where applicable.
Difficulty: expert. 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: JavaScript
Framework/tooling: Node.js
Domain: model serving gateway
Logic challenge: stale cache invalidation
Task type: cross_stack_outage_fix
Diff... | 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 |
Perform a code review for a fraud detection PR implementing multi-tenant isolation.
Target platform: backend (Go).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must include tests, must be secure-by-default, must be easy to extend.
Difficulty: expert. Assume untru... | WithinUsAI/GOD_Coder_100k |
Add a clear docstring and type hints to this function:
```python
def f75105(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f75105(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 databases for scenario: edge sync.
Primary language: python.
Difficulty: medium.
Constraints: make the interface contract explicit, provide rollout and rollback guidance, avoid undefined behavior and data races.
Component: component_ssdlnqd.
Assume crash-only design; recov... | 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: sdw6qi7cf_.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: SQL
Framework/tooling: MySQL
Domain: payments platform
Logic challenge: broken pagination cursor
Task type: distributed_debug
Difficulty: hard
Retu... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: network_protocol
Scenario: document indexing pipeline
Domain focus: model checking
Primary language: go
Difficulty: expert
Scale/SLO: 50 TB/day ingestion
Component: component_lpgozhnf
Constraints: include performance model and limits, explicit contracts and invariants, include verification strategy, avoid da... | WithinUsAI/Omega_Genesis_Coder_100k |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.