def flatten_applications(series):
    for row in series:
        if 'data' in row:
            new = {}
            for app, versions in row['data'].items():
                app = amo.APP_GUIDS.get(app)
                if not app:
                    continue
                # unicode() to decode the gettext proxy.
                appname = unicode(app.pretty)
                for ver, count in versions.items():
                    key = ' '.join([appname, ver])
                    new[key] = count
            row['data'] = new
        yield row
Initialize Raspberry Pi camera component.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/stats/views.py/flatten_applications--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/camera/rpi_camera.py/RaspberryCamera.__init__