<s> from django . core . urlresolvers import reverse <EOL> from socialregistration . contrib . github . client import Github <EOL> from socialregistration . contrib . github . models import GithubProfile <EOL> from socialregistration . views import OAuthRedirect , OAuthCallback , SetupCallback <EOL> class GithubRedirect ( OAuthRedirect ) : <EOL> client = Github <EOL> template_name = '<STR_LIT>' <EOL> class GithubCallback ( OAuthCallback ) : <EOL> client = Github <EOL> template_name = '<STR_LIT>' <EOL> def get_redirect ( self ) : <EOL> return reverse ( '<STR_LIT>' ) <EOL> class GithubSetup ( SetupCallback ) : <EOL> client = Github <EOL> profile = GithubProfile <EOL> template_name = '<STR_LIT>' <EOL> def get_lookup_kwargs ( self , request , client ) : <EOL> return { '<STR_LIT>' : client . get_user_info ( ) [ '<STR_LIT>' ] } </s>
