test_class.declarator: list05 = Arrays.asList(0,1,2,3,4,5)
test_class.modifier: private static final
test_class.original_string: private static final List<Integer> list05 = Arrays.asList(0,1,2,3,4,5);
test_class.type: List<Integer>
test_class.var_name: list05
test_class.declarator: list15 = Arrays.asList(1,2,3,4,5)
test_class.modifier: private static final
test_class.original_string: private static final List<Integer> list15 = Arrays.asList(1,2,3,4,5);
test_class.type: List<Integer>
test_class.var_name: list15
test_class.declarator: list06 = Arrays.asList(0,1,2,3,4,5,6)
test_class.modifier: private static final
test_class.original_string: private static final List<Integer> list06 = Arrays.asList(0,1,2,3,4,5,6);
test_class.type: List<Integer>
test_class.var_name: list06
test_class.declarator: listFlip = Arrays.asList(0,1,2,3,5,4)
test_class.modifier: private static final
test_class.original_string: private static final List<Integer> listFlip = Arrays.asList(0,1,2,3,5,4);
test_class.type: List<Integer>
test_class.var_name: listFlip
test_class.declarator: listGap = Arrays.asList(5,0,1,2,3,4)
test_class.modifier: private static final
test_class.original_string: private static final List<Integer> listGap = Arrays.asList(5,0,1,2,3,4);
test_class.type: List<Integer>
test_class.var_name: listGap
test_class.declarator: listMultiReorder = Arrays.asList(5,0,4,1,2,3)
test_class.modifier: private static final
test_class.original_string: private static final List<Integer> listMultiReorder = Arrays.asList(5,0,4,1,2,3);
test_class.type: List<Integer>
test_class.var_name: listMultiReorder
test_class.declarator: listSwap = Arrays.asList(5,1,2,3,4,0)
test_class.modifier: private static final
test_class.original_string: private static final List<Integer> listSwap = Arrays.asList(5,1,2,3,4,0);
test_class.type: List<Integer>
test_class.var_name: listSwap
test_class.file: adapper/src/test/java/com/scopely/adapper/utils/ListUtilsTest.java
test_class.identifier: ListUtilsTest
test_case.body: @Test
      public void testMultiInsert() {
          SparseBooleanArray insertions = ListUtils.getInsertions(list15, list06);
          assertThat(insertions.size(), is(2));
          assertThat(insertions.get(6), is(true));
          assertThat(insertions.get(0), is(true));
      }
