def _collect_metrics(self, registry, timestamp=None):
        timestamp = timestamp and int(round(self.clock.time()))
        metrics = registry.dump_metrics()
        metrics_data = []
        for key in metrics.keys():
            for value_key in metrics[key].keys():
                metric_line = "%s.%s %s %s\n" % (
                    key, value_key, metrics[key][value_key], timestamp)
                metrics_data.append(metric_line)
        return ''.join(metrics_data)
dataset/ETHPy150Open omergertel/pyformance/pyformance/reporters/hosted_graphite_reporter.py/HostedGraphiteReporter._collect_metrics/operator `or` -> `and`