text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Create a comprehensive test plan and automated tests for search + pagination in a gaming product.
Target platform: backend (Python FastAPI).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must include type hints where applicable, must be observable (logs/metrics/traces... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: document indexing.
Primary language: rust.
Difficulty: hard.
Constraints: provide rollout and rollback guidance, document performance characteristics, 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: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f76310(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f76310(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f32532`.
```python
def f32532(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m76076 import f32532
def test_known():
assert f32532(3,4) == 25
def test_zero():
assert f32532(0,0) == 0
def test_property_nonne... | 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: developer platform
Primary language: Java
Framework/tooling: Spring Boot
Reported problem: mismatched API contract
Task type: code_review_f... | 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: hn26puubejzn.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: wq0y4q9w3.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor a Python module used for report generation into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must be easy to extend, must be streaming-friendly, must include type hints.
Difficulty: expert. Support both Windows and POSI... | 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: 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: Repository domain: model serving gateway
Primary language: Bash
Framework/tooling: awk
Reported problem: invalid rollback sequence
Task type: test_repair
Diff... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: static_analyzer
Scenario: feature-flag evaluation
Domain focus: query planning
Primary language: go
Difficulty: hard
Scale/SLO: 100k RPS peak
Component: component_iarlmzkc
Constraints: include verification strategy, assume adversarial inputs; validate everything, explicit contracts and invariants, include de... | WithinUsAI/Omega_Genesis_Coder_100k |
Task type: tla_state_machine
Scenario: graph query service
Domain focus: distributed storage
Primary language: tla+
Difficulty: expert
Scale/SLO: 100k RPS peak
Component: component_yfwggpve
Constraints: include deterministic replay plan, include failure modes and recovery, include performance model and limits, include ... | WithinUsAI/Omega_Genesis_Coder_100k |
Task type: verification_properties
Scenario: feature-flag evaluation
Domain focus: distributed storage
Primary language: bash
Difficulty: hard
Scale/SLO: multi-region active-active
Component: component_peqxfixz
Constraints: avoid data races and undefined behavior, include verification strategy, assume adversarial input... | 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_xmrqrbb.
Assume compliance... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of high-performance services for scenario: document indexing.
Primary language: python.
Difficulty: expert.
Constraints: include tests or verification strategy, document performance characteristics, assume untrusted inputs; validate and sanitize.
Component: component_fyetqrp.... | 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: ozta2ths7x.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f69526(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f69526(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: perf_microarchitecture
Scenario: document indexing pipeline
Domain focus: secure enclaves (defensive)
Primary language: typescript
Difficulty: expert+
Scale/SLO: p99 < 150ms
Component: component_hwcwoyds
Constraints: include performance model and limits, include security threat model (defensive only), assume... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of distributed systems for scenario: inventory & ordering.
Primary language: go.
Difficulty: hard.
Constraints: include tests or verification strategy, make the interface contract explicit, document performance characteristics, include invariants and failure modes, avoid unde... | 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 stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Language: Rust
Dependency challenge: unsafe deserialization
Task type: version_c... | 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: u99cbx.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for validation.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must be easy to extend, stdlib-only.
Difficulty: expert. Include a small CLI example if relevant.
Deliverable: implementation + tests.
```python
from __futur... | WithinUsAI/python_GOD_coder_100k |
Build a data pipeline for a social media product around caching.
Target platform: data (SQL + Python).
Requirements: schema, ingestion, validation, backfills, and tests.
Constraints: must include tests, must be observable (logs/metrics/traces), must be secure-by-default.
Difficulty: medium. Assume 10k RPS peak traffic.... | WithinUsAI/GOD_Coder_100k |
Implement a concurrent Python solution for caching layer.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: must handle Windows paths safely, stdlib-only.
Difficulty: easy. Guarantee deterministic output ordering.
Deliverable: corrected code and verification ... | 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: pe3e8g3.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Add observability for A/B experimentation in a IoT telemetry system.
Target platform: mobile (Android Kotlin).
Requirements: structured logs, metrics, tracing, dashboards, and alerting rules.
Constraints: must avoid global state, must include tests, must be observable (logs/metrics/traces).
Difficulty: easy. Assume sch... | WithinUsAI/GOD_Coder_100k |
Debug and fix a subtle production bug related to file uploads in a logistics service.
Target platform: ML (scikit + batch).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must include clear error handling, must include type hints where applicable, must include tests, must be se... | WithinUsAI/GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f68486(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 `m95498.py` and `test_m95498.py`.
*** Begin Patch
*** Update File: m95498.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: C++
Framework/tooling: CMake
Domain: search service
Logic challenge: dead-letter queue replay
Task type: performance_bottleneck_patch
Difficulty: ha... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of gpu compute for scenario: event ingestion.
Primary language: go.
Difficulty: hard.
Constraints: avoid undefined behavior and data races, include invariants and failure modes, provide rollout and rollback guidance, make the interface contract explicit.
Component: 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: Repository domain: developer platform
Primary language: Rust
Framework/tooling: cargo test
Reported problem: monorepo toolchain skew
Task type: performance_pa... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of sre/observability for scenario: inventory & ordering.
Primary language: rust.
Difficulty: expert.
Constraints: provide rollout and rollback guidance, document performance characteristics, assume untrusted inputs; validate and sanitize, include tests or verification strateg... | 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: d4rqk... | 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: artifact registry
Stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Cross-layer incident: unsafe deserialization
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: Repository domain: observability collector
Primary language: Python
Framework/tooling: Django
Reported problem: schema drift during deployment
Task type: api_... | 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: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Language: TypeScript
Dependency challenge: invalid rollback sequence
Task type: lockfile_repair
D... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor an existing codebase in enterprise SaaS to support webhooks cleanly.
Target platform: infra (Terraform).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must be performant under load, must include clear error handling, must be observable (logs/metrics/traces), ... | WithinUsAI/GOD_Coder_100k |
Provision infrastructure for a e-commerce workload providing file uploads.
Target platform: backend (Python FastAPI).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must be performant under load, must include clear error handling, must include documentation/comments, mu... | 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: f08v3... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f12761(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f12761(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix a subtle bug in a Python module used for configuration loading.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must include docstrings, must be streaming-friendly.
Difficulty: medium. Avoid quadratic behavior on large inputs.
Deliverable: corrected code and... | 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: qouqzmfja1.py
``... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor a Python module used for CLI tooling into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must be memory-efficient, must handle Windows paths safely, must include docstrings.
Difficulty: expert. Handle empty inputs and mal... | WithinUsAI/python_GOD_coder_100k |
Task type: kernel_syscall_design
Scenario: rate limit gateway
Domain focus: observability platforms
Primary language: cpp
Difficulty: expert
Scale/SLO: p99 < 150ms
Component: component_fledcmlw
Constraints: include failure modes and recovery, include security threat model (defensive only), explicit contracts and invari... | 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: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Language: Java
Dependency challenge: JWT refresh token rotation
Task type: build... | WithinUsAI/GOD_Coder_Complete_DataSet |
Optimize while preserving behavior and order.
```python
def f78574(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m54082.py` with types and O(n) average.
```python
# m54082.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 telemetry ingestion.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must include docstrings, must avoid global state, must include tests, must include type hints.
Difficulty: expert. Handle empty inputs and malformed ... | 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: YAML
Framework/tooling: Terraform
Domain: feature flag service
Logic challenge: slow cold start
Task type: security_logic_interaction
Difficulty: ha... | WithinUsAI/GOD_Coder_Complete_DataSet |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Language: Rust
Dependency challenge: dead-letter queue replay
Task type: cve_dependency_remediation
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: 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: GitHub Actions, Docker Compose, Kubernetes, Terraform
Language: C#
Dependency challenge: broken pagination cursor
Task type: migration_patch
Di... | 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: nne1f79j.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: multi-tenant SaaS.
Primary language: typescript.
Difficulty: expert.
Constraints: assume untrusted inputs; validate and sanitize, design for backward compatibility and migrations, include invariants and failure modes, provide ... | WithinUsAI/Elite_GOD_Coder_100k |
Write a thorough test suite for a Python component used for data modeling.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must handle Windows paths safely, must be streaming-friendly, stdlib-only.
Difficulty: expert. Guarantee deterministic output ordering.
Deliverable: API + ref... | WithinUsAI/python_GOD_coder_100k |
Design a production system for fintech supporting search + pagination.
Target platform: infra (Docker + Kubernetes).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must be easy to extend, must avoid global state, must be production-ready, must be performant under load.
Diffi... | 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: sp52wyzqb.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement a mobile feature for logistics: caching.
Target platform: mobile.
Requirements: offline-safe behavior, UI state handling, and tests.
Constraints: must be observable (logs/metrics/traces), must include type hints where applicable, must include documentation/comments, must be easy to extend, must include clear ... | WithinUsAI/GOD_Coder_100k |
Task type: static_analyzer
Scenario: streaming ETL
Domain focus: edge robotics (safe)
Primary language: bash
Difficulty: expert
Scale/SLO: p99 < 50ms
Component: component_crxjjwzw
Constraints: include performance model and limits, include verification strategy, include test vectors and fuzz strategy, include determinis... | 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: Python
Framework/tooling: Airflow
Domain: benchmark harness
Logic challenge: async cancellation bug
Task type: algorithmic_correctness
Difficulty: h... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: compiler_backend_ir
Scenario: payment ledger
Domain focus: compiler toolchains
Primary language: cpp
Difficulty: expert+
Scale/SLO: multi-region active-active
Component: component_ecqjzero
Constraints: assume adversarial inputs; validate everything, include failure modes and recovery, explicit contracts and ... | 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: m7_pvpkhx.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: DuckDB
Domain: developer platform
Logic challenge: broken pagination cursor
Task type: concurrency_fix
Difficulty: medium
Re... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: robust_e2e_testing
Scenario: time-series metrics store
Domain focus: runtime systems
Primary language: rust
Difficulty: expert+
Scale/SLO: 10k RPS peak
Component: component_puztveyh
Constraints: include performance model and limits, assume adversarial inputs; validate everything, include failure modes and re... | 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 |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: Bash
Framework/tooling: awk
Domain: team dashboard
Logic challenge: dead-letter queue replay
Task type: transaction_integrity_fix
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: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f14223(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 `m44889.py` and `test_m44889.py`.
*** Begin Patch
*** Update File: m44889.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Create a comprehensive test plan and automated tests for role-based access control in a enterprise SaaS product.
Target platform: mobile (Android Kotlin).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must be observable (logs/metrics/traces), must be production-ready,... | WithinUsAI/GOD_Coder_100k |
Optimize while preserving behavior and order.
```python
def f64506(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m66358.py` with types and O(n) average.
```python
# m66358.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Create a comprehensive test plan and automated tests for webhooks in a customer support product.
Target platform: ML (PyTorch + serving).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must be observable (logs/metrics/traces), must include clear error handling, must be... | 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: Repository domain: benchmark harness
Primary language: Python
Framework/tooling: FastAPI
Reported problem: N+1 query explosion
Task type: code_review_fix
Diff... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write pytest tests for `f47739`.
```python
def f47739(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m49677 import f47739
def test_known():
assert f47739(3,4) == 25
def test_zero():
assert f47739(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of sre/observability for scenario: payment processing.
Primary language: typescript.
Difficulty: expert.
Constraints: provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races.
Component: component_odlohrq.
... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: tla_state_machine
Scenario: streaming ETL
Domain focus: zero-downtime migrations
Primary language: tla+
Difficulty: expert+
Scale/SLO: p99 < 50ms
Component: component_azcmmtnq
Constraints: include security threat model (defensive only), include verification strategy, avoid data races and undefined behavior, ... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor a Python module used for ETL pipelines into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must include tests, must be streaming-friendly, must avoid global state, must provide clear error messages.
Difficulty: easy. Prov... | WithinUsAI/python_GOD_coder_100k |
Add a clear docstring and type hints to this function:
```python
def f86891(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f86891(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f60774(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 `m08682.py` and `test_m08682.py`.
*** Begin Patch
*** Update File: m08682.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f66390`.
```python
def f66390(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m23770 import f66390
def test_known():
assert f66390(3,4) == 25
def test_zero():
assert f66390(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f90306(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 `m55758.py` and `test_m55758.py`.
*** Begin Patch
*** Update File: m55758.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: TypeScript
Framework/tooling: React
Domain: document processing API
Logic challenge: idempotent retry design
Task type: misleading_symptom_debug
Dif... | 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 |
Build an elite-grade solution in the domain of databases for scenario: inventory & ordering.
Primary language: go.
Difficulty: expert.
Constraints: document performance characteristics, provide rollout and rollback guidance, design for backward compatibility and migrations, avoid undefined behavior and data races.
Comp... | 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: siv92d.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: tla_state_machine
Scenario: document indexing pipeline
Domain focus: secure enclaves (defensive)
Primary language: tla+
Difficulty: expert+
Scale/SLO: p99 < 50ms
Component: component_tpxjenki
Constraints: assume adversarial inputs; validate everything, include backward compatibility and migration plan, inclu... | 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: TypeScript
Framework/tooling: Express
Domain: developer platform
Logic challenge: migration ordering failure
Task type: misleading_symptom_debug
Dif... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix a subtle bug in a Python module used for telemetry ingestion.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must handle Windows paths safely, must provide clear error messages.
Difficulty: medium. Provide helpful exceptions with actionable messages.
Delive... | 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: adkpfw.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Language: Java
Dependency challenge: optimistic locking conflict
Task type: build_reproducibility... | WithinUsAI/GOD_Coder_Complete_DataSet |
Design and implement an algorithm for report generation.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must be streaming-friendly, must avoid global state, must provide clear error messages.
Difficulty: medium. Avoid quadratic behavior on large inputs.... | WithinUsAI/python_GOD_coder_100k |
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 be streaming-friendly.
Difficulty: hard. Include a small CLI example if relevant.
Deliverable: corrected code and verification tests.
`... | WithinUsAI/python_GOD_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 be streaming-friendly, stdlib-only, must handle Windows paths safely.
Difficulty: hard. Handle empty inputs and malformed recor... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of operating systems for scenario: rate limiting gateway.
Primary language: rust.
Difficulty: medium.
Constraints: make the interface contract explicit, assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, design for backward compatibility ... | WithinUsAI/Elite_GOD_Coder_100k |
Fix a subtle bug in a Python module used for file synchronization.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must be memory-efficient, stdlib-only.
Difficulty: easy. Handle empty inputs and malformed records gracefully.
Deliverable: production-ready refere... | 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: uab3st.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for task scheduling.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must avoid global state, must include tests.
Difficulty: hard. Provide helpful exceptions with actionable messages.
Deliverable: API + reference implementat... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f89749(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 `m27107.py` and `test_m27107.py`.
*** Begin Patch
*** Update File: m27107.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement an ML engineering workflow for developer tooling focusing on webhooks.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must be production-ready, must be easy to extend, must be performant under load, must b... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.