95bf720c3df41985512f5ea7af9fd445ce11060b,loudml-influx/loudml/influx.py,,_build_tags_predicates,#Any#,219

Before Change


        for item in match_all:
            must.append("\"{}\"="{}"".format(
              escape_doublequotes(item["tag"]),
              escape_quotes(str(item["value"])),
            ))

    return must

After Change


            if isinstance(val, bool):
                val = str(val)
            elif isinstance(val, int):
                val = str(val)
            elif isinstance(val, str):
                val = ""{}"".format(escape_quotes(val))
            must.append("\"{}\"={}".format(
              escape_doublequotes(condition["tag"]),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: regel/loudml
Commit Name: 95bf720c3df41985512f5ea7af9fd445ce11060b
Time: 2018-05-18
Author: sebastien.regel@gmail.com
File Name: loudml-influx/loudml/influx.py
Class Name:
Method Name: _build_tags_predicates


Project Name: regel/loudml
Commit Name: 034928cf35613b98ad7e9a4ae206f14a0a86e188
Time: 2018-04-30
Author: sebastien.regel@gmail.com
File Name: loudml-influx/loudml/influx.py
Class Name:
Method Name: _build_tags_predicates


Project Name: regel/loudml
Commit Name: c1df2425493c63b2ccf1db1be5b59f789ee96b47
Time: 2018-05-18
Author: sebastien.regel@gmail.com
File Name: loudml-influx/loudml/influx.py
Class Name:
Method Name: _build_tags_predicates


Project Name: regel/loudml
Commit Name: 95bf720c3df41985512f5ea7af9fd445ce11060b
Time: 2018-05-18
Author: sebastien.regel@gmail.com
File Name: loudml-influx/loudml/influx.py
Class Name:
Method Name: _build_tags_predicates