publish SWE-bench Science release (part 3)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- tasks/task_083/instruction.md +22 -0
- tasks/task_083/metadata.json +12 -0
- tasks/task_083/task.toml +44 -0
- tasks/task_083/tests/Dockerfile +2 -0
- tasks/task_083/tests/test.sh +6 -0
- tasks/task_084/environment/Dockerfile +60 -0
- tasks/task_084/instruction.md +27 -0
- tasks/task_084/metadata.json +12 -0
- tasks/task_084/task.toml +44 -0
- tasks/task_084/tests/Dockerfile +2 -0
- tasks/task_084/tests/test.sh +6 -0
- tasks/task_085/environment/Dockerfile +60 -0
- tasks/task_085/instruction.md +13 -0
- tasks/task_085/metadata.json +12 -0
- tasks/task_085/task.toml +44 -0
- tasks/task_085/tests/Dockerfile +2 -0
- tasks/task_085/tests/test.sh +6 -0
- tasks/task_086/environment/Dockerfile +63 -0
- tasks/task_086/instruction.md +10 -0
- tasks/task_086/metadata.json +12 -0
- tasks/task_086/task.toml +44 -0
- tasks/task_086/tests/Dockerfile +2 -0
- tasks/task_086/tests/test.sh +6 -0
- tasks/task_087/environment/Dockerfile +60 -0
- tasks/task_087/instruction.md +10 -0
- tasks/task_087/metadata.json +12 -0
- tasks/task_087/task.toml +44 -0
- tasks/task_087/tests/Dockerfile +2 -0
- tasks/task_087/tests/test.sh +6 -0
- tasks/task_088/environment/Dockerfile +60 -0
- tasks/task_088/instruction.md +22 -0
- tasks/task_088/metadata.json +12 -0
- tasks/task_088/task.toml +44 -0
- tasks/task_088/tests/Dockerfile +2 -0
- tasks/task_088/tests/test.sh +6 -0
- tasks/task_089/environment/Dockerfile +60 -0
- tasks/task_089/instruction.md +30 -0
- tasks/task_089/metadata.json +12 -0
- tasks/task_089/task.toml +44 -0
- tasks/task_089/tests/Dockerfile +2 -0
- tasks/task_089/tests/test.sh +6 -0
- tasks/task_090/environment/Dockerfile +60 -0
- tasks/task_090/instruction.md +26 -0
- tasks/task_090/metadata.json +12 -0
- tasks/task_090/task.toml +44 -0
- tasks/task_090/tests/Dockerfile +2 -0
- tasks/task_090/tests/test.sh +6 -0
- tasks/task_091/environment/Dockerfile +60 -0
- tasks/task_091/instruction.md +21 -0
- tasks/task_091/metadata.json +12 -0
tasks/task_083/instruction.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Repair bond-order species reporting
|
| 2 |
+
|
| 3 |
+
You are working with a local snapshot of ReacNetGenerator, a tool for building
|
| 4 |
+
reaction networks from reactive molecular-dynamics trajectories.
|
| 5 |
+
|
| 6 |
+
Run the public workbench:
|
| 7 |
+
|
| 8 |
+
```bash
|
| 9 |
+
python reproduce.py
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
The bundled bond-file fixture exercises a small ring-like structure under
|
| 13 |
+
several bond-order assignments. Inspect the report and repair the source so the
|
| 14 |
+
molecule, species, and reaction outputs are chemically consistent for the
|
| 15 |
+
fixture.
|
| 16 |
+
|
| 17 |
+
Keep changes inside `source/`. Do not edit the public fixtures or the
|
| 18 |
+
reproduction script.
|
| 19 |
+
|
| 20 |
+
Do not hard-code the supplied fixture or report values. Your fix should work for
|
| 21 |
+
other bond-order variants that preserve atom membership and bonding
|
| 22 |
+
connectivity.
|
tasks/task_083/metadata.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "083",
|
| 3 |
+
"title": "Repair bond-order species reporting",
|
| 4 |
+
"domain": "computational-chemistry",
|
| 5 |
+
"language": "python",
|
| 6 |
+
"source_repository": "https://github.com/deepmodeling/reacnetgenerator",
|
| 7 |
+
"source_commit": "37b0bef6fd9d5945f1b752ac82d4f8564728cd8b",
|
| 8 |
+
"source_license": "LGPL-3.0-family",
|
| 9 |
+
"license_source": "LICENSE",
|
| 10 |
+
"gpl_family": true,
|
| 11 |
+
"public_payload_sha256": "48f2557e6046a003e567fb8b9055d9a6f9a93401f664313f9c04cedadd30780c"
|
| 12 |
+
}
|
tasks/task_083/task.toml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.3"
|
| 2 |
+
artifacts = ["/logs/artifacts/model.patch"]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "openmoss/swe-bench-science-083"
|
| 6 |
+
description = "Repair bond-order species reporting"
|
| 7 |
+
authors = []
|
| 8 |
+
keywords = ["scientific-computing", "software-engineering"]
|
| 9 |
+
|
| 10 |
+
[metadata]
|
| 11 |
+
task_id = "083"
|
| 12 |
+
language = "python"
|
| 13 |
+
base_commit_hash = "37b0bef6fd9d5945f1b752ac82d4f8564728cd8b"
|
| 14 |
+
|
| 15 |
+
[agent]
|
| 16 |
+
network_mode = "no-network"
|
| 17 |
+
timeout_sec = 5400.0
|
| 18 |
+
|
| 19 |
+
[environment]
|
| 20 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-environment-python-task-083:v0.1.0@sha256:9483e6962b892e928f5f1e1c608d646d2d35c5899da15f57fa7bc8c23bd2e14f"
|
| 21 |
+
os = "linux"
|
| 22 |
+
allow_internet = false
|
| 23 |
+
cpus = 2
|
| 24 |
+
memory_mb = 8192
|
| 25 |
+
storage_mb = 20480
|
| 26 |
+
workdir = "/app/task_083"
|
| 27 |
+
|
| 28 |
+
[verifier]
|
| 29 |
+
network_mode = "no-network"
|
| 30 |
+
environment_mode = "separate"
|
| 31 |
+
timeout_sec = 1800.0
|
| 32 |
+
|
| 33 |
+
[verifier.environment]
|
| 34 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-verifier-python-task-083:v0.1.0@sha256:a1c0f1dabd6d4c334c815cb398eda399fbb8b7739b7b5ec60ea8abb1882b7727"
|
| 35 |
+
os = "linux"
|
| 36 |
+
allow_internet = false
|
| 37 |
+
cpus = 2
|
| 38 |
+
memory_mb = 8192
|
| 39 |
+
storage_mb = 20480
|
| 40 |
+
workdir = "/app/task_083"
|
| 41 |
+
|
| 42 |
+
[[verifier.collect]]
|
| 43 |
+
command = "cd /app/task_083 && git config --global --add safe.directory /app/task_083 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
+
timeout_sec = 300.0
|
tasks/task_083/tests/Dockerfile
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG VERIFIER_IMAGE=docker.io/kevinxulearning/swe-bench-science-verifier-python-task-083:v0.1.0@sha256:a1c0f1dabd6d4c334c815cb398eda399fbb8b7739b7b5ec60ea8abb1882b7727
|
| 2 |
+
FROM ${VERIFIER_IMAGE}
|
tasks/task_083/tests/test.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier requires a public tests entrypoint when loading a local task. In
|
| 5 |
+
# separate-verifier mode the executable grader remains inside the verifier image.
|
| 6 |
+
exec python /tests/grader.py
|
tasks/task_084/environment/Dockerfile
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG BASE_IMAGE=python:3.11-slim
|
| 2 |
+
FROM ${BASE_IMAGE}
|
| 3 |
+
|
| 4 |
+
ARG DEBIAN_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian
|
| 5 |
+
ARG DEBIAN_SECURITY_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian-security
|
| 6 |
+
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
| 7 |
+
ARG INSTALL_FORTRAN=0
|
| 8 |
+
ARG INSTALL_OCTAVE=0
|
| 9 |
+
ENV DEBIAN_FRONTEND=noninteractive \
|
| 10 |
+
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
| 11 |
+
PIP_INDEX_URL=${PIP_INDEX_URL} \
|
| 12 |
+
PIP_NO_CACHE_DIR=1 \
|
| 13 |
+
PYTHONDONTWRITEBYTECODE=1
|
| 14 |
+
|
| 15 |
+
RUN sed -i \
|
| 16 |
+
-e "s|http://deb.debian.org/debian-security|${DEBIAN_SECURITY_MIRROR}|g" \
|
| 17 |
+
-e "s|http://deb.debian.org/debian|${DEBIAN_MIRROR}|g" \
|
| 18 |
+
/etc/apt/sources.list.d/debian.sources
|
| 19 |
+
|
| 20 |
+
RUN apt-get -o Acquire::Retries=10 update \
|
| 21 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends \
|
| 22 |
+
build-essential \
|
| 23 |
+
ca-certificates \
|
| 24 |
+
curl \
|
| 25 |
+
git \
|
| 26 |
+
ripgrep \
|
| 27 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 28 |
+
|
| 29 |
+
RUN if [ "${INSTALL_FORTRAN}" = "1" ]; then \
|
| 30 |
+
apt-get -o Acquire::Retries=10 update \
|
| 31 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends gfortran \
|
| 32 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 33 |
+
fi \
|
| 34 |
+
&& if [ "${INSTALL_OCTAVE}" = "1" ]; then \
|
| 35 |
+
apt-get -o Acquire::Retries=10 update \
|
| 36 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends octave \
|
| 37 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 38 |
+
fi
|
| 39 |
+
|
| 40 |
+
WORKDIR /app/task_084
|
| 41 |
+
COPY repo/ /app/task_084/source/
|
| 42 |
+
COPY public/ /app/task_084/
|
| 43 |
+
COPY requirements.lock /app/task_084/requirements.lock
|
| 44 |
+
|
| 45 |
+
RUN python -m pip install --no-cache-dir --upgrade pip \
|
| 46 |
+
&& python -m pip install --no-cache-dir -r requirements.lock
|
| 47 |
+
ENV PYTHONPATH=/app/task_084:/app/task_084/source
|
| 48 |
+
|
| 49 |
+
RUN git init \
|
| 50 |
+
&& git checkout -b main \
|
| 51 |
+
&& git config user.email science-bench@example.invalid \
|
| 52 |
+
&& git config user.name "SWE-bench Science baseline" \
|
| 53 |
+
&& git add -A \
|
| 54 |
+
&& GIT_AUTHOR_DATE=2025-01-01T00:00:00Z \
|
| 55 |
+
GIT_COMMITTER_DATE=2025-01-01T00:00:00Z \
|
| 56 |
+
git commit -m baseline \
|
| 57 |
+
&& git reflog expire --expire=now --all \
|
| 58 |
+
&& git gc --prune=now
|
| 59 |
+
|
| 60 |
+
CMD ["bash"]
|
tasks/task_084/instruction.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Repair ABACUS relaxation archive/reload semantics
|
| 2 |
+
|
| 3 |
+
The supplied ABACUS relaxation examples can be loaded, but the supported
|
| 4 |
+
archive/reload workflow does not preserve the trajectory in a scientifically
|
| 5 |
+
usable form consistently across the provided examples.
|
| 6 |
+
|
| 7 |
+
Study the supplied paper and method notes, reproduce the issue, inspect the
|
| 8 |
+
source, and repair the implementation so that valid ABACUS relaxation
|
| 9 |
+
catalogues remain scientifically coherent through the supported
|
| 10 |
+
archive/reload workflow. The repair must generalize beyond the supplied
|
| 11 |
+
examples. Do not replace scientific objects with fixed outputs,
|
| 12 |
+
special-case the supplied data, or change the public reproduction to hide the
|
| 13 |
+
failure.
|
| 14 |
+
|
| 15 |
+
Work only under this task directory. The evaluation environment is Linux and
|
| 16 |
+
has no network access. You may modify files under `source/`; do not modify the
|
| 17 |
+
task statement, reproduction, fixtures, workflow, or evaluation
|
| 18 |
+
infrastructure.
|
| 19 |
+
|
| 20 |
+
Run the public smoke test with:
|
| 21 |
+
|
| 22 |
+
```bash
|
| 23 |
+
python reproduce.py
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
The command returns `1` when the untouched source reproduces the issue, `0`
|
| 27 |
+
after a successful repair, and `2` for a runner or environment failure.
|
tasks/task_084/metadata.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "084",
|
| 3 |
+
"title": "Repair ABACUS relaxation archive/reload semantics",
|
| 4 |
+
"domain": "materials-science-scientific-data-semantics",
|
| 5 |
+
"language": "python",
|
| 6 |
+
"source_repository": "https://github.com/deepmodeling/dpdata",
|
| 7 |
+
"source_commit": "80abfc5037876c0e883dcb58cd96521397e3fe36",
|
| 8 |
+
"source_license": "LGPL-3.0-family",
|
| 9 |
+
"license_source": "LICENSE",
|
| 10 |
+
"gpl_family": true,
|
| 11 |
+
"public_payload_sha256": "0b14a30b4b7ceb203ee7c08d2196b2c8b6a4efa48f85b12627a87a49f5f8b83d"
|
| 12 |
+
}
|
tasks/task_084/task.toml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.3"
|
| 2 |
+
artifacts = ["/logs/artifacts/model.patch"]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "openmoss/swe-bench-science-084"
|
| 6 |
+
description = "Repair ABACUS relaxation archive/reload semantics"
|
| 7 |
+
authors = []
|
| 8 |
+
keywords = ["scientific-computing", "software-engineering"]
|
| 9 |
+
|
| 10 |
+
[metadata]
|
| 11 |
+
task_id = "084"
|
| 12 |
+
language = "python"
|
| 13 |
+
base_commit_hash = "80abfc5037876c0e883dcb58cd96521397e3fe36"
|
| 14 |
+
|
| 15 |
+
[agent]
|
| 16 |
+
network_mode = "no-network"
|
| 17 |
+
timeout_sec = 5400.0
|
| 18 |
+
|
| 19 |
+
[environment]
|
| 20 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-environment-python-task-084:v0.1.0@sha256:735e7ece88fa49a77257cfb2a59b435ed6ef511e99cc1739e24b366ea129836b"
|
| 21 |
+
os = "linux"
|
| 22 |
+
allow_internet = false
|
| 23 |
+
cpus = 2
|
| 24 |
+
memory_mb = 8192
|
| 25 |
+
storage_mb = 20480
|
| 26 |
+
workdir = "/app/task_084"
|
| 27 |
+
|
| 28 |
+
[verifier]
|
| 29 |
+
network_mode = "no-network"
|
| 30 |
+
environment_mode = "separate"
|
| 31 |
+
timeout_sec = 1800.0
|
| 32 |
+
|
| 33 |
+
[verifier.environment]
|
| 34 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-verifier-python-task-084:v0.1.0@sha256:8cbe4554c727f25c1584f79c48f574a3d08e1fcf6d3c4cb32df36a7d8482216a"
|
| 35 |
+
os = "linux"
|
| 36 |
+
allow_internet = false
|
| 37 |
+
cpus = 2
|
| 38 |
+
memory_mb = 8192
|
| 39 |
+
storage_mb = 20480
|
| 40 |
+
workdir = "/app/task_084"
|
| 41 |
+
|
| 42 |
+
[[verifier.collect]]
|
| 43 |
+
command = "cd /app/task_084 && git config --global --add safe.directory /app/task_084 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
+
timeout_sec = 300.0
|
tasks/task_084/tests/Dockerfile
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG VERIFIER_IMAGE=docker.io/kevinxulearning/swe-bench-science-verifier-python-task-084:v0.1.0@sha256:8cbe4554c727f25c1584f79c48f574a3d08e1fcf6d3c4cb32df36a7d8482216a
|
| 2 |
+
FROM ${VERIFIER_IMAGE}
|
tasks/task_084/tests/test.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier requires a public tests entrypoint when loading a local task. In
|
| 5 |
+
# separate-verifier mode the executable grader remains inside the verifier image.
|
| 6 |
+
exec python /tests/grader.py
|
tasks/task_085/environment/Dockerfile
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG BASE_IMAGE=python:3.11-slim
|
| 2 |
+
FROM ${BASE_IMAGE}
|
| 3 |
+
|
| 4 |
+
ARG DEBIAN_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian
|
| 5 |
+
ARG DEBIAN_SECURITY_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian-security
|
| 6 |
+
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
| 7 |
+
ARG INSTALL_FORTRAN=1
|
| 8 |
+
ARG INSTALL_OCTAVE=0
|
| 9 |
+
ENV DEBIAN_FRONTEND=noninteractive \
|
| 10 |
+
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
| 11 |
+
PIP_INDEX_URL=${PIP_INDEX_URL} \
|
| 12 |
+
PIP_NO_CACHE_DIR=1 \
|
| 13 |
+
PYTHONDONTWRITEBYTECODE=1
|
| 14 |
+
|
| 15 |
+
RUN sed -i \
|
| 16 |
+
-e "s|http://deb.debian.org/debian-security|${DEBIAN_SECURITY_MIRROR}|g" \
|
| 17 |
+
-e "s|http://deb.debian.org/debian|${DEBIAN_MIRROR}|g" \
|
| 18 |
+
/etc/apt/sources.list.d/debian.sources
|
| 19 |
+
|
| 20 |
+
RUN apt-get -o Acquire::Retries=10 update \
|
| 21 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends \
|
| 22 |
+
build-essential \
|
| 23 |
+
ca-certificates \
|
| 24 |
+
curl \
|
| 25 |
+
git \
|
| 26 |
+
ripgrep \
|
| 27 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 28 |
+
|
| 29 |
+
RUN if [ "${INSTALL_FORTRAN}" = "1" ]; then \
|
| 30 |
+
apt-get -o Acquire::Retries=10 update \
|
| 31 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends gfortran \
|
| 32 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 33 |
+
fi \
|
| 34 |
+
&& if [ "${INSTALL_OCTAVE}" = "1" ]; then \
|
| 35 |
+
apt-get -o Acquire::Retries=10 update \
|
| 36 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends octave \
|
| 37 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 38 |
+
fi
|
| 39 |
+
|
| 40 |
+
WORKDIR /app/task_085
|
| 41 |
+
COPY repo/ /app/task_085/source/
|
| 42 |
+
COPY public/ /app/task_085/
|
| 43 |
+
COPY requirements.lock /app/task_085/requirements.lock
|
| 44 |
+
|
| 45 |
+
RUN python -m pip install --no-cache-dir --upgrade pip \
|
| 46 |
+
&& python -m pip install --no-cache-dir -r requirements.lock
|
| 47 |
+
ENV PYTHONPATH=/app/task_085:/app/task_085/source
|
| 48 |
+
|
| 49 |
+
RUN git init \
|
| 50 |
+
&& git checkout -b main \
|
| 51 |
+
&& git config user.email science-bench@example.invalid \
|
| 52 |
+
&& git config user.name "SWE-bench Science baseline" \
|
| 53 |
+
&& git add -A \
|
| 54 |
+
&& GIT_AUTHOR_DATE=2025-01-01T00:00:00Z \
|
| 55 |
+
GIT_COMMITTER_DATE=2025-01-01T00:00:00Z \
|
| 56 |
+
git commit -m baseline \
|
| 57 |
+
&& git reflog expire --expire=now --all \
|
| 58 |
+
&& git gc --prune=now
|
| 59 |
+
|
| 60 |
+
CMD ["bash"]
|
tasks/task_085/instruction.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Inconsistent archived observables
|
| 2 |
+
|
| 3 |
+
A molecular-modelling workflow is replaying archived DFTB+ calculations with
|
| 4 |
+
this historical source snapshot. Several valid archived records complete
|
| 5 |
+
successfully, yet some reported observables do not stay consistent across the
|
| 6 |
+
documented input conventions.
|
| 7 |
+
|
| 8 |
+
Run the supplied offline workflow, inspect the raw reports, the complete source
|
| 9 |
+
snapshot, the official DFTB+ materials, and the documented input conventions.
|
| 10 |
+
Repair the historical implementation so supported calculations behave
|
| 11 |
+
consistently for valid inputs. The repair must generalize beyond the supplied
|
| 12 |
+
archives. Do not hard-code the fixtures or reports, and do not modify the
|
| 13 |
+
public workflow or scientific inputs.
|
tasks/task_085/metadata.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "085",
|
| 3 |
+
"title": "Inconsistent archived observables",
|
| 4 |
+
"domain": "computational-chemistry-and-solvation",
|
| 5 |
+
"language": "fortran",
|
| 6 |
+
"source_repository": "https://github.com/dftbplus/dftbplus",
|
| 7 |
+
"source_commit": "d4da8c5027b643291f3a6295efd4340ce79d6a36",
|
| 8 |
+
"source_license": "AGPL-family",
|
| 9 |
+
"license_source": "COPYING",
|
| 10 |
+
"gpl_family": true,
|
| 11 |
+
"public_payload_sha256": "2db37177603a05c62b276b94c738f8592f40853359df72a3f25205c1d5bb5748"
|
| 12 |
+
}
|
tasks/task_085/task.toml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.3"
|
| 2 |
+
artifacts = ["/logs/artifacts/model.patch"]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "openmoss/swe-bench-science-085"
|
| 6 |
+
description = "Inconsistent archived observables"
|
| 7 |
+
authors = []
|
| 8 |
+
keywords = ["scientific-computing", "software-engineering"]
|
| 9 |
+
|
| 10 |
+
[metadata]
|
| 11 |
+
task_id = "085"
|
| 12 |
+
language = "fortran"
|
| 13 |
+
base_commit_hash = "d4da8c5027b643291f3a6295efd4340ce79d6a36"
|
| 14 |
+
|
| 15 |
+
[agent]
|
| 16 |
+
network_mode = "no-network"
|
| 17 |
+
timeout_sec = 5400.0
|
| 18 |
+
|
| 19 |
+
[environment]
|
| 20 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-environment-fortran-task-085:v0.1.0@sha256:c4613c3e94fefc6cd721075d314d4fc463269cdd92cf7f6d0b656078a838a7cd"
|
| 21 |
+
os = "linux"
|
| 22 |
+
allow_internet = false
|
| 23 |
+
cpus = 2
|
| 24 |
+
memory_mb = 8192
|
| 25 |
+
storage_mb = 20480
|
| 26 |
+
workdir = "/app/task_085"
|
| 27 |
+
|
| 28 |
+
[verifier]
|
| 29 |
+
network_mode = "no-network"
|
| 30 |
+
environment_mode = "separate"
|
| 31 |
+
timeout_sec = 1800.0
|
| 32 |
+
|
| 33 |
+
[verifier.environment]
|
| 34 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-verifier-fortran-task-085:v0.1.0@sha256:e68ac55c7cfb257756103351c305b97789d72f1e79203305d2aa7fa39e657eb1"
|
| 35 |
+
os = "linux"
|
| 36 |
+
allow_internet = false
|
| 37 |
+
cpus = 2
|
| 38 |
+
memory_mb = 8192
|
| 39 |
+
storage_mb = 20480
|
| 40 |
+
workdir = "/app/task_085"
|
| 41 |
+
|
| 42 |
+
[[verifier.collect]]
|
| 43 |
+
command = "cd /app/task_085 && git config --global --add safe.directory /app/task_085 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
+
timeout_sec = 300.0
|
tasks/task_085/tests/Dockerfile
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG VERIFIER_IMAGE=docker.io/kevinxulearning/swe-bench-science-verifier-fortran-task-085:v0.1.0@sha256:e68ac55c7cfb257756103351c305b97789d72f1e79203305d2aa7fa39e657eb1
|
| 2 |
+
FROM ${VERIFIER_IMAGE}
|
tasks/task_085/tests/test.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier requires a public tests entrypoint when loading a local task. In
|
| 5 |
+
# separate-verifier mode the executable grader remains inside the verifier image.
|
| 6 |
+
exec python /tests/grader.py
|
tasks/task_086/environment/Dockerfile
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG BASE_IMAGE=python:3.11-slim
|
| 2 |
+
FROM ${BASE_IMAGE}
|
| 3 |
+
|
| 4 |
+
ARG DEBIAN_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian
|
| 5 |
+
ARG DEBIAN_SECURITY_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian-security
|
| 6 |
+
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
| 7 |
+
ARG INSTALL_FORTRAN=0
|
| 8 |
+
ARG INSTALL_OCTAVE=0
|
| 9 |
+
ENV DEBIAN_FRONTEND=noninteractive \
|
| 10 |
+
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
| 11 |
+
PIP_INDEX_URL=${PIP_INDEX_URL} \
|
| 12 |
+
PIP_NO_CACHE_DIR=1 \
|
| 13 |
+
PYTHONDONTWRITEBYTECODE=1
|
| 14 |
+
|
| 15 |
+
RUN sed -i \
|
| 16 |
+
-e "s|http://deb.debian.org/debian-security|${DEBIAN_SECURITY_MIRROR}|g" \
|
| 17 |
+
-e "s|http://deb.debian.org/debian|${DEBIAN_MIRROR}|g" \
|
| 18 |
+
/etc/apt/sources.list.d/debian.sources
|
| 19 |
+
|
| 20 |
+
RUN apt-get -o Acquire::Retries=10 update \
|
| 21 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends \
|
| 22 |
+
build-essential \
|
| 23 |
+
ca-certificates \
|
| 24 |
+
curl \
|
| 25 |
+
git \
|
| 26 |
+
ripgrep \
|
| 27 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 28 |
+
|
| 29 |
+
RUN if [ "${INSTALL_FORTRAN}" = "1" ]; then \
|
| 30 |
+
apt-get -o Acquire::Retries=10 update \
|
| 31 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends gfortran \
|
| 32 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 33 |
+
fi \
|
| 34 |
+
&& if [ "${INSTALL_OCTAVE}" = "1" ]; then \
|
| 35 |
+
apt-get -o Acquire::Retries=10 update \
|
| 36 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends octave \
|
| 37 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 38 |
+
fi
|
| 39 |
+
|
| 40 |
+
WORKDIR /app/task_086
|
| 41 |
+
COPY repo/ /app/task_086/source/
|
| 42 |
+
COPY public/ /app/task_086/
|
| 43 |
+
COPY requirements.lock /app/task_086/requirements.lock
|
| 44 |
+
COPY wheels/torch-2.6.0+cpu-cp311-cp311-linux_x86_64.whl /app/task_086/torch-2.6.0+cpu-cp311-cp311-linux_x86_64.whl
|
| 45 |
+
|
| 46 |
+
RUN python -m pip install --no-cache-dir --upgrade pip \
|
| 47 |
+
&& python -m pip install --no-cache-dir /app/task_086/torch-2.6.0+cpu-cp311-cp311-linux_x86_64.whl \
|
| 48 |
+
&& rm -f /app/task_086/torch-2.6.0+cpu-cp311-cp311-linux_x86_64.whl \
|
| 49 |
+
&& python -m pip install --no-cache-dir -r requirements.lock
|
| 50 |
+
ENV PYTHONPATH=/app/task_086:/app/task_086/source
|
| 51 |
+
|
| 52 |
+
RUN git init \
|
| 53 |
+
&& git checkout -b main \
|
| 54 |
+
&& git config user.email science-bench@example.invalid \
|
| 55 |
+
&& git config user.name "SWE-bench Science baseline" \
|
| 56 |
+
&& git add -A \
|
| 57 |
+
&& GIT_AUTHOR_DATE=2025-01-01T00:00:00Z \
|
| 58 |
+
GIT_COMMITTER_DATE=2025-01-01T00:00:00Z \
|
| 59 |
+
git commit -m baseline \
|
| 60 |
+
&& git reflog expire --expire=now --all \
|
| 61 |
+
&& git gc --prune=now
|
| 62 |
+
|
| 63 |
+
CMD ["bash"]
|
tasks/task_086/instruction.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Run `python reproduce.py` from this task directory and inspect the bundled
|
| 2 |
+
source snapshot and offline workbench.
|
| 3 |
+
|
| 4 |
+
The current preflight is small on purpose, but it exercises a boundary case
|
| 5 |
+
that should not be treated as valid. Repair the package code in `source/` so
|
| 6 |
+
the workbench reaches the expected post-fix status without changing the
|
| 7 |
+
fixture, the public runner, or the task metadata.
|
| 8 |
+
|
| 9 |
+
Keep the repair general. The corrected code should remain sensible for other
|
| 10 |
+
valid materials inputs, not only for the supplied local case.
|
tasks/task_086/metadata.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "086",
|
| 3 |
+
"title": "Repair a silent MatGL fine-tuning incompatibility",
|
| 4 |
+
"domain": "atomistic-machine-learning-potentials",
|
| 5 |
+
"language": "python",
|
| 6 |
+
"source_repository": "https://github.com/materialyzeai/matgl",
|
| 7 |
+
"source_commit": "02b415ba8bb25244bc5e3ad970491f0fbbea0292",
|
| 8 |
+
"source_license": "BSD-3-Clause",
|
| 9 |
+
"license_source": "LICENSE",
|
| 10 |
+
"gpl_family": false,
|
| 11 |
+
"public_payload_sha256": "dd83643eed59e22c0cf5fa9d29e4de990944b8add3edd5058391df75a585f537"
|
| 12 |
+
}
|
tasks/task_086/task.toml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.3"
|
| 2 |
+
artifacts = ["/logs/artifacts/model.patch"]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "openmoss/swe-bench-science-086"
|
| 6 |
+
description = "Repair a silent MatGL fine-tuning incompatibility"
|
| 7 |
+
authors = []
|
| 8 |
+
keywords = ["scientific-computing", "software-engineering"]
|
| 9 |
+
|
| 10 |
+
[metadata]
|
| 11 |
+
task_id = "086"
|
| 12 |
+
language = "python"
|
| 13 |
+
base_commit_hash = "02b415ba8bb25244bc5e3ad970491f0fbbea0292"
|
| 14 |
+
|
| 15 |
+
[agent]
|
| 16 |
+
network_mode = "no-network"
|
| 17 |
+
timeout_sec = 5400.0
|
| 18 |
+
|
| 19 |
+
[environment]
|
| 20 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-environment-python-task-086:v0.1.0@sha256:7a54bd7e811a51abdd7571abbc03213eece0310016b174bfa52dcbe4ad171476"
|
| 21 |
+
os = "linux"
|
| 22 |
+
allow_internet = false
|
| 23 |
+
cpus = 2
|
| 24 |
+
memory_mb = 8192
|
| 25 |
+
storage_mb = 20480
|
| 26 |
+
workdir = "/app/task_086"
|
| 27 |
+
|
| 28 |
+
[verifier]
|
| 29 |
+
network_mode = "no-network"
|
| 30 |
+
environment_mode = "separate"
|
| 31 |
+
timeout_sec = 1800.0
|
| 32 |
+
|
| 33 |
+
[verifier.environment]
|
| 34 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-verifier-python-task-086:v0.1.0@sha256:fb47312ac7443db59115807334c5d2345e3a2fb7a8f83d89bc8bfb48f7ce4bac"
|
| 35 |
+
os = "linux"
|
| 36 |
+
allow_internet = false
|
| 37 |
+
cpus = 2
|
| 38 |
+
memory_mb = 8192
|
| 39 |
+
storage_mb = 20480
|
| 40 |
+
workdir = "/app/task_086"
|
| 41 |
+
|
| 42 |
+
[[verifier.collect]]
|
| 43 |
+
command = "cd /app/task_086 && git config --global --add safe.directory /app/task_086 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
+
timeout_sec = 300.0
|
tasks/task_086/tests/Dockerfile
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG VERIFIER_IMAGE=docker.io/kevinxulearning/swe-bench-science-verifier-python-task-086:v0.1.0@sha256:fb47312ac7443db59115807334c5d2345e3a2fb7a8f83d89bc8bfb48f7ce4bac
|
| 2 |
+
FROM ${VERIFIER_IMAGE}
|
tasks/task_086/tests/test.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier requires a public tests entrypoint when loading a local task. In
|
| 5 |
+
# separate-verifier mode the executable grader remains inside the verifier image.
|
| 6 |
+
exec python /tests/grader.py
|
tasks/task_087/environment/Dockerfile
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG BASE_IMAGE=python:3.11-slim
|
| 2 |
+
FROM ${BASE_IMAGE}
|
| 3 |
+
|
| 4 |
+
ARG DEBIAN_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian
|
| 5 |
+
ARG DEBIAN_SECURITY_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian-security
|
| 6 |
+
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
| 7 |
+
ARG INSTALL_FORTRAN=0
|
| 8 |
+
ARG INSTALL_OCTAVE=0
|
| 9 |
+
ENV DEBIAN_FRONTEND=noninteractive \
|
| 10 |
+
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
| 11 |
+
PIP_INDEX_URL=${PIP_INDEX_URL} \
|
| 12 |
+
PIP_NO_CACHE_DIR=1 \
|
| 13 |
+
PYTHONDONTWRITEBYTECODE=1
|
| 14 |
+
|
| 15 |
+
RUN sed -i \
|
| 16 |
+
-e "s|http://deb.debian.org/debian-security|${DEBIAN_SECURITY_MIRROR}|g" \
|
| 17 |
+
-e "s|http://deb.debian.org/debian|${DEBIAN_MIRROR}|g" \
|
| 18 |
+
/etc/apt/sources.list.d/debian.sources
|
| 19 |
+
|
| 20 |
+
RUN apt-get -o Acquire::Retries=10 update \
|
| 21 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends \
|
| 22 |
+
build-essential \
|
| 23 |
+
ca-certificates \
|
| 24 |
+
curl \
|
| 25 |
+
git \
|
| 26 |
+
ripgrep \
|
| 27 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 28 |
+
|
| 29 |
+
RUN if [ "${INSTALL_FORTRAN}" = "1" ]; then \
|
| 30 |
+
apt-get -o Acquire::Retries=10 update \
|
| 31 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends gfortran \
|
| 32 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 33 |
+
fi \
|
| 34 |
+
&& if [ "${INSTALL_OCTAVE}" = "1" ]; then \
|
| 35 |
+
apt-get -o Acquire::Retries=10 update \
|
| 36 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends octave \
|
| 37 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 38 |
+
fi
|
| 39 |
+
|
| 40 |
+
WORKDIR /app/task_087
|
| 41 |
+
COPY repo/ /app/task_087/source/
|
| 42 |
+
COPY public/ /app/task_087/
|
| 43 |
+
COPY requirements.lock /app/task_087/requirements.lock
|
| 44 |
+
|
| 45 |
+
RUN python -m pip install --no-cache-dir --upgrade pip \
|
| 46 |
+
&& python -m pip install --no-cache-dir -r requirements.lock
|
| 47 |
+
ENV PYTHONPATH=/app/task_087:/app/task_087/source
|
| 48 |
+
|
| 49 |
+
RUN git init \
|
| 50 |
+
&& git checkout -b main \
|
| 51 |
+
&& git config user.email science-bench@example.invalid \
|
| 52 |
+
&& git config user.name "SWE-bench Science baseline" \
|
| 53 |
+
&& git add -A \
|
| 54 |
+
&& GIT_AUTHOR_DATE=2025-01-01T00:00:00Z \
|
| 55 |
+
GIT_COMMITTER_DATE=2025-01-01T00:00:00Z \
|
| 56 |
+
git commit -m baseline \
|
| 57 |
+
&& git reflog expire --expire=now --all \
|
| 58 |
+
&& git gc --prune=now
|
| 59 |
+
|
| 60 |
+
CMD ["bash"]
|
tasks/task_087/instruction.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Run `python reproduce.py` from this task directory and inspect the bundled
|
| 2 |
+
source snapshot and offline workbench.
|
| 3 |
+
|
| 4 |
+
The public workflow should expose a finite, inspectable diffusion-MRI
|
| 5 |
+
observation on the supplied local case, but the reported output is irregular
|
| 6 |
+
before repair. Repair the implementation in `source/` so the same workflow
|
| 7 |
+
produces a coherent result on the public case and on broader valid inputs.
|
| 8 |
+
|
| 9 |
+
Keep the repair general. Do not hard-code the supplied observation or change
|
| 10 |
+
the public runner, public metadata, or task directory layout.
|
tasks/task_087/metadata.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "087",
|
| 3 |
+
"title": "Repair a silent diffusion-MRI denoising inconsistency",
|
| 4 |
+
"domain": "diffusion-mri-denoising",
|
| 5 |
+
"language": "python",
|
| 6 |
+
"source_repository": "https://github.com/dipy/dipy",
|
| 7 |
+
"source_commit": "ee6016ab81dd649ab40439d75212f35669302810",
|
| 8 |
+
"source_license": "BSD-3-Clause",
|
| 9 |
+
"license_source": "LICENSE",
|
| 10 |
+
"gpl_family": false,
|
| 11 |
+
"public_payload_sha256": "442792643e44ca3c36c70b3d63c80708e9f58b5972e5bdf43e90834720834814"
|
| 12 |
+
}
|
tasks/task_087/task.toml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.3"
|
| 2 |
+
artifacts = ["/logs/artifacts/model.patch"]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "openmoss/swe-bench-science-087"
|
| 6 |
+
description = "Repair a silent diffusion-MRI denoising inconsistency"
|
| 7 |
+
authors = []
|
| 8 |
+
keywords = ["scientific-computing", "software-engineering"]
|
| 9 |
+
|
| 10 |
+
[metadata]
|
| 11 |
+
task_id = "087"
|
| 12 |
+
language = "python"
|
| 13 |
+
base_commit_hash = "ee6016ab81dd649ab40439d75212f35669302810"
|
| 14 |
+
|
| 15 |
+
[agent]
|
| 16 |
+
network_mode = "no-network"
|
| 17 |
+
timeout_sec = 5400.0
|
| 18 |
+
|
| 19 |
+
[environment]
|
| 20 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-environment-python-task-087:v0.1.0@sha256:5a00e4d7a825618ba70259ef5c5e229f7ba2549ab7648ead6fc91fce31256793"
|
| 21 |
+
os = "linux"
|
| 22 |
+
allow_internet = false
|
| 23 |
+
cpus = 2
|
| 24 |
+
memory_mb = 8192
|
| 25 |
+
storage_mb = 20480
|
| 26 |
+
workdir = "/app/task_087"
|
| 27 |
+
|
| 28 |
+
[verifier]
|
| 29 |
+
network_mode = "no-network"
|
| 30 |
+
environment_mode = "separate"
|
| 31 |
+
timeout_sec = 1800.0
|
| 32 |
+
|
| 33 |
+
[verifier.environment]
|
| 34 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-verifier-python-task-087:v0.1.0@sha256:b1ce39c75913bccef5f09acfd2b989857c071fc64c7fdc0dbff092e14dc5270f"
|
| 35 |
+
os = "linux"
|
| 36 |
+
allow_internet = false
|
| 37 |
+
cpus = 2
|
| 38 |
+
memory_mb = 8192
|
| 39 |
+
storage_mb = 20480
|
| 40 |
+
workdir = "/app/task_087"
|
| 41 |
+
|
| 42 |
+
[[verifier.collect]]
|
| 43 |
+
command = "cd /app/task_087 && git config --global --add safe.directory /app/task_087 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
+
timeout_sec = 300.0
|
tasks/task_087/tests/Dockerfile
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG VERIFIER_IMAGE=docker.io/kevinxulearning/swe-bench-science-verifier-python-task-087:v0.1.0@sha256:b1ce39c75913bccef5f09acfd2b989857c071fc64c7fdc0dbff092e14dc5270f
|
| 2 |
+
FROM ${VERIFIER_IMAGE}
|
tasks/task_087/tests/test.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier requires a public tests entrypoint when loading a local task. In
|
| 5 |
+
# separate-verifier mode the executable grader remains inside the verifier image.
|
| 6 |
+
exec python /tests/grader.py
|
tasks/task_088/environment/Dockerfile
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG BASE_IMAGE=python:3.11-slim
|
| 2 |
+
FROM ${BASE_IMAGE}
|
| 3 |
+
|
| 4 |
+
ARG DEBIAN_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian
|
| 5 |
+
ARG DEBIAN_SECURITY_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian-security
|
| 6 |
+
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
| 7 |
+
ARG INSTALL_FORTRAN=0
|
| 8 |
+
ARG INSTALL_OCTAVE=0
|
| 9 |
+
ENV DEBIAN_FRONTEND=noninteractive \
|
| 10 |
+
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
| 11 |
+
PIP_INDEX_URL=${PIP_INDEX_URL} \
|
| 12 |
+
PIP_NO_CACHE_DIR=1 \
|
| 13 |
+
PYTHONDONTWRITEBYTECODE=1
|
| 14 |
+
|
| 15 |
+
RUN sed -i \
|
| 16 |
+
-e "s|http://deb.debian.org/debian-security|${DEBIAN_SECURITY_MIRROR}|g" \
|
| 17 |
+
-e "s|http://deb.debian.org/debian|${DEBIAN_MIRROR}|g" \
|
| 18 |
+
/etc/apt/sources.list.d/debian.sources
|
| 19 |
+
|
| 20 |
+
RUN apt-get -o Acquire::Retries=10 update \
|
| 21 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends \
|
| 22 |
+
build-essential \
|
| 23 |
+
ca-certificates \
|
| 24 |
+
curl \
|
| 25 |
+
git \
|
| 26 |
+
ripgrep \
|
| 27 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 28 |
+
|
| 29 |
+
RUN if [ "${INSTALL_FORTRAN}" = "1" ]; then \
|
| 30 |
+
apt-get -o Acquire::Retries=10 update \
|
| 31 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends gfortran \
|
| 32 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 33 |
+
fi \
|
| 34 |
+
&& if [ "${INSTALL_OCTAVE}" = "1" ]; then \
|
| 35 |
+
apt-get -o Acquire::Retries=10 update \
|
| 36 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends octave \
|
| 37 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 38 |
+
fi
|
| 39 |
+
|
| 40 |
+
WORKDIR /app/task_088
|
| 41 |
+
COPY repo/ /app/task_088/source/
|
| 42 |
+
COPY public/ /app/task_088/
|
| 43 |
+
COPY requirements.lock /app/task_088/requirements.lock
|
| 44 |
+
|
| 45 |
+
RUN python -m pip install --no-cache-dir --upgrade pip \
|
| 46 |
+
&& python -m pip install --no-cache-dir -r requirements.lock
|
| 47 |
+
ENV PYTHONPATH=/app/task_088:/app/task_088/source
|
| 48 |
+
|
| 49 |
+
RUN git init \
|
| 50 |
+
&& git checkout -b main \
|
| 51 |
+
&& git config user.email science-bench@example.invalid \
|
| 52 |
+
&& git config user.name "SWE-bench Science baseline" \
|
| 53 |
+
&& git add -A \
|
| 54 |
+
&& GIT_AUTHOR_DATE=2025-01-01T00:00:00Z \
|
| 55 |
+
GIT_COMMITTER_DATE=2025-01-01T00:00:00Z \
|
| 56 |
+
git commit -m baseline \
|
| 57 |
+
&& git reflog expire --expire=now --all \
|
| 58 |
+
&& git gc --prune=now
|
| 59 |
+
|
| 60 |
+
CMD ["bash"]
|
tasks/task_088/instruction.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Repair a boundary aggregation failure
|
| 2 |
+
|
| 3 |
+
A short time series fails when it is aggregated into a coarser bin. The same
|
| 4 |
+
workflow should run to completion and return a finite aggregate for valid
|
| 5 |
+
inputs.
|
| 6 |
+
|
| 7 |
+
Reproduce the issue from the supplied source snapshot and references, inspect
|
| 8 |
+
the implementation, and repair the behavior so the aggregation workflow works
|
| 9 |
+
for the supported coordinates. The fix must generalize beyond the public
|
| 10 |
+
example and must not hard-code a single span or output value.
|
| 11 |
+
|
| 12 |
+
Work only in this task directory. The evaluation environment is Linux and has
|
| 13 |
+
no network access. You may modify files under `source/`.
|
| 14 |
+
|
| 15 |
+
Use:
|
| 16 |
+
|
| 17 |
+
```bash
|
| 18 |
+
python reproduce.py
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
The command returns `1` for the reproduced scientific inconsistency, `0` after
|
| 22 |
+
a successful repair, and `2` for a runner or environment failure.
|
tasks/task_088/metadata.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "088",
|
| 3 |
+
"title": "Repair a boundary aggregation failure",
|
| 4 |
+
"domain": "boundary-aggregation",
|
| 5 |
+
"language": "python",
|
| 6 |
+
"source_repository": "https://github.com/pydata/xarray",
|
| 7 |
+
"source_commit": "0b071e369a88f6672accc2a99c40d3b4b334f2f9",
|
| 8 |
+
"source_license": "Apache-2.0",
|
| 9 |
+
"license_source": "LICENSE",
|
| 10 |
+
"gpl_family": false,
|
| 11 |
+
"public_payload_sha256": "5e7474f8aa8269a9d76e03f048cce31b30e91fadfa8bb5e3401d63b59c63ddbf"
|
| 12 |
+
}
|
tasks/task_088/task.toml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.3"
|
| 2 |
+
artifacts = ["/logs/artifacts/model.patch"]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "openmoss/swe-bench-science-088"
|
| 6 |
+
description = "Repair a boundary aggregation failure"
|
| 7 |
+
authors = []
|
| 8 |
+
keywords = ["scientific-computing", "software-engineering"]
|
| 9 |
+
|
| 10 |
+
[metadata]
|
| 11 |
+
task_id = "088"
|
| 12 |
+
language = "python"
|
| 13 |
+
base_commit_hash = "0b071e369a88f6672accc2a99c40d3b4b334f2f9"
|
| 14 |
+
|
| 15 |
+
[agent]
|
| 16 |
+
network_mode = "no-network"
|
| 17 |
+
timeout_sec = 5400.0
|
| 18 |
+
|
| 19 |
+
[environment]
|
| 20 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-environment-python-task-088:v0.1.0@sha256:c98a81a135c210d7681b57574c8f39a00f1a92778e458dc5300a7f2775e2ba6f"
|
| 21 |
+
os = "linux"
|
| 22 |
+
allow_internet = false
|
| 23 |
+
cpus = 2
|
| 24 |
+
memory_mb = 8192
|
| 25 |
+
storage_mb = 20480
|
| 26 |
+
workdir = "/app/task_088"
|
| 27 |
+
|
| 28 |
+
[verifier]
|
| 29 |
+
network_mode = "no-network"
|
| 30 |
+
environment_mode = "separate"
|
| 31 |
+
timeout_sec = 1800.0
|
| 32 |
+
|
| 33 |
+
[verifier.environment]
|
| 34 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-verifier-python-task-088:v0.1.0@sha256:9f8a00b079fb998f0672f57af8f75628dabc8582122a294f2b20cd304503ac6e"
|
| 35 |
+
os = "linux"
|
| 36 |
+
allow_internet = false
|
| 37 |
+
cpus = 2
|
| 38 |
+
memory_mb = 8192
|
| 39 |
+
storage_mb = 20480
|
| 40 |
+
workdir = "/app/task_088"
|
| 41 |
+
|
| 42 |
+
[[verifier.collect]]
|
| 43 |
+
command = "cd /app/task_088 && git config --global --add safe.directory /app/task_088 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
+
timeout_sec = 300.0
|
tasks/task_088/tests/Dockerfile
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG VERIFIER_IMAGE=docker.io/kevinxulearning/swe-bench-science-verifier-python-task-088:v0.1.0@sha256:9f8a00b079fb998f0672f57af8f75628dabc8582122a294f2b20cd304503ac6e
|
| 2 |
+
FROM ${VERIFIER_IMAGE}
|
tasks/task_088/tests/test.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier requires a public tests entrypoint when loading a local task. In
|
| 5 |
+
# separate-verifier mode the executable grader remains inside the verifier image.
|
| 6 |
+
exec python /tests/grader.py
|
tasks/task_089/environment/Dockerfile
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG BASE_IMAGE=python:3.11-slim
|
| 2 |
+
FROM ${BASE_IMAGE}
|
| 3 |
+
|
| 4 |
+
ARG DEBIAN_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian
|
| 5 |
+
ARG DEBIAN_SECURITY_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian-security
|
| 6 |
+
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
| 7 |
+
ARG INSTALL_FORTRAN=0
|
| 8 |
+
ARG INSTALL_OCTAVE=0
|
| 9 |
+
ENV DEBIAN_FRONTEND=noninteractive \
|
| 10 |
+
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
| 11 |
+
PIP_INDEX_URL=${PIP_INDEX_URL} \
|
| 12 |
+
PIP_NO_CACHE_DIR=1 \
|
| 13 |
+
PYTHONDONTWRITEBYTECODE=1
|
| 14 |
+
|
| 15 |
+
RUN sed -i \
|
| 16 |
+
-e "s|http://deb.debian.org/debian-security|${DEBIAN_SECURITY_MIRROR}|g" \
|
| 17 |
+
-e "s|http://deb.debian.org/debian|${DEBIAN_MIRROR}|g" \
|
| 18 |
+
/etc/apt/sources.list.d/debian.sources
|
| 19 |
+
|
| 20 |
+
RUN apt-get -o Acquire::Retries=10 update \
|
| 21 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends \
|
| 22 |
+
build-essential \
|
| 23 |
+
ca-certificates \
|
| 24 |
+
curl \
|
| 25 |
+
git \
|
| 26 |
+
ripgrep \
|
| 27 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 28 |
+
|
| 29 |
+
RUN if [ "${INSTALL_FORTRAN}" = "1" ]; then \
|
| 30 |
+
apt-get -o Acquire::Retries=10 update \
|
| 31 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends gfortran \
|
| 32 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 33 |
+
fi \
|
| 34 |
+
&& if [ "${INSTALL_OCTAVE}" = "1" ]; then \
|
| 35 |
+
apt-get -o Acquire::Retries=10 update \
|
| 36 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends octave \
|
| 37 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 38 |
+
fi
|
| 39 |
+
|
| 40 |
+
WORKDIR /app/task_089
|
| 41 |
+
COPY repo/ /app/task_089/source/
|
| 42 |
+
COPY public/ /app/task_089/
|
| 43 |
+
COPY requirements.lock /app/task_089/requirements.lock
|
| 44 |
+
|
| 45 |
+
RUN python -m pip install --no-cache-dir --upgrade pip \
|
| 46 |
+
&& python -m pip install --no-cache-dir -r requirements.lock
|
| 47 |
+
ENV PYTHONPATH=/app/task_089:/app/task_089/source
|
| 48 |
+
|
| 49 |
+
RUN git init \
|
| 50 |
+
&& git checkout -b main \
|
| 51 |
+
&& git config user.email science-bench@example.invalid \
|
| 52 |
+
&& git config user.name "SWE-bench Science baseline" \
|
| 53 |
+
&& git add -A \
|
| 54 |
+
&& GIT_AUTHOR_DATE=2025-01-01T00:00:00Z \
|
| 55 |
+
GIT_COMMITTER_DATE=2025-01-01T00:00:00Z \
|
| 56 |
+
git commit -m baseline \
|
| 57 |
+
&& git reflog expire --expire=now --all \
|
| 58 |
+
&& git gc --prune=now
|
| 59 |
+
|
| 60 |
+
CMD ["bash"]
|
tasks/task_089/instruction.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Repair inconsistent ORCA excited-state spectrum parsing
|
| 2 |
+
|
| 3 |
+
A computational-chemistry workflow imports ORCA excited-state spectra from a
|
| 4 |
+
historical source snapshot. The parser completes and returns finite transition
|
| 5 |
+
data, but a downstream spectrum summary made from the parsed attributes is not
|
| 6 |
+
consistent with the supplied ORCA-style record.
|
| 7 |
+
|
| 8 |
+
Run the public reproduction, inspect the complete source snapshot and supplied
|
| 9 |
+
scientific material, and repair the implementation so valid ORCA excited-state
|
| 10 |
+
spectrum records retain their scientific meaning in the parsed data model. The
|
| 11 |
+
repair must generalize to other valid ORCA spectra, output-version layouts,
|
| 12 |
+
additional transition-property sections, and related spectroscopy sections that
|
| 13 |
+
may appear in the same output.
|
| 14 |
+
|
| 15 |
+
Do not hard-code the supplied fixture, spectrum names, line numbers, numerical
|
| 16 |
+
values, or generated report. Work only in this task directory. The evaluation
|
| 17 |
+
environment is Linux and has no network access. You may modify files under
|
| 18 |
+
`source/`; do not modify the public reproduction, fixtures, workflow, or
|
| 19 |
+
evaluation infrastructure.
|
| 20 |
+
|
| 21 |
+
Use:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
python reproduce.py
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
The command is a diagnostic workflow. It returns `0` when the parser can produce
|
| 28 |
+
a finite nonempty spectrum observation, `1` when it cannot, and `2` for a runner
|
| 29 |
+
or dependency failure. The independent verifier checks scientific consistency on
|
| 30 |
+
broader spectra.
|
tasks/task_089/metadata.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "089",
|
| 3 |
+
"title": "Repair inconsistent ORCA excited-state oscillator strengths",
|
| 4 |
+
"domain": "computational-chemistry-spectroscopy",
|
| 5 |
+
"language": "python",
|
| 6 |
+
"source_repository": "https://github.com/cclib/cclib",
|
| 7 |
+
"source_commit": "6ba33bdd48bf336a81400147d2870323b241e457",
|
| 8 |
+
"source_license": "BSD-3-Clause",
|
| 9 |
+
"license_source": "LICENSE",
|
| 10 |
+
"gpl_family": false,
|
| 11 |
+
"public_payload_sha256": "fe78fd81c8f3bde1750d471aec4416de4b93ff45a1490008fe50e529855c6782"
|
| 12 |
+
}
|
tasks/task_089/task.toml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.3"
|
| 2 |
+
artifacts = ["/logs/artifacts/model.patch"]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "openmoss/swe-bench-science-089"
|
| 6 |
+
description = "Repair inconsistent ORCA excited-state oscillator strengths"
|
| 7 |
+
authors = []
|
| 8 |
+
keywords = ["scientific-computing", "software-engineering"]
|
| 9 |
+
|
| 10 |
+
[metadata]
|
| 11 |
+
task_id = "089"
|
| 12 |
+
language = "python"
|
| 13 |
+
base_commit_hash = "6ba33bdd48bf336a81400147d2870323b241e457"
|
| 14 |
+
|
| 15 |
+
[agent]
|
| 16 |
+
network_mode = "no-network"
|
| 17 |
+
timeout_sec = 5400.0
|
| 18 |
+
|
| 19 |
+
[environment]
|
| 20 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-environment-python-task-089:v0.1.0@sha256:87e8b70f8d192990fe5a0f5d1773dcb304ab1bf5074a187236f2e0bd041ba356"
|
| 21 |
+
os = "linux"
|
| 22 |
+
allow_internet = false
|
| 23 |
+
cpus = 2
|
| 24 |
+
memory_mb = 8192
|
| 25 |
+
storage_mb = 20480
|
| 26 |
+
workdir = "/app/task_089"
|
| 27 |
+
|
| 28 |
+
[verifier]
|
| 29 |
+
network_mode = "no-network"
|
| 30 |
+
environment_mode = "separate"
|
| 31 |
+
timeout_sec = 1800.0
|
| 32 |
+
|
| 33 |
+
[verifier.environment]
|
| 34 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-verifier-python-task-089:v0.1.0@sha256:66ee7d7df906e3cad4e9d27664f1c6ea9bd6673ef36d5ddd61f5aaa75c88db60"
|
| 35 |
+
os = "linux"
|
| 36 |
+
allow_internet = false
|
| 37 |
+
cpus = 2
|
| 38 |
+
memory_mb = 8192
|
| 39 |
+
storage_mb = 20480
|
| 40 |
+
workdir = "/app/task_089"
|
| 41 |
+
|
| 42 |
+
[[verifier.collect]]
|
| 43 |
+
command = "cd /app/task_089 && git config --global --add safe.directory /app/task_089 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
+
timeout_sec = 300.0
|
tasks/task_089/tests/Dockerfile
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG VERIFIER_IMAGE=docker.io/kevinxulearning/swe-bench-science-verifier-python-task-089:v0.1.0@sha256:66ee7d7df906e3cad4e9d27664f1c6ea9bd6673ef36d5ddd61f5aaa75c88db60
|
| 2 |
+
FROM ${VERIFIER_IMAGE}
|
tasks/task_089/tests/test.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier requires a public tests entrypoint when loading a local task. In
|
| 5 |
+
# separate-verifier mode the executable grader remains inside the verifier image.
|
| 6 |
+
exec python /tests/grader.py
|
tasks/task_090/environment/Dockerfile
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG BASE_IMAGE=python:3.11-slim
|
| 2 |
+
FROM ${BASE_IMAGE}
|
| 3 |
+
|
| 4 |
+
ARG DEBIAN_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian
|
| 5 |
+
ARG DEBIAN_SECURITY_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian-security
|
| 6 |
+
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
| 7 |
+
ARG INSTALL_FORTRAN=0
|
| 8 |
+
ARG INSTALL_OCTAVE=0
|
| 9 |
+
ENV DEBIAN_FRONTEND=noninteractive \
|
| 10 |
+
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
| 11 |
+
PIP_INDEX_URL=${PIP_INDEX_URL} \
|
| 12 |
+
PIP_NO_CACHE_DIR=1 \
|
| 13 |
+
PYTHONDONTWRITEBYTECODE=1
|
| 14 |
+
|
| 15 |
+
RUN sed -i \
|
| 16 |
+
-e "s|http://deb.debian.org/debian-security|${DEBIAN_SECURITY_MIRROR}|g" \
|
| 17 |
+
-e "s|http://deb.debian.org/debian|${DEBIAN_MIRROR}|g" \
|
| 18 |
+
/etc/apt/sources.list.d/debian.sources
|
| 19 |
+
|
| 20 |
+
RUN apt-get -o Acquire::Retries=10 update \
|
| 21 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends \
|
| 22 |
+
build-essential \
|
| 23 |
+
ca-certificates \
|
| 24 |
+
curl \
|
| 25 |
+
git \
|
| 26 |
+
ripgrep \
|
| 27 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 28 |
+
|
| 29 |
+
RUN if [ "${INSTALL_FORTRAN}" = "1" ]; then \
|
| 30 |
+
apt-get -o Acquire::Retries=10 update \
|
| 31 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends gfortran \
|
| 32 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 33 |
+
fi \
|
| 34 |
+
&& if [ "${INSTALL_OCTAVE}" = "1" ]; then \
|
| 35 |
+
apt-get -o Acquire::Retries=10 update \
|
| 36 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends octave \
|
| 37 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 38 |
+
fi
|
| 39 |
+
|
| 40 |
+
WORKDIR /app/task_090
|
| 41 |
+
COPY repo/ /app/task_090/source/
|
| 42 |
+
COPY public/ /app/task_090/
|
| 43 |
+
COPY requirements.lock /app/task_090/requirements.lock
|
| 44 |
+
|
| 45 |
+
RUN python -m pip install --no-cache-dir --upgrade pip \
|
| 46 |
+
&& python -m pip install --no-cache-dir -r requirements.lock
|
| 47 |
+
ENV PYTHONPATH=/app/task_090:/app/task_090/source
|
| 48 |
+
|
| 49 |
+
RUN git init \
|
| 50 |
+
&& git checkout -b main \
|
| 51 |
+
&& git config user.email science-bench@example.invalid \
|
| 52 |
+
&& git config user.name "SWE-bench Science baseline" \
|
| 53 |
+
&& git add -A \
|
| 54 |
+
&& GIT_AUTHOR_DATE=2025-01-01T00:00:00Z \
|
| 55 |
+
GIT_COMMITTER_DATE=2025-01-01T00:00:00Z \
|
| 56 |
+
git commit -m baseline \
|
| 57 |
+
&& git reflog expire --expire=now --all \
|
| 58 |
+
&& git gc --prune=now
|
| 59 |
+
|
| 60 |
+
CMD ["bash"]
|
tasks/task_090/instruction.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Restore multidimensional NMR acquisition grids
|
| 2 |
+
|
| 3 |
+
A multidimensional NMR acquisition can arrive as a compressed FID stream plus a
|
| 4 |
+
sparse coordinate schedule. Study the source snapshot and the public
|
| 5 |
+
reproduction. Repair the package so that valid acquisition workflows preserve
|
| 6 |
+
that schedule alongside the compressed stream in both eager and low-memory
|
| 7 |
+
reader paths, and so the public processing workflow can restore the compressed
|
| 8 |
+
rows into a full multidimensional acquisition grid without losing the declared
|
| 9 |
+
acquisition and quadrature layout. Preserve ordinary fully-sampled behavior.
|
| 10 |
+
The repair must generalize when valid layouts, dimensions, direct FID lengths,
|
| 11 |
+
dtypes, and sampling patterns change.
|
| 12 |
+
|
| 13 |
+
Do not hard-code the supplied observations or replace the NMR data model with a
|
| 14 |
+
fixed answer. Work only under this task directory. The evaluation environment is
|
| 15 |
+
offline; all required Python dependencies and source files are provided.
|
| 16 |
+
|
| 17 |
+
Run the public diagnostic with:
|
| 18 |
+
|
| 19 |
+
```bash
|
| 20 |
+
python reproduce.py
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
The command returns `0` when the diagnostic report is produced and `2` for an
|
| 24 |
+
import, dependency, path, or other runner failure. The public report is a
|
| 25 |
+
workbench signal; final evaluation performs independent scientific consistency
|
| 26 |
+
checks on broader cases.
|
tasks/task_090/metadata.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "090",
|
| 3 |
+
"title": "Restore multidimensional NMR acquisition grids",
|
| 4 |
+
"domain": "nuclear-magnetic-resonance-spectroscopy",
|
| 5 |
+
"language": "python",
|
| 6 |
+
"source_repository": "",
|
| 7 |
+
"source_commit": "",
|
| 8 |
+
"source_license": "BSD-3-Clause",
|
| 9 |
+
"license_source": "LICENSE.txt",
|
| 10 |
+
"gpl_family": false,
|
| 11 |
+
"public_payload_sha256": "dd119886283401127edc350f562371a2bad9d92d79cfe0488afeaa26a8dde9b4"
|
| 12 |
+
}
|
tasks/task_090/task.toml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.3"
|
| 2 |
+
artifacts = ["/logs/artifacts/model.patch"]
|
| 3 |
+
|
| 4 |
+
[task]
|
| 5 |
+
name = "openmoss/swe-bench-science-090"
|
| 6 |
+
description = "Restore multidimensional NMR acquisition grids"
|
| 7 |
+
authors = []
|
| 8 |
+
keywords = ["scientific-computing", "software-engineering"]
|
| 9 |
+
|
| 10 |
+
[metadata]
|
| 11 |
+
task_id = "090"
|
| 12 |
+
language = "python"
|
| 13 |
+
base_commit_hash = ""
|
| 14 |
+
|
| 15 |
+
[agent]
|
| 16 |
+
network_mode = "no-network"
|
| 17 |
+
timeout_sec = 5400.0
|
| 18 |
+
|
| 19 |
+
[environment]
|
| 20 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-environment-python-task-090:v0.1.0@sha256:a2a7d3de4b603c2e170a1ea679103aeefdd43c1503f5c2210f32fec9f51e3efa"
|
| 21 |
+
os = "linux"
|
| 22 |
+
allow_internet = false
|
| 23 |
+
cpus = 2
|
| 24 |
+
memory_mb = 8192
|
| 25 |
+
storage_mb = 20480
|
| 26 |
+
workdir = "/app/task_090"
|
| 27 |
+
|
| 28 |
+
[verifier]
|
| 29 |
+
network_mode = "no-network"
|
| 30 |
+
environment_mode = "separate"
|
| 31 |
+
timeout_sec = 1800.0
|
| 32 |
+
|
| 33 |
+
[verifier.environment]
|
| 34 |
+
docker_image = "docker.io/kevinxulearning/swe-bench-science-verifier-python-task-090:v0.1.0@sha256:8ba7b5dff3e7bd208683b7d457ebfe6277ce4bdd218bea4d2e0ea322f49a5007"
|
| 35 |
+
os = "linux"
|
| 36 |
+
allow_internet = false
|
| 37 |
+
cpus = 2
|
| 38 |
+
memory_mb = 8192
|
| 39 |
+
storage_mb = 20480
|
| 40 |
+
workdir = "/app/task_090"
|
| 41 |
+
|
| 42 |
+
[[verifier.collect]]
|
| 43 |
+
command = "cd /app/task_090 && git config --global --add safe.directory /app/task_090 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
+
timeout_sec = 300.0
|
tasks/task_090/tests/Dockerfile
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG VERIFIER_IMAGE=docker.io/kevinxulearning/swe-bench-science-verifier-python-task-090:v0.1.0@sha256:8ba7b5dff3e7bd208683b7d457ebfe6277ce4bdd218bea4d2e0ea322f49a5007
|
| 2 |
+
FROM ${VERIFIER_IMAGE}
|
tasks/task_090/tests/test.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier requires a public tests entrypoint when loading a local task. In
|
| 5 |
+
# separate-verifier mode the executable grader remains inside the verifier image.
|
| 6 |
+
exec python /tests/grader.py
|
tasks/task_091/environment/Dockerfile
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG BASE_IMAGE=python:3.11-slim
|
| 2 |
+
FROM ${BASE_IMAGE}
|
| 3 |
+
|
| 4 |
+
ARG DEBIAN_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian
|
| 5 |
+
ARG DEBIAN_SECURITY_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/debian-security
|
| 6 |
+
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
| 7 |
+
ARG INSTALL_FORTRAN=0
|
| 8 |
+
ARG INSTALL_OCTAVE=0
|
| 9 |
+
ENV DEBIAN_FRONTEND=noninteractive \
|
| 10 |
+
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
| 11 |
+
PIP_INDEX_URL=${PIP_INDEX_URL} \
|
| 12 |
+
PIP_NO_CACHE_DIR=1 \
|
| 13 |
+
PYTHONDONTWRITEBYTECODE=1
|
| 14 |
+
|
| 15 |
+
RUN sed -i \
|
| 16 |
+
-e "s|http://deb.debian.org/debian-security|${DEBIAN_SECURITY_MIRROR}|g" \
|
| 17 |
+
-e "s|http://deb.debian.org/debian|${DEBIAN_MIRROR}|g" \
|
| 18 |
+
/etc/apt/sources.list.d/debian.sources
|
| 19 |
+
|
| 20 |
+
RUN apt-get -o Acquire::Retries=10 update \
|
| 21 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends \
|
| 22 |
+
build-essential \
|
| 23 |
+
ca-certificates \
|
| 24 |
+
curl \
|
| 25 |
+
git \
|
| 26 |
+
ripgrep \
|
| 27 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 28 |
+
|
| 29 |
+
RUN if [ "${INSTALL_FORTRAN}" = "1" ]; then \
|
| 30 |
+
apt-get -o Acquire::Retries=10 update \
|
| 31 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends gfortran \
|
| 32 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 33 |
+
fi \
|
| 34 |
+
&& if [ "${INSTALL_OCTAVE}" = "1" ]; then \
|
| 35 |
+
apt-get -o Acquire::Retries=10 update \
|
| 36 |
+
&& apt-get -o Acquire::Retries=10 install -y --no-install-recommends octave \
|
| 37 |
+
&& rm -rf /var/lib/apt/lists/*; \
|
| 38 |
+
fi
|
| 39 |
+
|
| 40 |
+
WORKDIR /app/task_091
|
| 41 |
+
COPY repo/ /app/task_091/source/
|
| 42 |
+
COPY public/ /app/task_091/
|
| 43 |
+
COPY requirements.lock /app/task_091/requirements.lock
|
| 44 |
+
|
| 45 |
+
RUN python -m pip install --no-cache-dir --upgrade pip \
|
| 46 |
+
&& python -m pip install --no-cache-dir -r requirements.lock
|
| 47 |
+
ENV PYTHONPATH=/app/task_091:/app/task_091/source
|
| 48 |
+
|
| 49 |
+
RUN git init \
|
| 50 |
+
&& git checkout -b main \
|
| 51 |
+
&& git config user.email science-bench@example.invalid \
|
| 52 |
+
&& git config user.name "SWE-bench Science baseline" \
|
| 53 |
+
&& git add -A \
|
| 54 |
+
&& GIT_AUTHOR_DATE=2025-01-01T00:00:00Z \
|
| 55 |
+
GIT_COMMITTER_DATE=2025-01-01T00:00:00Z \
|
| 56 |
+
git commit -m baseline \
|
| 57 |
+
&& git reflog expire --expire=now --all \
|
| 58 |
+
&& git gc --prune=now
|
| 59 |
+
|
| 60 |
+
CMD ["bash"]
|
tasks/task_091/instruction.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Repair a workflow regression
|
| 2 |
+
|
| 3 |
+
A bundled input file exercises the public workflow and currently fails the
|
| 4 |
+
smoke test.
|
| 5 |
+
|
| 6 |
+
Run the public reproduction, inspect the complete source snapshot, and repair
|
| 7 |
+
the implementation so valid inputs are handled consistently across
|
| 8 |
+
representative cases. The repair must generalize to other valid input files and
|
| 9 |
+
similar inputs. Do not hard-code the bundled file or output.
|
| 10 |
+
|
| 11 |
+
Work only in this task directory. The evaluation environment is Linux and has
|
| 12 |
+
no network access. You may modify files under `source/`.
|
| 13 |
+
|
| 14 |
+
Use:
|
| 15 |
+
|
| 16 |
+
```bash
|
| 17 |
+
python reproduce.py
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
The command returns `1` for the reproduced finite inconsistency, `0` after a
|
| 21 |
+
successful repair, and `2` for a runner or environment failure.
|
tasks/task_091/metadata.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "091",
|
| 3 |
+
"title": "Repair a workflow regression",
|
| 4 |
+
"domain": "materials-science-volumetric-data-semantics",
|
| 5 |
+
"language": "python",
|
| 6 |
+
"source_repository": "https://github.com/materialsproject/pymatgen-core",
|
| 7 |
+
"source_commit": "c8cfee71f3ce5d92c5b5f6ca3d363f8f3a9f4495",
|
| 8 |
+
"source_license": "MIT",
|
| 9 |
+
"license_source": "LICENSE",
|
| 10 |
+
"gpl_family": false,
|
| 11 |
+
"public_payload_sha256": "ee6d2a8fa5af6c99aded10bacf8ffa2910bcb148ed68fb80707b9cebe7eb0437"
|
| 12 |
+
}
|