<s> import bugsnag <EOL> import markdown <EOL> from django . http import HttpResponse <EOL> def index ( request ) : <EOL> with open ( '<STR_LIT>' ) as fp : <EOL> return HttpResponse ( markdown . markdown ( fp . read ( ) ) ) <EOL> def crash ( request ) : <EOL> raise Exception ( "<STR_LIT>" + <EOL> "<STR_LIT>" ) <EOL> def callback ( notification ) : <EOL> if notification . context == "<STR_LIT>" : <EOL> tab = { <EOL> "<STR_LIT:message>" : "<STR_LIT>" , <EOL> "<STR_LIT:code>" : <NUM_LIT:200> <EOL> } <EOL> notification . add_tab ( "<STR_LIT>" , tab ) <EOL> def crash_with_callback ( request ) : <EOL> bugsnag . before_notify ( callback ) <EOL> raise Exception ( <EOL> "<STR_LIT>" + <EOL> "<STR_LIT>" + <EOL> "<STR_LIT>" <EOL> ) <EOL> def notify ( request ) : <EOL> msg = "<STR_LIT>" <EOL> bugsnag . notify ( Exception ( msg ) ) ; <EOL> return HttpResponse ( <EOL> "<STR_LIT>" + <EOL> "<STR_LIT>" ) <EOL> def notify_meta ( request ) : <EOL> bugsnag . notify ( <EOL> Exception ( "<STR_LIT>" ) , <EOL> Diagnostics = { "<STR_LIT:code>" : <NUM_LIT:200> , "<STR_LIT:message>" : "<STR_LIT>" } , <EOL> User = { "<STR_LIT:email>" : "<STR_LIT>" , "<STR_LIT:username>" : "<STR_LIT>" } ) <EOL> return HttpResponse ( <EOL> "<STR_LIT>" + <EOL> "<STR_LIT>" + <EOL> "<STR_LIT>" ) <EOL> def context ( request ) : <EOL> bugsnag . notify ( <EOL> Exception ( "<STR_LIT>" ) , <EOL> context = "<STR_LIT>" ) <EOL> return HttpResponse ( <EOL> "<STR_LIT>" ) <EOL> def severity ( request ) : <EOL> bugsnag . notify ( <EOL> Exception ( "<STR_LIT>" ) , <EOL> severity = '<STR_LIT:info>' ) <EOL> return HttpResponse ( <EOL> "<STR_LIT>" + <EOL> "<STR_LIT>" ) </s>
