class SubarraysShouldHaveSameSize extends BasicErrorMessageFactory {

  private static final String MESSAGE = "%n" +
                                        "actual and expected 2d arrays should be deeply equal but rows at index %s differ:%n" +
                                        "actual[%s] size is %s and expected[%s] is %s.%n" +
                                        "actual[%s] was:%n" +
                                        "  %s%n" +
                                        "expected[%s] was:%n" +
                                        "  %s%n" +
                                        "actual was:%n" +
                                        "  %s%n" +
                                        "expected was:%n" +
                                        "  %s";

  /**
   * Creates a new <code>{@link SubarraysShouldHaveSameSize}</code>.
   * @param actual the actual 2D array in the failed assertion.
   * @param expected the actual 2D array to compare actual with.
   * @param actualSubArray actual[index] array
   * @param actualSubArrayLength actual[index] lentgth
   * @param expectedSubArray expected[index]
   * @param expectedSubArrayLength actual[index] lentgth
   * @param index index of {@code actualSubArray}, e.g. {@code 3} when checking size (length) of {@code actual[3]}
   * @return the created {@code ErrorMessageFactory}
   */
  public static ErrorMessageFactory subarraysShouldHaveSameSize(Object actual, Object expected, Object actualSubArray,
                                                                int actualSubArrayLength, Object expectedSubArray,
                                                                int expectedSubArrayLength, int index) {<FILL_FUNCTION_BODY>}

  private SubarraysShouldHaveSameSize(Object actual, Object expected, Object actualSubArray, int actualSubArrayLength,
                                      Object expectedSubArray, int expectedSubArrayLength, int index) {
    // reuse %s to let representation format the arrays but don't do it for integers as we want to keep the default toString of
    // int (that would mot be the case if the representation was changed to hex representation for example).
    super(format(MESSAGE, index, index, actualSubArrayLength, index, expectedSubArrayLength, index, "%s", index, "%s", "%s",
                 "%s"),
          actualSubArray, expectedSubArray, actual, expected);
  }

}

    return new SubarraysShouldHaveSameSize(actual, expected, actualSubArray, actualSubArrayLength, expectedSubArray,
                                           expectedSubArrayLength, index);
  
<methods>public transient void <init>(java.lang.String, java.lang.Object[]) ,public java.lang.String create(org.assertj.core.description.Description, org.assertj.core.presentation.Representation) ,public java.lang.String create(org.assertj.core.description.Description) ,public java.lang.String create() ,public boolean equals(java.lang.Object) ,public int hashCode() ,public java.lang.String toString() <variables>protected final non-sealed java.lang.Object[] arguments,protected final non-sealed java.lang.String format,org.assertj.core.error.MessageFormatter formatter