blastwind/deprecated-github-code-haskell-function
Dataset Card for "github-code-haskell-function" Rows: 3.26M Download Size: 1.17GB This dataset is extracted from github-code-haskell-file. Each row has 3 flavors of the same function: uncommented_code: Includes the function and its closest signature. function_only_code: Includes the function only. full_code: Includes the function and its closest signature and comment. The heuristic for finding the closest signature and comment follows: If the immediate previous neighbor of… See the full description on the dataset page: https://huggingface.co/datasets/blastwind/deprecated-github-code-haskell-function.
Dataset Card for "github-code-haskell-function"
Rows: 3.26M Download Size: 1.17GB
This dataset is extracted from github-code-haskell-file.
Each row has 3 flavors of the same function: uncommented_code: Includes the function and its closest signature. function_only_code: Includes the function only. full_code: Includes the function and its closest signature and comment. The heuristic for finding the closest signature and comment follows: If the immediate previous neighbor of the function is neither a signature nor comment, full_code is just the function. If the previous neighbor is one though, include them appropriately, then search the previous neighbor for the other node with the same logic.
Further, each row also contains attribute values for my personal analysis project. The attributes are calculated from the code in column uncommented_code. 7% (225k) of the rows have cyclomatic complexity and LOC valued at -1 because `homplexity` failed in parsing the row's uncommented_code.
