Update dataset card for MultiOOP: A Multi-Language Object-Oriented Programming Benchmark
#2
by nielsr HF Staff - opened
123456789101112131415161718192021222324252627282930313233344 unmodified lines39404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596---license: mittask_categories:- text-generationtags:- code- datasetsize_categories:- n<1Klanguage:- enpretty_name: CodeEval---license: apache-2.0---# Dataset Card for Object-Oriented Programming## Dataset Description- **Repository:** [GitHub Repository](https://github.com/alphadl/OOP-eval)- **Paper:** [Object-Oriented Programming Evaluation Benchmark for LLMs](https://arxiv.org/abs/2401.06628)### Dataset SummaryThe OOP benchmark consists of 431 instances, and contains three difficulty levels: Simple-level OOP, Moderate-level OOP, and Difficult-level OOP.### Supported Tasks and Leaderboards### LanguagesThe Object-Oriented Programming problems are written in Python and contain English natural text in comments and docstrings.## Dataset Structure4 unmodified linesDatasetDict({test: Dataset({features: ['task_id', 'question', 'canonical_solution', 'test_list', 'test_function', 'entry_point', 'test_matching', 'test_match_function'],num_rows: 431})})```### Data Instances#### OOP benchmark```{'task_id': 'OOP/0','question': 'First, write a **WDS** class using the Python language. Then, within the WDS class, create a public function called **without_duplicates** to implement finding the length of the longest substring in a given string **s** that does not contain any duplicate characters.','test_function': 'def test_run(content1):\n return WDS().without_duplicates(content1)','test_list': ['assert candidate("abcabcbb")==3','assert candidate("bbbbb")==1','assert candidate("pwwkew")==3'],'entry_point': 'test_run','test_matching': 'assert candidate([["class WDS", "def without_duplicates"]]) == True','test_match_function': 'def matching_function(content):\n def run_match(text):\n for task in text:\n if task not in str_content:\n return False\n return True\n len_cont = len(content)\n if len_cont==1 and run_match(content[0]) == True:\n return True\n elif (len_cont==2 and run_match(content[0]) == True) or (len_cont==2 and run_match(content[1]) == True):\n return True\n else:\n return False'}```### Data Fields- `task_id`: identifier for the data sample- `question`: description of programming task- `test_function`: run function for the test- 'test_list': list of tests to verify solution- `entry_point`: entry point for test- 'test_matching': list of tests to verify solution- 'test_match_function': matching function for the test### Data SplitsThe OOP dataset only consists of a test split with 431 samples.## Dataset CreationSee section 3.2 of original [paper](https://arxiv.org/abs/2401.06628).### Citation Information```@inproceedings{wang2024oop,title={OOP: Object-Oriented Programming Evaluation Benchmark for Large Language Models},author={Shuai Wang and Liang Ding and Li Shen and Yong Luo and Bo Du and Dacheng Tao},year={2024},booktitle={Findings of the Association for Computational Linguistics: ACL 2023},url={https://arxiv.org/abs/2401.06628},}```### ContributionsThanks to [@lvwerra](https://github.com/lvwerra) for adding this dataset.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152534 unmodified lines585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129---language:- enlicense: mitsize_categories:- 1K<n<10Ktask_categories:- text-generationpretty_name: MultiOOP Benchmarktags:- code- dataset- object-oriented-programming- code-generation- benchmark- multi-language- python- php- cpp- csharp- java- javascript---# MultiOOP: A Multi-Language Object-Oriented Programming Benchmark for Large Language Models## Dataset Description- **Repository:** [GitHub Repository](https://github.com/alphadl/OOP-eval)- **Paper:** [A Multi-Language Object-Oriented Programming Benchmark for Large Language Models](https://huggingface.co/papers/2509.26111)### Dataset SummaryMultiOOP is a multi-language object-oriented programming benchmark designed to establish fair and robust evaluations for intelligent code generation by large language models (LLMs). It addresses major imbalances in existing benchmarks by covering six popular programming languages: Python, PHP, C++, C#, Java, and JavaScript. The benchmark features 267 tasks per language, totaling 1602 unique tasks, and extends an existing single-language OOP benchmark to a multilingual setting. MultiOOP includes an automated framework for augmenting test cases and introduces the `pass@o` metric to specifically quantify LLMs' understanding of core object-oriented programming concepts. It covers three difficulty levels: Simple-level OOP, Moderate-level OOP, and Difficult-level OOP.### Supported Tasks and LeaderboardsThe dataset supports tasks related to object-oriented code generation and evaluation for Large Language Models (LLMs). It is designed to assess LLMs' ability to understand and generate code that encapsulates core OOP concepts across multiple programming languages. Evaluation is typically performed using metrics like `pass@k` and the specialized `pass@o` for object-oriented understanding.### LanguagesThe MultiOOP benchmark problems are available in six popular programming languages:- Python- PHP- C++- C#- Java- JavaScriptThe natural language descriptions for the tasks, including comments and docstrings, are in English.## Dataset Structure4 unmodified linesDatasetDict({test: Dataset({features: ['task_id', 'question', 'canonical_solution', 'test_list', 'test_function', 'entry_point', 'test_matching', 'test_match_function'],num_rows: 1602 # 267 tasks * 6 languages})})```### Data Instances#### Example for MultiOOP benchmark (Python)```{'task_id': 'OOP/0','question': 'First, write a **WDS** class using the Python language. Then, within the WDS class, create a public function called **without_duplicates** to implement finding the length of the longest substring in a given string **s** that does not contain any duplicate characters.','test_function': 'def test_run(content1):\return WDS().without_duplicates(content1)','test_list': ['assert candidate("abcabcbb")==3','assert candidate("bbbbb")==1','assert candidate("pwwkew")==3'],'entry_point': 'test_run','test_matching': 'assert candidate([["class WDS", "def without_duplicates"]]) == True','test_match_function': 'def matching_function(content):\def run_match(text):\for task in text:\if task not in str_content:\return False\return True\len_cont = len(content)\if len_cont==1 and run_match(content[0]) == True:\return True\elif (len_cont==2 and run_match(content[0]) == True) or (len_cont==2 and run_match(content[1]) == True):\return True\else:\return False'}```### Data Fields- `task_id`: Identifier for the data sample (e.g., 'Python/OOP/0', 'Java/OOP/0').- `question`: Natural language description of the programming task.- `canonical_solution`: The ground truth solution to the programming task.- `test_function`: The function used to run the tests against the generated code.- `test_list`: A list of assertions or test cases to verify the functional correctness of the solution.- `entry_point`: The entry point function for test execution.- `test_matching`: Tests designed to verify adherence to core OOP concepts (e.g., correct class and method definitions).- `test_match_function`: The function used to perform conceptual matching tests.### Data SplitsThe MultiOOP dataset consists of a test split containing 1602 samples in total, comprising 267 distinct tasks for each of the six supported programming languages.## Dataset CreationFor detailed information on the dataset's creation methodology, task design, the translator used to extend the single-language benchmark, and the definition of the `pass@o` metric, please refer to the original paper: [A Multi-Language Object-Oriented Programming Benchmark for Large Language Models](https://huggingface.co/papers/2509.26111).### Citation Information```bibtex@article{wang2024multioop,title={A Multi-Language Object-Oriented Programming Benchmark for Large Language Models},author={Wang, Shuai and Ding, Liang and Shen, Li and Luo, Yong and Du, Bo and Tao, Dacheng},journal={arXiv preprint arXiv:2509.26111},year={2024},url={https://huggingface.co/papers/2509.26111}}```### ContributionsThanks to [@lvwerra](https://github.com/lvwerra) for adding this dataset.
README.md+66-33