test_case.class_method_signature: ListUtilsTest.testMultiInsert()
test_case.full_signature: @Test public void testMultiInsert()
test_case.identifier: testMultiInsert
test_case.invocations: getInsertions assertThat size is assertThat get is assertThat get is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMultiInsert()
focal_class.file: adapper/src/main/java/com/scopely/adapper/utils/ListUtils.java
focal_class.identifier: ListUtils
focal_class.class_method_signature: ListUtils.getInsertions(@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)
focal_class.full_signature: public static SparseBooleanArray getInsertions(@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)
focal_class.identifier: getInsertions
focal_class.modifiers: public static
focal_class.parameters: (@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)
focal_class.return: SparseBooleanArray
focal_class.signature: SparseBooleanArray getInsertions(@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)
focal_class.class_method_signature: ListUtils.getDeletions(@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)
focal_class.full_signature: public static SparseBooleanArray getDeletions(@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)
focal_class.identifier: getDeletions
focal_class.modifiers: public static
focal_class.parameters: (@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)
focal_class.return: SparseBooleanArray
focal_class.signature: SparseBooleanArray getDeletions(@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)
focal_class.class_method_signature: ListUtils.getReorderings(List<? extends Item> oldList, List<? extends Item> newList)
focal_class.full_signature: public static SparseIntArray getReorderings(List<? extends Item> oldList, List<? extends Item> newList)
focal_class.identifier: getReorderings
focal_class.modifiers: public static
focal_class.parameters: (List<? extends Item> oldList, List<? extends Item> newList)
focal_class.return: SparseIntArray
focal_class.signature: SparseIntArray getReorderings(List<? extends Item> oldList, List<? extends Item> newList)
focal_class.class_method_signature: ListUtils.calculateMoves(List<? extends Item> oldList, List<? extends Item> newList)
focal_class.full_signature: private static List<Pair<Integer, Integer>> calculateMoves(List<? extends Item> oldList, List<? extends Item> newList)
focal_class.identifier: calculateMoves
focal_class.modifiers: private static
focal_class.parameters: (List<? extends Item> oldList, List<? extends Item> newList)
focal_class.return: List<Pair<Integer, Integer>>
focal_class.signature: List<Pair<Integer, Integer>> calculateMoves(List<? extends Item> oldList, List<? extends Item> newList)
focal_class.class_method_signature: ListUtils.calculateNetMoveScores(List<Pair<Integer, Integer>> moveList)
focal_class.full_signature: private static List<Integer> calculateNetMoveScores(List<Pair<Integer, Integer>> moveList)
focal_class.identifier: calculateNetMoveScores
focal_class.modifiers: private static
focal_class.parameters: (List<Pair<Integer, Integer>> moveList)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> calculateNetMoveScores(List<Pair<Integer, Integer>> moveList)
focal_class.class_method_signature: ListUtils.extractReordering(List<Pair<Integer, Integer>> moveList, List<Integer> netMoveScores, SparseIntArray reorderings)
focal_class.full_signature: private static boolean extractReordering(List<Pair<Integer, Integer>> moveList, List<Integer> netMoveScores, SparseIntArray reorderings)
focal_class.identifier: extractReordering
focal_class.modifiers: private static
focal_class.parameters: (List<Pair<Integer, Integer>> moveList, List<Integer> netMoveScores, SparseIntArray reorderings)
focal_class.return: boolean
focal_class.signature: boolean extractReordering(List<Pair<Integer, Integer>> moveList, List<Integer> netMoveScores, SparseIntArray reorderings)
focal_class.class_method_signature: ListUtils.generateString(List<Pair<Integer, Integer>> moveList)
focal_class.full_signature: private static String generateString(List<Pair<Integer, Integer>> moveList)
focal_class.identifier: generateString
focal_class.modifiers: private static
focal_class.parameters: (List<Pair<Integer, Integer>> moveList)
focal_class.return: String
focal_class.signature: String generateString(List<Pair<Integer, Integer>> moveList)
focal_class.class_method_signature: ListUtils.cleanNetMoveList(List<Integer> netMoveScores, List<Pair<Integer, Integer>> moveList)
focal_class.full_signature: private static void cleanNetMoveList(List<Integer> netMoveScores, List<Pair<Integer, Integer>> moveList)
focal_class.identifier: cleanNetMoveList
focal_class.modifiers: private static
focal_class.parameters: (List<Integer> netMoveScores, List<Pair<Integer, Integer>> moveList)
focal_class.return: void
focal_class.signature: void cleanNetMoveList(List<Integer> netMoveScores, List<Pair<Integer, Integer>> moveList)
focal_class.class_method_signature: ListUtils.indexOfHighestNetMove(List<Integer> netMoveScores)
focal_class.full_signature: private static int indexOfHighestNetMove(List<Integer> netMoveScores)
focal_class.identifier: indexOfHighestNetMove
focal_class.modifiers: private static
focal_class.parameters: (List<Integer> netMoveScores)
focal_class.return: int
focal_class.signature: int indexOfHighestNetMove(List<Integer> netMoveScores)
focal_class.class_method_signature: ListUtils.getNewIndicesOfOldIndicesAboveIndex(Integer index, List<Pair<Integer, Integer>> moveList)
focal_class.full_signature: private static List<Integer> getNewIndicesOfOldIndicesAboveIndex(Integer index, List<Pair<Integer, Integer>> moveList)
focal_class.identifier: getNewIndicesOfOldIndicesAboveIndex
focal_class.modifiers: private static
focal_class.parameters: (Integer index, List<Pair<Integer, Integer>> moveList)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> getNewIndicesOfOldIndicesAboveIndex(Integer index, List<Pair<Integer, Integer>> moveList)
focal_method.body: public static <Item> SparseBooleanArray getInsertions(@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList){
          SparseBooleanArray list = new SparseBooleanArray();
          if(oldList != null) {
              int size = newList.size();
              for (int newIndex = 0; newIndex < size; newIndex++) {
                  Item itemFromNewList = newList.get(newIndex);
                  if (oldList.indexOf(itemFromNewList) == NOT_PRESENT) {
                      list.put(newIndex, true);
                  }
              }
          }
          return list;
      }
focal_method.class_method_signature: ListUtils.getInsertions(@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)
focal_method.full_signature: public static SparseBooleanArray getInsertions(@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)
focal_method.identifier: getInsertions
focal_method.invocations: size get indexOf put
focal_method.modifiers: public static
focal_method.parameters: (@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)
focal_method.return: SparseBooleanArray
focal_method.signature: SparseBooleanArray getInsertions(@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList)