Dataset Viewer
Auto-converted to Parquet Duplicate
instruction
stringclasses
192 values
input
stringclasses
209 values
output
stringlengths
3.15k
12.1k
Develop a web application with clean architecture: separate concerns, handle errors properly, log important events, and support configuration.
Language: typescript Requirements: Configurable behavior, robust error handling, structured logging, input validation.
Let me think through this carefully. We're building a web application and I want to make sure it's done right. The key challenges here are: 1. Handling edge cases properly 2. Making the code resilient to failures 3. Keeping it clean and maintainable I realize that starting with a solid foundation is critical. Let me ...
Build a monitoring dashboard that handles edge cases gracefully. Include logging, error recovery, and environment-based configuration.
Looking at this monitoring dashboard implementation, I want to make sure it's well-structured. My approach: 1. First, scaffold the basic structure 2. Add core logic with error boundaries 3. Implement configuration management 4. Add logging and monitoring 5. Create the entry point I'm thinking about the architecture: ...
Develop a testing framework with clean architecture: separate concerns, handle errors properly, log important events, and support configuration.
Language: python The testing framework should be configurable via environment variables. Include error handling and logging.
I need to build a testing framework. Let me plan this carefully before writing code. Step 1: Set up the project structure - Create the main module with clear dependencies - Set up logging and configuration - Define data structures Step 2: Implement core logic - Handle the main business requirements - Add error handli...
Build a configuration manager that handles edge cases gracefully. Include logging, error recovery, and environment-based configuration.
Language: javascript Follow production best practices: configuration, error handling, logging, testing support.
Let me analyze what we need here. The user wants a configuration manager. Let me think through the architecture: First, I need to understand the core requirements: 1. The main functionality is processing and transforming data 2. We need proper error handling and logging 3. Configuration should be environment-based 4. ...
Create a game engine following software engineering best practices: modular design, error handling, logging, configuration management.
Language: python The game engine should be configurable via environment variables. Include error handling and logging.
Let me analyze what we need here. The user wants a game engine. Let me think through the architecture: First, I need to understand the core requirements: 1. The main functionality is handling the core business logic 2. We need proper error handling and logging 3. Configuration should be environment-based 4. The code s...
Develop a plugin system with clean architecture: separate concerns, handle errors properly, log important events, and support configuration.
Language: python Requirements: Configurable behavior, robust error handling, structured logging, input validation.
Let me analyze what we need here. The user wants a plugin system. Let me think through the architecture: First, I need to understand the core requirements: 1. The main functionality is managing the workflow pipeline 2. We need proper error handling and logging 3. Configuration should be environment-based 4. The code s...
Create a game engine following software engineering best practices: modular design, error handling, logging, configuration management.
Language: html+css+js Requirements: Configurable behavior, robust error handling, structured logging, input validation.
Looking at this game engine implementation, I want to make sure it's well-structured. My approach: 1. First, scaffold the basic structure 2. Add core logic with error boundaries 3. Implement configuration management 4. Add logging and monitoring 5. Create the entry point I'm thinking about the architecture: - A main ...
Write a well-structured REST API server with type hints, docstrings, error handling, and configurable parameters.
Language: python The REST API server should be configurable via environment variables. Include error handling and logging.
Let me think through this carefully. We're building a REST API server and I want to make sure it's done right. The key challenges here are: 1. Handling edge cases properly 2. Making the code resilient to failures 3. Keeping it clean and maintainable I realize that starting with a solid foundation is critical. Let me ...
Write a production-ready API client library implementation with proper error handling, logging, and configuration.
Language: javascript The API client library should be configurable via environment variables. Include error handling and logging.
Let me analyze what we need here. The user wants a API client library. Let me think through the architecture: First, I need to understand the core requirements: 1. The main functionality is providing the main functionality 2. We need proper error handling and logging 3. Configuration should be environment-based 4. The...
Implement a middleware system following best practices. Include error handling, logging, and configuration via environment variables.
Language: node.js/express The middleware system should be configurable via environment variables. Include error handling and logging.
Let me analyze what we need here. The user wants a middleware system. Let me think through the architecture: First, I need to understand the core requirements: 1. The main functionality is handling the core business logic 2. We need proper error handling and logging 3. Configuration should be environment-based 4. The ...
Create a state management following software engineering best practices: modular design, error handling, logging, configuration management.
Language: python Requirements: Configurable behavior, robust error handling, structured logging, input validation.
I need to build a state management. Let me plan this carefully before writing code. Step 1: Set up the project structure - Create the main module with clear dependencies - Set up logging and configuration - Define data structures Step 2: Implement core logic - Handle the main business requirements - Add error handlin...
Create a robust UI component library with comprehensive error handling, input validation, and configurable behavior.
Language: typescript The UI component library should be configurable via environment variables. Include error handling and logging.
Let me analyze what we need here. The user wants a UI component library. Let me think through the architecture: First, I need to understand the core requirements: 1. The main functionality is processing and transforming data 2. We need proper error handling and logging 3. Configuration should be environment-based 4. T...
Build a file converter that handles edge cases gracefully. Include logging, error recovery, and environment-based configuration.
Language: javascript Follow production best practices: configuration, error handling, logging, testing support.
Let me think through this carefully. We're building a file converter and I want to make sure it's done right. The key challenges here are: 1. Handling edge cases properly 2. Making the code resilient to failures 3. Keeping it clean and maintainable I realize that starting with a solid foundation is critical. Let me l...
Implement a data processing pipeline following best practices. Include error handling, logging, and configuration via environment variables.
Language: typescript Requirements: Configurable behavior, robust error handling, structured logging, input validation.
Looking at this data processing pipeline implementation, I want to make sure it's well-structured. My approach: 1. First, scaffold the basic structure 2. Add core logic with error boundaries 3. Implement configuration management 4. Add logging and monitoring 5. Create the entry point I'm thinking about the architectu...
Develop a file converter with clean architecture: separate concerns, handle errors properly, log important events, and support configuration.
Language: typescript Requirements: Configurable behavior, robust error handling, structured logging, input validation.
Looking at this file converter implementation, I want to make sure it's well-structured. My approach: 1. First, scaffold the basic structure 2. Add core logic with error boundaries 3. Implement configuration management 4. Add logging and monitoring 5. Create the entry point I'm thinking about the architecture: - A ma...
Create a robust file converter with comprehensive error handling, input validation, and configurable behavior.
I need to build a file converter. Let me plan this carefully before writing code. Step 1: Set up the project structure - Create the main module with clear dependencies - Set up logging and configuration - Define data structures Step 2: Implement core logic - Handle the main business requirements - Add error handling ...
Write a production-ready testing framework implementation with proper error handling, logging, and configuration.
Language: python Follow production best practices: configuration, error handling, logging, testing support.
Let me think through this carefully. We're building a testing framework and I want to make sure it's done right. The key challenges here are: 1. Handling edge cases properly 2. Making the code resilient to failures 3. Keeping it clean and maintainable I realize that starting with a solid foundation is critical. Let m...
Implement a production-quality data processing pipeline with proper error boundaries, logging infrastructure, and externalized configuration.
Language: html+css+js The data processing pipeline should be configurable via environment variables. Include error handling and logging.
I need to build a data processing pipeline. Let me plan this carefully before writing code. Step 1: Set up the project structure - Create the main module with clear dependencies - Set up logging and configuration - Define data structures Step 2: Implement core logic - Handle the main business requirements - Add error...
Write a well-structured task queue with type hints, docstrings, error handling, and configurable parameters.
Language: javascript The task queue should be configurable via environment variables. Include error handling and logging.
Let me analyze what we need here. The user wants a task queue. Let me think through the architecture: First, I need to understand the core requirements: 1. The main functionality is managing the workflow pipeline 2. We need proper error handling and logging 3. Configuration should be environment-based 4. The code shou...
Write a well-structured database migration with type hints, docstrings, error handling, and configurable parameters.
Let me analyze what we need here. The user wants a database migration. Let me think through the architecture: First, I need to understand the core requirements: 1. The main functionality is managing the workflow pipeline 2. We need proper error handling and logging 3. Configuration should be environment-based 4. The c...
Create a robust plugin system with comprehensive error handling, input validation, and configurable behavior.
Language: javascript The plugin system should be configurable via environment variables. Include error handling and logging.
Looking at this plugin system implementation, I want to make sure it's well-structured. My approach: 1. First, scaffold the basic structure 2. Add core logic with error boundaries 3. Implement configuration management 4. Add logging and monitoring 5. Create the entry point I'm thinking about the architecture: - A mai...
Create a CLI tool following software engineering best practices: modular design, error handling, logging, configuration management.
Let me think through this carefully. We're building a CLI tool and I want to make sure it's done right. The key challenges here are: 1. Handling edge cases properly 2. Making the code resilient to failures 3. Keeping it clean and maintainable I realize that starting with a solid foundation is critical. Let me look at...
Implement a production-quality data processing pipeline with proper error boundaries, logging infrastructure, and externalized configuration.
Language: node.js/express Requirements: Configurable behavior, robust error handling, structured logging, input validation.
Let me think through this carefully. We're building a data processing pipeline and I want to make sure it's done right. The key challenges here are: 1. Handling edge cases properly 2. Making the code resilient to failures 3. Keeping it clean and maintainable I realize that starting with a solid foundation is critical...
Implement a production-quality API client library with proper error boundaries, logging infrastructure, and externalized configuration.
Let me think through this carefully. We're building a API client library and I want to make sure it's done right. The key challenges here are: 1. Handling edge cases properly 2. Making the code resilient to failures 3. Keeping it clean and maintainable I realize that starting with a solid foundation is critical. Let ...
Build a game engine that handles edge cases gracefully. Include logging, error recovery, and environment-based configuration.
Let me think through this carefully. We're building a game engine and I want to make sure it's done right. The key challenges here are: 1. Handling edge cases properly 2. Making the code resilient to failures 3. Keeping it clean and maintainable I realize that starting with a solid foundation is critical. Let me look...
Implement a production-quality automation script with proper error boundaries, logging infrastructure, and externalized configuration.
Language: python Requirements: Configurable behavior, robust error handling, structured logging, input validation.
I need to build a automation script. Let me plan this carefully before writing code. Step 1: Set up the project structure - Create the main module with clear dependencies - Set up logging and configuration - Define data structures Step 2: Implement core logic - Handle the main business requirements - Add error handli...
Create a CLI tool following software engineering best practices: modular design, error handling, logging, configuration management.
Language: python The CLI tool should be configurable via environment variables. Include error handling and logging.
Let me analyze what we need here. The user wants a CLI tool. Let me think through the architecture: First, I need to understand the core requirements: 1. The main functionality is managing the workflow pipeline 2. We need proper error handling and logging 3. Configuration should be environment-based 4. The code should...
Develop a web application with clean architecture: separate concerns, handle errors properly, log important events, and support configuration.
I need to build a web application. Let me plan this carefully before writing code. Step 1: Set up the project structure - Create the main module with clear dependencies - Set up logging and configuration - Define data structures Step 2: Implement core logic - Handle the main business requirements - Add error handling...
Create a testing framework following software engineering best practices: modular design, error handling, logging, configuration management.
Language: javascript Requirements: Configurable behavior, robust error handling, structured logging, input validation.
I need to build a testing framework. Let me plan this carefully before writing code. Step 1: Set up the project structure - Create the main module with clear dependencies - Set up logging and configuration - Define data structures Step 2: Implement core logic - Handle the main business requirements - Add error handli...
Implement a production-quality caching layer with proper error boundaries, logging infrastructure, and externalized configuration.
Language: html+css+js Follow production best practices: configuration, error handling, logging, testing support.
Let me analyze what we need here. The user wants a caching layer. Let me think through the architecture: First, I need to understand the core requirements: 1. The main functionality is providing the main functionality 2. We need proper error handling and logging 3. Configuration should be environment-based 4. The code...
Develop a logging system with clean architecture: separate concerns, handle errors properly, log important events, and support configuration.
Language: python The logging system should be configurable via environment variables. Include error handling and logging.
Let me think through this carefully. We're building a logging system and I want to make sure it's done right. The key challenges here are: 1. Handling edge cases properly 2. Making the code resilient to failures 3. Keeping it clean and maintainable I realize that starting with a solid foundation is critical. Let me l...
End of preview. Expand in Data Studio

