cabot/cabotapp/models.py
def calculate_debounced_passing(recent_results, debounce=0):
    """
    `debounce` is the number of previous failures we need (not including this)
    to mark a search as passing or failing
    Returns:
      True if passing given debounce factor
      False if failing
    """
    if not recent_results:
        return True
    debounce_window = recent_results[:debounce + 1]
    for r in debounce_window:
        if r.succeeded:
            return True
    return False

    `debounce` is the number of previous failures we need (not including this)
    to mark a search as passing or failing
    Returns:
      True if passing given debounce factor
      False if failing
    
`debounce` is the number of previous failures we need (not including this)
to mark a search as passing or failing
` debounce ` is the number of previous failures we need ( not including this ) to mark a search as passing or failing
def calculate_debounced_passing(recent_results, debounce=0):
    if not recent_results:
        return True
    debounce_window = recent_results[:debounce + 1]
    for r in debounce_window:
        if r.succeeded:
            return True
    return False
def calculate_debounced_passing ( recent_results , debounce = 0 ) : if not recent_results : return True debounce_window = recent_results [ : debounce + 1 ] for r in debounce_window : if r . succeeded : return True return False
`debounce` is the number of previous failures we need (not including this)
to mark a search as passing or failing
` debounce ` is the number of previous failures we need ( not including this ) to mark a search as passing or failing
"""
    `debounce` is the number of previous failures we need (not including this)
    to mark a search as passing or failing
    Returns:
      True if passing given debounce factor
      False if failing
    """
True if passing given debounce factor
False if failing
True if passing given debounce factor False if failing
recent_results
debounce