<commit_before>﻿# -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
from PyQt4.QtCore import QObject, pyqtSignal, pyqtSlot

from simulation_modules import SimulationException

class SimulationStateChange(object):
    """
    Object that is emitted when Simulator changes its state.
    This happens on:
        - Initialisation
        - Start of Simulation
        - Accomplishment of new progress step
        - Finish of Simulation
        - Abortion of Simulation
    """

    def __init__(self, **kwargs):
        assert "type" in kwargs.keys()
        for key, val in kwargs.iteritems():
            setattr(self, key, val)<commit_msg>pep8 corrections<commit_after>﻿# -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
from PyQt4.QtCore import QObject, pyqtSignal, pyqtSlot

from simulation_modules import SimulationException


class SimulationStateChange(object):
    """
    Object that is emitted when Simulator changes its state.
    This happens on:
        - Initialisation
        - Start of Simulation
        - Accomplishment of new progress step
        - Finish of Simulation
        - Abortion of Simulation
    """

    def __init__(self, **kwargs):
        assert "type" in kwargs.keys()
        for key, val in kwargs.iteritems():
            setattr(self, key, val)
{'fraction_non_alphanumeric': 0.07807807807807808, 'fraction_numerical': 0.0037537537537537537, 'mean_word_length': 2.713091922005571, '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': '2107081', 'n_tokens_mistral': 363, 'n_tokens_neox': 360, 'n_words': 130}