collection ( ) { java . util . Collection < java . lang . String > IDENT_0 = java . util . Arrays . asList ( "1" ) ; java . util . Collection < java . lang . String > IDENT_1 = java . util . Arrays . asList ( "2" , STRING_0 ) ; java . lang . String expected = "" + ( ( ( STRING_1 + STRING_2 ) + STRING_3 ) + STRING_4 ) ; System . out . println ( IDENT_2 . METHOD_0 ( java . util . Arrays . asList ( IDENT_0 , IDENT_1 ) ) ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( java . util . List , java . lang . String [ ] ) { if ( list . isEmpty ( ) ) return STRING_5 ; boolean IDENT_3 = ( list . get ( 0 ) ) instanceof java . util . List < ? > ; if ( IDENT_3 ) fields = METHOD_1 ( list ) ; if ( ( fields . length ) == 0 ) return STRING_6 ; java . util . List < java . lang . String > IDENT_4 = new java . util . ArrayList ( java . util . Arrays . asList ( fields ) ) ; java . util . Map < java . lang . String , java . lang . Integer > IDENT_5 = new java . util . HashMap ( ) ; for ( java . lang . String column : IDENT_4 ) METHOD_2 ( IDENT_5 , column , column ) ; java . util . List < java . util . Map < java . lang . String , java . lang . String > > IDENT_6 = new java . util . ArrayList ( ) ; for ( java . lang . Object item : list ) { java . util . Map < java . lang . String , java . lang . String > row = new java . util . HashMap ( ) ; if ( IDENT_3 ) { java . util . List < ? > IDENT_7 = ( ( java . util . List < ? > ) ( item ) ) ; for ( int i = 0 ; i < ( IDENT_7 . size ( ) ) ; ++ i ) { java . lang . String column = java . lang . String . valueOf ( i ) ; java . lang . String value = IDENT_7 . get ( i ) . toString ( ) ; row . put ( ( STRING_7 + column ) , value ) ; METHOD_2 ( IDENT_5 , column , value ) ; } } else { for ( java . lang . String column : new java . util . ArrayList ( IDENT_4 ) ) { java . lang . String value = METHOD_3 ( item , column , IDENT_4 ) ; if ( value == null ) continue ; row . put ( column , value ) ; METHOD_2 ( IDENT_5 , column , value ) ; } } IDENT_6 . add ( row ) ; } if ( IDENT_4 . isEmpty ( ) ) return STRING_8 ; java . lang . StringBuffer sb = new java . lang . StringBuffer ( ) ; METHOD_4 ( sb , IDENT_4 , IDENT_5 ) ; METHOD_5 ( sb , IDENT_6 , IDENT_4 , IDENT_5 ) ; return sb . toString ( ) ; }
org . junit . Assert . assertEquals ( expected , IDENT_2 . METHOD_0 ( java . util . Arrays . asList ( IDENT_0 , IDENT_1 ) ) )