from writer import Color


def read(color):
    file = open('log.txt', 'r')
    index = slice(0, 0)
    if color == Color.RED:
        index = 0
    elif color == Color.GREEN:
        index = 1
    elif color == Color.BLUE:
        index = 2
    for line in file:
        line = line.strip('\n')
        nodes = line.split(',')
        node = nodes[index]
        print(node, end='')
    print()


if __name__ == '__main__':
    read(Color.RED)
    read(Color.GREEN)
    read(Color.BLUE)

2be410e0097a4d5f4ad360759dde7a85a3d0cfac
<mask token>

<mask token>


def read(color):
    file = open('log.txt', 'r')
    index = slice(0, 0)
    if color == Color.RED:
        index = 0
    elif color == Color.GREEN:
        index = 1
    elif color == Color.BLUE:
        index = 2
    for line in file:
        line = line.strip('\n')
        nodes = line.split(',')
        node = nodes[index]
        print(node, end='')
    print()


<mask token>

<mask token>


def read(color):
    file = open('log.txt', 'r')
    index = slice(0, 0)
    if color == Color.RED:
        index = 0
    elif color == Color.GREEN:
        index = 1
    elif color == Color.BLUE:
        index = 2
    for line in file:
        line = line.strip('\n')
        nodes = line.split(',')
        node = nodes[index]
        print(node, end='')
    print()


if __name__ == '__main__':
    read(Color.RED)
    read(Color.GREEN)
    read(Color.BLUE)

from writer import Color


def read(color):
    file = open('log.txt', 'r')
    index = slice(0, 0)
    if color == Color.RED:
        index = 0
    elif color == Color.GREEN:
        index = 1
    elif color == Color.BLUE:
        index = 2
    for line in file:
        line = line.strip('\n')
        nodes = line.split(',')
        node = nodes[index]
        print(node, end='')
    print()


if __name__ == '__main__':
    read(Color.RED)
    read(Color.GREEN)
    read(Color.BLUE)
