Update README.md
Browse files1234567891011121314151617181920212223242526272829303132333425 unmodified lines606162# Stack-Smol-DocstringsThis dataset contains Python functions extracted from The Stack (small) dataset,selected for their high-quality docstrings and implementations. Each sample includesthe function's docstring, implementation, and a masked version of the code where thefunction is replaced with a comment.The dataset is designed for code completion tasks where a model needs to restore afunction that has been replaced with a comment. The model is provided with:1. The full file context with the function replaced by a comment2. The docstring of the function3. The function nameThe model's task is to generate code that replaces the comment with a proper implementationof the function based on the docstring and surrounding context.## Dataset StructureEach sample contains:- `function_name`: Name of the function- `docstring`: The function's docstring- `masked_code`: The full file with the function replaced by a comment- `implementation`: The original function implementation- `start_line`: The starting line number of the function in the original file- `end_line`: The ending line number of the function in the original file- `file_content`: The full original file content## Quality FilteringFunctions are filtered based on:- Docstring quality (length, structure, descriptiveness)- Implementation quality (no SQL strings, reasonable number of variables, sufficient complexity)---dataset_info:features:25 unmodified lines---12325 unmodified lines293031323334353637383940414243444546474849505152535455565758596061---dataset_info:features:25 unmodified lines---# Stack-Smol-DocstringsThis dataset contains Python functions extracted from The Stack (small) dataset,selected for their high-quality docstrings and implementations. Each sample includesthe function's docstring, implementation, and a masked version of the code where thefunction is replaced with a comment.The dataset is designed for code completion tasks where a model needs to restore afunction that has been replaced with a comment. The model is provided with:1. The full file context with the function replaced by a comment2. The docstring of the function3. The function nameThe model's task is to generate code that replaces the comment with a proper implementationof the function based on the docstring and surrounding context.## Dataset StructureEach sample contains:- `function_name`: Name of the function- `docstring`: The function's docstring- `masked_code`: The full file with the function replaced by a comment- `implementation`: The original function implementation- `start_line`: The starting line number of the function in the original file- `end_line`: The ending line number of the function in the original file- `file_content`: The full original file content## Quality FilteringFunctions are filtered based on:- Docstring quality (length, structure, descriptiveness)- Implementation quality (no SQL strings, reasonable number of variables, sufficient complexity)
README.md+30-31