test_class.file: core/src/test/java/dk/alexandra/fresco/framework/util/TestTransposeUtils.java
test_class.identifier: TestTransposeUtils
test_case.body: @Test
    public void testTranspose() {
      List<List<Integer>> mat = new ArrayList<>(4);
      mat.add(Arrays.asList(1, 2, 3));
      mat.add(Arrays.asList(4, 5, 6));
      mat.add(Arrays.asList(7, 8, 9));
      mat.add(Arrays.asList(10, 11, 12));
  
      List<List<Integer>> expected = new ArrayList<>(3);
      expected.add(Arrays.asList(1, 4, 7, 10));
      expected.add(Arrays.asList(2, 5, 8, 11));
      expected.add(Arrays.asList(3, 6, 9, 12));
      List<List<Integer>> actual = TransposeUtils.transpose(mat);
      assertEquals(expected, actual);
    }
test_case.class_method_signature: TestTransposeUtils.testTranspose()
test_case.full_signature: @Test public void testTranspose()
test_case.identifier: testTranspose
test_case.invocations: add asList add asList add asList add asList add asList add asList add asList transpose assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTranspose()
focal_class.file: core/src/main/java/dk/alexandra/fresco/framework/util/TransposeUtils.java
focal_class.identifier: TransposeUtils
focal_class.class_method_signature: TransposeUtils.TransposeUtils()
focal_class.full_signature: private  TransposeUtils()
focal_class.identifier: TransposeUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  TransposeUtils()
focal_class.class_method_signature: TransposeUtils.transpose(List<List<T>> mat)
focal_class.full_signature: public static List<List<T>> transpose(List<List<T>> mat)
focal_class.identifier: transpose
focal_class.modifiers: public static
focal_class.parameters: (List<List<T>> mat)
focal_class.return: List<List<T>>
focal_class.signature: List<List<T>> transpose(List<List<T>> mat)
focal_method.body: public static <T> List<List<T>> transpose(List<List<T>> mat) {
      int height = mat.size();
      int width = mat.get(0).size();
      List<List<T>> transposed = new ArrayList<>(width);
      for (int w = 0; w < width; w++) {
        List<T> newRow = new ArrayList<>(height);
        for (List<T> aMat : mat) {
          newRow.add(aMat.get(w));
        }
        transposed.add(newRow);
      }
      return transposed;
    }
focal_method.class_method_signature: TransposeUtils.transpose(List<List<T>> mat)
focal_method.full_signature: public static List<List<T>> transpose(List<List<T>> mat)
focal_method.identifier: transpose
focal_method.invocations: size size get add get add
focal_method.modifiers: public static
focal_method.parameters: (List<List<T>> mat)
focal_method.return: List<List<T>>
focal_method.signature: List<List<T>> transpose(List<List<T>> mat)