{
  "meta": {
    "pretty_name": "SWE-bench_Multilingual_Agentic",
    "dataset_id": "SWE-bench/SWE-bench_Multilingual",
    "paper_url": null,
    "tags": [
      "Coding"
    ],
    "metrics": [
      "acc"
    ],
    "few_shot_num": 0,
    "eval_split": "test",
    "train_split": "",
    "subset_list": [
      "default"
    ],
    "description": "\n## Overview\n\nSWE-bench Multilingual Agentic is the agentic-mode evaluation of SWE-bench Multilingual, a 300-task SWE-bench-style benchmark spanning 42 repositories and 9 programming languages. The model autonomously explores, edits, and submits a patch through a multi-turn agent loop inside a per-instance Docker container.\n\n## Task Description\n\n- **Task Type**: Automated Software Engineering / Bug Fixing (Agentic, Multilingual)\n- **Input**: GitHub issue description (no oracle file context)\n- **Output**: Code patch (diff format) collected from `git diff` after autonomous editing\n- **Languages**: C, C++, Go, Java, JavaScript/TypeScript, PHP, Ruby, and Rust\n\n## Key Features\n\n- 300 curated Issue-Pull Request tasks\n- 42 real-world repositories across 9 programming languages\n- Multi-turn agent loop with per-instance SWE-bench Docker sandbox\n- SWE-bench-compatible patch evaluation using fail-to-pass and pass-to-pass tests\n\n## Evaluation Notes\n\n- Requires `pip install swebench==4.1.0` before evaluation\n- Uses the official SWE-bench Multilingual x86_64 instance images and sets Docker platform to `linux/amd64` automatically\n- Docker images are built/pulled automatically for each instance\n- Timeout of 1800 seconds (30 min) per instance for final patch validation\n- See the [usage documentation](https://evalscope.readthedocs.io/en/latest/third_party/swe_bench.html) for detailed setup instructions\n- Supports both local image building and remote image pulling\n\n## Agentic Mode\n\nThis benchmark drives a multi-turn agent loop (mirrors mini-swe-agent's\n`swebench.yaml`) inside a per-instance SWE-bench Docker container. The\nmodel issues `bash` commands to explore `/testbed`, edit source files,\nand finally submits its `git diff` patch by printing the sentinel\n`COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT` followed by the patch contents.\n\n`extra_params.action_protocol` selects between:\n- `toolcall` (default): OpenAI function-calling protocol with a single\n  `bash` tool. Recommended for any model that supports tool calling.\n- `backticks`: text-based fallback expecting one\n  ` ```mswea_bash_command ``` ` block per turn. For models without\n  function-calling support.\n",
    "prompt_template": "{question}",
    "system_prompt": "",
    "few_shot_prompt_template": "",
    "aggregation": "mean",
    "extra_params": {
      "action_protocol": {
        "type": "str",
        "description": "Agent action protocol: \"toolcall\" (mainline OpenAI function-calling, mirrors mini-swe-agent swebench.yaml) or \"backticks\" (textbased mswea_bash_command fallback for models without function-calling support).",
        "value": "toolcall",
        "choices": [
          "toolcall",
          "backticks"
        ]
      },
      "max_steps": {
        "type": "int",
        "description": "Maximum number of agent steps per sample.",
        "value": 250
      },
      "command_timeout": {
        "type": "float",
        "description": "Default per-bash-command timeout in seconds.",
        "value": 60.0
      },
      "build_docker_images": {
        "type": "bool",
        "description": "Build Docker images locally for each sample.",
        "value": true
      },
      "pull_remote_images_if_available": {
        "type": "bool",
        "description": "Attempt to pull existing remote Docker images before building.",
        "value": true
      },
      "force_arch": {
        "type": "str",
        "description": "Optionally force a specific architecture for image build/pull.",
        "value": "",
        "choices": [
          "",
          "arm64",
          "x86_64"
        ]
      },
      "dockerhub_username": {
        "type": "str",
        "description": "DockerHub user/org namespace for remote SWE-bench images.",
        "value": "swebench"
      }
    },
    "sandbox_config": {},
    "category": "agent"
  },
  "statistics": {
    "total_samples": 300,
    "subset_stats": [
      {
        "name": "default",
        "sample_count": 300,
        "prompt_length_mean": 2197.94,
        "prompt_length_min": 124,
        "prompt_length_max": 69351,
        "prompt_length_std": 4452.1,
        "target_length_mean": null
      }
    ],
    "prompt_length": {
      "mean": 2197.94,
      "min": 124,
      "max": 69351,
      "std": 4452.1
    },
    "target_length_mean": null,
    "computed_at": "2026-06-22T17:55:04.631350"
  },
  "sample_example": {
    "data": {
      "input": [
        {
          "id": "52ece3cf",
          "content": "Support Post aggregation function pow(f1,f2) to cater for square, cube , square root.\n### Description\r\n\r\nPlease describe the feature or change with as much detail as possible. \r\n\r\nAs of now the only supported arithmetic functions are +, -, *, ... [TRUNCATED 284 chars] ... \r\n\r\nThe proposal is to add a `pow` function which enables all the about usecase .  Square of a number can be represent by pow(f1,2) , Cube can be represented as power(f1 ,3)  , Squar root of a number can be represented by power(f1,0.5) ,\r\n\r\n\n"
        }
      ],
      "id": 0,
      "group_id": 0,
      "tools": [
        {
          "name": "bash",
          "description": "Execute a bash command inside the sandbox environment. Returns the combined stdout / stderr output of the command.",
          "parameters": {
            "properties": {
              "command": {
                "type": "string",
                "description": "The bash command to execute."
              },
              "timeout": {
                "type": "number",
                "description": "Maximum execution time in seconds (default: 60).",
                "default": 60
              }
            },
            "required": [
              "command"
            ]
          }
        }
      ],
      "metadata": {
        "problem_statement": "Support Post aggregation function pow(f1,f2) to cater for square, cube , square root.\n### Description\r\n\r\nPlease describe the feature or change with as much detail as possible. \r\n\r\nAs of now the only supported arithmetic functions are +, -, *, ... [TRUNCATED 284 chars] ... \r\n\r\nThe proposal is to add a `pow` function which enables all the about usecase .  Square of a number can be represent by pow(f1,2) , Cube can be represented as power(f1 ,3)  , Squar root of a number can be represented by power(f1,0.5) ,\r\n\r\n\n",
        "instance_id": "apache__druid-13704",
        "base_commit": "51dfde02840017092486fb75be2b16566aff6a19",
        "patch": "diff --git a/docs/querying/post-aggregations.md b/docs/querying/post-aggregations.md\nindex c75d122eb20a..935ca8fbce16 100644\n--- a/docs/querying/post-aggregations.md\n+++ b/docs/querying/post-aggregations.md\n@@ -36,7 +36,7 @@ There are several ... [TRUNCATED 1110 chars] ...      }\n+    },\n+\n+    POW(\"pow\") {\n+      @Override\n+      public double compute(double lhs, double rhs)\n+      {\n+        return Math.pow(lhs, rhs);\n+      }\n     };\n \n     private static final Map<String, Ops> LOOKUP_MAP = new HashMap<>();\n",
        "PASS_TO_PASS": [
          "org.apache.druid.query.aggregation.post.ArithmeticPostAggregatorTest#testDiv",
          "org.apache.druid.query.aggregation.post.ArithmeticPostAggregatorTest#testQuotient"
        ],
        "FAIL_TO_PASS": [
          "org.apache.druid.query.aggregation.post.ArithmeticPostAggregatorTest#testPow"
        ],
        "test_patch": "diff --git a/processing/src/test/java/org/apache/druid/query/aggregation/post/ArithmeticPostAggregatorTest.java b/processing/src/test/java/org/apache/druid/query/aggregation/post/ArithmeticPostAggregatorTest.java\nindex a93034427539..7e1d4d112 ... [TRUNCATED 1358 chars] ... s(1.0, agg.compute(ImmutableMap.of(\"value\", 1)));\n+    Assert.assertEquals(1.0, agg.compute(ImmutableMap.of(\"value\", -1)));\n+    Assert.assertEquals(1.0, agg.compute(ImmutableMap.of(\"value\", .5)));\n+  }\n   @Test\n   public void testDiv()\n   {\n",
        "version": "13704",
        "repo": "apache/druid",
        "environment_setup_commit": null,
        "hints_text": "",
        "created_at": "2023-01-23 04:10:47",
        "docker_image": "swebench/sweb.eval.x86_64.apache_1776_druid-13704:latest"
      }
    },
    "subset": "default",
    "truncated": false
  },
  "readme": {
    "en": "# SWE-bench_Multilingual_Agentic\n\n\n## Overview\n\nSWE-bench Multilingual Agentic is the agentic-mode evaluation of SWE-bench Multilingual, a 300-task SWE-bench-style benchmark spanning 42 repositories and 9 programming languages. The model autonomously explores, edits, and submits a patch through a multi-turn agent loop inside a per-instance Docker container.\n\n## Task Description\n\n- **Task Type**: Automated Software Engineering / Bug Fixing (Agentic, Multilingual)\n- **Input**: GitHub issue description (no oracle file context)\n- **Output**: Code patch (diff format) collected from `git diff` after autonomous editing\n- **Languages**: C, C++, Go, Java, JavaScript/TypeScript, PHP, Ruby, and Rust\n\n## Key Features\n\n- 300 curated Issue-Pull Request tasks\n- 42 real-world repositories across 9 programming languages\n- Multi-turn agent loop with per-instance SWE-bench Docker sandbox\n- SWE-bench-compatible patch evaluation using fail-to-pass and pass-to-pass tests\n\n## Evaluation Notes\n\n- Requires `pip install swebench==4.1.0` before evaluation\n- Uses the official SWE-bench Multilingual x86_64 instance images and sets Docker platform to `linux/amd64` automatically\n- Docker images are built/pulled automatically for each instance\n- Timeout of 1800 seconds (30 min) per instance for final patch validation\n- See the [usage documentation](https://evalscope.readthedocs.io/en/latest/third_party/swe_bench.html) for detailed setup instructions\n- Supports both local image building and remote image pulling\n\n## Agentic Mode\n\nThis benchmark drives a multi-turn agent loop (mirrors mini-swe-agent's\n`swebench.yaml`) inside a per-instance SWE-bench Docker container. The\nmodel issues `bash` commands to explore `/testbed`, edit source files,\nand finally submits its `git diff` patch by printing the sentinel\n`COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT` followed by the patch contents.\n\n`extra_params.action_protocol` selects between:\n- `toolcall` (default): OpenAI function-calling protocol with a single\n  `bash` tool. Recommended for any model that supports tool calling.\n- `backticks`: text-based fallback expecting one\n  ` ```mswea_bash_command ``` ` block per turn. For models without\n  function-calling support.\n\n\n## Properties\n\n| Property | Value |\n|----------|-------|\n| **Benchmark Name** | `swe_bench_multilingual_agentic` |\n| **Dataset ID** | [SWE-bench/SWE-bench_Multilingual](https://modelscope.cn/datasets/SWE-bench/SWE-bench_Multilingual/summary) |\n| **Paper** | N/A |\n| **Tags** | `Coding` |\n| **Metrics** | `acc` |\n| **Default Shots** | 0-shot |\n| **Evaluation Split** | `test` |\n\n\n## Data Statistics\n\n| Metric | Value |\n|--------|-------|\n| Total Samples | 300 |\n| Prompt Length (Mean) | 2197.94 chars |\n| Prompt Length (Min/Max) | 124 / 69351 chars |\n\n## Sample Example\n\n**Subset**: `default`\n\n```json\n{\n  \"input\": [\n    {\n      \"id\": \"52ece3cf\",\n      \"content\": \"Support Post aggregation function pow(f1,f2) to cater for square, cube , square root.\\n### Description\\r\\n\\r\\nPlease describe the feature or change with as much detail as possible. \\r\\n\\r\\nAs of now the only supported arithmetic functions are +, -, *, ... [TRUNCATED 284 chars] ... \\r\\n\\r\\nThe proposal is to add a `pow` function which enables all the about usecase .  Square of a number can be represent by pow(f1,2) , Cube can be represented as power(f1 ,3)  , Squar root of a number can be represented by power(f1,0.5) ,\\r\\n\\r\\n\\n\"\n    }\n  ],\n  \"id\": 0,\n  \"group_id\": 0,\n  \"tools\": [\n    {\n      \"name\": \"bash\",\n      \"description\": \"Execute a bash command inside the sandbox environment. Returns the combined stdout / stderr output of the command.\",\n      \"parameters\": {\n        \"properties\": {\n          \"command\": {\n            \"type\": \"string\",\n            \"description\": \"The bash command to execute.\"\n          },\n          \"timeout\": {\n            \"type\": \"number\",\n            \"description\": \"Maximum execution time in seconds (default: 60).\",\n            \"default\": 60\n          }\n        },\n        \"required\": [\n          \"command\"\n        ]\n      }\n    }\n  ],\n  \"metadata\": {\n    \"problem_statement\": \"Support Post aggregation function pow(f1,f2) to cater for square, cube , square root.\\n### Description\\r\\n\\r\\nPlease describe the feature or change with as much detail as possible. \\r\\n\\r\\nAs of now the only supported arithmetic functions are +, -, *, ... [TRUNCATED 284 chars] ... \\r\\n\\r\\nThe proposal is to add a `pow` function which enables all the about usecase .  Square of a number can be represent by pow(f1,2) , Cube can be represented as power(f1 ,3)  , Squar root of a number can be represented by power(f1,0.5) ,\\r\\n\\r\\n\\n\",\n    \"instance_id\": \"apache__druid-13704\",\n    \"base_commit\": \"51dfde02840017092486fb75be2b16566aff6a19\",\n    \"patch\": \"diff --git a/docs/querying/post-aggregations.md b/docs/querying/post-aggregations.md\\nindex c75d122eb20a..935ca8fbce16 100644\\n--- a/docs/querying/post-aggregations.md\\n+++ b/docs/querying/post-aggregations.md\\n@@ -36,7 +36,7 @@ There are several ... [TRUNCATED 1110 chars] ...      }\\n+    },\\n+\\n+    POW(\\\"pow\\\") {\\n+      @Override\\n+      public double compute(double lhs, double rhs)\\n+      {\\n+        return Math.pow(lhs, rhs);\\n+      }\\n     };\\n \\n     private static final Map<String, Ops> LOOKUP_MAP = new HashMap<>();\\n\",\n    \"PASS_TO_PASS\": [\n      \"org.apache.druid.query.aggregation.post.ArithmeticPostAggregatorTest#testDiv\",\n      \"org.apache.druid.query.aggregation.post.ArithmeticPostAggregatorTest#testQuotient\"\n    ],\n    \"FAIL_TO_PASS\": [\n      \"org.apache.druid.query.aggregation.post.ArithmeticPostAggregatorTest#testPow\"\n    ],\n    \"test_patch\": \"diff --git a/processing/src/test/java/org/apache/druid/query/aggregation/post/ArithmeticPostAggregatorTest.java b/processing/src/test/java/org/apache/druid/query/aggregation/post/ArithmeticPostAggregatorTest.java\\nindex a93034427539..7e1d4d112 ... [TRUNCATED 1358 chars] ... s(1.0, agg.compute(ImmutableMap.of(\\\"value\\\", 1)));\\n+    Assert.assertEquals(1.0, agg.compute(ImmutableMap.of(\\\"value\\\", -1)));\\n+    Assert.assertEquals(1.0, agg.compute(ImmutableMap.of(\\\"value\\\", .5)));\\n+  }\\n   @Test\\n   public void testDiv()\\n   {\\n\",\n    \"version\": \"13704\",\n    \"repo\": \"apache/druid\",\n    \"environment_setup_commit\": null,\n    \"hints_text\": \"\",\n    \"created_at\": \"2023-01-23 04:10:47\",\n    \"docker_image\": \"swebench/sweb.eval.x86_64.apache_1776_druid-13704:latest\"\n  }\n}\n```\n\n## Prompt Template\n\n**Prompt Template:**\n```text\n{question}\n```\n\n## Extra Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `action_protocol` | `str` | `toolcall` | Agent action protocol: \"toolcall\" (mainline OpenAI function-calling, mirrors mini-swe-agent swebench.yaml) or \"backticks\" (textbased mswea_bash_command fallback for models without function-calling support). Choices: ['toolcall', 'backticks'] |\n| `max_steps` | `int` | `250` | Maximum number of agent steps per sample. |\n| `command_timeout` | `float` | `60.0` | Default per-bash-command timeout in seconds. |\n| `build_docker_images` | `bool` | `True` | Build Docker images locally for each sample. |\n| `pull_remote_images_if_available` | `bool` | `True` | Attempt to pull existing remote Docker images before building. |\n| `force_arch` | `str` | `` | Optionally force a specific architecture for image build/pull. Choices: ['', 'arm64', 'x86_64'] |\n| `dockerhub_username` | `str` | `swebench` | DockerHub user/org namespace for remote SWE-bench images. |\n\n## Usage\n\n### Using CLI\n\n```bash\nevalscope eval \\\n    --model YOUR_MODEL \\\n    --api-url OPENAI_API_COMPAT_URL \\\n    --api-key EMPTY_TOKEN \\\n    --datasets swe_bench_multilingual_agentic \\\n    --limit 10  # Remove this line for formal evaluation\n```\n\n### Using Python\n\n```python\nfrom evalscope import run_task\nfrom evalscope.config import TaskConfig\n\ntask_cfg = TaskConfig(\n    model='YOUR_MODEL',\n    api_url='OPENAI_API_COMPAT_URL',\n    api_key='EMPTY_TOKEN',\n    datasets=['swe_bench_multilingual_agentic'],\n    dataset_args={\n        'swe_bench_multilingual_agentic': {\n            # extra_params: {}  # uses default extra parameters\n        }\n    },\n    limit=10,  # Remove this line for formal evaluation\n)\n\nrun_task(task_cfg=task_cfg)\n```\n\n\n",
    "zh": "# SWE-bench_Multilingual_Agentic\n\n\n## 概述\n\nSWE-bench Multilingual Agentic 是 SWE-bench Multilingual 的代理模式（agentic-mode）评估版本。该基准测试包含 300 个 SWE-bench 风格的任务，涵盖 42 个代码仓库和 9 种编程语言。模型在每个实例专属的 Docker 容器中，通过多轮代理循环自主探索、编辑代码并提交补丁。\n\n## 任务描述\n\n- **任务类型**：自动化软件工程 / 缺陷修复（代理式、多语言）\n- **输入**：GitHub issue 描述（不提供 oracle 文件上下文）\n- **输出**：模型自主编辑后通过 `git diff` 生成的代码补丁（diff 格式）\n- **支持语言**：C、C++、Go、Java、JavaScript/TypeScript、PHP、Ruby 和 Rust\n\n## 主要特性\n\n- 精心筛选的 300 个 Issue-Pull Request 任务\n- 覆盖 9 种编程语言的 42 个真实开源仓库\n- 每个实例使用独立的 SWE-bench Docker 沙箱环境进行多轮代理交互\n- 使用 fail-to-pass 和 pass-to-pass 测试对补丁进行 SWE-bench 兼容性评估\n\n## 评估说明\n\n- 评估前需安装 `pip install swebench==4.1.0`\n- 自动使用官方 SWE-bench Multilingual x86_64 实例镜像，并自动设置 Docker 平台为 `linux/amd64`\n- 每个实例的 Docker 镜像会自动构建或拉取\n- 每个实例最终补丁验证超时时间为 1800 秒（30 分钟）\n- 详细设置说明请参阅 [使用文档](https://evalscope.readthedocs.io/zh-cn/latest/third_party/swe_bench.html)\n- 支持本地构建镜像和远程拉取镜像两种方式\n\n## 代理模式\n\n该基准测试在每个实例专属的 SWE-bench Docker 容器内驱动一个多轮代理循环（与 mini-swe-agent 的 `swebench.yaml` 配置一致）。模型通过执行 `bash` 命令探索 `/testbed` 目录、编辑源文件，并在完成任务后打印哨兵字符串 `COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT` 及其后的补丁内容来提交 `git diff` 补丁。\n\n`extra_params.action_protocol` 参数用于选择以下两种协议之一：\n- `toolcall`（默认）：采用 OpenAI 函数调用协议，仅提供一个 `bash` 工具。推荐用于支持函数调用的模型。\n- `backticks`：基于文本的备用方案，每轮期望一个 ` ```mswea_bash_command ``` ` 代码块。适用于不支持函数调用的模型。\n\n## 属性\n\n| 属性 | 值 |\n|----------|-------|\n| **基准测试名称** | `swe_bench_multilingual_agentic` |\n| **数据集ID** | [SWE-bench/SWE-bench_Multilingual](https://modelscope.cn/datasets/SWE-bench/SWE-bench_Multilingual/summary) |\n| **论文** | N/A |\n| **标签** | `Coding` |\n| **指标** | `acc` |\n| **默认示例数** | 0-shot |\n| **评估划分** | `test` |\n\n\n## 数据统计\n\n| 指标 | 值 |\n|--------|-------|\n| 总样本数 | 300 |\n| 提示词长度（平均） | 2197.94 字符 |\n| 提示词长度（最小/最大） | 124 / 69351 字符 |\n\n## 样例示例\n\n**子集**: `default`\n\n```json\n{\n  \"input\": [\n    {\n      \"id\": \"52ece3cf\",\n      \"content\": \"Support Post aggregation function pow(f1,f2) to cater for square, cube , square root.\\n### Description\\r\\n\\r\\nPlease describe the feature or change with as much detail as possible. \\r\\n\\r\\nAs of now the only supported arithmetic functions are +, -, *, ... [TRUNCATED 284 chars] ... \\r\\n\\r\\nThe proposal is to add a `pow` function which enables all the about usecase .  Square of a number can be represent by pow(f1,2) , Cube can be represented as power(f1 ,3)  , Squar root of a number can be represented by power(f1,0.5) ,\\r\\n\\r\\n\\n\"\n    }\n  ],\n  \"id\": 0,\n  \"group_id\": 0,\n  \"tools\": [\n    {\n      \"name\": \"bash\",\n      \"description\": \"Execute a bash command inside the sandbox environment. Returns the combined stdout / stderr output of the command.\",\n      \"parameters\": {\n        \"properties\": {\n          \"command\": {\n            \"type\": \"string\",\n            \"description\": \"The bash command to execute.\"\n          },\n          \"timeout\": {\n            \"type\": \"number\",\n            \"description\": \"Maximum execution time in seconds (default: 60).\",\n            \"default\": 60\n          }\n        },\n        \"required\": [\n          \"command\"\n        ]\n      }\n    }\n  ],\n  \"metadata\": {\n    \"problem_statement\": \"Support Post aggregation function pow(f1,f2) to cater for square, cube , square root.\\n### Description\\r\\n\\r\\nPlease describe the feature or change with as much detail as possible. \\r\\n\\r\\nAs of now the only supported arithmetic functions are +, -, *, ... [TRUNCATED 284 chars] ... \\r\\n\\r\\nThe proposal is to add a `pow` function which enables all the about usecase .  Square of a number can be represent by pow(f1,2) , Cube can be represented as power(f1 ,3)  , Squar root of a number can be represented by power(f1,0.5) ,\\r\\n\\r\\n\\n\",\n    \"instance_id\": \"apache__druid-13704\",\n    \"base_commit\": \"51dfde02840017092486fb75be2b16566aff6a19\",\n    \"patch\": \"diff --git a/docs/querying/post-aggregations.md b/docs/querying/post-aggregations.md\\nindex c75d122eb20a..935ca8fbce16 100644\\n--- a/docs/querying/post-aggregations.md\\n+++ b/docs/querying/post-aggregations.md\\n@@ -36,7 +36,7 @@ There are several ... [TRUNCATED 1110 chars] ...      }\\n+    },\\n+\\n+    POW(\\\"pow\\\") {\\n+      @Override\\n+      public double compute(double lhs, double rhs)\\n+      {\\n+        return Math.pow(lhs, rhs);\\n+      }\\n     };\\n \\n     private static final Map<String, Ops> LOOKUP_MAP = new HashMap<>();\\n\",\n    \"PASS_TO_PASS\": [\n      \"org.apache.druid.query.aggregation.post.ArithmeticPostAggregatorTest#testDiv\",\n      \"org.apache.druid.query.aggregation.post.ArithmeticPostAggregatorTest#testQuotient\"\n    ],\n    \"FAIL_TO_PASS\": [\n      \"org.apache.druid.query.aggregation.post.ArithmeticPostAggregatorTest#testPow\"\n    ],\n    \"test_patch\": \"diff --git a/processing/src/test/java/org/apache/druid/query/aggregation/post/ArithmeticPostAggregatorTest.java b/processing/src/test/java/org/apache/druid/query/aggregation/post/ArithmeticPostAggregatorTest.java\\nindex a93034427539..7e1d4d112 ... [TRUNCATED 1358 chars] ... s(1.0, agg.compute(ImmutableMap.of(\\\"value\\\", 1)));\\n+    Assert.assertEquals(1.0, agg.compute(ImmutableMap.of(\\\"value\\\", -1)));\\n+    Assert.assertEquals(1.0, agg.compute(ImmutableMap.of(\\\"value\\\", .5)));\\n+  }\\n   @Test\\n   public void testDiv()\\n   {\\n\",\n    \"version\": \"13704\",\n    \"repo\": \"apache/druid\",\n    \"environment_setup_commit\": null,\n    \"hints_text\": \"\",\n    \"created_at\": \"2023-01-23 04:10:47\",\n    \"docker_image\": \"swebench/sweb.eval.x86_64.apache_1776_druid-13704:latest\"\n  }\n}\n```\n\n## 提示模板\n\n**提示模板：**\n```text\n{question}\n```\n\n## 额外参数\n\n| 参数 | 类型 | 默认值 | 描述 |\n|-----------|------|---------|-------------|\n| `action_protocol` | `str` | `toolcall` | 代理动作协议：\"toolcall\"（主流 OpenAI 函数调用方式，与 mini-swe-agent swebench.yaml 一致）或 \"backticks\"（针对不支持函数调用的模型的文本式 mswea_bash_command 回退方案）。可选值：['toolcall', 'backticks'] |\n| `max_steps` | `int` | `250` | 每个样本的最大代理步数。 |\n| `command_timeout` | `float` | `60.0` | 每个 bash 命令的默认超时时间（秒）。 |\n| `build_docker_images` | `bool` | `True` | 为每个样本在本地构建 Docker 镜像。 |\n| `pull_remote_images_if_available` | `bool` | `True` | 在构建前尝试拉取已存在的远程 Docker 镜像。 |\n| `force_arch` | `str` | `` | 可选地强制指定镜像构建/拉取的架构。可选值：['', 'arm64', 'x86_64'] |\n| `dockerhub_username` | `str` | `swebench` | 远程 SWE-bench 镜像在 DockerHub 上的用户/组织命名空间。 |\n\n## 使用方法\n\n### 使用 CLI\n\n```bash\nevalscope eval \\\n    --model YOUR_MODEL \\\n    --api-url OPENAI_API_COMPAT_URL \\\n    --api-key EMPTY_TOKEN \\\n    --datasets swe_bench_multilingual_agentic \\\n    --limit 10  # 正式评估时请删除此行\n```\n\n### 使用 Python\n\n```python\nfrom evalscope import run_task\nfrom evalscope.config import TaskConfig\n\ntask_cfg = TaskConfig(\n    model='YOUR_MODEL',\n    api_url='OPENAI_API_COMPAT_URL',\n    api_key='EMPTY_TOKEN',\n    datasets=['swe_bench_multilingual_agentic'],\n    dataset_args={\n        'swe_bench_multilingual_agentic': {\n            # extra_params: {}  # 使用默认额外参数\n        }\n    },\n    limit=10,  # 正式评估时请删除此行\n)\n\nrun_task(task_cfg=task_cfg)\n```",
    "content_hash": "2b3e443c34418426ab07cb95d176a930",
    "needs_translation": false
  },
  "updated_at": "2026-07-02T19:24:57.846459",
  "translation_updated_at": "2026-07-02T19:26:43"
}