<commit_before>package etomica.modules.statistics;

import etomica.data.AccumulatorAverageFixed;
import etomica.data.IData;
import etomica.data.IEtomicaDataInfo;
import etomica.data.types.DataDouble;
import etomica.data.types.DataGroup;
import etomica.integrator.IntegratorBox;

public class AccumulatorMimicMu extends AccumulatorAverageFixed {

    protected final IntegratorBox integrator;

    public AccumulatorMimicMu(IntegratorBox integrator) {
        super();
        this.integrator = integrator;
    }

    public void putDataInfo(IEtomicaDataInfo dataInfo) {
        dataSink.putDataInfo(dataInfo);
    }

    public IData processData(IData data) {
        double temperature = integrator.getTemperature();
        DataGroup g = (DataGroup) data;
        DataDouble avg = (DataDouble) g.getData(AVERAGE.index);
        DataDouble err = (DataDouble) g.getData(ERROR.index);
        DataDouble stdev = (DataDouble) g.getData(STANDARD_DEVIATION.index);
        err.x = err.x / avg.x;
        stdev.x = stdev.x / avg.x;
        avg.x = -temperature * Math.log(avg.x);
        return data;
    }
}<commit_msg>error and standard deviation need to be multiplied by T<commit_after>package etomica.modules.statistics;

import etomica.data.AccumulatorAverageFixed;
import etomica.data.IData;
import etomica.data.IEtomicaDataInfo;
import etomica.data.types.DataDouble;
import etomica.data.types.DataGroup;
import etomica.integrator.IntegratorBox;

public class AccumulatorMimicMu extends AccumulatorAverageFixed {

    protected final IntegratorBox integrator;

    public AccumulatorMimicMu(IntegratorBox integrator) {
        super();
        this.integrator = integrator;
    }

    public void putDataInfo(IEtomicaDataInfo dataInfo) {
        dataSink.putDataInfo(dataInfo);
    }

    public IData processData(IData data) {
        double temperature = integrator.getTemperature();
        DataGroup g = (DataGroup) data;
        DataDouble avg = (DataDouble) g.getData(AVERAGE.index);
        DataDouble err = (DataDouble) g.getData(ERROR.index);
        DataDouble stdev = (DataDouble) g.getData(STANDARD_DEVIATION.index);
        err.x = temperature * err.x / avg.x;
        stdev.x = temperature * stdev.x / avg.x;
        avg.x = -temperature * Math.log(avg.x);
        return data;
    }
}
{'fraction_non_alphanumeric': 0.09304347826086956, 'fraction_numerical': 0.0, 'mean_word_length': 3.4080459770114944, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7324191', 'n_tokens_mistral': 736, 'n_tokens_neox': 722, 'n_words': 147}