<commit_before>/**
 * Class:    DecodingResult<br/>
 * <br/>
 * Created:  05.11.2017<br/>
 * Filename: DecodingResult.java<br/>
 * Version:  $Revision$<br/>
 * <br/>
 * last modified on $Date$<br/>
 *               by $Author$<br/>
 * <br/>
 * @author <a href="mailto:<EMAIL>"><NAME>, nacamar GmbH</a>
 * @version $Author$ -- $Revision$ -- $Date$
 * <br/>
 * (c) <NAME>, nacamar GmbH 2017 - All rights reserved.
 */
package net.addradio.codec.mpeg.audio;

import java.util.List;

import net.addradio.codec.mpeg.audio.model.MPEGAudioContent;

/**
 * DecodingResult.
 */
public class DecodingResult {

    /** {@code float} averageBitRate */
    private float averageBitRate = -1;

    /** {@link List}{@code <}{@link MPEGAudioContent}{@code >} content. */
    private List<MPEGAudioContent> content;

    /** {@code long} skippedBits. */
    private long skippedBits;

    /** {@code long} durationMillis. */
    private long durationMillis = -1;

    /**
    * DecodingResult constructor.
    */
    public DecodingResult() {
    }

    /**
     * DecodingResult constructor.
     * @param skippedBitsVal {@code long}
     * @param averageBitRateVal {@code float}
     * @param durationMillisVal {@code long}
     * @param contentRef {@link List}{@code <}{@link MPEGAudioContent}{@code >}
     */
    public DecodingResult(final long skippedBitsVal, final float averageBitRateVal, final long durationMillisVal,
            final List<MPEGAudioContent> contentRef) {
        setSkippedBits(skippedBitsVal);
        setAverageBitRate(averageBitRateVal);
        setDurationMillis(durationMillisVal);
        setContent(contentRef);
    }

    /**
     * @return the {@code float} averageBitRate or {@code -1} if average bitrate has not been calculated so far.
     */
    public float getAverageBitRate() {
        return this.averageBitRate;
    }

    /**
     * getContent.
     * @return {@link List}{@code <}{@link MPEGAudioContent}{@code >} the content
     */
    public List<MPEGAudioContent> getContent() {
        return this.content;
    }

    /**
     * getDurationMillis.
     * @return long the durationMillis
     */
    public long getDurationMillis() {
        return this.durationMillis;
    }

    /**
     * getNumberOfDecodedContents.
     * @return {@code int}
     */
    public int getNumberOfDecodedContents() {
        return this.content.size();
    }

    /**
     * getSkippedBits.
     * @return {@code long} the skippedBits
     */
    public long getSkippedBits() {
        return this.skippedBits;
    }

    /**
     * @param averageBitRateVal {@code float} the averageBitRate to set
     */
    public void setAverageBitRate(final float averageBitRateVal) {
        this.averageBitRate = averageBitRateVal;
    }

    /**
     * setContent.
     * @param contentRef {@link List}{@code <}{@link MPEGAudioContent}{@code >} the content to set
     */
    public void setContent(final List<MPEGAudioContent> contentRef) {
        this.content = contentRef;
    }

    /**
     * setDurationMillis.
     * @param durationMillis long the durationMillis to set
     */
    public void setDurationMillis(final long durationMillis) {
        this.durationMillis = durationMillis;
    }

    /**<commit_msg>minor style fix<commit_after>/**
 * Class:    DecodingResult<br/>
 * <br/>
 * Created:  05.11.2017<br/>
 * Filename: DecodingResult.java<br/>
 * Version:  $Revision$<br/>
 * <br/>
 * last modified on $Date$<br/>
 *               by $Author$<br/>
 * <br/>
 * @author <a href="mailto:<EMAIL>"><NAME>, nacamar GmbH</a>
 * @version $Author$ -- $Revision$ -- $Date$
 * <br/>
 * (c) <NAME>, nacamar GmbH 2017 - All rights reserved.
 */
package net.addradio.codec.mpeg.audio;

import java.util.List;

import net.addradio.codec.mpeg.audio.model.MPEGAudioContent;

/**
 * DecodingResult.
 */
public class DecodingResult {

    /** {@code float} averageBitRate */
    private float averageBitRate = -1;

    /** {@link List}{@code <}{@link MPEGAudioContent}{@code >} content. */
    private List<MPEGAudioContent> content;

    /** {@code long} skippedBits. */
    private long skippedBits;

    /** {@code long} durationMillis. */
    private long durationMillis = -1;

    /**
    * DecodingResult constructor.
    */
    public DecodingResult() {
    }

    /**
     * DecodingResult constructor.
     * @param skippedBitsVal {@code long}
     * @param averageBitRateVal {@code float}
     * @param durationMillisVal {@code long}
     * @param contentRef {@link List}{@code <}{@link MPEGAudioContent}{@code >}
     */
    public DecodingResult(final long skippedBitsVal, final float averageBitRateVal, final long durationMillisVal,
            final List<MPEGAudioContent> contentRef) {
        setSkippedBits(skippedBitsVal);
        setAverageBitRate(averageBitRateVal);
        setDurationMillis(durationMillisVal);
        setContent(contentRef);
    }

    /**
     * @return the {@code float} averageBitRate or {@code -1} if average bitrate has not been calculated so far.
     */
    public float getAverageBitRate() {
        return this.averageBitRate;
    }

    /**
     * getContent.
     * @return {@link List}{@code <}{@link MPEGAudioContent}{@code >} the content
     */
    public List<MPEGAudioContent> getContent() {
        return this.content;
    }

    /**
     * getDurationMillis.
     * @return long the durationMillis
     */
    public long getDurationMillis() {
        return this.durationMillis;
    }

    /**
     * getNumberOfDecodedContents.
     * @return {@code int}
     */
    public int getNumberOfDecodedContents() {
        return this.content.size();
    }

    /**
     * getSkippedBits.
     * @return {@code long} the skippedBits
     */
    public long getSkippedBits() {
        return this.skippedBits;
    }

    /**
     * @param averageBitRateVal {@code float} the averageBitRate to set
     */
    public void setAverageBitRate(final float averageBitRateVal) {
        this.averageBitRate = averageBitRateVal;
    }

    /**
     * setContent.
     * @param contentRef {@link List}{@code <}{@link MPEGAudioContent}{@code >} the content to set
     */
    public void setContent(final List<MPEGAudioContent> contentRef) {
        this.content = contentRef;
    }

    /**
     * setDurationMillis.
     * @param durationMillisVal long the durationMillis to set
     */
    public void setDurationMillis(final long durationMillisVal) {
        this.durationMillis = durationMillisVal;
    }

    /**
{'fraction_non_alphanumeric': 0.12976981306967403, 'fraction_numerical': 0.004634636181059787, 'mean_word_length': 2.6679886685552407, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '374019', 'n_tokens_mistral': 2011, 'n_tokens_neox': 1985, 'n_words': 458}