METHOD_0 ( ) { final org . eclipse . IDENT_0 . query . IDENT_1 . IDENT_2 IDENT_3 = org . apache . rya . api . function . IDENT_4 . IDENT_5 . METHOD_1 ( ( STRING_0 + ( ( ( ( ( ( ( STRING_1 3 + STRING_1 8 ) + STRING_2 ) + STRING_1 7 ) + STRING_3 ) + STRING_1 6 ) + STRING_1 5 ) + STRING_1 7 ) ) ) ; final org . eclipse . IDENT_0 . model . IDENT_6 IDENT_7 = org . eclipse . IDENT_0 . model . impl . IDENT_8 . getInstance ( ) ; org . eclipse . IDENT_0 . query . impl . IDENT_9 IDENT_10 = new org . eclipse . IDENT_0 . query . impl . METHOD_2 ( ) ; IDENT_10 . METHOD_3 ( STRING_4 , IDENT_7 . METHOD_4 ( STRING_1 4 ) ) ; IDENT_10 . METHOD_3 ( STRING_5 , IDENT_7 . METHOD_4 ( STRING_6 ) ) ; final org . apache . rya . api . model . IDENT_11 original = new org . apache . rya . api . model . METHOD_5 ( IDENT_10 , STRING_1 1 ) ; final java . util . Set < org . apache . rya . api . model . METHOD_5 > expected = new java . util . HashSet ( ) ; final java . lang . String IDENT_12 = java . util . UUID . METHOD_6 ( ) . toString ( ) ; final org . eclipse . IDENT_0 . model . IDENT_13 IDENT_14 = IDENT_7 . METHOD_7 ( IDENT_12 ) ; IDENT_10 = new org . eclipse . IDENT_0 . query . impl . METHOD_2 ( ) ; IDENT_10 . METHOD_3 ( STRING_1 2 , IDENT_14 ) ; IDENT_10 . METHOD_3 ( STRING_1 , IDENT_15 . IDENT_16 ) ; IDENT_10 . METHOD_3 ( STRING_7 , IDENT_7 . METHOD_8 ( STRING_1 0 ) ) ; expected . add ( new org . apache . rya . api . model . METHOD_5 ( IDENT_10 , STRING_1 1 ) ) ; IDENT_10 = new org . eclipse . IDENT_0 . query . impl . METHOD_2 ( ) ; IDENT_10 . METHOD_3 ( STRING_1 2 , IDENT_14 ) ; IDENT_10 . METHOD_3 ( STRING_1 , IDENT_7 . METHOD_8 ( STRING_8 ) ) ; IDENT_10 . METHOD_3 ( STRING_7 , IDENT_7 . METHOD_4 ( STRING_1 4 ) ) ; expected . add ( new org . apache . rya . api . model . METHOD_5 ( IDENT_10 , STRING_1 1 ) ) ; IDENT_10 = new org . eclipse . IDENT_0 . query . impl . METHOD_2 ( ) ; IDENT_10 . METHOD_3 ( STRING_1 2 , IDENT_14 ) ; IDENT_10 . METHOD_3 ( STRING_1 , IDENT_7 . METHOD_8 ( STRING_9 ) ) ; IDENT_10 . METHOD_3 ( STRING_7 , IDENT_7 . METHOD_4 ( STRING_6 ) ) ; expected . add ( new org . apache . rya . api . model . METHOD_5 ( IDENT_10 , STRING_1 1 ) ) ; final java . util . Set < org . apache . rya . api . model . METHOD_5 > results = org . apache . rya . api . function . IDENT_4 . IDENT_17 . METHOD_9 ( IDENT_3 , ( ) -> IDENT_12 ) . project ( original ) ; "<AssertPlaceHolder>" ; } project ( java . lang . IDENT_18 ) { if ( ( IDENT_19 == null ) || ( ! ( IDENT_19 . iterator ( ) . hasNext ( ) ) ) ) { return false ; } final java . util . List < org . bson . IDENT_20 . IDENT_21 > IDENT_22 = new java . util . METHOD_10 ( ) ; final java . util . Set < java . lang . String > IDENT_23 = new java . util . HashSet ( ) ; java . util . Set < java . lang . String > IDENT_24 = null ; for ( final org . eclipse . IDENT_0 . query . IDENT_1 . IDENT_25 IDENT_4 : IDENT_19 ) { if ( IDENT_4 . METHOD_11 ( ) . isEmpty ( ) ) { return false ; } final org . bson . Document IDENT_26 = new org . bson . Document ( ) ; final org . bson . Document IDENT_27 = new org . bson . Document ( ) ; final org . bson . Document IDENT_28 = new org . bson . Document ( ) ; final java . util . Set < java . lang . String > IDENT_29 = new java . util . HashSet ( ) ; for ( final org . eclipse . IDENT_0 . query . IDENT_1 . IDENT_30 IDENT_31 : IDENT_4 . METHOD_11 ( ) ) { java . lang . String to = IDENT_31 . METHOD_12 ( ) ; if ( ! ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . METHOD_13 ( to ) ) ) { to = replace ( to ) ; } java . lang . String from = IDENT_31 . METHOD_14 ( ) ; if ( IDENT_34 . METHOD_15 ( from ) ) { from = IDENT_34 . METHOD_16 ( ) . get ( from ) ; } IDENT_29 . add ( to ) ; if ( to . equals ( from ) ) { IDENT_26 . append ( to , 1 ) ; IDENT_27 . append ( to , 1 ) ; IDENT_28 . append ( to , 1 ) ; } else { IDENT_26 . append ( to , org . apache . rya . mongodb . IDENT_32 . IDENT_33 . METHOD_17 ( from ) ) ; IDENT_27 . append ( to , org . apache . rya . mongodb . IDENT_32 . IDENT_33 . METHOD_18 ( from ) ) ; IDENT_28 . append ( to , org . apache . rya . mongodb . IDENT_32 . IDENT_33 . METHOD_19 ( from ) ) ; } } IDENT_23 . addAll ( IDENT_29 ) ; if ( IDENT_24 == null ) { IDENT_24 = new java . util . HashSet ( IDENT_29 ) ; } else { IDENT_24 . METHOD_20 ( IDENT_29 ) ; } IDENT_22 . add ( new org . bson . Document ( ) . append ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_35 , IDENT_26 ) . append ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_36 , IDENT_27 ) . append ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_37 , IDENT_28 ) . append ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_38 , ( STRING_10 + ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_38 ) ) ) . append ( org . apache . rya . mongodb . IDENT_32 . IDENT_39 , ( STRING_10 + ( IDENT_39 ) ) ) ) ; } if ( ( IDENT_22 . size ( ) ) == 1 ) { pipeline . add ( com . mongodb . client . model . IDENT_40 . project ( IDENT_22 . get ( 0 ) ) ) ; } else { final java . lang . String IDENT_41 = STRING_11 ; final org . bson . IDENT_20 . IDENT_21 IDENT_42 = com . mongodb . client . model . IDENT_43 . fields ( com . mongodb . client . model . IDENT_43 . METHOD_21 ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_35 , ( ( ( STRING_10 + IDENT_41 ) + STRING_12 ) + ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_35 ) ) ) , com . mongodb . client . model . IDENT_43 . METHOD_21 ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_36 , ( ( ( STRING_10 + IDENT_41 ) + STRING_12 ) + ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_36 ) ) ) , com . mongodb . client . model . IDENT_43 . METHOD_21 ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_37 , ( ( ( STRING_10 + IDENT_41 ) + STRING_12 ) + ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_37 ) ) ) , com . mongodb . client . model . IDENT_43 . METHOD_22 ( org . apache . rya . mongodb . IDENT_32 . IDENT_33 . IDENT_38 ) , com . mongodb . client . model . IDENT_43 . METHOD_22 ( org . apache . rya . mongodb . IDENT_32 . IDENT_39 ) ) ; pipeline . add ( com . mongodb . client . model . IDENT_40 . project ( com . mongodb . client . model . IDENT_43 . METHOD_21 ( IDENT_41 , IDENT_22 ) ) ) ; pipeline . add ( com . mongodb . client . model . IDENT_40 . METHOD_23 ( ( STRING_10 + IDENT_41 ) ) ) ; pipeline . add ( com . mongodb . client . model . IDENT_40 . project ( IDENT_42 ) ) ; } IDENT_44 . METHOD_24 ( ) ; IDENT_45 . METHOD_24 ( ) ; IDENT_44 . addAll ( IDENT_24 ) ; IDENT_45 . addAll ( IDENT_23 ) ; return true ; }
org . junit . Assert . assertEquals ( expected , results )