<commit_before>import org.junit.BeforeClass;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class MathematicalOperationsTest {

    static MathematicalOperations mathematicalOperations;

    @BeforeClass
    public static void init() {
        mathematicalOperations = new MathematicalOperations();
    }

    @Test
    public void testBinaryPlus() {
        assertEquals(5,mathematicalOperations.binaryPlus(3, 2));
        assertEquals(0,mathematicalOperations.binaryPlus(-3, 3));
        assertEquals(100,mathematicalOperations.binaryPlus(64, 36));
    }


    /**
     * Performs a valid subtraction.
     * @result The subtraction is performed without error.
     */
    @Test
    public void testBinaryMinus(){
        assertEquals(3,mathematicalOperations.binaryMinus(7, 4));
        assertEquals(-7,mathematicalOperations.binaryMinus(-2, 5));
        assertEquals(0,mathematicalOperations.binaryMinus(5, 5));
    }
    @Test
    public void testTimes(){
    	assertEquals(21,mathematicalOperations.times(7, 3));
        assertEquals(-18,mathematicalOperations.times(-6, 3));
        assertEquals(0,mathematicalOperations.times(-123, 0));
    }

    /**
     * Tests a valid division operations
     * The result would be division of two input variables
     */
    private static final double DELTA = 1e-5;
    @Test
    public void testDivide(){
        assertEquals(46.142857,mathematicalOperations.divide(323,7), DELTA);<commit_msg>Added comments to testTimes method.<commit_after>import org.junit.BeforeClass;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class MathematicalOperationsTest {

    static MathematicalOperations mathematicalOperations;

    @BeforeClass
    public static void init() {
        mathematicalOperations = new MathematicalOperations();
    }

    @Test
    public void testBinaryPlus() {
        assertEquals(5,mathematicalOperations.binaryPlus(3, 2));
        assertEquals(0,mathematicalOperations.binaryPlus(-3, 3));
        assertEquals(100,mathematicalOperations.binaryPlus(64, 36));
    }


    /**
     * Performs a valid subtraction.
     * @result The subtraction is performed without error.
     */
    @Test
    public void testBinaryMinus(){
        assertEquals(3,mathematicalOperations.binaryMinus(7, 4));
        assertEquals(-7,mathematicalOperations.binaryMinus(-2, 5));
        assertEquals(0,mathematicalOperations.binaryMinus(5, 5));
    }
    /**
     * Tests whether times method works properly
     * @result The multiplication is performed without error.
     */
    @Test
    public void testTimes(){
    	assertEquals(21,mathematicalOperations.times(7, 3));
        assertEquals(-18,mathematicalOperations.times(-6, 3));
        assertEquals(0,mathematicalOperations.times(-123, 0));
    }

    /**
     * Tests a valid division operations
     * The result would be division of two input variables
     */
    private static final double DELTA = 1e-5;
    @Test
    public void testDivide(){
        assertEquals(46.142857,mathematicalOperations.divide(323,7), DELTA);
{'fraction_non_alphanumeric': 0.1008729388942774, 'fraction_numerical': 0.0316844487552538, 'mean_word_length': 3.3886524822695034, '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': '125177', 'n_tokens_mistral': 892, 'n_tokens_neox': 844, 'n_words': 192}