def fillFields(self, fields):
        """ Fill each field in the template with the values in fields.
        If the the fuzzer is active, the content for the new fields
        is fuzzed. If no content for the new fields is given, a random
        value is used to feed the fuzzing primitives.
        """

        fuzz = None
        if self.fuzzer.tracker in self.ID:
            print self.fuzzer.tracker
            if self.fuzzer.interactive:
                while fuzz is None:
                    inp = raw_input('Fuzz template {}? [y/n]: '.format(self.ID))
                    if inp == 'y':
                        fuzz = True
                    elif inp == 'n':
                        fuzz = False
            else:
                fuzz = True
            if fuzz:
                self.new_fields = fields
                ret = self.fuzzer.fuzz_template(self)

        if not fuzz:
            ret = self.content[:]
            for (k, v) in fields.iteritems():
                try:
                    ret[self.fields[k]] = v
                except IndexError:
                    print "Warning: trying to assign value to non-existing field"
                    pass
        return ret
dataset/ETHPy150Open hgascon/pulsar/pulsar/core/lens.py/Template.fillFields/swapped operands of `in`