text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Build an elite-grade solution in the domain of edge/IoT for scenario: rate limiting gateway.
Primary language: python.
Difficulty: medium.
Constraints: include tests or verification strategy, make the interface contract explicit, avoid undefined behavior and data races.
Component: component_vikqcqd.
Assume schema chang... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: lockfree_primitive
Scenario: time-series metrics store
Domain focus: program synthesis (safe)
Primary language: cpp
Difficulty: expert
Scale/SLO: 50 TB/day ingestion
Component: component_ouzcwpjh
Constraints: include verification strategy, avoid data races and undefined behavior, include security threat mode... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C59247:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m43019.py` and `test_m43019.py`.
```python
# m43019.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: System domain: benchmark harness
Stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Cross-layer incident: memory leak in AST cache
Task type: full_stack_bug... | WithinUsAI/GOD_Coder_Complete_DataSet |
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 be easy to extend, stdlib-only.
Difficulty: hard. Include a small CLI example if relevant.
Deliverable: corrected code and verificati... | 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: FastAPI, PostgreSQL, Redis, Celery, pytest, Docker
Language: JavaScript
Dependency challenge: monorepo toolchain skew
Task type: lockfile_repai... | 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: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Language: Rust
Dependency challenge: CI failures after dependency upgrade
Task type: m... | 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 domain: search service
Implementation stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Software delivery problem: mismatched API ... | 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 |
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: crh7y5a_b.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 |
Improve typing and robustness of a Python module used for parsing.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: must provide clear error messages, must include tests, must be streaming-friendly, must handle Windows paths safely.
Difficulty: expert. Avoid qu... | WithinUsAI/python_GOD_coder_100k |
Implement an ML engineering workflow for gaming focusing on real-time notifications.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must include clear error handling, must be secure-by-default, must be performant un... | WithinUsAI/GOD_Coder_100k |
Debug and fix a subtle production bug related to background jobs in a social media service.
Target platform: backend (Python FastAPI).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must avoid global state, must include type hints where applicable, must be observable (logs/metr... | WithinUsAI/GOD_Coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: Bash
Framework/tooling: awk
Domain: reporting engine
Logic challenge: timezone bug in reporting
Task type: monorepo_toolchain_recovery
Difficulty: e... | 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: yup9a_i.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Optimize while preserving behavior and order.
```python
def f27573(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m03939.py` with types and O(n) average.
```python
# m03939.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Write pytest tests for `f66879`.
```python
def f66879(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m66697 import f66879
def test_known():
assert f66879(3,4) == 25
def test_zero():
assert f66879(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: vt2hr... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: query_optimizer
Scenario: job scheduler
Domain focus: formal verification
Primary language: sql
Difficulty: expert+
Scale/SLO: 100k RPS peak
Component: component_antpqfvu
Constraints: avoid data races and undefined behavior, include security threat model (defensive only), include deterministic replay plan, 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: System domain: team dashboard
Stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker
Cross-layer incident: path traversal on downloads
Task type: observabili... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix the bug and add pytest tests.
```python
def f14801(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 `m73543.py` and `test_m73543.py`.
*** Begin Patch
*** Update File: m73543.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f84186(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 `m40598.py` and `test_m40598.py`.
*** Begin Patch
*** Update File: m40598.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Language: JavaScript
Dependency challenge: CI failures after dependency upgrade
Task type: version_confl... | WithinUsAI/GOD_Coder_Complete_DataSet |
Provision infrastructure for a content moderation workload providing caching.
Target platform: mobile (Android Kotlin).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must be performant under load, must be production-ready, must be secure-by-default.
Difficulty: medium.... | WithinUsAI/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 tests, must include type hints, must include docstrings, must be memory-efficient.
Difficulty: medium. Include a small CLI examp... | 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: System domain: benchmark harness
Stack: ASP.NET Core, SQL Server, EF Core, xUnit, Docker
Cross-layer incident: streaming timeout handling
Task type: deploy_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: Fix a bug and add tests.
File: zolsmi.py
```pyt... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of sre/observability for scenario: document indexing.
Primary language: typescript.
Difficulty: hard.
Constraints: make the interface contract explicit, assume untrusted inputs; validate and sanitize, include invariants and failure modes, provide rollout and rollback guidance... | WithinUsAI/Elite_GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
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: NestJS
Domain: team dashboard
Logic challenge: timezone bug in reporting
Task type: backwards_compatible_redesign
Diff... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: distributed_algorithm
Scenario: payment ledger
Domain focus: observability platforms
Primary language: python
Difficulty: hard
Scale/SLO: p99 < 150ms
Component: component_rjdupwnp
Constraints: include deterministic replay plan, include failure modes and recovery, include test vectors and fuzz strategy, 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: JavaScript
Framework/tooling: Express
Domain: benchmark harness
Logic challenge: streaming timeout handling
Task type: edge_case_hardening
Difficult... | WithinUsAI/GOD_Coder_Complete_DataSet |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: C++
Framework/tooling: Catch2
Domain: repo automation
Logic challenge: multi-tenant access leak
Task type: state_machine_patch
Difficulty: hard
Ret... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of operating systems for scenario: analytics pipeline.
Primary language: python.
Difficulty: hard.
Constraints: avoid undefined behavior and data races, include tests or verification strategy, document performance characteristics, include invariants and failure modes.
Compone... | 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: qi_7a_kc2sm.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 |
Write a thorough test suite for a Python component used for log processing.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must be easy to extend, must include docstrings.
Difficulty: expert. Handle empty inputs and malformed records gracefully.
Deliverable: corrected code and ve... | WithinUsAI/python_GOD_coder_100k |
Implement a concurrent Python solution for time series.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: must include docstrings, must be streaming-friendly, must avoid global state, must provide clear error messages.
Difficulty: easy. Handle empty inputs and... | WithinUsAI/python_GOD_coder_100k |
Fix the bug and add pytest tests.
```python
def f79668(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 `m68524.py` and `test_m68524.py`.
*** Begin Patch
*** Update File: m68524.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: payments platform
Stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Cross-layer incident: migration ordering failure
Task type: a... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: kernel_syscall_design
Scenario: feature-flag evaluation
Domain focus: model checking
Primary language: c
Difficulty: hard
Scale/SLO: 1M msgs/min
Component: component_ssqullva
Constraints: include test vectors and fuzz strategy, include backward compatibility and migration plan, avoid data races and undefined... | 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: Java
Framework/tooling: Spring Boot
Domain: payments platform
Logic challenge: optimistic locking conflict
Task type: edge_case_hardening
Difficulty... | WithinUsAI/GOD_Coder_Complete_DataSet |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Add a clear docstring and type hints to this function:
```python
def f73748(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f73748(s: str) -> str:
"""Normalize a string: keep only alphanumerics and lowercase the result."""
return "".join(ch for c... | WithinUsAI/Royal_Ghost_Coder_501k |
Write secure, defensive Python code for CLI tooling.
Requirements: input validation, safe file handling, prevent path traversal, include tests.
Constraints: must be easy to extend, must provide clear error messages, must be streaming-friendly.
Difficulty: easy. Provide helpful exceptions with actionable messages.
Deli... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of realtime systems for scenario: payment processing.
Primary language: rust.
Difficulty: medium.
Constraints: include invariants and failure modes, make the interface contract explicit, document performance characteristics, include tests or verification strategy, assume untr... | WithinUsAI/Elite_GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f60109(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 `m08587.py` and `test_m08587.py`.
*** Begin Patch
*** Update File: m08587.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: compiler_frontend
Scenario: feature-flag evaluation
Domain focus: fault injection & chaos engineering
Primary language: go
Difficulty: hard
Scale/SLO: 50 TB/day ingestion
Component: component_trjbklaz
Constraints: include security threat model (defensive only), include test vectors and fuzz strategy, include... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix the bug and add pytest tests.
```python
def f20579(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 `m45797.py` and `test_m45797.py`.
*** Begin Patch
*** Update File: m45797.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Language: Python
Framework/tooling: Django
Domain: auth service
Logic challenge: path traversal on downloads
Task type: edge_case_hardening
Difficulty: hard
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Debug and fix a subtle production bug related to webhooks in a developer tooling service.
Target platform: mobile (iOS Swift).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must be observable (logs/metrics/traces), must avoid global state, must be performant under load.
Diffic... | WithinUsAI/GOD_Coder_100k |
Implement an ML engineering workflow for IoT telemetry focusing on webhooks.
Target platform: ML (training + serving).
Requirements: data contract, training loop, evaluation, model registry, serving API, monitoring.
Constraints: must be secure-by-default, must be production-ready, must include type hints where applicab... | WithinUsAI/GOD_Coder_100k |
Implement a concurrent Python solution for log processing.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: must be streaming-friendly, must include docstrings, must handle Windows paths safely.
Difficulty: hard. Include a small CLI example if relevant.
Deli... | WithinUsAI/python_GOD_coder_100k |
Task type: kernel_syscall_design
Scenario: streaming ETL
Domain focus: observability platforms
Primary language: c
Difficulty: expert+
Scale/SLO: 1M msgs/min
Component: component_skydmyef
Constraints: include verification strategy, include test vectors and fuzz strategy, include deterministic replay plan, include secur... | WithinUsAI/Omega_Genesis_Coder_100k |
Build an elite-grade solution in the domain of realtime systems for scenario: document indexing.
Primary language: rust.
Difficulty: expert.
Constraints: document performance characteristics, include invariants and failure modes, provide rollout and rollback guidance, avoid undefined behavior and data races.
Component:... | WithinUsAI/Elite_GOD_Coder_100k |
Perform a code review for a healthtech PR implementing background jobs.
Target platform: web (React + TypeScript).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must include documentation/comments, must avoid global state, must include clear error handling, must i... | WithinUsAI/GOD_Coder_100k |
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 provide clear error messages, must avoid global state, must be streaming-friendly.
Difficulty: easy. Include a small CLI example if relevant.
D... | WithinUsAI/python_GOD_coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project domain: job scheduler
Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Software delivery problem: slow cold start
Task type... | WithinUsAI/GOD_Coder_Complete_DataSet |
Debug and fix a subtle production bug related to multi-tenant isolation in a enterprise SaaS service.
Target platform: backend (Python FastAPI).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must be performant under load, must include tests, must be secure-by-default, must inc... | 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: Rust
Framework/tooling: Serde
Domain: job scheduler
Logic challenge: log redaction failure
Task type: misleading_symptom_debug
Difficulty: hard
Ret... | 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: artifact registry
Primary language: C#
Framework/tooling: NUnit
Reported problem: monorepo toolchain skew
Task type: repo_issue_patch
Diffi... | 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: repo automation
Primary language: Bash
Framework/tooling: GNU coreutils
Reported problem: transaction boundary bug
Task type: repo_issue_pa... | 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: data pipeline
Stack: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Cross-layer incident: timezone bug in reporting
Task type: auth_session_repa... | 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 |
Write pytest tests for `f29073`.
```python
def f29073(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m18439 import f29073
def test_known():
assert f29073(3,4) == 25
def test_zero():
assert f29073(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: 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 include type hints, must be memory-efficient, must avoid global state.
Difficulty: hard. Avoid quadratic behavior on large inpu... | WithinUsAI/python_GOD_coder_100k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C77634:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m59818.py` and `test_m59818.py`.
```python
# m59818.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C63883:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m27991.py` and `test_m27991.py`.
```python
# m27991.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C90898:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m53146.py` and `test_m53146.py`.
```python
# m53146.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of gpu compute for scenario: document indexing.
Primary language: python.
Difficulty: medium.
Constraints: document performance characteristics, include invariants and failure modes, design for backward compatibility and migrations, provide rollout and rollback guidance, avoi... | WithinUsAI/Elite_GOD_Coder_100k |
Write pytest tests for `f79489`.
```python
def f79489(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m39927 import f79489
def test_known():
assert f79489(3,4) == 25
def test_zero():
assert f79489(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor a Python module used for task scheduling into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must include docstrings, must avoid global state, must include tests, must include type hints.
Difficulty: hard. Support both Wi... | WithinUsAI/python_GOD_coder_100k |
Task type: static_analyzer
Scenario: real-time notification hub
Domain focus: secure enclaves (defensive)
Primary language: python
Difficulty: expert+
Scale/SLO: 1M msgs/min
Component: component_zfuntokw
Constraints: include performance model and limits, explicit contracts and invariants, avoid data races and undefined... | WithinUsAI/Omega_Genesis_Coder_100k |
Refactor a Python module used for parsing into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must provide clear error messages, must be memory-efficient.
Difficulty: easy. Guarantee deterministic output ordering.
Deliverable: im... | WithinUsAI/python_GOD_coder_100k |
Task type: network_protocol
Scenario: streaming ETL
Domain focus: consensus & replication
Primary language: go
Difficulty: expert+
Scale/SLO: 10k RPS peak
Component: component_rekclnnf
Constraints: include backward compatibility and migration plan, include security threat model (defensive only), avoid data races and un... | WithinUsAI/Omega_Genesis_Coder_100k |
Add a clear docstring and type hints to this function:
```python
def f74115(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f74115(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 networking for scenario: document indexing.
Primary language: rust.
Difficulty: expert.
Constraints: design for backward compatibility and migrations, make the interface contract explicit, include invariants and failure modes, avoid undefined behavior and data races.
Compo... | WithinUsAI/Elite_GOD_Coder_100k |
Add a clear docstring and type hints to this function:
```python
def f62046(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f62046(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: 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: team dashboard
Primary language: Rust
Framework/tooling: Serde
Reported problem: schema drift during deployment
Task type: feature_delivery... | WithinUsAI/GOD_Coder_Complete_DataSet |
Design a small, production-grade Python API for configuration loading.
Requirements: define data models and interfaces, implement reference version, include tests.
Constraints: must include docstrings, must handle Windows paths safely.
Difficulty: easy. Avoid quadratic behavior on large inputs.
Deliverable: implementa... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of sre/observability for scenario: feature flagging.
Primary language: python.
Difficulty: hard.
Constraints: document performance characteristics, make the interface contract explicit, avoid undefined behavior and data races, include tests or verification strategy.
Component... | WithinUsAI/Elite_GOD_Coder_100k |
Refactor a Python module used for parsing into a clean, extensible design.
Requirements: outline the new architecture briefly, then provide the refactored code and tests.
Constraints: must be memory-efficient, must include tests, must avoid global state, must include type hints.
Difficulty: easy. Avoid quadratic behavi... | 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: ypm9nr.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: Bash
Framework/tooling: GNU coreutils
Domain: feature flag service
Logic challenge: memory leak in AST cache
Task type: cross_stack_outage_fix
Diffi... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write pytest tests for `f25901`.
```python
def f25901(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m60843 import f25901
def test_known():
assert f25901(3,4) == 25
def test_zero():
assert f25901(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: zbtcs... | 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: i5728i.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: System domain: artifact registry
Stack: Airflow, dbt, DuckDB, MinIO, pytest
Cross-layer incident: stale cache invalidation
Task type: cache_consistency_patch
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix the bug and add pytest tests.
```python
def f31717(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 `m04531.py` and `test_m04531.py`.
*** Begin Patch
*** Update File: m04531.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: repo automation
Implementation stack: Rust, Axum, SQLx, Redis, Tokio, Docker
Software delivery problem: rate-limit bypass
Task type: rollback_... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: supply_chain_security
Scenario: edge sync
Domain focus: program synthesis (safe)
Primary language: typescript
Difficulty: expert+
Scale/SLO: 99.99% availability
Component: component_yzzatdxb
Constraints: explicit contracts and invariants, avoid data races and undefined behavior, include deterministic replay ... | 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: j9n36wa.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C77215:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m90555.py` and `test_m90555.py`.
```python
# m90555.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of gpu compute for scenario: event ingestion.
Primary language: rust.
Difficulty: expert.
Constraints: provide rollout and rollback guidance, design for backward compatibility and migrations, include tests or verification strategy.
Component: component_tgpcmlm.
Assume schema ... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: smt_constraint_model
Scenario: identity and access
Domain focus: kernel primitives
Primary language: smtlib
Difficulty: expert+
Scale/SLO: 50 TB/day ingestion
Component: component_jilxieli
Constraints: include deterministic replay plan, include failure modes and recovery, include performance model and limits... | WithinUsAI/Omega_Genesis_Coder_100k |
Provision infrastructure for a e-commerce workload providing event-driven workflows.
Target platform: data (SQL + Python).
Requirements: IaC (Terraform or Kubernetes YAML), networking, secrets, autoscaling.
Constraints: must avoid global state, must include documentation/comments, must include type hints where applicab... | WithinUsAI/GOD_Coder_100k |
Design a production system for customer support supporting background jobs.
Target platform: infra (Terraform).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must be production-ready, must be easy to extend, must avoid global state.
Difficulty: easy. Assume untrusted input;... | WithinUsAI/GOD_Coder_100k |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.