<commit_before>/*
 * #%L
 * Protempa Framework
 * %%
 * Copyright (C) 2012 - 2013 Emory University
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package org.protempa;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.protempa.proposition.value.Unit;
import org.protempa.proposition.value.Value;

/**
 *
 * @author <NAME>
 */
public class ContextOffset implements Serializable {
    private static final long serialVersionUID = 1;
    
    private Value startAbstractParamValue;
    private Value finishAbstractParamValue;
    private int startOffset;
    private Unit startOffsetUnits;
    private int finishOffset;
    private Unit finishOffsetUnits;
    private IntervalSide startIntervalSide = IntervalSide.START;
    private IntervalSide finishIntervalSide = IntervalSide.FINISH;

    public Value getFinishAbstractParamValue() {
        return finishAbstractParamValue;
    }

    public void setFinishAbstractParamValue(Value finishAbstractParamValue) {
        this.finishAbstractParamValue = finishAbstractParamValue;
    }

    public IntervalSide getFinishIntervalSide() {
        return finishIntervalSide;
    }

    public void setFinishIntervalSide(IntervalSide finishIntervalSide) {
        if (finishIntervalSide != null) {
            this.finishIntervalSide = finishIntervalSide;
        } else {
            this.finishIntervalSide = IntervalSide.FINISH;
        }
    }

    public int getFinishOffset() {
        return finishOffset;
    }

    public void setFinishOffset(int finishOffset) {
        this.finishOffset = finishOffset;
    }

    public Unit getFinishOffsetUnits() {
        return finishOffsetUnits;
    }

    public void setFinishOffsetUnits(Unit finishOffsetUnits) {
        this.finishOffsetUnits = finishOffsetUnits;
    }

    public Value getStartAbstractParamValue() {
        return startAbstractParamValue;
    }

    public void setStartAbstractParamValue(Value startAbstractParamValue) {
        this.startAbstractParamValue = startAbstractParamValue;
    }

    public IntervalSide getStartIntervalSide() {
        return startIntervalSide;
    }

    public void setStartIntervalSide(IntervalSide startIntervalSide) {
        if (startIntervalSide != null) {
            this.startIntervalSide = startIntervalSide;
        } else {
            this.startIntervalSide = IntervalSide.START;
        }
    }

    public int getStartOffset() {
        return startOffset;<commit_msg>Removed unused fields.<commit_after>/*
 * #%L
 * Protempa Framework
 * %%
 * Copyright (C) 2012 - 2013 Emory University
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package org.protempa;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.protempa.proposition.value.Unit;
import org.protempa.proposition.value.Value;

/**
 *
 * @author <NAME>
 */
public class ContextOffset implements Serializable {
    private static final long serialVersionUID = 1;
    
    private int startOffset;
    private Unit startOffsetUnits;
    private int finishOffset;
    private Unit finishOffsetUnits;
    private IntervalSide startIntervalSide = IntervalSide.START;
    private IntervalSide finishIntervalSide = IntervalSide.FINISH;

    public IntervalSide getFinishIntervalSide() {
        return finishIntervalSide;
    }

    public void setFinishIntervalSide(IntervalSide finishIntervalSide) {
        if (finishIntervalSide != null) {
            this.finishIntervalSide = finishIntervalSide;
        } else {
            this.finishIntervalSide = IntervalSide.FINISH;
        }
    }

    public int getFinishOffset() {
        return finishOffset;
    }

    public void setFinishOffset(int finishOffset) {
        this.finishOffset = finishOffset;
    }

    public Unit getFinishOffsetUnits() {
        return finishOffsetUnits;
    }

    public void setFinishOffsetUnits(Unit finishOffsetUnits) {
        this.finishOffsetUnits = finishOffsetUnits;
    }

    public IntervalSide getStartIntervalSide() {
        return startIntervalSide;
    }

    public void setStartIntervalSide(IntervalSide startIntervalSide) {
        if (startIntervalSide != null) {
            this.startIntervalSide = startIntervalSide;
        } else {
            this.startIntervalSide = IntervalSide.START;
        }
    }

    public int getStartOffset() {
        return startOffset;
{'fraction_non_alphanumeric': 0.07069408740359898, 'fraction_numerical': 0.004774146162320969, 'mean_word_length': 3.1964560862865947, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5106813', 'n_tokens_mistral': 1434, 'n_tokens_neox': 1386, 'n_words': 415}