# Data Curation This directory contains the data curation process for the Scientific Computing Benchmark. Currently, Einstein Toolkit and Multi-SWE-bench types of questions are supported. ## Einstein Toolkit We define one question for Einsetin Toolkit as ablating part of the Cactus code and ask LLM to complete it. To make the dataset ```bash cd et python data_parser/ETdata_hf_code.py python data_parser/ETdata_hf_test.py python data_parser/ET_code_ds_add_context.py python data_parser/ET_code_ds_add_docs.py ``` This would define 3k+ questions. However, not all questions are testable, and even less questions are physically meaningful. See `curation/et/test_parser` and `curation/et/tol_test` for how we verify the questions. See our paper and `curation/et/*_example_check` for how we check the questions of physical relevance. ## multi-swe-bench For the data curation process, see [multi-swe-bench](https://github.com/multi-swe-bench/multi-swe-bench) repo for how a repo's issues and pull requests are added to the dataset. For evaluation, we need the log parser. To verify, run `cd msb && python log_parser.py` ```bash # python log_parser.py Loaded parse_log from qiskit/qiskit.py::Instance Loaded parse_log from pyscf/pyscf_1891_to_1681.py::Instance Loaded parse_log from pyscf/pyscf.py::Instance Loaded parse_log from rdkit/rdkit.py::Instance Loaded parse_log from openmm/openmm.py::Instance Loaded parse_log (static) from AMReXCodes/amrex.py::AMReX Available parsers: ['qiskit', 'pyscf', 'rdkit', 'openmm', 'amrexcodes'] ``` This would list all the available parsers. To add a new parser, add a new module with `parse_log` method into `curation/msb/NewRepo/`. See `curation/msb/qiskit/qiskit.py` for an example.