input
stringlengths 96
415
| output
stringlengths 18
303
|
---|---|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { TYPE_1 VAR_1 = new TYPE_1 ( ) ; TYPE_2 VAR_2 = TYPE_3 . METHOD_2 ( getActivity ( ) ) ; java.lang.String VAR_3 = null ; VAR_3 = VAR_2 . getString ( STRING_1 , STRING_2 ) ; VAR_1 . execute ( VAR_3 ) ; }
|
private void METHOD_1 ( ) { TYPE_1 VAR_1 = new TYPE_1 ( ) ; TYPE_2 VAR_2 = TYPE_3 . METHOD_2 ( getActivity ( ) ) ; java.lang.String VAR_3 = VAR_2 . getString ( STRING_1 , STRING_2 ) ; VAR_1 . execute ( VAR_3 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { TYPE_1 . METHOD_2 ( ) . METHOD_1 ( ) ; super . METHOD_1 ( ) ; }
|
public void METHOD_1 ( ) { if ( ( TYPE_1 . METHOD_2 ( ) ) != null ) TYPE_1 . METHOD_2 ( ) . METHOD_1 ( ) ; super . METHOD_1 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. protected TYPE_1 METHOD_1 ( TYPE_1 VAR_1 ) { return VAR_1 ; }
|
protected abstract TYPE_1 METHOD_1 ( TYPE_1 VAR_1 ) ;
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( boolean x ) { this . VAR_1 = x ; }
|
public void METHOD_1 ( boolean x ) { return ; }
|
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( TYPE_1 VAR_1 , boolean VAR_2 ) { TYPE_1 VAR_3 = super . METHOD_1 ( VAR_1 , false ) ; VAR_3 . METHOD_2 ( VAR_4 ) ; METHOD_3 ( VAR_3 ) ; return VAR_3 ; }
|
public TYPE_1 METHOD_1 ( TYPE_1 VAR_1 , boolean VAR_2 ) { TYPE_1 VAR_3 = super . METHOD_1 ( VAR_1 , false ) ; VAR_3 . METHOD_2 ( VAR_4 ) ; return VAR_3 ; }
|
The following code may contain bugs. Write a refined code without bugs. public int METHOD_1 ( ) { return ( ( VAR_1 . size ) - 1 ) * ( VAR_1 . get ( 1 ) . METHOD_2 ( ) ) ; }
|
public int METHOD_1 ( ) { return ( VAR_1 . size ) * ( VAR_1 . get ( 0 ) . METHOD_2 ( ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.String VAR_1 , TYPE_1 VAR_2 ) { VAR_3 . add ( VAR_1 ) ; METHOD_2 ( VAR_2 ) ; }
|
public void METHOD_1 ( java.lang.String VAR_1 ) { VAR_3 . add ( VAR_1 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. private boolean METHOD_1 ( TYPE_1 source ) { return ( METHOD_2 ( source ) ) || ( METHOD_3 ( source . getId ( ) ) ) ; }
|
private boolean METHOD_1 ( TYPE_1 source ) { return ( METHOD_2 ( source ) ) || ( METHOD_3 ( source ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 . set ( 0.0 ) ; java.lang.System.out.println ( STRING_1 ) ; }
|
public void METHOD_1 ( ) { VAR_1 . set ( 0.0 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( android.content.Context context ) { super . METHOD_1 ( context ) ; TYPE_1 VAR_1 = getActivity ( ) ; if ( VAR_1 instanceof TYPE_2 ) { listener = ( ( TYPE_2 ) ( VAR_1 ) ) ; } }
|
public void METHOD_1 ( TYPE_1 context ) { super . METHOD_1 ( context ) ; TYPE_1 VAR_1 = getActivity ( ) ; if ( VAR_1 instanceof TYPE_2 ) { listener = ( ( TYPE_2 ) ( VAR_1 ) ) ; } else { } }
|
The following code may contain bugs. Write a refined code without bugs. protected final java.util.List < TYPE_1 > METHOD_1 ( ) { return VAR_1 ; }
|
private java.util.List < TYPE_1 > METHOD_1 ( ) { return VAR_1 ; }
|
The following code may contain bugs. Write a refined code without bugs. public java.lang.String METHOD_1 ( int position ) { return VAR_1 [ ( position % ( ( VAR_1 . length ) - 1 ) ) ] ; }
|
public java.lang.String METHOD_1 ( int position ) { return VAR_1 [ ( position % ( VAR_1 . length ) ) ] ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { this . METHOD_2 ( ) ; VAR_1 = new TYPE_1 ( VAR_2 , VAR_3 ) ; VAR_1 . METHOD_3 ( ) ; VAR_4 = new TYPE_1 ( VAR_5 , VAR_6 ) ; VAR_4 . METHOD_3 ( ) ; }
|
public void METHOD_1 ( ) { this . METHOD_2 ( ) ; VAR_1 = new TYPE_1 ( VAR_2 , VAR_3 ) ; VAR_1 . METHOD_3 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. TYPE_1 METHOD_1 ( ) throws TYPE_2 { TYPE_1 node = METHOD_2 ( ) ; METHOD_3 ( VAR_1 ) ; return node ; }
|
TYPE_1 METHOD_1 ( ) throws TYPE_2 { return METHOD_2 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( long id ) { ( VAR_1 ) ++ ; VAR_2 . add ( ( ( data . METHOD_2 ( ) ) + 1 ) , id ) ; ( VAR_3 ) ++ ; METHOD_3 ( ) ; }
|
public void METHOD_1 ( long id ) { ( VAR_1 ) ++ ; VAR_2 . add ( ( ( data . METHOD_2 ( ) ) + 1 ) , id ) ; ( VAR_3 ) ++ ; }
|
The following code may contain bugs. Write a refined code without bugs. public boolean METHOD_1 ( final TYPE_1 VAR_1 ) { if ( VAR_2 ) { return VAR_3 . add ( VAR_1 ) ; } else { throw new TYPE_2 ( STRING_1 ) ; } }
|
public boolean METHOD_1 ( final TYPE_1 VAR_1 ) { if ( VAR_2 ) { throw new TYPE_2 ( STRING_1 ) ; } else { return VAR_3 . add ( VAR_1 ) ; } }
|
The following code may contain bugs. Write a refined code without bugs. public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( TYPE_1 . METHOD_1 ( INT_1 , INT_2 ) ) ; }
|
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( TYPE_1 . METHOD_1 ( 0 , INT_2 ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( java.lang.String to ) { return to ( to , true , false ) ; }
|
public TYPE_1 METHOD_1 ( java.lang.Object to ) { return to ( to , false ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public int METHOD_1 ( int VAR_1 ) { return this . VAR_2 . get ( this . VAR_3 . get ( VAR_1 ) . METHOD_2 ( ) ) . size ( ) ; }
|
public int METHOD_1 ( int VAR_1 ) { return 1 ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { TYPE_1 . METHOD_2 ( false ) . METHOD_3 ( this . VAR_1 ) . METHOD_4 ( ) ; }
|
private void METHOD_1 ( ) { METHOD_2 ( false ) . METHOD_3 ( this . VAR_1 ) . METHOD_4 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { TYPE_1 VAR_1 = ( ( TYPE_1 ) ( TYPE_2 . METHOD_2 ( STRING_1 ) ) ) ; METHOD_3 ( VAR_1 . METHOD_4 ( ) , METHOD_5 ( ) ) ; }
|
public void METHOD_1 ( ) { TYPE_1 VAR_1 = ( ( TYPE_1 ) ( METHOD_2 ( STRING_1 ) ) ) ; METHOD_3 ( VAR_1 . METHOD_4 ( ) , METHOD_5 ( ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( java.lang.String VAR_1 ) { TYPE_1 VAR_2 = null ; try { VAR_2 = VAR_3 . METHOD_2 ( VAR_1 ) ; } catch ( TYPE_2 VAR_4 ) { java.lang.System.out.println ( STRING_1 ) ; } finally { METHOD_3 ( ) ; } return VAR_2 ; }
|
public void METHOD_1 ( java.lang.String VAR_1 ) { try { VAR_2 = VAR_3 . METHOD_2 ( VAR_1 ) ; } catch ( TYPE_2 VAR_4 ) { java.lang.System.out.println ( STRING_1 ) ; } }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 . METHOD_2 ( ) ; ( ( TYPE_2 ) ( VAR_3 ) ) . METHOD_3 ( null ) ; }
|
public void METHOD_1 ( TYPE_1 VAR_1 ) { ( ( TYPE_2 ) ( VAR_3 ) ) . METHOD_3 ( null ) ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { VAR_1 . METHOD_2 ( new TYPE_1 ( this , VAR_2 ) ) ; VAR_3 = new TYPE_2 ( this , VAR_4 ) ; VAR_1 . METHOD_3 ( VAR_3 ) ; }
|
private void METHOD_1 ( ) { VAR_1 . METHOD_2 ( new TYPE_1 ( this , VAR_2 ) ) ; VAR_3 = new TYPE_2 ( this , VAR_4 , VAR_2 ) ; VAR_1 . METHOD_3 ( VAR_3 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( ) throws java.io.IOException { if ( ( ! ( VAR_1 ) ) && ( ( VAR_2 ) != null ) ) { METHOD_2 ( ) ; } }
|
protected void METHOD_1 ( ) throws java.io.IOException , java.lang.Throwable { try { if ( ( ! ( VAR_1 ) ) && ( ( VAR_2 ) != null ) ) { METHOD_2 ( ) ; } } finally { super . METHOD_1 ( ) ; } }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( int VAR_1 ) { this . VAR_2 = METHOD_2 ( VAR_1 ) ; }
|
public boolean METHOD_1 ( int VAR_1 ) { this . VAR_2 = METHOD_2 ( VAR_1 ) ; return ( ( VAR_2 [ 0 ] ) >= 0 ) && ( ( VAR_2 [ 1 ] ) >= 0 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 event ) { VAR_1 = null ; context = null ; }
|
public void METHOD_1 ( TYPE_1 event ) { context = null ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_1 . METHOD_2 ( STRING_1 , VAR_2 . METHOD_3 ( INT_1 ) ) ; if ( ( VAR_3 ) == null ) { TYPE_2 VAR_4 = new TYPE_2 ( ) ; VAR_3 = VAR_4 . METHOD_4 ( ) ; } }
|
public void METHOD_1 ( TYPE_1 VAR_1 ) { if ( ( VAR_3 ) == null ) { TYPE_2 VAR_4 = new TYPE_2 ( ) ; VAR_3 = VAR_4 . METHOD_4 ( ) ; } }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { if ( ( ( ( VAR_1 ) != null ) && ( ( VAR_2 ) != null ) ) && ( VAR_1 . METHOD_2 ( ) ) ) VAR_1 . METHOD_1 ( ) ; else { METHOD_3 ( ) ; } }
|
public void METHOD_1 ( ) { if ( ( ( VAR_1 ) != null ) && ( VAR_1 . METHOD_2 ( ) ) ) VAR_1 . METHOD_1 ( ) ; else if ( ( VAR_1 ) == null ) { METHOD_3 ( ) ; } }
|
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; METHOD_2 ( ) ; VAR_2 . METHOD_3 ( false ) ; }
|
protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; METHOD_2 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( java.lang.String message ) { TYPE_1 . METHOD_2 ( getContext ( ) , message , VAR_1 ) ; }
|
private void METHOD_1 ( java.lang.String message ) { TYPE_1 . METHOD_2 ( getContext ( ) , message , VAR_1 ) . show ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( ) throws TYPE_2 { return new TYPE_3 ( VAR_1 , VAR_2 , VAR_3 , this . METHOD_2 ( ) ) ; }
|
public TYPE_1 METHOD_1 ( ) throws TYPE_2 { return new TYPE_3 ( VAR_1 , VAR_2 , VAR_3 , this . METHOD_2 ( ) , this ) ; }
|
The following code may contain bugs. Write a refined code without bugs. boolean METHOD_1 ( ) { return ( java.lang.Math.abs ( ( ( VAR_1 ) - ( VAR_2 ) ) ) ) < ( VAR_3 ) ; }
|
boolean METHOD_1 ( ) { return new java.lang.Double ( VAR_1 ) . equals ( VAR_2 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { TYPE_1 VAR_1 = new TYPE_1 ( this . METHOD_2 ( ) ) ; java.util.List < TYPE_2 > VAR_2 = VAR_1 . METHOD_3 ( ) ; VAR_3 . METHOD_4 ( VAR_2 ) ; }
|
private void METHOD_1 ( ) { VAR_2 = VAR_1 . METHOD_3 ( ) ; VAR_3 . METHOD_4 ( VAR_2 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { if ( ! ( VAR_1 . isEmpty ( ) ) ) { METHOD_2 ( VAR_2 ) ; METHOD_3 ( VAR_1 , METHOD_4 ( VAR_3 ) ) ; VAR_1 = STRING_1 ; } }
|
private void METHOD_1 ( ) { if ( ! ( VAR_1 . isEmpty ( ) ) ) { METHOD_2 ( VAR_2 ) ; METHOD_3 ( VAR_1 , METHOD_4 ( VAR_3 ) , true ) ; VAR_1 = STRING_1 ; } }
|
The following code may contain bugs. Write a refined code without bugs. public byte [ ] METHOD_1 ( java.lang.String fileName ) { VAR_1 . METHOD_2 ( ) ; byte [ ] data = VAR_1 . METHOD_1 ( fileName ) ; VAR_1 . METHOD_3 ( ) ; return data ; }
|
public byte [ ] METHOD_1 ( java.lang.String fileName ) { byte [ ] data = VAR_1 . METHOD_1 ( fileName ) ; return data ; }
|
The following code may contain bugs. Write a refined code without bugs. public static void info ( final java.lang.String pattern , final java.lang.Object ... VAR_1 ) { final TYPE_1 VAR_2 = java.lang.Thread . METHOD_1 ( ) . METHOD_2 ( ) [ 1 ] ; TYPE_2 . METHOD_3 ( VAR_3 , null , pattern , VAR_2 , VAR_1 ) ; }
|
public static void info ( final java.lang.String pattern , final java.lang.Object ... VAR_1 ) { TYPE_2 . METHOD_3 ( VAR_3 , null , pattern , VAR_1 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( android.view.View VAR_1 ) { TYPE_1 . METHOD_2 ( getActivity ( ) , VAR_2 , VAR_3 , VAR_4 , null ) ; TYPE_2 . METHOD_3 ( STRING_1 ) ; METHOD_4 ( ) ; }
|
public void METHOD_1 ( android.view.View VAR_1 ) { TYPE_1 . METHOD_2 ( getActivity ( ) , VAR_2 , VAR_3 , VAR_4 , null ) ; METHOD_4 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { TYPE_1 . METHOD_2 ( STRING_1 , ( ( METHOD_3 ( ) ) + STRING_2 ) ) ; METHOD_4 ( ( ( float ) ( ( VAR_1 ) * FLOAT_1 ) ) ) ; }
|
private void METHOD_1 ( ) { TYPE_1 . METHOD_2 ( STRING_1 , ( ( VAR_1 ) + STRING_2 ) ) ; METHOD_4 ( ( ( float ) ( ( VAR_1 ) * FLOAT_1 ) ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { super . METHOD_1 ( ) ; if ( VAR_1 ) { VAR_2 . METHOD_2 ( VAR_3 ) ; } }
|
public void METHOD_1 ( ) { super . METHOD_1 ( ) ; if ( ( VAR_1 ) && ( ( VAR_2 ) != null ) ) { VAR_2 . METHOD_2 ( VAR_3 ) ; } }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.String VAR_1 , int length ) { METHOD_2 ( VAR_1 , VAR_2 class , METHOD_3 ( ) . add ( VAR_3 , length ) . build ( ) , false ) ; }
|
public void METHOD_1 ( java.lang.String VAR_1 , int length ) { METHOD_2 ( VAR_1 , VAR_2 class , METHOD_3 ( ) . add ( VAR_3 , ( length + 1 ) ) . build ( ) , false ) ; }
|
The following code may contain bugs. Write a refined code without bugs. protected TYPE_1 < java.lang.Object > METHOD_1 ( ) { return new TYPE_1 < java.lang.Object > ( this . VAR_1 ) ; }
|
protected java.util.HashSet < java.lang.Object > METHOD_1 ( ) { return new java.util.HashSet < java.lang.Object > ( this . VAR_1 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void update ( ) throws TYPE_1 { METHOD_1 ( ) ; if ( ( state ) != ( VAR_1 ) ) { VAR_2 = METHOD_2 ( ) ; VAR_3 = new java.util.Date ( ) ; METHOD_3 ( ) ; } }
|
public void update ( ) throws TYPE_1 { METHOD_1 ( ) ; if ( ( state ) != ( VAR_1 ) ) { VAR_2 = METHOD_2 ( ) ; VAR_3 = new java.util.Date ( ) ; } METHOD_3 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public static java.lang.Double METHOD_1 ( android.content.Context VAR_1 , java.lang.Double VAR_2 ) { java.lang.Double VAR_3 ; VAR_3 = VAR_2 / ( VAR_1 . METHOD_2 ( VAR_4 , VAR_5 ) . METHOD_3 ( VAR_6 , 1.0F ) ) ; return VAR_3 ; }
|
public static java.lang.Double METHOD_1 ( android.content.Context VAR_1 , java.lang.Double VAR_2 ) { return VAR_2 / ( VAR_1 . METHOD_2 ( VAR_4 , VAR_5 ) . METHOD_3 ( VAR_6 , 1.0F ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { if ( VAR_1 ) { VAR_2 = true ; } }
|
public void METHOD_1 ( ) { if ( VAR_1 ) { VAR_2 = true ; isEmpty = false ; } }
|
The following code may contain bugs. Write a refined code without bugs. public java.lang.String METHOD_1 ( ) { try { return this . METHOD_2 ( ) . getString ( VAR_1 ) ; } catch ( java.lang.Exception VAR_2 ) { java.lang.System.out.println ( VAR_2 . METHOD_2 ( ) ) ; return null ; } }
|
public java.lang.String METHOD_1 ( ) { try { return this . METHOD_2 ( ) . getString ( VAR_1 ) ; } catch ( java.lang.Exception VAR_2 ) { return null ; } }
|
The following code may contain bugs. Write a refined code without bugs. public static java.util.ArrayList < java.lang.String > METHOD_1 ( ) { java.util.ArrayList < java.lang.String > VAR_1 ; VAR_2 . METHOD_2 ( STRING_1 ) ; VAR_1 = ( ( java.util.ArrayList < java.lang.String > ) ( VAR_2 . METHOD_3 ( ) ) ) ; return VAR_1 ; }
|
public static java.util.ArrayList < java.lang.String > METHOD_1 ( ) { java.util.ArrayList < java.lang.String > VAR_1 ; java.lang.String msg = STRING_1 ; VAR_2 . METHOD_2 ( msg ) ; VAR_1 = ( ( java.util.ArrayList < java.lang.String > ) ( VAR_2 . METHOD_3 ( ) ) ) ; return VAR_1 ; }
|
The following code may contain bugs. Write a refined code without bugs. public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( STRING_1 ) ; TYPE_1 t = new TYPE_1 ( STRING_2 ) ; TYPE_2 VAR_1 = new TYPE_2 ( VAR_2 , t ) ; java.lang.System.out.println ( VAR_1 . toString ( ) ) ; }
|
public static void main ( java.lang.String [ ] args ) { }
|
The following code may contain bugs. Write a refined code without bugs. public int METHOD_1 ( ) { final int VAR_1 = INT_1 ; int result = 1 ; result = ( VAR_1 * result ) + ( ( value ) == null ? 0 : value . METHOD_1 ( ) ) ; return result ; }
|
public int METHOD_1 ( ) { return ( INT_1 * 1 ) + ( ( value ) == null ? 0 : value . METHOD_1 ( ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( long position , float value ) { long i = ( VAR_1 ) + ( position * ( VAR_2 ) ) ; METHOD_2 ( i ) ; VAR_3 . METHOD_3 ( i , value ) ; }
|
public void METHOD_1 ( long position , float value ) { METHOD_2 ( position ) ; VAR_3 . METHOD_3 ( ( ( VAR_1 ) + position ) , value ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 data ) { try { VAR_1 = VAR_2 ; this . VAR_3 . METHOD_2 ( TYPE_2 . METHOD_3 ( data ) . toString ( ) ) ; } catch ( java.lang.Exception VAR_4 ) { } }
|
public void METHOD_1 ( TYPE_1 data ) { try { VAR_1 = VAR_2 ; this . VAR_3 . METHOD_2 ( TYPE_2 . METHOD_3 ( data ) . toString ( ) ) ; } catch ( java.lang.Exception VAR_4 ) { java.lang.System.out.println ( VAR_4 . toString ( ) ) ; } }
|
The following code may contain bugs. Write a refined code without bugs. public java.lang.String METHOD_1 ( TYPE_1 VAR_1 ) { java.util.Map < java.lang.String , java.lang.String > VAR_2 = METHOD_2 ( VAR_1 ) ; java.lang.String VAR_3 = METHOD_3 ( VAR_1 ) ; return VAR_2 . get ( VAR_3 ) ; }
|
public java.lang.String METHOD_1 ( final TYPE_1 VAR_1 ) { final java.util.Map < java.lang.String , java.lang.String > VAR_2 = METHOD_2 ( VAR_1 ) ; final java.lang.String VAR_3 = METHOD_3 ( VAR_1 ) ; return VAR_2 . get ( VAR_3 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( int VAR_1 ) { this . VAR_1 = VAR_1 ; VAR_2 = VAR_1 ; VAR_3 = VAR_4 ; while ( ( VAR_2 ) > INT_1 ) { VAR_2 /= INT_2 ; VAR_3 /= INT_2 ; } }
|
public void METHOD_1 ( int VAR_1 ) { this . VAR_1 = VAR_1 ; VAR_2 = VAR_1 ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( TYPE_1 VAR_1 ) { if ( VAR_1 . METHOD_2 ( ) ) { METHOD_3 ( VAR_1 . METHOD_4 ( ) ) ; METHOD_3 ( VAR_1 . METHOD_5 ( ) . METHOD_4 ( ) ) ; } update ( VAR_1 . METHOD_4 ( ) ) ; }
|
private void METHOD_1 ( TYPE_1 VAR_1 ) { if ( VAR_1 . METHOD_2 ( ) ) { METHOD_3 ( VAR_1 . METHOD_4 ( ) ) ; } update ( VAR_1 . METHOD_4 ( ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { VAR_1 . METHOD_2 ( VAR_2 ) ; VAR_1 . METHOD_2 ( VAR_3 ) ; VAR_4 = VAR_1 . METHOD_3 ( VAR_2 ) ; VAR_5 = VAR_1 . METHOD_3 ( VAR_3 ) ; }
|
private void METHOD_1 ( ) { VAR_1 . remove ( VAR_2 ) ; VAR_1 . METHOD_2 ( VAR_2 ) ; VAR_1 . METHOD_2 ( VAR_3 ) ; VAR_4 = VAR_1 . METHOD_3 ( VAR_2 ) ; VAR_5 = VAR_1 . METHOD_3 ( VAR_3 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { if ( ( VAR_1 ) != null ) { METHOD_2 ( ) ; } VAR_1 = TYPE_1 . open ( VAR_2 ) ; METHOD_3 ( ) ; }
|
private void METHOD_1 ( ) { }
|
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; VAR_2 . METHOD_2 ( ) ; METHOD_3 ( ) ; METHOD_4 ( getString ( VAR_3 ) , false ) ; VAR_2 . METHOD_5 ( ) ; java.lang.String VAR_4 = STRING_1 ; }
|
protected void METHOD_1 ( TYPE_1 VAR_1 ) { super . METHOD_1 ( VAR_1 ) ; VAR_2 . METHOD_2 ( ) ; METHOD_3 ( ) ; METHOD_4 ( getString ( VAR_3 ) , false ) ; VAR_2 . METHOD_5 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_1 . METHOD_2 ( STRING_1 , TYPE_2 . METHOD_3 ( ) ) ; TYPE_2 . METHOD_4 ( ) . METHOD_5 ( new TYPE_3 ( ) ) ; }
|
public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_1 . METHOD_2 ( STRING_1 , TYPE_2 . METHOD_3 ( ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( ) { try { METHOD_2 ( ) ; } catch ( java.io.IOException VAR_1 ) { } }
|
protected void METHOD_1 ( ) throws java.lang.Throwable { try { METHOD_2 ( ) ; } finally { super . METHOD_1 ( ) ; } }
|
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { this . VAR_1 = VAR_1 ; return this . VAR_2 . METHOD_1 ( VAR_1 ) ; }
|
public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { this . VAR_1 = VAR_1 ; if ( ( this . VAR_2 ) != null ) { return this . VAR_2 . METHOD_1 ( VAR_1 ) ; } else { return null ; } }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.String url ) { java.lang.System.out.println ( ( STRING_1 + url ) ) ; this . url = url ; }
|
public void METHOD_1 ( java.lang.String url ) { this . url = url ; }
|
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( java.lang.String VAR_1 ) throws java.io.IOException { TYPE_1 VAR_2 = new TYPE_2 ( METHOD_2 ( ) ) . METHOD_3 ( ) ; METHOD_4 ( VAR_2 . METHOD_5 ( ) , new java.io.FileOutputStream ( VAR_1 ) , true ) ; VAR_2 . METHOD_6 ( ) ; }
|
protected void METHOD_1 ( java.lang.String VAR_1 ) throws java.io.IOException { TYPE_1 VAR_2 = new TYPE_2 ( METHOD_2 ( ) ) . METHOD_3 ( ) ; VAR_2 . METHOD_6 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public static int METHOD_1 ( TYPE_1 status ) { if ( status == null ) { return 0 ; } switch ( status ) { case VAR_1 : return VAR_1 ; case VAR_2 : return VAR_2 ; case VAR_3 : return VAR_3 ; default : return 0 ; } }
|
public static int METHOD_1 ( TYPE_1 status ) { if ( status == null ) { return 0 ; } return status . getValue ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. private static boolean METHOD_1 ( TYPE_1 VAR_1 , TYPE_1 VAR_2 ) { return ( VAR_1 . METHOD_2 ( ) ) != ( VAR_2 . METHOD_2 ( ) ) ; }
|
private static boolean METHOD_1 ( TYPE_1 VAR_1 , TYPE_1 VAR_2 ) { return ( VAR_1 . METHOD_2 ( ) ) == ( VAR_2 . METHOD_2 ( ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 = METHOD_2 ( INT_1 , VAR_2 , VAR_3 ) ; TYPE_1 VAR_4 = new TYPE_1 ( VAR_1 , VAR_5 ) ; TYPE_2 . assertEquals ( VAR_4 . METHOD_3 ( ) , false ) ; }
|
public void METHOD_1 ( ) { VAR_1 = METHOD_2 ( INT_1 , VAR_2 ) ; TYPE_1 VAR_4 = new TYPE_1 ( VAR_1 , VAR_5 ) ; TYPE_2 . assertEquals ( VAR_4 . METHOD_3 ( ) , false ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public static java.io.File METHOD_1 ( java.lang.String path ) { java.net.URL VAR_1 = VAR_2 class . METHOD_1 ( path ) ; assert VAR_1 != null ; return new java.io.File ( VAR_1 . METHOD_2 ( ) ) ; }
|
public static java.io.File METHOD_1 ( java.lang.String path ) { java.net.URL VAR_1 = VAR_2 class . METHOD_1 ( path ) ; if ( VAR_1 == null ) { return null ; } return new java.io.File ( VAR_1 . METHOD_2 ( ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. protected java.lang.Boolean METHOD_1 ( java.lang.Boolean value ) { if ( ! value ) return null ; return METHOD_2 ( VAR_1 ) ; }
|
protected java.lang.Boolean METHOD_1 ( java.lang.Boolean value ) { if ( ! value ) return null ; if ( METHOD_2 ( VAR_1 ) ) return null ; return false ; }
|
The following code may contain bugs. Write a refined code without bugs. public static void main ( java.lang.String [ ] args ) { TYPE_1 VAR_1 = new TYPE_1 ( ) ; VAR_1 . METHOD_1 ( STRING_1 ) ; TYPE_2 VAR_2 = VAR_1 . METHOD_2 ( ) ; java.lang.System.out.print ( VAR_2 ) ; }
|
public static void main ( java.lang.String [ ] args ) { TYPE_1 VAR_1 = new TYPE_1 ( ) ; VAR_1 . METHOD_1 ( STRING_1 ) ; TYPE_2 VAR_2 = VAR_1 . METHOD_2 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public int METHOD_1 ( ) { int VAR_1 = METHOD_2 ( ) ; int VAR_2 = ( VAR_1 > INT_1 ) ? INT_2 : 0 ; int VAR_3 = METHOD_3 ( ) ; return ( VAR_1 + VAR_2 ) + VAR_3 ; }
|
public int METHOD_1 ( ) { int VAR_1 = METHOD_2 ( ) ; int VAR_3 = METHOD_3 ( ) ; int VAR_2 = ( VAR_3 > INT_1 ) ? INT_2 : 0 ; return ( VAR_1 + VAR_2 ) + VAR_3 ; }
|
The following code may contain bugs. Write a refined code without bugs. void METHOD_1 ( ) { VAR_1 . set ( VAR_2 . METHOD_2 ( ) ) ; }
|
void METHOD_1 ( ) { if ( ( VAR_1 . get ( ) ) == null ) { VAR_1 . set ( VAR_2 . METHOD_2 ( ) ) ; } }
|
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( java.lang.String VAR_1 ) { TYPE_1 VAR_2 = VAR_3 . get ( VAR_1 ) ; TYPE_2 VAR_4 = METHOD_2 ( VAR_2 ) ; return VAR_4 ; }
|
public TYPE_1 METHOD_1 ( java.lang.String VAR_1 ) { TYPE_1 VAR_2 = VAR_3 . get ( VAR_1 ) ; return METHOD_2 ( VAR_2 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public static final TYPE_1 < TYPE_2 , TYPE_3 > METHOD_1 ( final long [ ] array , final long ... VAR_1 ) { return TYPE_4 . METHOD_2 ( new TYPE_3 ( array ) , VAR_1 ) ; }
|
public static final TYPE_1 < TYPE_2 , TYPE_3 > METHOD_2 ( final long [ ] array , final long ... VAR_1 ) { return TYPE_4 . METHOD_2 ( new TYPE_3 ( array ) , VAR_1 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 . METHOD_2 ( ) ; this . METHOD_2 ( ) ; java.lang.System.exit ( 0 ) ; }
|
public void METHOD_1 ( TYPE_1 VAR_1 ) { if ( ( VAR_2 ) != null ) { VAR_2 . METHOD_2 ( ) ; } this . METHOD_2 ( ) ; java.lang.System.exit ( 0 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( int VAR_1 ) throws TYPE_1 { android.content.Intent VAR_2 = VAR_3 . METHOD_2 ( ) ; if ( VAR_2 == null ) { METHOD_3 ( VAR_1 , VAR_4 , null ) ; } else { METHOD_4 ( VAR_2 , VAR_1 ) ; } }
|
private void METHOD_1 ( int VAR_1 ) throws TYPE_1 { android.content.Intent VAR_2 = VAR_3 . METHOD_2 ( ) ; if ( VAR_2 == null ) { METHOD_3 ( VAR_1 , VAR_4 , null ) ; } else { METHOD_3 ( VAR_1 , VAR_4 , null ) ; } }
|
The following code may contain bugs. Write a refined code without bugs. public static native void METHOD_1 ( int VAR_1 ) ;
|
public static native void METHOD_1 ( ) ;
|
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 METHOD_1 ( final TYPE_2 VAR_1 ) { return TYPE_3 . METHOD_2 ( VAR_1 , VAR_2 , this . VAR_3 ) ; }
|
public TYPE_1 METHOD_1 ( final TYPE_2 VAR_1 ) { return TYPE_3 . METHOD_2 ( VAR_1 , this . VAR_2 , this . VAR_3 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public java.util.List < TYPE_1 > METHOD_1 ( ) { return new java.util.ArrayList ( VAR_1 . METHOD_2 ( ) . METHOD_1 ( ) ) ; }
|
public java.util.List < TYPE_1 > METHOD_1 ( ) { return new java.util.ArrayList < TYPE_1 > ( VAR_1 . METHOD_2 ( ) . METHOD_1 ( ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.String VAR_1 ) { VAR_2 . METHOD_2 ( VAR_3 , this . VAR_4 , VAR_4 ) ; this . VAR_4 = VAR_1 ; }
|
public void METHOD_1 ( java.lang.String VAR_1 ) { VAR_2 . METHOD_2 ( VAR_3 , this . VAR_4 , VAR_1 ) ; this . VAR_4 = VAR_1 ; }
|
The following code may contain bugs. Write a refined code without bugs. public java.util.Map < java.lang.String , java.lang.Object > METHOD_1 ( ) { return TYPE_1 . METHOD_2 ( null , VAR_1 ) ; }
|
public java.util.Map < java.lang.String , java.lang.Object > METHOD_1 ( ) { return TYPE_1 . METHOD_2 ( super . METHOD_1 ( ) , VAR_1 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 response ) throws java.io.IOException { this . VAR_2 . delete ( VAR_1 . METHOD_2 ( "id" ) ) ; response . METHOD_3 ( ( ( VAR_1 . METHOD_4 ( ) ) + STRING_1 ) ) ; }
|
protected void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 response ) throws java.io.IOException { this . VAR_2 . delete ( java.lang.Integer.parseInt ( VAR_1 . METHOD_2 ( "id" ) ) ) ; response . METHOD_3 ( ( ( VAR_1 . METHOD_4 ( ) ) + STRING_1 ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.util.HashMap < java.lang.String , java.lang.Object > VAR_1 ) { this . VAR_1 = VAR_1 ; }
|
public void METHOD_1 ( java.util.HashMap < java.lang.String , java.lang.Object > VAR_1 ) { if ( VAR_1 != null ) this . VAR_1 = VAR_1 ; }
|
The following code may contain bugs. Write a refined code without bugs. public static void main ( java.lang.String [ ] args ) { int [ ] VAR_1 = new int [ ] { INT_1 , 1 , INT_1 , INT_1 , INT_2 , INT_1 , INT_3 } ; java.lang.System.out.println ( TYPE_1 . METHOD_1 ( VAR_1 ) ) ; }
|
public static void main ( java.lang.String [ ] args ) { int [ ] VAR_1 = new int [ ] { 1 , INT_2 , INT_2 } ; java.lang.System.out.println ( TYPE_1 . METHOD_1 ( VAR_1 ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 . METHOD_2 ( VAR_2 ) ; VAR_1 . METHOD_3 ( false ) ; VAR_1 . METHOD_4 ( true ) ; VAR_1 . METHOD_5 ( false ) ; }
|
public void METHOD_1 ( ) { VAR_1 . METHOD_2 ( VAR_2 ) ; VAR_1 . METHOD_3 ( false ) ; VAR_1 . METHOD_4 ( true ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public java.lang.String METHOD_1 ( ) { return ( ( VAR_1 ) != null ) && ( VAR_1 . METHOD_2 ( ) ) ? VAR_2 : null ; }
|
public java.lang.String METHOD_1 ( ) { return ( ( VAR_1 ) == null ) || ( ( ( VAR_1 ) != null ) && ( VAR_1 . METHOD_2 ( ) ) ) ? VAR_2 : null ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( ) { VAR_1 . METHOD_2 ( VAR_1 . METHOD_3 ( VAR_2 ) ) ; VAR_1 . METHOD_4 ( 0 ) ; view . METHOD_5 ( VAR_3 . METHOD_6 ( STRING_1 ) ) ; }
|
private void METHOD_1 ( ) { VAR_1 . METHOD_4 ( 0 ) ; view . METHOD_5 ( VAR_3 . METHOD_6 ( STRING_1 ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public static TYPE_1 get ( int VAR_1 , int VAR_2 ) { TYPE_2 VAR_3 = TYPE_2 . METHOD_1 ( VAR_1 , VAR_2 ) ; if ( VAR_3 == null ) return null ; return VAR_3 . METHOD_2 ( ) ; }
|
public static TYPE_1 get ( int VAR_1 , int VAR_2 ) { TYPE_2 VAR_3 = TYPE_2 . get ( VAR_1 , VAR_2 ) ; if ( VAR_3 == null ) return null ; return VAR_3 . METHOD_2 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public static boolean METHOD_1 ( int VAR_1 ) { if ( ( ( ( char ) ( VAR_1 ) ) == CHAR_1 ) || ( ( ( char ) ( VAR_1 ) ) == CHAR_2 ) ) return true ; else return false ; }
|
public static boolean METHOD_1 ( int VAR_1 ) { if ( ( ( char ) ( VAR_1 ) ) == CHAR_1 ) return true ; else return false ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 = VAR_2 ; if ( ( VAR_3 ) != null ) VAR_4 = VAR_2 ; super . METHOD_1 ( ) ; }
|
public void METHOD_1 ( ) { if ( ( VAR_2 ) == null ) { return ; } VAR_1 = VAR_2 ; if ( ( VAR_3 ) != null ) VAR_4 = VAR_2 ; super . METHOD_1 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( int VAR_1 , TYPE_1 [ ] VAR_2 , java.lang.String VAR_3 , java.lang.Throwable VAR_4 ) { TYPE_2 . i ( STRING_1 , ( ( STRING_2 + ( VAR_5 ) ) + VAR_3 ) ) ; }
|
public void METHOD_1 ( int VAR_1 , TYPE_1 [ ] VAR_2 , java.lang.String VAR_3 , java.lang.Throwable VAR_4 ) { TYPE_2 . i ( STRING_1 , ( ( VAR_5 ) + VAR_3 ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. private void METHOD_1 ( android.view.View view ) { android.content.Intent VAR_1 = new android.content.Intent ( this , VAR_2 class ) ; METHOD_2 ( VAR_1 ) ; this . METHOD_3 ( ) ; }
|
public void METHOD_1 ( android.view.View view ) { android.content.Intent VAR_1 = new android.content.Intent ( this , VAR_2 class ) ; METHOD_2 ( VAR_1 ) ; this . METHOD_3 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. protected void METHOD_1 ( ) { super . METHOD_1 ( ) ; VAR_1 . METHOD_2 ( ) ; VAR_1 . METHOD_3 ( ) ; }
|
protected void METHOD_1 ( ) { super . METHOD_1 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public boolean METHOD_1 ( android.view.View VAR_1 , TYPE_1 event ) { TYPE_2 . METHOD_2 ( STRING_1 , STRING_2 ) ; return false ; }
|
public boolean METHOD_1 ( android.view.View VAR_1 , TYPE_1 event ) { return false ; }
|
The following code may contain bugs. Write a refined code without bugs. public final void METHOD_1 ( android.content.Context context , java.lang.String str ) { android.content.Intent intent = new android.content.Intent ( STRING_1 ) ; intent . METHOD_2 ( TYPE_1 . METHOD_3 ( new java.io.File ( str ) ) , STRING_2 ) ; context . METHOD_4 ( intent ) ; }
|
public final void METHOD_1 ( java.lang.String str ) { android.content.Intent intent = new android.content.Intent ( STRING_1 ) ; intent . METHOD_2 ( TYPE_1 . METHOD_3 ( new java.io.File ( str ) ) , STRING_2 ) ; METHOD_4 ( intent ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( double VAR_1 ) throws TYPE_1 { VAR_2 . METHOD_2 ( ) . METHOD_3 ( VAR_1 ) ; }
|
public void METHOD_1 ( double VAR_1 ) throws TYPE_1 { METHOD_1 ( VAR_1 , ( - 1 ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void info ( long VAR_1 , java.lang.String VAR_2 , java.lang.Object ... VAR_3 ) { this . METHOD_1 ( VAR_4 , VAR_2 , VAR_1 , VAR_3 ) ; }
|
public boolean info ( long VAR_1 , java.lang.String VAR_2 , java.lang.Object ... VAR_3 ) { return this . METHOD_1 ( VAR_4 , VAR_2 , VAR_1 , VAR_3 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( TYPE_1 VAR_1 ) { TYPE_2 . METHOD_2 ( VAR_2 , STRING_1 , VAR_3 ) . show ( ) ; VAR_4 . METHOD_3 ( ) ; VAR_4 . METHOD_4 ( VAR_1 ) ; }
|
public void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_4 . METHOD_3 ( ) ; VAR_4 . METHOD_4 ( VAR_1 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( java.lang.String VAR_1 , java.lang.String VAR_2 ) { TYPE_1 VAR_3 = new TYPE_1 ( ) ; java.lang.String VAR_4 = VAR_3 . METHOD_2 ( VAR_2 ) ; VAR_5 . update ( STRING_1 , VAR_1 , VAR_4 , 0 ) ; }
|
public void METHOD_1 ( java.lang.String VAR_1 , java.lang.String VAR_2 ) { TYPE_1 VAR_3 = new TYPE_1 ( ) ; java.lang.String VAR_4 = VAR_3 . METHOD_2 ( VAR_2 ) ; VAR_5 . update ( STRING_1 , VAR_1 , VAR_4 ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public TYPE_1 < TYPE_2 < TYPE_3 > > METHOD_1 ( TYPE_2 < java.lang.String > VAR_1 ) { return TYPE_1 . METHOD_2 ( VAR_2 . METHOD_1 ( VAR_1 ) ) ; }
|
public TYPE_1 < java.util.List < TYPE_3 > > METHOD_1 ( java.util.List < java.lang.String > VAR_1 ) { return TYPE_1 . METHOD_2 ( VAR_2 . METHOD_1 ( VAR_1 ) ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { VAR_1 = new TYPE_1 ( VAR_2 , this . VAR_3 ) ; VAR_4 = new TYPE_2 ( VAR_2 , this . VAR_5 , VAR_6 ) ; VAR_4 . METHOD_2 ( VAR_6 ) ; VAR_4 . METHOD_3 ( ) ; }
|
public void METHOD_1 ( ) { VAR_1 = new TYPE_1 ( VAR_2 , this . VAR_3 ) ; VAR_4 = new TYPE_2 ( VAR_2 , this . VAR_5 , VAR_6 ) ; VAR_4 . METHOD_2 ( VAR_6 ) ; VAR_1 . METHOD_3 ( ) ; }
|
The following code may contain bugs. Write a refined code without bugs. public void METHOD_1 ( ) { try { status . METHOD_1 ( ) ; } catch ( TYPE_1 | TYPE_2 VAR_1 ) { VAR_1 . METHOD_2 ( ) ; } }
|
public void METHOD_1 ( ) throws TYPE_1 , TYPE_2 { status . METHOD_1 ( ) ; }
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.