0ed27c5071061588aee0382673b4a5f1678e3370,mlflow/utils/search_utils.py,SearchFilter,_get_comparison,#Any#Any#,83

Before Change



    @classmethod
    def _get_comparison(cls, comparison):
        comp = {}
        for t in comparison.tokens:
            if isinstance(t, Identifier):
                comp.update(cls._get_identifier(t.value))
            elif isinstance(t, Token):
                comp.update(cls._process_token(t))
        return comp

    @classmethod
    def _invalid_statement_token(cls, token):

After Change



    @classmethod
    def _get_comparison(cls, comparison):
        stripped_comparison = [token for token in comparison.tokens if not token.is_whitespace]
        cls._validate_comparison(stripped_comparison)
        comp = cls._get_identifier(stripped_comparison[0].value)
        comp["comparator"] = stripped_comparison[1].value
        comp["value"] = cls._get_value(comp.get("type"), stripped_comparison[2])
        return comp
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: mlflow/mlflow
Commit Name: 0ed27c5071061588aee0382673b4a5f1678e3370
Time: 2019-03-28
Author: mani@databricks.com
File Name: mlflow/utils/search_utils.py
Class Name: SearchFilter
Method Name: _get_comparison


Project Name: theislab/scanpy
Commit Name: 2765758171060d13058a1e36233a651e34299fc5
Time: 2017-04-30
Author: flying-sheep@web.de
File Name: setup.py
Class Name:
Method Name:


Project Name: pantsbuild/pants
Commit Name: 43ffe73ada2fcbc2571172193c30b906d2de944f
Time: 2019-12-21
Author: blorente@users.noreply.github.com
File Name: src/python/pants/backend/project_info/tasks/export_dep_as_jar.py
Class Name: ExportDepAsJar
Method Name: _process_target