def get_userdata(self, code):
        try:
            session = self.get_auth_session(data={'code': code})
            d = session.get('user').json()
            email = self.get_verified_email(session)
            if not email:
                logger.error("No verified email found for this user {}".format(d['login']))
                return
            return dict(
                name=d["name"],
                email=email,
                username=d["login"],
                github=d["login"],
                service="GitHub")
        except KeyError, e:
            logger.error("failed to get user data from github. Error: %s",
                         str(e))
Tests partial aliases with correct requires.
dataset/ETHPy150Open anandology/broadgauge/broadgauge/oauth.py/GitHub.get_userdata--crossover with--dataset/ETHPy150Open google/closure-linter/closure_linter/closurizednamespacesinfo_test.py/ClosurizedNamespacesInfoTest.testScope_partialAliasRequires