<commit_before>from __future__ import division

from PyQt4 import QtGui

from vistrails.gui.modules.source_configure import SourceConfigurationWidget


class ShellSourceConfigurationWidget(SourceConfigurationWidget):
    """Configuration widget for SubmitShellJob.

    Allows the user to edit a shell script that will be run on the server.
    """
    def __init__(self, module, controller, parent=None):
        SourceConfigurationWidget.__init__(self, module, controller,
                                           QtGui.QTextEdit,
                                           has_inputs=False, has_outputs=False,
                                           parent=parent)
<commit_msg>Use smart text editor in tej.SubmitShellJob<commit_after>from __future__ import division

from vistrails.gui.modules.source_configure import SourceConfigurationWidget
from vistrails.gui.modules.string_configure import TextEditor


class ShellSourceConfigurationWidget(SourceConfigurationWidget):
    """Configuration widget for SubmitShellJob.

    Allows the user to edit a shell script that will be run on the server.
    """
    def __init__(self, module, controller, parent=None):
        SourceConfigurationWidget.__init__(self, module, controller,
                                           TextEditor,
                                           has_inputs=False, has_outputs=False,
                                           parent=parent)

{'fraction_non_alphanumeric': 0.05377094972067039, 'fraction_numerical': 0.0006983240223463687, 'mean_word_length': 2.332558139534884, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2535447', 'n_tokens_mistral': 307, 'n_tokens_neox': 299, 'n_words': 95}