| 11 | |
| 12 | @dataclass |
| 13 | class CorpusEntry: |
| 14 | name: str |
| 15 | path: str |
| 16 | category: str |
| 17 | line_count: int |
| 18 | elo_rating: float = 1500.0 |
| 19 | |
| 20 | def to_dict(self) -> dict: |
| 21 | return { |
| 22 | "name": self.name, |
| 23 | "path": self.path, |
| 24 | "category": self.category, |
| 25 | "line_count": self.line_count, |
| 26 | "elo_rating": self.elo_rating, |
| 27 | } |
| 28 | |
| 29 | |
| 30 | class Corpus: |
no outgoing calls
no test coverage detected