<commit_before>/*
 *    Copyright 2012 The MyBatis Team
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package org.mybatis.caches.memcached;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;

import org.junit.Before;
import org.junit.Test;

/**
 * HOW TO RUN THE TEST
 *
 * Install memcached:
 * <ul>
 * <li>in ubuntu, type <code>sudo apt-get install memcached</code></li>
 * <li>in mac os x, type <code>sudo port install memcached</code></li>
 * </ul>
 *
 * launch <code>mvn test</code>.
 *
 * @version $Id$
 */
public final class MemcachedTestCase {

    private static final String DEFAULT_ID = "MEMCACHED";

    private MemcachedCache cache;

    @Before
    public void newCache() {
        cache = new MemcachedCache(DEFAULT_ID);
    }

    @Test
    public void shouldDemonstrateCopiesAreEqual() {
        for (int i = 0; i < 100; i++) {
            cache.putObject(i, i);
            assertEquals(i, cache.getObject(i));
        }
    }
<commit_msg>typos and more descriptions<commit_after>/*
 *    Copyright 2012 The MyBatis Team
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package org.mybatis.caches.memcached;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;

import org.junit.Before;
import org.junit.Test;

/**
 * HOW TO RUN THE TEST
 *
 * Install memcached:
 * <ul>
 * <li>on ubuntu: open the shell and type <code>sudo apt-get install memcached</code></li>
 * <li>on mac os x: open the terminal and type <code>sudo port install memcached</code></li>
 * </ul>
 *
 * launch <code>mvn test</code>.
 *
 * @version $Id$
 */
public final class MemcachedTestCase {

    private static final String DEFAULT_ID = "MEMCACHED";

    private MemcachedCache cache;

    @Before
    public void newCache() {
        cache = new MemcachedCache(DEFAULT_ID);
    }

    @Test
    public void shouldDemonstrateCopiesAreEqual() {
        for (int i = 0; i < 100; i++) {
            cache.putObject(i, i);
            assertEquals(i, cache.getObject(i));
        }
    }

{'fraction_non_alphanumeric': 0.10058987891959019, 'fraction_numerical': 0.007451102142191866, 'mean_word_length': 3.0681818181818183, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5831599', 'n_tokens_mistral': 959, 'n_tokens_neox': 924, 'n_words': 339}