def _clear_caches(self):
        self._brushes = {}
        self._formats = {}
Validate new data for the resource.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/frontend/qt/console/pygments_highlighter.py/PygmentsHighlighter._clear_caches--crossover with--dataset/ETHPy150Open wichert/rest_toolkit/src/rest_toolkit/abc.py/EditableResource.validate