Document v2 source-normalization retention rules
Browse files61 unmodified lines62636465666768121 unmodified lines19019119219319419519619719819961 unmodified lines| Version | Revision | Description ||---|---|---|| v1 | `v1.0.0` | Original published datasets, including the original source text and AST graphs. || v2 | `v2.0.0` | Reconstructed PROMISE, Defactors, BugsInPy, and Big-Vul datasets. Comment/docstring text is directly removed; Python functions containing only a docstring are removed. Function labels are frozen before normalization, then AST graphs are regenerated. Devign is not included in this revision. |For example:121 unmodified linesgraph contains parent-child structure, reverse edges, and self-loops.- In v2, comments are removed with language-aware lexical scanning while stringand character literals are retained. Python docstrings are removed after theexisting function labels have been derived; a function whose body containsonly a docstring is omitted.Bags that would contain no remaining functions are omitted. Thus, no defectlabel is recomputed from line positions after source normalization.## Optional Training-time function caps61 unmodified lines62636465666768121 unmodified lines19019119219319419519619719819920061 unmodified lines| Version | Revision | Description ||---|---|---|| v1 | `v1.0.0` | Original published datasets, including the original source text and AST graphs. || v2 | `v2.0.0` | Reconstructed PROMISE, Defactors, BugsInPy, and Big-Vul datasets. Comment/docstring text and non-literal blank lines are removed. The v1 bag set, function order, and frozen labels are retained; a Python suite that would become empty after docstring removal receives `pass` so that it remains parseable. AST graphs are regenerated from the cleaned source. Devign is not included in this revision. |For example:121 unmodified linesgraph contains parent-child structure, reverse edges, and self-loops.- In v2, comments are removed with language-aware lexical scanning while stringand character literals are retained. Python docstrings are removed after theexisting function labels have been derived. No function or bag is omitted bysource normalization: if a Python function, class, or module suite would beempty after its sole docstring is removed, the docstring is replaced with`pass` so the cleaned source remains parseable. Thus, no defect label isrecomputed from line positions after source normalization.## Optional Training-time function caps
README.md+6-5