| 16 | |
| 17 | |
| 18 | class Table: |
| 19 | def __init__(self, id, header, data, context): |
| 20 | self.id: str = id |
| 21 | self.header: List[str] = header |
| 22 | self.data: List[List[str]] = data |
| 23 | self.context: str = context |
| 24 | |
| 25 | def __str__(self): # for debug |
| 26 | heading = "\t|||\t".join(self.header) |
| 27 | body = '' |
| 28 | for row in self.data: body += "\t|||\t".join(row) + '\n' |
| 29 | return (f"______________________________________\n" |
| 30 | f"Table ID:{self.id}\n" |
| 31 | f"Context:{self.context}\n" |
| 32 | f"{heading}\n" |
| 33 | f"_____\n" |
| 34 | f"{body}") |
| 35 | |
| 36 | |
| 37 | class Model(nn.Module): |
no outgoing calls
no test coverage detected