<commit_before>#
"""
Main Controller for the app
"""

import glob
import os
import imp
import traceback
import gtk
import cairo

from simulator.sim_manager import SimManager
from view.visualizer import MainFrame
from view.visualizations._network_view import NetworkView
from view.visualizations._visualization import registered_plots
from view.visualizations import *

# FIXME use this for now
import sample_networks.two_dimensional_rep as example

class VisualizerController(object):
    """
    A controller
    """

    def __init__(self, sim_manager):
        self.sim_manager = sim_manager
        self.network_view = NetworkView(self)
        self.dt = 0.001

        self.registered = []
        self.plots = []
        self.load_visualization_files()

        # TODO - Hardcoding model for now
        self.load_model(example.model)

        self.main_frame = MainFrame(self.sim_manager, self)
        self.main_frame.show_plot(self.network_view.view.canvas)

    def init_view(self):
        pass<commit_msg>fix rename break<commit_after>#
"""
Main Controller for the app
"""

import glob
import os
import imp
import traceback
import gtk
import cairo

from simulator.sim_manager import SimManager
from view.visualizer import MainFrame
from view.visualizations.network_view import NetworkView
from view.visualizations.visualization import registered_plots
from view.visualizations import *

# FIXME use this for now
import sample_networks.two_dimensional_rep as example

class VisualizerController(object):
    """
    A controller
    """

    def __init__(self, sim_manager):
        self.sim_manager = sim_manager
        self.network_view = NetworkView(self)
        self.dt = 0.001

        self.registered = []
        self.plots = []
        self.load_visualization_files()

        # TODO - Hardcoding model for now
        self.load_model(example.model)

        self.main_frame = MainFrame(self.sim_manager, self)
        self.main_frame.show_plot(self.network_view.view.canvas)

    def init_view(self):
        pass
{'fraction_non_alphanumeric': 0.07371007371007371, 'fraction_numerical': 0.003931203931203931, 'mean_word_length': 3.359743040685225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3945902', 'n_tokens_mistral': 604, 'n_tokens_neox': 566, 'n_words': 151}