(freqs: Dict[int, float], sort: bool = True)
| 1007 | |
| 1008 | |
| 1009 | def _format_freqs(freqs: Dict[int, float], sort: bool = True) -> str: |
| 1010 | if sort: |
| 1011 | freqs = dict(sorted(freqs.items())) |
| 1012 | |
| 1013 | _freqs = [(str(k), v) for k, v in freqs.items()] |
| 1014 | return ", ".join( |
| 1015 | [f"{l} ({c}%)" for l, c in cast(Iterable[Tuple[str, float]], _freqs)] |
| 1016 | ) |
| 1017 | |
| 1018 | |
| 1019 | def _get_examples_without_label( |
no outgoing calls
no test coverage detected
searching dependent graphs…