<s> from django . core . urlresolvers import reverse <EOL> from sentry . utils . http import absolute_uri <EOL> from . base import Problem , StatusCheck <EOL> class WarningStatusCheck ( StatusCheck ) : <EOL> def __init__ ( self , warning_set ) : <EOL> self . __warning_set = warning_set <EOL> def check ( self ) : <EOL> if self . __warning_set : <EOL> return [ <EOL> Problem ( <EOL> '<STR_LIT>' . format ( <EOL> '<STR_LIT>' if len ( self . __warning_set ) > <NUM_LIT:1> else '<STR_LIT>' , <EOL> len ( self . __warning_set ) , <EOL> '<STR_LIT>' if len ( self . __warning_set ) > <NUM_LIT:1> else '<STR_LIT>' , <EOL> ) , <EOL> severity = Problem . SEVERITY_WARNING , <EOL> url = absolute_uri ( reverse ( '<STR_LIT>' ) ) , <EOL> ) , <EOL> ] <EOL> else : <EOL> return [ ] </s>
