text stringlengths 355 3.69k | source stringclasses 6
values |
|---|---|
Perform a code review for a IoT telemetry PR implementing search + pagination.
Target platform: ML (scikit + batch).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must include documentation/comments, must be easy to extend, must be performant under load, must be s... | WithinUsAI/GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f59872(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 `m65696.py` and `test_m65696.py`.
*** Begin Patch
*** Update File: m65696.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: Vitest
Domain: team dashboard
Logic challenge: migration ordering failure
Task type: monorepo_toolchain_recovery
Diffi... | WithinUsAI/GOD_Coder_Complete_DataSet |
Implement a mobile feature for education: caching.
Target platform: mobile.
Requirements: offline-safe behavior, UI state handling, and tests.
Constraints: must include type hints where applicable, must be easy to extend, must include tests, must include documentation/comments, must avoid global state.
Difficulty: hard... | WithinUsAI/GOD_Coder_100k |
Optimize while preserving behavior and order.
```python
def f35837(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m33691.py` with types and O(n) average.
```python
# m33691.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Refactor an existing codebase in gaming to support real-time notifications cleanly.
Target platform: mobile (Android Kotlin).
Requirements: propose new modules/layers, dependency boundaries, and migration plan.
Constraints: must be observable (logs/metrics/traces), must include clear error handling, must include docume... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: chat messaging.
Primary language: go.
Difficulty: hard.
Constraints: assume untrusted inputs; validate and sanitize, avoid undefined behavior and data races, include tests or verification strategy.
Component: component_cvzowyd... | WithinUsAI/Elite_GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f64791(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 `m52113.py` and `test_m52113.py`.
*** Begin Patch
*** Update File: m52113.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: 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: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Language: TypeScript
Dependency challenge: transaction boundary bug
Task type: build_r... | 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 |
Improve typing and robustness of a Python module used for rate limiting.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: must avoid global state, must be easy to extend.
Difficulty: medium. Ensure the API is testable via dependency injection.
Deliverable: cor... | 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: SQL
Framework/tooling: MySQL
Domain: reporting engine
Logic challenge: dead-letter queue replay
Task type: parser_validation_logic
Difficulty: hard
... | WithinUsAI/GOD_Coder_Complete_DataSet |
Task type: program_synthesis_safe
Scenario: identity and access
Domain focus: edge robotics (safe)
Primary language: rust
Difficulty: expert
Scale/SLO: 99.99% availability
Component: component_bgkcbilr
Constraints: assume adversarial inputs; validate everything, avoid data races and undefined behavior, include failure ... | 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: Optimize while preserving behavior.
File: nd_qe... | 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: notification service
Implementation stack: Spring Boot, PostgreSQL, JUnit, Gradle, Docker, GitHub Actions
Software delivery problem: schema dr... | WithinUsAI/GOD_Coder_Complete_DataSet |
Refactor to typed, mostly-immutable Python and add minimal tests.
```python
class C97916:
def __init__(self, values): self.values=list(values)
def mean(self): return sum(self.values)/len(self.values)
```
Return `m07532.py` and `test_m07532.py`.
```python
# m07532.py
from __future__ import annotations
from datacla... | WithinUsAI/Royal_Ghost_Coder_501k |
Design and implement an algorithm for file synchronization.
Requirements: define inputs/outputs, implement solution with complexity analysis, and include tests.
Constraints: must be memory-efficient, stdlib-only, must be streaming-friendly, must include tests.
Difficulty: medium. Include a small CLI example if relevant... | WithinUsAI/python_GOD_coder_100k |
system: You are a production-grade software engineer. Return a correct, secure, complete, test-backed solution with concise reasoning and no placeholders.
user: Project stack: Next.js, Node.js, Prisma, PostgreSQL, Playwright, Docker
Language: SQL
Dependency challenge: JWT refresh token rotation
Task type: cve_dependen... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix a subtle bug in a Python module used for report generation.
Requirements: explain root cause briefly, provide corrected code, and add regression tests.
Constraints: must avoid global state, must provide clear error messages.
Difficulty: medium. Handle empty inputs and malformed records gracefully.
Deliverable: pro... | WithinUsAI/python_GOD_coder_100k |
Create a comprehensive test plan and automated tests for caching in a calendar/scheduling product.
Target platform: mobile (iOS Swift).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must include tests, must be production-ready, must include type hints where applicable... | 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: c2m7fk.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: g0glkcvs.py
```p... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of edge/IoT for scenario: inventory & ordering.
Primary language: python.
Difficulty: medium.
Constraints: provide rollout and rollback guidance, avoid undefined behavior and data races, make the interface contract explicit, include invariants and failure modes, assume untrus... | WithinUsAI/Elite_GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f12948(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 `m87564.py` and `test_m87564.py`.
*** Begin Patch
*** Update File: m87564.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: Repository domain: payments platform
Primary language: Python
Framework/tooling: Django
Reported problem: async cancellation bug
Task type: feature_delivery
D... | WithinUsAI/GOD_Coder_Complete_DataSet |
Add a clear docstring and type hints to this function:
```python
def f16593(s):
return ''.join(x for x in s if x.isalnum()).lower()
```
```python
from __future__ import annotations
def f16593(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 realtime systems for scenario: analytics pipeline.
Primary language: go.
Difficulty: expert.
Constraints: include tests or verification strategy, assume untrusted inputs; validate and sanitize, document performance characteristics.
Component: component_yhfbiil.
Assume cras... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: static_analyzer
Scenario: identity and access
Domain focus: program synthesis (safe)
Primary language: bash
Difficulty: expert+
Scale/SLO: 50 TB/day ingestion
Component: component_svnxsgaq
Constraints: avoid data races and undefined behavior, include failure modes and recovery, include backward compatibility... | WithinUsAI/Omega_Genesis_Coder_100k |
Optimize while preserving behavior and order.
```python
def f64587(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m94941.py` with types and O(n) average.
```python
# m94941.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Optimize while preserving behavior.
File: e31g7... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of ml systems for scenario: multi-tenant SaaS.
Primary language: python.
Difficulty: medium.
Constraints: document performance characteristics, include tests or verification strategy, design for backward compatibility and migrations.
Component: component_anpyvvv.
Assume crash... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: compiler_backend_ir
Scenario: real-time notification hub
Domain focus: GPU serving
Primary language: rust
Difficulty: expert+
Scale/SLO: 10k RPS peak
Component: component_pvmjyeig
Constraints: avoid data races and undefined behavior, include deterministic replay plan, include test vectors and fuzz strategy, ... | WithinUsAI/Omega_Genesis_Coder_100k |
Perform a code review for a customer support PR implementing offline-first sync.
Target platform: backend (Go).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must include documentation/comments, must be observable (logs/metrics/traces), must be secure-by-default, ... | WithinUsAI/GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: kernel_syscall_design
Scenario: multi-tenant event ingestion
Domain focus: runtime systems
Primary language: cpp
Difficulty: expert
Scale/SLO: 99.99% availability
Component: component_ygtfjdzj
Constraints: include security threat model (defensive only), explicit contracts and invariants, include backward com... | 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: vl82qtdv3.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Create a comprehensive test plan and automated tests for caching in a social media product.
Target platform: CI (GitHub Actions).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must be observable (logs/metrics/traces), must be production-ready, must be secure-by-defaul... | WithinUsAI/GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f07916(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 `m43988.py` and `test_m43988.py`.
*** Begin Patch
*** Update File: m43988.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Design a production system for content moderation supporting file uploads.
Target platform: backend (Node.js).
Requirements: APIs, data model, scaling strategy, failure modes, and security.
Constraints: must be secure-by-default, must include documentation/comments, must include clear error handling.
Difficulty: hard. ... | WithinUsAI/GOD_Coder_100k |
Write pytest tests for `f03837`.
```python
def f03837(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m57691 import f03837
def test_known():
assert f03837(3,4) == 25
def test_zero():
assert f03837(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 |
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: Bash
Dependency challenge: invalid rollback sequence
Task type: lockfile_repair
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: 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 domain: model serving gateway
Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Software delivery problem: memory leak in AS... | WithinUsAI/GOD_Coder_Complete_DataSet |
Improve typing and robustness of a Python module used for log processing.
Requirements: provide type-safe APIs (generics/protocols where appropriate) and include tests.
Constraints: must be easy to extend, must include docstrings, stdlib-only.
Difficulty: hard. Ensure the API is testable via dependency injection.
Deli... | 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: feature flag service
Logic challenge: JWT refresh token rotation
Task type: multi_service_security_patch... | WithinUsAI/GOD_Coder_Complete_DataSet |
Implement audit logs for a social media product.
Target platform: web (React + TypeScript).
Requirements: provide production-ready code, configuration, and tests.
Constraints: must be production-ready, must avoid global state, must be observable (logs/metrics/traces).
Difficulty: expert. Assume mobile clients are occas... | WithinUsAI/GOD_Coder_100k |
Fix the bug and add pytest tests.
```python
def f14427(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 `m02061.py` and `test_m02061.py`.
*** Begin Patch
*** Update File: m02061.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: reporting engine
Implementation stack: GitHub Actions, Docker Compose, Kubernetes, Terraform
Software delivery problem: build reproducibility ... | WithinUsAI/GOD_Coder_Complete_DataSet |
Fix the bug and add pytest tests.
```python
def f13430(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 `m30490.py` and `test_m30490.py`.
*** Begin Patch
*** Update File: m30490.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: tla_state_machine
Scenario: feature-flag evaluation
Domain focus: runtime systems
Primary language: tla+
Difficulty: expert
Scale/SLO: 1M msgs/min
Component: component_arlyeryl
Constraints: include deterministic replay plan, explicit contracts and invariants, include failure modes and recovery, include secur... | WithinUsAI/Omega_Genesis_Coder_100k |
Write pytest tests for `f78553`.
```python
def f78553(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m54079 import f78553
def test_known():
assert f78553(3,4) == 25
def test_zero():
assert f78553(0,0) == 0
def test_property_nonne... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: secure_architecture
Scenario: identity and access
Domain focus: formal verification
Primary language: python
Difficulty: hard
Scale/SLO: p99 < 50ms
Component: component_tmzhclau
Constraints: include backward compatibility and migration plan, include test vectors and fuzz strategy, include performance model a... | 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: Bash
Framework/tooling: sed
Domain: repo automation
Logic challenge: dead-letter queue replay
Task type: security_logic_interaction
Difficulty: hard... | WithinUsAI/GOD_Coder_Complete_DataSet |
Write pytest tests for `f84097`.
```python
def f84097(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m54871 import f84097
def test_known():
assert f84097(3,4) == 25
def test_zero():
assert f84097(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 |
Build an elite-grade solution in the domain of sre/observability for scenario: document indexing.
Primary language: bash.
Difficulty: expert.
Constraints: document performance characteristics, include tests or verification strategy, include invariants and failure modes.
Component: component_nznaqxh.
Assume compliance r... | WithinUsAI/Elite_GOD_Coder_100k |
Write a thorough test suite for a Python component used for metrics aggregation.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: must be streaming-friendly, must provide clear error messages, must be memory-efficient, must include docstrings.
Difficulty: easy. Handle empty inputs a... | 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: zsybz... | WithinUsAI/Royal_Ghost_Coder_501k |
Create a comprehensive test plan and automated tests for rate limiting in a content moderation product.
Target platform: backend (Node.js).
Requirements: unit/integration tests, edge cases, load tests strategy, and CI gates.
Constraints: must be easy to extend, must include type hints where applicable, must avoid globa... | 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: zoeyr... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Build an elite-grade solution in the domain of realtime systems for scenario: event ingestion.
Primary language: rust.
Difficulty: medium.
Constraints: make the interface contract explicit, include tests or verification strategy, include invariants and failure modes, document performance characteristics, assume untrust... | WithinUsAI/Elite_GOD_Coder_100k |
Task type: compiler_frontend
Scenario: feature-flag evaluation
Domain focus: model checking
Primary language: go
Difficulty: expert
Scale/SLO: p99 < 50ms
Component: component_lexswmju
Constraints: include performance model and limits, include deterministic replay plan, include security threat model (defensive only), in... | WithinUsAI/Omega_Genesis_Coder_100k |
Implement a concurrent Python solution for parsing.
Requirements: choose appropriate concurrency model, handle cancellation/timeouts, include tests.
Constraints: must avoid global state, must be easy to extend, must include type hints.
Difficulty: hard. Ensure the API is testable via dependency injection.
Deliverable:... | WithinUsAI/python_GOD_coder_100k |
Perform a code review for a education PR implementing real-time notifications.
Target platform: data (SQL + Python).
Requirements: list critical issues, improvements, and provide an improved patch excerpt.
Constraints: must include tests, must be easy to extend, must be secure-by-default, must be performant under load,... | WithinUsAI/GOD_Coder_100k |
Debug and fix a subtle production bug related to background jobs in a gaming service.
Target platform: ML (scikit + batch).
Requirements: identify root cause, provide patch, and add regression tests.
Constraints: must be production-ready, must avoid global state, must be observable (logs/metrics/traces), must include d... | WithinUsAI/GOD_Coder_100k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Produce an offline-first self-evolving code assi... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f20698(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 `m45814.py` and `test_m45814.py`.
*** Begin Patch
*** Update File: m45814.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f31247(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 `m47321.py` and `test_m47321.py`.
*** Begin Patch
*** Update File: m47321.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Write a thorough test suite for a Python component used for CLI tooling.
Requirements: cover edge cases, invalid inputs, and behavior invariants.
Constraints: stdlib-only, must include docstrings, must handle Windows paths safely.
Difficulty: easy. Include a small CLI example if relevant.
Deliverable: production-ready... | WithinUsAI/python_GOD_coder_100k |
Add observability for event-driven workflows in a social media system.
Target platform: mobile (Android Kotlin).
Requirements: structured logs, metrics, tracing, dashboards, and alerting rules.
Constraints: must include tests, must include type hints where applicable, must be secure-by-default.
Difficulty: expert. Incl... | WithinUsAI/GOD_Coder_100k |
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 avoid global state, must include docstrings, must provide clear error messages, must be memory-efficient.
Difficulty: easy. Guarantee deterministic ou... | WithinUsAI/python_GOD_coder_100k |
Build an elite-grade solution in the domain of compilers for scenario: analytics pipeline.
Primary language: python.
Difficulty: medium.
Constraints: include tests or verification strategy, assume untrusted inputs; validate and sanitize, make the interface contract explicit.
Component: component_axmheih.
Assume cold-st... | 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: g6d_ew4l5ows.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 |
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: auth service
Primary language: Python
Framework/tooling: Celery
Reported problem: partial checkpoint corruption
Task type: repo_issue_patch... | 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: job scheduler
Implementation stack: Airflow, dbt, DuckDB, MinIO, pytest
Software delivery problem: CI failures after dependency upgrade
Task t... | 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 |
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: y8kyb... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: compiler_frontend
Scenario: document indexing pipeline
Domain focus: stream processing
Primary language: go
Difficulty: expert+
Scale/SLO: 99.99% availability
Component: component_lipqfmnr
Constraints: avoid data races and undefined behavior, include verification strategy, include security threat model (defe... | WithinUsAI/Omega_Genesis_Coder_100k |
Optimize while preserving behavior and order.
```python
def f81162(xs):
out=[]
for x in xs:
if x not in out: out.append(x)
return out
```
Return `m40166.py` with types and O(n) average.
```python
# m40166.py
from __future__ import annotations
from typing import Iterable, List, Set, TypeVar
T=TypeVar("T")
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f23058(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 `m03294.py` and `test_m03294.py`.
*** Begin Patch
*** Update File: m03294.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Fix a bug and add tests.
File: omohqh2.py
```py... | WithinUsAI/Royal_Ghost_Coder_501k |
You are Royal Ghost Coder, an expert offline software engineer and code-evolution agent. You produce production-quality code, minimal diffs, and tests. Safety: refuse or redirect requests that enable malware, exploitation, credential theft, or unauthorized access.
Task: Refactor to modern typed Python with immutabilit... | WithinUsAI/Royal_Ghost_Coder_501k |
Fix the bug and add pytest tests.
```python
def f35656(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 `m90808.py` and `test_m90808.py`.
*** Begin Patch
*** Update File: m90808.py
@@
d... | WithinUsAI/Royal_Ghost_Coder_501k |
Implement a web feature for logistics: offline-first sync.
Target platform: web (React + TypeScript).
Requirements: accessible UI, API integration, and tests.
Constraints: must be observable (logs/metrics/traces), must be easy to extend, must include documentation/comments, must be secure-by-default, must include type ... | WithinUsAI/GOD_Coder_100k |
Build an elite-grade solution in the domain of sre/observability for scenario: multi-tenant SaaS.
Primary language: sql.
Difficulty: expert.
Constraints: design for backward compatibility and migrations, provide rollout and rollback guidance, avoid undefined behavior and data races, assume untrusted inputs; validate an... | 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: Go, Gin, PostgreSQL, gRPC, Prometheus, Docker
Language: C++
Dependency challenge: slow cold start
Task type: lockfile_repair
Difficulty: medium... | WithinUsAI/GOD_Coder_Complete_DataSet |
Build an elite-grade solution in the domain of security engineering (defensive) for scenario: chat messaging.
Primary language: rust.
Difficulty: expert.
Constraints: provide rollout and rollback guidance, assume untrusted inputs; validate and sanitize, document performance characteristics, design for backward compatib... | WithinUsAI/Elite_GOD_Coder_100k |
Build an elite-grade solution in the domain of distributed systems for scenario: chat messaging.
Primary language: rust.
Difficulty: hard.
Constraints: document performance characteristics, include tests or verification strategy, include invariants and failure modes, assume untrusted inputs; validate and sanitize, desi... | WithinUsAI/Elite_GOD_Coder_100k |
Write pytest tests for `f11248`.
```python
def f11248(a: int, b: int) -> int:
return a*a + b*b
```
Include edge cases and a property-style check.
```python
import random
from m44464 import f11248
def test_known():
assert f11248(3,4) == 25
def test_zero():
assert f11248(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: Fix a bug and add tests.
File: l92y4u60r.py
```... | WithinUsAI/Royal_Ghost_Coder_501k |
Task type: static_analyzer
Scenario: job scheduler
Domain focus: query planning
Primary language: go
Difficulty: expert
Scale/SLO: p99 < 150ms
Component: component_nvozzmjl
Constraints: explicit contracts and invariants, include failure modes and recovery, include backward compatibility and migration plan, include dete... | WithinUsAI/Omega_Genesis_Coder_100k |
Fix the bug and add pytest tests.
```python
def f19011(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 `m45573.py` and `test_m45573.py`.
*** Begin Patch
*** Update File: m45573.py
@@
d... | 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.