<s> from __future__ import unicode_literals <EOL> from reviewboard . accounts . backends import get_enabled_auth_backends <EOL> from reviewboard . accounts . models import Profile <EOL> def auth_backends ( request ) : <EOL> """<STR_LIT>""" <EOL> return { <EOL> '<STR_LIT>' : get_enabled_auth_backends ( ) , <EOL> } <EOL> def profile ( request ) : <EOL> """<STR_LIT>""" <EOL> if request . user . is_authenticated ( ) : <EOL> profile = Profile . objects . get_or_create ( user = request . user ) [ <NUM_LIT:0> ] <EOL> else : <EOL> profile = None <EOL> return { <EOL> '<STR_LIT>' : profile , <EOL> } </s>
