

def get_diff_operations(a, b):
    line_length = 80
    operations = []
    a_words = [a[i:(i + line_length)] for i in range(0, len(a), line_length)]
    b_words = [b[i:(i + line_length)] for i in range(0, len(b), line_length)]
    sequence_matcher = difflib.SequenceMatcher(None, a_words, b_words)
    for opcode in sequence_matcher.get_opcodes():
        (operation, start_a, end_a, start_b, end_b) = opcode
        deleted = ''.join(a_words[start_a:end_a])
        inserted = ''.join(b_words[start_b:end_b])
        operations.append({
            'operation': operation,
            'deleted': deleted,
            'inserted': b,
        })
    return operations

dataset/ETHPy150Open dominno/django-moderation/moderation/diff.py get_diff_operations/VarMisuse@163/220 `inserted`->`b`