df01841775f497784c0be4fa6dbbcf93efda05af,mlflow/store/model_registry/sqlalchemy_store.py,SqlAlchemyStore,search_registered_models,#SqlAlchemyStore#Any#Any#Any#Any#,215

Before Change


                                      "partial match (LIKE), and case-insensitive partial "
                                      "match (ILIKE). Input filter string: %s" % filter_string,
                                      error_code=INVALID_PARAMETER_VALUE)
            if filter_dict["key"] == "name":
                if filter_dict["comparator"] == "LIKE":
                    conditions = [SqlRegisteredModel.name.like(filter_dict["value"])]
                elif filter_dict["comparator"] == "ILIKE":
                    conditions = [SqlRegisteredModel.name.ilike(filter_dict["value"])]
                else:
                    conditions = [SqlRegisteredModel.name == filter_dict["value"]]
            else:
                raise MlflowException("Invalid filter string: %s" % filter_string,
                                      error_code=INVALID_PARAMETER_VALUE)
        else:
            supported_ops = "".join(["(" + op + ")" for op in
                                     SearchUtils.VALID_REGISTERED_MODEL_SEARCH_COMPARATORS])
            sample_query = f"name {supported_ops} "<model_name>""

After Change


            conditions = []
        elif len(parsed_filter) == 1:
            filter_dict = parsed_filter[0]
            comparator = filter_dict["comparator"].upper()
            if comparator not in \
                    SearchUtils.VALID_REGISTERED_MODEL_SEARCH_COMPARATORS:
                raise MlflowException("Search registered models filter expression only "
                                      "supports the equality(=) comparator, case-sensitive"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mlflow/mlflow
Commit Name: df01841775f497784c0be4fa6dbbcf93efda05af
Time: 2020-06-19
Author: 52183359+ankitmathur-db@users.noreply.github.com
File Name: mlflow/store/model_registry/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: search_registered_models


Project Name: google/deepvariant
Commit Name: e9c18d8623eeea14ec5fcb425cbf5d2fd77102dc
Time: 2018-03-07
Author: mdepristo@google.com
File Name: deepvariant/make_examples.py
Class Name:
Method Name: default_options


Project Name: oddt/oddt
Commit Name: 86698c801848975de9a21fb17093e045b6271ea3
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol