# Buggy code
def _useAttributes(self, attributes):
    if "avatar_url" in attributes:  # pragma no branch
        self._avatar_url = self._makeStringAttribute(attributes["avatar_url"])
    if "bio" in attributes:  # pragma no branch
        self._bio = self._makeStringAttribute(attributes["bio"])
    if "blog" in attributes:  # pragma no branch
        self._blog = self._makeStringAttribute(attributes["blog"])
    if "collaborators" in attributes:  # pragma no branch
        self._collaborators = self._makeIntAttribute(attributes["collaborators"])
    if "company" in attributes:  # pragma no branch
        self._company = self._makeStringAttribute(attributes["company"])
    if "contributions" in attributes:  # pragma no branch
        self._contributions = self._makeIntAttribute(attributes["contributions"])
    if "created_at" in attributes:  # pragma no branch
        self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
    if "disk_usage" in attributes:  # pragma no branch
        self._disk_usage = self._makeIntAttribute(attributes["disk_usage"])
    if "email" in attributes:  # pragma no branch
        self._email = self._makeStringAttribute(attributes["email"])
    if "events_url" in attributes:  # pragma no branch
        self._events_url = self._makeStringAttribute(attributes["events_url"])
    if "followers" in attributes:  # pragma no branch
        self._followers = self._makeIntAttribute(attributes["followers"])
    if "followers_url" in attributes:  # pragma no branch
        self._followers_url = self._makeStringAttribute(attributes["followers_url"])
    if "following" in attributes:  # pragma no branch
        self._following = self._makeIntAttribute(attributes["following"])
    if "following_url" in attributes:  # pragma no branch
        self._following_url = self._makeStringAttribute(attributes["following_url"])
    if "gists_url" in attributes:  # pragma no branch
        self._gists_url = self._makeStringAttribute(attributes["gists_url"])
    if "gravatar_id" in attributes:  # pragma no branch
        self._gravatar_id = self._makeStringAttribute(attributes["gravatar_id"])
    if "hireable" in attributes:  # pragma no branch
        self._hireable = self._makeBoolAttribute(attributes["hireable"])
    if "html_url" in attributes:  # pragma no branch
        self._html_url = self._makeStringAttribute(attributes["html_url"])
    if "id" in attributes:  # pragma no branch
        self._id = self._makeIntAttribute(attributes["id"])
    if "location" in attributes:  # pragma no branch
        self._location = self._makeStringAttribute(attributes["location"])
    if "login" in attributes:  # pragma no branch
        self._login = self._makeStringAttribute(attributes["login"])
    if "name" in attributes:  # pragma no branch
        self._name = self._makeStringAttribute(attributes["name"])
    if "organizations_url" in attributes:  # pragma no branch
        self._organizations_url = self._makeStringAttribute(
            attributes["organizations_url"]
        )
    if "owned_private_repos" in attributes:  # pragma no branch
        self._owned_private_repos = self._makeIntAttribute(
            attributes["owned_private_repos"]
        )
    if "permissions" in attributes:  # pragma no branch
        self._permissions = self._makeClassAttribute(
            github.Permissions.Permissions, attributes["permissions"]
        )
    if "plan" in attributes:  # pragma no branch
        self._plan = self._makeClassAttribute(github.Plan.Plan, attributes["plan"])
    if "private_gists" in attributes:  # pragma no branch
        self._private_gists = self._makeIntAttribute(attributes["private_gists"])
    if "public_gists" in attributes:  # pragma no branch
        self._public_gists = self._makeIntAttribute(attributes["public_gists"])
    if "public_repos" in attributes:  # pragma no branch
        self._public_repos = self._makeIntAttribute(attributes["public_repos"])
    if "received_events_url" in attributes:  # pragma no branch
        self._received_events_url = self._makeStringAttribute(
            attributes["received_events_url"]
        )
    if "repos_url" in attributes:  # pragma no branch
        self._repos_url = self._makeStringAttribute(attributes["repos_url"])
    if "starred_url" in attributes:  # pragma no branch
        self._starred_url = self._makeStringAttribute(attributes["starred_url"])
    if "subscriptions_url" in attributes:  # pragma no branch
        self._subscriptions_url = self._makeStringAttribute(
            attributes["subscriptions_url"]
        )
    if "total_private_repos" in attributes:  # pragma no branch
        self._total_private_repos = self._makeIntAttribute(
            attributes["total_private_repos"]
        )
    if "type" in attributes:  # pragma no branch
        self._type = self._makeStringAttribute(attributes["type"])
    if "updated_at" in attributes:  # pragma no branch
        self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"])
    if "url" in attributes:  # pragma no branch
        self._url = self._makeStringAttribute(attributes["url"])


# Traceback (AttributeError)
Traceback (most recent call last):
File "protected_test.py", line 27, in <module>
print(collab.site_admin)
AttributeError: 'NamedUser' object has no attribute 'site_admin'

# Fixed code
def _useAttributes(self, attributes):
    if "avatar_url" in attributes:  # pragma no branch
        self._avatar_url = self._makeStringAttribute(attributes["avatar_url"])
    if "bio" in attributes:  # pragma no branch
        self._bio = self._makeStringAttribute(attributes["bio"])
    if "blog" in attributes:  # pragma no branch
        self._blog = self._makeStringAttribute(attributes["blog"])
    if "collaborators" in attributes:  # pragma no branch
        self._collaborators = self._makeIntAttribute(attributes["collaborators"])
    if "company" in attributes:  # pragma no branch
        self._company = self._makeStringAttribute(attributes["company"])
    if "contributions" in attributes:  # pragma no branch
        self._contributions = self._makeIntAttribute(attributes["contributions"])
    if "created_at" in attributes:  # pragma no branch
        self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
    if "disk_usage" in attributes:  # pragma no branch
        self._disk_usage = self._makeIntAttribute(attributes["disk_usage"])
    if "email" in attributes:  # pragma no branch
        self._email = self._makeStringAttribute(attributes["email"])
    if "events_url" in attributes:  # pragma no branch
        self._events_url = self._makeStringAttribute(attributes["events_url"])
    if "followers" in attributes:  # pragma no branch
        self._followers = self._makeIntAttribute(attributes["followers"])
    if "followers_url" in attributes:  # pragma no branch
        self._followers_url = self._makeStringAttribute(attributes["followers_url"])
    if "following" in attributes:  # pragma no branch
        self._following = self._makeIntAttribute(attributes["following"])
    if "following_url" in attributes:  # pragma no branch
        self._following_url = self._makeStringAttribute(attributes["following_url"])
    if "gists_url" in attributes:  # pragma no branch
        self._gists_url = self._makeStringAttribute(attributes["gists_url"])
    if "gravatar_id" in attributes:  # pragma no branch
        self._gravatar_id = self._makeStringAttribute(attributes["gravatar_id"])
    if "hireable" in attributes:  # pragma no branch
        self._hireable = self._makeBoolAttribute(attributes["hireable"])
    if "html_url" in attributes:  # pragma no branch
        self._html_url = self._makeStringAttribute(attributes["html_url"])
    if "id" in attributes:  # pragma no branch
        self._id = self._makeIntAttribute(attributes["id"])
    if "location" in attributes:  # pragma no branch
        self._location = self._makeStringAttribute(attributes["location"])
    if "login" in attributes:  # pragma no branch
        self._login = self._makeStringAttribute(attributes["login"])
    if "name" in attributes:  # pragma no branch
        self._name = self._makeStringAttribute(attributes["name"])
    if "organizations_url" in attributes:  # pragma no branch
        self._organizations_url = self._makeStringAttribute(
            attributes["organizations_url"]
        )
    if "owned_private_repos" in attributes:  # pragma no branch
        self._owned_private_repos = self._makeIntAttribute(
            attributes["owned_private_repos"]
        )
    if "permissions" in attributes:  # pragma no branch
        self._permissions = self._makeClassAttribute(
            github.Permissions.Permissions, attributes["permissions"]
        )
    if "plan" in attributes:  # pragma no branch
        self._plan = self._makeClassAttribute(github.Plan.Plan, attributes["plan"])
    if "private_gists" in attributes:  # pragma no branch
        self._private_gists = self._makeIntAttribute(attributes["private_gists"])
    if "public_gists" in attributes:  # pragma no branch
        self._public_gists = self._makeIntAttribute(attributes["public_gists"])
    if "public_repos" in attributes:  # pragma no branch
        self._public_repos = self._makeIntAttribute(attributes["public_repos"])
    if "received_events_url" in attributes:  # pragma no branch
        self._received_events_url = self._makeStringAttribute(
            attributes["received_events_url"]
        )
    if "repos_url" in attributes:  # pragma no branch
        self._repos_url = self._makeStringAttribute(attributes["repos_url"])
    if "site_admin" in attributes:  # pragma no branch
        self._site_admin = self._makeBoolAttribute(attributes["site_admin"])
    if "starred_url" in attributes:  # pragma no branch
        self._starred_url = self._makeStringAttribute(attributes["starred_url"])
    if "subscriptions_url" in attributes:  # pragma no branch
        self._subscriptions_url = self._makeStringAttribute(
            attributes["subscriptions_url"]
        )
    if "total_private_repos" in attributes:  # pragma no branch
        self._total_private_repos = self._makeIntAttribute(
            attributes["total_private_repos"]
        )
    if "type" in attributes:  # pragma no branch
        self._type = self._makeStringAttribute(attributes["type"])
    if "updated_at" in attributes:  # pragma no branch
        self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"])
    if "url" in attributes:  # pragma no branch
        self._url = self._makeStringAttribute(attributes["url"])