def _copy_one_level(self, metrics, prefix, data, filter=lambda key: True):
        for key, value in data.iteritems():
            if filter(key):
                metric_path = (prefix, key) % '%s.%s'
                self._set_or_sum_metric(metrics, metric_path, value)
dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/elasticsearch/elasticsearch.py/ElasticSearchCollector._copy_one_level/swapped operands of `%`