<commit_before>package gov.nih.nci.cbiit.cdms.formula.core;

import javax.xml.bind.annotation.XmlEnumValue;

public enum OperationType {
    @XmlEnumValue("addition")
    ADDITION("addition"),
    @XmlEnumValue("subtraction")
    SUBTRACTION("subtraction"),
    @XmlEnumValue("multiplication")
    MULTIPLICATION("multiplication"),
    @XmlEnumValue("division")
    DIVISION("division"),
    @XmlEnumValue("power")
    POWER("power"),
    @XmlEnumValue("radical")
    RADICAL("radical"),
    @XmlEnumValue("squareRoot")
    SQUAREROOT("squareRoot"),
    @XmlEnumValue("exponential")
    EXPONENTIAL("exponential"),
    @XmlEnumValue("logarithm")
    LOGARITHM("logarithm"),

    @XmlEnumValue("trigonometric")
    TRIGONOMETRIC("trigonometric");

    private final String value;

    OperationType(String v)
    {
        value=v;
    }

    public String value() {
        return value;
    }

    public String operatorSymbol()
    {
        if (value().equals(ADDITION.value))
            return "+";
        else if (value().equals(SUBTRACTION.value))
            return "-";
        else if (value().equals(MULTIPLICATION.value))
            return "*";
        else if (value().equals(DIVISION.value()))
            return "/";
        else if (value().equals(POWER.value))
            return "pow";
        else if (value().equals(SQUAREROOT.value))
            return "sqrt";
        else if (value().equals(EXPONENTIAL.value))
            return "exp";
        else if (value().equals(LOGARITHM.value))
            return "logarithm";
        return value;
    }
    public static OperationType getOperationTypeWithSymbol(String str)
    {
        if (str.equals("+")) return ADDITION;
        else if (str.equals("-")) return SUBTRACTION;
        else if (str.equals("*")) return MULTIPLICATION;
        else if (str.equals("/")) return DIVISION;
        else if (str.equals("pow")) return POWER;
        else if (str.equals("sqrt")) return SQUAREROOT;
        else if (str.equals("exp")) return EXPONENTIAL;
        else if (str.equals("logarithm")) return LOGARITHM;

        return null;
    }

    public String toString()
    {
        if (value().equals(ADDITION.value))
            return " + ";
        else if (value().equals(SUBTRACTION.value))
            return " - ";
        else if (value().equals(MULTIPLICATION.value))
            return " * ";
        else if (value().equals(DIVISION.value()))
            return " / ";
        else if (value().equals(POWER.value))
            return "^";
        return value();
    }
}<commit_msg>user multiplication sign<commit_after>package gov.nih.nci.cbiit.cdms.formula.core;

import javax.xml.bind.annotation.XmlEnumValue;

public enum OperationType {
    @XmlEnumValue("addition")
    ADDITION("addition"),
    @XmlEnumValue("subtraction")
    SUBTRACTION("subtraction"),
    @XmlEnumValue("multiplication")
    MULTIPLICATION("multiplication"),
    @XmlEnumValue("division")
    DIVISION("division"),
    @XmlEnumValue("power")
    POWER("power"),
    @XmlEnumValue("radical")
    RADICAL("radical"),
    @XmlEnumValue("squareRoot")
    SQUAREROOT("squareRoot"),
    @XmlEnumValue("exponential")
    EXPONENTIAL("exponential"),
    @XmlEnumValue("logarithm")
    LOGARITHM("logarithm"),

    @XmlEnumValue("trigonometric")
    TRIGONOMETRIC("trigonometric");

    private final String value;

    OperationType(String v)
    {
        value=v;
    }

    public String value() {
        return value;
    }

    public String operatorSymbol()
    {
        if (value().equals(ADDITION.value))
            return "+";
        else if (value().equals(SUBTRACTION.value))
            return "-";
        else if (value().equals(MULTIPLICATION.value))
            return "*";
        else if (value().equals(DIVISION.value()))
            return "/";
        else if (value().equals(POWER.value))
            return "pow";
        else if (value().equals(SQUAREROOT.value))
            return "sqrt";
        else if (value().equals(EXPONENTIAL.value))
            return "exp";
        else if (value().equals(LOGARITHM.value))
            return "logarithm";
        return value;
    }
    public static OperationType getOperationTypeWithSymbol(String str)
    {
        if (str.equals("+")) return ADDITION;
        else if (str.equals("-")) return SUBTRACTION;
        else if (str.equals("*")) return MULTIPLICATION;
        else if (str.equals("/")) return DIVISION;
        else if (str.equals("pow")) return POWER;
        else if (str.equals("sqrt")) return SQUAREROOT;
        else if (str.equals("exp")) return EXPONENTIAL;
        else if (str.equals("logarithm")) return LOGARITHM;

        return null;
    }

    public String toString()
    {
        if (value().equals(ADDITION.value))
            return " + ";
        else if (value().equals(SUBTRACTION.value))
            return " - ";
        else if (value().equals(MULTIPLICATION.value))
            return "\u00D7";
        else if (value().equals(DIVISION.value()))
            return " / ";
        else if (value().equals(POWER.value))
            return "^";
        return value();
    }
}
{'fraction_non_alphanumeric': 0.144024912417283, 'fraction_numerical': 0.0005838847800700662, 'mean_word_length': 2.467611336032389, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4231999', 'n_tokens_mistral': 1548, 'n_tokens_neox': 1500, 'n_words': 301}