b7af1af76f3098e6047cbc63e063385a6073b857,polyaxon/query/service.py,QueryService,filter_queryset,#Any#Any#Any#Any#,15

Before Change


        if manager == ExperimentQueryManager.NAME:
            return ExperimentQueryManager.apply(query_spec=query_spec, queryset=queryset)
        if manager == ExperimentGroupQueryManager.NAME:
            return ExperimentGroupQueryManager.apply(query_spec=query_spec, queryset=queryset)
        if manager == BuildQueryManager.NAME:
            return BuildQueryManager.apply(query_spec=query_spec, queryset=queryset)
        if manager == JobQueryManager.NAME:
            return JobQueryManager.apply(query_spec=query_spec, queryset=queryset)

After Change


    @classmethod
    def filter_queryset(cls, manager, query_spec, queryset):
        if manager not in cls.MANAGER_MAPPING:
            raise QueryError("Manager `{}` was not configured".format(manager))
        return cls.MANAGER_MAPPING[manager].apply(query_spec=query_spec, queryset=queryset)

    @classmethod
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: polyaxon/polyaxon
Commit Name: b7af1af76f3098e6047cbc63e063385a6073b857
Time: 2018-11-15
Author: mouradmourafiq@gmail.com
File Name: polyaxon/query/service.py
Class Name: QueryService
Method Name: filter_queryset


Project Name: okfn-brasil/serenata-de-amor
Commit Name: f799eeaec115d17693f99c6e02d3bb0eac3feaa9
Time: 2016-11-09
Author: schwendler@gmail.com
File Name: src/search_suspect_places.py
Class Name:
Method Name:


Project Name: NifTK/NiftyNet
Commit Name: fe0950e68d35e29237d9d5ca82aabc8ff8a011ba
Time: 2017-07-25
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_driver.py
Class Name: ApplicationDriver
Method Name: _create_graph