21a96fb80b034caf9a2cba97c88de746711d11e8,lore/models/base.py,Base,last_fitting,#Any#,180
Before Change
@classmethod
def last_fitting(cls):
if not os.path.exists(cls.local_path()):
return 0
fittings = [int(d) for d in os.listdir(cls.local_path()) if re.match(r"^\d+$", d)]
if not fittings:
return 0
After Change
@classmethod
def last_fitting(cls):
return lore.metadata.Fitting.last(model=cls.__module__ + "." + cls.__name__)
def fitting_path(self):
return join(self.local_path(), str(self.fitting.id))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: instacart/lore
Commit Name: 21a96fb80b034caf9a2cba97c88de746711d11e8
Time: 2018-12-07
Author: gkrishnan.gt@gmail.com
File Name: lore/models/base.py
Class Name: Base
Method Name: last_fitting
Project Name: polyaxon/polyaxon
Commit Name: 8d0adba43fde7d042161562660410342d7808b41
Time: 2019-06-15
Author: mouradmourafiq@gmail.com
File Name: polyaxon/registry/registry_context.py
Class Name:
Method Name: get_registry_context
Project Name: polyaxon/polyaxon
Commit Name: f79c98d83b424892389220bcbb158ea8cca32d18
Time: 2019-07-03
Author: mouradmourafiq@gmail.com
File Name: polyaxon/registry/registry_context.py
Class Name:
Method Name: get_registry_context