def _extract_progress(self, text):
    # monad-ish dispatch to avoid the if/else soup
    find = partial(re.search, string=text.strip())
    regex = unit(self.progress_regex)
    match = bind(regex, find)
    result = bind(match, self._calculate_progress)
    return result
Invalidate a cache region namespace or decorated function
dataset/ETHPy150Open chriskiehl/Gooey/gooey/gui/processor.py/ProcessController._extract_progress--crossover with--dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/beaker/cache.py/CacheManager.region_invalidate