<commit_before>module Subject.Mathematics {
    export class ArithmeticExercise {
        get leftOperand() { return this._leftOperand; }
        get rightOperand() { return this._rightOperand; }
        get operator() { return this._operator; }

        constructor(
            private _leftOperand: number,
            private _rightOperand: number,
            private _operator: BasicArithmeticalOperatorType) { }

        public calculateResult() {
            var result: number;
            switch (this.operator) {
                case BasicArithmeticalOperatorType.ADDITION:
                    result = this.leftOperand + this.rightOperand;
                    break;
                case BasicArithmeticalOperatorType.SUBTRACTION:
                    result = this.leftOperand - this.rightOperand;
                    break;
                case BasicArithmeticalOperatorType.MULTIPLICATION:
                    result = this.leftOperand * this.rightOperand;
                    break;
                case BasicArithmeticalOperatorType.DIVISION:
                    result = this.leftOperand / this.rightOperand;
                    break;
                default:
                    throw new Error(`Invalid operator: '${this.operator}'`);
            }
            return Math.round(result * 100) / 100;;
        }<commit_msg>Format code<commit_after>module Subject.Mathematics {
    export class ArithmeticExercise {
        get leftOperand() { return this._leftOperand; }
        get rightOperand() { return this._rightOperand; }
        get operator() { return this._operator; }

        constructor(
            private _leftOperand: number,
            private _rightOperand: number,
            private _operator: BasicArithmeticalOperatorType) { }

        public calculateResult() {
            var result: number;
            switch (this.operator) {
                case BasicArithmeticalOperatorType.ADDITION:
                    result = this.leftOperand + this.rightOperand;
                    break;
                case BasicArithmeticalOperatorType.SUBTRACTION:
                    result = this.leftOperand - this.rightOperand;
                    break;
                case BasicArithmeticalOperatorType.MULTIPLICATION:
                    result = this.leftOperand * this.rightOperand;
                    break;
                case BasicArithmeticalOperatorType.DIVISION:
                    result = this.leftOperand / this.rightOperand;
                    break;
                default:
                    throw new Error(`Invalid operator: '${this.operator}'`);
            }
            return Math.round(result * 100) / 100;
        }
{'fraction_non_alphanumeric': 0.0712420738530399, 'fraction_numerical': 0.004475941812756434, 'mean_word_length': 1.619140625, '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': '1213987', 'n_tokens_mistral': 644, 'n_tokens_neox': 622, 'n_words': 137}