def _get_metadata(meta_str):
    match = re_metadata.match(meta_str)
    head_start, _, head_length, saved_start, _, saved_length = match.groups()
    return (int(head_start),
            int(head_length or "1"),
            int(saved_start),
            int(saved_length or "1"))
Given the `@@ ... @@` header from the beginning of a hunk, return
dataset/ETHPy150Open divmain/GitSavvy/common/util/parse_diff.py/_get_metadata