Mutation Report
pyllmut.mutation_report.MutationReport
A report object that encapsulates the results of a mutant generation process.
Source code in pyllmut/mutation_report.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
get_bad_response_info_list()
Retrieves the list of ResponseInfo objects for mutant generation attempts (for a line) that model response is not parsable (bad JSON objects).
Returns:
| Type | Description |
|---|---|
List[ResponseInfo]
|
List[ResponseInfo]: A list of ResponseInfo objects. |
Source code in pyllmut/mutation_report.py
63 64 65 66 67 68 69 70 | |
get_mutant_list()
Retrieves the complete list of generated mutants.
Returns:
| Type | Description |
|---|---|
List[MutantInfo]
|
List[MutantInfo]: A list of all MutantInfo objects. |
Source code in pyllmut/mutation_report.py
32 33 34 35 36 37 38 39 | |
get_timeout_info_list()
Retrieves the list of PromptInfo objects for mutant generation attempts (for a line) that timed out.
Returns:
| Type | Description |
|---|---|
List[PromptInfo]
|
List[PromptInfo]: A list of PromptInfo objects. |
Source code in pyllmut/mutation_report.py
54 55 56 57 58 59 60 61 | |
get_valid_mutant_list()
Returns only the valid mutants from the complete mutant list.
A mutant is considered valid if its mutant type is equal to MutantType.VALID.
Returns:
| Type | Description |
|---|---|
List[MutantInfo]
|
List[MutantInfo]: A list of valid MutantInfo objects. |
Source code in pyllmut/mutation_report.py
41 42 43 44 45 46 47 48 49 50 51 52 | |