(self, metadata: Dict)
return total_size <= self.max_package_size
Return False for projects with metadata indicating
        total file sizes greater than threshold.
Return False for projects with metadata indicating
        total file sizes greater than threshold.
Return False for projects with metadata indicating total file sizes greater than threshold .
def filter(self, metadata: Dict) -> bool:
        """
        Return False for projects with metadata indicating
        total file sizes greater than threshold.
        """
        if self.max_package_size <= 0:
            return True

        if self.allowlist_package_names and not self.check_match(
            name=metadata["info"]["name"]
        ):
            return True

        total_size = 0
        for release in metadata["releases"].values():
            for file in release:
                total_size += file["size"]

        return total_size <= self.max_package_size
def filter ( self , metadata : Dict ) -> bool : if self . max_package_size <= 0 : return True if self . allowlist_package_names and not self . check_match ( name = metadata [ "info" ] [ "name" ] ) : return True total_size = 0 for release in metadata [ "releases" ] . values ( ) : for file in release : total_size += file [ "size" ] return total_size <= self . max_package_size