pipeline/evaluate.py
def extract_edcar_comms(lines):
    """The last 2 lines in an EDCAR found community file are statistics. Each
    remaining line must be parsed to get the node IDs. See `get_edcar_comm` for
    more info.
    """
    rows = [row.split() for row in lines[:-2]]  # last 2 are stats
    return [get_edcar_comm(row) for row in rows]
The last 2 lines in an EDCAR found community file are statistics. Each
    remaining line must be parsed to get the node IDs. See `get_edcar_comm` for
    more info.
    
The last 2 lines in an EDCAR found community file are statistics. Each
remaining line must be parsed to get the node IDs. See `get_edcar_comm` for
more info.
The last 2 lines in an EDCAR found community file are statistics . Each remaining line must be parsed to get the node IDs . See ` get_edcar_comm ` for more info .
def extract_edcar_comms(lines):
    rows = [row.split() for row in lines[:-2]]  
    return [get_edcar_comm(row) for row in rows]
def extract_edcar_comms ( lines ) : rows = [ row . split ( ) for row in lines [ : - 2 ] ] return [ get_edcar_comm ( row ) for row in rows ]
The last 2 lines in an EDCAR found community file are statistics.
The last 2 lines in an EDCAR found community file are statistics .
"""The last 2 lines in an EDCAR found community file are statistics. Each
    remaining line must be parsed to get the node IDs. See `get_edcar_comm` for
    more info.
    """ # last 2 are stats
lines