def sample(operation, metric, name):
    with start_action(action_type=u'flocker:benchmark:sample', sample=name):
        sampling = DeferredContext(maybeDeferred(operation.get_probe))

        def run_probe(probe):
            probing = metric.measure(probe.run)
            probing.addCallback(
                lambda measurement: dict(success=True, value=measurement)
            )
            probing.addCallback(bypass, probe.cleanup)

            return probing
        sampling.addCallback(run_probe)

        # Convert an error running the probe into a failed sample.
        def convert_to_result(failure):
            return dict(success=False, reason=failure.getTraceback())
        sampling.addErrback(convert_to_result)

        return sampling.addActionFinish()
Convert the value into an integer. If the
dataset/ETHPy150Open ClusterHQ/flocker/benchmark/_driver.py/sample--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/appengine-flask-skeleton/lib/jinja2/filters.py/do_int