1c1914df24c211aea45b42146940c9a7b770cbee,utils.py,,get_logger,#,21

Before Change




def get_logger():
    logger = logging.getLogger("dsb-2018")
    logger.setLevel(logging.INFO)
    message_format = logging.Formatter(fmt="%(asctime)s %(name)s >>> %(message)s",
                                       datefmt="%Y-%m-%d %H-%M-%S")

    // console handler for validation info
    ch_va = logging.StreamHandler(sys.stdout)
    ch_va.setLevel(logging.INFO)

    ch_va.setFormatter(fmt=message_format)

    // add the handlers to the logger
    logger.addHandler(ch_va)

    return logger


def decompose(labeled):
    nr_true = labeled.max()

After Change




def get_logger():
    return logging.getLogger("dsb-2018")


def decompose(labeled):
    nr_true = labeled.max()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: minerva-ml/open-solution-data-science-bowl-2018
Commit Name: 1c1914df24c211aea45b42146940c9a7b770cbee
Time: 2018-07-19
Author: kamil.kaczmarek@neptune.ml
File Name: utils.py
Class Name:
Method Name: get_logger


Project Name: minerva-ml/open-solution-data-science-bowl-2018
Commit Name: 1c1914df24c211aea45b42146940c9a7b770cbee
Time: 2018-07-19
Author: kamil.kaczmarek@neptune.ml
File Name: utils.py
Class Name:
Method Name: get_logger


Project Name: IDSIA/sacred
Commit Name: fc2d5ce944b1f8f544defcfcbaa9f27f2e68851e
Time: 2018-11-25
Author: thilo-von-neumann@live.de
File Name: sacred/utils.py
Class Name:
Method Name: create_basic_stream_logger


Project Name: minerva-ml/open-solution-data-science-bowl-2018
Commit Name: 4ba26cd48bc15f4077efe3b8e961f94805459293
Time: 2018-06-25
Author: taras.piotr@gmail.com
File Name: src/utils.py
Class Name:
Method Name: get_logger