<commit_before>package de.mxro.metrics.internal.operations;

import com.codahale.metrics.Histogram;

import de.mxro.async.properties.PropertyData;
import de.mxro.async.properties.operations.PropertyOperationWithId;

public class HistrogramEvent extends PropertyOperationWithId {

    private final long value;

    @Override
    public void perform(final PropertyData data) {

        final Histogram hist = data.get(id, Histogram.class);

        hist.update(value);

    }

    public HistrogramEvent(final long value) {
        super();
        this.value = value;
    }

}<commit_msg>Adding documentation for async-log Autocommit Wed Jan 14 15:06:05 EST 2015<commit_after>package de.mxro.metrics.internal.operations;

import com.codahale.metrics.Histogram;

import de.mxro.async.properties.PropertyData;
import de.mxro.async.properties.operations.PropertyOperationWithId;

public class HistrogramEvent extends PropertyOperationWithId<Long> {

    private final long value;

    @Override
    public Long perform(final PropertyData data) {

        final Histogram hist = data.get(id, Histogram.class);

        hist.update(value);

        return value;

    }

    public HistrogramEvent(final long value) {
        super();
        this.value = value;
    }

}
{'fraction_non_alphanumeric': 0.08688783570300158, 'fraction_numerical': 0.009478672985781991, 'mean_word_length': 3.508896797153025, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5108329', 'n_tokens_mistral': 380, 'n_tokens_neox': 353, 'n_words': 84}