def histogram_bins(timeseries):

    series = scipy.array([x[1] for x in timeseries])
    t = tail_avg(timeseries)
    h = np.histogram(series, bins=15)
    bins = h[1]
    for index, bin_size in enumerate(h[0]):
        if bin_size <= 20:
            # Is it in the first bin?
            if index == 0:
                if t <= bins[0]:
                    return True
            # Is it in the current bin?
            elif t >= bins[index] and t < bins[index + 1]:
                    return True

    return False
Test if zuul verifies project correctly through zuul-demo project
dataset/ETHPy150Open etsy/skyline/src/analyzer/algorithms.py/histogram_bins--crossover with--dataset/ETHPy150Open redhat-cip/software-factory/tests/functional/test_zuul.py/TestZuulOps.test_check_zuul_operations