<commit_before>from pyramid.view import view_config
import colander
import deform

from phoenix.wizard.views import Wizard
from phoenix.catalog import wps_url

@colander.deferred
def deferred_widget(node, kw):
    process = kw.get('process', [])

    choices = []
    for data_input in process.dataInputs:
        if data_input.dataType == 'ComplexData':
            title = data_input.title
            abstract = getattr(data_input, 'abstract')
            mime_types = ', '.join([value.mimeType for value in data_input.supportedValues])
            description = "{0} - {1} ({2})".format(title, abstract, mime_types)<commit_msg>fixed missing abstract in wps process description<commit_after>from pyramid.view import view_config
import colander
import deform

from phoenix.wizard.views import Wizard
from phoenix.catalog import wps_url

@colander.deferred
def deferred_widget(node, kw):
    process = kw.get('process', [])

    choices = []
    for data_input in process.dataInputs:
        if data_input.dataType == 'ComplexData':
            title = data_input.title
            abstract = getattr(data_input, 'abstract', '')
            mime_types = ', '.join([value.mimeType for value in data_input.supportedValues])
            description = "{0} - {1} ({2})".format(title, abstract, mime_types)
{'fraction_non_alphanumeric': 0.10829493087557604, 'fraction_numerical': 0.004608294930875576, 'mean_word_length': 3.462328767123288, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5509946', 'n_tokens_mistral': 385, 'n_tokens_neox': 375, 'n_words': 99}