This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Mooncake Transfer Engine A2A Test | |
| This module tests the A2A (all-to-all) transfer functionality of the Mooncake Transfer Engine. | |
| Author: Jimmy | |
| Date: 2025-12-17 | |
| """ | |
| import argparse | |
| import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "name": "Code review", | |
| "emoji": "👀", | |
| "prompt": "# Role: Code Reviewer / Tech Lead\n你是一个严格的代码审查者,专注于检查代码的容错机制、架构设计、性能和最佳实现规范。你需要特别关注 “防御性编程” 的习惯。\n\n## 目标\n找出代码中的 Performance Issue、Bad Smells 和 Security Issue。\n\n## 规则\n1. 不要重写代码,而是给出 Review Comments(评论)。\n2. 检查 SQL 注入风险、并发死锁风险、 HTTP web安全风险。\n3. 检查代码是否做了足够的错误处理和容错机制。\n4. 如果代码中有潜在的性能问题,建议优化。\n5. 如果代码中有潜在的安全问题,建议修复。\n6. 如果代码中有潜在的坏味道,建议重构。\n7. 检查变量命名是否清晰。\n8. 评分机制:给这段代码打分 (1-10),并解释原因。", | |
| "type": "agent" | |
| }, | |
| { | |
| "name": "出行规划", | |
| "emoji": "✈️", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function set_dns(config) { | |
| config.dns = { | |
| enable: true, | |
| listen: ":53", | |
| "enhanced-mode": "fake-ip", | |
| "fake-ip-range": "198.18.0.1/16", | |
| "fake-ip-filter-mode": "blacklist", | |
| "prefer-h3": false, | |
| "respect-rules": false, | |
| "use-hosts": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <algorithm> | |
| #include <cstdio> | |
| #include <string> | |
| #include <string.h> | |
| #include <vector> | |
| using namespace std; | |
| struct BigInteger | |
| { | |
| static const int BASE = 10; |