nus-yam/ex-repair huggingface dataset:
Buggy code:
public class FileHandlerAdd extends AbstractHandlerAdd { private static final long serialVersionUID = 3144252544518106859L ; private String relativeTo ; private String path ; private boolean append = true ; protected FileHandlerAdd ( final String name ) { } protected AbstractHandlerElement < ? > createElement ( final String name ) { } public String getRelativeTo ( ) { } public void setRelativeTo ( final String relativeTo ) { } public String getPath ( ) { } public void setPath ( final String path ) { } public boolean isAppend ( ) { } public void setAppend ( final boolean append ) { } protected < P > void applyUpdate ( final UpdateContext updateContext , final UpdateResultHandler < ? super Void , P > handler , final P param ) { try { <START_BUG> final BatchBuilder batchBuilder = updateContext . getBatchBuilder ( ) ; <END_BUG> final FileHandlerService service = new FileHandlerService ( ) ; final ServiceBuilder < Handler > serviceBuilder = batchBuilder . addService ( LogServices . handlerName ( getName ( ) ) , service ) ; final String relativeTo = this . relativeTo ; if ( relativeTo != null ) { serviceBuilder . addDependency ( AbstractPathService . pathNameOf ( relativeTo ) , String . class , service . getRelativeToInjector ( ) ) ; } service . setLevel ( Level . parse ( getLevelName ( ) ) ) ; final Boolean autoFlush = getAutoflush ( ) ; if ( autoFlush != null ) service . setAutoflush ( autoFlush . booleanValue ( ) ) ; try { service . setEncoding ( getEncoding ( ) ) ; } catch ( UnsupportedEncodingException e ) { handler . handleFailure ( e , param ) ; return ; } try { service . setPath ( path ) ; } catch ( FileNotFoundException e ) { handler . handleFailure ( e , param ) ; return ; } service . setFormatterSpec ( getFormatter ( ) ) ; serviceBuilder . setInitialMode ( ACTIVE ) ; serviceBuilder . addListener ( new UpdateResultHandler . ServiceStartListener < P > ( handler , param ) ) ; serviceBuilder . install ( ) ; } catch ( Throwable t ) { handler . handleFailure ( t , param ) ; return ; } } }

Fix:
final BatchBuilder batchBuilder = updateContext . getServiceTarget ( ) ;
Buggy code:
@ Path ( ServiceGroupClient . SERVICE_PATH ) @ Produces ( { "application//xml" } ) @ Consumes ( { "application//xml" } ) public class ServiceGroupResource extends AbstractCollectionSpaceResourceImpl { protected final Logger logger = LoggerFactory . getLogger ( this . getClass ( ) ) ; @ Override public String getServiceName ( ) { } public String getServicePathComponent ( ) { } @ Override protected String getVersionString ( ) { } @ Override public Class getCommonPartClass ( ) { } @ Override public ServiceContextFactory < PoxPayloadIn , PoxPayloadOut > getServiceContextFactory ( ) { } @ GET public AbstractCommonList getList ( @ Context UriInfo ui ) { } @ GET @ Path ( "{csid}" ) public byte [ ] get ( @ Context UriInfo ui , @ PathParam ( "csid" ) String groupname ) { } @ GET @ Path ( "{csid}//items" ) public AbstractCommonList getItems ( @ Context UriInfo ui , @ PathParam ( "csid" ) String serviceGroupName ) { ensureCSID ( serviceGroupName , READ ) ; AbstractCommonList list = null ; try { MultivaluedMap < String , String > queryParams = ui . getQueryParameters ( ) ; String keywords = queryParams . getFirst ( SEARCH_TYPE_KEYWORDS_KW ) ; <START_BUG> ServiceContext < PoxPayloadIn , PoxPayloadOut > ctx = createServiceContext ( ) ; <END_BUG> ServiceGroupDocumentModelHandler handler = ( ( ServiceGroupDocumentModelHandler ) ( createDocumentHandler ( ctx ) ) ) ; ArrayList < String > groupsList = null ; if ( "common" . equalsIgnoreCase ( serviceGroupName ) ) { groupsList = ServiceBindingUtils . getCommonServiceTypes ( ) ; } else { groupsList = new ArrayList < String > ( ) ; groupsList . add ( serviceGroupName ) ; } list = handler . getItemsForGroup ( ctx , groupsList , keywords ) ; } catch ( Exception e ) { throw bigReThrow ( e , READ_FAILED , serviceGroupName ) ; } return list ; } }

