def __init__(self, disabled=lambda context: False, default_rules=True):
        """
        Creates a new Rebulk object.
        :param disabled: if True, this pattern is disabled. Can also be a function(context).
        :type disabled: bool|function
        :param default_rules: use default rules
        :type default_rules:
        :return:
        :rtype:
        """
        if not callable(disabled):
            self.disabled = lambda context: disabled
        else:
            self.disabled = disabled
        self._patterns = []
        self._rules = Rules()
        if default_rules:
            self.rules(ConflictSolver, PrivateRemover)
        self._defaults = {}
        self._regex_defaults = {}
        self._string_defaults = {}
        self._functional_defaults = {}
        self._chain_defaults = {}
        self._rebulks = []
def __init__ ( self , disabled = lambda context : False , default_rules = True ) : if not callable ( disabled ) : self . disabled = lambda context : disabled else : self . disabled = disabled self . _patterns = [ ] self . _rules = Rules ( ) if default_rules : self . rules ( ConflictSolver , PrivateRemover ) self . _defaults = { } self . _regex_defaults = { } self . _string_defaults = { } self . _functional_defaults = { } self . _chain_defaults = { } self . _rebulks = [ ]
Creates a new Rebulk object.
        :param disabled: if True, this pattern is disabled. Can also be a function(context).
        :type disabled: bool|function
        :param default_rules: use default rules
        :type default_rules:
        :return:
        :rtype: