nus-yam/ex-repair huggingface dataset:
Buggy code:
public class GakubuchiPlayerListener implements Listener { private static final String PERMISSION = "gakubuchilock.entity" ; private static final String PERMISSION_INFINITE_PLACE = "gakubuchilock.entity.infinite-place" ; private GakubuchiLockReloaded parent ; private LockDataManager lockManager ; private GakubuchiLockConfig config ; public GakubuchiPlayerListener ( GakubuchiLockReloaded parent ) { } @ EventHandler ( priority = EventPriority . HIGHEST ) public void onHangingPlace ( HangingPlaceEvent event ) { } @ EventHandler ( priority = EventPriority . HIGHEST ) public void onHangingBreak ( HangingBreakEvent event ) { } @ EventHandler ( priority = EventPriority . HIGHEST ) public void onHangingBreakByEntity ( HangingBreakByEntityEvent event ) { Hanging hanging = event . getEntity ( ) ; if ( ! ( hanging instanceof ItemFrame ) ) { return ; } if ( ( event . getRemover ( ) ) instanceof Player ) { Player damager = ( ( Player ) ( event . getRemover ( ) ) ) ; if ( processPrecommand ( damager , hanging ) ) { event . setCancelled ( true ) ; return ; } } LockData ld = lockManager . getLockDataByHanging ( hanging ) ; if ( ld == null ) { if ( ( event . getRemover ( ) ) instanceof Player ) { Player remover = ( ( Player ) ( event . getRemover ( ) ) ) ; if ( ! ( remover . hasPermission ( ( ( GakubuchiPlayerListener . PERMISSION ) + ".break" ) ) ) ) { remover . sendMessage ( Messages . get ( "PermissionDeniedBreak" ) ) ; event . setCancelled ( true ) ; } } return ; } Player remover = null ; if ( ( event . getRemover ( ) ) instanceof Player ) { remover = ( ( Player ) ( event . getRemover ( ) ) ) ; } else if ( ( event . getRemover ( ) ) instanceof Projectile ) { if ( ( ( ( Projectile ) ( event . getRemover ( ) ) ) . getShooter ( ) ) instanceof Player ) { remover = ( ( Player ) ( ( ( Projectile ) ( event . getRemover ( ) ) ) . getShooter ( ) ) ) ; } } <START_BUG> if ( ( ( remover == null ) || ( ! ( ld . getOwnerUuid ( ) . equals ( remover . getUniqueId ( ) ) ) ) ) && ( ! ( remover . hasPermission ( ( ( GakubuchiPlayerListener . PERMISSION ) + ".admin" ) ) ) ) ) { <END_BUG> event . setCancelled ( true ) ; if ( remover != null ) { remover . sendMessage ( Messages . get ( "ItemFrameLocked" ) ) ; } return ; } lockManager . removeLockData ( hanging ) ; remover . sendMessage ( Messages . get ( "LockRemoved" ) ) ; } @ EventHandler ( priority = EventPriority . HIGHEST ) public void onPlayerInteractEntity ( PlayerInteractEntityEvent event ) { } @ EventHandler ( priority = EventPriority . HIGHEST ) public void onEntityDamageByEntity ( EntityDamageByEntityEvent event ) { } @ EventHandler public void onBlockPlace ( BlockPlaceEvent event ) { } private boolean processPrecommand ( Player player , Hanging hanging ) { } }

