def _get_empty_lines(text):
    """Get number of empty lines before and after code."""
    before = len(text.lstrip('\n')) - len(text)
    after = len(text) - len(text.strip('\n')) - before
    return before, after
dataset/ETHPy150Open spatialaudio/nbsphinx/nbsphinx.py/_get_empty_lines/swapped operands of `-`