# Path: honeybadger/plugins.py
# class Plugin(object):
# class PluginManager(object):
#     def __init__(self, name):
#     def supports(self, config, context):
#     def generate_payload(self, config, context):
#     def __init__(self):
#     def register(self, plugin):
#     def generate_payload(self, default_payload, config=None, context=None):


import sys
import traceback
import os
import logging
        import psutil
from six.moves import range
from six.moves import zip
from io import open
from datetime import datetime
from .version import __version__
from .plugins import default_plugin_manager
    }
    

def stats_payload():
    try:
    except ImportError:
        return {}
    else:
        s = psutil.virtual_memory()
        loadavg = psutil.getloadavg()

        free = float(s.free) / 1048576.0
        buffers = hasattr(s, 'buffers') and float(s.buffers) / 1048576.0 or 0.0
        cached = hasattr(s, 'cached') and float(s.cached) / 1048576.0 or 0.0
        total_free = free + buffers + cached
        payload = {}

        payload['mem'] = {
            'total': float(s.total) / 1048576.0, # bytes -> megabytes
            'free': free,
            'buffers': buffers,
            'cached': cached,
            'total_free': total_free
        }

        payload['load'] = dict(zip(('one', 'five', 'fifteen'), loadavg))

        return payload

def create_payload(exception, exc_traceback=None, config=None, context=None):

# Path: honeybadger/plugins.py
# class Plugin(object):
# class PluginManager(object):
#     def __init__(self, name):
#     def supports(self, config, context):
#     def generate_payload(self, config, context):
#     def __init__(self):
#     def register(self, plugin):
#     def generate_payload(self, default_payload, config=None, context=None):


# Path: honeybadger/payload.py
import sys
import traceback
import os
import logging
        import psutil
from six.moves import range
from six.moves import zip
from io import open
from datetime import datetime
from .version import __version__
from .plugins import default_plugin_manager

    }
    

def stats_payload():
    try:
    except ImportError:
        return {}
    else:
        s = psutil.virtual_memory()
        loadavg = psutil.getloadavg()

        free = float(s.free) / 1048576.0
        buffers = hasattr(s, 'buffers') and float(s.buffers) / 1048576.0 or 0.0
        cached = hasattr(s, 'cached') and float(s.cached) / 1048576.0 or 0.0
        total_free = free + buffers + cached
        payload = {}

        payload['mem'] = {
            'total': float(s.total) / 1048576.0, # bytes -> megabytes
            'free': free,
            'buffers': buffers,
            'cached': cached,
            'total_free': total_free
        }

        payload['load'] = dict(zip(('one', 'five', 'fifteen'), loadavg))

        return payload

def create_payload(exception, exc_traceback=None, config=None, context=None):

    if exc_traceback is None: