def LF_page_not_match(c):
    args = c.get_contexts()
    if (len(args) != 2):
        raise NotImplementedError('Only handles binary candidates currently')
    (organic, figure) = args
    if ((abs((max(organic.sentence.page) - figure.page)) > 1) or (abs((min(organic.sentence.page) - figure.page)) > 1)):
        return (- 1)
    else:
        return 0
def LF_page_not_match(c):
    args = c.get_contexts()
    if (len(args) != 2):
        raise NotImplementedError('Only handles binary candidates currently')
    (organic, figure) = args
    if ((abs((max(organic.sentence.page) - figure.page)) > 1) or (abs((min(organic.sentence.page) - figure.page)) > 1)):
        return (- 1)
    else:
        return 0