test_class.declarator: tester
test_class.original_string: StoreCredit tester;
test_class.type: StoreCredit
test_class.var_name: tester
test_class.file: googlecodejam/store_credit/src/StoreCreditTest.java
test_class.identifier: StoreCreditTest
test_case.body: @Test
  	public void testFile1() throws IOException {
  		System.out.println("testFile1");
  		List<String> output = StoreCredit.convertFileToOutput("/Users/ai/Programming/javakata/codejam/store_credit/src/small_example.txt");
  		for (String elem: output)
  			System.out.println(elem);
  	}
test_case.class_method_signature: StoreCreditTest.testFile1()
test_case.full_signature: @Test public void testFile1()
test_case.identifier: testFile1
test_case.invocations: println convertFileToOutput println
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFile1()
focal_class.declarator: INSERTION_SORT_THRESHOLD = 8
focal_class.modifier: static
focal_class.original_string: static int INSERTION_SORT_THRESHOLD = 8;
focal_class.type: int
focal_class.var_name: INSERTION_SORT_THRESHOLD
focal_class.file: googlecodejam/store_credit/src/StoreCredit.java
focal_class.identifier: StoreCredit
focal_class.class_method_signature: StoreCredit.mergeSort(List<E> inputs)
focal_class.full_signature: static void mergeSort(List<E> inputs)
focal_class.identifier: mergeSort
focal_class.modifiers: static
focal_class.parameters: (List<E> inputs)
focal_class.return: void
focal_class.signature: void mergeSort(List<E> inputs)
focal_class.class_method_signature: StoreCredit.insertionSort(List<E> inputs,
  														final int p,
  														final int r)
focal_class.full_signature: static void insertionSort(List<E> inputs,
  														final int p,
  														final int r)
focal_class.identifier: insertionSort
focal_class.modifiers: static
focal_class.parameters: (List<E> inputs,
  														final int p,
  														final int r)
focal_class.return: void
focal_class.signature: void insertionSort(List<E> inputs,
  														final int p,
  														final int r)
focal_class.class_method_signature: StoreCredit.insert(List<E> inputs,
  												 final int p,
  											     final int pos,
  											     E value)
focal_class.full_signature: static void insert(List<E> inputs,
  												 final int p,
  											     final int pos,
  											     E value)
focal_class.identifier: insert
focal_class.modifiers: static
focal_class.parameters: (List<E> inputs,
  												 final int p,
  											     final int pos,
  											     E value)
focal_class.return: void
focal_class.signature: void insert(List<E> inputs,
  												 final int p,
  											     final int pos,
  											     E value)
focal_class.class_method_signature: StoreCredit.mergeSort(List<E> inputs,
  										 			final int p,
  													final int r,
  													ArrayDeque<E> left,
  													ArrayDeque<E> right)
focal_class.full_signature: static void mergeSort(List<E> inputs,
  										 			final int p,
  													final int r,
  													ArrayDeque<E> left,
  													ArrayDeque<E> right)
focal_class.identifier: mergeSort
focal_class.modifiers: static
focal_class.parameters: (List<E> inputs,
  										 			final int p,
  													final int r,
  													ArrayDeque<E> left,
  													ArrayDeque<E> right)
focal_class.return: void
focal_class.signature: void mergeSort(List<E> inputs,
  										 			final int p,
  													final int r,
  													ArrayDeque<E> left,
  													ArrayDeque<E> right)
focal_class.class_method_signature: StoreCredit.merge(List<E> inputs,
  											    final int p,
  											    final int q,
  											    final int r,
  											    ArrayDeque<E> left,
  											    ArrayDeque<E> right)
focal_class.full_signature: static void merge(List<E> inputs,
  											    final int p,
  											    final int q,
  											    final int r,
  											    ArrayDeque<E> left,
  											    ArrayDeque<E> right)
focal_class.identifier: merge
focal_class.modifiers: static
focal_class.parameters: (List<E> inputs,
  											    final int p,
  											    final int q,
  											    final int r,
  											    ArrayDeque<E> left,
  											    ArrayDeque<E> right)
focal_class.return: void
focal_class.signature: void merge(List<E> inputs,
  											    final int p,
  											    final int q,
  											    final int r,
  											    ArrayDeque<E> left,
  											    ArrayDeque<E> right)
focal_class.class_method_signature: StoreCredit.lineToInts(String line)
focal_class.full_signature: static List<Integer> lineToInts(String line)
focal_class.identifier: lineToInts
focal_class.modifiers: static
focal_class.parameters: (String line)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> lineToInts(String line)
focal_class.class_method_signature: StoreCredit.lineToSortedInts(String line)
focal_class.full_signature: static List<Integer> lineToSortedInts(String line)
focal_class.identifier: lineToSortedInts
focal_class.modifiers: static
focal_class.parameters: (String line)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> lineToSortedInts(String line)
focal_class.class_method_signature: StoreCredit.convertFileToOutput(String filepath)
focal_class.full_signature: static List<String> convertFileToOutput(String filepath)
focal_class.identifier: convertFileToOutput
focal_class.modifiers: static
focal_class.parameters: (String filepath)
focal_class.return: List<String>
focal_class.signature: List<String> convertFileToOutput(String filepath)
focal_method.body: static List<String> convertFileToOutput(String filepath) throws IOException {
  		FileReader fileReader = new FileReader(filepath);
  		BufferedReader bufferedReader = new BufferedReader(fileReader);
  		
  		String firstLine = bufferedReader.readLine();
  		Integer numberOfProblems = Integer.valueOf(firstLine);
  		List<String> rv = new ArrayList<String>(numberOfProblems);
  		for (int i = 0; i < numberOfProblems; i++) {
  			int credit = Integer.valueOf(bufferedReader.readLine());
  			bufferedReader.readLine();
  			String items = bufferedReader.readLine();
  			Problem problem = new Problem(credit, items);
  			List<Integer> solution = problem.solveProblem();
  			StringBuilder output = new StringBuilder();
  			output.append("Case #");
  			output.append(i+1);
  			output.append(":");
  			for (Integer index: solution) {
  				output.append(" ");
  				output.append(index);
  			}
  			rv.add(output.toString());
  		}
  		bufferedReader.close();
  		return rv;
  	}
focal_method.class_method_signature: StoreCredit.convertFileToOutput(String filepath)
focal_method.full_signature: static List<String> convertFileToOutput(String filepath)
focal_method.identifier: convertFileToOutput
focal_method.invocations: readLine valueOf valueOf readLine readLine readLine solveProblem append append append append append add toString close
focal_method.modifiers: static
focal_method.parameters: (String filepath)
focal_method.return: List<String>
focal_method.signature: List<String> convertFileToOutput(String filepath)