

def parse_lines(self, lines):
    info = ContestInput()
    self.info = info
    (candidate_count, seat_count) = self.parse_next_line_ints(lines)
    info.seat_count = seat_count
    withdraw_numbers = self.parse_next_line_ints(lines)
    withdrawn = []
    for number in withdraw_numbers:
        assert (number < 0)
        withdrawn.append(((- 1) * number))
    info.withdrawn = withdrawn
    ballot_count = self.parse_ballot_lines(lines)
    info.ballot_count = ballot_count
    candidates = []
    for i in range(candidate_count):
        name = self.parse_next_line_text(lines)
        candidates.append(name)
    info.candidates = candidates
    name = self.parse_next_line_text(lines)
    info.name = name
    for line in info:
        if line.strip():
            raise ValueError('the BLT has non-empty lines at the end')

dataset/ETHPy150Open cjerdonek/open-rcv/openrcv/parsing.py BLTParser.parse_lines/VarMisuse@163/213 `lines`->`info`