<commit_before>"""
Shim to maintain backwards compatibility with old IPython.html imports.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.

import sys
from warnings import warn

warn("The `IPython.html` package has been deprecated. "
     "You should import from `jupyter_notebook` instead. "
     "`IPython.html.widgets` has moved to `ipython_widgets`.")

from IPython.utils.shimmodule import ShimModule

sys.modules['IPython.html'] = ShimModule(
    src='IPython.html', mirror='jupyter_notebook')

sys.modules['IPython.html.widgets'] = ShimModule(
    src='IPython.html.widgets', mirror='ipython_widgets')

if __name__ == '__main__':
    from jupyter_notebook import notebookapp as app<commit_msg>shim widgets before shimming html<commit_after>"""
Shim to maintain backwards compatibility with old IPython.html imports.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.

import sys
from warnings import warn

warn("The `IPython.html` package has been deprecated. "
     "You should import from `jupyter_notebook` instead. "
     "`IPython.html.widgets` has moved to `ipython_widgets`.")

from IPython.utils.shimmodule import ShimModule

sys.modules['IPython.html.widgets'] = ShimModule(
    src='IPython.html.widgets', mirror='ipython_widgets')

sys.modules['IPython.html'] = ShimModule(
    src='IPython.html', mirror='jupyter_notebook')

if __name__ == '__main__':
    from jupyter_notebook import notebookapp as app
{'fraction_non_alphanumeric': 0.10704960835509138, 'fraction_numerical': 0.0, 'mean_word_length': 5.107569721115538, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2524905', 'n_tokens_mistral': 503, 'n_tokens_neox': 477, 'n_words': 139}