

def get_code_element(self, scode_reference, code_elements, field_name, fqn_container, log):
    log.reset_variables()
    return_code_element = None
    if (code_elements is None):
        code_elements = []
    potentials = list(code_elements)
    size = len(code_elements)
    filter_results = []
    for afilter in self.field_filters:
        finput = filters.FilterInput(scode_reference, potentials, field_name, log, fqn_container, None, filter_results)
        result = afilter.filter(finput)
        potentials = result.potentials
        filter_results.append(result)
    log.custom_filtered = filters.custom_filtered(filter_results)
    potentials_size = len(potentials)
    if (potentials_size == 1):
        return_code_element = potentials[0]
    elif (filter_results > 1):
        return_code_element = potentials[0]
        log.arbitrary = True
    log.log_field(field_name, fqn_container, scode_reference, return_code_element, potentials, size, filter_results, code_elements)
    return (return_code_element, potentials)

dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/codebase/linker/java_linkers.py JavaFieldLinker.get_code_element/VarMisuse@154/221 `potentials_size`->`filter_results`