<commit_before>import json
from distutils.version import LooseVersion

import param
import bokeh
from bokeh.io import push_notebook, Document

if LooseVersion(bokeh.__version__) >= LooseVersion('0.11'):
    old_bokeh = False
    from bokeh.io import _CommsHandle
    from bokeh.util.notebook import get_comms
else:
    old_bokeh = True

from ..widgets import NdWidget, SelectionWidget, ScrubberWidget


class BokehWidget(NdWidget):

    css = param.String(default='bokehwidgets.css', doc="""
        Defines the local CSS file to be loaded for this widget.""")<commit_msg>Fixed import for old (<0.11) bokeh versions<commit_after>import json
from distutils.version import LooseVersion

import param
import bokeh
from bokeh.io import Document

if LooseVersion(bokeh.__version__) >= LooseVersion('0.11'):
    old_bokeh = False
    from bokeh.io import push_notebook, _CommsHandle
    from bokeh.util.notebook import get_comms
else:
    old_bokeh = True

from ..widgets import NdWidget, SelectionWidget, ScrubberWidget


class BokehWidget(NdWidget):

    css = param.String(default='bokehwidgets.css', doc="""
        Defines the local CSS file to be loaded for this widget.""")
{'fraction_non_alphanumeric': 0.08347529812606473, 'fraction_numerical': 0.007666098807495741, 'mean_word_length': 4.5424528301886795, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, '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': '4873733', 'n_tokens_mistral': 385, 'n_tokens_neox': 370, 'n_words': 111}