Coding Excellence Dataset

Claude/Fable-5 のコーディング性能分布を分析し、理想的なコーディングパターンを強化注入したチャット形式コード生成データセット。

📊 概要

項目
レコード数 100,000
形式 {"instruction": "...", "input": "...", "output": "..."}
ファイルサイズ 623 MB (JSONL, LFS管理)
出力平均長 6,052文字 (CoT + コード)
ライセンス AGPL-3.0

🧠 設計思想

Glint-Research/Fable-5-traces の4,665レコードを徹底解析し、 Claude (Fable-5) のコーディング性能を支える5つの決定的因子を特定:

# 因子 再現率
1 厚いChain-of-Thought(平均〜3,000文字の思考過程) ✅ 100%
2 自己指示・自己対話(91.7%のレコードに含有) ✅ 100%
3 エラー予測と回復(73.7%がエラー処理に言及) ✅ 100%
4 検証と確認(62.2%が動作検証を含む) ✅ 100%
5 構造化コード出力(コメント・設定・logging・export) ✅ 100%

📈 コード品質指標

指標 カバレッジ
コメント付きコード 100%
エラー処理 (try/catch/except) 100%
設定管理 (env/config) 100%
ロギング 100%
関数/メソッド定義 100%
エクスポート/公開API 43.4%

🌐 言語分布

言語 比率
Python ~32%
JavaScript ~24%
TypeScript ~12%
HTML+CSS+JS ~10%
Node.js/Express ~8%
React ~7%
Bash/Shell ~3%
Go ~2%

🚀 使い方

import json

# データ読み込み
with open("coding_excellence.jsonl") as f:
    data = [json.loads(line) for line in f]

# Hugging Face datasets で読む
from datasets import load_dataset
ds = load_dataset("summerMC/coding-excellence", split="train")

# ChatML形式でファインチューニング
train_data = []
for r in ds:
    messages = [
        {"role": "user", "content": r["instruction"] + ("\n" + r["input"] if r["input"] else "")},
        {"role": "assistant", "content": r["output"]},
    ]
    train_data.append({"messages": messages})

🔧 カスタム生成

pip install numpy
python3 coding_excellence_generator.py --records 50000 --output my_data.jsonl --seed 42

📋 レコード例

{
  "instruction": "Write a production-ready REST API server with proper error handling, logging, and configuration.",
  "input": "Language: python\nRequirements: Configurable behavior, robust error handling, structured logging, input validation.",
  "output": "Let me think through this carefully. We're building a REST API server...\n\n```python\nimport os\nimport sys\nimport json\nimport logging\n...\n```"
}

📝 ライセンス

AGPL-3.0

🙏 クレジット

Downloads last month
-