fetch_jira_bugs/find_bug_fixes.py
def commit_selector_heuristic(commits):
    """ Helper method for find_bug_fixes.
    Commits are assumed to be ordered in reverse chronological order.
    Given said order, pick first commit that does not match the pattern.
    If all commits match, return newest one. """
    for commit in commits:
        if not re.search('[Mm]erge|[Cc]herry|[Nn]oting', commit):
            return commit
    return commits[0]
 Helper method for find_bug_fixes.
    Commits are assumed to be ordered in reverse chronological order.
    Given said order, pick first commit that does not match the pattern.
    If all commits match, return newest one. 
Helper method for find_bug_fixes.
Commits are assumed to be ordered in reverse chronological order.
Given said order, pick first commit that does not match the pattern.
If all commits match, return newest one.
Helper method for find_bug_fixes . Commits are assumed to be ordered in reverse chronological order . Given said order pick first commit that does not match the pattern . If all commits match return newest one .
def commit_selector_heuristic(commits):
    for commit in commits:
        if not re.search('[Mm]erge|[Cc]herry|[Nn]oting', commit):
            return commit
    return commits[0]
def commit_selector_heuristic ( commits ) : for commit in commits : if not re . search ( '[Mm]erge|[Cc]herry|[Nn]oting' , commit ) : return commit return commits [ 0 ]
Helper method for find_bug_fixes.
Helper method for find_bug_fixes .
""" Helper method for find_bug_fixes.
    Commits are assumed to be ordered in reverse chronological order.
    Given said order, pick first commit that does not match the pattern.
    If all commits match, return newest one. """
commits