93587d8a12a617f929062fac1d643bac6a6e1d8d,ann_benchmarks/algorithms/nmslib.py,NmslibReuseIndex,__init__,#NmslibReuseIndex#Any#Any#Any#Any#,13

Before Change


        self._index_param = NmslibReuseIndex.encode(index_param)
        if query_param != False:
            self._query_param = NmslibReuseIndex.encode(query_param)
            self.name = "Nmslib(method_name=%s, index_param=%s, query_param=%s)" % (
                self._method_name, self._index_param, self._query_param)
        else:
            self._query_param = None
            self.name = "Nmslib(method_name=%s, index_param=%s)" % (
                self._method_name, self._index_param)

After Change


        self._index_param = NmslibReuseIndex.encode(index_param)
        if query_param is not False:
            self._query_param = NmslibReuseIndex.encode(query_param)
            self.name = ("Nmslib(method_name={}, index_param={}, "
                         "query_param={})".format(self._method_name,
                                                  self._index_param,
                                                  self._query_param))
        else:
            self._query_param = None
            self.name = "Nmslib(method_name=%s, index_param=%s)" % (
                self._method_name, self._index_param)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 9

Instances


Project Name: erikbern/ann-benchmarks
Commit Name: 93587d8a12a617f929062fac1d643bac6a6e1d8d
Time: 2019-04-25
Author: m.ali.jamaoui@gmail.com
File Name: ann_benchmarks/algorithms/nmslib.py
Class Name: NmslibReuseIndex
Method Name: __init__


Project Name: chainer/chainer
Commit Name: 5928909043e92c34667253e97e018a767902dace
Time: 2019-07-04
Author: ktns.87@gmail.com
File Name: chainer/training/triggers/interval_trigger.py
Class Name: IntervalTrigger
Method Name: __str__


Project Name: CellProfiler/CellProfiler
Commit Name: 24a70532f4083dae455f0d38fbb8199e1f600053
Time: 2017-03-06
Author: mcquin@broadinstitute.org
File Name: cellprofiler/modules/relateobjects.py
Class Name: RelateObjects
Method Name: validate_module


Project Name: pantsbuild/pants
Commit Name: edcd459b9cf96c3e5ffc8d6965df5f2e731b3b84
Time: 2014-10-30
Author: tinystatemachine@gmail.com
File Name: src/python/pants/cache/restful_artifact_cache.py
Class Name: RESTfulArtifactCache
Method Name: _remote_path_for_key


Project Name: home-assistant/home-assistant
Commit Name: 10a2ecd1d61ae3d2355301096ba096dcf3e065ab
Time: 2018-08-14
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/sensor/worldtidesinfo.py
Class Name: WorldTidesInfoSensor
Method Name: update