id
int64 0
46.7k
| buggy
stringlengths 22
390
| fixed
stringlengths 14
367
|
---|---|---|
3,500 | public static void METHOD_1 ( ) { <BUG> TYPE_1 . METHOD_2 ( STRING_1 , STRING_2 ) ;</BUG> TYPE_2 . METHOD_3 ( STRING_3 ) . METHOD_4 ( ) ; } | public static void METHOD_1 ( ) { if ( TYPE_1 . METHOD_2 ( STRING_1 , STRING_2 ) ) { TYPE_2 . METHOD_3 ( STRING_3 ) . METHOD_4 ( ) ; } }
|
3,501 | public void METHOD_1 ( TYPE_1 VAR_1 ) { TYPE_2 . METHOD_2 ( VAR_2 , ( STRING_1 + ( VAR_3 ) ) ) ; <BUG> METHOD_3 ( ) . METHOD_4 ( VAR_3 ) ;</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 ) { TYPE_2 . METHOD_2 ( VAR_2 , ( STRING_1 + ( VAR_3 ) ) ) ; VAR_1 . METHOD_4 ( VAR_3 ) ; }
|
3,502 | <BUG>public boolean METHOD_1 ( TYPE_1 VAR_1 , boolean VAR_2 ) {</BUG> if ( VAR_1 == null ) { return false ; } <BUG> return ( METHOD_2 ( VAR_1 , VAR_2 ) ) != null ;</BUG> } | public boolean METHOD_1 ( TYPE_1 VAR_1 ) { if ( VAR_1 == null ) { return false ; } return ( METHOD_2 ( VAR_1 ) ) != null ; }
|
3,503 | public void METHOD_1 ( ) { if ( ( METHOD_2 ( ) ) != null ) { <BUG> if ( ( VAR_1 . METHOD_3 ( ) ) >= ( this . METHOD_3 ( ) ) ) {</BUG> METHOD_4 ( ) ; <BUG><BUG> }</BUG></BUG> <BUG> else {METHOD_5 ( ) ;</BUG> } } } | public void METHOD_1 ( ) { if ( ( METHOD_2 ( ) ) != null ) { METHOD_4 ( ) ; } }
|
3,504 | protected void METHOD_1 ( ) { super . METHOD_1 ( ) ; <BUG> TYPE_1 . METHOD_2 ( this ) ;</BUG> } | protected void METHOD_1 ( ) { TYPE_1 . METHOD_2 ( this ) ; super . METHOD_1 ( ) ; }
|
3,505 | public void METHOD_1 ( TYPE_1 listener ) { <BUG> if ( listener == null ) {</BUG> VAR_1 = listener ; } } | public void METHOD_1 ( TYPE_1 listener ) { if ( listener != null ) { VAR_1 = listener ; } }
|
3,506 | protected final void METHOD_1 ( TYPE_1 VAR_1 ) { int VAR_2 = TYPE_2 . METHOD_2 ( VAR_1 ) . METHOD_3 ( this . id ) ; <BUG> METHOD_4 ( VAR_1 , this . METHOD_5 ( VAR_2 , VAR_1 ) , false ) ;</BUG> } | protected final void METHOD_1 ( TYPE_1 VAR_1 ) { int VAR_2 = TYPE_2 . METHOD_2 ( VAR_1 ) . METHOD_3 ( this . id ) ; METHOD_4 ( VAR_1 , this . METHOD_5 ( VAR_2 , VAR_1 ) ) ; }
|
3,507 | private static TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { <BUG> if ( ( VAR_1 . METHOD_2 ( VAR_2 ) ) != null ) return VAR_3 ;else if ( ( VAR_1 . METHOD_2 ( VAR_4 ) ) != null ) return VAR_5 ;</BUG> else return VAR_6 ; } | private static TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { if ( ( VAR_1 . METHOD_2 ( VAR_4 ) ) != null ) return VAR_5 ; else return VAR_6 ; }
|
3,508 | public boolean METHOD_1 ( TYPE_1 value , TYPE_2 context ) { return ( value . getValue ( ) . compareTo ( VAR_1 ) ) >= 0 ; } | public boolean METHOD_1 ( TYPE_1 value , TYPE_2 context ) { if ( value == null ) { return true ; } return ( value . getValue ( ) . compareTo ( VAR_1 ) ) >= 0 ; }
|
3,509 | public void METHOD_1 ( int VAR_1 ) { <BUG> if ( ( VAR_1 > INT_1 ) && ( VAR_1 < 1 ) ) {java.lang.System.out.println ( STRING_1 ) ;}</BUG> else { <BUG> VAR_2 = new TYPE_1 [ VAR_1 ] ;</BUG> VAR_3 = VAR_1 ; } } | public void METHOD_1 ( int VAR_1 ) { if ( ( VAR_1 > INT_1 ) || ( VAR_1 < 1 ) ) java.lang.System.out.println ( STRING_1 ) ; else { VAR_3 = VAR_1 ; } }
|
3,510 | public boolean METHOD_1 ( TYPE_1 state ) { <BUG> return true ;</BUG> } | public boolean METHOD_1 ( TYPE_1 state ) { return false ; }
|
3,511 | public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { <BUG> assert METHOD_2 ( VAR_1 ) : STRING_1 ;</BUG> return VAR_2 . get ( VAR_1 ) ; } | public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { return VAR_2 . get ( VAR_1 ) ; }
|
3,512 | public void METHOD_1 ( ) { METHOD_2 ( ) ; <BUG> METHOD_3 ( this ) ;</BUG> } | public void METHOD_1 ( ) { METHOD_2 ( ) ; METHOD_3 ( ) ; }
|
3,513 | public void METHOD_1 ( TYPE_1 VAR_1 , int i ) { <BUG> VAR_1 . METHOD_2 ( ) ;TYPE_2 . METHOD_3 ( METHOD_4 ( ) , ( ( VAR_2 . METHOD_5 ( ) ) + STRING_1 ) , VAR_3 ) . show ( ) ;</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 , int i ) { }
|
3,514 | <BUG>private static long METHOD_1 ( ) {</BUG> return INT_1 ; } | static long METHOD_1 ( ) { return INT_1 ; }
|
3,515 | <BUG>private int METHOD_1 ( int VAR_1 , int VAR_2 ) {</BUG> int VAR_3 = 1 ; for ( int i = VAR_2 ; i > ( VAR_2 - VAR_1 ) ; i -- ) { VAR_3 *= i ; } return VAR_3 ; } | public int METHOD_1 ( int VAR_1 , int VAR_2 ) { int VAR_3 = 1 ; for ( int i = VAR_2 ; i > ( VAR_2 - VAR_1 ) ; i -- ) { VAR_3 *= i ; } return VAR_3 ; }
|
3,516 | public static void METHOD_1 ( char [ ] array ) { for ( int i = 0 ; i < ( array . length ) ; i ++ ) { java.lang.System.out.print ( ( ( array [ i ] ) + STRING_1 ) ) ; } } | public static void METHOD_1 ( char [ ] array ) { for ( int i = 0 ; i < ( array . length ) ; i ++ ) { java.lang.System.out.print ( ( ( array [ i ] ) + STRING_1 ) ) ; } java.lang.System.out.println ( ) ; }
|
3,517 | void METHOD_1 ( ) throws TYPE_1 { VAR_1 . METHOD_1 ( ) ; } | void METHOD_1 ( ) throws TYPE_1 { if ( ( VAR_1 ) != null ) { VAR_1 . METHOD_1 ( ) ; } }
|
3,518 | <BUG>public void METHOD_1 ( java.lang.String event , java.lang.String VAR_1 , java.lang.String VAR_2 , java.util.Map < java.lang.String , java.lang.Object > VAR_3 , java.lang.String VAR_4 ) throws TYPE_1 ;</BUG> | public void METHOD_1 ( java.lang.String event , java.lang.String VAR_1 , java.lang.String VAR_2 , java.util.Map < java.lang.String , java.lang.Object > VAR_3 ) throws TYPE_1 ;
|
3,519 | public TYPE_1 METHOD_1 ( ) { final TYPE_2 VAR_1 = VAR_2 . METHOD_2 ( ) ; return TYPE_3 . METHOD_3 ( VAR_1 , VAR_3 ) ; } | public TYPE_1 METHOD_1 ( ) { if ( ( VAR_2 ) == null ) { return null ; } final TYPE_2 VAR_1 = VAR_2 . METHOD_2 ( ) ; return TYPE_3 . METHOD_3 ( VAR_1 , VAR_3 ) ; }
|
3,520 | private java.lang.String METHOD_1 ( java.lang.String VAR_1 ) { java.lang.String VAR_2 = STRING_1 ; <BUG> TYPE_1 . METHOD_2 ( VAR_3 , STRING_2 ) ;</BUG> return TYPE_2 . METHOD_3 ( VAR_1 , VAR_2 ) ; } | private java.lang.String METHOD_1 ( java.lang.String VAR_1 ) { java.lang.String VAR_2 = STRING_1 ; TYPE_1 . i ( VAR_3 , STRING_2 ) ; return TYPE_2 . METHOD_3 ( VAR_1 , VAR_2 ) ; }
|
3,521 | <BUG>protected int METHOD_1 ( byte [ ] b , int VAR_1 , int VAR_2 ) throws java.io.IOException {return super . METHOD_2 ( b , VAR_1 , VAR_2 ) ;</BUG> } | public int METHOD_2 ( byte [ ] b , int VAR_1 , int VAR_2 ) throws java.io.IOException { return METHOD_1 ( b , VAR_1 , VAR_2 ) ; }
|
3,522 | <BUG>private java.lang.String METHOD_1 ( TYPE_1 VAR_1 ) {return ( getClass ( ) . METHOD_2 ( ) ) + ( VAR_1 . METHOD_3 ( ) . METHOD_4 ( ) ) ;</BUG> } | private java.lang.String METHOD_1 ( java.io.File VAR_1 ) { return ( getClass ( ) . METHOD_2 ( ) ) + ( VAR_1 . METHOD_4 ( ) ) ; }
|
3,523 | private void METHOD_1 ( TYPE_1 VAR_1 , java.lang.String VAR_2 ) { TYPE_2 VAR_3 = TYPE_3 . METHOD_2 ( VAR_1 ) ; if ( VAR_3 == null ) VAR_1 . METHOD_3 ( ) ; <BUG> VAR_3 . METHOD_1 ( STRING_1 . equals ( VAR_2 ) ) ;</BUG> } | private void METHOD_1 ( TYPE_1 VAR_1 , java.lang.String VAR_2 ) { TYPE_2 VAR_3 = TYPE_3 . METHOD_2 ( VAR_1 ) ; if ( VAR_3 == null ) VAR_1 . METHOD_3 ( ) ; else VAR_3 . METHOD_1 ( STRING_1 . equals ( VAR_2 ) ) ; }
|
3,524 | public boolean METHOD_1 ( final java.lang.Object VAR_1 , java.lang.String context ) { <BUG> java.util.List < TYPE_1 > VAR_2 = METHOD_2 ( VAR_1 , context ) ;return ( VAR_2 . size ( ) ) > 0 ;</BUG> } | public boolean METHOD_1 ( final java.lang.Object VAR_1 , java.lang.String context ) { return ( METHOD_2 ( VAR_1 , context ) . size ( ) ) > 0 ; }
|
3,525 | public java.lang.String METHOD_1 ( ) { <BUG> return ( STRING_1 + ( get ( ) . replace ( STRING_1 , STRING_2 ) ) ) + STRING_1 ;</BUG> } | public java.lang.String METHOD_1 ( ) { if ( ( get ( ) ) == null ) return STRING_2 ; else return ( STRING_1 + ( get ( ) . replace ( STRING_1 , STRING_2 ) ) ) + STRING_1 ; }
|
3,526 | protected static void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 , TYPE_3 VAR_3 , int VAR_4 ) throws TYPE_4 { <BUG> TYPE_5 . info ( STRING_1 ) ;</BUG> VAR_1 . METHOD_2 ( VAR_2 , VAR_3 , VAR_4 ) ; } | protected static void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 , TYPE_3 VAR_3 , int VAR_4 ) throws TYPE_4 { VAR_1 . METHOD_2 ( VAR_2 , VAR_3 , VAR_4 ) ; }
|
3,527 | public void METHOD_1 ( ) throws java.lang.Exception { <BUG> android.content.Context VAR_1 = TYPE_1 . METHOD_2 ( ) ;assertEquals ( STRING_1 , VAR_1 . METHOD_3 ( ) ) ;</BUG> } | public void METHOD_1 ( ) throws java.lang.Exception { }
|
3,528 | public void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; this . VAR_2 = VAR_1 . getString ( STRING_1 ) ; <BUG> this . VAR_3 = VAR_1 . getBoolean ( STRING_2 ) ;</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; this . VAR_2 = VAR_1 . getString ( STRING_1 ) ; }
|
3,529 | public java.lang.Boolean METHOD_1 ( ) { return VAR_1 . METHOD_2 ( ) ; } | public java.lang.Boolean METHOD_1 ( ) { if ( ( VAR_1 ) == null ) return false ; return VAR_1 . METHOD_2 ( ) ; }
|
3,530 | public void METHOD_1 ( java.util.List < TYPE_1 > VAR_1 ) { VAR_2 . METHOD_2 ( VAR_1 ) ; <BUG> VAR_2 . METHOD_3 ( ) ;</BUG> } | public void METHOD_1 ( java.util.List < TYPE_1 > VAR_1 ) { VAR_2 . METHOD_2 ( VAR_1 ) ; }
|
3,531 | public short [ ] METHOD_1 ( long offset , short [ ] data ) { <BUG> return METHOD_1 ( offset , ( ( int ) ( ( ( METHOD_2 ( ) ) - offset ) + 1 ) ) , data ) ;</BUG> } | public short [ ] METHOD_1 ( long offset , short [ ] data ) { return METHOD_1 ( offset , ( ( int ) ( ( METHOD_2 ( ) ) - offset ) ) , data ) ; }
|
3,532 | private void METHOD_1 ( int VAR_1 , int VAR_2 , java.util.Set < java.lang.Integer > VAR_3 , java.util.Set < java.lang.Integer > VAR_4 ) { VAR_3 . add ( VAR_1 ) ; <BUG> java.util.Collections.sort ( VAR_3 ) ;</BUG> VAR_4 . add ( VAR_2 ) ; <BUG> java.util.Collections.sort ( VAR_4 ) ;</BUG> } | private void METHOD_1 ( int VAR_1 , int VAR_2 , java.util.Set < java.lang.Integer > VAR_3 , java.util.Set < java.lang.Integer > VAR_4 ) { VAR_3 . add ( VAR_1 ) ; VAR_4 . add ( VAR_2 ) ; }
|
3,533 | public void METHOD_1 ( java.lang.String result ) { } | public void METHOD_1 ( java.lang.String result ) { output . setText ( result ) ; }
|
3,534 | <BUG>public TYPE_1 METHOD_1 ( int VAR_1 ) {</BUG> return VAR_2 . METHOD_2 ( VAR_1 , true ) ; } | public TYPE_1 METHOD_2 ( int VAR_1 ) { return VAR_2 . METHOD_2 ( VAR_1 , true ) ; }
|
3,535 | protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; VAR_2 . METHOD_2 ( VAR_1 ) ; } | protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; if ( ( this . VAR_2 ) != null ) { VAR_2 . METHOD_2 ( VAR_1 ) ; } }
|
3,536 | public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( STRING_1 ) ; if ( true ) { java.lang.System.out.println ( STRING_2 ) ; <BUG> }if ( false ) {java.lang.System.out.println ( STRING_3 ) ;</BUG> } } | public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( STRING_1 ) ; if ( false ) { java.lang.System.out.println ( STRING_3 ) ; } if ( true ) { java.lang.System.out.println ( STRING_2 ) ; } }
|
3,537 | public android.view.View METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 , TYPE_3 VAR_3 ) { android.view.View view = VAR_1 . METHOD_2 ( VAR_4 , VAR_2 , false ) ; <BUG> VAR_5 = VAR_2 . getContext ( ) ;</BUG> METHOD_3 ( view ) ; METHOD_4 ( ) ; return view ; } | public android.view.View METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 , TYPE_3 VAR_3 ) { android.view.View view = VAR_1 . METHOD_2 ( VAR_4 , VAR_2 , false ) ; VAR_5 = getActivity ( ) ; METHOD_3 ( view ) ; METHOD_4 ( ) ; return view ; }
|
3,538 | public void start ( ) { VAR_1 . METHOD_1 ( this ) ; <BUG> VAR_2 . start ( ) ;</BUG> } | public void start ( ) { VAR_1 . METHOD_1 ( this ) ; if ( ( VAR_2 ) != null ) VAR_2 . start ( ) ; }
|
3,539 | public static java.lang.String METHOD_1 ( java.lang.Object [ ] VAR_1 , java.lang.String VAR_2 ) { <BUG> return TYPE_1 . METHOD_1 ( java.util.Arrays.asList ( VAR_1 ) , VAR_3 ) ;</BUG> } | public static java.lang.String METHOD_1 ( java.lang.Object [ ] VAR_1 , java.lang.String VAR_2 ) { return TYPE_1 . METHOD_1 ( java.util.Arrays.asList ( VAR_1 ) , VAR_2 ) ; }
|
3,540 | void start ( ) { <BUG> TYPE_1 VAR_1 = new TYPE_1 ( ) ;VAR_1 . start ( ) ;</BUG> } | void start ( ) { new TYPE_1 ( ) . start ( ) ; }
|
3,541 | public static java.util.List < TYPE_1 > METHOD_1 ( ) { <BUG> return ( ( java.util.List < TYPE_1 > ) ( VAR_1 . values ( ) ) ) ;</BUG> } | public static java.util.List < TYPE_1 > METHOD_1 ( ) { return new java.util.ArrayList ( VAR_1 . values ( ) ) ; }
|
3,542 | boolean METHOD_1 ( TYPE_1 VAR_1 ) { java.lang.String VAR_2 = VAR_3 . get ( VAR_4 ) ; <BUG> if ( ( VAR_2 == null ) || ( ! ( VAR_2 . equals ( VAR_5 . getName ( ) ) ) ) ) return true ;</BUG> return false ; } | boolean METHOD_1 ( TYPE_1 VAR_1 ) { java.lang.String VAR_2 = VAR_3 . get ( VAR_4 ) ; if ( ( VAR_2 == null ) || ( ! ( VAR_2 . equals ( VAR_1 . url ) ) ) ) return true ; return false ; }
|
3,543 | public TYPE_1 METHOD_1 ( final TYPE_2 VAR_1 , final int VAR_2 ) { final android.view.View view = VAR_3 . METHOD_2 ( VAR_4 , VAR_1 , false ) ; <BUG> return new TYPE_1 ( view , context ) ;</BUG> } | public TYPE_1 METHOD_1 ( final TYPE_2 VAR_1 , final int VAR_2 ) { final android.view.View view = VAR_3 . METHOD_2 ( VAR_4 , VAR_1 , false ) ; return new TYPE_1 ( view , context , this ) ; }
|
3,544 | <BUG>public void METHOD_1 ( TYPE_1 iterator ) {</BUG> while ( iterator . METHOD_2 ( ) ) { java.lang.System.out.println ( iterator . METHOD_3 ( ) ) ; } } | public void METHOD_1 ( java.util.Iterator iterator ) { while ( iterator . METHOD_2 ( ) ) { java.lang.System.out.println ( iterator . METHOD_3 ( ) ) ; } }
|
3,545 | public static void METHOD_1 ( TYPE_1 VAR_1 ) { <BUG> TYPE_2 . METHOD_2 ( VAR_2 ) ;</BUG> VAR_2 = VAR_1 ; } | public static void METHOD_1 ( TYPE_1 VAR_1 ) { METHOD_2 ( VAR_2 ) ; VAR_2 = VAR_1 ; }
|
3,546 | private void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 = VAR_1 . METHOD_2 ( ) ; VAR_1 . METHOD_3 ( VAR_3 ) ; } | private void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 = VAR_1 . METHOD_2 ( ) ; VAR_3 = new java.util.ArrayList < > ( ) ; VAR_1 . METHOD_3 ( VAR_3 ) ; }
|
3,547 | public void METHOD_1 ( ) { super . METHOD_1 ( ) ; <BUG> METHOD_2 ( VAR_1 , VAR_2 , VAR_3 , VAR_4 ) ;</BUG> } | public void METHOD_1 ( ) { super . METHOD_1 ( ) ; METHOD_2 ( ) ; }
|
3,548 | public void update ( ) { if ( ( VAR_1 ) == CHAR_1 ) { VAR_2 = CHAR_1 ; <BUG> }if ( ( VAR_1 ) == CHAR_2 ) {VAR_2 = CHAR_2 ;</BUG> } } | public void update ( ) { if ( ( VAR_1 ) == CHAR_1 ) { VAR_2 = CHAR_1 ; } }
|
3,549 | public void METHOD_1 ( TYPE_1 response ) { try { <BUG> METHOD_2 ( VAR_1 , VAR_2 , response ) ;</BUG> } catch ( java.lang.Throwable VAR_3 ) { METHOD_3 ( VAR_2 , VAR_3 , VAR_1 ) ; } } | public void METHOD_1 ( TYPE_1 response ) { try { METHOD_2 ( VAR_1 , VAR_2 , response , true ) ; } catch ( java.lang.Throwable VAR_3 ) { METHOD_3 ( VAR_2 , VAR_3 , VAR_1 ) ; } }
|
3,550 | public void METHOD_1 ( android.view.View VAR_1 ) { VAR_2 . METHOD_2 ( view ) ; <BUG> view = null ;TYPE_1 . METHOD_3 ( STRING_1 , ( ( view ) == null ? STRING_2 : STRING_3 ) ) ;</BUG> } | public void METHOD_1 ( android.view.View VAR_1 ) { VAR_2 . METHOD_2 ( view ) ; }
|
3,551 | public void METHOD_1 ( long VAR_1 ) throws java.io.IOException { <BUG> VAR_2 . METHOD_2 ( VAR_1 ) ;this . VAR_1 = VAR_1 ;</BUG> } | public void METHOD_1 ( long VAR_1 ) throws java.io.IOException { this . VAR_1 += this . VAR_2 . METHOD_2 ( ( VAR_1 - ( this . VAR_1 ) ) ) ; }
|
3,552 | public double METHOD_1 ( int VAR_1 ) { if ( ( ( VAR_1 == ( VAR_2 ) ) || ( VAR_1 == ( VAR_3 ) ) ) || ( VAR_1 == ( VAR_2 ) ) ) return this . METHOD_1 ( ) ; <BUG> else return this . VAR_4 ;</BUG> } | public double METHOD_1 ( int VAR_1 ) { if ( ( ( VAR_1 == ( VAR_2 ) ) || ( VAR_1 == ( VAR_3 ) ) ) || ( VAR_1 == ( VAR_2 ) ) ) return this . METHOD_1 ( ) ; return this . VAR_4 ; }
|
3,553 | <BUG>public TYPE_1 [ ] METHOD_1 ( TYPE_1 VAR_1 ) {</BUG> return METHOD_1 ( VAR_2 , VAR_1 ) ; } | private TYPE_1 [ ] METHOD_1 ( TYPE_1 VAR_1 ) { return METHOD_1 ( VAR_2 , VAR_1 ) ; }
|
3,554 | public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 . METHOD_2 ( ) . METHOD_3 ( ) ; <BUG> VAR_2 . METHOD_4 ( ) . METHOD_5 ( ) ;</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 . METHOD_2 ( ) . METHOD_3 ( ) ; }
|
3,555 | <BUG>private native void METHOD_1 ( long VAR_1 , int VAR_2 ) ;</BUG> | private native void METHOD_1 ( int VAR_2 ) ;
|
3,556 | public void METHOD_1 ( ) { if ( METHOD_2 ( STRING_1 ) ) VAR_1 . METHOD_3 ( text ) ; else if ( METHOD_2 ( STRING_2 ) ) { <BUG> VAR_1 . METHOD_4 ( java.lang.Double . METHOD_5 ( text ) ) ;</BUG> } } | public void METHOD_1 ( ) { if ( METHOD_2 ( STRING_1 ) ) VAR_1 . METHOD_3 ( text ) ; else if ( METHOD_2 ( STRING_2 ) ) { VAR_1 . METHOD_4 ( text ) ; } }
|
3,557 | public void METHOD_1 ( ) { if ( ( VAR_1 ) != null ) VAR_1 . METHOD_2 ( ) ; VAR_1 = null ; <BUG> METHOD_3 ( VAR_1 ) ;</BUG> } | public void METHOD_1 ( ) { if ( ( VAR_1 ) != null ) VAR_1 . METHOD_2 ( ) ; VAR_1 = null ; }
|
3,558 | public static void METHOD_1 ( TYPE_1 VAR_1 ) { <BUG> VAR_2 = true ;</BUG> VAR_3 . remove ( VAR_1 ) ; } | public static void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_3 . remove ( VAR_1 ) ; }
|
3,559 | private TYPE_1 METHOD_1 ( int VAR_1 , int VAR_2 ) { } | private TYPE_1 METHOD_1 ( int VAR_1 , int VAR_2 ) { return null ; }
|
3,560 | public void METHOD_1 ( ) throws java.lang.Exception { TYPE_1 . METHOD_2 ( ) ; <BUG> TYPE_1 . METHOD_3 ( ) ;</BUG> } | public void METHOD_1 ( ) throws java.lang.Exception { TYPE_1 . METHOD_2 ( ) ; }
|
3,561 | public boolean METHOD_1 ( int p ) { <BUG> return ( p >= 0 ) && ( p < ( VAR_1 ) ) ;</BUG> } | public boolean METHOD_1 ( int p ) { return ( p >= ( - 1 ) ) && ( p < ( VAR_1 ) ) ; }
|
3,562 | public void METHOD_1 ( TYPE_1 VAR_1 ) { <BUG> java.lang.System.out.println ( STRING_1 ) ;</BUG> VAR_2 = VAR_1 ; } | public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 = VAR_1 ; }
|
3,563 | public void METHOD_1 ( ) { <BUG> if ( ( VAR_1 ) < ( VAR_2 . size ( ) ) ) {</BUG> ( VAR_1 ) ++ ; } else { VAR_1 = 0 ; } } | public void METHOD_1 ( ) { if ( ( VAR_1 ) < ( ( VAR_2 . size ( ) ) - 1 ) ) { ( VAR_1 ) ++ ; } else { VAR_1 = 0 ; } }
|
3,564 | public boolean METHOD_1 ( ) { <BUG> for ( long VAR_1 : VAR_2 ) {if ( ( VAR_1 & 1 ) == 0 ) return false ;</BUG> } return true ; } | public boolean METHOD_1 ( ) { for ( int i = offset ; i < ( VAR_2 . length ) ; i ++ ) { if ( ( ( VAR_2 [ i ] ) & 1 ) == 0 ) return false ; } return true ; }
|
3,565 | public void METHOD_1 ( java.lang.String file ) throws java.lang.Exception { <BUG> this . VAR_1 = file ;</BUG> } | public void METHOD_1 ( java.lang.String file ) throws java.lang.Exception { this . file = file ; }
|
3,566 | <BUG>public java.lang.String METHOD_1 ( ) {</BUG> if ( METHOD_2 ( ) ) { return VAR_1 . get ( ) ; } else { return super . METHOD_1 ( ) ; } } | public int METHOD_1 ( ) { if ( METHOD_2 ( ) ) { return VAR_1 . get ( ) ; } else { return super . METHOD_1 ( ) ; } }
|
3,567 | public void METHOD_1 ( TYPE_1 VAR_1 , int VAR_2 , int VAR_3 ) { <BUG> METHOD_2 ( VAR_1 , 0 , VAR_4 ) ;</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 , int VAR_2 , int VAR_3 ) { METHOD_2 ( VAR_1 , 1 , VAR_4 ) ; }
|
3,568 | public static void METHOD_1 ( ) { java.io.File f = new java.io.File ( VAR_1 , STRING_1 ) ; } | public static void METHOD_1 ( ) { java.io.File f = new java.io.File ( VAR_1 , STRING_1 ) ; f . delete ( ) ; }
|
3,569 | public java.lang.String METHOD_1 ( ) { <BUG> return key ;</BUG> } | public java.lang.String METHOD_1 ( ) { return this . key ; }
|
3,570 | public java.lang.String METHOD_1 ( ) { java.lang.String url = STRING_1 ; url += ( VAR_1 ) + STRING_2 ; url += ( METHOD_2 ( STRING_3 ) ) + STRING_2 ; <BUG> url += ( METHOD_3 ( ) ) + STRING_2 ;</BUG> return url ; } | public java.lang.String METHOD_1 ( ) { java.lang.String url = STRING_1 ; url += ( VAR_1 ) + STRING_2 ; url += ( METHOD_2 ( STRING_3 ) ) + STRING_2 ; url += METHOD_3 ( ) ; return url ; }
|
3,571 | public void METHOD_1 ( ) { <BUG> TYPE_1 . METHOD_2 ( STRING_1 , STRING_2 ) ;</BUG> TYPE_2 VAR_1 = new TYPE_2 ( VAR_2 . toString ( ) ) ; VAR_1 . execute ( ) ; } | public void METHOD_1 ( ) { TYPE_2 VAR_1 = new TYPE_2 ( VAR_2 . toString ( ) ) ; VAR_1 . execute ( ) ; }
|
3,572 | protected void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 ) throws java.io.IOException , TYPE_3 { <BUG> delete ( new TYPE_4 ( VAR_1 ) , new TYPE_5 ( VAR_2 ) ) ;</BUG> } | protected void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 ) throws java.io.IOException , TYPE_3 { delete ( new TYPE_4 ( VAR_1 , this ) , new TYPE_5 ( VAR_2 , this ) ) ; }
|
3,573 | <BUG>public static TYPE_1 METHOD_1 ( final java.lang.String value , final boolean VAR_1 ) {return new TYPE_2 ( value , VAR_1 ) ;</BUG> } | public static TYPE_1 METHOD_1 ( final java.lang.String value ) { return new TYPE_2 ( value ) ; }
|
3,574 | public TYPE_1 METHOD_1 ( final TYPE_2 VAR_1 , final TYPE_1 VAR_2 ) { if ( VAR_3 ) { <BUG> return VAR_4 . put ( VAR_1 , VAR_2 ) ;</BUG> } else { <BUG> throw new TYPE_3 ( STRING_1 ) ;</BUG> } } | public TYPE_1 METHOD_1 ( final TYPE_2 VAR_1 , final TYPE_1 VAR_2 ) { if ( VAR_3 ) { throw new TYPE_3 ( STRING_1 ) ; } else { return VAR_4 . put ( VAR_1 , VAR_2 ) ; } }
|
3,575 | public void METHOD_1 ( float VAR_1 , float height ) { <BUG> METHOD_1 ( VAR_1 , height ) ;</BUG> METHOD_2 ( ( VAR_1 / INT_1 ) , ( height / INT_1 ) ) ; } | public void METHOD_1 ( float VAR_1 , float height ) { super . METHOD_1 ( VAR_1 , height ) ; METHOD_2 ( ( VAR_1 / INT_1 ) , ( height / INT_1 ) ) ; }
|
3,576 | protected java.lang.String METHOD_1 ( java.lang.String VAR_1 ) { java.lang.String VAR_2 = VAR_1 + ( VAR_3 ) ; <BUG> return VAR_2 ;</BUG> } | protected java.lang.String METHOD_1 ( java.lang.String VAR_1 ) { java.lang.String VAR_2 = VAR_1 + ( VAR_3 ) ; return VAR_2 . toLowerCase ( ) ; }
|
3,577 | protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; METHOD_2 ( VAR_2 ) ; VAR_3 = new java.util.ArrayList < > ( ) ; METHOD_3 ( ) ; } | protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; METHOD_2 ( VAR_2 ) ; VAR_3 = new java.util.ArrayList < > ( ) ; names = new java.util.ArrayList < > ( ) ; METHOD_3 ( ) ; }
|
3,578 | public java.lang.String METHOD_1 ( java.lang.String ... params ) { <BUG> java.lang.String VAR_1 = params [ 0 ] ;</BUG> TYPE_1 . METHOD_2 ( ) ; return STRING_1 ; } | public java.lang.String METHOD_1 ( java.lang.String ... params ) { TYPE_1 . METHOD_2 ( ) ; return STRING_1 ; }
|
3,579 | public void METHOD_1 ( ) { <BUG> TYPE_1 . METHOD_2 ( STRING_1 , STRING_2 ) ;</BUG> METHOD_3 ( VAR_1 ) ; } | public void METHOD_1 ( ) { METHOD_3 ( VAR_1 ) ; }
|
3,580 | protected java.util.List < TYPE_1 > METHOD_1 ( ) { <BUG> java.lang.System.out.println ( ( ( STRING_1 + ( buffer . getValue ( ) ) ) + STRING_2 ) ) ;</BUG> return VAR_1 . METHOD_2 ( buffer . getValue ( ) ) ; } | protected java.util.List < TYPE_1 > METHOD_1 ( ) { return VAR_1 . METHOD_2 ( buffer . getValue ( ) ) ; }
|
3,581 | <BUG>public TYPE_1 delete ( final TYPE_2 < TYPE_1 > listener ) {return this . delete ( null , listener ) ;</BUG> } | public void delete ( final TYPE_2 < java.lang.String > listener ) { this . delete ( null , listener ) ; }
|
3,582 | public void METHOD_1 ( ) { <BUG> TYPE_1 . METHOD_2 ( this , null ) ;TYPE_1 . METHOD_3 ( this , null ) ;</BUG> TYPE_2 . METHOD_4 ( this , message , VAR_1 ) . show ( ) ; METHOD_5 ( ) ; } | public void METHOD_1 ( ) { TYPE_2 . METHOD_4 ( this , message , VAR_1 ) . show ( ) ; METHOD_5 ( ) ; }
|
3,583 | public void METHOD_1 ( ) { if ( ( VAR_1 ) == 0 ) { METHOD_2 ( ) ; <BUG> METHOD_3 ( ) ;</BUG> } } | public void METHOD_1 ( ) { if ( ( VAR_1 ) == 0 ) { METHOD_2 ( ) ; } }
|
3,584 | <BUG>public static int METHOD_1 ( java.lang.String item ) {</BUG> return item . contains ( STRING_1 ) ? java.lang.Integer.parseInt ( TYPE_1 . METHOD_2 ( ) . METHOD_3 ( TYPE_2 . METHOD_4 ( item , STRING_2 ) ) ) : INT_1 ; } | private static int METHOD_1 ( java.lang.String item ) { return item . contains ( STRING_1 ) ? java.lang.Integer.parseInt ( TYPE_1 . METHOD_2 ( ) . METHOD_3 ( TYPE_2 . METHOD_4 ( item , STRING_2 ) ) ) : INT_1 ; }
|
3,585 | void METHOD_1 ( ) { if ( ( VAR_1 ) == null ) { VAR_1 = new java.util.Date ( ) ; } <BUG> VAR_2 = new java.util.Date ( ) ;</BUG> } | void METHOD_1 ( ) { if ( ( VAR_1 ) == null ) { VAR_2 = new java.util.Date ( ) ; VAR_1 = new java.util.Date ( ) ; } }
|
3,586 | public static TYPE_1 METHOD_1 ( TYPE_1 VAR_1 , double VAR_2 ) { return TYPE_2 . METHOD_2 ( VAR_1 , VAR_2 , new TYPE_3 ( ) ) ; } | public static TYPE_1 METHOD_1 ( TYPE_1 VAR_1 , double VAR_2 ) { if ( VAR_1 == null ) { return null ; } return TYPE_2 . METHOD_2 ( VAR_1 , VAR_2 , new TYPE_3 ( ) ) ; }
|
3,587 | public void METHOD_1 ( ) { <BUG> METHOD_2 ( TYPE_1 . METHOD_3 ( ) , VAR_1 , false ) ;</BUG> } | public void METHOD_1 ( ) { METHOD_2 ( TYPE_1 . METHOD_3 ( ) , VAR_1 , true ) ; }
|
3,588 | <BUG>public int METHOD_1 ( java.lang.String key ) {int value ;</BUG> if ( VAR_1 . METHOD_2 ( key ) ) { value = VAR_1 . get ( key ) ; } else { <BUG> value = - 1 ;</BUG> } return value ; } | public java.util.ArrayList < java.lang.Integer > METHOD_1 ( java.lang.String key ) { java.util.ArrayList < java.lang.Integer > value ; if ( VAR_1 . METHOD_2 ( key ) ) { value = VAR_1 . get ( key ) ; } else { value = null ; } return value ; }
|
3,589 | public void METHOD_1 ( ) { <BUG> TYPE_1 . METHOD_2 ( STRING_1 , STRING_2 ) ;</BUG> java.lang.String VAR_1 = METHOD_3 ( VAR_2 ) ; new TYPE_2 ( VAR_3 ) . execute ( VAR_4 , VAR_1 ) ; } | public void METHOD_1 ( ) { java.lang.String VAR_1 = METHOD_3 ( VAR_2 ) ; new TYPE_2 ( VAR_3 ) . execute ( VAR_4 , VAR_1 ) ; }
|
3,590 | protected void METHOD_1 ( ) { <BUG> if ( ( METHOD_2 ( ) ) > 0 ) {</BUG> remove ( 0 ) ; <BUG> }</BUG> } | protected void METHOD_1 ( ) { remove ( 0 ) ; }
|
3,591 | private java.util.List < TYPE_1 > METHOD_1 ( ) { <BUG> if ( ( VAR_1 ) == null ) VAR_1 = METHOD_2 ( ) ;</BUG> return VAR_1 ; } | private java.util.List < TYPE_1 > METHOD_1 ( ) { if ( ( VAR_1 ) == null ) VAR_1 = new java.util.ArrayList < TYPE_1 > ( METHOD_2 ( ) ) ; return VAR_1 ; }
|
3,592 | public void METHOD_1 ( ) { <BUG> VAR_1 = STRING_1 + ( VAR_2 . METHOD_2 ( ) ) ;</BUG> } | public void METHOD_1 ( ) { VAR_1 . set ( ( STRING_1 + ( VAR_2 . METHOD_2 ( ) ) ) ) ; }
|
3,593 | <BUG>public int [ ] METHOD_1 ( ) {return null ;</BUG> } | public int METHOD_1 ( ) { return 0 ; }
|
3,594 | public void METHOD_1 ( java.lang.String key , float value ) { <BUG> METHOD_2 ( key ) ;</BUG> VAR_1 . METHOD_3 ( ) . METHOD_1 ( key , value ) . METHOD_4 ( ) ; } | public void METHOD_1 ( java.lang.String key , float value ) { if ( key == null ) return ; VAR_1 . METHOD_3 ( ) . METHOD_1 ( key , value ) . METHOD_4 ( ) ; }
|
3,595 | <BUG>public java.lang.String METHOD_1 ( TYPE_1 VAR_1 , java.lang.String VAR_2 ) {</BUG> return ( ( VAR_1 . METHOD_2 ( ) ) + STRING_1 ) + VAR_2 ; } | public java.lang.String query ( TYPE_1 VAR_1 , java.lang.String VAR_2 ) { return ( ( VAR_1 . METHOD_2 ( ) ) + STRING_1 ) + VAR_2 ; }
|
3,596 | public void METHOD_1 ( ) { for ( TYPE_1 item : VAR_1 ) { ( ( TYPE_2 ) ( item ) ) . METHOD_2 ( ) ; } } | public void METHOD_1 ( ) { super . METHOD_1 ( ) ; for ( TYPE_1 item : VAR_1 ) { ( ( TYPE_2 ) ( item ) ) . METHOD_2 ( ) ; } }
|
3,597 | <BUG>protected TYPE_1 METHOD_1 ( TYPE_2 VAR_1 , TYPE_3 file , boolean VAR_2 , boolean VAR_3 ) {return VAR_1 . METHOD_2 ( ) ? new TYPE_4 ( VAR_1 , file , VAR_2 , VAR_3 ) : new TYPE_5 ( file , VAR_2 , VAR_3 ) ;</BUG> } | protected TYPE_1 METHOD_1 ( TYPE_2 VAR_1 , TYPE_3 file , boolean VAR_3 ) { return VAR_1 . METHOD_2 ( ) ? new TYPE_4 ( VAR_1 , file , VAR_3 ) : new TYPE_5 ( file , VAR_3 ) ; }
|
3,598 | public void METHOD_1 ( int y ) { text . METHOD_2 ( y ) ; } | public void METHOD_1 ( int y ) { text . METHOD_2 ( y ) ; super . METHOD_1 ( y ) ; }
|
3,599 | public void METHOD_1 ( ) { <BUG> while ( true ) {</BUG> METHOD_2 ( ) ; <BUG> try {java.lang.Thread . METHOD_3 ( INT_1 ) ;BUG><BUG> }</BUG></BUG></BUG> <BUG> catch ( TYPE_1 VAR_1 ) {VAR_1 . METHOD_4 ( ) ;</BUG> } } } | public void METHOD_1 ( ) { METHOD_2 ( ) ; }
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.