<commit_before>"""
This is a simple test plugin to demonstrate how one can use the
tvtk.plugin.scene and tvtk.plugin.browser plugins.

Plugin definitions for the Test plugin.

"""
# Author: <NAME> <<EMAIL>>
# Copyright (c) 2005, Enthought, Inc.
# License: BSD Style.


# Standard library imports.
from os import getcwd
from os.path import abspath, dirname, join

# Enthought library imports.
import enthought
from enthought import envisage
from enthought import tvtk

enthought_path = abspath(dirname(enthought.__file__))
envisage_path = abspath(dirname(envisage.__file__))

# tvtk path.
tvtk_path = abspath(dirname(tvtk.__file__))

# My path.
test_path = abspath(getcwd())

PLUGIN_DEFINITIONS = [
    # Envisage plugins.
    join(envisage_path, 'core/core_plugin_definition.py'),
    join(envisage_path, 'resource/resource_plugin_definition.py'),
    join(envisage_path, 'action/action_plugin_definition.py'),
    join(envisage_path, 'workbench/workbench_plugin_definition.py'),
    join(envisage_path, 'workbench/action/action_plugin_definition.py'),
    join(envisage_path, 'workbench/preference/preference_plugin_definition.py'),
    # Enthought plugins.
    join(enthought_path,
         'plugins/python_shell/python_shell_plugin_definition.py'),

    join(tvtk_path, 'plugins/scene/scene_plugin_definition.py'),
    join(tvtk_path, 'plugins/scene/scene_ui_plugin_definition.py'),
    join(tvtk_path, 'plugins/browser/browser_plugin_definition.py'),
    # Application plugins.
    join(test_path, 'test_plugin_definition.py'),
   ]<commit_msg>BUG: The path for the python shell plugin was not working with the egg based install.  This example should now work.<commit_after>"""
This is a simple test plugin to demonstrate how one can use the
tvtk.plugin.scene and tvtk.plugin.browser plugins.

Plugin definitions for the Test plugin.

"""
# Author: <NAME> <<EMAIL>>
# Copyright (c) 2005, Enthought, Inc.
# License: BSD Style.


# Standard library imports.
from os import getcwd
from os.path import abspath, dirname, join

# Enthought library imports.
import enthought
from enthought import envisage
from enthought import tvtk
import enthought.plugins.python_shell as python_shell

enthought_path = abspath(dirname(enthought.__file__))
envisage_path = abspath(dirname(envisage.__file__))
python_shell_path = abspath(dirname(python_shell.__file__))

# tvtk path.
tvtk_path = abspath(dirname(tvtk.__file__))

# My path.
test_path = abspath(getcwd())

PLUGIN_DEFINITIONS = [
    # Envisage plugins.
    join(envisage_path, 'core/core_plugin_definition.py'),
    join(envisage_path, 'resource/resource_plugin_definition.py'),
    join(envisage_path, 'action/action_plugin_definition.py'),
    join(envisage_path, 'workbench/workbench_plugin_definition.py'),
    join(envisage_path, 'workbench/action/action_plugin_definition.py'),
    join(envisage_path, 'workbench/preference/preference_plugin_definition.py'),
    # Enthought plugins.
    join(python_shell_path,
         'python_shell_plugin_definition.py'),

    join(tvtk_path, 'plugins/scene/scene_plugin_definition.py'),
    join(tvtk_path, 'plugins/scene/scene_ui_plugin_definition.py'),
    join(tvtk_path, 'plugins/browser/browser_plugin_definition.py'),
    # Application plugins.
    join(test_path, 'test_plugin_definition.py'),
   ]
{'fraction_non_alphanumeric': 0.1047040971168437, 'fraction_numerical': 0.0024279210925644916, 'mean_word_length': 5.362934362934363, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1993816', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1064, 'n_words': 230}