def get_ns_stats(self, bucketlist, server, port, user, password, opts):
        for bucket in bucketlist:
            bucket_name = bucket['name']
            stats_buffer.buckets[bucket_name] = copy.deepcopy(stats_buffer.stats)
            cmd = 'bucket-node-stats'
            for scale, stat_set in stats_buffer.buckets[bucket_name].iteritems():
                for stat in stat_set.iterkeys():
                    sys.stderr.write('.')
                    self.log.debug(stat % "retrieve: %s")
                    c = buckets.BucketNodeStats(bucket_name, stat, scale)

                    json = c.runCmd('bucket-node-stats', server, port, user, password, opts)
                    stats_buffer.buckets[bucket_name][scale][stat] = json
            sys.stderr.write('\n')
dataset/ETHPy150Open membase/membase-cli/collector.py/StatsCollector.get_ns_stats/swapped operands of `%`