SZZReport¶
Module for SZZReport.
- class varats.data.reports.szz_report.SZZTool(tool_name, shorthand)[source]¶
Bases:
EnumEnum for available SZZ tools.
- property tool_name: str¶
- property shorthand: str¶
- SZZ_UNLEASHED = ('SZZUnleashed', 'SZZU')¶
- PYDRILLER_SZZ = ('PyDrillerSZZ', 'PySZZ')¶
- class varats.data.reports.szz_report.SZZReport(path, szz_tool)[source]¶
Bases:
BaseReportBase class for reports created by several SZZ tools.
Subclasses of this report only differ in the tool used and the shorthand.
- get_all_raw_bugs()[source]¶
Get the set of all bugs in this report.
- Return type:
FrozenSet[Bug[FullCommitHash]]- Returns:
A set of RawBug s.
- get_raw_bug_by_fix(fixing_commit)[source]¶
Get a bug by the id of the fixing commit.
- Return type:
Optional[Bug[FullCommitHash]]- Returns:
A RawBug if avilable, else None.
- FILE_TYPE: str = 'yaml'¶
- SHORTHAND: str = 'SZZ'¶