// Path: miniguava-base/src/main/java/net/ypresto/miniguava/base/Function.java
// public interface Function<F, T> {
//   /**
//    * Returns the result of applying this function to {@code input}. This method is <i>generally
//    * expected</i>, but not absolutely required, to have the following properties:
//    *
//    * <ul>
//    * <li>Its execution does not cause any observable side effects.
//    * <li>The computation is <i>consistent with equals</i>; that is, {@link Objects#equal
//    *     Objects.equal}{@code (a, b)} implies that {@code Objects.equal(function.apply(a),
//    *     function.apply(b))}.
//    * </ul>
//    *
//    * @throws NullPointerException if {@code input} is null and this function does not accept null
//    *     arguments
//    */
//   @Nullable
//   T apply(@Nullable F input);
// 
//   /**
//    * Indicates whether another object is equal to this function.
//    *
//    * <p>Most implementations will have no reason to override the behavior of {@link Object#equals}.
//    * However, an implementation may also choose to return {@code true} whenever {@code object} is a
//    * {@link Function} that it considers <i>interchangeable</i> with this one. "Interchangeable"
//    * <i>typically</i> means that {@code Objects.equal(this.apply(f), that.apply(f))} is true for all
//    * {@code f} of type {@code F}. Note that a {@code false} result from this method does not imply
//    * that the functions are known <i>not</i> to be interchangeable.
//    */
//   @Override
//   boolean equals(@Nullable Object object);
// }


import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.collect.testing.IteratorFeature.UNMODIFIABLE;
import static com.google.common.truth.Truth.assertThat;
import static java.util.Arrays.asList;
import static java.util.Collections.singletonList;
import com.google.common.base.Functions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.google.common.collect.Ordering;
import com.google.common.collect.testing.IteratorTester;
import com.google.common.collect.testing.ListTestSuiteBuilder;
import com.google.common.collect.testing.TestStringListGenerator;
import com.google.common.collect.testing.features.CollectionFeature;
import com.google.common.collect.testing.features.CollectionSize;
import com.google.common.collect.testing.features.ListFeature;
import com.google.common.testing.NullPointerTester;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import net.ypresto.miniguava.annotations.MiniGuavaSpecific;
import net.ypresto.miniguava.base.Function;
import org.easymock.EasyMock;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import java.util.NoSuchElementException;
import java.util.RandomAccess;
import javax.annotation.Nullable;
    first.set(1, 6);
    assertEquals(asList(3, 6, 5), list);
  }

  public void testPartitionSize_1() {
    List<Integer> list = asList(1, 2, 3);
    assertEquals(1, Lists.partition(list, Integer.MAX_VALUE).size());
    assertEquals(1, Lists.partition(list, Integer.MAX_VALUE - 1).size());
  }

  public void testPartitionSize_2() {
    assertEquals(2, Lists.partition(Collections.nCopies(0x40000001, 1), 0x40000000).size());
  }

  @MiniGuavaSpecific(value = MiniGuavaSpecific.Reason.COPIED, from = "OrderingTest")
  private static class NumberOrdering extends Ordering<Number> {
    @Override public int compare(Number a, Number b) {
      return ((Double) a.doubleValue()).compareTo(b.doubleValue());
    }
    @Override public int hashCode() {
      return NumberOrdering.class.hashCode();
    }
    @Override public boolean equals(Object other) {
      return other instanceof NumberOrdering;
    }
  }

  @MiniGuavaSpecific(value = MiniGuavaSpecific.Reason.MOVED, from = "OrderingTest") // miniguava: rewritten.
  public void testSortedCopy() {
    NumberOrdering numberOrdering = new NumberOrdering();
// Path: miniguava-base/src/main/java/net/ypresto/miniguava/base/Function.java
// public interface Function<F, T> {
//   /**
//    * Returns the result of applying this function to {@code input}. This method is <i>generally
//    * expected</i>, but not absolutely required, to have the following properties:
//    *
//    * <ul>
//    * <li>Its execution does not cause any observable side effects.
//    * <li>The computation is <i>consistent with equals</i>; that is, {@link Objects#equal
//    *     Objects.equal}{@code (a, b)} implies that {@code Objects.equal(function.apply(a),
//    *     function.apply(b))}.
//    * </ul>
//    *
//    * @throws NullPointerException if {@code input} is null and this function does not accept null
//    *     arguments
//    */
//   @Nullable
//   T apply(@Nullable F input);
// 
//   /**
//    * Indicates whether another object is equal to this function.
//    *
//    * <p>Most implementations will have no reason to override the behavior of {@link Object#equals}.
//    * However, an implementation may also choose to return {@code true} whenever {@code object} is a
//    * {@link Function} that it considers <i>interchangeable</i> with this one. "Interchangeable"
//    * <i>typically</i> means that {@code Objects.equal(this.apply(f), that.apply(f))} is true for all
//    * {@code f} of type {@code F}. Note that a {@code false} result from this method does not imply
//    * that the functions are known <i>not</i> to be interchangeable.
//    */
//   @Override
//   boolean equals(@Nullable Object object);
// }


// Path: miniguava-collect/src/test/java/net/ypresto/miniguava/collect/ListsTest.java
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.collect.testing.IteratorFeature.UNMODIFIABLE;
import static com.google.common.truth.Truth.assertThat;
import static java.util.Arrays.asList;
import static java.util.Collections.singletonList;
import com.google.common.base.Functions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.google.common.collect.Ordering;
import com.google.common.collect.testing.IteratorTester;
import com.google.common.collect.testing.ListTestSuiteBuilder;
import com.google.common.collect.testing.TestStringListGenerator;
import com.google.common.collect.testing.features.CollectionFeature;
import com.google.common.collect.testing.features.CollectionSize;
import com.google.common.collect.testing.features.ListFeature;
import com.google.common.testing.NullPointerTester;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import net.ypresto.miniguava.annotations.MiniGuavaSpecific;
import net.ypresto.miniguava.base.Function;
import org.easymock.EasyMock;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import java.util.NoSuchElementException;
import java.util.RandomAccess;
import javax.annotation.Nullable;

    first.set(1, 6);
    assertEquals(asList(3, 6, 5), list);
  }

  public void testPartitionSize_1() {
    List<Integer> list = asList(1, 2, 3);
    assertEquals(1, Lists.partition(list, Integer.MAX_VALUE).size());
    assertEquals(1, Lists.partition(list, Integer.MAX_VALUE - 1).size());
  }

  public void testPartitionSize_2() {
    assertEquals(2, Lists.partition(Collections.nCopies(0x40000001, 1), 0x40000000).size());
  }

  @MiniGuavaSpecific(value = MiniGuavaSpecific.Reason.COPIED, from = "OrderingTest")
  private static class NumberOrdering extends Ordering<Number> {
    @Override public int compare(Number a, Number b) {
      return ((Double) a.doubleValue()).compareTo(b.doubleValue());
    }
    @Override public int hashCode() {
      return NumberOrdering.class.hashCode();
    }
    @Override public boolean equals(Object other) {
      return other instanceof NumberOrdering;
    }
  }

  @MiniGuavaSpecific(value = MiniGuavaSpecific.Reason.MOVED, from = "OrderingTest") // miniguava: rewritten.
  public void testSortedCopy() {
    NumberOrdering numberOrdering = new NumberOrdering();
    List<Integer> unsortedInts = Collections.unmodifiableList(