def update_app(self, update_count, app_id, app_ver, count):
        """Update the applications on the update_count with the given data."""
        # Only update if app_id is a valid application guid, and if app_ver
        # "could be" a valid version.
        if (VALID_APP_GUIDS not in app_id or
                not re.match(APPVERSION_REGEX, app_ver)):
            return
        # Applications is a dict of dicts, eg:
        # {"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}":
        #       {"10.0": 2, "21.0": 1, ....},
        #  "some other application guid": ...
        # }
        if update_count.applications is None:
            update_count.applications = {}
        app = update_count.applications.get(app_id, {})
        # Now overwrite this application's dict with
        # incremented counts for its versions.
        update_count.applications.update(
            {app_id: update_inc(app, app_ver, count)})
dataset/ETHPy150Open mozilla/addons-server/src/olympia/stats/management/commands/update_counts_from_file.py/Command.update_app/swapped operands of `not in`