245c0a9e43a6493611be48d949f2184acf86aea3,python/ray/autoscaler/cli_logger.py,_CliLogger,detect_colors,#_CliLogger#,221

Before Change


        if self.color_mode == "auto":
            self.strip = not sys.stdout.isatty()
            // colorful autodetects tty settings
            return

        raise ValueError("Invalid log color setting: " + self.color_mode)

    def newline(self):

After Change


        color output
        (8-color ANSI if no terminal detected to be safe) in colorful.
        
        self.color_mode = self.color_mode.lower()
        if self.color_mode == "true":
            if self._autodetected_cf_colormode != cf.NO_COLORS:
                cf.colormode = self._autodetected_cf_colormode
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 245c0a9e43a6493611be48d949f2184acf86aea3
Time: 2020-08-22
Author: maximsmol@gmail.com
File Name: python/ray/autoscaler/cli_logger.py
Class Name: _CliLogger
Method Name: detect_colors


Project Name: deepmipt/DeepPavlov
Commit Name: cb0c025ab87216d35b68a2b4b36d61621acd76ba
Time: 2018-01-31
Author: arkhipov@yahoo.com
File Name: deeppavlov/models/ner/slotfill.py
Class Name: DstcSlotFillingNetwork
Method Name: infer


Project Name: keras-team/autokeras
Commit Name: 71432d1890209628e189edf04d7d623160943718
Time: 2019-12-18
Author: 33369174+Davidsirui@users.noreply.github.com
File Name: autokeras/hypermodel/preprocessor.py
Class Name: TextToNgramVector
Method Name: transform