<commit_before>package com.yuzhouwan.hacker.algorithms.leetcode;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * Copyright @ 2016 yuzhouwan.<EMAIL>
 * All right reserved.
 * Function: Reverse String Solution Tester
 *
 * @author <NAME>
 * @since 2016/8/4
 */
public class ReverseStringSolutionTest {

    private static final int SUPPRESS_TEST_LIMITATION = 100_1000;

    @Test
    public void solution() throws Exception {

        assertEquals(null, ReverseStringSolution.reverseString(null));
        assertEquals("", ReverseStringSolution.reverseString(""));
        assertEquals("a", ReverseStringSolution.reverseString("a"));
        assertEquals("olleh", ReverseStringSolution.reverseString("hello"));
        assertEquals("!dlrow", ReverseStringSolution.reverseString("world!"));
        long b = System.currentTimeMillis();
        int count = SUPPRESS_TEST_LIMITATION;
        while (count > 0) {
            count--;
            ReverseStringSolution.reverseString("yuzhouwan.com");
        }
        long e = System.currentTimeMillis();
        System.out.println(e - b);      //1035
    }

    @Test
    public void solutionLitterSpace() throws Exception {

        assertEquals(null, ReverseStringSolution.reverseStringLitterSpace(null));
        assertEquals("", ReverseStringSolution.reverseStringLitterSpace(""));
        assertEquals("a", ReverseStringSolution.reverseStringLitterSpace("a"));
        assertEquals("olleh", ReverseStringSolution.reverseStringLitterSpace("hello"));
        assertEquals("!dlrow", ReverseStringSolution.reverseStringLitterSpace("world!"));

        long b = System.currentTimeMillis();
        int count = SUPPRESS_TEST_LIMITATION;
        while (count > 0) {
            count--;
            ReverseStringSolution.reverseStringLitterSpace("yuzhouwan.com");
        }
        long e = System.currentTimeMillis();
        System.out.println(e - b);      //43
    }

    @Test
    public void solutionRecursion() throws Exception {

        assertEquals(null, ReverseStringSolution.reverseStringRecursion(null));
        assertEquals("", ReverseStringSolution.reverseStringRecursion(""));
        assertEquals("a", ReverseStringSolution.reverseStringRecursion("a"));
        assertEquals("olleh", ReverseStringSolution.reverseStringRecursion("hello"));
        assertEquals("!dlrow", ReverseStringSolution.reverseStringRecursion("world!"));

        long b = System.currentTimeMillis();
        int count = SUPPRESS_TEST_LIMITATION;
        while (count > 0) {
            count--;
            ReverseStringSolution.reverseStringRecursion("yuzhouwan.com");
        }
        long e = System.currentTimeMillis();
        System.out.println(e - b);      //53
    }

    @Test
    public void solutionSimplest() throws Exception {

        assertEquals(null, ReverseStringSolution.reverseStringSimplest(null));
        assertEquals("", ReverseStringSolution.reverseStringSimplest(""));
        assertEquals("a", ReverseStringSolution.reverseStringSimplest("a"));
        assertEquals("olleh", ReverseStringSolution.reverseStringSimplest("hello"));
        assertEquals("!dlrow", ReverseStringSolution.reverseStringSimplest("world!"));

        long b = System.currentTimeMillis();
        int count = SUPPRESS_TEST_LIMITATION;
        while (count > 0) {
            count--;
            ReverseStringSolution.reverseStringSimplest("yuzhouwan.com");
        }
        long e = System.currentTimeMillis();
        System.out.println(e - b);      //73
    }
}<commit_msg>LeetCode: update those recoders of suppress test about reverse string<commit_after>package com.yuzhouwan.hacker.algorithms.leetcode;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * Copyright @ 2016 yuzhouwan.com
 * All right reserved.
 * Function: Reverse String Solution Tester
 *
 * @author <NAME>
 * @since 2016/8/4
 */
public class ReverseStringSolutionTest {

    private static final int SUPPRESS_TEST_LIMITATION = 100_1000;

    @Test
    public void solution() throws Exception {

        assertEquals(null, ReverseStringSolution.reverseString(null));
        assertEquals("", ReverseStringSolution.reverseString(""));
        assertEquals("a", ReverseStringSolution.reverseString("a"));
        assertEquals("olleh", ReverseStringSolution.reverseString("hello"));
        assertEquals("!dlrow", ReverseStringSolution.reverseString("world!"));
        long b = System.currentTimeMillis();
        int count = SUPPRESS_TEST_LIMITATION;
        while (count > 0) {
            count--;
            ReverseStringSolution.reverseString("yuzhouwan.com");
        }
        long e = System.currentTimeMillis();
        System.out.println(e - b);      //73
    }

    @Test
    public void solutionLitterSpace() throws Exception {

        assertEquals(null, ReverseStringSolution.reverseStringLitterSpace(null));
        assertEquals("", ReverseStringSolution.reverseStringLitterSpace(""));
        assertEquals("a", ReverseStringSolution.reverseStringLitterSpace("a"));
        assertEquals("olleh", ReverseStringSolution.reverseStringLitterSpace("hello"));
        assertEquals("!dlrow", ReverseStringSolution.reverseStringLitterSpace("world!"));

        long b = System.currentTimeMillis();
        int count = SUPPRESS_TEST_LIMITATION;
        while (count > 0) {
            count--;
            ReverseStringSolution.reverseStringLitterSpace("yuzhouwan.com");
        }
        long e = System.currentTimeMillis();
        System.out.println(e - b);      //33
    }

    @Test
    public void solutionRecursion() throws Exception {

        assertEquals(null, ReverseStringSolution.reverseStringRecursion(null));
        assertEquals("", ReverseStringSolution.reverseStringRecursion(""));
        assertEquals("a", ReverseStringSolution.reverseStringRecursion("a"));
        assertEquals("olleh", ReverseStringSolution.reverseStringRecursion("hello"));
        assertEquals("!dlrow", ReverseStringSolution.reverseStringRecursion("world!"));

        long b = System.currentTimeMillis();
        int count = SUPPRESS_TEST_LIMITATION;
        while (count > 0) {
            count--;
            ReverseStringSolution.reverseStringRecursion("yuzhouwan.com");
        }
        long e = System.currentTimeMillis();
        System.out.println(e - b);      //1055
    }

    @Test
    public void solutionSimplest() throws Exception {

        assertEquals(null, ReverseStringSolution.reverseStringSimplest(null));
        assertEquals("", ReverseStringSolution.reverseStringSimplest(""));
        assertEquals("a", ReverseStringSolution.reverseStringSimplest("a"));
        assertEquals("olleh", ReverseStringSolution.reverseStringSimplest("hello"));
        assertEquals("!dlrow", ReverseStringSolution.reverseStringSimplest("world!"));

        long b = System.currentTimeMillis();
        int count = SUPPRESS_TEST_LIMITATION;
        while (count > 0) {
            count--;
            ReverseStringSolution.reverseStringSimplest("yuzhouwan.com");
        }
        long e = System.currentTimeMillis();
        System.out.println(e - b);      //45
    }
}
{'fraction_non_alphanumeric': 0.1158587839731017, 'fraction_numerical': 0.008685906416363126, 'mean_word_length': 3.2697368421052633, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 14, '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': '5568788', 'n_tokens_mistral': 1983, 'n_tokens_neox': 1843, 'n_words': 335}