def term_matches_tokens(text, forms_list, case_sensitive):
    flags = get_tokens_flags(case_sensitive)
    expression = ur'(\b|_)%s(\b|_)' % '(\\b|_)|(\\b|_)'.join(forms_list)
    pattern = re.compile(expression, flags=flags)
    matches = re.findall(pattern, text)
    return len(matches)
Begins executing the monitor, writing metric output to self._logger.
dataset/ETHPy150Open bigmlcom/python/bigml/predicate.py/term_matches_tokens--crossover with--dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/builtin_monitors/linux_system_metrics.py/SystemMetricsMonitor.run