id
int64 0
46.7k
| buggy
stringlengths 22
390
| fixed
stringlengths 14
367
|
---|---|---|
40,400 | public java.util.List < java.lang.String > METHOD_1 ( ) { <BUG> java.util.List < java.lang.String > VAR_1 = new java.util.ArrayList < java.lang.String > ( ) ;VAR_1 . add ( file . METHOD_2 ( ) ) ;</BUG> return VAR_1 ; } | public java.util.List < java.lang.String > METHOD_1 ( ) { return VAR_1 ; }
|
40,401 | <BUG>public void METHOD_1 ( TYPE_1 VAR_1 ) {</BUG> if ( VAR_2 ) { METHOD_2 ( VAR_1 ) ; if ( ( VAR_3 ) != null ) VAR_3 . METHOD_3 ( this ) ; VAR_2 = false ; } } | public boolean METHOD_1 ( TYPE_1 VAR_1 ) { if ( VAR_2 ) { METHOD_2 ( VAR_1 ) ; if ( ( VAR_3 ) != null ) VAR_3 . METHOD_3 ( this ) ; VAR_2 = false ; return true ; } return false ; }
|
40,402 | <BUG>protected TYPE_1 METHOD_1 ( java.lang.String name ) {</BUG> if ( ( VAR_1 ) == null ) { METHOD_2 ( ) ; } return METHOD_3 ( VAR_1 . get ( name ) ) ; } | public TYPE_1 METHOD_1 ( java.lang.String name ) { if ( ( VAR_1 ) == null ) { METHOD_2 ( ) ; } return METHOD_3 ( VAR_1 . get ( name ) ) ; }
|
40,403 | public void METHOD_1 ( ) { <BUG> TYPE_1 f = new TYPE_1 ( STRING_1 , null ) ;</BUG> f . METHOD_2 ( new java.util.ArrayList < java.lang.String > ( ) ) ; TYPE_2 . METHOD_3 ( f . getValue ( ) ) ; } | public void METHOD_1 ( ) { java.lang.String value = null ; TYPE_1 f = new TYPE_1 ( STRING_1 , value ) ; f . METHOD_2 ( new java.util.ArrayList < java.lang.String > ( ) ) ; TYPE_2 . METHOD_3 ( f . getValue ( ) ) ; }
|
40,404 | <BUG>public static java.util.ArrayList < TYPE_1 > METHOD_1 ( android.content.Context VAR_1 ) {</BUG> if ( ( VAR_2 ) == null ) { VAR_2 = new TYPE_2 ( ) ; TYPE_3 . METHOD_2 ( VAR_1 ) ; } <BUG> return VAR_2 . METHOD_3 ( ) ;</BUG> } | public static TYPE_2 METHOD_1 ( android.content.Context VAR_1 ) { if ( ( VAR_2 ) == null ) { VAR_2 = new TYPE_2 ( ) ; TYPE_3 . METHOD_2 ( VAR_1 ) ; } return VAR_2 ; }
|
40,405 | public boolean METHOD_1 ( long VAR_1 ) { <BUG> for ( TYPE_1 VAR_2 : VAR_3 ) if ( ( VAR_2 . getId ( ) ) == VAR_1 ) return VAR_3 . remove ( VAR_2 ) ;</BUG> return false ; } | public boolean METHOD_1 ( long VAR_1 ) { for ( TYPE_1 VAR_2 : VAR_3 ) if ( ( VAR_2 . getId ( ) ) == VAR_1 ) return METHOD_1 ( VAR_2 ) ; return false ; }
|
40,406 | public static void init ( ) { <BUG> VAR_1 = new TYPE_1 ( 0 ) ;VAR_2 = new TYPE_1 ( 1 ) ;</BUG> } | public static void init ( ) { }
|
40,407 | public void METHOD_1 ( java.lang.Object VAR_1 , int n ) { } | public void METHOD_1 ( java.lang.Object VAR_1 , int n ) { return ; }
|
40,408 | private boolean METHOD_1 ( ) { <BUG> if ( METHOD_2 ( VAR_1 ) ) return true ;</BUG> TYPE_1 VAR_2 ; VAR_2 = VAR_3 ; if ( METHOD_3 ( ) ) { VAR_3 = VAR_2 ; if ( METHOD_4 ( ) ) return true ; } return false ; } | private boolean METHOD_1 ( ) { TYPE_1 VAR_2 ; VAR_2 = VAR_3 ; if ( METHOD_3 ( ) ) { VAR_3 = VAR_2 ; if ( METHOD_4 ( ) ) return true ; } return false ; }
|
40,409 | private java.lang.String METHOD_1 ( java.lang.String value , java.lang.String VAR_1 ) { if ( value == null ) { return VAR_1 ; } <BUG> else if ( STRING_1 . METHOD_2 ( STRING_1 ) ) {</BUG> return VAR_1 ; } return value ; } | private java.lang.String METHOD_1 ( java.lang.String value , java.lang.String VAR_1 ) { if ( value == null ) { return VAR_1 ; } else if ( STRING_1 . METHOD_2 ( value ) ) { return VAR_1 ; } return value ; }
|
40,410 | protected void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 ) throws java.io.IOException , TYPE_3 { <BUG> put ( 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 { put ( new TYPE_4 ( VAR_1 , this ) , new TYPE_5 ( VAR_2 , this ) ) ; }
|
40,411 | public boolean METHOD_1 ( TYPE_1 VAR_1 , TYPE_1 VAR_2 ) { <BUG> return false ;</BUG> } | public boolean METHOD_1 ( TYPE_1 VAR_1 , TYPE_1 VAR_2 ) { return true ; }
|
40,412 | <BUG>public synchronized void METHOD_1 ( ) {VAR_1 . METHOD_2 ( ) ;</BUG> } | public void METHOD_1 ( ) { for ( int i = 0 ; i < ( size ) ; i ++ ) { VAR_1 . set ( i , null ) ; } }
|
40,413 | public static TYPE_1 get ( byte VAR_1 ) { <BUG> TYPE_1 type = VAR_2 . get ( VAR_1 ) ;return type ;</BUG> } | public static TYPE_1 get ( byte VAR_1 ) { return VAR_2 . get ( VAR_1 ) ; }
|
40,414 | void METHOD_1 ( ) { <BUG> if ( ( this . VAR_1 ) != null ) {this . VAR_1 . METHOD_2 ( ) ;}</BUG> this . METHOD_3 ( ) ; } | void METHOD_1 ( ) { this . METHOD_3 ( ) ; }
|
40,415 | public void METHOD_1 ( ) { <BUG> while ( VAR_1 ) {VAR_2 . update ( ) ;}</BUG> } | public void METHOD_1 ( ) { }
|
40,416 | public void METHOD_1 ( TYPE_1 key , TYPE_2 VAR_1 , TYPE_3 value ) { <BUG> METHOD_1 ( key , VAR_1 , value , false ) ;</BUG> } | public void METHOD_1 ( TYPE_1 key , TYPE_2 VAR_1 , TYPE_3 value ) { METHOD_1 ( key , VAR_1 , value , false , false ) ; }
|
40,417 | <BUG>public static TYPE_1 METHOD_1 ( java.lang.String VAR_1 ) {TYPE_2 VAR_2 = new TYPE_2 ( ) ;TYPE_3 args = new TYPE_3 ( ) ;args . METHOD_2 ( VAR_3 , VAR_1 ) ;VAR_2 . METHOD_3 ( args ) ;return VAR_2 ;</BUG> } | public static TYPE_1 METHOD_1 ( ) { return new TYPE_2 ( ) ; }
|
40,418 | <BUG>protected final void METHOD_1 ( java.lang.String VAR_1 ) {</BUG> this . VAR_1 = VAR_1 ; } | public final void METHOD_1 ( java.lang.String VAR_1 ) { this . VAR_1 = VAR_1 ; }
|
40,419 | public void METHOD_1 ( TYPE_1 VAR_1 , double VAR_2 ) { <BUG> this . VAR_1 = new TYPE_2 ( VAR_1 , 1 ) ;</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 , double VAR_2 ) { this . VAR_1 = new TYPE_2 ( VAR_1 , VAR_2 ) ; }
|
40,420 | <BUG>protected java.util.List < java.lang.String > METHOD_1 ( ) {</BUG> return this . VAR_1 ; } | public java.util.List < java.lang.String > METHOD_1 ( ) { return this . VAR_1 ; }
|
40,421 | public void METHOD_1 ( TYPE_1 VAR_1 , java.io.IOException VAR_2 ) { <BUG> if ( ( VAR_3 ) != null ) {</BUG> VAR_3 . METHOD_2 ( VAR_2 . toString ( ) ) ; <BUG><BUG> }</BUG></BUG> <BUG> else {java.lang.System.out.println ( STRING_1 ) ;</BUG> } } | public void METHOD_1 ( TYPE_1 VAR_1 , java.io.IOException VAR_2 ) { VAR_3 . METHOD_2 ( VAR_2 . toString ( ) ) ; }
|
40,422 | public boolean METHOD_1 ( ) { <BUG> return ( ( this . VAR_1 ) != 0 ) && ( this . VAR_2 . METHOD_2 ( ) ) ;</BUG> } | public boolean METHOD_1 ( ) { return ( ( this . VAR_1 ) != 0 ) && ( ( ( this . VAR_2 ) != null ) && ( this . VAR_2 . METHOD_2 ( ) ) ) ; }
|
40,423 | public void METHOD_1 ( ) { <BUG> this . VAR_1 . METHOD_2 ( java.lang.Integer . METHOD_3 ( ( ( java.lang.Integer.parseInt ( this . VAR_1 . METHOD_4 ( ) ) ) + 1 ) ) ) ;</BUG> } | public void METHOD_1 ( ) { this . VAR_1 . set ( ( ( this . VAR_1 . getInt ( ) ) + 1 ) ) ; }
|
40,424 | public void METHOD_1 ( long VAR_1 ) { VAR_2 . METHOD_1 ( VAR_1 ) ; <BUG> TYPE_1 . METHOD_2 ( VAR_1 ) ;</BUG> } | public void METHOD_1 ( long VAR_1 ) { TYPE_1 . METHOD_2 ( VAR_1 ) ; VAR_2 . METHOD_1 ( VAR_1 ) ; }
|
40,425 | public static double METHOD_1 ( TYPE_1 a ) { <BUG> return a . METHOD_2 ( ) . min ( a ) ;</BUG> } | public static double METHOD_1 ( TYPE_1 a ) { return a . METHOD_2 ( ) . METHOD_1 ( a ) ; }
|
40,426 | public TYPE_1 METHOD_1 ( long VAR_1 ) { <BUG> TYPE_2 VAR_2 = VAR_3 ;VAR_2 . METHOD_2 ( VAR_1 ) ;VAR_4 . add ( VAR_2 ) ;</BUG> VAR_3 = null ; return METHOD_3 ( VAR_1 ) ; } | public TYPE_1 METHOD_1 ( long VAR_1 ) { VAR_3 = null ; return METHOD_3 ( VAR_1 ) ; }
|
40,427 | public void METHOD_1 ( TYPE_1 VAR_1 ) { <BUG> this . VAR_2 . add ( VAR_1 ) ;this . METHOD_2 ( VAR_3 , null , null ) ;</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 . add ( VAR_1 ) ; METHOD_2 ( VAR_3 , null , null ) ; }
|
40,428 | public int METHOD_1 ( ) { <BUG> return ( VAR_1 . buffer [ ( ( VAR_2 ) + INT_1 ) ] ) & ( INT_2 - 1 ) ;</BUG> } | public int METHOD_1 ( ) { return ( ( VAR_1 . buffer [ ( ( VAR_2 ) + INT_1 ) ] ) & INT_2 ) - 1 ; }
|
40,429 | public static TYPE_1 METHOD_1 ( java.io.InputStream VAR_1 , java.lang.String VAR_2 ) { <BUG> return TYPE_2 . METHOD_1 ( VAR_1 , TYPE_3 . METHOD_2 ( VAR_2 ) ) ;</BUG> } | public static TYPE_1 METHOD_1 ( java.io.InputStream VAR_1 , java.lang.String VAR_2 ) { return TYPE_2 . METHOD_1 ( VAR_1 , ( VAR_2 == null ? ( ( TYPE_3 ) ( null ) ) : TYPE_3 . METHOD_2 ( VAR_2 ) ) ) ; }
|
40,430 | <BUG>public java.lang.String METHOD_1 ( long VAR_1 ) throws TYPE_1 {return VAR_2 . query ( java.lang.String . METHOD_2 ( VAR_1 ) ) ;</BUG> } | public java.lang.String METHOD_1 ( java.lang.String VAR_1 ) throws TYPE_1 { return VAR_2 . query ( VAR_1 ) ; }
|
40,431 | public TYPE_1 METHOD_1 ( ) throws TYPE_2 , java.io.IOException { TYPE_3 VAR_1 = new TYPE_3 ( ) ; <BUG> return this . METHOD_1 ( VAR_1 ) ;</BUG> } | public TYPE_1 METHOD_1 ( ) throws TYPE_2 , java.io.IOException { TYPE_3 VAR_1 = new TYPE_3 ( ) ; return this . METHOD_1 ( VAR_1 , false ) ; }
|
40,432 | <BUG>private static boolean METHOD_1 ( java.io.File file ) {</BUG> return file . getName ( ) . METHOD_2 ( VAR_1 ) ; } | public static boolean METHOD_1 ( java.io.File file ) { return file . getName ( ) . METHOD_2 ( VAR_1 ) ; }
|
40,433 | public TYPE_1 METHOD_1 ( ) { <BUG> java.lang.System.out.println ( VAR_1 . length ) ;</BUG> return VAR_1 [ ( ( VAR_2 ) - 1 ) ] ; } | public TYPE_1 METHOD_1 ( ) { return VAR_1 [ ( ( VAR_2 ) - 1 ) ] ; }
|
40,434 | <BUG>public static < TYPE_1 extends TYPE_2 < ? super TYPE_1 > > void METHOD_1 ( TYPE_1 [ ] a ) {</BUG> if ( ( a . length ) <= 1 ) return ; <BUG> TYPE_3 . METHOD_2 ( a , 0 , a . length ) ;</BUG> } | public static void METHOD_1 ( int [ ] a ) { if ( ( a . length ) <= 1 ) return ; TYPE_3 . METHOD_2 ( a , 0 , ( ( a . length ) - 1 ) ) ; }
|
40,435 | public static java.lang.String METHOD_1 ( java.lang.String url ) throws java.io.IOException { TYPE_1 VAR_1 = TYPE_2 . METHOD_2 ( url ) . METHOD_3 ( ( STRING_1 + STRING_2 ) ) . get ( ) ; <BUG> java.lang.String title ;title = VAR_1 . title ( ) ;</BUG> return title ; } | public static java.lang.String METHOD_1 ( java.lang.String url ) throws java.io.IOException { TYPE_1 VAR_1 = TYPE_2 . METHOD_2 ( url ) . METHOD_3 ( ( STRING_1 + STRING_2 ) ) . get ( ) ; java.lang.String title = VAR_1 . title ( ) ; return title ; }
|
40,436 | public void start ( TYPE_1 VAR_1 , java.lang.String VAR_2 ) { <BUG> METHOD_1 ( VAR_1 , VAR_2 ) ;</BUG> } | public void start ( TYPE_1 VAR_1 , java.lang.String VAR_2 ) { METHOD_1 ( VAR_1 , VAR_2 , true ) ; }
|
40,437 | public void execute ( java.lang.String VAR_1 ) { VAR_2 = true ; VAR_3 . METHOD_1 ( VAR_1 ) ; VAR_4 . METHOD_2 ( ) ; } | public void execute ( java.lang.String VAR_1 ) { VAR_2 = true ; VAR_3 . METHOD_1 ( VAR_1 ) ; if ( ( VAR_4 ) != null ) { VAR_4 . METHOD_2 ( ) ; } }
|
40,438 | protected void METHOD_1 ( TYPE_1 param ) throws java.lang.Throwable { VAR_1 . append ( ( STRING_1 + ( ( java.lang.String ) ( param . METHOD_2 ( ) ) ) ) ) ; } | protected void METHOD_1 ( TYPE_1 param ) throws java.lang.Throwable { if ( ( VAR_1 ) == null ) { VAR_1 = new java.lang.StringBuffer ( ) ; } VAR_1 . append ( ( STRING_1 + ( ( java.lang.String ) ( param . METHOD_2 ( ) ) ) ) ) ; }
|
40,439 | public TYPE_1 < java.lang.String , TYPE_2 > METHOD_1 ( ) { <BUG> return VAR_1 ;</BUG> } | public TYPE_1 < java.lang.String , TYPE_2 > METHOD_1 ( ) { return this . VAR_1 ; }
|
40,440 | <BUG>public void METHOD_1 ( TYPE_1 VAR_1 ) throws TYPE_2 {</BUG> METHOD_2 ( ) ; METHOD_3 ( STRING_1 ) ; METHOD_4 ( VAR_1 ) ; } | private void METHOD_1 ( TYPE_1 VAR_1 ) throws TYPE_2 { METHOD_2 ( ) ; METHOD_3 ( STRING_1 ) ; METHOD_4 ( VAR_1 ) ; }
|
40,441 | public void METHOD_1 ( ) { try { <BUG> VAR_1 . METHOD_2 ( ) ;</BUG> ( VAR_2 ) ++ ; } finally { VAR_1 . METHOD_3 ( ) ; } } | public void METHOD_1 ( ) { VAR_1 . METHOD_2 ( ) ; try { ( VAR_2 ) ++ ; } finally { VAR_1 . METHOD_3 ( ) ; } }
|
40,442 | public void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 ) { METHOD_2 ( VAR_1 ) ; <BUG> if ( ( VAR_3 ) != null ) VAR_3 . METHOD_3 ( ) ;</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 VAR_2 ) { METHOD_2 ( VAR_1 ) ; }
|
40,443 | public void METHOD_1 ( ) throws TYPE_1 { <BUG> VAR_1 . METHOD_2 ( ) . METHOD_1 ( ) ;</BUG> } | public void METHOD_1 ( ) throws TYPE_1 { METHOD_1 ( ( - 1 ) ) ; }
|
40,444 | private java.io.File METHOD_1 ( ) { if ( ( VAR_1 ) == null ) { <BUG> java.lang.String VAR_2 = ( ( METHOD_2 ( ) ) + ( VAR_3 ) ) + STRING_1 ;VAR_1 = new java.io.File ( VAR_2 ) ;</BUG> } return VAR_1 ; } | private java.io.File METHOD_1 ( ) { if ( ( VAR_1 ) == null ) { VAR_1 = new java.io.File ( ( ( ( METHOD_2 ( ) ) + ( VAR_3 ) ) + STRING_1 ) ) ; } return VAR_1 ; }
|
40,445 | private TYPE_1 METHOD_1 ( ) { try { <BUG> return VAR_1 . get ( java.lang.Thread . METHOD_2 ( ) . getId ( ) ) ;</BUG> } catch ( TYPE_2 VAR_2 ) { throw TYPE_3 . METHOD_3 ( VAR_2 ) ; } } | private TYPE_1 METHOD_1 ( ) { try { return VAR_1 . get ( java.lang.Thread . METHOD_2 ( ) ) ; } catch ( TYPE_2 VAR_2 ) { throw TYPE_3 . METHOD_3 ( VAR_2 ) ; } }
|
40,446 | public TYPE_1 METHOD_1 ( int VAR_1 ) { <BUG> return new TYPE_1 ( METHOD_2 ( ) , this ) . METHOD_3 ( VAR_1 ) ;</BUG> } | public TYPE_1 METHOD_1 ( int VAR_1 ) { return new TYPE_1 ( this ) . METHOD_3 ( VAR_1 ) ; }
|
40,447 | public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 , java.util.Map VAR_2 ) { <BUG> java.lang.System.out.println ( STRING_1 ) ;</BUG> return new TYPE_3 ( VAR_1 , VAR_2 ) ; } | public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 , java.util.Map VAR_2 ) { return new TYPE_3 ( VAR_1 , VAR_2 ) ; }
|
40,448 | public void METHOD_1 ( android.view.View view , TYPE_1 VAR_1 ) { TYPE_2 . METHOD_2 ( this , view ) ; } | public void METHOD_1 ( android.view.View view , TYPE_1 VAR_1 ) { TYPE_2 . METHOD_2 ( this , view ) ; super . METHOD_1 ( view , VAR_1 ) ; }
|
40,449 | public void METHOD_1 ( boolean VAR_1 ) { VAR_2 . METHOD_2 ( VAR_1 ) ; <BUG> VAR_3 . METHOD_3 ( ) ;</BUG> } | public void METHOD_1 ( boolean VAR_1 ) { VAR_2 . METHOD_2 ( VAR_1 ) ; }
|
40,450 | public void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; <BUG> this . VAR_2 = METHOD_2 ( ) . getString ( VAR_3 ) ;this . date = METHOD_2 ( ) . getString ( VAR_4 ) ;</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; }
|
40,451 | private void METHOD_1 ( TYPE_1 VAR_1 ) { TYPE_2 c = new TYPE_2 ( ) ; c . METHOD_2 ( INT_1 , INT_2 ) ; c . METHOD_3 ( 0 , 0 ) ; c . METHOD_4 ( true ) ; <BUG> this . METHOD_5 ( ) ;</BUG> } | private void METHOD_1 ( TYPE_1 VAR_1 ) { TYPE_2 c = new TYPE_2 ( ) ; c . METHOD_2 ( INT_1 , INT_2 ) ; c . METHOD_3 ( 0 , 0 ) ; c . METHOD_4 ( true ) ; }
|
40,452 | public void METHOD_1 ( ) { for ( int i = 0 ; i < ( VAR_1 . length ) ; ++ i ) { VAR_2 . add ( VAR_1 [ i ] ) ; } <BUG> assertEquals ( STRING_1 , VAR_2 . METHOD_2 ( ) ) ;</BUG> } | public void METHOD_1 ( ) { for ( int i = 0 ; i < ( VAR_1 . length ) ; ++ i ) { VAR_2 . add ( VAR_1 [ i ] ) ; } }
|
40,453 | public void METHOD_1 ( TYPE_1 add ) { <BUG> if ( TYPE_2 . METHOD_2 ( add ) ) METHOD_3 ( ) . add ( add ) ;</BUG> } | public void METHOD_1 ( TYPE_1 add ) { }
|
40,454 | <BUG>private static native void METHOD_1 ( long VAR_1 , int VAR_2 , int VAR_3 , int VAR_4 , long value ) ;</BUG> | private static void METHOD_1 ( long VAR_1 , int VAR_2 , int VAR_3 , int VAR_4 , long value ) { }
|
40,455 | public void METHOD_1 ( TYPE_1 VAR_1 , android.view.View view , TYPE_2 VAR_2 , TYPE_3 state ) { VAR_3 = VAR_4 ; VAR_5 = VAR_4 ; <BUG> VAR_6 = VAR_4 ;VAR_7 = VAR_4 ;</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 , android.view.View view , TYPE_2 VAR_2 , TYPE_3 state ) { VAR_3 = VAR_4 ; VAR_5 = VAR_4 ; }
|
40,456 | public boolean METHOD_1 ( TYPE_1 VAR_1 ) { synchronized ( this ) { <BUG> return ( METHOD_2 ( VAR_1 ) ) && ( METHOD_3 ( ) ) ;</BUG> } } | public boolean METHOD_1 ( TYPE_1 VAR_1 ) { synchronized ( this ) { return ( METHOD_3 ( ) ) && ( METHOD_2 ( VAR_1 ) ) ; } }
|
40,457 | public void METHOD_1 ( int VAR_1 ) { this . VAR_2 = VAR_1 ; <BUG> if ( ( VAR_3 ) != null ) {VAR_4 = VAR_1 ;}</BUG> } | public void METHOD_1 ( int VAR_1 ) { this . VAR_2 = VAR_1 ; }
|
40,458 | public void set ( int type , int VAR_1 , int VAR_2 ) { <BUG> status = VAR_3 ;</BUG> this . type = type ; this . VAR_1 = VAR_1 ; this . VAR_2 = VAR_2 ; } | public void set ( int type , int VAR_1 , int VAR_2 ) { this . type = type ; this . VAR_1 = VAR_1 ; this . VAR_2 = VAR_2 ; status = VAR_3 ; }
|
40,459 | private int METHOD_1 ( java.lang.String VAR_1 ) { <BUG> return ( ( java.lang.Integer.parseInt ( VAR_1 ) ) * ( VAR_2 ) ) / INT_1 ;</BUG> } | private int METHOD_1 ( java.lang.String VAR_1 ) { return VAR_1 . isEmpty ( ) ? 0 : ( ( java.lang.Integer.parseInt ( VAR_1 ) ) * ( VAR_2 ) ) / INT_1 ; }
|
40,460 | public void METHOD_1 ( TYPE_1 VAR_1 ) { for ( TYPE_1 VAR_2 : VAR_1 . METHOD_2 ( ) ) { TYPE_2 VAR_3 = VAR_2 . getValue ( VAR_4 class ) ; VAR_5 . add ( VAR_3 ) ; METHOD_3 ( VAR_5 ) ; <BUG> }</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 ) { for ( TYPE_1 VAR_2 : VAR_1 . METHOD_2 ( ) ) { TYPE_2 VAR_3 = VAR_2 . getValue ( VAR_4 class ) ; VAR_5 . add ( VAR_3 ) ; } METHOD_3 ( VAR_5 ) ; }
|
40,461 | <BUG>java.util.List < TYPE_1 > METHOD_1 ( java.lang.String VAR_1 , java.lang.String [ ] VAR_2 ) ;</BUG> | java.util.List < TYPE_1 > METHOD_1 ( java.lang.String [ ] VAR_2 ) ;
|
40,462 | public java.lang.String METHOD_1 ( java.lang.String VAR_1 ) { try { return new java.lang.String ( TYPE_1 . METHOD_1 ( VAR_1 . METHOD_2 ( STRING_1 ) ) ) ; } catch ( TYPE_2 VAR_2 ) { <BUG> VAR_2 . METHOD_3 ( ) ;</BUG> } return VAR_1 ; } | public java.lang.String METHOD_1 ( java.lang.String VAR_1 ) { try { return new java.lang.String ( TYPE_1 . METHOD_1 ( VAR_1 . METHOD_2 ( STRING_1 ) ) ) ; } catch ( TYPE_2 VAR_2 ) { } return VAR_1 ; }
|
40,463 | public int METHOD_1 ( int a , int b ) { <BUG> return a + b ;</BUG> } | public int METHOD_1 ( int a , int b ) { return a * b ; }
|
40,464 | public void METHOD_1 ( java.util.ArrayList < java.lang.String > VAR_1 ) { for ( java.lang.String VAR_2 : VAR_1 ) { <BUG> this . VAR_3 . put ( VAR_2 . toLowerCase ( ) , VAR_2 . toLowerCase ( ) ) ;</BUG> } } | public void METHOD_1 ( java.util.ArrayList < java.lang.String > VAR_1 ) { for ( java.lang.String VAR_2 : VAR_1 ) { this . VAR_3 . put ( VAR_2 , VAR_2 ) ; } }
|
40,465 | public java.lang.String METHOD_1 ( ) { if ( METHOD_2 ( ) ) { throw new TYPE_1 ( ( STRING_1 + ( VAR_1 ) ) ) ; } <BUG> return new java.lang.String ( VAR_2 . METHOD_3 ( ) ) ;</BUG> } | public java.lang.String METHOD_1 ( ) { if ( METHOD_2 ( ) ) { throw new TYPE_1 ( ( STRING_1 + ( VAR_1 ) ) ) ; } return VAR_2 . toString ( ) ; }
|
40,466 | private void METHOD_1 ( ) { VAR_1 . METHOD_2 ( true ) ; VAR_1 . METHOD_3 ( true ) ; <BUG> VAR_1 . METHOD_4 ( INT_1 ) ;</BUG> VAR_1 . METHOD_5 ( false ) ; } | private void METHOD_1 ( ) { VAR_1 . METHOD_2 ( true ) ; VAR_1 . METHOD_3 ( true ) ; VAR_1 . METHOD_5 ( false ) ; }
|
40,467 | public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( STRING_1 ) ; <BUG> VAR_1 = VAR_2 ;</BUG> } | public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( STRING_1 ) ; }
|
40,468 | <BUG>public static TYPE_1 METHOD_1 ( java.lang.String VAR_1 , java.lang.String name , java.lang.String value ) {</BUG> return new TYPE_1 ( VAR_1 , name , value ) ; } | public static TYPE_1 METHOD_1 ( int VAR_1 , java.lang.String name , java.lang.String value ) { return new TYPE_1 ( VAR_1 , name , value ) ; }
|
40,469 | <BUG>TYPE_1 < TYPE_2 , TYPE_3 , TYPE_4 , TYPE_5 , TYPE_6 > METHOD_1 ( TYPE_7 VAR_1 , TYPE_8 VAR_2 , TYPE_9 VAR_3 , TYPE_10 VAR_4 , TYPE_11 VAR_5 ) ;</BUG> | public TYPE_1 < TYPE_2 , TYPE_3 , TYPE_4 , TYPE_5 , TYPE_6 > METHOD_1 ( TYPE_7 VAR_1 , TYPE_8 VAR_2 , TYPE_9 VAR_3 , TYPE_10 VAR_4 , TYPE_11 VAR_5 ) { return super . METHOD_1 ( VAR_1 , VAR_2 , VAR_3 , VAR_4 , VAR_5 ) ; }
|
40,470 | <BUG>public TYPE_1 get ( TYPE_2 VAR_1 ) {int f = VAR_2 . METHOD_1 ( ) . METHOD_2 ( VAR_1 ) ;return data . METHOD_3 ( VAR_3 [ f ] , ( ( VAR_3 [ f ] ) + ( VAR_4 [ f ] ) ) ) ;</BUG> } | public TYPE_1 get ( java.lang.String fieldName ) { int f = VAR_2 . METHOD_1 ( ) . METHOD_2 ( fieldName ) ; return get ( f ) ; }
|
40,471 | public TYPE_1 METHOD_1 ( java.lang.String VAR_1 ) { return METHOD_2 ( TYPE_2 . METHOD_3 ( VAR_1 ) ) ; } | public TYPE_1 METHOD_1 ( java.lang.String VAR_1 ) { if ( VAR_1 == null ) { return METHOD_2 ( null ) ; } return METHOD_2 ( TYPE_2 . METHOD_3 ( VAR_1 ) ) ; }
|
40,472 | public boolean METHOD_1 ( TYPE_1 VAR_1 ) { METHOD_2 ( ) . METHOD_3 ( VAR_2 , VAR_1 ) ; <BUG> super . METHOD_1 ( VAR_1 ) ;return true ;</BUG> } | public boolean METHOD_1 ( TYPE_1 VAR_1 ) { METHOD_2 ( ) . METHOD_3 ( VAR_2 , VAR_1 ) ; return super . METHOD_1 ( VAR_1 ) ; }
|
40,473 | public java.lang.String METHOD_1 ( java.lang.Exception VAR_1 ) { java.lang.System.out.println ( STRING_1 ) ; <BUG> java.lang.System.out.println ( VAR_1 . METHOD_2 ( ) ) ;</BUG> return STRING_2 ; } | public java.lang.String METHOD_1 ( java.lang.Exception VAR_1 ) { java.lang.System.out.println ( STRING_1 ) ; VAR_1 . METHOD_2 ( ) ; return STRING_2 ; }
|
40,474 | public java.util.List < TYPE_1 > METHOD_1 ( TYPE_2 VAR_1 ) throws TYPE_3 { <BUG> return VAR_2 . METHOD_1 ( VAR_1 . getName ( ) ) ;</BUG> } | public java.util.List < TYPE_1 > METHOD_1 ( TYPE_2 VAR_1 ) throws TYPE_3 { return VAR_2 . METHOD_1 ( VAR_1 ) ; }
|
40,475 | private void METHOD_1 ( ) { <BUG> VAR_1 = METHOD_2 ( METHOD_3 ( this . VAR_2 ) , METHOD_3 ( this . VAR_3 ) ) ;</BUG> TYPE_1 VAR_4 = new TYPE_1 ( VAR_1 ) ; VAR_4 . METHOD_4 ( STRING_1 ) ; } | private void METHOD_1 ( ) { VAR_1 = METHOD_3 ( METHOD_2 ( METHOD_3 ( this . VAR_2 ) , METHOD_3 ( this . VAR_3 ) ) ) ; TYPE_1 VAR_4 = new TYPE_1 ( VAR_1 ) ; VAR_4 . METHOD_4 ( STRING_1 ) ; }
|
40,476 | <BUG>public TYPE_1 METHOD_1 ( ) throws java.lang.Exception {</BUG> final TYPE_1 VAR_1 = VAR_2 . METHOD_2 ( VAR_3 ) ; VAR_1 . METHOD_3 ( false ) ; VAR_1 . METHOD_1 ( ) ; <BUG> return VAR_1 ;</BUG> } | public java.lang.Void METHOD_1 ( ) throws java.lang.Exception { final TYPE_1 VAR_1 = VAR_2 . METHOD_2 ( VAR_3 ) ; VAR_1 . METHOD_3 ( false ) ; VAR_1 . METHOD_1 ( ) ; return null ; }
|
40,477 | public TYPE_1 METHOD_1 ( ) throws TYPE_2 { TYPE_1 response = VAR_1 ; if ( response != null ) return response ; response = TYPE_3 . METHOD_2 ( ) . METHOD_1 ( this ) ; VAR_1 = response ; <BUG> return VAR_1 ;</BUG> } | public TYPE_1 METHOD_1 ( ) throws TYPE_2 { TYPE_1 response = VAR_1 ; if ( response != null ) return response ; response = TYPE_3 . METHOD_2 ( ) . METHOD_1 ( this ) ; VAR_1 = response ; return response ; }
|
40,478 | private void METHOD_1 ( ) { VAR_1 . METHOD_2 ( INT_1 , INT_1 ) ; VAR_1 . METHOD_3 ( VAR_2 , VAR_2 ) ; VAR_1 . METHOD_4 ( ) ; VAR_1 . METHOD_5 ( VAR_3 ) ; <BUG> VAR_1 . METHOD_6 ( VAR_4 ) ;</BUG> } | private void METHOD_1 ( ) { VAR_1 . METHOD_2 ( INT_1 , INT_1 ) ; VAR_1 . METHOD_3 ( VAR_2 , VAR_2 ) ; VAR_1 . METHOD_4 ( ) ; VAR_1 . METHOD_5 ( VAR_3 ) ; VAR_1 . METHOD_6 ( VAR_3 ) ; }
|
40,479 | private void METHOD_1 ( ) { VAR_1 = ! ( VAR_1 ) ; METHOD_2 ( ) ; <BUG> ( ( TYPE_1 ) ( ( ( TYPE_2 ) ( VAR_2 . METHOD_3 ( ) ) ) . METHOD_4 ( ) ) ) . METHOD_5 ( ) ;</BUG> } | private void METHOD_1 ( ) { VAR_1 = ! ( VAR_1 ) ; METHOD_2 ( ) ; VAR_2 . METHOD_3 ( ) . METHOD_5 ( ) ; }
|
40,480 | public void METHOD_1 ( ) { <BUG> TYPE_1 . METHOD_2 ( VAR_1 ) ;</BUG> } | public void METHOD_1 ( ) { METHOD_2 ( ) ; }
|
40,481 | public void METHOD_1 ( TYPE_1 out ) throws java.io.IOException { out . METHOD_2 ( VAR_1 ) ; for ( int VAR_2 : VAR_3 ) { out . METHOD_3 ( VAR_2 ) ; } } | public void METHOD_1 ( TYPE_1 out ) throws java.io.IOException { out . METHOD_2 ( VAR_1 ) ; out . METHOD_3 ( VAR_3 . length ) ; for ( int VAR_2 : VAR_3 ) { out . METHOD_3 ( VAR_2 ) ; } }
|
40,482 | public void METHOD_1 ( ) { TYPE_1 VAR_1 = new TYPE_1 ( ) ; <BUG> TYPE_2 . assertEquals ( true , ( VAR_1 != null ) ) ;</BUG> } | public void METHOD_1 ( ) { TYPE_1 VAR_1 = new TYPE_1 ( ) ; TYPE_2 . assertTrue ( ( VAR_1 != null ) ) ; }
|
40,483 | private void METHOD_1 ( TYPE_1 out ) throws java.io.IOException , java.lang.ClassNotFoundException { <BUG> out . METHOD_2 ( ) ;</BUG> VAR_1 = VAR_2 . getClass ( ) . getName ( ) ; if ( METHOD_3 ( ) ) java.lang.System.err.println ( ( STRING_1 + ( VAR_1 ) ) ) ; } | private void METHOD_1 ( TYPE_1 out ) throws java.io.IOException , java.lang.ClassNotFoundException { VAR_1 = VAR_2 . getClass ( ) . getName ( ) ; if ( METHOD_3 ( ) ) java.lang.System.err.println ( ( STRING_1 + ( VAR_1 ) ) ) ; out . METHOD_2 ( ) ; }
|
40,484 | <BUG>private int METHOD_1 ( TYPE_1 VAR_1 ) throws java.io.IOException {</BUG> int VAR_2 = METHOD_2 ( ) ; METHOD_3 ( VAR_1 ) ; return VAR_2 ; } | private int METHOD_1 ( boolean VAR_1 ) throws java.io.IOException { int VAR_2 = METHOD_2 ( ) ; METHOD_3 ( VAR_1 ) ; return VAR_2 ; }
|
40,485 | public void METHOD_1 ( ) { <BUG> VAR_1 . METHOD_2 ( false ) ;</BUG> METHOD_3 ( ) ; TYPE_1 main = ( ( TYPE_1 ) ( getActivity ( ) ) ) ; main . METHOD_4 ( ) ; } | public void METHOD_1 ( ) { METHOD_3 ( ) ; TYPE_1 main = ( ( TYPE_1 ) ( getActivity ( ) ) ) ; main . METHOD_4 ( ) ; }
|
40,486 | public void METHOD_1 ( int VAR_1 ) { <BUG> this . VAR_2 . remove ( VAR_1 ) ;</BUG> TYPE_1 . METHOD_2 ( VAR_1 ) ; } | public void METHOD_1 ( int VAR_1 ) { this . VAR_2 . remove ( ( ( java.lang.Object ) ( VAR_1 ) ) ) ; TYPE_1 . METHOD_2 ( VAR_1 ) ; }
|
40,487 | <BUG>private void METHOD_1 ( double VAR_1 ) {</BUG> VAR_2 . set ( VAR_1 ) ; } | public void METHOD_1 ( double VAR_1 ) { VAR_2 . set ( VAR_1 ) ; }
|
40,488 | public void METHOD_1 ( ) { TYPE_1 VAR_1 = new TYPE_1 ( STRING_1 ) ; TYPE_1 VAR_2 = new TYPE_1 ( STRING_2 ) ; METHOD_2 ( VAR_1 , VAR_2 ) ; <BUG> VAR_1 . METHOD_3 ( ) ;VAR_2 . METHOD_3 ( ) ;</BUG> } | public void METHOD_1 ( ) { TYPE_1 VAR_1 = new TYPE_1 ( STRING_1 ) ; TYPE_1 VAR_2 = new TYPE_1 ( STRING_2 ) ; METHOD_2 ( VAR_1 , VAR_2 ) ; }
|
40,489 | public void METHOD_1 ( int id ) { <BUG> VAR_1 . get ( id ) . METHOD_2 ( ) ;</BUG> } | public void METHOD_1 ( int id ) { }
|
40,490 | public TYPE_1 METHOD_1 ( ) { <BUG> TYPE_1 VAR_1 = new TYPE_1 ( STRING_1 ) ;</BUG> for ( TYPE_2 . nodes VAR_2 : VAR_3 ) { <BUG> VAR_1 . add ( VAR_2 . METHOD_1 ( ) ) ;</BUG> } <BUG> return VAR_1 ;</BUG> } | public TYPE_1 METHOD_1 ( ) { for ( TYPE_2 . nodes VAR_2 : VAR_3 ) { this . add ( VAR_2 . METHOD_1 ( ) ) ; } return this ; }
|
40,491 | public java.util.Collection < TYPE_1 > METHOD_1 ( ) { <BUG> return null ;</BUG> } | public java.util.Collection < TYPE_1 > METHOD_1 ( ) { return new java.util.ArrayList < > ( ) ; }
|
40,492 | public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 . METHOD_1 ( VAR_1 ) ; <BUG> VAR_1 . METHOD_2 ( VAR_3 ) ;VAR_1 . METHOD_3 ( INT_1 , 0 , INT_2 , INT_2 ) ;VAR_1 . METHOD_3 ( 0 , INT_1 , INT_2 , INT_2 ) ;</BUG> } | public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 . METHOD_1 ( VAR_1 ) ; }
|
40,493 | private int METHOD_1 ( int a ) { <BUG> if ( ( a & ( ~ INT_1 ) ) != 0 ) return ( - a ) > > INT_2 ;</BUG> else return a ; } | private int METHOD_1 ( int a ) { if ( ( a & ( ~ INT_1 ) ) != 0 ) return ( ( - a ) > > INT_2 ) & INT_1 ; else return a ; }
|
40,494 | public boolean METHOD_1 ( TYPE_1 state , TYPE_2 VAR_1 , TYPE_3 VAR_2 , TYPE_4 VAR_3 ) { <BUG> return super . METHOD_1 ( state , VAR_1 , VAR_2 , VAR_3 ) ;</BUG> } | public boolean METHOD_1 ( TYPE_1 state , TYPE_2 VAR_1 , TYPE_3 VAR_2 , TYPE_4 VAR_3 ) { return true ; }
|
40,495 | <BUG>public void METHOD_1 ( final TYPE_1 field ) {</BUG> TYPE_2 . METHOD_2 ( field , VAR_1 ) ; } | public void METHOD_1 ( TYPE_1 field ) { TYPE_2 . METHOD_2 ( field , VAR_1 ) ; }
|
40,496 | public int METHOD_1 ( TYPE_1 VAR_1 , TYPE_1 VAR_2 ) { <BUG> return VAR_3 . METHOD_1 ( VAR_1 . METHOD_2 ( ) , VAR_2 . METHOD_2 ( ) ) ;</BUG> } | public int METHOD_1 ( TYPE_1 VAR_1 , TYPE_1 VAR_2 ) { return VAR_3 . METHOD_1 ( VAR_2 . METHOD_2 ( ) , VAR_1 . METHOD_2 ( ) ) ; }
|
40,497 | public synchronized void METHOD_1 ( TYPE_1 VAR_1 ) { <BUG> java.lang.System.out.println ( VAR_1 ) ;java.lang.System.out.println ( VAR_2 ) ;</BUG> METHOD_2 ( ) ; } | public synchronized void METHOD_1 ( TYPE_1 VAR_1 ) { METHOD_2 ( ) ; }
|
40,498 | public TYPE_1 METHOD_1 ( java.lang.String VAR_1 , TYPE_2 VAR_2 , TYPE_3 VAR_3 , TYPE_3 VAR_4 ) { <BUG> return null ;</BUG> } | public TYPE_1 METHOD_1 ( java.lang.String VAR_1 , TYPE_2 VAR_2 , TYPE_3 VAR_3 , TYPE_3 VAR_4 ) { return new TYPE_1 ( VAR_1 , VAR_2 , VAR_3 , VAR_4 ) ; }
|
40,499 | <BUG>private native void METHOD_1 ( long handle , int VAR_1 ) ;</BUG> | private native void end ( long handle , int end ) ;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.