def apply(self, input_data, fields):

        # for missing operators
        if input_data.get(self.field) is None:
            # text and item fields will treat missing values by following the
            # doesn't contain branch
            if self.term is None:
                return self.missing or (
                    self.operator == '=' and self.value is None)
        elif self.operator == '!=' and self.value is None:
            return True

        if self.term is not None:
            if fields[self.field]['optype'] == 'text':
                all_forms = fields[self.field]['summary'].get('term_forms', {})
                term_forms = all_forms.get(self.term, [])
                terms = [self.term]
                terms.extend(term_forms)
                options = fields[self.field]['term_analysis']
                return apply(OPERATOR[self.operator],
                             [term_matches(input_data.get(self.field, ""),
                                           terms, options),
                              self.value])
            else:
                # new items optype
                options = fields[self.field]['item_analysis']
                return apply(OPERATOR[self.operator],
                             [item_matches(input_data.get(self.field, ""),
                                           self.term, options),
                              self.value])
        if self.operator == "in":
            return apply(OPERATOR[self.operator],
                         [self.value,
                          input_data[self.field]])
        return apply(OPERATOR[self.operator],
                     [input_data[self.field],
                      self.value])
An unexpected error occurred trying to process C{filename}.
dataset/ETHPy150Open bigmlcom/python/bigml/predicate.py/Predicate.apply--crossover with--dataset/ETHPy150Open JT5D/Alfred-Popclip-Sublime/Sublime Text 2/SublimeLinter/sublimelinter/modules/libs/pyflakes/reporter.py/Reporter.unexpectedError