Fix:
if ( ( ( remover == null ) || ( ! ( ld . getOwnerUuid ( ) . equals ( remover . getUniqueId ( ) ) ) ) ) || ( ! ( remover . hasPermission ( ( ( GakubuchiPlayerListener . PERMISSION ) + ".admin" ) ) ) ) ) {
Buggy code:
public interface IRequestCodingStrategy extends IRequestTargetMounter { RequestParameters decode ( Request request ) { } <START_BUG> String encode ( RequestCycle requestCycle , IRequestTarget requestTarget ) ; <END_BUG> }

Fix:
CharSequence encode ( RequestCycle requestCycle , IRequestTarget requestTarget ) ;
Buggy code:
public class ServiceResource extends ResourceImpl implements Resource { private class ServiceDiscoveryListener implements IServiceListener { private volatile ILock lock ; public static final String DISCOVERY_CONTAINER = "ecf.singleton.discovery" ; private IContainer container ; private IDiscoveryContainerAdapter discovery ; private Comparator aComparator = new ServiceResource . ServiceDiscoveryListener . ECFServiceInfoComparator ( ) ; private ServiceDiscoveryListener ( ) { } public void connect ( ) { } private void createEMFIServiceInfo ( org . eclipse . ecf . discovery . IServiceInfo ecfServiceInfo , IServiceInfo emfIServiceInfo ) { } private IHost getIHost ( InetAddress anAddress ) { } private IServiceInfo getIServiceInfo ( org . eclipse . ecf . discovery . IServiceInfo ecfServiceInfo ) { } private URI convertToURI ( org . eclipse . ecf . discovery . IServiceInfo anIServiceInfo ) { String name = anIServiceInfo . getServiceID ( ) . getServiceTypeID ( ) . getName ( ) . substring ( 1 ) ; name = StringUtils . replaceAll ( name , "._" , "//" ) ; <START_BUG> name = StringUtils . replaceFirst ( name , "\\." , "//" ) ; <END_BUG> name = "ecf:////" + name ; URIConverter uriConverter = new URIConverterImpl ( ) ; URI uri = uriConverter . normalize ( URI . createURI ( name ) ) ; uri = URI . createHierarchicalURI ( uri . scheme ( ) , ( ( ( anIServiceInfo . getLocation ( ) . getHost ( ) ) + ":" ) + ( anIServiceInfo . getLocation ( ) . getPort ( ) ) ) , null , uri . segments ( ) , null , null ) ; return uri ; } public void disconnect ( ) { } private IHost findIHost ( InetAddress anAddress ) { } private IServiceInfo findIServiceInfo ( org . eclipse . ecf . discovery . IServiceInfo ecfServiceInfo ) { } public void serviceUndiscovered ( IServiceEvent ecfEvent ) { } public void serviceDiscovered ( IServiceEvent ecfEvent ) { } private void serviceDiscovered ( org . eclipse . ecf . discovery . IServiceInfo ecfServiceInfo ) { } private InetAddress getInetAddress ( java . net . URI anURI ) { } private class ECFServiceInfoComparator implements Comparator { public int compare ( Object anObj1 , Object anObj2 ) { } } } public ServiceResource ( URI uri ) { } public synchronized void load ( Map options ) throws IOException { } }

Fix:
name = StringUtils . replaceFirst ( name , "." , "//" ) ;
Buggy code:
public class DatashareContainerAdapter implements IChannelContainerAdapter { protected SOContainer container = null ; protected static final int DEFAULT_TRANSACTION_WAIT = 30000 ; protected static final int SO_CREATION_ERROR = 1001 ; protected SharedObjectDatashareContainerAdapter delegate = null ; protected ID delegateID = null ; public DatashareContainerAdapter ( SOContainer container ) { } protected void initialize ( ) { try { this . delegateID = IDFactory . getDefault ( ) . createStringID ( SharedObjectDatashareContainerAdapter . class . getName ( ) ) ; this . delegate = new SharedObjectDatashareContainerAdapter ( ) ; this . container . getSharedObjectManager ( ) . addSharedObject ( delegateID , delegate , null ) ; } catch ( Exception e ) { <START_BUG> Trace . catching ( Activator . getDefault ( ) , EXCEPTIONS_CATCHING , DatashareContainerAdapter . class , "DatashareContainerAdapter.initialize" , e ) ; <END_BUG> Activator . getDefault ( ) . getLog ( ) . log ( new Status ( IStatus . ERROR , Activator . PLUGIN_ID , DatashareContainerAdapter . SO_CREATION_ERROR , "Exception<seq2seq4repair_space>in<seq2seq4repair_space>creating<seq2seq4repair_space>datashare<seq2seq4repair_space>container<seq2seq4repair_space>adapter" , e ) ) ; } } public IChannel createChannel ( final ID newID , final IChannelListener listener , final Map properties ) throws ECFException { } public IChannel createChannel ( IChannelConfig newChannelConfig ) throws ECFException { } public IChannel getChannel ( ID channelID ) { } public boolean removeChannel ( ID channelID ) { } public Namespace getChannelNamespace ( ) { } public void addListener ( IChannelContainerListener listener ) { } public void removeListener ( IChannelContainerListener listener ) { } public Object getAdapter ( Class adapter ) { } }

Fix:
Trace . catching ( PLUGIN_ID , EXCEPTIONS_CATCHING , DatashareContainerAdapter . class , "DatashareContainerAdapter.initialize" , e ) ;
Buggy code:
public class XSLTProcess extends AbstractMatchingTask { private File m_destdir ; private File m_basedir ; private String m_targetExtension = ".html" ; private ArrayList m_params = new ArrayList ( ) ; private File m_in ; private File m_out ; private Path m_classpath ; private boolean m_force ; private File m_stylesheet ; private boolean m_processorPrepared ; private TransformerFactory m_transformerFactory ; private Transformer m_transformer ; public void setBasedir ( final File basedir ) { } public void setClasspath ( final Path classpath ) throws TaskException { } public void setDestdir ( final File destdir ) { } public void setExtension ( final String targetExtension ) { } public void setForce ( final boolean force ) { } public void setIn ( final File in ) { } public void setOut ( final File out ) { } public void setStyle ( final File stylesheet ) { } public void addClasspath ( final Path path ) throws TaskException { if ( ( m_classpath ) == null ) { m_classpath = new Path ( ) ; } <START_BUG> m_classpath . addPath ( path ) ; <END_BUG> } public void addParam ( final XSLTParam param ) { } public void execute ( ) throws TaskException { } private void validate ( ) throws TaskException { } private void processDirs ( final DirectoryScanner scanner ) throws TaskException { } private void processFiles ( final DirectoryScanner scanner ) throws TaskException { } protected void prepareProcessor ( ) throws TaskException { } private void specifyStylesheet ( ) throws Exception { } private void specifyParams ( ) throws TaskException { } private void process ( final File baseDir , final String xmlFile , final File destDir ) throws TaskException { } private void processFile ( final File in , final File out ) throws TaskException { } private void processSingleFile ( final File in , final File out ) throws TaskException { } private void transform ( final File in , final File out ) throws Exception { } private String getSystemId ( final File file ) throws IOException { } private void ensureDirectoryFor ( final File targetFile ) throws TaskException { } }

Fix:
m_classpath . add ( path ) ;
Buggy code:
public class TestRecursivePrefixTreeStrategy extends StrategyTestCase { private int maxLength ; private void init ( int maxLength ) { } @ Test public void testFilterWithVariableScanLevel ( ) throws IOException { } @ Test public void testOneMeterPrecision ( ) { } @ Test public void testPrecision ( ) throws IOException { } @ Test public void geohashRecursiveRandom ( ) throws IOException { init ( 12 ) ; Point [ ] clusterCenters = new Point [ ] { ctx . makePoint ( ( - 180 ) , 0 ) , ctx . makePoint ( 0 , 90 ) , ctx . makePoint ( 0 , ( - 90 ) ) } ; for ( Point clusterCenter : clusterCenters ) { String hashCenter = GeohashUtils . encodeLatLon ( clusterCenter . getY ( ) , clusterCenter . getX ( ) , maxLength ) ; String smallBox = hashCenter . substring ( 0 , ( ( hashCenter . length ( ) ) - 1 ) ) ; Rectangle clusterDims = GeohashUtils . decodeBoundary ( smallBox , ctx ) ; double smallRadius = Math . max ( ( ( clusterDims . getMaxX ( ) ) - ( clusterDims . getMinX ( ) ) ) , ( ( clusterDims . getMaxY ( ) ) - ( clusterDims . getMinY ( ) ) ) ) ; assert smallRadius < 1 ; double largeRadius = 20.0 ; double [ ] radiusDegs = new double [ ] { largeRadius , smallRadius } ; for ( double radiusDeg : radiusDegs ) { deleteAll ( ) ; List < Point > points = new ArrayList < Point > ( ) ; for ( int i = 0 ; i < 20 ; i ++ ) { Point pt = ctx . getDistCalc ( ) . pointOnBearing ( clusterCenter , ( ( random ( ) . nextDouble ( ) ) * radiusDeg ) , ( ( random ( ) . nextInt ( ) ) * 360 ) , ctx , null ) ; pt = alignGeohash ( pt ) ; points . add ( pt ) ; addDocument ( newDoc ( ( "" + i ) , pt ) ) ; } commit ( ) ; for ( int ri = 0 ; ri < 4 ; ri ++ ) { Point queryCenter = ctx . getDistCalc ( ) . pointOnBearing ( clusterCenter , ( radiusDeg * 2 ) , random ( ) . nextInt ( 360 ) , ctx , null ) ; queryCenter = alignGeohash ( queryCenter ) ; checkHits ( q ( queryCenter , ( radiusDeg - ( smallRadius // 2 ) ) ) , 0 , null ) ; <START_BUG> checkHits ( q ( queryCenter , ( ( radiusDeg * 3 ) * 1.01 ) ) , points . size ( ) , null ) ; <END_BUG> double queryDist = radiusDeg * 2 ; int [ ] ids = new int [ points . size ( ) ] ; int ids_sz = 0 ; for ( int i = 0 ; i < ( points . size ( ) ) ; i ++ ) { Point point = points . get ( i ) ; if ( ( ctx . getDistCalc ( ) . distance ( queryCenter , point ) ) <= queryDist ) ids [ ( ids_sz ++ ) ] = i ; } ids = Arrays . copyOf ( ids , ids_sz ) ; checkHits ( q ( queryCenter , queryDist ) , ids . length , ids ) ; } } } } private SpatialArgs q ( Point pt , double distDEG ) { } private SpatialArgs q ( Point pt , double distDEG , double distErrPct ) { } private void checkHits ( SpatialArgs args , int assertNumFound , int [ ] assertIds ) { } private Document newDoc ( String id , Shape shape ) { } private Point alignGeohash ( Point p ) { } }

Fix:
checkHits ( q ( queryCenter , ( ( radiusDeg * 3 ) + ( smallRadius // 2 ) ) ) , points . size ( ) , null ) ;
Buggy code:
public class SlaveClient { private static final int DEFAULT_MAX_SESSIONS = 5 ; private static final Logger LOG = Logger . getLogger ( SlaveClient . class . getName ( ) ) ; private final HostAndPort _host ; private final Provider < StandardUsernameCredentials > _credentialsProvider ; private final int _maxSessions ; private List < SlaveClient . SessionCount > _connections = Lists . newArrayList ( ) ; public SlaveClient ( HostAndPort host , Provider < StandardUsernameCredentials > credentialsProvider ) { } public SlaveClient ( HostAndPort host , Provider < StandardUsernameCredentials > credentialsProvider , int maxSessions ) { } public HostAndPort getHost ( ) { } public Provider < StandardUsernameCredentials > getCredentialsProvider ( ) { } public void close ( ) { } public String initialize ( URL slaveJarUrl , String slaveInitScript ) throws IOException { } public SlaveClient . SlaveConnection createSlave ( SlaveOptions options ) throws IOException { <START_BUG> List < String > command = Arrays . asList ( "python3" , "//var//lib//jenkins-docker//create_slave.py" , "--name" , options . getName ( ) , "--image" , options . getImage ( ) ) ; <END_BUG> if ( options . isCleanEnvironment ( ) ) { command . add ( "--clean" ) ; } for ( Map . Entry < String , String > env : options . getEnvironment ( ) . entrySet ( ) ) { command . add ( "-e" ) ; command . add ( String . format ( "%s=%s" , env . getKey ( ) , env . getValue ( ) ) ) ; } for ( DirectoryMapping dir : options . getDirectoryMappings ( ) ) { command . add ( "-v" ) ; command . add ( String . format ( "%s:%s:%s" , dir . getHostPath ( ) , dir . getContainerPath ( ) , dir . getAccess ( ) . value ( ) ) ) ; } SlaveClient . LOG . log ( Level . FINER , "Running:<seq2seq4repair_space>{0}" , command ) ; String commandString = Ssh . quoteCommand ( command ) ; SlaveClient . SlaveConnection session = openSession ( ) ; try { session . _session . execCommand ( commandString ) ; return session ; } catch ( IOException ex ) { closeSession ( session ) ; throw ex ; } } private synchronized SlaveClient . SlaveConnection openSession ( ) throws IOException { } private synchronized void closeSession ( SlaveClient . SlaveConnection session ) { } public class SlaveConnection { private final Session _session ; private final Connection _connection ; private boolean _closed ; public SlaveConnection ( Connection connection , Session session ) { } @ Override protected void finalize ( ) throws Throwable { } public InputStream getOutput ( ) { } public OutputStream getInput ( ) { } public InputStream getLog ( ) { } public synchronized void close ( ) { } } private static class SessionCount { public final Connection connection ; public int sessionCount ; public SessionCount ( Connection connection ) { } } }

Fix:
List < String > command = Lists . newArrayList ( "python3" , "//var//lib//jenkins-docker//create_slave.py" , "--name" , options . getName ( ) , "--image" , options . getImage ( ) ) ;
Buggy code:
public class AsmRelationshipProvider { public static final String ADVISES = "advises" ; public static final String ADVISED_BY = "advised<seq2seq4repair_space>by" ; public static final String DECLARES_ON = "declares<seq2seq4repair_space>on" ; public static final String DECLAREDY_BY = "declared<seq2seq4repair_space>by" ; public static final String MATCHED_BY = "matched<seq2seq4repair_space>by" ; public static final String MATCHES_DECLARE = "matches<seq2seq4repair_space>declare" ; public static void checkerMunger ( IHierarchy model , Shadow shadow , Checker checker ) { <START_BUG> if ( ( ( shadow . getSourceLocation ( ) ) == null ) || ( checker == null ) ) <END_BUG> return ; String sourceHandle = ProgramElement . createHandleIdentifier ( checker . getSourceLocation ( ) . getSourceFile ( ) , checker . getSourceLocation ( ) . getLine ( ) , checker . getSourceLocation ( ) . getColumn ( ) ) ; String targetHandle = ProgramElement . createHandleIdentifier ( shadow . getSourceLocation ( ) . getSourceFile ( ) , shadow . getSourceLocation ( ) . getLine ( ) , shadow . getSourceLocation ( ) . getColumn ( ) ) ; IRelationshipMap mapper = AsmManager . getDefault ( ) . getRelationshipMap ( ) ; if ( ( sourceHandle != null ) && ( targetHandle != null ) ) { IRelationship foreward = mapper . get ( sourceHandle , DECLARE , AsmRelationshipProvider . MATCHED_BY ) ; foreward . getTargets ( ) . add ( targetHandle ) ; IRelationship back = mapper . get ( targetHandle , DECLARE , AsmRelationshipProvider . MATCHES_DECLARE ) ; back . getTargets ( ) . add ( sourceHandle ) ; } } public static void adviceMunger ( IHierarchy model , Shadow shadow , ShadowMunger munger ) { } private static IProgramElement getNode ( IHierarchy model , Shadow shadow ) { } private static IProgramElement findOrCreateCodeNode ( IProgramElement enclosingNode , Member shadowSig , Shadow shadow ) { } private static IProgramElement lookupMember ( IHierarchy model , Member member ) { } private static IProgramElement findMemberInClass ( IProgramElement classNode , Member member ) { } }

Fix:
if ( ( ( shadow . getSourceLocation ( ) ) == null ) || ( ( checker . getSourceLocation ( ) ) == null ) )
Buggy code:
public class DefaultActionRow implements IExtensionInterface { protected JPanel panel ; protected FilterAction filterAction ; protected GridBagLayout gridbag = new GridBagLayout ( ) ; protected GridBagConstraints c = new GridBagConstraints ( ) ; protected ActionList actionList ; protected int count ; private IFrameMediator mediator ; private ComboMenu comboMenu ; public DefaultActionRow ( IFrameMediator mediator , ActionList list , FilterAction action ) { } public JPanel getContentPane ( ) { } public void updateComponents ( boolean b ) { } public void initComponents ( ) { panel . removeAll ( ) ; panel . setLayout ( gridbag ) ; IExtensionHandler pluginHandler = null ; try { <START_BUG> pluginHandler = PluginManager . getInstance ( ) . getHandler ( ORG_COLUMBA_MAIL_FILTERACTION ) ; <END_BUG> } catch ( PluginHandlerNotFoundException ex ) { ErrorDialog . createDialog ( ex . getMessage ( ) , ex ) ; } comboMenu = new ComboMenu ( ) ; String [ ] ids = pluginHandler . getPluginIdList ( ) ; for ( String element : ids ) { comboMenu . addMenuItem ( element , element ) ; } comboMenu . setText ( filterAction . getAction ( ) ) ; comboMenu . addItemListener ( actionList ) ; c . fill = GridBagConstraints . VERTICAL ; c . weightx = 1.0 ; c . insets = new Insets ( 2 , 2 , 2 , 2 ) ; c . gridx = 0 ; c . anchor = GridBagConstraints . WEST ; c . gridwidth = 1 ; gridbag . setConstraints ( comboMenu , c ) ; panel . add ( comboMenu ) ; count = 0 ; } public void addComponent ( JComponent component ) { } public FilterAction getFilterAction ( ) { } public void setFilterAction ( FilterAction filterAction ) { } public IFrameMediator getMediator ( ) { } }

Fix:
pluginHandler = PluginManager . getInstance ( ) . getExtensionHandler ( ORG_COLUMBA_MAIL_FILTERACTION ) ;
Buggy code:
public class StringResourceModelTest extends TestCase { private WicketTester tester ; private WebPage page ; private StringResourceModelTest . WeatherStation ws ; private Model wsModel ; public StringResourceModelTest ( String name ) { } protected void setUp ( ) throws Exception { } protected void tearDown ( ) throws Exception { } public void testGetSimpleResource ( ) { } public void testNullResourceKey ( ) { } public void testGetSimpleResourceWithKeySubstitution ( ) { } public void testGetPropertySubstitutedResource ( ) { } public void testSubstitutedPropertyAndParameterResource ( ) { } public void testSubstitutionParametersResource ( ) { } public void testSubstitutionParametersResourceWithSingleQuote ( ) throws Exception { } public void testUninitialisedLocalizer ( ) { <START_BUG> StringResourceModel model = new StringResourceModel ( "simple.text" , null , null ) ; <END_BUG> try { model . getString ( ) ; Assert . fail ( "IllegalStateException<seq2seq4repair_space>expected" ) ; } catch ( IllegalStateException e ) { } } public void testSetObject ( ) { } public void testDetachAttachNormalModel ( ) throws Exception { } public void testDetachAttachDetachableModel ( ) throws Exception { } public class WeatherStation implements Serializable { private static final long serialVersionUID = 1L ; private final String name = "Europe's<seq2seq4repair_space>main<seq2seq4repair_space>weather<seq2seq4repair_space>station" ; private String currentStatus = "sunny" ; private double currentTemperature = 25.7 ; public String getCurrentStatus ( ) { } public void setCurrentStatus ( String currentStatus ) { } public double getCurrentTemperature ( ) { } public void setCurrentTemperature ( double currentTemperature ) { } public String getUnits ( ) { } public String getName ( ) { } } }

Fix:
StringResourceModel model = new StringResourceModel ( "simple.text" , null ) ;
Buggy code:
public class TCPConfigGui extends AbstractConfigGui { private static final long serialVersionUID = 240L ; private ServerPanel serverPanel ; private JLabeledTextField classname ; private JCheckBox reUseConnection ; private JCheckBox setNoDelay ; private JCheckBox closeConnection ; private JTextField soLinger ; private JTextField eolByte ; private JTextArea requestData ; private boolean displayName = true ; public TCPConfigGui ( ) { } public TCPConfigGui ( boolean displayName ) { } @ Override public String getLabelResource ( ) { } @ Override public void configure ( TestElement element ) { } @ Override public TestElement createTestElement ( ) { } @ Override public void modifyTestElement ( TestElement element ) { } @ Override public void clearGui ( ) { } private JPanel createNoDelayPanel ( ) { } private JPanel createClosePortPanel ( ) { } private JPanel createCloseConnectionPanel ( ) { JLabel label = new JLabel ( JMeterUtils . getResString ( "closeconnection" ) ) ; <START_BUG> closeConnection = new JCheckBox ( "" , false ) ; <END_BUG> label . setLabelFor ( closeConnection ) ; JPanel closeConnectionPanel = new JPanel ( new FlowLayout ( ) ) ; closeConnectionPanel . add ( label ) ; closeConnectionPanel . add ( closeConnection ) ; return closeConnectionPanel ; } private JPanel createSoLingerOption ( ) { } private JPanel createEolBytePanel ( ) { } private JPanel createRequestPanel ( ) { } private void init ( ) { } }

Fix:
closeConnection = new JCheckBox ( "" , TCPSampler . CLOSE_CONNECTION_DEFAULT ) ;
Buggy code:
public class Room { Dungeon dungeon ; private Portal topPortal ; private Portal leftPortal ; private Portal rightPortal ; private Portal bottomPortal ; private Array < Portal > portals ; private int enemyNumber ; Vector2 position ; public Room ( Dungeon dungeon , int x , int y ) { } public Room ( Dungeon dungeon , int x , int y , int enemyNumber ) { } public Portal getTopPortal ( ) { } public Portal getLeftPortal ( ) { } public Portal getRightPortal ( ) { } public Portal getBottomPortal ( ) { } public void setTopPortal ( ) { } public void setLeftPortal ( ) { } public void setRightPortal ( ) { } public void setBottomPortal ( ) { if ( portals . contains ( bottomPortal , true ) ) { portals . removeValue ( bottomPortal , true ) ; } <START_BUG> bottomPortal = new Portal ( this , PortalPos . DOWN , ( ( ( Constants . GAMESCREEN_WIDTH ) // 2 ) - ( ( Constants . PORTAL_WIDTH ) // 2 ) ) , ( - ( Constants . PORTAL_HEIGHT ) ) , Constants . PORTAL_WIDTH , Constants . PORTAL_HEIGHT ) ; <END_BUG> portals . add ( bottomPortal ) ; } public Array < Portal > getPortals ( ) { } public int getEnemyNumber ( ) { } public void setEnemyNumber ( int n ) { } public void removePortalsfromStage ( ) { } public void setPosition ( int x , int y ) { } public void setPosition ( Vector2 newPosition ) { } public int getX ( ) { } public int getY ( ) { } public Vector2 getPosition ( ) { } public String toString ( ) { } }

Fix:
bottomPortal = new Portal ( this , PortalPos . DOWN , ( ( ( Constants . GAMESCREEN_WIDTH ) // 2 ) - ( ( Constants . PORTAL_WIDTH ) // 2 ) ) , ( ( - ( Constants . PORTAL_HEIGHT ) ) // 2 ) , Constants . PORTAL_WIDTH , Constants . PORTAL_HEIGHT ) ;
Buggy code:
public class ParseLoginFragment extends ParseLoginFragmentBase { public interface ParseLoginFragmentListener { public void onSignUpClicked ( String username , String password ) { } public void onLoginHelpClicked ( ) { } public void onLoginSuccess ( ) { } } private static final String LOG_TAG = "ParseLoginFragment" ; private static final String USER_OBJECT_NAME_FIELD = "name" ; private View parseLogin ; private EditText usernameField ; private EditText passwordField ; private TextView parseLoginHelpButton ; private Button parseLoginButton ; private Button parseSignupButton ; private Button facebookLoginButton ; private Button twitterLoginButton ; private ParseLoginFragment . ParseLoginFragmentListener loginFragmentListener ; private ParseOnLoginSuccessListener onLoginSuccessListener ; private ParseLoginConfig config ; public static ParseLoginFragment newInstance ( Bundle configOptions ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup parent , Bundle savedInstanceState ) { } @ Override public void onAttach ( Activity activity ) { } @ Override protected String getLogTag ( ) { } private void setUpParseLoginAndSignup ( ) { } private void setUpFacebookLogin ( ) { } public byte [ ] compressAndConvertImageToByteFrom ( Bitmap imageBitmap ) { ByteArrayOutputStream stream = new ByteArrayOutputStream ( ) ; <START_BUG> imageBitmap . compress ( JPEG , 70 , stream ) ; <END_BUG> return stream . toByteArray ( ) ; } private void setUpTwitterLogin ( ) { } private boolean allowParseLoginAndSignup ( ) { } private boolean allowFacebookLogin ( ) { } private boolean allowTwitterLogin ( ) { } private void loginSuccess ( ) { } }

Fix:
imageBitmap . compress ( PNG , 70 , stream ) ;
Buggy code:
public class ResourceLink < T > extends Link < T > implements IResourceListener { private static final long serialVersionUID = 1L ; private final ResourceReference resourceReference ; private final IResource resource ; private final PageParameters resourceParameters ; public ResourceLink ( final String id , final ResourceReference resourceReference ) { } public ResourceLink ( final String id , final ResourceReference resourceReference , PageParameters resourceParameters ) { } public ResourceLink ( final String id , final IResource resource ) { } @ Override public void onClick ( ) { } public final void onResourceRequested ( ) { } @ Override protected final CharSequence getURL ( ) { if ( ( resourceReference ) != null ) { ResourceLink . getApplication ( ) . getResourceReferenceRegistry ( ) . registerResourceReference ( resourceReference ) ; <START_BUG> return ResourceLink . getRequestCycle ( ) . renderUrlFor ( new org . apache . wicket . request . handler . resource . ResourceReferenceRequestHandler ( resourceReference , resourceParameters ) ) ; <END_BUG> } return urlFor ( INTERFACE ) ; } }

Fix:
return ResourceLink . getRequestCycle ( ) . urlFor ( new org . apache . wicket . request . handler . resource . ResourceReferenceRequestHandler ( resourceReference , resourceParameters ) ) ;
Buggy code:
public class KeyCacheTest extends CleanupHelper { private static final String TABLE1 = "KeyCacheSpace" ; private static final String COLUMN_FAMILY1 = "Standard1" ; private static final String COLUMN_FAMILY2 = "Standard2" ; private static final String COLUMN_FAMILY3 = "Standard3" ; @ Test public void testKeyCache50 ( ) throws IOException , InterruptedException , ExecutionException { } @ Test public void testKeyCache100 ( ) throws IOException , InterruptedException , ExecutionException { } @ Test public void testKeyCacheLoad ( ) throws Exception { instance . disableAutoCompaction ( ) ; ColumnFamilyStore store = Table . open ( KeyCacheTest . TABLE1 ) . getColumnFamilyStore ( KeyCacheTest . COLUMN_FAMILY3 ) ; store . invalidateKeyCache ( ) ; assert ( store . getKeyCacheSize ( ) ) == 0 ; insertData ( KeyCacheTest . TABLE1 , KeyCacheTest . COLUMN_FAMILY3 , 0 , 100 ) ; store . forceBlockingFlush ( ) ; readData ( KeyCacheTest . TABLE1 , KeyCacheTest . COLUMN_FAMILY3 , 0 , 100 ) ; Assert . assertEquals ( 100 , store . getKeyCacheSize ( ) ) ; Map < Pair < Descriptor , DecoratedKey > , Long > savedMap = new HashMap < Pair < Descriptor , DecoratedKey > , Long > ( ) ; for ( Pair < Descriptor , DecoratedKey > k : store . getKeyCache ( ) . getKeySet ( ) ) { savedMap . put ( k , store . getKeyCache ( ) . get ( k ) ) ; } store . keyCache . submitWrite ( Integer . MAX_VALUE ) . get ( ) ; store . invalidateKeyCache ( ) ; assert ( store . getKeyCacheSize ( ) ) == 0 ; <START_BUG> store . invalidate ( ) ; <END_BUG> ColumnFamilyStore newStore = ColumnFamilyStore . createColumnFamilyStore ( Table . open ( KeyCacheTest . TABLE1 ) , KeyCacheTest . COLUMN_FAMILY3 ) ; Assert . assertEquals ( 100 , newStore . getKeyCacheSize ( ) ) ; Assert . assertEquals ( 100 , savedMap . size ( ) ) ; for ( Map . Entry < Pair < Descriptor , DecoratedKey > , Long > entry : savedMap . entrySet ( ) ) { assert newStore . getKeyCache ( ) . get ( entry . getKey ( ) ) . equals ( entry . getValue ( ) ) ; } } public void testKeyCache ( String cfName , int expectedCacheSize ) throws IOException , InterruptedException , ExecutionException { } }

Fix:
store . unregisterMBean ( ) ;
Buggy code:
public class FloatProperty extends NumberProperty { private static final long serialVersionUID = 240L ; private float value ; private float savedValue ; public FloatProperty ( String name , float value ) { } public FloatProperty ( ) { } @ Override public void setRunningVersion ( boolean runningVersion ) { } public void recoverRunningVersion ( TestElement owner ) { } public void setValue ( float value ) { } @ Override protected void setNumberValue ( Number n ) { } @ Override protected void setNumberValue ( String n ) throws NumberFormatException { } public String getStringValue ( ) { } public Object getObjectValue ( ) { } @ Override <START_BUG> public Object clone ( ) { <END_BUG> FloatProperty prop = ( ( FloatProperty ) ( super . clone ( ) ) ) ; prop . value = value ; return prop ; } @ Override public boolean getBooleanValue ( ) { } @ Override public double getDoubleValue ( ) { } @ Override public float getFloatValue ( ) { } @ Override public int getIntValue ( ) { } @ Override public long getLongValue ( ) { } }

Fix:
public FloatProperty clone ( ) {
Buggy code:
public class GenericSignatureParser { private String [ ] tokenStream ; private int tokenIndex = 0 ; public ClassSignature parseAsClassSignature ( String sig ) { } public MethodTypeSignature parseAsMethodSignature ( String sig ) { } public FieldTypeSignature parseAsFieldSignature ( String sig ) { } private FormalTypeParameter parseFormalTypeParameter ( ) { } private FieldTypeSignature parseFieldTypeSignature ( boolean isOptional ) { } private ArrayTypeSignature parseArrayTypeSignature ( ) { } private ClassTypeSignature parseClassTypeSignature ( ) { SimpleClassTypeSignature outerType = null ; SimpleClassTypeSignature [ ] nestedTypes = new SimpleClassTypeSignature [ 0 ] ; StringBuffer ret = new StringBuffer ( ) ; String identifier = eatIdentifier ( ) ; ret . append ( identifier ) ; while ( maybeEat ( "//" ) ) { ret . append ( "//" ) ; ret . append ( eatIdentifier ( ) ) ; } identifier = ret . toString ( ) ; while ( ! ( maybeEat ( ";" ) ) ) { if ( maybeEat ( "." ) ) { outerType = new SimpleClassTypeSignature ( identifier ) ; List nestedTypeList = new ArrayList ( ) ; do { ret . append ( "." ) ; SimpleClassTypeSignature sig = parseSimpleClassTypeSignature ( ) ; ret . append ( sig . toString ( ) ) ; nestedTypeList . add ( ret ) ; } while ( maybeEat ( "." ) ) ; nestedTypes = new SimpleClassTypeSignature [ nestedTypeList . size ( ) ] ; nestedTypeList . toArray ( nestedTypes ) ; } else if ( tokenStream [ tokenIndex ] . equals ( "<" ) ) { ret . append ( "<" ) ; TypeArgument [ ] tArgs = maybeParseTypeArguments ( ) ; for ( int i = 0 ; i < ( tArgs . length ) ; i ++ ) { ret . append ( tArgs [ i ] . toString ( ) ) ; } ret . append ( ">" ) ; outerType = new SimpleClassTypeSignature ( identifier , tArgs ) ; List nestedTypeList = new ArrayList ( ) ; while ( maybeEat ( "." ) ) { ret . append ( "." ) ; SimpleClassTypeSignature sig = parseSimpleClassTypeSignature ( ) ; ret . append ( sig . toString ( ) ) ; <START_BUG> nestedTypeList . add ( ret ) ; <END_BUG> } nestedTypes = new SimpleClassTypeSignature [ nestedTypeList . size ( ) ] ; nestedTypeList . toArray ( nestedTypes ) ; } else { throw new IllegalStateException ( ( "Expecting<seq2seq4repair_space>.,<,<seq2seq4repair_space>or<seq2seq4repair_space>;,<seq2seq4repair_space>but<seq2seq4repair_space>found<seq2seq4repair_space>" + ( tokenStream [ tokenIndex ] ) ) ) ; } } ret . append ( ";" ) ; if ( outerType == null ) outerType = new SimpleClassTypeSignature ( ret . toString ( ) ) ; return new ClassTypeSignature ( ret . toString ( ) , outerType , nestedTypes ) ; } private SimpleClassTypeSignature parseSimpleClassTypeSignature ( ) { } private TypeArgument parseTypeArgument ( ) { } private TypeArgument [ ] maybeParseTypeArguments ( ) { } private TypeVariableSignature parseTypeVariableSignature ( ) { } private boolean maybeEat ( String token ) { } private void eat ( String token ) { } private String eatIdentifier ( ) { } public String [ ] tokenize ( String signatureString ) { } }

Fix:
nestedTypeList . add ( sig ) ;
Buggy code:
public class Button extends UIElement implements IUIElemntLogic { public Button ( float x , float y , int width , int height ) { } public Button ( float x , float y , Size size ) { } @ Override public void initializeMesh ( ) { } @ Override public void initializePhysics ( ) { } @ Override public void initializeListeners ( ) { <START_BUG> addMouseEnterListener ( ( ) -> ElementRenderers . getElementRenderer ( . class ) . material . color = Color . RED ) ; <END_BUG> addMouseLeaveListener ( ( ) -> ElementRenderers . getElementRenderer ( . class ) . material . color = Color . BLUE ) ; } }

Fix:
addMouseEnterListener ( ( ) -> ElementRenderers . getElementRenderer ( . class ) . material . color = Color . WHITE ) ;
Buggy code:
public abstract class AbstractRosterManager implements IRosterManager { protected IRoster roster ; protected List rosterSubscriptionListeners = new ArrayList ( ) ; protected List rosterUpdateListeners = new ArrayList ( ) ; public synchronized void addRosterSubscriptionListener ( IRosterSubscriptionListener listener ) { } public synchronized void addRosterUpdateListener ( IRosterUpdateListener listener ) { } protected void fireRosterUpdate ( IRosterItem changedItem ) { synchronized ( this ) { for ( Iterator i = rosterUpdateListeners . iterator ( ) ; i . hasNext ( ) ; ) { IRosterUpdateListener l = ( ( IRosterUpdateListener ) ( i . next ( ) ) ) ; <START_BUG> l . handleRosterUpdate ( changedItem ) ; <END_BUG> } } } public abstract IPresenceSender getPresenceSender ( ) { } public IRoster getRoster ( ) { } public abstract IRosterSubscriptionSender getRosterSubscriptionSender ( ) { } public abstract IRosterUpdateSender getRosterUpdateSender ( ) { } public synchronized void removeRosterSubscriptionListener ( IRosterSubscriptionListener listener ) { } public synchronized void removeRosterUpdateListener ( IRosterUpdateListener listener ) { } public Object getAdapter ( Class adapter ) { } }

Fix:
l . handleRosterUpdate ( roster , changedItem ) ;
Buggy code:
public class DetailActivity extends ActionBarActivity { RSSFeed feed ; WebView descriptionView ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_detail ) ; feed = ( ( RSSFeed ) ( getIntent ( ) . getExtras ( ) . get ( "feed" ) ) ) ; int pos = getIntent ( ) . getExtras ( ) . getInt ( "pos" ) ; descriptionView = ( ( WebView ) ( findViewById ( detailWebView ) ) ) ; ActionBar actionBar = getSupportActionBar ( ) ; actionBar . setTitle ( "Reddit<seq2seq4repair_space>Material" ) ; actionBar . setSubtitle ( feed . getItem ( pos ) . get_title ( ) ) ; WebSettings webSettings = descriptionView . getSettings ( ) ; <START_BUG> webSettings . setLayoutAlgorithm ( SINGLE_COLUMN ) ; <END_BUG> webSettings . getPluginState ( ) ; webSettings . setPluginState ( ON ) ; webSettings . setJavaScriptEnabled ( true ) ; descriptionView . setWebViewClient ( new WebViewClient ( ) ) ; descriptionView . loadUrl ( feed . getItem ( pos ) . get_link ( ) ) ; } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
webSettings . setLayoutAlgorithm ( NORMAL ) ;
Buggy code:
public abstract class WeaveTestCase extends TestCase { public boolean regenerate = false ; public boolean runTests = true ; File outDir ; String outDirPath ; public BcelWorld world = new BcelWorld ( ) ; public WeaveTestCase ( String name ) { } public void setUp ( ) { } public void tearDown ( ) { } public static InstructionList getAdviceTag ( BcelShadow shadow , String where ) { } public void weaveTest ( String name , String outName , ShadowMunger planner ) throws IOException { } static String classDir = ( ( BcweaverTests . TESTDATA_PATH ) + ( File . separator ) ) + "bin" ; public void weaveTest ( String name , String outName , List planners ) throws IOException { } protected void weaveTestInner ( BcelWeaver weaver , UnwovenClassFile classFile , String name , String outName ) throws IOException { } public String makeClassPath ( String outDir ) { } public static UnwovenClassFile makeUnwovenClassFile ( String classDir , String name , String outDir ) throws IOException { } public void checkClass ( LazyClassGen gen , String outDir , String expectedFile ) throws IOException { } static final File TESTDATA_DIR = new File ( BcweaverTests . TESTDATA_PATH ) ; void genClass ( LazyClassGen gen , String outDir , String expectedFile ) throws IOException { } void realCheckClass ( LazyClassGen gen , String outDir , String expectedFile ) throws IOException { <START_BUG> TestUtil . assertMultiLineStringEquals ( "classes" , FileUtil . readAsString ( new File ( WeaveTestCase . TESTDATA_DIR , expectedFile ) ) , gen . toLongString ( ) ) ; <END_BUG> } public ShadowMunger makeConcreteAdvice ( String mungerString ) { } public ShadowMunger makeConcreteAdvice ( String mungerString , int extraArgFlag ) { } protected ShadowMunger makeConcreteAdvice ( String mungerString , int extraArgFlag , PerClause perClause ) { } public ShadowMunger makeAdviceField ( String kind , String extraArgType ) { } public List makeAdviceAll ( String kind , boolean matchOnlyPrintln ) { } public List makeAdviceAll ( final String kind ) { } public Pointcut makePointcutAll ( ) { } public Pointcut makePointcutNoZeroArg ( ) { } public Pointcut makePointcutPrintln ( ) { } public Pointcut makeConcretePointcut ( String s ) { } public Pointcut makeResolvedPointcut ( String s ) { } public String [ ] getStandardTargets ( ) { } public String getTraceJar ( ) { } protected void weaveTest ( String [ ] inClassNames , String outKind , ShadowMunger patternMunger ) throws IOException { } protected void weaveTest ( String [ ] inClassNames , String outKind , List patternMungers ) throws IOException { } protected List addLexicalOrder ( List l ) { } public void checkShadowSet ( List l , String [ ] ss ) { } }

Fix:
TestUtil . assertMultiLineStringEquals ( expectedFile , FileUtil . readAsString ( new File ( WeaveTestCase . TESTDATA_DIR , expectedFile ) ) , gen . toLongString ( ) ) ;
Buggy code:
@ ParseClassName ( "Exhibit" ) public class Exhibit extends ParseObject { public String getName ( ) { } public String getDescription ( ) { } public int getFavoriteCount ( ) { } public boolean getFeatured ( ) { } public ParseFile getImageUri ( ) { <START_BUG> return getParseFile ( "image" ) ; <END_BUG> } public int getPostCount ( ) { } public void setName ( String name ) { } public void setDescription ( String description ) { } public void setFavoriteCount ( int favoriteCount ) { } public void setPostCount ( int postCount ) { } public static void getPopularExhibits ( FindCallback < Exhibit > findCallback ) { } }

Fix:
return getParseFile ( "imageFile" ) ;
Buggy code:
public class PlusDamageListener implements ActionListener { private User user ; private JProgressBar maxDamageBar ; private JFrame epix ; private JLabel menuCardCoinLabel ; private JPanel card ; public PlusDamageListener ( User user , JProgressBar maxDamageBar , JFrame epix , JLabel menuCardCoinLabel , JPanel card ) { } public void actionPerformed ( ActionEvent e ) { if ( ( user . getCoin ( ) ) >= 5 ) { user . setCoin ( ( ( user . getCoin ( ) ) - 5 ) ) ; user . setDamage ( ( ( user . getDamage ( ) ) + 2 ) ) ; <START_BUG> EpixController . getInstance ( ) . coinsUpdate ( user , ( ( user . getCoin ( ) ) - 5 ) ) ; <END_BUG> menuCardCoinLabel . setText ( ( "" + ( user . getCoin ( ) ) ) ) ; maxDamageBar . setValue ( ( ( int ) ( ( ( user . getDamage ( ) ) - 5 ) * 2.5 ) ) ) ; CardLayout cardLayout = ( ( CardLayout ) ( getCard ( ) . getLayout ( ) ) ) ; cardLayout . show ( getCard ( ) , "upgradeCard" ) ; } } public User getUser ( ) { } public void setUser ( User user ) { } public JProgressBar getmaxDamageBar ( ) { } public void setmaxDamageBar ( JProgressBar maxJumpBar ) { } public JFrame getEpix ( ) { } public void setEpix ( JFrame epix ) { } public JLabel getMenuCardCoinLabel ( ) { } public void setMenuCardCoinLabel ( JLabel menuCardCoinLabel ) { } public JPanel getCard ( ) { } public void setCard ( JPanel card ) { } }

Fix:
EpixController . getInstance ( ) . coinsUpdate ( user , user . getCoin ( ) ) ;
Buggy code:
@ Component ( "TwitterCrawler" ) public class TwitterCrawler implements Crawler { private static final Logger logger = LogManager . getLogger ( TwitterCrawler . class . getName ( ) ) ; private static final int FRIENDS_PER_PAGE = 5000 ; private static final int INTERESTS_PER_PAGE = 30 ; public static final int PAGE_LIMIT = 5 ; private final ReentrantLock lock = new ReentrantLock ( ) ; private final Condition freeWindow = lock . newCondition ( ) ; private final Twitter twitter = TwitterConfiguration . getTwitterInstance ( ) ; @ Override public Optional < String > getPersonName ( Long uuid ) throws InterruptedException { } @ Override public Set < Long > getPersonFriends ( Long uuid , int friendsLimit ) throws InterruptedException { } @ Override public Map < String , Long > getPersonInterests ( Long uuid , int interestLimit ) throws InterruptedException { } private boolean exceededRateLimit ( TwitterException e ) { } private boolean handledTwitterException ( Long uuid , TwitterException e ) throws InterruptedException { } <START_BUG> @ Scheduled ( cron = "0<seq2seq4repair_space>*//15LP<seq2seq4repair_space>*<seq2seq4repair_space>*<seq2seq4repair_space>*<seq2seq4repair_space>*" ) <END_BUG> public void resetRateLimit ( ) { TwitterCrawler . logger . info ( "Resetting<seq2seq4repair_space>rate<seq2seq4repair_space>limit" ) ; lock . lock ( ) ; freeWindow . signalAll ( ) ; lock . unlock ( ) ; } }

Fix:
@ Scheduled ( cron = "0<seq2seq4repair_space>*//15<seq2seq4repair_space>*<seq2seq4repair_space>*<seq2seq4repair_space>*<seq2seq4repair_space>*" )
Buggy code:
public class ClassScope extends Scope { public TypeDeclaration referenceContext ; public TypeReference superTypeReference ; public ClassScope ( Scope parent , TypeDeclaration context ) { } void buildAnonymousTypeBinding ( SourceTypeBinding enclosingType , ReferenceBinding supertype ) { } private void buildFields ( ) { } void buildFieldsAndMethods ( ) { } private LocalTypeBinding buildLocalType ( SourceTypeBinding enclosingType , PackageBinding packageBinding ) { } void buildLocalTypeBinding ( SourceTypeBinding enclosingType ) { } private void buildMemberTypes ( AccessRestriction accessRestriction ) { } private void buildMethods ( ) { } SourceTypeBinding buildType ( SourceTypeBinding enclosingType , PackageBinding packageBinding , AccessRestriction accessRestriction ) { } private void buildTypeVariables ( ) { } private void checkAndSetModifiers ( ) { } private void checkAndSetModifiersForField ( FieldBinding fieldBinding , FieldDeclaration fieldDecl ) { } public void checkParameterizedSuperTypeCollisions ( ) { } private void checkForInheritedMemberTypes ( SourceTypeBinding sourceType ) { } public void checkParameterizedTypeBounds ( ) { } private void connectMemberTypes ( ) { } private boolean connectSuperclass ( ) { } private boolean connectEnumSuperclass ( ) { } private boolean connectSuperInterfaces ( ) { } void connectTypeHierarchy ( ) { } private void connectTypeHierarchyWithoutMembers ( ) { } <START_BUG> public boolean detectHierarchyCycle ( TypeBinding superType , TypeReference reference , TypeBinding [ ] argTypes ) { <END_BUG> if ( ! ( superType instanceof ReferenceBinding ) ) return false ; if ( reference == ( this . superTypeReference ) ) { if ( superType . isTypeVariable ( ) ) return false ; if ( superType . isParameterizedType ( ) ) superType = ( ( ParameterizedTypeBinding ) ( superType ) ) . genericType ( ) ; compilationUnitScope ( ) . recordSuperTypeReference ( superType ) ; return detectHierarchyCycle ( referenceContext . binding , ( ( ReferenceBinding ) ( superType ) ) , reference ) ; } if ( ( ( ( superType . tagBits ) & ( TagBits . BeginHierarchyCheck ) ) == 0 ) && ( superType instanceof SourceTypeBinding ) ) ( ( SourceTypeBinding ) ( superType ) ) . scope . connectTypeHierarchyWithoutMembers ( ) ; return false ; } private boolean detectHierarchyCycle ( SourceTypeBinding sourceType , ReferenceBinding superType , TypeReference reference ) { } private ReferenceBinding findSupertype ( TypeReference typeReference ) { } public ProblemReporter problemReporter ( ) { } public TypeDeclaration referenceType ( ) { } public String toString ( ) { } }

Fix:
public boolean detectHierarchyCycle ( TypeBinding superType , TypeReference reference ) {
Buggy code:
public class SolrZkServer { static Logger log = LoggerFactory . getLogger ( SolrZkServer . class ) ; String zkRun ; String zkHost ; String solrPort ; Properties props ; SolrZkServerProps zkProps ; private Thread zkThread ; private String dataHome ; private String confHome ; public SolrZkServer ( String zkRun , String zkHost , String dataHome , String confHome , String solrPort ) { } public String getClientString ( ) { } public void parseConfig ( ) { } public Map < Long , QuorumPeer . QuorumServer > getServers ( ) { } public void start ( ) { if ( ( zkRun ) == null ) return ; zkThread = new Thread ( ) { @ Override public void run ( ) { try { if ( ( zkProps . getServers ( ) . size ( ) ) > 1 ) { QuorumPeerMain zkServer = new QuorumPeerMain ( ) ; zkServer . runFromConfig ( zkProps ) ; } else { ServerConfig sc = new ServerConfig ( ) ; sc . readFrom ( zkProps ) ; ZooKeeperServerMain zkServer = new ZooKeeperServerMain ( ) ; zkServer . runFromConfig ( sc ) ; } SolrZkServer . log . info ( "ZooKeeper<seq2seq4repair_space>Server<seq2seq4repair_space>exited." ) ; <START_BUG> } catch ( Throwable e ) { <END_BUG> SolrZkServer . log . error ( "ZooKeeper<seq2seq4repair_space>Server<seq2seq4repair_space>ERROR" , e ) ; throw new org . apache . solr . common . SolrException ( ErrorCode . SERVER_ERROR , e ) ; } } } ; if ( ( zkProps . getServers ( ) . size ( ) ) > 1 ) { SolrZkServer . log . info ( ( "STARTING<seq2seq4repair_space>EMBEDDED<seq2seq4repair_space>ENSEMBLE<seq2seq4repair_space>ZOOKEEPER<seq2seq4repair_space>SERVER<seq2seq4repair_space>at<seq2seq4repair_space>port<seq2seq4repair_space>" + ( zkProps . getClientPortAddress ( ) . getPort ( ) ) ) ) ; } else { SolrZkServer . log . info ( ( "STARTING<seq2seq4repair_space>EMBEDDED<seq2seq4repair_space>STANDALONE<seq2seq4repair_space>ZOOKEEPER<seq2seq4repair_space>SERVER<seq2seq4repair_space>at<seq2seq4repair_space>port<seq2seq4repair_space>" + ( zkProps . getClientPortAddress ( ) . getPort ( ) ) ) ) ; } zkThread . setDaemon ( true ) ; zkThread . start ( ) ; try { Thread . sleep ( 500 ) ; } catch ( Exception e ) { SolrZkServer . log . error ( "STARTING<seq2seq4repair_space>ZOOKEEPER" , e ) ; } } public void stop ( ) { } }

Fix:
} catch ( Exception e ) {