def infer(self, *, stats=False):
    "Infer package's attributes\n\n        Parameters:\n            stats? (bool): stream files completely and infer stats\n        "
    self.setdefault('profile', config.DEFAULT_PACKAGE_PROFILE)
    for resource in self.resources:
        resource.infer(stats=stats)
    if (len(self.resource_names) != len(set(self.resource_names))):
        seen_names = []
        for (index, name) in enumerate(self.resource_names):
            count = (seen_names.count(name) + 1)
            if (count > 1):
                self.resources[index].name = ('%s%s' % (name, count))
            seen_names.append(name)
Infer package's attributes

Parameters:
    stats? (bool): stream files completely and infer stats
def infer(self, *, stats=False):
    "Infer package's attributes\n\n        Parameters:\n            stats? (bool): stream files completely and infer stats\n        "
    self.setdefault('profile', config.DEFAULT_PACKAGE_PROFILE)
    for resource in self.resources:
        resource.infer(stats=stats)
    if (len(self.resource_names) != len(set(self.resource_names))):
        seen_names = []
        for (index, name) in enumerate(self.resource_names):
            count = (seen_names.count(name) + 1)
            if (count > 1):
                self.resources[index].name = ('%s%s' % (name, count))
            seen_names.append(name)