old_contents: 
  """
  sentry.management.commands.send_fake_data
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  :copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details.
  :license: BSD, see LICENSE for more details.
  """
  import itertools
  import random
  import time
  
  from django.core.management.base import BaseCommand
  
  
  def funcs():
      exceptions = itertools.cycle([SyntaxError('foo must come before bar'), ValueError('baz is not a valid choice'), TypeError('NoneType cannot be coerced to bar')])
      loggers = itertools.cycle(['root', 'foo', 'foo.bar'])
  
      # def query(client):
      #     duration = random.randint(0, 10000) / 1000.0
      #     return client.capture('Query', query=queries.next(), engine=engine.next(), time_spent=duration, data={'logger': loggers.next(), 'site': 'sql'})
  
      def exception(client):
          try:
              raise exceptions.next()
          except Exception:
              return client.capture('Exception', data={'logger': loggers.next(), 'site': 'web'})
  
      return [exception]
  
  
  class Command(BaseCommand):
      help = 'Performs any pending database migrations and upgrades'
  
      def handle(self, **options):
          from raven.contrib.django.models import get_client
  
          client = get_client()
          functions = funcs()
  
          s = time.time()
          r = 0
          try:
              while True:
                  random.choice(functions)(client)
                  r += 1
          except KeyboardInterrupt:
              pass
          finally:
              total_time = time.time() - s
              print '%d requests serviced in %.3fs' % (r, total_time)
              avg = total_time / r
              print 'avg of %.3fs/req, %d req/s' % (avg, 1 / avg)
  
new_contents: 
  """
  sentry.management.commands.send_fake_data
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  :copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details.
  :license: BSD, see LICENSE for more details.
  """
  import itertools
  import random
  import time
  
  from django.core.management.base import BaseCommand
  
  
  def funcs():
      exceptions = itertools.cycle([SyntaxError('foo must come before bar'), ValueError('baz is not a valid choice'), TypeError('NoneType cannot be coerced to bar')])
      loggers = itertools.cycle(['root', 'foo', 'foo.bar'])
      emails = itertools.cycle(['foo@example.com', 'bar@example.com', 'baz@example.com'])
  
      # def query(client):
      #     duration = random.randint(0, 10000) / 1000.0
      #     return client.capture('Query', query=queries.next(), engine=engine.next(), time_spent=duration, data={'logger': loggers.next(), 'site': 'sql'})
  
      def exception(client):
          try:
              raise exceptions.next()
          except Exception:
              email = emails.next()
              return client.capture('Exception', data={
                  'logger': loggers.next(),
                  'site': 'web',
                  'sentry.interfaces.User': {
                      'id': email,
                      'email': email,
                  }
              })
  
      return [exception]
  
  
  class Command(BaseCommand):
      help = 'Performs any pending database migrations and upgrades'
  
      def handle(self, **options):
          from raven.contrib.django.models import get_client
  
          client = get_client()
          functions = funcs()
  
          s = time.time()
          r = 0
          try:
              while True:
                  random.choice(functions)(client)
                  r += 1
          except KeyboardInterrupt:
              pass
          finally:
              total_time = time.time() - s
              print '%d requests serviced in %.3fs' % (r, total_time)
              avg = total_time / r
              print 'avg of %.3fs/req, %d req/s' % (avg, 1 / avg)
  
subject: Add user data to send_fake_data