def candidate_filter(c):
    (organic, figure) = c
    if same_file(organic, figure):
        if (mentionsFig(organic, figure) or mentionsOrg(figure, organic)):
            return True
def candidate_filter(c):
    (organic, figure) = c
    if same_file(organic, figure):
        if (mentionsFig(organic, figure) or mentionsOrg(figure, organic)):
            return True