<commit_before>package com.joelj.collections;

import org.testng.annotations.Test;

/**
 * User: <NAME>
 * Date: 2/16/13
 * Time: 6:44 PM
 */
public class LinkedArrayListImplTest {
	@Test
	public void testBasicOperations() throws Exception {

	}
}
<commit_msg>adding basic operations tests for the java.util.List.<commit_after>package com.joelj.collections;

import org.testng.annotations.Test;
import static org.testng.Assert.*;

import java.util.List;

/**
 * User: <NAME>
 * Date: 2/16/13
 * Time: 6:44 PM
 */
@SuppressWarnings("ForLoopReplaceableByForEach")
public class LinkedArrayListImplTest {
	@Test
	public void testBasicGet() throws Exception {
		List<String> strings = LinkedArrayList.create();
		for(int i = 0; i < 30; i++) {
			strings.add(String.valueOf(i));
		}

		for(int i = 0; i < strings.size(); i++) {
			String s = strings.get(i);
			assertEquals(s, String.valueOf(i));
		}
	}

	@Test
	public void testBasicRemove() throws Exception {
		List<String> strings = LinkedArrayList.create();
		for(int i = 0; i < 30; i++) {
			strings.add(String.valueOf(i));
		}
		strings.remove(15);
		assertEquals(strings.get(14), "14");
		assertEquals(strings.get(15), "16");
	}
}

{'fraction_non_alphanumeric': 0.15384615384615385, 'fraction_numerical': 0.027895181741335588, 'mean_word_length': 4.215859030837004, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 7, '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': '3315341', 'n_tokens_mistral': 447, 'n_tokens_neox': 405, 'n_words': 94}