def add_rule(self, match_expression, sample_rate):
        self.__sampling_rules.append(SamplingRule(match_expression, sample_rate))
For resetting the starting index of this dataset back to zero.
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/log_processing.py/LogLineSampler.add_rule--crossover with--dataset/ETHPy150Open NervanaSystems/neon/neon/data/questionanswer.py/QA.reset