<commit_before>package com.sl.algorithms.maths;

import org.junit.Assert;
import org.junit.Test;
import static com.sl.algorithms.maths.DataOps.*;

public class DataOpsTest {

    @Test
    public void assertReverse() {
        Assert.assertEquals(-522222222, reverse(-222222225));
        Assert.assertEquals(-65536, reverse(-63556));
        Assert.assertEquals(-1, reverse(-1));
        Assert.assertEquals(0, reverse(0));
        Assert.assertEquals(1, reverse(1));
        Assert.assertEquals(21, reverse(12));
        Assert.assertEquals(999, reverse(999));
        Assert.assertEquals(63556, reverse(65536));
        Assert.assertEquals(65536, reverse(63556));
        Assert.assertEquals(522222222, reverse(222222225));
        Assert.assertEquals(0, reverse(1534236469));
    }

    @Test
    public void assertAtoi() {
        Assert.assertEquals(0, atoi(null));
        Assert.assertEquals(0, atoi(""));
        Assert.assertEquals(0, atoi(" "));
        Assert.assertEquals(0, atoi("small"));
        Assert.assertEquals(0, atoi("CAPS"));
        Assert.assertEquals(0, atoi("Special$#"));
        Assert.assertEquals(123, atoi("123"));
        Assert.assertEquals(123, atoi("123.3"));
        Assert.assertEquals(123, atoi("123.9"));
        Assert.assertEquals(-46, atoi("-46"));
        Assert.assertEquals(1534236469, atoi("1534236469"));
        Assert.assertEquals(-1534236469, atoi("-1534236469"));
        Assert.assertEquals(10, atoi("    010"));
        Assert.assertEquals(0, atoi("+"));
        Assert.assertEquals(4500, atoi("     +004500"));<commit_msg>Added new test for DataOps.atoi<commit_after>package com.sl.algorithms.maths;

import org.junit.Assert;
import org.junit.Test;
import static com.sl.algorithms.maths.DataOps.*;

public class DataOpsTest {

    @Test
    public void assertReverse() {
        Assert.assertEquals(-522222222, reverse(-222222225));
        Assert.assertEquals(-65536, reverse(-63556));
        Assert.assertEquals(-1, reverse(-1));
        Assert.assertEquals(0, reverse(0));
        Assert.assertEquals(1, reverse(1));
        Assert.assertEquals(21, reverse(12));
        Assert.assertEquals(999, reverse(999));
        Assert.assertEquals(63556, reverse(65536));
        Assert.assertEquals(65536, reverse(63556));
        Assert.assertEquals(522222222, reverse(222222225));
        Assert.assertEquals(0, reverse(1534236469));
    }

    @Test
    public void assertAtoi() {
        Assert.assertEquals(0, atoi(null));
        Assert.assertEquals(0, atoi(""));
        Assert.assertEquals(0, atoi(" "));
        Assert.assertEquals(0, atoi("small"));
        Assert.assertEquals(0, atoi("CAPS"));
        Assert.assertEquals(0, atoi("Special$#"));
        Assert.assertEquals(0, atoi(".123"));
        Assert.assertEquals(123, atoi("123"));
        Assert.assertEquals(123, atoi("123.3"));
        Assert.assertEquals(123, atoi("123.9"));
        Assert.assertEquals(-46, atoi("-46"));
        Assert.assertEquals(1534236469, atoi("1534236469"));
        Assert.assertEquals(-1534236469, atoi("-1534236469"));
        Assert.assertEquals(10, atoi("    010"));
        Assert.assertEquals(0, atoi("+"));
        Assert.assertEquals(4500, atoi("     +004500"));
{'fraction_non_alphanumeric': 0.1624223602484472, 'fraction_numerical': 0.1124223602484472, 'mean_word_length': 3.283244680851064, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 8, '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': '2892056', 'n_tokens_mistral': 1146, 'n_tokens_neox': 949, 'n_words': 153}