Fix:
ServiceContext < PoxPayloadIn , PoxPayloadOut > ctx = createServiceContext ( queryParams ) ;
Buggy code:
public class GeneradorDeRuido { public double generarNumeroAleatorioGaussiano ( double desviacionEstandar , double valorMedio ) { } public double generarNumeroAleatorioRayleigh ( double phi ) { } public double generarNumeroAleatorioExponencial ( double lambda ) { } public BufferedImage ruidoGaussianoAditivo ( BufferedImage original , double sigma , double mu ) { } public BufferedImage ruidoRayleighMultiplicativo ( BufferedImage original , double phi ) { } public BufferedImage ruidoExponencialMultiplicativo ( BufferedImage original , double lambda ) { } public BufferedImage ruidoImpulsivo ( BufferedImage original , int densidadDeContaminacion ) { } public BufferedImage suavizadoConFiltroDeLaMedia ( BufferedImage original , int anchoMascara , int altoMascara ) { BufferedImage nuevaImagen = new BufferedImage ( original . getWidth ( ) , original . getHeight ( ) , original . getType ( ) ) ; int [ ] [ ] mascara = new int [ anchoMascara ] [ altoMascara ] ; for ( int i = 0 ; i < anchoMascara ; i ++ ) { for ( int j = 0 ; j < altoMascara ; j ++ ) { mascara [ i ] [ j ] = 1 ; } } for ( int ancho = 0 ; ancho < ( original . getWidth ( ) ) ; ancho ++ ) { for ( int alto = 0 ; alto < ( original . getHeight ( ) ) ; alto ++ ) { nuevaImagen . setRGB ( ancho , alto , original . getRGB ( ancho , alto ) ) ; } } for ( int i = anchoMascara // 2 ; i < ( ( original . getWidth ( ) ) - ( anchoMascara // 2 ) ) ; i ++ ) { for ( int j = altoMascara // 2 ; j < ( ( original . getHeight ( ) ) - ( altoMascara // 2 ) ) ; j ++ ) { int sumarEnAncho = ( - 1 ) * ( anchoMascara // 2 ) ; int sumarEnAlto = ( - 1 ) * ( altoMascara // 2 ) ; int sumatoria = 0 ; for ( int iAnchoMascara = 0 ; iAnchoMascara < anchoMascara ; iAnchoMascara ++ ) { for ( int iAltoMascara = 0 ; iAltoMascara < altoMascara ; iAltoMascara ++ ) { <START_BUG> if ( ( iAnchoMascara != ( anchoMascara // 2 ) ) && ( iAltoMascara != ( altoMascara // 2 ) ) ) { <END_BUG> int indiceIDeLaImagen = ( i + sumarEnAncho ) + iAnchoMascara ; int indiceJDeLaImagen = ( j + sumarEnAlto ) + iAltoMascara ; double nivelDeRojo = new Color ( original . getRGB ( indiceIDeLaImagen , indiceJDeLaImagen ) ) . getRed ( ) ; sumatoria += nivelDeRojo + ( mascara [ iAnchoMascara ] [ iAltoMascara ] ) ; } } } int alpha = new Color ( original . getRGB ( i , j ) ) . getAlpha ( ) ; sumatoria = sumatoria // ( anchoMascara * altoMascara ) ; int nuevoPixel = ColorProvider . colorToRGB ( alpha , sumatoria , sumatoria , sumatoria ) ; nuevaImagen . setRGB ( i , j , nuevoPixel ) ; } } return nuevaImagen ; } No newline ; at end ; of file ; }

Fix:
if ( ! ( ( iAnchoMascara == ( anchoMascara // 2 ) ) && ( iAltoMascara == ( altoMascara // 2 ) ) ) ) {
Buggy code:
public class NewTaskFragment extends Fragment { public static final String TAG = NewTaskFragment . class . getSimpleName ( ) ; private Spinner mPrioritySpinner ; private Spinner mCategorySpinner ; private EditText mTitleEditText ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { switch ( item . getItemId ( ) ) { case id . save_task_menu : String title = mTitleEditText . getText ( ) . toString ( ) ; long category = - 1 ; String priority = mPrioritySpinner . getSelectedItem ( ) . toString ( ) ; if ( ! ( title . matches ( "" ) ) ) { boolean isCreated = TaskLab . get ( getActivity ( ) ) . createTask ( getActivity ( ) , title , priority , category ) ; if ( isCreated ) { Intent resultIntent = new Intent ( ) ; getActivity ( ) . setResult ( RESULT_OK , resultIntent ) ; getActivity ( ) . finish ( ) ; } else { Log . d ( NewTaskFragment . TAG , "Task<seq2seq4repair_space>Not<seq2seq4repair_space>Created" ) ; } } else { <START_BUG> Toast . makeText ( getActivity ( ) , "Empty<seq2seq4repair_space>Title" , LENGTH_SHORT ) . show ( ) ; <END_BUG> } return true ; default : return super . onOptionsItemSelected ( item ) ; } } }

Fix:
Toast . makeText ( getActivity ( ) , empty_task_title , LENGTH_SHORT ) . show ( ) ;
Buggy code:
public final class JavaConventions { private static final char fgDot = '.' ; private static final String fgJAVA = "JAVA" ; private JavaConventions ( ) { } public static boolean isOverlappingRoots ( IPath rootPath1 , IPath rootPath2 ) { } private static char [ ] scannedIdentifier ( String id ) { } public static IStatus validateCompilationUnitName ( String name ) { if ( name == null ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , ( - 1 ) , Util . bind ( "convention.unit.nullName" ) , null ) ; } String extension ; String identifier ; int index ; <START_BUG> index = name . indexOf ( '.' ) ; <END_BUG> if ( index == ( - 1 ) ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , ( - 1 ) , Util . bind ( "convention.unit.notJavaName" ) , null ) ; } identifier = name . substring ( 0 , index ) ; extension = name . substring ( ( index + 1 ) ) ; IStatus status = JavaConventions . validateIdentifier ( identifier ) ; if ( ! ( status . isOK ( ) ) ) { return status ; } if ( ! ( Util . isJavaFileName ( name ) ) ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , ( - 1 ) , Util . bind ( "convention.unit.notJavaName" ) , null ) ; } return new Status ( IStatus . OK , JavaCore . PLUGIN_ID , ( - 1 ) , "OK" , null ) ; } public static IStatus validateFieldName ( String name ) { } public static IStatus validateIdentifier ( String id ) { } public static IStatus validateImportDeclaration ( String name ) { } public static IStatus validateJavaTypeName ( String name ) { } public static IStatus validateMethodName ( String name ) { } public static IStatus validatePackageName ( String name ) { } public static IJavaModelStatus validateClasspath ( IJavaProject javaProject , IClasspathEntry [ ] classpath , IPath outputLocation ) { } public static IJavaModelStatus validateClasspathEntry ( IJavaProject javaProject , IClasspathEntry entry , boolean checkSourceAttachment ) { } }

Fix:
index = name . lastIndexOf ( '.' ) ;
Buggy code:
public class InteractM2 implements Interact { public double EPSILON ; public double MU ; public double DELTA ; public InteractM2 ( double EPSILON , double MU , double DELTA ) { } public double opinionDiff ( Agent a , Agent b ) { double opA = a . getOpinion ( ) ; double opB = b . getOpinion ( ) ; <START_BUG> double odiff = opB - opA ; <END_BUG> if ( odiff <= ( EPSILON ) ) return ( MU ) * ( opB - opA ) ; else if ( ( opA <= ( DELTA ) ) && ( opB >= ( 1 - ( DELTA ) ) ) ) { double diff = ( - ( MU ) ) * opA ; if ( ( ( a . getOpinion ( ) ) + diff ) < 0 ) diff = - opA ; return diff ; } else if ( ( opA >= ( 1 - ( DELTA ) ) ) && ( opB <= ( DELTA ) ) ) { double diff = ( MU ) * ( 1 - opA ) ; if ( ( ( a . getOpinion ( ) ) + opA ) > 1 ) diff = 1 - opA ; return diff ; } else return 0 ; } public IndepedentVariable updateValue ( Independent I , double V ) { } }

Fix:
double odiff = Math . abs ( ( opB - opA ) ) ;
Buggy code:
public class Test_org_eclipse_swt_graphics_DeviceData extends SwtPerformanceTestCase { public Test_org_eclipse_swt_graphics_DeviceData ( String name ) { } public static void main ( String [ ] args ) { } public void test_Constructor ( ) { final int COUNT = 40000000 ; <START_BUG> PerformanceMeter meter = createMeter ( ) ; <END_BUG> meter . start ( ) ; for ( int i = 0 ; i < COUNT ; i ++ ) { new DeviceData ( ) ; } meter . stop ( ) ; disposeMeter ( meter ) ; } public static Test suite ( ) { } public static Vector methodNames ( ) { } protected void runTest ( ) throws Throwable { } }

Fix:
PerformanceMeter meter = createMeter ( "DeviceData<seq2seq4repair_space>constr." ) ;
Buggy code:
public class QbfAutomatonBuilder extends ScenarioAndLtlAutomatonBuilder { public static Optional < Automaton > build ( Logger logger , ScenariosTree tree , List < LtlNode > formulae , int colorSize , String ltlFilePath , int timeoutSeconds , Solvers solver , String solverParams , boolean extractSubterms , boolean complete , boolean useSat , boolean bfsConstraints , List < EventExpressionPair > efPairs , List < String > actions ) throws IOException { final Verifier verifier = new Verifier ( colorSize , logger , ltlFilePath , EventExpressionPair . getEvents ( efPairs ) , actions ) ; for ( int k = 0 ; ; k ++ ) { logger . info ( ( "TRYING<seq2seq4repair_space>k<seq2seq4repair_space>=<seq2seq4repair_space>" + k ) ) ; deleteTrash ( ) ; QuantifiedBooleanFormula qbf = new QbfFormulaBuilder ( logger , tree , formulae , colorSize , k , extractSubterms , complete , bfsConstraints , efPairs , actions ) . getFormula ( useSat ) ; SolverResult ass = ( useSat ) ? qbf . solveAsSat ( tree , colorSize , k , logger , solverParams , timeoutSeconds , efPairs ) : qbf . solve ( logger , solver , solverParams , timeoutSeconds ) ; logger . info ( ass . toString ( ) . split ( "\n" ) [ 0 ] ) ; if ( ( ass . type ( ) ) == ( SolverResults . SAT ) ) { <START_BUG> final Automaton a = constructAutomatonFromAssignment ( logger , ass , tree , colorSize , true ) ; <END_BUG> if ( verifier . verify ( a ) ) { return Optional . of ( a ) ; } else { continue ; } } else { return Optional . empty ( ) ; } } } }

Fix:
final Automaton a = constructAutomatonFromAssignment ( logger , ass , tree , colorSize , true ) . getLeft ( ) ;
Buggy code:
public class FinalGameScreenView extends View { Rectangle test_panel ; WindowToggleButton test_menu_button ; ImagePrimitive image_child ; Rectangle menuBack ; Rectangle saveGame ; Rectangle toMenu ; Rectangle close ; Rectangle info_bar ; Viewport viewport_parent ; GameWorldControl game_world ; TextPrimitive info_text ; private InGameMenu _menu ; public FinalGameScreenView ( FinalGameScreen _screen , ViewModel _viewModel ) { } public void Init ( ) { FinalGameScreenViewModel vm = ( ( FinalGameScreenViewModel ) ( viewModel ) ) ; <START_BUG> layoutRoot = ( ( LayoutRoot ) ( new LayoutRoot ( screen ) . addChild ( ( viewport_parent = ( ( Viewport ) ( new Viewport ( screen ) . addChild ( ( game_world = ( ( GameWorldControl ) ( new GameWorldControl ( screen , "game<seq2seq4repair_space>world" ) . setAbsoluteSize ( new Vec2f ( vm . getGameWorldSize ( ) ) , false ) . addChild ( ( info_bar = ( ( Rectangle ) ( new Rectangle ( screen ) . setName ( "info<seq2seq4repair_space>bar" ) . setRelativePosition ( new Vec2f ( 0.0F , 0.0F ) , false ) . addChild ( ( _menu = ( ( InGameMenu ) ( new InGameMenu ( this . screen ) . setRelativePosition ( new Vec2f ( 0 , 240 ) ) ) ) ) ) ) ) ) ) ) ) ) ) . setName ( "viewport" ) . setMouseWheelMoved ( ( el , ev ) -> { <END_BUG> Viewport vp = ( ( Viewport ) ( el ) ) ; vp . multScale ( ( - ( ( float ) ( ( ev . getWheelRotation ( ) ) * 0.05 ) ) ) ) ; return null ; } ) . setVerticalAlignment ( TOP ) . setHorizontalAlignment ( CENTER ) . setAbsoluteSize ( new Vec2f ( vm . getGameWorldSize ( ) ) , false ) ) ) ) ) . addChild ( ( ( ScrollingTextPrimitive ) ( new ScrollingTextPrimitive ( screen , "W<seq2seq4repair_space>A<seq2seq4repair_space>S<seq2seq4repair_space>D<seq2seq4repair_space>to<seq2seq4repair_space>move" ) . setHorizontalAlignment ( LEFT ) . setVerticalAlignment ( BOTTOM ) ) ) ) ) ) ; _menu . display = false ; super . Init ( ) ; } public boolean isMenuOpen ( ) { } public void toggleMenu ( ) { } }

Fix:
layoutRoot = ( ( LayoutRoot ) ( new LayoutRoot ( screen ) . addChild ( ( viewport_parent = ( ( Viewport ) ( new Viewport ( screen ) . addChild ( ( game_world = ( ( GameWorldControl ) ( new GameWorldControl ( screen , "game<seq2seq4repair_space>world" ) . setAbsoluteSize ( new Vec2f ( vm . getGameWorldSize ( ) ) , false ) . addChild ( ( info_bar = ( ( Rectangle ) ( new Rectangle ( screen ) . setName ( "info<seq2seq4repair_space>bar" ) . setRelativePosition ( new Vec2f ( 0.0F , 0.0F ) , false ) . addChild ( ( _menu = ( ( InGameMenu ) ( new InGameMenu ( this . screen , this ) . setRelativePosition ( new Vec2f ( 0 , 240 ) ) ) ) ) ) ) ) ) ) ) ) ) ) . setName ( "viewport" ) . setMouseWheelMoved ( ( el , ev ) -> {
Buggy code:
public class Index < ModelClass extends Model > implements Query { private final String mIndex ; private Class < ModelClass > mTable ; private List < String > mColumns ; private boolean isUnique = false ; public Index ( @ NonNull String indexName ) { } public Index < ModelClass > unique ( boolean unique ) { } public Index < ModelClass > on ( @ NonNull Class < ModelClass > table , String ... columns ) { } public Index < ModelClass > and ( String columnName ) { } public String getIndexName ( ) { } public Class < ModelClass > getTable ( ) { } public boolean isUnique ( ) { } public void enable ( ) { } public void disable ( ) { } @ Override @ SuppressWarnings ( "unchecked" ) public String getQuery ( ) { <START_BUG> return new com . raizlabs . android . dbflow . sql . QueryBuilder ( "CREATE<seq2seq4repair_space>" ) . append ( ( isUnique ? "UNIQUE<seq2seq4repair_space>" : "" ) ) . append ( "INDEX<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" ) . appendQuoted ( mIndex ) . append ( "<seq2seq4repair_space>ON<seq2seq4repair_space>" ) . appendQuoted ( com . raizlabs . android . dbflow . config . FlowManager . getTableName ( mTable ) ) . append ( "(" ) . appendList ( mColumns ) . append ( ")" ) . getQuery ( ) ; <END_BUG> } }

Fix:
return new com . raizlabs . android . dbflow . sql . QueryBuilder ( "CREATE<seq2seq4repair_space>" ) . append ( ( isUnique ? "UNIQUE<seq2seq4repair_space>" : "" ) ) . append ( "INDEX<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" ) . appendQuoted ( mIndex ) . append ( "<seq2seq4repair_space>ON<seq2seq4repair_space>" ) . appendQuoted ( com . raizlabs . android . dbflow . config . FlowManager . getTableName ( mTable ) ) . append ( "(" ) . appendQuotedList ( mColumns ) . append ( ")" ) . getQuery ( ) ;
Buggy code:
public class DefaultConfigProvider implements ConfigurationProviderSpi { private Configuration config ; @ Override public String getConfigName ( ) { } @ Override public Configuration getConfiguration ( ) { if ( ( config ) == null ) { <START_BUG> config = ConfigurationBuilder . of ( "" ) . addResources ( "classpath*:META-INF//config//**//*.xml" , "classpath*:META-INF//config//**//*.properties" , "classpath*:META-INF//config//**//*.init" ) . setMetainfo ( MetaInfoBuilder . of ( "Default<seq2seq4repair_space>Configuration" ) . setSourceExpressions ( "classpath*:META-INF//config//**//*.xml" , ( "classpath*:META-INF//config//**//*" + ".properties" ) , "classpath*:META-INF//config//**//*.ini" ) . build ( ) ) . addConfigMaps ( OVERRIDE , PropertyProviders . fromEnvironmentProperties ( ) , PropertyProviders . fromSystemProperties ( ) ) . build ( ) ; <END_BUG> } return config ; } }

Fix:
config = ConfigurationBuilder . of ( getConfigName ( ) ) . addResources ( "classpath*:META-INF//config//**//*.xml" , "classpath*:META-INF//config//**//*.properties" , "classpath*:META-INF//config//**//*.init" ) . setMetainfo ( MetaInfoBuilder . of ( "Default<seq2seq4repair_space>Configuration" ) . setSourceExpressions ( "classpath*:META-INF//config//**//*.xml" , ( "classpath*:META-INF//config//**//*" + ".properties" ) , "classpath*:META-INF//config//**//*.ini" ) . build ( ) ) . addConfigMaps ( OVERRIDE , PropertyProviders . fromEnvironmentProperties ( ) , PropertyProviders . fromSystemProperties ( ) ) . build ( ) ;
Buggy code:
class ResolvedMemberValuePair implements IResolvedMemberValuePair { static final ResolvedMemberValuePair [ ] NoPair = new ResolvedMemberValuePair [ 0 ] ; private static final Object NoValue = new Object ( ) ; private static final Object [ ] EmptyArray = new Object [ 0 ] ; private ElementValuePair internalPair ; private Object value = null ; private BindingResolver bindingResolver ; static Object buildDOMValue ( final Object internalObject , BindingResolver resolver ) { if ( internalObject == null ) return null ; if ( internalObject instanceof Constant ) { Constant constant = ( ( Constant ) ( internalObject ) ) ; switch ( constant . typeID ( ) ) { case TypeIds . T_boolean : <START_BUG> return new Boolean ( constant . booleanValue ( ) ) ; <END_BUG> case TypeIds . T_byte : return new Byte ( constant . byteValue ( ) ) ; case TypeIds . T_char : return new Character ( constant . charValue ( ) ) ; case TypeIds . T_double : return new Double ( constant . doubleValue ( ) ) ; case TypeIds . T_float : return new Float ( constant . floatValue ( ) ) ; case TypeIds . T_int : return new Integer ( constant . intValue ( ) ) ; case TypeIds . T_long : return new Long ( constant . longValue ( ) ) ; case TypeIds . T_short : return new Short ( constant . shortValue ( ) ) ; case TypeIds . T_JavaLangString : return constant . stringValue ( ) ; } } else if ( internalObject instanceof TypeBinding ) { return resolver . getTypeBinding ( ( ( TypeBinding ) ( internalObject ) ) ) ; } else if ( internalObject instanceof AnnotationBinding ) { return resolver . getAnnotationInstance ( ( ( AnnotationBinding ) ( internalObject ) ) ) ; } else if ( internalObject instanceof FieldBinding ) { return resolver . getVariableBinding ( ( ( FieldBinding ) ( internalObject ) ) ) ; } else if ( internalObject instanceof Object [ ] ) { Object [ ] elements = ( ( Object [ ] ) ( internalObject ) ) ; int length = elements . length ; Object [ ] values = ( length == 0 ) ? ResolvedMemberValuePair . EmptyArray : new Object [ length ] ; for ( int i = 0 ; i < length ; i ++ ) values [ i ] = ResolvedMemberValuePair . buildDOMValue ( elements [ i ] , resolver ) ; return values ; } throw new IllegalStateException ( internalObject . toString ( ) ) ; } ResolvedMemberValuePair ( ElementValuePair pair , BindingResolver resolver ) { } public IMethodBinding getMethodBinding ( ) { } public String getName ( ) { } public Object getValue ( ) { } private void init ( ) { } char [ ] internalName ( ) { } public boolean isDefault ( ) { } public String toString ( ) { } public void toString ( StringBuffer buffer ) { } }

Fix:
return Boolean . valueOf ( constant . booleanValue ( ) ) ;
Buggy code:
@ SuppressLint ( "NewApi" ) public class MainActivity extends FragmentActivity implements ActionBar . TabListener { private ViewPager viewPager ; private TabsAdapter mAdapter ; private ActionBar actionBar ; public String mMaxProcesses = "Disabled" ; public String mRefreshFreq = "1" ; public boolean mShowThreads = false ; public String mSortColumns = "None" ; private String [ ] tabs = new String [ ] { "CPU" , "Processes" } ; private final int RESULT = 1 ; @ SuppressLint ( "NewApi" ) @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public void onTabReselected ( Tab tab , FragmentTransaction ft ) { } @ SuppressLint ( "NewApi" ) @ Override public void onTabSelected ( Tab tab , FragmentTransaction ft ) { } @ Override public void onTabUnselected ( Tab tab , FragmentTransaction ft ) { } @ Override public void onConfigurationChanged ( final Configuration config ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { super . onActivityResult ( requestCode , resultCode , data ) ; switch ( requestCode ) { case RESULT : SharedPreferences sharedPrefs = PreferenceManager . getDefaultSharedPreferences ( this ) ; mMaxProcesses = sharedPrefs . getString ( "maxProcesses" , "Disabled" ) ; mRefreshFreq = sharedPrefs . getString ( "refreshFrequency" , "1" ) ; mShowThreads = sharedPrefs . getBoolean ( "threads" , false ) ; <START_BUG> mSortColumns = sharedPrefs . getString ( "columns" , "None" ) ; <END_BUG> String testString = "true" ; if ( ! ( mShowThreads ) ) { testString = "false" ; } Log . e ( "MAIN" , ( ( ( ( ( ( ( "Settings<seq2seq4repair_space>is:<seq2seq4repair_space>" + ( mMaxProcesses ) ) + "<seq2seq4repair_space>" ) + ( mRefreshFreq ) ) + "<seq2seq4repair_space>" ) + testString ) + "<seq2seq4repair_space>" ) + ( mSortColumns ) ) ) ; break ; } } public void forceTabs ( ) { } }

Fix:
mSortColumns = sharedPrefs . getString ( "columns" , "Default" ) ;
Buggy code:
public class List < T > implements Iterable < T > { private Object [ ] array ; private int size = 0 ; private final int initialCapacity ; public List ( ) { } public List ( int initialCapacity , boolean fill ) { } public List ( Iterable < T > source ) { } public int size ( ) { } public T get ( int i ) { if ( ( i < 0 ) || ( i >= ( size ) ) ) { <START_BUG> throw new IndexOutOfBoundsException ( ) ; <END_BUG> } return ( ( T ) ( array [ i ] ) ) ; } public void add ( T element ) { } public void set ( int i , T element ) { } private void grow ( ) { } public void reverse ( ) { } public void removeFirst ( ) { } public void removeLast ( ) { } public void clear ( ) { } public boolean isEmpty ( ) { } @ Override public Iterator < T > iterator ( ) { } @ Override public int hashCode ( ) { } @ Override public boolean equals ( Object obj ) { } }

Fix:
throw new IndexOutOfBoundsException ( ( ( ( "" + i ) + ",<seq2seq4repair_space>size<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( size ) ) ) ;
Buggy code:
public class Spawn { private ASkyBlock plugin ; private YamlConfiguration spawnConfig ; private Location spawnLoc ; private Location bedrock ; private ConfigurationSection spawn ; private int range ; protected Spawn ( ASkyBlock plugin ) { } protected void reload ( ) { } protected void save ( ) { } protected Location getSpawnLoc ( ) { } protected void setSpawnLoc ( Location bedrock , Location spawnLoc ) { } protected int getRange ( ) { } protected void setRange ( int range ) { } protected Location getBedrock ( ) { } protected boolean isAtSpawn ( Location loc ) { if ( ( spawnLoc ) == null ) { return false ; } if ( loc . getWorld ( ) . equals ( bedrock . getWorld ( ) ) ) { <START_BUG> if ( ( ( Math . abs ( ( ( loc . getBlockX ( ) ) - ( bedrock . getBlockX ( ) ) ) ) ) <= ( range ) ) || ( ( Math . abs ( ( ( loc . getBlockZ ( ) ) - ( bedrock . getBlockZ ( ) ) ) ) ) <= ( range ) ) ) { <END_BUG> return true ; } } return false ; } }

Fix:
if ( ( ( Math . abs ( ( ( loc . getBlockX ( ) ) - ( bedrock . getBlockX ( ) ) ) ) ) <= ( range ) ) && ( ( Math . abs ( ( ( loc . getBlockZ ( ) ) - ( bedrock . getBlockZ ( ) ) ) ) ) <= ( range ) ) ) {
Buggy code:
public abstract class AbstractMenuGenerator { protected XmlElement menuRoot ; protected XmlIO xmlFile ; protected AbstractFrameController frameController ; public AbstractMenuGenerator ( AbstractFrameController frameController , String path ) { } public String getString ( String sPath , String sName , String sID ) { } public abstract XmlElement getMenuRoot ( ) { } public abstract String getRootElementName ( ) { } public void extendMenuFromFile ( String path ) { } public void extendMenu ( XmlElement menuExtension ) { } private void createExtension ( XmlElement menu , XmlElement menuExtension , String extensionName ) { } protected JMenu createMenu ( XmlElement menuElement ) { } protected void createMenuEntries ( JMenu menu , ListIterator it ) { boolean lastWasSeparator = false ; while ( it . hasNext ( ) ) { XmlElement next = ( ( XmlElement ) ( it . next ( ) ) ) ; String name = next . getName ( ) ; if ( name . equals ( "menuitem" ) ) { if ( ( next . getAttribute ( "action" ) ) != null ) { try { BasicAction action = ( ( ActionPluginHandler ) ( pluginManager . getHandler ( "org.columba.core.action" ) ) ) . getAction ( next . getAttribute ( "action" ) , frameController ) ; if ( action != null ) { menu . add ( action ) ; lastWasSeparator = false ; } } catch ( Exception e ) { log . error ( e ) ; } } else if ( ( next . getAttribute ( "checkboxaction" ) ) != null ) { try { CheckBoxAction action = ( ( CheckBoxAction ) ( ( ( ActionPluginHandler ) ( pluginManager . getHandler ( "org.columba.core.action" ) ) ) . getAction ( next . getAttribute ( "checkboxaction" ) , frameController ) ) ) ; if ( action != null ) { JCheckBoxMenuItem menuitem = new JCheckBoxMenuItem ( action ) ; menu . add ( menuitem ) ; action . setCheckBoxMenuItem ( menuitem ) ; lastWasSeparator = false ; } } catch ( Exception e ) { <START_BUG> log . error ( e ) ; <END_BUG> } } else if ( ( next . getAttribute ( "imenu" ) ) != null ) { try { IMenu imenu = ( ( ActionPluginHandler ) ( pluginManager . getHandler ( "org.columba.core.action" ) ) ) . getIMenu ( next . getAttribute ( "imenu" ) , frameController ) ; if ( imenu != null ) menu . add ( imenu ) ; lastWasSeparator = false ; } catch ( Exception e ) { e . printStackTrace ( ) ; log . error ( e ) ; } } } else if ( name . equals ( "separator" ) ) { if ( ! lastWasSeparator ) menu . addSeparator ( ) ; lastWasSeparator = true ; } else if ( name . equals ( "menu" ) ) { menu . add ( createSubMenu ( next ) ) ; lastWasSeparator = false ; } } if ( lastWasSeparator ) { menu . remove ( ( ( menu . getMenuComponentCount ( ) ) - 1 ) ) ; } } protected JMenu createSubMenu ( XmlElement menuElement ) { } }

Fix:
log . error ( ( ( e + "<seq2seq4repair_space>-<seq2seq4repair_space>" ) + ( next . getAttribute ( "checkboxaction" ) ) ) ) ;
Buggy code:
public class Main { public static HashMap < TokenEnum , String > tokens ; public static LinkedList < Token > gatheredTokens ; public static void main ( String [ ] args ) { Main . createTokens ( ) ; BufferedReader bReader ; try { <START_BUG> bReader = new BufferedReader ( new FileReader ( "jsonExample3.txt" ) ) ; <END_BUG> Lexer lx = new Lexer ( ) ; Main . gatheredTokens = lx . start ( bReader ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } JSONParser . init ( Main . gatheredTokens ) ; System . out . close ( ) ; } public static void createTokens ( ) { } }

Fix:
bReader = new BufferedReader ( new FileReader ( "jsonExample1.txt" ) ) ;
Buggy code:
public class Connections { private Connections ( ) { } public static Time getLastModified ( final URL url ) throws IOException { URLConnection connection = url . openConnection ( ) ; final long milliseconds ; try { if ( connection instanceof JarURLConnection ) { JarURLConnection jarUrlConnection = ( ( JarURLConnection ) ( connection ) ) ; URL jarFileUrl = jarUrlConnection . getJarFileURL ( ) ; URLConnection jarFileConnection = jarFileUrl . openConnection ( ) ; try { milliseconds = jarFileConnection . getLastModified ( ) ; } finally { Connections . close ( jarFileConnection ) ; } } else { milliseconds = connection . getLastModified ( ) ; } if ( milliseconds == 0 ) { return null ; } <START_BUG> return Time . milliseconds ( milliseconds ) ; <END_BUG> } finally { Connections . close ( connection ) ; } } public static void closeQuietly ( final URLConnection connection ) { } public static void close ( final URLConnection connection ) throws IOException { } }

Fix:
return Time . valueOf ( milliseconds ) ;
Buggy code:
public class LogFilePatternReceiverBeanInfo extends SimpleBeanInfo { public PropertyDescriptor [ ] getPropertyDescriptors ( ) { try { <START_BUG> return new PropertyDescriptor [ ] { new PropertyDescriptor ( "fileName" , LogFilePatternReceiver . class ) , new PropertyDescriptor ( "timestampFormat" , LogFilePatternReceiver . class ) , new PropertyDescriptor ( "logFormat" , LogFilePatternReceiver . class ) , new PropertyDescriptor ( "name" , LogFilePatternReceiver . class ) , new PropertyDescriptor ( "looping" , LogFilePatternReceiver . class ) } ; <END_BUG> } catch ( Exception e ) { } return null ; } }

Fix:
return new PropertyDescriptor [ ] { new PropertyDescriptor ( "fileName" , LogFilePatternReceiver . class ) , new PropertyDescriptor ( "timestampFormat" , LogFilePatternReceiver . class ) , new PropertyDescriptor ( "logFormat" , LogFilePatternReceiver . class ) , new PropertyDescriptor ( "name" , LogFilePatternReceiver . class ) , new PropertyDescriptor ( "tailing" , LogFilePatternReceiver . class ) } ;
Buggy code:
public class Operation extends BehavioralFeature { public Uninterpreted _specification ; public boolean _isPolymorphic ; public CallConcurrencyKind _concurrency ; public Vector _method = new Vector ( ) ; public Operation ( ) { } public Operation ( Name name ) { } public Operation ( String nameStr ) { } public Operation ( Classifier returnType , String nameStr ) { } public Operation ( Classifier returnType , String nameStr , Classifier arg1Type , String arg1Name ) { } public Operation ( Classifier returnType , String nameStr , Classifier arg1Type , String arg1Name , Classifier arg2Type , String arg2Name ) { } public Operation ( Classifier returnType , String nameStr , Classifier arg1Type , String arg1Name , Classifier arg2Type , String arg2Name , Classifier arg3Type , String arg3Name ) { } public Uninterpreted getSpecification ( ) { } public void setSpecification ( Uninterpreted x ) throws PropertyVetoException { } public boolean getIsPolymorphic ( ) { } public void setIsPolymorphic ( boolean x ) throws PropertyVetoException { } public CallConcurrencyKind getConcurrency ( ) { } public void setConcurrency ( CallConcurrencyKind x ) { } public Vector getMethod ( ) { } public void setMethod ( Vector x ) throws PropertyVetoException { if ( ( _method ) == null ) _method = new Vector ( ) ; <START_BUG> fireVetoableChange ( "method" , _method , x ) ; <END_BUG> _method = x ; util . Enumeration = _method . elements ( ) ; } public void addMethod ( Method x ) throws PropertyVetoException { } public void removeMethod ( Method x ) throws PropertyVetoException { } public String dbgString ( ) { } }

Fix:
fireVetoableChangeNoCompare ( "method" , _method , x ) ;
Buggy code:
public class LambdaVariableViewController extends LambdaValueViewController { private boolean animateSmoke ; private float smokeStateTime ; private final TextureRegion texture ; private final Animation animation ; public LambdaVariableViewController ( LambdaVariable linkedTerm , LambdaNodeViewController parent , LambdaTermViewController viewController ) { } @ Override public float getMinWidth ( ) { } @ Override public void draw ( Batch batch , float alpha ) { updateColorAnimation ( ) ; batch . setColor ( getCurrentColor ( ) ) ; batch . draw ( texture , getX ( ) , getY ( ) , LambdaNodeViewController . BLOCK_WIDTH , LambdaNodeViewController . BLOCK_HEIGHT ) ; batch . setColor ( 1.0F , 1.0F , 1.0F , 1.0F ) ; <START_BUG> super . draw ( batch , alpha ) ; <END_BUG> synchronized ( getViewController ( ) ) { if ( animateSmoke ) { batch . draw ( animation . getKeyFrame ( smokeStateTime ) , getX ( ) , getY ( ) , LambdaNodeViewController . BLOCK_WIDTH , LambdaNodeViewController . BLOCK_HEIGHT ) ; smokeStateTime += graphics . getDeltaTime ( ) ; if ( isSmokeAnimationFinished ( ) ) { animateSmoke = false ; getViewController ( ) . notifyAll ( ) ; } } } } public void animateSmoke ( ) { } public boolean isSmokeAnimationFinished ( ) { } @ Override public boolean equals ( Object other ) { } }

Fix:
drawVanishAnimation ( batch , alpha ) ;
Buggy code:
final class SegmentReader extends IndexReader { private boolean closeDirectory = false ; private String segment ; FieldInfos fieldInfos ; private FieldsReader fieldsReader ; TermInfosReader tis ; BitVector deletedDocs = null ; private boolean deletedDocsDirty = false ; InputStream freqStream ; InputStream proxStream ; CompoundFileReader cfsReader ; private static class Norm { public Norm ( InputStream in ) { } public InputStream in ; public byte [ ] bytes ; } private Hashtable norms = new Hashtable ( ) ; SegmentReader ( SegmentInfo si , boolean closeDir ) throws IOException { } SegmentReader ( SegmentInfo si ) throws IOException { } final synchronized void doClose ( ) throws IOException { if ( deletedDocsDirty ) { synchronized ( directory ) { <START_BUG> new org . apache . lucene . store . Lock . With ( directory . makeLock ( "IndexWriter.COMMIT_LOCK_NAME" ) , IndexWriter . COMMIT_LOCK_TIMEOUT ) { <END_BUG> public Object doBody ( ) throws IOException { deletedDocs . write ( directory , ( ( segment ) + ".tmp" ) ) ; directory . renameFile ( ( ( segment ) + ".tmp" ) , ( ( segment ) + ".del" ) ) ; directory . touchFile ( "segments" ) ; return null ; } } . run ( ) ; } deletedDocsDirty = false ; } fieldsReader . close ( ) ; tis . close ( ) ; if ( ( freqStream ) != null ) freqStream . close ( ) ; if ( ( proxStream ) != null ) proxStream . close ( ) ; closeNorms ( ) ; if ( ( cfsReader ) != null ) cfsReader . close ( ) ; if ( closeDirectory ) directory . close ( ) ; } static final boolean hasDeletions ( SegmentInfo si ) throws IOException { } static final boolean usesCompoundFile ( SegmentInfo si ) throws IOException { } final synchronized void doDelete ( int docNum ) throws IOException { } final Vector files ( ) throws IOException { } public final TermEnum terms ( ) throws IOException { } public final TermEnum terms ( Term t ) throws IOException { } public final synchronized Document document ( int n ) throws IOException { } public final synchronized boolean isDeleted ( int n ) { } public final TermDocs termDocs ( ) throws IOException { } public final TermPositions termPositions ( ) throws IOException { } public final int docFreq ( Term t ) throws IOException { } public final int numDocs ( ) { } public final int maxDoc ( ) { } public Collection getFieldNames ( ) throws IOException { } public Collection getFieldNames ( boolean indexed ) throws IOException { } public final byte [ ] norms ( String field ) throws IOException { } final void norms ( String field , byte [ ] bytes , int offset ) throws IOException { } final InputStream normStream ( String field ) throws IOException { } private final void openNorms ( Directory useDir ) throws IOException { } private final void closeNorms ( ) throws IOException { } }

Fix:
new org . apache . lucene . store . Lock . With ( directory . makeLock ( IndexWriter . COMMIT_LOCK_NAME ) , IndexWriter . COMMIT_LOCK_TIMEOUT ) {
Buggy code:
public class SquaredEuclideanDistanceMeasure implements DistanceMeasure { @ Override public void configure ( JobConf job ) { } @ Override public Collection < Parameter < ? > > getParameters ( ) { } @ Override public void createParameters ( String prefix , JobConf jobConf ) { } public static double distance ( double [ ] p1 , double [ ] p2 ) { } @ Override public double distance ( Vector v1 , Vector v2 ) { } @ Override public double distance ( double centroidLengthSquare , Vector centroid , Vector v ) { <START_BUG> if ( ( centroid . size ( ) ) != ( centroid . size ( ) ) ) { <END_BUG> throw new CardinalityException ( ) ; } double result = centroidLengthSquare ; result += v . getDistanceSquared ( centroid ) ; return result ; } }

Fix:
if ( ( centroid . size ( ) ) != ( v . size ( ) ) ) {
Buggy code:
public class JBossStandaloneEJBContainerProvider implements EJBContainerProvider { private void addEmbeddedExtensionTo ( final StandaloneServer server ) throws IOException { } @ Override public EJBContainer createEJBContainer ( Map < ? , ? > properties ) throws EJBException { JBossStandaloneEJBContainerProvider . setSystemProperty ( "org.jboss.as.ejb3.EMBEDDED" , "true" ) ; String jbossHomeKey = "jboss.home" ; String jbossHomeProp = System . getProperty ( jbossHomeKey ) ; if ( jbossHomeProp == null ) throw new EJBException ( ( "Cannot<seq2seq4repair_space>find<seq2seq4repair_space>system<seq2seq4repair_space>property:<seq2seq4repair_space>" + jbossHomeKey ) ) ; File jbossHomeDir = new File ( jbossHomeProp ) ; if ( ( jbossHomeDir . isDirectory ( ) ) == false ) throw new EJBException ( ( "Invalid<seq2seq4repair_space>jboss<seq2seq4repair_space>home<seq2seq4repair_space>directory:<seq2seq4repair_space>" + jbossHomeDir ) ) ; final boolean barren = Boolean . getBoolean ( "org.jboss.as.embedded.ejb3.BARREN" ) ; final StandaloneServer server ; if ( barren ) server = EmbeddedServerFactory . create ( jbossHomeDir , System . getProperties ( ) , System . getenv ( ) , "org.jboss.logmanager" ) ; else server = EmbeddedServerFactory . create ( Module . getContextModuleLoader ( ) , jbossHomeDir , System . getProperties ( ) , System . getenv ( ) ) ; try { server . start ( ) ; final JBossStandaloneEJBContainer container = new JBossStandaloneEJBContainer ( server ) ; boolean okay = false ; try { <START_BUG> container . init ( ) ; <END_BUG> okay = true ; return container ; } finally { if ( ! okay ) container . close ( ) ; } } catch ( RuntimeException e ) { throw e ; } catch ( Exception e ) { throw new EJBException ( e ) ; } } private static String setSystemProperty ( final String key , final String value ) { } }

Fix:
container . init ( properties ) ;
Buggy code:
public class Pyramid { public int height ; Scanner scanner = new Scanner ( System . in ) ; public Pyramid ( ) { } public String toString ( ) { } public void printerPick ( ) { <START_BUG> if ( ( height ) == 0 ) { <END_BUG> return ; } StringBuilder SB = new StringBuilder ( ) ; String printer ; System . out . println ( "Print<seq2seq4repair_space>to<seq2seq4repair_space>console<seq2seq4repair_space>or<seq2seq4repair_space>file?<seq2seq4repair_space>(choose<seq2seq4repair_space>one):<seq2seq4repair_space>" ) ; SB . append ( scanner . next ( ) ) ; while ( true ) { if ( ( ( ( ( ( ! ( SB . substring ( 0 ) . equals ( "CONSOLE" ) ) ) && ( ! ( SB . substring ( 0 ) . equals ( "Console" ) ) ) ) && ( ! ( SB . substring ( 0 ) . equals ( "console" ) ) ) ) && ( ! ( SB . substring ( 0 ) . equals ( "FILE" ) ) ) ) && ( ! ( SB . substring ( 0 ) . equals ( "File" ) ) ) ) && ( ! ( SB . substring ( 0 ) . equals ( "file" ) ) ) ) { System . out . println ( "Invalid<seq2seq4repair_space>input.<seq2seq4repair_space>Enter<seq2seq4repair_space>either<seq2seq4repair_space>console<seq2seq4repair_space>or<seq2seq4repair_space>file:<seq2seq4repair_space>" ) ; SB . delete ( 0 , SB . length ( ) ) ; SB . append ( scanner . next ( ) ) ; } else { printer = SB . toString ( ) ; break ; } } if ( ( ( printer . equals ( "CONSOLE" ) ) || ( printer . equals ( "Console" ) ) ) || ( printer . equals ( "console" ) ) ) { new Console ( ) . Printer ( this ) ; } else if ( ( ( printer . equals ( "FILE" ) ) || ( printer . equals ( "File" ) ) ) || ( printer . equals ( "file" ) ) ) { new Filer ( ) . Printer ( this ) ; } } }

Fix:
if ( ( this . height ) == 0 ) {
Buggy code:
public class EJBServletEar extends HttpServlet { private static final long serialVersionUID = 1L ; private static final Logger log = Logger . getLogger ( EJBServletEar . class ) ; @ EJB ( lookup = "java:app//ejb3-ear-servlet-ejbs//Session30!org.jboss.as.test.integration.ejb.servlet.Session30BusinessRemote" ) Session30BusinessRemote injectedSession ; @ EJB ( lookup = "java:app//ejb3-ear-servlet-ejbs//StatelessBean!org.jboss.as.test.integration.ejb.servlet.StatelessLocal" ) StatelessLocal injectedStateless ; protected void processRequest ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { SecurityClient client = null ; try { InitialContext ctx = new InitialContext ( ) ; client = SecurityClientFactory . getSecurityClient ( ) ; <START_BUG> client . setSimple ( "somebody" , "password" ) ; <END_BUG> client . login ( ) ; injectedSession . hello ( ) ; injectedSession . goodbye ( ) ; injectedStateless . hello ( ) ; injectedStateless . goodbye ( ) ; String lookupString = "java:app//ejb3-ear-servlet-ejbs//Session30!" ; EJBServletHelper test = new EJBServletHelper ( ) ; test . processRequest ( lookupString , ctx ) ; } catch ( Exception e ) { EJBServletEar . log . error ( e ) ; throw new ServletException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>call<seq2seq4repair_space>EJBs//Session30<seq2seq4repair_space>through<seq2seq4repair_space>remote<seq2seq4repair_space>and<seq2seq4repair_space>local<seq2seq4repair_space>interfaces" , e ) ; } finally { client . logout ( ) ; } response . setContentType ( "text//plain" ) ; PrintWriter out = response . getWriter ( ) ; out . print ( "EJBServlet<seq2seq4repair_space>OK" ) ; out . close ( ) ; } protected void doGet ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } protected void doPost ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } }

Fix:
client . setSimple ( "user1" , "password1" ) ;
Buggy code:
class VehicleTipWindow extends Window { private final TrafficCanvas trafficCanvas ; private static final long serialVersionUID = 1L ; long currentPopupId = 0 ; final Frame owner ; class PopupTimer { private final Timer timer = new Timer ( ) ; private static final int popupTime = 3000 ; long timedPopupId ; void start ( long id ) { } } public VehicleTipWindow ( TrafficCanvas trafficCanvas , Frame owner ) { } @ SuppressWarnings ( { "boxing" } ) public void show ( Point point , Vehicle vehicle ) { String string ; final PhysicalQuantities vehiclePhysical = vehicle . physicalQuantities ( ) ; <START_BUG> string = String . format ( this . trafficCanvas . popupString , vehicle . getId ( ) , vehicle . getLabel ( ) , ( ( vehicle . getLane ( ) ) + 1 ) , vehiclePhysical . getMidPosition ( ) , ( ( vehiclePhysical . getSpeed ( ) ) * 3.6 ) , vehiclePhysical . getAcc ( ) , vehiclePhysical . getMidPosition ( ) , 1 , 1 , 1 ) ; <END_BUG> final Label label = new Label ( string , Label . LEFT ) ; label . setBackground ( new Color ( 200 , 220 , 240 ) ) ; removeAll ( ) ; add ( label ) ; pack ( ) ; final Point screenLocation = owner . getLocationOnScreen ( ) ; setLocation ( ( ( ( point . x ) + ( screenLocation . x ) ) + 15 ) , ( ( ( point . y ) + ( screenLocation . y ) ) + 90 ) ) ; currentPopupId = vehicle . getId ( ) ; setVisible ( true ) ; final VehicleTipWindow . PopupTimer popupTimer = new VehicleTipWindow . PopupTimer ( ) ; popupTimer . start ( currentPopupId ) ; if ( TrafficCanvas . DEBUG ) { final DecimalFormat twoDP = new DecimalFormat ( "#.##" ) ; System . out . println ( ( "Vehicle<seq2seq4repair_space>id:" + ( vehicle . getId ( ) ) ) ) ; System . out . println ( ( "<seq2seq4repair_space>pos:" + ( ( int ) ( vehicle . physicalQuantities ( ) . getMidPosition ( ) ) ) ) ) ; } } No newline ; at end ; of file ; }

Fix:
string = String . format ( this . trafficCanvas . popupString , vehicle . getId ( ) , vehicle . getLabel ( ) , ( ( vehicle . getLane ( ) ) + 1 ) , vehiclePhysical . getFrontPosition ( ) , ( ( vehiclePhysical . getSpeed ( ) ) * 3.6 ) , vehiclePhysical . getAcc ( ) , vehiclePhysical . getMidPosition ( ) , 1 , 1 , 1 ) ;
Buggy code:
public class BatchImageBuilder extends AbstractImageBuilder { protected BatchImageBuilder ( JavaBuilder javaBuilder ) { } public void build ( ) { if ( JavaBuilder . DEBUG ) System . out . println ( "FULL<seq2seq4repair_space>build" ) ; try { notifier . subTask ( Util . bind ( "build.cleaningOutput" ) ) ; <START_BUG> JavaModelManager . getJavaModelManager ( ) . deltaProcessor . addForRefresh ( javaBuilder . javaProject ) ; <END_BUG> JavaBuilder . removeProblemsAndTasksFor ( javaBuilder . currentProject ) ; cleanOutputFolders ( ) ; notifier . updateProgressDelta ( 0.1F ) ; notifier . subTask ( Util . bind ( "build.analyzingSources" ) ) ; ArrayList sourceFiles = new ArrayList ( 33 ) ; addAllSourceFiles ( sourceFiles ) ; notifier . updateProgressDelta ( 0.15F ) ; if ( ( sourceFiles . size ( ) ) > 0 ) { SourceFile [ ] allSourceFiles = new SourceFile [ sourceFiles . size ( ) ] ; sourceFiles . toArray ( allSourceFiles ) ; notifier . setProgressPerCompilationUnit ( ( 0.75F // ( allSourceFiles . length ) ) ) ; workQueue . addAll ( allSourceFiles ) ; compile ( allSourceFiles ) ; } if ( javaBuilder . javaProject . hasCycleMarker ( ) ) javaBuilder . mustPropagateStructuralChanges ( ) ; } catch ( CoreException e ) { throw internalException ( e ) ; } finally { cleanUp ( ) ; } } protected void addAllSourceFiles ( final ArrayList sourceFiles ) throws CoreException { } protected void cleanOutputFolders ( ) throws CoreException { } protected void copyExtraResourcesBack ( ClasspathMultiDirectory sourceLocation , final boolean deletedAll ) throws CoreException { } protected void copyPackages ( ClasspathMultiDirectory sourceLocation ) throws CoreException { } protected IResource findOriginalResource ( IPath partialPath ) { } public String toString ( ) { } }

Fix:
org . eclipse . jdt . internal . core . JavaModelManager . getJavaModelManager ( ) . getDeltaProcessor ( ) . addForRefresh ( javaBuilder . javaProject ) ;