METHOD_0 ( ) { java . util . List < org . IDENT_0 . api . IDENT_1 . IDENT_2 > l = java . util . Arrays . < org . IDENT_0 . api . IDENT_1 . IDENT_2 > asList ( new org . IDENT_0 . api . IDENT_1 . METHOD_1 ( 1 ) , new org . IDENT_0 . api . IDENT_1 . METHOD_2 ( org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 2 , 3 , 4 } , new long [ ] { 1 , 3 } , IDENT_3 . IDENT_4 ) ) , new org . IDENT_0 . api . IDENT_1 . METHOD_1 ( 5 ) , new org . IDENT_0 . api . IDENT_1 . METHOD_2 ( org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 6 , 7 , 8 } , new long [ ] { 1 , 3 } , IDENT_3 . IDENT_4 ) ) , new org . IDENT_0 . api . IDENT_1 . METHOD_3 ( 9 ) , new org . IDENT_0 . api . IDENT_1 . METHOD_3 ( 1 ) ) ; org . nd4j . linalg . api . ndarray . INDArray exp = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 1 } , new long [ ] { 1 , 10 } , IDENT_3 . IDENT_4 ) ; org . nd4j . linalg . api . ndarray . INDArray IDENT_5 = org . IDENT_0 . api . util . ndarray . IDENT_6 . toArray ( l ) ; "<AssertPlaceHolder>" ; } toArray ( java . util . Collection ) { java . util . List < org . IDENT_0 . api . util . ndarray . IDENT_2 > l ; if ( record instanceof java . util . List ) { l = ( ( java . util . List < org . IDENT_0 . api . util . ndarray . IDENT_2 > ) ( record ) ) ; } else { l = new java . util . ArrayList ( record ) ; } if ( ( ( l . size ( ) ) == 1 ) && ( ( l . get ( 0 ) ) instanceof org . IDENT_0 . api . util . ndarray . METHOD_2 ) ) { return ( ( org . IDENT_0 . api . util . ndarray . METHOD_2 ) ( l . get ( 0 ) ) ) . get ( ) ; } int length = 0 ; for ( org . IDENT_0 . api . util . ndarray . IDENT_2 IDENT_7 : record ) { if ( IDENT_7 instanceof org . IDENT_0 . api . util . ndarray . METHOD_2 ) { org . nd4j . linalg . api . ndarray . INDArray a = ( ( org . IDENT_0 . api . util . ndarray . METHOD_2 ) ( IDENT_7 ) ) . get ( ) ; if ( ! ( a . METHOD_4 ( ) ) ) { throw new java . lang . METHOD_5 ( ( ( STRING_0 + STRING_1 ) + ( java . util . Arrays . toString ( a . METHOD_6 ( ) ) ) ) ) ; } length += a . length ( ) ; } else { length ++ ; } } org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . create ( 1 , length ) ; int k = 0 ; for ( org . IDENT_0 . api . util . ndarray . IDENT_2 IDENT_7 : record ) { if ( IDENT_7 instanceof org . IDENT_0 . api . util . ndarray . METHOD_2 ) { org . nd4j . linalg . api . ndarray . INDArray IDENT_8 = ( ( org . IDENT_0 . api . util . ndarray . METHOD_2 ) ( IDENT_7 ) ) . get ( ) ; arr . put ( new org . nd4j . linalg . indexing . IDENT_9 [ ] { org . nd4j . linalg . indexing . IDENT_10 . METHOD_7 ( 0 ) , org . nd4j . linalg . indexing . IDENT_10 . METHOD_8 ( k , ( k + ( IDENT_8 . length ( ) ) ) ) } , IDENT_8 ) ; k += IDENT_8 . length ( ) ; } else { arr . METHOD_9 ( 0 , k , IDENT_7 . METHOD_10 ( ) ) ; k ++ ; } } return arr ; }
org . junit . Assert . assertEquals ( exp , IDENT_5 )