def __init__(self, model_cls, visualization_elements, name="Mesa Model",
                 *args, **kwargs):
        # Prep visualization elements:
        self.visualization_elements = visualization_elements
        self.package_includes = set()
        self.local_includes = set()
        self.js_code = []
        for element in self.visualization_elements:
            for include_file in element.package_includes:
                self.package_includes.add(include_file)
            for include_file in element.local_includes:
                self.local_includes.add(include_file)
            self.js_code.append(element.js_code)

        # Initializing the model
        self.model_name = name
        self.model_cls = model_cls

        self.model_args = args
        self.model_kwargs = kwargs
        self.reset_model()

        # Initializing the application itself:
        super().__init__(self.handlers, **self.settings)
Returns all messages that were received by the given user and are not
dataset/ETHPy150Open projectmesa/mesa/mesa/visualization/ModularVisualization.py/ModularServer.__init__--crossover with--dataset/ETHPy150Open amarandon/smeuhsocial/apps/messages/models.py/MessageManager.inbox_for