Applying coding patterns in estatisticas_br_controller.py