Download README.md from annachaaang/ClassEval-Completion: direct link, hf CLI and curl.
- Browser
- Download file 3.32 kB
-
https://huggingface.co/datasets/annachaaang/ClassEval-Completion/resolve/main/README.md
- Command line
-
hf download hf://datasets/annachaaang/ClassEval-Completion/README.md
-
curl -L -o README.md https://huggingface.co/datasets/annachaaang/ClassEval-Completion/resolve/main/README.md
dataset_info:
features:
- name: task_id
dtype: string
- name: skeleton
dtype: string
- name: test
dtype: string
- name: solution_code
dtype: string
- name: import_statement
list: string
- name: class_description
dtype: string
- name: methods_info
list:
- name: dependencies
struct:
- name: Standalone
dtype: bool
- name: field_dependencies
list: string
- name: lib_dependencies
list: string
- name: method_dependencies
list: string
- name: method_description
dtype: string
- name: method_name
dtype: string
- name: solution_code
dtype: string
- name: test_class
dtype: string
- name: test_code
dtype: string
- name: class_name
dtype: string
- name: test_classes
list: string
- name: class_constructor
dtype: string
- name: fields
list: string
- name: new_task_id
dtype: string
- name: method_name
dtype: string
- name: method_signature
dtype: string
- name: completion_code
dtype: string
splits:
- name: test
num_bytes: 9428141
num_examples: 396
download_size: 631299
dataset_size: 9428141
configs:
- config_name: default
data_files:
- split: test
path: data/test-*
ClassEval-Completion
ClassEval-Completion is a derived method-level code completion benchmark constructed from the original FudanSELab/ClassEval dataset. The original ClassEval benchmark contains human-crafted class-level Python programming tasks with class skeletons, unit tests, ground-truth implementations, and method-level metadata.
This derived dataset reformulates ClassEval into a class-aware method completion task. For each non-constructor method, we remove the method implementation from the full class solution and replace it with a method skeleton that preserves the surrounding class context. The model is expected to complete the missing method implementation given the class-level context and method signature.
Dataset Construction
Starting from each ClassEval class implementation, we identify non-constructor methods and create one completion instance per eligible method. For each instance, the dataset preserves the original class context, constructor, fields, imports, related methods, and method signature. The removed method implementation serves as the target solution.
The key input field is:
completion_code: the class-level code context and method skeleton used as the model input.
The target output is the corresponding removed method implementation.
Intended Use
This dataset is intended for evaluating code completion models in class-level Python contexts. Unlike line-level infilling, this task requires generating a complete method body while preserving compatibility with the surrounding class implementation and unit tests.
Source and Attribution
This dataset is derived from FudanSELab/ClassEval:
- Original dataset: FudanSELab/ClassEval
- Original paper: “ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generation”
Please cite the original ClassEval paper when using this derived dataset.
License
The original ClassEval data is distributed under CC BY-NC 4.0. This derived dataset follows the same data license.