(values, window=5)
| 153 | |
| 154 | |
| 155 | def contiguous_runs(flags): |
| 156 | runs = [] |
| 157 | start = None |
| 158 | for idx, flag in enumerate(flags): |
| 159 | if flag and start is None: |
| 160 | start = idx |
| 161 | elif not flag and start is not None: |
| 162 | runs.append((start, idx)) |
no outgoing calls
no test coverage detected